2003-10-10 Elena Zannoni <ezannoni@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
2
3 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
4 comment.
5
6 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
7
8 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
9 more readable code. Accomodate passing of bitfields.
10
11 2003-10-10 Andrew Cagney <cagney@redhat.com>
12
13 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
14 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
15 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
16 * ppc-sysv-tdep.c: Include "gdb_assert.h".
17 (ppc64_sysv_abi_push_dummy_call): New function.
18 (ppc64_sysv_abi_broken_push_dummy_call): New function.
19 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
20 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
21
22 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
23
24 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
25 * README: Ditto.
26 * d10v-tdep.c: Ditto.
27 * h8300-tdep.c: Ditto.
28 * remote-e7000.c: Ditto.
29 * remote-hms.c: Ditto.
30 * ser-e7kpc.c: Ditto.
31 * sh-stub.c: Ditto.
32 * sh-tdep.c: Ditto.
33 * sh-tdep.h: Ditto.
34 * sh3-rom.c: Ditto.
35 * sh64-tdep.c: Ditto.
36 * top.c: Ditto.
37 * wince.c: Ditto.
38 * config/d10v/d10v.mt: Ditto.
39 * config/sh/embed.mt: Ditto.
40 * config/sh/linux.mt: Ditto.
41 * config/sh/tm-linux.h: Ditto.
42 * config/sh/tm-sh.h: Ditto.
43 * config/sh/wince.mt: Ditto.
44
45 2003-10-09 Andrew Cagney <cagney@redhat.com>
46
47 * ppc-tdep.h (struct type): Declare opaque.
48 * x86-64-tdep.h (struct regcache): Declare opaque.
49 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
50 coding style.
51
52 2003-10-09 Andrew Cagney <cagney@redhat.com>
53
54 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
55 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
56 (SOFTWARE_SINGLE_STEP_P): Ditto.
57 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
58 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
59 (SOFTWARE_SINGLE_STEP_P): Ditto.
60 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
61 software_single_step to rs6000_software_single_step.
62
63 2003-10-09 Andrew Cagney <cagney@redhat.com>
64
65 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
66
67 2003-10-09 Michael Snyder <msnyder@redhat.com>
68
69 * frame.h: Fix typo in comment.
70 * dummy-frame.c: Fix typo in comment.
71 * d10v-tdep.c: Random whitespace/comment tweaks.
72
73 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
74
75 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
76 (sh_push_dummy_code): Delete function, it's only used for dummy calls
77 on stack.
78
79 Based on input by Stephen Clarke (stephen.clarke@superh.com):
80 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
81 in detail.
82
83 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
84
85 * remote-mips.c (mips_initialize): Remove unneeded call to
86 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
87
88 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
89
90 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
91 a memory pointer.
92
93 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
94
95 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
96 for any lwp we resume.
97 (running_callback): Add lwps that have pending status events
98 against them to be considered running.
99
100 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
101
102 * m32r-tdep.c : Include "dis-asm.h".
103 * Makefile.in (m32r-tdep.o): Update dependencies.
104
105 2003-10-06 J. Brobecker <brobecker@gnat.com>
106
107 * completer.h (get_gdb_completer_word_break_characters): Delete.
108 * completer.c: include language.h.
109 (gdb_completer_word_break_characters): Delete.
110 (get_gdb_completer_word_break_characters): Delete.
111 (location_completer): Use the word break characters of the current
112 language.
113 (complete_line): Likewise.
114 (line_completion_function): Likewise.
115 (skip_quoted_chars): Likewise.
116 * Makefile.in (completer.o): Add dependency on language.h.
117 * top.c (init_main): Set the readline word break characters
118 to GDB's default word break characters.
119
120 2003-10-06 J. Brobecker <brobecker@gnat.com>
121
122 * language.h (language_defn): new field, la_word_break_characters.
123 * language.c (unknown_language_defn): Set new field to
124 default_word_break_characters.
125 (auto_language_defn): Likewise.
126 (local_language_defn): Likewise.
127 * ada-lang.c (ada_language_defn): Likewise.
128 * c-lang.c (c_language_defn): Likewise.
129 (cplus_language_defn): Likewise.
130 (asm_language_defn): Likewise.
131 (minimal_language_defn): Likewise.
132 * f-lang.c (f_language_defn): Likewise.
133 * jv-lang.c (java_language_defn): Likewise.
134 * m2-lang.c (m2_language_defn): Likewise.
135 * objc-lang.c (objc_language_defn): Likewise.
136 * p-lang.c (pascal_language_defn): Likewise.
137 * scm-lang.c (scm_language_defn): Likewise.
138
139 2003-10-06 Andrew Cagney <cagney@redhat.com>
140
141 * ppc-sysv-tdep.c: Re-indent.
142
143 2003-10-06 J. Brobecker <brobecker@gnat.com>
144
145 * language.h (default_word_break_characters): Add prototype.
146 * language.c (default_word_break_characters): New function.
147
148 2003-10-06 Andreas Schwab <schwab@suse.de>
149
150 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
151 with %eax.
152
153 2003-10-06 Andrew Cagney <cagney@redhat.com>
154
155 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
156 "h8500-tdep.c".
157 (z8k-tdep.o): Delete custom build rule.
158
159 2003-10-06 Andrew Cagney <cagney@redhat.com>
160
161 * Makefile.in: Update all dependencies.
162
163 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
164 No longer list PA as as obsolete candidate. List m32r as
165 broken instead of obsolete.
166
167 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
168 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
169 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
170 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
171 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
172 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
173 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
174 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
175 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
176 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
177 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
178 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
179 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
180 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
181 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
182 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
183 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
184 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
185 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
186 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
187 * config/z8k/z8k.mt: Ditto.
188
189 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
190 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
191 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
192 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
193 sparclite were removed.
194 * configure.host, configure.tgt: Remove corresponding tuples.
195
196 * breakpoint.c, breakpoint.h: Remove obsolete code.
197 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
198 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
199 * stabsread.h, xcoffread.c: Ditto.
200
201 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
202 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
203 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
204 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
205
206 2003-10-06 David Lecomber <dsl@sources.redhat.com>
207
208 * f-valprint.c: Reformatting
209
210 2003-10-06 Mark Kettenis <kettenis@gnu.org>
211
212 * x86-64-tdep.c: Remove duplicate comment.
213
214 * x86-64-tdep.c (x86_64_store_return_value): Don't use
215 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
216 names for return values. This fixes a bug since we looked at %rbx
217 instead of %rdx.
218
219 2003-10-05 Mark Kettenis <kettenis@gnu.org>
220
221 * x86-64-tdep.c: Include "regset.h".
222
223 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
224 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
225 sizeof_fpregset.
226 * i386-tdep.c: Include "regset.h".
227 (i386_supply_gregset): New function.
228 (i386_supply_fpregset): New function.
229 (i386_gdbarch_init): Initialze register set-related members of
230 TDEP.
231 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
232 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
233
234 2003-10-03 Andrew Cagney <cagney@redhat.com>
235
236 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
237 set extract_return_value, store_return_value and
238 use_struct_convention to ppc64_sysv_abi_extract_return_value,
239 ppc64_sysv_abi_store_return_value and
240 ppc64_sysv_abi_use_struct_convention.
241 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
242 (ppc64_sysv_abi_store_return_value): Declare.
243 (ppc64_sysv_abi_use_struct_convention): Declare.
244 * ppc-sysv-tdep.c (enum return_value_convention): Define.
245 (ppc64_sysv_abi_extract_return_value): New function.
246 (ppc64_sysv_abi_store_return_value): New function.
247 (ppc64_sysv_abi_use_struct_convention): New function.
248 (ppc64_sysv_abi_return_value): New function.
249
250 2003-10-03 Andrew Cagney <cagney@redhat.com>
251
252 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
253 convert a descriptor to a function when it's in the ".opd"
254 section.
255
256 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
257
258 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
259 reg_size to keep GCC silent.
260
261 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
262
263 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
264 base for DW_EH_PE_textrel encodings.
265 (read_encoded_value): Add a DW_EH_PE_textrel case.
266 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
267 section.
268
269 2003-10-03 Mark Kettenis <kettenis@gnu.org>
270
271 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
272
273 2003-10-02 Andrew Cagney <cagney@redhat.com>
274
275 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
276 REGISTER_RAW_SIZE.
277 * gdbarch.h, gdbarch.c: Re-generate.
278 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
279 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
280 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
281 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
282 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
283 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
284 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
285 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
286 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
287 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
288 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
289 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
290 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
291 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
292 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
293 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
294
295 2003-10-02 Jim Blandy <jimb@redhat.com>
296
297 * dwarf2read.c (struct die_info): Doc fix.
298
299 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
300
301 * sh-tdep.c: Running thru gdb_indent.sh.
302
303 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
304
305 * sh-tdep.c (sh_justify_value_in_reg): New function.
306 (sh_stack_allocsize): Ditto.
307 (flt_argreg_array): New array used for floating point argument
308 passing.
309 (sh_init_flt_argreg): New function.
310 (sh_next_flt_argreg): Ditto.
311 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
312 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
313 Fix argument passing strategy.
314 (sh_push_dummy_call_nofpu): Ditto.
315
316 2003-10-01 Andrew Cagney <cagney@redhat.com>
317
318 * value.h (register_value_being_returned): Declare. Replace
319 "value_being_returned".
320 * infcall.c (call_function_by_hand): Use
321 register_value_being_returned.
322 * infcmd.c (print_return_value): Call
323 "register_value_being_returned", handle struct return locally.
324 * values.c (register_value_being_returned): New function. Replace
325 "value_being_returned".
326
327 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
328
329 * linux-proc.c (linux_do_registers): New function.
330 (linux_make_note_section): Use linux_do_registers in case of
331 single threaded inferior programs.
332
333 2003-10-01 Andrew Cagney <cagney@redhat.com>
334
335 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
336 use STRUCT_ADDR. When not using "struct return convention", pass
337 "0" to "value_being_returned". Add FIXMEs.
338 * infcmd.c (print_return_value): Pass an explicit 0/1 to
339 value_being_returned. Add comments.
340 * values.c (value_being_returned): Add fixme.
341 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
342 (hppa_value_returned_from_stack): Add FIXME.
343
344 2003-09-30 David Carlton <carlton@kealia.com>
345
346 * dwarf2read.c (struct die_info): Add 'parent' field; replace
347 'has_children' and 'next' by 'child' and 'sibling'.
348 (read_comp_unit): Rework algorithm, breaking body into
349 read_die_and_children and read_die_and_siblings.
350 (read_die_and_children, read_die_and_siblings): New.
351 (read_full_die): Add 'has_children' argument; set it instead of
352 the die's 'has_children' field. Minor formatting cleanup.
353 (free_die_list): Use die->child and die->sibling instead of
354 die->next.
355 (dump_die_list): Ditto.
356 (sibling_die): Use die->sibling.
357 (psymtab_to_symtab_1): Use die's 'child' field in place of its
358 'has_children' and 'next' fields.
359 (process_die, read_file_scope, read_func_scope)
360 (read_lexical_block_scope, read_structure_scope)
361 (read_enumeration, read_array_type, read_common_block)
362 (read_namespace, read_subroutine_type, dump_die): Ditto.
363
364 2003-09-30 Andrew Cagney <cagney@redhat.com>
365
366 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
367 to 224, not 220.
368
369 2003-09-30 Andrew Cagney <cagney@redhat.com>
370
371 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
372 REGISTER_VIRTUAL_SIZE.
373 * gdbarch.h, gdbarch.c: Regenerate.
374 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
375 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
376 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
377
378 2003-09-29 Andrew Cagney <cagney@redhat.com>
379
380 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
381 DEPRECATED_REGISTER_VIRTUAL_TYPE.
382 * gdbarch.h, gdbarch.c: Regenerate.
383 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
384 * sh64-tdep.c, sparc-tdep.c: Update.
385
386 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
387 * remote-vxmips.c (vx_read_register): Ditto.
388 * remote-vx68.c (vx_read_register): Ditto.
389 * gnu-nat.c (inf_validate_procs): Ditto.
390
391 2003-09-29 J. Brobecker <brobecker@gnat.com>
392
393 * infcall.c (call_function_by_hand): Fix build failure
394 introduced in the previous change to this file.
395
396 2003-09-29 Andrew Cagney <cagney@redhat.com>
397
398 * NEWS: Mention Objective-C.
399
400 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
401
402 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
403 test if the register has been saved on the stack.
404 (arm_scan_prologue_cache): When analysing the instruction
405 "str lr, [sp, #-4]", save the address where lr has been stored.
406
407 2003-09-28 Andrew Cagney <cagney@redhat.com>
408
409 * frame.c (frame_read_unsigned_register): Delete function.
410 * frame.h (frame_read_unsigned_register): Delete declaration.
411 * sparc-tdep.c (sparc_init_extra_frame_info): Use
412 get_frame_register_unsigned.
413 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
414 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
415 * d10v-tdep.c (d10v_print_registers_info): Ditto.
416
417 * frame.h (frame_read_register): Delete declaration.
418 * frame.c (frame_read_register): Delete function.
419 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
420 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
421 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
422 * mips-tdep.c (mips_register_to_value): Ditto.
423 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
424 * d10v-tdep.c (d10v_print_registers_info): Ditto.
425
426 * frame.c (frame_read_signed_register): Delete function.
427 (frame_read_unsigned_register): Update comments.
428 * frame.h (frame_read_signed_register): Delete declaration.
429 * h8300-tdep.c (h8300_print_register): Use
430 get_frame_register_signed.
431 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
432
433 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
434 Rename VALUE_RETURNED_FROM_STACK.
435 * infcmd.c (print_return_value): Update.
436 * infcall.c (call_function_by_hand): Update.
437
438 2003-09-28 Mark Kettenis <kettenis@gnu.org>
439
440 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
441 regcache argument and reverse the order of the other two
442 arguments. Remove local regcache variable. Determine
443 architecture from REGCACHE. Update comments.
444 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
445 reverse the order of the other two arguments. Remove local
446 regcache variable. Determine architecture from REGCACHE. Update
447 comments.
448 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
449 prototypes. Update comments.
450 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
451 comment.
452 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
453 Update.
454 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
455 * i386-interix-nat.c (supply_fpregset): Update.
456 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
457 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
458 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
459 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
460 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
461 Update.
462 * i386obsd-tdep.c (fetch_core_registers): Update.
463 * i386v4-nat.c (supply_fpregset): Update.
464 * x86-64-linux-nat.c (supply_fpregset): Update.
465 * x86-64-linux-tdep.c (fetch_core_registers): Update.
466
467 2003-09-27 Mark Kettenis <kettenis@gnu.org>
468
469 * i386-tdep.h: Put opaque declarations in alphabetical
470 order. Remove spurious whitespace.
471 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
472 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
473 * i386-tdep.c (MM0_REGNUM): Remove define.
474 (i386_mmx_regnum_p): Add gdbarch argument.
475 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
476 Rewrite using new macro definitions for FPU/SSE registers.
477 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
478 definitions from i387-tdep.h.
479 (i386_register_name): Update.
480 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
481 new macro definitions for FPU/SSE registers.
482 (i386_extract_return_value): Determine whether floating-point
483 registers are present by examining REGCACHE's architecture.
484 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
485 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
486 FPU/SSE registers.
487 (i386_register_type): Update.
488 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
489 definitions for FPU registers. Use REGCACHE's architecture to
490 determine the appropriate register numbers.
491 (i386_pseudo_register_read, i386_pseudo_register_write,
492 i386_register_reggroup_p): Update.
493 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
494 TDEP->mm0_regnum.
495 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
496 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
497 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
498 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
499 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
500 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
501 *' to `void *'.
502 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
503 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
504 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
505 definitions for FPU/SSE registers.
506 (FXSAVE_MXCSR_ADDR): New define.
507 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
508 TDEP->mm0_regnum.
509 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
510 (I387_ST0_REGNUM): Define.
511
512 * regcache.h (get_regcache_arch): New prototype.
513 * regcache.c (get_regcache_arch): New function.
514
515 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
516 whitespace.
517
518 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
519 Initialize using ARRAY_SIZE.
520
521 2003-09-27 Andrew Cagney <cagney@redhat.com>
522
523 * arch-utils.c (deprecated_init_frame_pc_default): Rename
524 "init_frame_pc_default".
525 * arch-utils.h (deprecated_init_frame_pc_default): Update.
526 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
527 * vax-tdep.c (vax_gdbarch_init): Update.
528 * v850-tdep.c (v850_gdbarch_init): Update.
529 * sh64-tdep.c (sh64_gdbarch_init): Update.
530 * s390-tdep.c (s390_gdbarch_init): Update.
531 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
532 * mcore-tdep.c (mcore_gdbarch_init): Update.
533 * h8300-tdep.c (h8300_gdbarch_init): Update.
534 * cris-tdep.c (cris_gdbarch_init): Update.
535 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
536
537 2003-09-26 Mark Kettenis <kettenis@gnu.org>
538
539 * regset.h: New file.
540 * Makefile.in (regset_h): Add.
541
542 2003-09-25 Andrew Cagney <cagney@redhat.com>
543
544 * frame.h (deprecated_frame_saved_regs): Rename
545 get_frame_saved_regs.
546 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
547 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
548 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
549 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
550 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
551
552 2003-09-25 Andrew Cagney <cagney@redhat.com>
553
554 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
555 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
556 and Java.
557 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
558 arm*-*-* do not use the new frame code.
559
560 2003-09-25 David Carlton <carlton@kealia.com>
561
562 * c-exp.y: Remove 'register' declarations.
563 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
564
565 2003-09-25 David Carlton <carlton@kealia.com>
566
567 * c-exp.y: Include cp-support.h. Add qualified_type.
568 (yylex): Delete nested type hack; add comments.
569 * cp-namespace.c (cp_lookup_nested_type): New function.
570 * cp-support.h: Declare cp_lookup_nested_type.
571 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
572 instead of value_struct_elt_for_reference.
573 * valops.c: Include cp-support.h.
574 (value_aggregate_elt): New function.
575 (value_namespace_elt): Ditto.
576 (value_struct_elt_for_reference): Make static.
577 * value.h: Delete declaration of value_struct_elt_for_reference;
578 add declaration for value_aggregate_elt.
579 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
580 (valops.o): Ditto.
581
582 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
583
584 * stack.c: Include "reggroups.h".
585 (frame_info): Only display registers in all_reggroup.
586 * Makefile.in (stack.o): Update dependencies.
587
588 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
589
590 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
591 "add ip, sp #n" in the prologue.
592 (arm_scan_prologue): Ditto.
593
594 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
595
596 * MAINTAINERS (write after approval): Add myself.
597
598 2003-09-25 Andreas Schwab <schwab@suse.de>
599
600 * m68k-tdep.c: Include "dwarf2-frame.h".
601 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
602 * Makefile.in (m68k-tdep.o): Update dependencies.
603
604 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
605
606 * sh-tdep.c (struct frame_extra_info): Remove.
607 (struct sh_frame_cache): New structure.
608 (GET_SOURCE_REG): New macro extracting source register of an opcode.
609 (GET_TARGET_REG): Ditto but target register.
610 (GET_PUSHED_REG): Remove.
611 (IS_MOV_ARG_TO_REG): New macro.
612 (IS_MOV_ARG_TO_IND_R14): New macro.
613 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
614 (IS_MOVW_PCREL_TO_REG): New macro.
615 (IS_MOVL_PCREL_TO_REG): New macro.
616 (IS_SUB_REG_FROM_SP): New macro.
617 (IS_ARG_MOV): Remove.
618 (IS_MOV_TO_R14): Remove.
619 (IS_RESTORE_FP): New macro.
620 (IS_RTS): New macro.
621 (IS_LDS): New macro.
622 (IS_MOV_FP_SP): New macro.
623 (IS_ADD_REG_TO_FP): New macro.
624 (IS_ADD_IMM_FP): New macro.
625 (sh_skip_prologue_hard_way): Remove.
626 (sh_saved_pc_after_call): Remove.
627 (sh_frame_chain): Remove.
628 (sh_find_callers_reg): Remove.
629 (sh_nofp_frame_init_saved_regs): Remove.
630 (sh_fp_frame_init_saved_regs): Remove.
631 (sh_init_extra_frame_info): Remove.
632 (sh_analyze_prologue): New function.
633 (sh_skip_prologue): Remove deprecated code. Rely on new function
634 sh_analyze_prologue when after_prologue fails.
635 (sh_frame_saved_pc): Remove.
636 (sh_alloc_frame_cache): New function.
637 (sh_frame_cache): Ditto.
638 (sh_frame_prev_register): Ditto.
639 (sh_frame_this_id): Ditto.
640 (sh_frame_unwind): New structure defining the heuristic frame
641 sniffer interface.
642 (sh_frame_sniffer): New function.
643 (sh_unwind_sp): Ditto.
644 (sh_unwind_pc): Ditto.
645 (sh_unwind_dummy_id): Ditto.
646 (sh_frame_base_address): Ditto.
647 (sh_frame_base): New structure defining new frame base code.
648 (sh_in_function_epilogue_p): New function.
649 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
650 code and to call all new code instead. Initialize dwarf2 and
651 heuristic frame sniffer.
652
653 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
654
655 * parser-defs.h (struct exp_descriptor): New definition, containing
656 language-specific info for printing, prefixifying, dumping, and
657 evaluating expressions.
658 (exp_descriptor_standard): Declare new variable.
659 (print_subexp): Make global and declare here (from expprint.c).
660 (dump_subexp): Ditto.
661 (dump_subexp_body_standard): Declare.
662 (operator_length_standard): Declare.
663 (op_name_standard): Declare.
664 (print_subexp): Declare.
665 (print_subexp_standard): Declare.
666
667 * language.h (struct language_defn): Add la_exp_desc field to hold
668 pointer to table for language-specific operators.
669 Remove evaluate_exp field, which is now in struct exp_descriptor.
670
671 * parse.c (operator_length): Move most code to new
672 operator_length_standard function. Use language-specific information.
673 (operator_length_standard): New function taking most code from
674 operator_length.
675 (exp_descriptor_standard): New constant.
676
677 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
678 and OP_EXTENDED_LAST.
679
680 * expprint.c (print_subexp): Use language-specific print_subexp.
681 Make global; remove static declaration.
682 Move most code to print_subexp_standard.
683 (print_subexp_standard): New function, containing code formerly in
684 print_subexp.
685 (op_name): Add expression to argument signature.
686 Use langauge-specific op_name.
687 Move most code to op_name_standard.
688 (op_name_standard): New function, containing code formerly in op_name.
689 (dump_subexp): Use new version of op_name function.
690 Use language-specific dump_subexp_body, and move most existing code to
691 dump_subexp_body_standard.
692 (dump_raw_expression): Use new op_name interface.
693 (dump_subexp_body): Move most code to dump_subexp_body_standard.
694 (dump_subexp_body_standard): New function, containing code formerly
695 in dump_subexp_body.
696
697 * language.c (unknown_language): Add default la_exp_desc field and
698 remove evaluate_exp field.
699 (auto_language): Ditto.
700 (local_language): Ditto.
701 * f-lang.c (f_language_defn): Ditto.
702 * c-lang.c (c_language_defn): Ditto.
703 (cplus_language_defn): Ditto.
704 (asm_language_defn): Ditto.
705 (minimal_language_defn): Ditto.
706 * p-lang.c (pascal_language_defn): Ditto.
707 * m2-lang.c (m2_language_defn): Ditto.
708 * objc-lang.c (objc_language_defn): Ditto.
709
710 * jv-lang.c (exp_descriptor_java): New variable, containing
711 Java-specific expression evaluator.
712 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
713 field.
714 * scm-lang.c (exp_descriptor_scm): New variable, containing
715 Scheme-specific expression evaluator.
716 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
717 field.
718 * objc-lang.c (print_object_command): Take evaluate_exp from the
719 la_exp_desc field.
720
721 * Makefile.in (eval.o): Add dependency on parser-defs.h.
722
723 * eval.c: Include parser-defs.h for the full declaration of
724 la_exp_desc's type.
725 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
726
727 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
728
729 * parser-defs.h (operator_length): Declare.
730
731 * parse.c (length_of_subexp): Use operator_length to get operator
732 lengths and arities for operators.
733 Move most code to new operator_length function.
734 (operator_length): New function absorbing most code from
735 length_of_subexp.
736 (prefixify_subexp): Remove large case and use operator_length instead.
737 (parse_exp_1): Use renamings:
738 dump_prefix_expression => dump_raw_expression and
739 dump_postfix_expression => dump_prefix_expression.
740
741 * expression.h (dump_prefix_expression): Rename to ...
742 (dump_raw_expression): New name.
743 (dump_postfix_expression): Rename to ...
744 (dump_prefix_expression): New name.
745
746 * expprint.c (dump_subexp): Make global. Add comment.
747 Move most existing code to dump_subexp_body.
748 (dump_subexp_body): New function.
749 (dump_prefix_expression): Rename to dump_raw_expression.
750 Remove attempt to print the expression via print_expression: it can't
751 work before the expression is prefixified.
752 (dump_raw_expression): Renamed from dump_prefix_expression.
753 (dump_postfix_expression): Rename to dump_prefix_expression, since
754 that's what it does.
755 Remove 'note' parameter, since this routine must be used on
756 prefixified expression.
757 (dump_prefix_expression): Renamed from dump_postfix_expression.
758
759 2003-09-22 Jim Blandy <jimb@redhat.com>
760
761 * dwarf2read.c (read_array_type): When building the type for an
762 array of unspecified length, make sure to choose the upper bound
763 so that the array's total length comes out to be zero --- that's
764 how we represent such arrays.
765
766 2003-09-22 Michael Chastain <mec@shout.net>
767
768 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
769
770 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
771
772 * top.c (quit_force): Fix indirect call to quit_target so
773 a struct qt_args pointer is passed.
774
775 2003-09-22 Andrew Cagney <cagney@redhat.com>
776
777 * arch-utils.h (init_frame_pc_noop): Delete declaration.
778 * arch-utils.c (init_frame_pc_noop): Delete function.
779 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
780 "init_frame_pc".
781 * mips-tdep.c (mips_gdbarch_init): Ditto.
782 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
783 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
784 declaration.
785 (DEPRECATED_INIT_FRAME_PC): Delete macro.
786 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
787 declaration.
788 (DEPRECATED_INIT_FRAME_PC): Delete macro.
789
790 2003-09-22 Anthony Green <green@redhat.com>
791
792 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
793 declaration.
794
795 2003-09-20 Andrew Cagney <cagney@redhat.com>
796
797 * breakpoint.c: Eliminate ARGSUSED.
798 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
799 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
800 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
801 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
802 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
803 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
804 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
805 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
806 * wince.c, remote-vx.c: Ditto.
807
808 * cli/cli-script.c: Remove "register" attributes.
809 * config/pa/tm-hppa.h: Ditto.
810 * cli/cli-decode.c: Ditto.
811 * cli/cli-cmds.c: Ditto.
812
813 2003-09-19 Andrew Cagney <cagney@redhat.com>
814
815 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
816 DEPRECATED_NPC_REGNUM.
817 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
818
819 2003-09-19 Christopher Faylor <cgf@redhat.com>
820
821 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
822
823 2003-09-19 Jim Blandy <jimb@redhat.com>
824
825 * macrotab.c (macro_include): Use the correct comparison to find
826 the appropriate place for this inclusion in the list.
827
828 2003-09-19 Andrew Cagney <cagney@redhat.com>
829
830 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
831 (DEPRECATED_HPUX_TEXT_END): Define.
832 (deprecated_hpux_text_end): Declare.
833 (struct target_ops): Declare opaque.
834 * hppah-nat.c (text_end): Make static.
835 (deprecated_hpux_text_end): New function.
836 * exec.c (text_end): Delete global variable.
837 (NEED_TEXT_START_END): Do not define.
838 (exec_file_attach): Replace code computing "text_end" code with
839 call to DEPRECATED_HPUX_TEXT_END.
840
841 2003-09-19 Andrew Cagney <cagney@redhat.com>
842
843 * utils.c (align_up, align_down): New functions.
844 * defs.h (align_up, align_down): Declare.
845 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
846 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
847 and "align_down".
848 (round_up, round_down): Delete functions.
849 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
850 "align_down".
851 (ROUND_DOWN, ROUND_UP): Delete macros.
852 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
853 * h8300-tdep.c: Replace "round_up" and "round_down" with
854 "align_up" and "align_down".
855 (round_up, round_down): Delete macros.
856 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
857 "align_down".
858 (ROUND_UP, ROUND_DOWN): Delete macros.
859
860 2003-09-18 J. Brobecker <brobecker@gnat.com>
861
862 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
863 hard-coded constant. Use the proper machine name instead.
864
865 2003-09-17 Andrew Cagney <cagney@redhat.com>
866
867 * sparc-tdep.c (legacy_register_name): Delete function.
868 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
869 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
870 * infcmd.c (gdb_register_name): Delete variable.
871 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
872 REGISTER_NAME and "tm.h".
873 * gdbarch.h, gdbarch.c: Regenerate.
874 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
875 REGISTER_NAMES in comments.
876 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
877 * m68klinux-nat.c (regmap): Ditto.
878
879 2003-09-17 Jim Blandy <jimb@redhat.com>
880
881 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
882
883 2003-09-17 Andrew Cagney <cagney@redhat.com>
884
885 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
886 (ppcnbsd_init_abi): Set "use_struct_convention" to
887 "ppcnbsd_use_struct_convention".
888
889 2003-09-17 Mark Kettenis <kettenis@gnu.org>
890
891 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
892 * gdbarch.h, gdbarch.c: Regenerate.
893 (stabs_argument_has_addr): New architecture method.
894 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
895 * arch-utils.c: Include "buildsym.h".
896 (default_stabs_argument_has_addr): New function.
897 * stabsread.c (define_symbol): Use stabs_argument_has_addr
898 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
899
900 2003-09-17 Andrew Cagney <cagney@redhat.com>
901
902 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
903 * gdbarch.h, gdbarch.c: Regenerate.
904 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
905 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
906 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
907 * sparcnbsd-tdep.c: Update.
908
909 2003-09-17 Andrew Cagney <cagney@redhat.com>
910
911 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
912 * gdbarch.h, gdbarch.c: Regenerate.
913 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
914 * d10v-tdep.c, frame.c: Update.
915 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
916 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
917 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
918 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
919 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
920 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
921 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
922 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
923 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
924 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
925 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
926 * config/pa/nm-hppah.h: Update.
927
928 2003-09-16 Andrew Cagney <cagney@redhat.com>
929
930 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
931 "use_struct_convention" to "ppc_linux_use_struct_convention".
932 (ppc_linux_use_struct_convention): New function.
933 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
934 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
935 "rs6000_use_struct_convention".
936 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
937 declaration.
938 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
939 Delete function.
940
941 2003-09-16 Andrew Cagney <cagney@redhat.com>
942
943 * buildsym.c: Remove more occurances of "register".
944 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
945 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
946 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
947 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
948 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
949 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
950 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
951 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
952
953 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
954
955 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
956 numbers to enumeration values.
957 * sh-tdep.c: Accomodate above change.
958 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
959 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
960 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
961 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
962 (IS_FPUSH): Rename from IS_FMOV.
963 (sh_extract_struct_value_address): Remove useless comment.
964 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
965 instead of own local values.
966 (sh_dump_tdep): Remove.
967 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
968 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
969
970 2003-09-15 Andrew Cagney <cagney@redhat.com>
971
972 * doublest.c (convert_floatformat_to_doublest): No longer need to
973 cast "exp_bias" to an int. Reverts 2002-12-04 change.
974
975 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
976
977 * values.c (unpack_double): Call floatformat_is_valid.
978
979 2003-09-15 Mark Kettenis <kettenis@gnu.org>
980
981 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
982 ps_strings into a long.
983
984 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
985 _initialize_am64fbsd_nat.
986
987 2003-09-15 Kevin Buettner <kevinb@redhat.com>
988
989 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
990 associated with DW_AT_ranges attribute is out of bounds.
991
992 2003-09-15 David Lecomber <dsl@sources.redhat.com>
993
994 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
995
996 2003-09-14 Michael Chastain <mec@shout.net>
997
998 * config/m68k/nm-apollo68v.h: Delete.
999 * config/m68k/xm-apollo68v.h: Delete.
1000
1001 2003-09-14 Andrew Cagney <cagney@redhat.com>
1002
1003 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1004 * dcache.c: Update copyrights and descriptions.
1005 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1006
1007 2003-09-14 Andrew Cagney <cagney@redhat.com>
1008
1009 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1010 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1011
1012 2003-09-14 Andrew Cagney <cagney@redhat.com>
1013
1014 * alpha-nat.c: Remove some occurances of "register".
1015 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1016 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1017 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1018 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1019 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1020 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1021 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1022 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1023 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1024 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1025 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1026 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1027 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1028 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1029 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1030 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1031 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1032 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1033 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1034 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1035 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1036 * values.c, vax-tdep.c, xcoffread.c: Ditto.
1037
1038 2003-09-13 Andrew Cagney <cagney@redhat.com>
1039
1040 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1041 * ppc-tdep.h (struct regcache): Declare opaque.
1042 * objfiles.h (struct objfile_data): Declare opaque.
1043 * cp-support.h (struct objfile): Declare opaque.
1044 * linux-nat.h (target_waitstatus): Declare opaque.
1045
1046 2003-09-14 Mark Kettenis <kettenis@gnu.org>
1047
1048 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1049 (stabs_argument_has_addr): New architecture method.
1050 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1051 * arch-utils.c: Include "buildsym.h".
1052 (default_stabs_argument_has_addr): New function.
1053 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1054 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1055
1056 * cris-tdep.c (cris_gdbarch_init): Set
1057 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1058 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1059 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1060 * mips-tdep.c (mips_gdbarch_init): Likewise.
1061 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1062 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1063
1064 2003-09-13 Andrew Cagney <cagney@redhat.com>
1065
1066 * values.c (using_struct_return): Delete "function" and "funcaddr"
1067 parameters.
1068 * value.h (using_struct_return): Update declaration.
1069 * infcmd.c (finish_command_continuation): Update.
1070 (finish_command): Update.
1071 * infcall.c (call_function_by_hand): Update.
1072 * eval.c (evaluate_subexp_standard): Update.
1073
1074 2003-09-13 Christopher Faylor <cgf@redhat.com>
1075
1076 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1077 SSE registers since gdb will not operate correctly without this.
1078 Restore include file ordering munged in previous change.
1079 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1080
1081 2003-09-13 Mark Kettenis <kettenis@gnu.org>
1082
1083 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1084 REG_STRUCT_HAS_ADDR.
1085 * gdbarch.c, gdbarch.h: Updated.
1086 * infcall.c (call_function_by_hand): Update.
1087 * stabsread.c (define_symbol): Updated.
1088
1089 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1090
1091 2003-09-12 Christopher Faylor <cgf@redhat.com>
1092
1093 * win32-nat.c: Reorganize so that defines used by target headers are
1094 actually defined by the system headers.
1095 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1096 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1097
1098 2003-09-12 Jim Blandy <jimb@redhat.com>
1099
1100 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1101 the file has no .data, .bss, or .rodata sections. Instead wait
1102 until we see a variable alleged to live in one of those sections.
1103
1104 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1105 .bss section, presume that any variables we find live in the
1106 .rodata section.
1107
1108 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1109 offsets for global and static variables.
1110
1111 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1112 symbol types are, by definition, in the .data section, so it is
1113 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1114 If there is no .data section, there should be no N_DATA or N_DATA
1115 | N_EXT symbols.
1116
1117 2003-09-12 Mark Kettenis <kettenis@gnu.org>
1118
1119 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1120 (amd64fbsd_sigcontext_addr): Rewrite.
1121 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1122 with correct values.
1123 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1124 (amd64fbsd_init_abi): Fix typo.
1125
1126 2003-09-12 Andrew Cagney <cagney@redhat.com>
1127
1128 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1129 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1130
1131 2003-09-12 Andrew Cagney <cagney@redhat.com>
1132
1133 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1134 "entry_file_highpc". Update comments.
1135 * defs.h (deprecated_inside_entry_file): Rename
1136 "inside_entry_file".
1137 * blockframe.c (deprecated_inside_entry_file): Rename
1138 "inside_entry_file".
1139 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1140 * vax-tdep.c (vax_frame_chain): Update.
1141 * sh64-tdep.c (sh64_frame_chain): Update.
1142 * sh-tdep.c (sh_frame_chain): Update.
1143 * rs6000-tdep.c (rs6000_frame_chain): Update.
1144 * ns32k-tdep.c (ns32k_frame_chain): Update.
1145 * mips-tdep.c (mips_frame_chain): Update.
1146 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1147 * m32r-tdep.c (m32r_frame_this_id): Update.
1148 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1149 * frv-tdep.c (frv_frame_this_id): Update.
1150 * d10v-tdep.c (d10v_frame_this_id): Update.
1151 * cris-tdep.c (cris_frame_chain): Update.
1152 * blockframe.c (legacy_frame_chain_valid): Update.
1153 * avr-tdep.c (avr_frame_this_id): Update.
1154 * arm-tdep.c (arm_prologue_this_id): Update.
1155 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1156 * objfiles.c (objfile_relocate): Update.
1157 * mipsread.c (mipscoff_symfile_read): Update.
1158 (mipscoff_symfile_read): Update.
1159 * mdebugread.c (parse_partial_symbols): Update.
1160 * dwarfread.c (read_file_scope): Update.
1161 * dwarf2read.c (read_file_scope): Update.
1162 * dbxread.c (read_dbx_symtab): Update.
1163 (read_dbx_symtab): Update.
1164 * coffread.c (complete_symtab): Update.
1165
1166 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1167
1168 * top.c (quit_target): New static helper function.
1169 (quit_force): Moved code to quit_target(). Call quit_target()
1170 via catch_errors() to catch errors during quit.
1171
1172 2003-09-11 David Carlton <carlton@kealia.com>
1173
1174 * buildsym.c (finish_block): Use allocate_block to allocate the
1175 block.
1176 * mdebugread.c (new_block): Add FIXME.
1177
1178 2003-09-11 David Carlton <carlton@kealia.com>
1179
1180 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1181 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1182 (recursive_dump_type): Ditto.
1183 * printcmd.c (print_formatted): Ditto.
1184 * typeprint.c (print_type_scalar): Ditto.
1185 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1186 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1187 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1188 maint_cplus_cmd_list.
1189 * cp-support.c: Make maint_cplus_cmd_list extern.
1190 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1191 command.h.
1192 (lookup_symbol_file): Look in possible namespace blocks when
1193 appropriate.
1194 (initialize_namespace_symtab): New.
1195 (get_possible_namespace_block, free_namespace_block)
1196 (check_possible_namespace_symbols)
1197 (check_possible_namespace_symbols_loop)
1198 (check_one_possible_namespace_symbol)
1199 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1200 (_initialize_cp_namespace): Ditto.
1201 * block.h: Declare allocate_block.
1202 * block.c (allocate_block): New.
1203 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1204 allocate_block.
1205 * symfile.h: Update declaration of add_psymbol_to_list.
1206 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1207 question.
1208 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1209 scan_partial_symbols_call.
1210 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1211 helper functions.
1212 (add_partial_symbol): If necessary, scan mangled names for names
1213 of namespaces.
1214 (add_partial_namespace): Add NAMESPACE argument; generate partial
1215 symbols associated to namespaces.
1216 (add_partial_enumeration): Add NAMESPACE argument.
1217 (new_symbol): Allow namespace syms.
1218 (read_namespace): Generate namespace syms.
1219 * objfiles.h: Add opaque declaration of struct symtab.
1220 (struct objfile): Add cp_namespace_symtab member.
1221 * objfiles.c (allocate_objfile): Set
1222 objfile->cp_namespace_symtab.
1223 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1224 dictionary_h, command_h.
1225
1226 2003-09-11 Andrew Cagney <cagney@redhat.com>
1227
1228 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1229 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1230 near the function's end.
1231 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1232 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1233 regcache_raw_write_signed to set SP_REGNUM.
1234
1235 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
1236
1237 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1238 orig_addrs is set up properly.
1239
1240 2003-09-11 Andrew Cagney <cagney@redhat.com>
1241
1242 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1243 * gdbarch.h, gdbarch.c: Re-generate.
1244 * infcall.c (call_function_by_hand): Update.
1245 * hppa-tdep.c (hppa_push_arguments): Update.
1246 * ada-lang.c (place_on_stack): Update.
1247 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1248 * sparc-tdep.c (sparc_gdbarch_init): Update.
1249 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1250 * hppa-tdep.c (hppa_gdbarch_init): Update.
1251 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1252 stack_align.
1253
1254 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
1255
1256 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1257 register do need a frame.
1258
1259 2003-09-11 Andrew Cagney <cagney@redhat.com>
1260
1261 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1262 buildable since GDB 5.0.
1263 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1264 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1265 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1266 * irix4-nat.c: Delete file.
1267 * config/mips/irix4.mh: Delete file.
1268 * config/mips/irix3.mh: Delete file.
1269 * config/mips/irix3.mt: Delete file.
1270 * config/mips/tm-irix3.h: Delete file.
1271 * config/mips/nm-irix3.h: Delete file.
1272 * config/mips/xm-irix3.h: Delete file.
1273 * config/mips/nm-irix4.h: Delete file.
1274 * config/mips/xm-irix4.h: Delete file.
1275 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1276
1277 2003-09-10 J. Brobecker <brobecker@gnat.com>
1278
1279 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1280 * Makefile.in (hppa-tdep.o): Update dependencies.
1281
1282 2003-09-10 James E Wilson <wilson@specifixinc.com>
1283
1284 * MAINTAINERS: Change my e-mail address. Move to paper trail
1285 section.
1286
1287 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1288
1289 * MAINTAINERS (frv): New ISA entry.
1290
1291 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1292
1293 * frv-tdep.c (dis-asm.h): Include.
1294 * Makefile.in (frv-tdep.o): Update dependencies.
1295
1296 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1297
1298 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1299 Fix typo for high range of floating registers.
1300
1301 2003-09-09 David Carlton <carlton@kealia.com>
1302
1303 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1304 highpc initialization here out of scan_partial_symbols.
1305 (scan_partial_symbols): Restructure into a recursive version,
1306 calling add_partial_namespace and add_partial_enumeration when
1307 appropriate.
1308 (add_partial_namespace): New.
1309 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1310
1311 2003-09-09 Andrew Cagney <cagney@redhat.com>
1312
1313 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1314 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1315 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1316 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1317
1318 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1319 (rs6000_push_dummy_call): Set the "TOC" register.
1320
1321 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1322 methods "max_register_raw_size", "max_register_virtual_size" or
1323 "register_virtual_size".
1324
1325 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1326
1327 * MAINTAINERS: Update my e-mail address.
1328
1329 2003-09-09 Andrew Cagney <cagney@redhat.com>
1330
1331 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1332 (rs6000_push_dummy_call): Store the struct return address.
1333 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1334
1335 2003-09-09 Andrew Cagney <cagney@redhat.com>
1336
1337 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1338 "ppc_sysv_abi_push_arguments".
1339 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1340 "ppc_sysv_abi_push_arguments".
1341 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1342 instead of "push_arguments".
1343 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1344
1345 2003-09-09 Andrew Cagney <cagney@redhat.com>
1346
1347 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1348 instead of CALL_DUMMY_ADDRESS.
1349
1350 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1351
1352 * p-lang.c: Eliminate "register".
1353 * c-lang.c: Ditto.
1354 * expprint.c: Ditto.
1355 * f-lang.c: Ditto.
1356 * jv-lang.c: Ditto.
1357 * language.c: Ditto.
1358 * m2-lang.c: Ditto.
1359 * parse.c: Ditto.
1360 * scm-lang.c: Ditto.
1361 * objc-lang.c: Ditto.
1362
1363 2003-09-09 Nick Clifton <nickc@redhat.com>
1364
1365 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1366
1367 2003-09-04 Andrew Cagney <cagney@redhat.com>
1368
1369 * avr-tdep.c: Include "dis-asm.h".
1370 * cris-tdep.c: Include "dis-asm.h".
1371 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1372 instead of corresponding typedef.
1373 * h8300-tdep.c: Include "dis-asm.h".
1374 * ia64-tdep.c: Include "dis-asm.h".
1375 * i386-tdep.c: Include "dis-asm.h".
1376 (i386_print_insn): Use "struct disassemble_info" instead of
1377 corresponding typedef.
1378 * m68k-tdep.c: Include "dis-asm.h".
1379 * mcore-tdep.c: Include "dis-asm.h".
1380 * mips-tdep.c: Include "dis-asm.h".
1381 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1382 instead of corresponding typedef.
1383 * ns32k-tdep.c: Include "dis-asm.h".
1384 * s390-tdep.c: Include "dis-asm.h".
1385 * sparc-tdep.c: Include "dis-asm.h".
1386 * vax-tdep.c: Include "dis-asm.h".
1387 * v850-tdep.c: Include "dis-asm.h".
1388 * mn10300-tdep.c: Include "dis-asm.h".
1389 * rs6000-tdep.c: Include "dis-asm.h".
1390 * xstormy16-tdep.c: Include "dis-asm.h".
1391 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1392 print_insn_xstormy16.
1393 * Makefile.in (v850-tdep.o): Update dependencies.
1394 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1395 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1396 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1397 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1398 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1399 (gdbarch_h): Remove $(dis_asm_h).
1400 * disasm.c: Include "dis-asm.h".
1401 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1402 corresponding typedef.
1403 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1404 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1405 * gdbarch.sh: Do not include "dis-asm.h".
1406 (struct disassemble_info): Declare opaque.
1407 (TARGET_PRINT_INSN): Update declaration.
1408 * gdbarch.h, gdbarch.c: Re-generate.
1409
1410 2003-09-08 Andrew Cagney <cagney@redhat.com>
1411
1412 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1413 CALL_DUMMY_ADDRESS, change to a predicate.
1414 * gdbarch.h, gdbarch.c: Re-generate.
1415 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1416 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1417 * infcall.c (call_function_by_hand): Ditto.
1418 * sparc-tdep.c (sparc_push_return_address): Ditto.
1419 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1420 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1421 CALL_DUMMY_ADDRESS with entry_point_address.
1422 * v850-tdep.c (v850_push_return_address): Ditto.
1423 * s390-tdep.c (s390_push_return_address): Ditto.
1424 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1425 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1426 * mcore-tdep.c (mcore_push_return_address): Ditto.
1427 * cris-tdep.c (cris_push_return_address): Ditto.
1428 * arm-tdep.c (arm_push_return_address): Ditto.
1429
1430 2003-09-08 Andrew Cagney <cagney@redhat.com>
1431
1432 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1433 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1434 and REG_UNMODIFIED to REG_SAME_VALUE.
1435 (execute_cfa_program): Update.
1436 (dwarf2_frame_cache): Update. Initialize table to
1437 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1438 location.
1439 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1440
1441 2003-09-08 Andrew Cagney <cagney@redhat.com>
1442
1443 * gnu-nat.c: Remove "inline" function attribute.
1444 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1445
1446 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1447
1448 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1449 target.
1450
1451 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1452
1453 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1454 (frame_extra_info): Rename this struct to frv_unwind_cache.
1455 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1456 Add fields ``prev_sp'' and ``base''.
1457 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1458 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1459 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1460 Delete.
1461 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1462 Revise all callers. Fill in the unwind cache argument and make
1463 other adjustments to account for new frame mechanisms.
1464 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1465 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1466 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1467 (frv_frame_unwind, frv_frame_base): New structs.
1468 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1469 additional arguments expected by this method and adjust function
1470 body accordingly.
1471 (frv_gdbarch_init): Remove calls to the following functions:
1472 set_gdbarch_deprecated_init_frame_pc(),
1473 set_gdbarch_deprecated_saved_pc_after_call(),
1474 set_gdbarch_deprecated_frame_chain(),
1475 set_gdbarch_deprecated_frame_saved_pc(),
1476 set_gdbarch_deprecated_frame_init_saved_regs(),
1477 set_gdbarch_deprecated_push_arguments(),
1478 set_gdbarch_deprecated_push_return_address(),
1479 set_gdbarch_deprecated_pop_frame(),
1480 set_gdbarch_deprecated_call_dummy_words(),
1481 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1482 set_gdbarch_deprecated_init_extra_frame_info(),
1483 set_gdbarch_deprecated_dummy_write_sp(), and
1484 set_gdbarch_deprecated_pc_in_call_dummy().
1485 Add calls to the following functions:
1486 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1487 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1488 frame_base_set_default().
1489 * Makefile.in (frv-tdep.o): Update dependencies.
1490
1491 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1492
1493 * dwarf2-frame.c (read_encoded_value): Add support for
1494 DW_EH_PE_aligned encoding.
1495
1496 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1497
1498 * infrun.c (normal_stop): Don't print a message if the inferior
1499 has exited.
1500
1501 2003-09-08 Jim Blandy <jimb@redhat.com>
1502
1503 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1504 * dbxread.c: #include "gdb_assert.h".
1505 (read_dbx_symtab): If the objfile has no .data section, use the
1506 section index for the .bss section instead.
1507
1508 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1509
1510 * frame.c (deprecated_safe_get_selected_frame): New function.
1511 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1512 * findvar.c (read_var_value): Call it.
1513
1514 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1515
1516 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1517 (sh64-tdep.o): Add dependencies.
1518 * configure.tgt: Add FIXME to sh-*-linux*.
1519 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1520 (sh_gdbarch_init): Always set correct sh_show_regs function
1521 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1522 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1523 * sh64-tdep.c: New file, containing all sh64 related code from
1524 sh-tdep.c.
1525 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1526 * config/sh/linux.mt (TDEPFILES): Ditto.
1527 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1528 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1529 * config/sh/wince.mt (TDEPFILES): Ditto.
1530
1531 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1532
1533 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1534 (stop_wait_callback): Handle !lp->signalled also.
1535 (lin_lwp_has_pending, flush_callback): New functions.
1536 (lin_lwp_wait): Call flush_callback.
1537 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1538 (linux_proc_pending_signals): New function.
1539 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1540
1541 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1542
1543 From Nick Kelsey <nickk@ubicom.com>:
1544 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1545 when the stop PC is at the beginning of a function also.
1546
1547 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1548
1549 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1550 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1551
1552 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1553
1554 * sol-thread.c: Include "gdb_string.h".
1555
1556 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1557
1558 * gcore.c: Reorder include files in alphabetical order. Include
1559 "gdb_assert.h". Various coding style fixes.
1560 (derive_stack_segment, derive_heap_segment): Replace check for
1561 non-null BOTTOM and TOP with gdb_assert.
1562 (derive_heap_segment): Replace check for successful creation of
1563 ZERO with gdb_assert.
1564 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1565
1566 2003-09-04 Andrew Cagney <cagney@redhat.com>
1567
1568 * thread-db.c (verbose_dlsym): New function.
1569 (thread_db_load): Use verbose_dlsym
1570 (thread_db_new_objfile): Print that libthread_db was loaded, and
1571 that thread debugging was enabled.
1572
1573 2003-09-04 Andrew Cagney <cagney@redhat.com>
1574
1575 * configure.tgt: Add "mips64*-*-*" target. Delete
1576 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1577 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1578 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1579 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1580 mips*-sony-*, and mips64*-*-elf* targets.
1581 * config/mips/embedl.mt: Delete file.
1582 * config/mips/embedl64.mt: Delete file.
1583 * config/mips/mips.mt: Delete file.
1584 * config/mips/mips64.mt: Delete file.
1585 * config/mips/tm-embed.h: Delete file.
1586 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1587 * config/mips/embed64.mt: Delete out-of-date comment.
1588
1589 2003-09-04 Andrew Cagney <cagney@redhat.com>
1590
1591 * hppa-tdep.c (hppa_gdbarch_init): Set
1592 "have_nonsteppable_watchpoint".
1593 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1594 * mips-tdep.c (mips_dump_tdep): Do not print
1595 HAVE_NONSTEPPABLE_WATCHPOINT.
1596 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1597 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1598 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1599 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1600
1601 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1602
1603 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1604 unused code. Add comment.
1605
1606 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1607
1608 * breakpoint.c (watchpoint_check): Check for pc being in an
1609 epilogue if watchpoint frame couldn't be found.
1610
1611 2003-09-04 Andrew Cagney <cagney@redhat.com>
1612
1613 * Makefile.in: Re-generate all dependencies.
1614
1615 2003-09-03 Andrew Cagney <cagney@redhat.com>
1616
1617 * arch-utils.h (legacy_print_insn): Delete declaration.
1618 * arch-utils.c (legacy_print_insn): Delete function.
1619 * disasm.c (deprecated_tm_print_insn_info): Delete.
1620 (_initialize_disasm): Delete function, contained code initializing
1621 deprecated_tm_print_insn_info.
1622 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1623 (deprecated_tm_print_insn_info): Delete.
1624 (TARGET_PRINT_INSN): Do not provide a default.
1625 * gdbarch.h, gdbarch.c: Re-generate.
1626
1627 2003-09-03 Andrew Cagney <cagney@redhat.com>
1628
1629 * disasm.c (fprintf_disasm): New function.
1630 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1631 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1632 reverts 2003-08-14 change.
1633 (_initialize_disasm): Call "init_disassemble_info", instead of
1634 INIT_DISASSEMBLE_INFO_NO_ARCH.
1635
1636 2003-09-03 Michael Snyder <msnyder@redhat.com>
1637
1638 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1639
1640 2003-09-03 Andrew Cagney <cagney@redhat.com>
1641
1642 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1643 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1644 * symfile.c (syms_from_objfile): Update.
1645 (reread_symbols): `Update
1646 * exec.c (exec_file_attach): Update.
1647 (exec_file_attach): Update.
1648 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1649 2003-08-29 change.
1650 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1651
1652 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1653
1654 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1655 trad-frame.h.
1656 (arm_get_cache): Delete macro.
1657 (struct arm_prologue_cache): Update comments. Make saved_regs into
1658 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1659 to prev_sp.
1660 (thumb_scan_prologue): Update for cache changes. Don't call
1661 DEPRECATED_PC_IN_CALL_DUMMY.
1662 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1663 argument and use it in desperation search for our prologue. Do not
1664 search past the specified PC.
1665 (arm_make_prologue_cache): Simplify.
1666
1667 (arm_prologue_this_id, arm_prologue_prev_register)
1668 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1669 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1670 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1671 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1672 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1673
1674 (arm_frame_chain_valid, arm_find_callers_reg)
1675 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1676 (arm_pop_frame): Delete obsolete methods.
1677 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1678
1679 (arm_gdbarch_init): Update for new frame methods. Register prologue
1680 and sigtramp unwinders. Set the default frame base method.
1681
1682 * Makefile.in (arm-tdep.o): Update dependencies.
1683 * varobj.c (find_frame_addr_in_frame_chain): Call
1684 get_frame_base_address.
1685 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1686
1687 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1688
1689 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1690 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1691 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1692 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1693 Take NEXT_FRAME and CACHE arguments. Call
1694 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1695 Set unwound_pc in CACHE instead of modifying the frame argument.
1696 Don't bother checking the frame type when looking for sigtramp
1697 frames.
1698 (arm_make_prologue_cache, arm_frame_chain)
1699 (arm_init_extra_frame_info): New functions.
1700
1701 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1702
1703 * arm-tdep.c (arm_get_cache): Define.
1704 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1705 unwound_sp, unwound_pc, and saved_regs.
1706 (thumb_scan_prologue): Take a cache instead of the frame.
1707 (arm_scan_prologue): Likewise.
1708 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1709 instead of a temporary frame.
1710 (arm_init_extra_frame_info): Allocate and use a cache.
1711 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1712
1713 2003-09-03 Andrew Cagney <cagney@redhat.com>
1714
1715 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1716 * config/mips/wince.mt (TM_CLIBS): Ditto.
1717 * config/sh/wince.mt (TM_CLIBS): Ditto.
1718 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1719 * config/sparc/sp64.mt (CC): Delete.
1720
1721 2003-09-03 Andrew Cagney <cagney@redhat.com>
1722
1723 * defs.h: Do not include "arch-utils.h".
1724 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1725 GDB_MULTI_ARCH_PURE.
1726 * configure.in (GDB_MULTI_ARCH): Do not define.
1727 * configure, config.in: Regenerate.
1728 * configure.tgt: Do not set variable "gdb_multi_arch".
1729 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1730 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1731 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1732 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1733 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1734 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1735 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1736 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1737 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1738 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1739 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1740 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1741 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1742 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1743 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1744 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1745 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1746 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1747
1748 2003-08-30 Michael Chastain <mec@shout.net>
1749
1750 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1751 * config/m68k/nm-hp300hpux.h: Delete.
1752 * config/m68k/tm-hp300hpux.h: Delete.
1753 * config/m68k/xm-hp300hpux.h: Delete.
1754 * config/m68k/xm-hp300bsd.h: Delete.
1755 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1756 tm-hp300hpux.h, xm-hp300hpux.h.
1757 * somsolib.c: Remove comment about hp300 shared libraries.
1758
1759 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1760
1761 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1762 Only define PTRACE_GET_THREAD_AREA is not already defined.
1763 Various style fixes in code and comments and some additional
1764 spelling fixes in comments. Move after functions dealing with
1765 debug registers.
1766 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1767 Fix coding-style.
1768
1769 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1770 frame_unwind_register_unsigned instead of
1771 frame_unwind_unsigned_register.
1772
1773 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1774
1775 * configure.in: Search for gethostbyname in libnsl.
1776 * configure: Regenerated.
1777
1778 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1779
1780 * configure.in: Remove redundant AC_MSG_RESULT in check for
1781 uintptr_t in stdint.h.
1782 * configure: Regenerated.
1783
1784 * amd64-nat.h (struct regcache): Add opaque declaration.
1785
1786 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1787 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1788 Change "register array" to "register cache" in comments.
1789 (x86_64_linux_gregset64_reg_offset): New variable.
1790 (GETREGS_SUPPLIES): Remove macro.
1791 (supply_gregset): Call amd64_supply_native_gregset instead of
1792 x86_64_linux_supply_gregset.
1793 (fill_gregset): Rename `regno' to `regnum'. Call
1794 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1795 (store_regs): Rename `regno' to `regnum'.
1796 (store_fpregs): Rename `regno' to `regnum'.
1797 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1798 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1799 Reorganize function a bit.
1800 (store_inferior_registers): Rename `regno' to `regnum'. Use
1801 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1802 Reorganize function a bit.
1803 (_initialize_x86_64_linux_nat): New function.
1804 * config/i386/x86-64linux.mh.
1805
1806 2003-08-29 Andrew Cagney <cagney@redhat.com>
1807
1808 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1809 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1810 (target_remove_watchpoint): Delete macro.
1811 (target_insert_watchpoint): Delete macro.
1812 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1813 (remote_mips_stopped_by_watchpoint): Delete declaration.
1814 (remote_mips_remove_watchpoint): Delete declaration.
1815 (remote_mips_set_watchpoint): Delete declaration.
1816 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1817 * remote-mips.c (_initialize_remote_mips): Set
1818 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1819 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1820 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1821 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1822 (mips_stopped_by_watchpoint): Rename
1823 remote_mips_stopped_by_watchpoint.
1824 (mips_can_hardware_watchpoint): Rename
1825 remote_mips_can_use_hardware_watchpoint, update function
1826 signature.
1827
1828 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1829
1830 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1831 USER_DS. We haven't given them a register number yet.
1832
1833 * amd64-nat.h: New file.
1834 * amd64-nat.c: New file.
1835 * amd64fbsd-nat.c: Include "amd64-nat.h".
1836 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1837 (amd64fbsd32_r_reg_offset): New variable.
1838 (supply_gregset): Simply call amd64_supply_native_gregset.
1839 (fill_gregset): Rename `regno' to `regnum'. Simply call
1840 amd64_collect_native_gregset.
1841 (fill_fpregset): Rename `regno' to `regnum'.
1842 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1843 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1844 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1845 `fpregset_t'. Call amd64_supply_native_gregset instead of
1846 supply_gregset. Call x86_64_supply_fxsave instead of
1847 supply_fpregset.
1848 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1849 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1850 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1851 `fpregset_t'. Call amd64_collect_native_gregset instead of
1852 fill_gregset. Call x86_64_collect_fxsave instead of
1853 fill_fpregset.
1854 (_initialize_am64fbsd_nat): Initialize
1855 amd64_native_gregset32_reg_offset and
1856 amd64_native_gregset64_reg_offset.
1857 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1858
1859 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1860 null pointer. Fix typo in comment.
1861
1862 * regcache.c (supply_register): Reimplement to call
1863 regcache_raw_supply.
1864 (regcache_collect): Reimplement by calling regcache_raw_collect.
1865
1866 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1867
1868 * regcache.c (register_buffer): Consitify first argument.
1869 (regcache_raw_supply, regcache_raw_collect): New
1870 functions.
1871
1872 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1873
1874 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1875 by Nathan J. Williams.
1876
1877 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1878
1879 * lin-lwp.c (wait_lwp): New function, copied from
1880 stop_wait_callback. Clean up.
1881 (stop_wait_callback): Use wait_lwp.
1882
1883 2003-08-28 Andrew Cagney <cagney@redhat.com>
1884
1885 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1886 flavour and disassembler options.
1887 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1888 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1889 deprecated_tm_print_insn_info.
1890
1891 2003-08-27 Andrew Cagney <cagney@redhat.com>
1892
1893 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1894 Use target_read_memory.
1895 (s390_get_frame_info): Update. Do not reference
1896 deprecated_tm_print_insn_info.
1897 (s390_check_function_end, s390_is_sigreturn): Ditto.
1898
1899 2003-08-27 Andrew Cagney <cagney@redhat.com>
1900
1901 * Makefile.in (cris-tdep.o): Update dependencies.
1902 * cris-tdep.c: Include "gdb_assert.h".
1903 (cris_gdbarch_init): Set print_insn.
1904 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1905 (cris_delayed_get_disassembler): Simplify, directly call the
1906 disassembler returned by cris_get_disassembler.
1907 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1908 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1909 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1910 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1911 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1912 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1913 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1914 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1915 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1916 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1917 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1918 (gdb_print_insn_sparc): Delete function.
1919 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1920 deprecated_tm_print_insn_info.
1921 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1922 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1923 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1924 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1925 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1926 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1927 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1928 (s390_gdbarch_init): Set print_insn.
1929
1930 2003-08-27 Andrew Cagney <cagney@redhat.com>
1931
1932 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1933 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1934 * infcall.c (call_function_by_hand): Convert the entry point
1935 address into a code address.
1936
1937 2003-08-27 Andrew Cagney <cagney@redhat.com>
1938
1939 * dsrec.c: Include "gdb_string.h".
1940 * Makefile.in (dsrec.o): Update dependencies.
1941
1942 2003-08-27 Michael Chastain <mec@shout.net>
1943
1944 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1945
1946 2003-08-27 Andrew Cagney <cagney@redhat.com>
1947
1948 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1949 (alpha_osf1_init_abi): Do not set call_dummy_address.
1950
1951 2003-08-27 David Carlton <carlton@kealia.com>
1952
1953 From Randolph Chung <tausq@debian.org>:
1954 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1955 compiles with -Wformat-nonliteral -Werror.
1956
1957 2003-08-26 Jim Blandy <jimb@redhat.com>
1958
1959 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1960 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1961 bfd_lookup_symbol, since we only want symbols in code sections.
1962 (look_for_base): Pass zero as the SECT_FLAGS argument to
1963 bfd_lookup_symbol, since we're not concerned about which section
1964 the symbol is in.
1965
1966 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1967
1968 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1969 we are frameless or the return address register is already known.
1970
1971 2003-08-26 Andrew Cagney <cagney@redhat.com>
1972
1973 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1974 in size. Add comments.
1975
1976 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1977
1978 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1979 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1980
1981 2003-08-26 Jason Merrill <jason@redhat.com>
1982
1983 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1984 case out of #ifdef MIPS block.
1985
1986 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1987
1988 PR java/1322
1989 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1990 available before calling SECT_OFF_TEXT.
1991 * PROBLEMS: Remove description of java/1322.
1992
1993 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1994
1995 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1996 bof, and nat0-nat127 as pseudo-registers.
1997 (ia64_frame_cache): New struct used to cache frame info.
1998 (ia64_register_reggroup_p): New routine used to override default
1999 register grouping so registers without names are still saved and
2000 restored.
2001 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
2002 pseudo values.
2003 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2004 (ia64_pseudo_register_write): New routine to write pseudo-registers.
2005 (ia64_alloc_frame_cache): New routine to create a new
2006 ia64_frame_cache.
2007 (examine_prologue): Change prototype to add next_frame pointer.
2008 Assume frameless until otherwise proven. Verify that the cfm for
2009 current frame matches the cfm that should occur for the prologues
2010 alloc insn and if equal, mark as not frameless. At end of routine,
2011 if not frameless, calculate registers for the previous frame and store
2012 in the cache, if a cache is provided.
2013 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2014 and pass 0 for next_frame.
2015 (ia64_store_return_value): Change to use convert_typed_floating()
2016 instead of calling ia64_convert_to_raw().
2017 (ia64_extract_return_value): Change to use convert_typed_floating()
2018 instead of calling ia64_convert_to_virtual().
2019 (ia64_frame_cache): New routine to support new frame model.
2020 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2021 (ia64_frame_sniffer): Ditto.
2022 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2023 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2024 (ia64_sigtramp_frame_prev_register): Ditto.
2025 (ia64_sigtramp_frame_sniffer): Ditto.
2026 (ia64_frame_base_address): Ditto.
2027 (ia64_extract_struct_value_address): Change to issue error message.
2028 (ia64_frame_align): New routine to align sp.
2029 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
2030 (ia64_push_arguments): Removed. Logic moved to
2031 ia64_push_dummy_call().
2032 (ia64_push_return_address): Ditto.
2033 (ia64_unwind_dummy_id): New function.
2034 (ia64_unwind_pc): Ditto.
2035 (ia64_convert_register_p): Ditto.
2036 (ia64_register_to_value): Ditto.
2037 (ia64_value_to_register): Ditto.
2038 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2039 (ia64_register_byte, ia64_register_raw_size): Ditto.
2040 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2041 (ia64_saved_pc_after_call): Ditto.
2042 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2043 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2044 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2045 (ia64_register_convert_to_raw): Ditto.
2046 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2047 (ia64_init_extra_frame_info): Ditto.
2048 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2049 (ia64_gdbarch_init): Remove registering of deprecated functions that
2050 are no longer used. Add registration of new gdbarch functions.
2051 Remove registering deprecated_write_sp. Replace
2052 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2053 Delete set_gdbarch_deprecated_register_convertible(),
2054 set_gdbarch_deprecated_register_convert_to_virtual(), and
2055 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2056 set_gdbarch_deprecated_register_size(),
2057 set_gdbarch_deprecated_register_bytes(),
2058 set_gdbarch_pcregnum(),
2059 set_gdbarch_deprecated_register_byte(),
2060 set_gdbarch_deprecated_register_raw_size(),
2061 set_gdbarch_deprecated_max_register_raw_size(),
2062 set_gdbarch_deprecated_register_virtual_size(),
2063 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2064 Replace set_gdbarch_deprecated_extract_return_value() with
2065 set_gdbarch_extract_return_value(). Remove calls to:
2066 set_gdbarch_deprecated_saved_pc_after_call();
2067 set_gdbarch_deprecated_frame_chain(),
2068 set_gdbarch_deprecated_frame_saved_pc(),
2069 set_gdbarch_deprecated_frame_init_saved_regs(),
2070 set_gdbarch_deprecated_get_saved_register(),
2071 set_gdbarch_deprecated_call_dummy_words(),
2072 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2073 set_gdbarch_deprecated_init_extra_frame_info(),
2074 set_gdbarch_deprecated_frame_args_address(),
2075 set_gdbarch_deprecated_frame_locals_address(),
2076 and set_gdbarch_deprecated_dummy_write_sp().
2077 Add set_gdbarch_convert_register_p(),
2078 set_gdbarch_register_to_value(),
2079 set_gdbarch_value_to_register(),
2080 set_gdbarch_push_dummy_call(),
2081 set_gdbarch_frame_align(),
2082 set_gdbarch_unwind_dummy_id(),
2083 set_gdbarch_unwind_pc(),
2084 frame_unwind_append_sniffer(),
2085 frame_unwind_append_sniffer(),
2086 and frame_base_set_default().
2087
2088 2003-08-25 Chris Demetriou <cgd@broadcom.com>
2089
2090 * configure.tgt: Document need for special "mipsisa64" handling.
2091 (mipsisa64*-*-linux64): Handle as target linux64.
2092 (mipsisa64*-*-*): Handle as target embed64.
2093
2094 2003-08-18 Michael Chastain <mec@shout.net>
2095
2096 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2097 objfile bug.
2098
2099 2003-08-24 Mark Kettenis <kettenis@gnu.org>
2100
2101 * i387-tdep.h: Update copyright date.
2102 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2103
2104 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2105 CFLAGS games to reflect reality.
2106
2107 2003-08-24 Andrew Cagney <cagney@redhat.com>
2108
2109 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2110 GDB_MULTI_ARCH is always non-zero.
2111 * osabi.c (_initialize_gdb_osabi): Ditto.
2112 (gdbarch_init_osabi): Ditto.
2113 * sparc-tdep.c: Ditto for #if code.
2114
2115 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2116
2117 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2118 Update comments.
2119 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2120 comments.
2121 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2122 x86_64_supply_fxsave.
2123 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2124 x86_64_supply_fxsave.
2125 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2126 x86_64_supply_fxsave.
2127
2128 2003-08-23 Andreas Jaeger <aj@suse.de>
2129
2130 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2131 i387_supply_fxsave.
2132
2133 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2134
2135 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2136 i387_supply_register.
2137 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2138 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2139 i387_supply_fsave.
2140 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2141 i387_supply_fxsave.
2142 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2143 i387_supply_fsave.
2144 * i386bsd-nat.c (supply_fpregset): Adjust call to
2145 i387_supply_fsave.
2146 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2147 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2148 supply_fpregset.
2149 (store_inferior_registers): Remove extraneous whitespace. Call
2150 i387_fill_fsave instead of fill_fpregset.
2151 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2152 (supply_fpregset): Likewise.
2153 * i386v4-nat.c (supply_fpregset): Adjust call to
2154 i387_supply_fsave.
2155 * i386-interix-nat.c (supply_fpregset): Adjust call to
2156 i387_supply_fsave.
2157 * i386-linux-nat.c (supply_fpregset): Adjust call to
2158 i387_supply_fsave.
2159 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2160 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2161 i387supply_fsave and i387_supply_fxsave.
2162 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2163 Incorporate code from `i387_supply_register.
2164 (i387_supply_register): Remove.
2165 (i387_supply_fxsave): Add `regnum' argument.
2166 Update comments.
2167 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2168 prototype.
2169 (i387_supply_register): remove prototype.
2170 Update comments.
2171
2172 2003-08-22 Michael Chastain <mec@shout.net>
2173
2174 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2175 Add lines for files in gdb/testsuite/gdb.cp/* that are
2176 still not 8.3 unique.
2177
2178 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
2179
2180 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2181 TYPE_VPTR_FIELDNO is valid.
2182
2183 2003-08-19 Mark Kettenis <kettenis@gnu.org>
2184
2185 * utils.c (set_width_command): Remove prototypes.
2186 (set_screen_size): New prototype.
2187 (init_page_info): Simplify by fetching the screen size from
2188 Readline. Call set_screen_size.
2189 (set_screen_size): New function.
2190 (set_width): Add missing whitespace in comment.
2191 (set_width_command): Call set_screen_size.
2192 (set_height_command): New function.
2193 (initialize_utils): Fix formatting. Make "set height" command
2194 call set_height_command. Remove redundant code that turns off
2195 pagination if output isn't a terminal. Remove redundant call to
2196 set_width_command.
2197
2198 2003-08-22 Mark Kettenis <kettenis@gnu.org>
2199
2200 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2201 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2202 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2203 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2204 `case' keyword.
2205 (sparc64_register_info): Give the reister with number
2206 SPARC64_STATE_REGNUM a name.
2207 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2208 %asi and %ccr.
2209 (sparc64_push_dummy_call): Take BIAS into account when checking
2210 stcak alignment.
2211 (sparc_software_single_step): Remove assertions that check whether
2212 NPC and NNPC were zero.
2213 (sparc_supply_rwindow): Make public. Merge functionality with
2214 sparc64_supply_rwindow.
2215 (sparc_fill_rwindow): Make public. Merge functionality with
2216 sparc64_fill_rwindow.
2217 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2218 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2219 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2220 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2221 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2222
2223 * reggroups.c: Add whitespace after declarations of local
2224 variables in functions.
2225
2226 2003-08-21 Michael Chastain <mec@shout.net>
2227
2228 * gdbtypes.h: Change array bound type from an int to enum.
2229
2230 2003-08-21 Andrew Cagney <cagney@redhat.com>
2231
2232 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2233 * config/sparc/tm-sparc.h: Ditto.
2234 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2235 unconditionally.
2236 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2237
2238 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2239
2240 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2241 (register_objfile_data, set_objfile_data, objfile_data): New
2242 prototypes.
2243 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2244 prototypes.
2245 (allocate_objfile): Call objfile_alloc_data.
2246 (free_objfile): Call objfile_free_data.
2247 (struct objfile_data): New.
2248 (struct objfile_data_registration): New.
2249 (struct objfile_data_registry): New.
2250 (objfile_data_registry): New variable.
2251 (register_objfile_data): New function.
2252 (objfile_alloc_data, objfile_free_data): New functions.
2253 (set_objfile_data, objfile_data): New functions.
2254 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2255 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2256 (_initialize_dwarf2_frame): New function and prototype.
2257
2258 2003-08-21 Andrew Cagney <cagney@redhat.com>
2259
2260 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2261 a specific architecture.
2262 * arch-utils.h (set_architecture_from_arch_mach): Delete
2263 declaration.
2264 (target_architecture_hook): Delete declaration.
2265 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2266 (default_float_format): Assume GDB_MULTI_ARCH.
2267 (default_double_format): Assume GDB_MULTI_ARCH.
2268 (set_endian_from_file): Delete function.
2269 (arch_ok): Delete function.
2270 (set_arch): Delete function.
2271 (set_architecture_from_arch_mach): Delete function.
2272 (set_architecture_from_file): Delete function.
2273 (set_architecture): Assume GDB_MULTI_ARCH.
2274 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2275
2276 2003-08-21 Mark Kettenis <kettenis@gnu.org>
2277
2278 Rewrite FreeBSD/sparc64 native configuration.
2279 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2280 * sparc64fbsd-nat.c: New file.
2281 * sparc64fbsd-tdep.c: New file.
2282 * sparc64-tdep.c sparc64-tdep.h: New files.
2283 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2284 sparc64fbsd-tdep.o): New dependencies.
2285 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2286 and sparc64fbsd-tdep.c.
2287 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2288 * config/sparc/fbsd.mh: Remove copyright notice.
2289 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2290 sparcbsd-nat.o.
2291 * config/sparc/fbsd.mt: Remove copyright notice.
2292 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2293 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2294 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2295 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2296 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2297 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2298 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2299 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2300 "sparc/tm-sp64.h".
2301 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2302 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2303
2304 2003-08-21 Michael Chastain <mec@shout.net>
2305
2306 * symtab.h: Add doco on the space critical structures and
2307 some measurements of space usage.
2308
2309 2003-08-21 Michael Snyder <msnyder@redhat.com>
2310
2311 * tracepoint.c (trace_dump_command): Trace break address
2312 is subject to DECR_PC_AFTER_BREAK.
2313 (set_traceframe_context): Make "trace_line" an int.
2314 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2315
2316 2003-08-20 Michael Snyder <msnyder@redhat.com>
2317
2318 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2319 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2320 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2321 argument passing.
2322 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2323 functions, replace sh_push_dummy_call.
2324 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2325
2326 2003-08-20 Michael Chastain <mec@shout.net>
2327
2328 * gdbtypes.h (struct main_type): Rearrange to save space.
2329
2330 2003-08-20 Michael Snyder <msnyder@redhat.com>
2331
2332 * trad-frame.c: Comment typo fix.
2333
2334 2003-08-20 Michael Snyder <msnyder@redhat.com>
2335 Kevin Buettner <kevinb@redhat.com>
2336
2337 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2338 (frv_frame_init_saved_regs): Add declaration.
2339 (frame_extra_info): Add new field ``saved_regs''.
2340 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2341 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2342 Update frame related code.
2343 (frv_extract_struct_value_address): Adjust formatting.
2344 * Makefile.in (frv-tdep.o): Update dependencies.
2345 * config/frv/tm-frv.h (target_insert_watchpoint)
2346 (target_remove_watchpoint, target_insert_hw_breakpoint)
2347 (target_remove_hw_breakpoint): Delete these macros.
2348 (remote_insert_watchpoint, remote_remove_watchpoint)
2349 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2350 these declarations.
2351
2352 2003-08-20 Michael Chastain <mec@shout.net>
2353
2354 * defs.h (ENUM_BITFIELD): New macro.
2355 * symtab.h (ENUM_BITFIELD): Use it.
2356 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2357
2358 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2359
2360 * MAINTAINERS (write after approval): Add myself.
2361
2362 2003-08-18 Andrew Cagney <cagney@redhat.com>
2363
2364 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2365 * gdbarch.h, gdbarch.c: Re-generate.
2366 * infcall.c (call_function_by_hand): Adjust the SP by
2367 frame_red_zone_size before allocating any stack space.
2368 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2369 * x86-64-tdep.c (x86_64_frame_align): New function.
2370 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2371
2372 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2373 Remove code adjusting SP so that it skips over the Red Zone.
2374
2375 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2376
2377 * NEWS (New native configurations): Mention FreeBSD/amd64.
2378
2379 2003-08-18 Andrew Cagney <cagney@redhat.com>
2380
2381 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2382 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2383 "m68k_frame_p".
2384 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2385
2386 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2387
2388 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2389
2390 2003-08-18 Michal Ludvig <mludvig@suse.cz>
2391
2392 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2393 Define.
2394 * i386-linux-nat.c: Include "linux-nat.h".
2395 (child_post_startup_inferior): New function.
2396
2397 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2398
2399 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2400 at the start of a frameless function. This probably fixes PR
2401 backtrace/1338.
2402
2403 2003-08-17 Michael Chastain <mec@shout.net>
2404
2405 * symfile.c (find_sym_fns): Remove special case for apollo target.
2406
2407 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2408
2409 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2410 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2411 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2412 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2413 (linux_supports_tracevforkdone): New function.
2414 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2415 TRACEVFORKDONE.
2416 (child_follow_fork): Handle vfork.
2417 (linux_handle_extended_wait): Likewise. Also handle exec.
2418 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2419 * NEWS: Mention fork tracing.
2420
2421 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2422
2423 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2424
2425 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2426
2427 * Makefile.in (i386-linux-nat.o): Update dependencies.
2428 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2429 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2430 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2431 * i386-linux-nat.c: Include "linux-nat.h".
2432 (child_post_startup_inferior): New function.
2433 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2434 * infptrace.c (kill_inferior): Wrap in #ifdef.
2435 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2436 attaching to each LWP.
2437 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2438 (init_lin_lwp_ops): Fill in some more operations.
2439 * linux-nat.h (linux_enable_event_reporting)
2440 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2441 prototypes.
2442 * linux-nat.c (linux_enable_event_reporting): New function.
2443 (child_post_attach, linux_child_post_startup_inferior)
2444 (child_post_startup_inferior, child_follow_fork)
2445 (linux_handle_extended_wait, kill_inferior): New functions.
2446
2447 2003-08-16 Andrew Cagney <cagney@redhat.com>
2448
2449 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2450 * gdbarch.h, gdbarch.c: Re-generate.
2451
2452 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2453
2454 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2455
2456 2003-08-16 Andrew Cagney <cagney@redhat.com>
2457
2458 * NEWS: Mention that "set prompt-escape-char" was deleted.
2459 * top.c (get_prompt_1): Delete function.
2460 (gdb_prompt_escape):
2461 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2462 prompt-escape-char" command.
2463 (MAX_PROMPT_SIZE): Delete macro.
2464 (get_prompt): Simplify, do not call get_prompt_1.
2465
2466 2003-08-16 Andrew Cagney <cagney@redhat.com>
2467
2468 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2469 -Werror. -Wformat-nonliteral problems.
2470
2471 2003-08-15 J. Brobecker <brobecker@gnat.com>
2472
2473 Further multiarching work mostly for hppa64-*-hpux11:
2474 * hppa-tdep.h: New file.
2475 * hppa-tdep.c: #include hppa-tdep.c.
2476 (hppa32_num_regs): Renamed from hppa_num_regs.
2477 (hppa64_num_regs): New constant.
2478 (hppa64_call_dummy_breakpoint_offset): New constant.
2479 (hppa32_call_dummy_length): New constant.
2480 (hppa64_call_dummy_length): New constant.
2481 (hppa32_stack_align): Make name 32bit explicit.
2482 (hppa32_register_virtual_type): Likewise.
2483 (hppa32_extract_return_value): Likewise.
2484 (hppa32_use_struct_convention): Likewise.
2485 (hppa32_store_return_value): Likewise.
2486 (hppa64_register_virtual_type): New function.
2487 (hppa64_extract_return_value): New function.
2488 (hppa64_use_struct_convention): New function.
2489 (hppa64_store_return_value): New function.
2490 (hppa_frame_locals_address): Remove declaration, function does
2491 not exist anymore.
2492 (hppa_register_byte): Add support for PA64 ABI.
2493 (hppa_gdbarch_init): Add support for PA64 ABI.
2494 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2495 Make name 32bit explicit.
2496 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2497 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2498 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2499 (hppa64_hpux_frame_base_before_sigtramp): New function.
2500 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2501 * config/pa/tm-hppa64.h: Remove macros that are no longer
2502 necessary now that the gdbarch vector is properly setup.
2503 Transform some macros into function calls. Some minor cleanup.
2504 * config/pa/tm-hppah.h: Update function calls in macros
2505 following the function renaming in hppa-hpux-tdep.c.
2506 * Makefile.in (hppa_tdep_h): New variable.
2507 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2508
2509 2003-08-14 Michael Snyder <msnyder@redhat.com>
2510
2511 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2512
2513 2003-08-13 J. Brobecker <brobecker@gnat.com>
2514
2515 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2516 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2517 routine.
2518
2519 2003-08-13 Michael Snyder <msnyder@redhat.com>
2520
2521 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2522 (frv_saved_pc_after_call): Use deprecated ftype.
2523 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2524 (frv_remote_translate_xfer_address): Remove.
2525 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2526
2527 2003-08-13 J. Brobecker <brobecker@gnat.com>
2528
2529 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2530 initialization after the common gdbarch initialization, not before.
2531
2532 2003-08-13 J. Brobecker <brobecker@gnat.com>
2533
2534 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2535 (ADDR_BITS_REMOVE): Remove, redundant.
2536
2537 2003-08-13 J. Brobecker <brobecker@gnat.com>
2538
2539 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2540 gdbarch method to clear the 2 low bits of text addresses.
2541
2542 2003-08-12 Andrew Cagney <cagney@redhat.com>
2543
2544 * Makefile.in (dsrec.o): Update dependencies.
2545 * dsrec.c: Include "gdb_assert.h".
2546 (make_srec): Use snprintf instead of sprintf, use a literal format
2547 string.
2548
2549 2003-08-12 Andrew Cagney <cagney@redhat.com>
2550
2551 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2552 FRAME_OBSTACK_ZALLOC.
2553
2554 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2555
2556 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2557 SSE registers.
2558
2559 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2560
2561 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2562 amd64fbsd_sc_reg_offset): Add extern declarations.
2563 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2564 declarations.
2565
2566 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2567
2568 * MAINTAINERS (write after approval): Update my mail address.
2569
2570 2003-08-10 Andrew Cagney <cagney@redhat.com>
2571
2572 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2573
2574 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2575
2576 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2577 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2578 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2579 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2580 i386bsd_sc_reg_offset): Add extern declarations.
2581 * i386obsd-nat.c: Include "i386-tdep.h"
2582 (_initialize_i386obsd_nat): Remove extern declarations.
2583 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2584 declarations.
2585 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2586 declarations.
2587
2588 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2589 instead of frame_read_register.
2590 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2591 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2592 SP_REGNUM.
2593 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2594 instead of frame_unwind_unsigned_register. Use
2595 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2596 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2597 instead of read_register. Use builtin_type_void_data_ptr instead
2598 of builtin_type_void_func_ptr when extracting the address of the
2599 jmp_buf.
2600 (i386_extract_return_value, i386_store_return_value,
2601 i386_pseudo_register_read, i386_pseudo_register_write): Use
2602 register_size instead REGISTER_RAW_SIZE.
2603
2604 2003-08-10 Andrew Cagney <cagney@redhat.com>
2605
2606 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2607 sprintf. Make "name" constant.
2608
2609 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2610
2611 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2612 instead of frame_read_register.
2613 (i387_print_float_info): Use get_frame_register and
2614 get_frame_register_unsigned instead of frame_register_read.
2615
2616 * i386fbsd-nat.c: Include "i386-tdep.h".
2617 (child_resume): Make `eflags' an ULONGEST. Use
2618 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2619 instead of register_read and register_write.
2620
2621 * i386bsd-nat.c (fetch_inferior_registers,
2622 store_inferior_registers): Don't use && at the end of a line.
2623 (_initialize_i386bsd_nat): Fix typo.
2624
2625 * frame.c (_initialize_frame): Add missing backslash.
2626
2627 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2628 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2629 and supply_register instead of manipulating the register buffer
2630 directly.
2631
2632 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2633 * config/i386/nm-i386sol2.h
2634 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2635
2636 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2637 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2638 instructions that GCC likes to mingle into the prologue. Fixes
2639 gdb/1253 and gdb/1255.
2640
2641 2003-08-09 Andrew Cagney <cagney@redhat.com>
2642
2643 Fix GDB PR cli/926.
2644 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2645 * command.h (add_setshow_uinteger_cmd): Declare.
2646 * frame.c (set_backtrace_cmd): New function.
2647 (show_backtrace_cmd): New function.
2648 * frame.c (_initialize_frame): Replace "set/show
2649 backtrace-below-main" with "set/show backtrace past-main". Add
2650 command "set/show backtrace limit".
2651 (backtrace_past_main): Rename "backtrace_below_main".
2652 (backtrace_limit): New variable.
2653 (get_prev_frame): Update. Check the backtrace_limit.
2654
2655 2003-08-09 Andrew Cagney <cagney@redhat.com>
2656
2657 * defs.h (xstrprintf): Declare.
2658 * utils.c (xstrprintf): New function.
2659 * breakpoint.c (insert_breakpoints): Replace sprintf and
2660 non-literal format strings, with xstrprintf and cleanups.
2661 (delete_breakpoint,breakpoint_re_set): Ditto.
2662 (commands_command, insert_breakpoints): Ditto.
2663 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2664 (break_at_finish_command_1): Ditto.
2665
2666 2003-08-09 Andrew Cagney <cagney@redhat.com>
2667
2668 * MAINTAINERS (language support): List Adam Fedor as Objective C
2669 maintainer.
2670
2671 2003-08-08 J. Brobecker <brobecker@gnat.com>
2672
2673 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2674 are now multiarched.
2675
2676 2003-08-08 J. Brobecker <brobecker@gnat.com>
2677
2678 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2679 longer necessary now that hppa64 is partially multiarch'ed.
2680
2681 2003-08-08 Andrew Cagney <cagney@redhat.com>
2682
2683 * interps.c (interp_set): Check for a NULL "old_interp".
2684
2685 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2686
2687 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2688 (install-only): Support DESTDIR.
2689 (uninstall): Likewise.
2690 (install-gdbtk): Likewise.
2691
2692 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2693
2694 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2695 contains something meaningful at all times.
2696
2697 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2698
2699 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2700
2701 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2702
2703 * MAINTAINERS (write after approval): Added self.
2704
2705 2003-08-07 Andrew Cagney <cagney@redhat.com>
2706
2707 * inferior.h (AT_SYMBOL): Define.
2708 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2709 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2710 * mips-tdep.c (mips_call_dummy_address): Delete function.
2711 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2712 set call_dummy_address.
2713
2714 2003-08-07 Andrew Cagney <cagney@redhat.com>
2715
2716 * language.c (op_error): Delete function.
2717 (binop_type_check): Delete function.
2718 * language.h (type_op_error, range_op_error): Delete macros.
2719 (op_error): Delete declaration.
2720
2721 2003-08-07 Andrew Cagney <cagney@redhat.com>
2722
2723 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2724
2725 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2726
2727 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2728 (x86_64_push_arguments): Skip the red zone.
2729
2730 2003-08-05 Andrew Cagney <cagney@redhat.com>
2731
2732 * reggroups.c (reggroup_next): Check for the final entry.
2733
2734 2003-08-04 Andrew Cagney <cagney@redhat.com>
2735
2736 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2737 * cli/cli-script.c (define_command): Call query directly, instead
2738 of passing it a buffer.
2739 * ocd.c (ocd_error): Pass error a constant format string.
2740 * remote-mips.c (mips_error): Use fputs_filtered.
2741
2742 * solib-svr4.c (_initialize_svr4_solib): Update
2743 register_gdbarch_data call.
2744 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2745
2746 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2747 (register_gdbarch_data): Delete "free" parameter. Update
2748 comments.
2749 * gdbarch.h, gdbarch.c: Re-generate.
2750 * reggroups.c (_initialize_reggroup): Update.
2751 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2752 * frame-base.c (_initialize_frame_base): Update.
2753 * frame-unwind.c (_initialize_frame_unwind): Update.
2754 * user-regs.c (_initialize_user_regs): Update.
2755 * remote.c (_initialize_remote): Update.
2756 * regcache.c (_initialize_regcache): Update.
2757
2758 * regcache.c (xfree_regcache_descr): Delete function.
2759 (_initialize_regcache): Update call to register_gdbarch_data.
2760 (init_regcache_descr, init_legacy_regcache_descr): Use
2761 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2762
2763 * remote.c (free_remote_state): Delete function.
2764 (_initialize_remote): Update register_gdbarch_data.
2765 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2766 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2767
2768 2003-08-04 Andrew Cagney <cagney@redhat.com>
2769
2770 * reggroups.c (struct reggroup_el): Define.
2771 (struct reggroups): Delete field "nr_group". Replace array
2772 "group" with a "first" to "last" linked list.
2773 (reggroups_init): Update. Allocate using gdbarch's obstack.
2774 (reggroups_free): Delete function.
2775 (add_group): Update. Add "el" parameter.
2776 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2777 (default_groups): Update.
2778 (reggroup_next): Replace reggroups.
2779 (reggroups_dump): Update.
2780 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2781 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2782 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2783
2784 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2785
2786 * Makefile.in (tui-interp.o): Update dependencies.
2787
2788 2003-08-04 David Carlton <carlton@kealia.com>
2789
2790 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2791 to internal_error call.
2792 * source.c (forward_search_command): Add "%s" format argument.
2793 (reverse_search_command): Ditto.
2794 * top.c (quit_confirm): Ditto.
2795 * cli/cli-setshow.c (do_setshow_command): Ditto.
2796 * cp-valprint.c (cp_print_class_method): Replace
2797 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2798 (cp_print_class_member): Ditto.
2799 * event-top.c (command_line_handler): Ditto.
2800 * linux-proc.c (linux_info_proc_cmd): Ditto.
2801 * p-typeprint.c (pascal_type_print_base): Ditto.
2802 * p-valprint.c (pascal_object_print_class_method): Ditto.
2803 (pascal_object_print_class_member): Ditto.
2804 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2805 * remote.c (remote_cisco_section_offsets): Ditto.
2806 * top.c (command_line_input): Ditto.
2807 * utils.c (vwarning,error_stream,quit): Ditto.
2808 * valprint.c (print_floating,print_binary_chars)
2809 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2810
2811 2003-08-04 Andrew Cagney <cagney@redhat.com>
2812
2813 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2814
2815 2003-08-02 Andrew Cagney <cagney@redhat.com>
2816
2817 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2818 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2819 amd64fbsd-nat.c.
2820
2821 2003-08-02 Andrew Cagney <cagney@redhat.com>
2822
2823 * Makefile.in: Update all dependencies and definitions.
2824
2825 2003-08-02 Adam Fedor <fedor@gnu.org>
2826
2827 * linespec.c (is_objc_method_format): New function
2828 (decode_line_1, locate_first_half): Use it.
2829 Fixes PR objc/1298
2830
2831 2003-08-01 Andrew Cagney <cagney@redhat.com>
2832
2833 * NEWS: Mention that m32r is multi-arch.
2834 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2835 * configure.tgt: Recognize m32r-*-*.
2836 * config/m32r/tm-m32r.h: Delete file.
2837 * config/m32r/m32r.mt: New file.
2838 * m32r-rom.c (m32r_upload_command): Use hostent only when
2839 gethostname succeeds, in order to avoid a compilation
2840 warning.
2841 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2842 compiler warning.
2843
2844 2003-08-01 Michael Snyder <msnyder@redhat.com>
2845
2846 * sh-tdep.c (sh_frame_align): New gdbarch method.
2847 (sh_gdbarch_init): Set up frame_align method.
2848
2849 2003-07-31 Michael Snyder <msnyder@redhat.com>
2850
2851 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2852 which is already covered by the new frames infrastructure.
2853
2854 2003-07-31 Andrew Cagney <cagney@redhat.com>
2855
2856 * user-regs.c (struct user_reg): Add "next" link.
2857 (struct user_regs): Replace "user" with "first" and "last" links.
2858 (append_user_reg): Add pre-allocated "reg" parameter.
2859 (builtin_user_regs): Provide initial value for "last".
2860 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2861 (user_regs_init): Allocate memory from the gdbarch obstack.
2862 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2863 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2864 linked list.
2865 (usernum_to_user_reg): New function.
2866 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2867 (value_of_user_reg): Use usernum_to_user_reg.
2868 (user_regs_free): Delete function.
2869 (_initialize_user_regs): Update register_gdbarch_data call.
2870
2871 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2872
2873 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2874
2875 2003-07-30 Michael Snyder <msnyder@redhat.com>
2876
2877 * value.h (value_being_returned): Add a struct_addr argument.
2878 * infcall.c (call_function_by_hand): Pass struct_addr to
2879 value_being_returned.
2880 * infcmd.c (print_return_value): Pass zero as struct_addr.
2881 * values.c (value_being_returned): If struct_addr is passed,
2882 use it instead of trying to recover it from the inferior.
2883
2884 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2885
2886 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2887 the prologue analyzer won't need to attempt to extract the pc
2888 value from the woefully incomplete dummy frame.
2889 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2890 possible. Disable code which modifies the frame.
2891
2892 2003-07-28 Andrew Cagney <cagney@redhat.com>
2893
2894 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2895 to level 2.
2896 (annotate_breakpoints_table, annotate_record): Ditto.
2897 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2898 (annotate_field_name_end, annotate_field_value): Ditto.
2899 (annotate_field_end, annotate_frame_source_begin): Ditto.
2900 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2901 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2902 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2903 (annotate_frame_address_end, annotate_frame_address): Ditto.
2904 (annotate_frame_args, annotate_frame_end): Ditto.
2905 (annotate_frame_where, annotate_arg_begin): Ditto.
2906 (annotate_arg_name_end, annotate_arg_value): Ditto.
2907 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2908 (annotate_function_call, annotate_signal_name): Ditto.
2909 (annotate_signal_string, annotate_signal_name_end): Ditto.
2910 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2911 (annotate_value_begin, annotate_value_history_value): Ditto.
2912 (annotate_value_history_end, annotate_value_end): Ditto.
2913 (annotate_display_begin, annotate_display_number_end): Ditto.
2914 (annotate_display_format, annotate_display_expression): Ditto.
2915 (annotate_display_expression_end, annotate_display_value): Ditto.
2916 (annotate_display_end, annotate_array_section_begin): Ditto.
2917 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2918 (annotate_elt, annotate_array_section_end): Ditto.
2919
2920 2003-07-28 Andrew Cagney <cagney@redhat.com>
2921
2922 * regcache.c (struct regcache_descr): Update comments on
2923 nr_raw_registers.
2924 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2925 sizeof_raw_register_valid_p.
2926 (init_regcache_descr): Set nr_raw_registers and
2927 sizeof_raw_register_valid_p before calling
2928 init_legacy_regcache_descr.
2929
2930 2003-07-28 Andrew Cagney <cagney@redhat.com>
2931
2932 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2933 MOD NUM_REGS.
2934
2935 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2936
2937 * thread.c (info_threads_command): Use get_selected_frame ().
2938 Check that there is at least one non-sentinel frame.
2939
2940 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2941
2942 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2943 (m68hc11_pop_frame): Remove.
2944 (m68hc11_frame_saved_pc): Remove.
2945 (m68hc11_frame_chain): Remove.
2946 (m68hc11_frame_init_saved_regs): Remove.
2947 (m68hc11_init_extra_frame_info): Remove.
2948 (m68hc11_store_struct_return): Remove.
2949 (m68hc11_saved_pc_after_call): Remove.
2950
2951 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2952
2953 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2954 frame unwind information.
2955 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2956 and adapted for frame unwinding.
2957 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2958 (m68hc11_unwind_pc): New function.
2959 (m68hc11_frame_unwind_cache): New function to analyze frames.
2960 (m68hc11_frame_this_id): New function to create new frame struct.
2961 (m68hc11_frame_prev_register): New function to unwind a register from
2962 the frame.
2963 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2964 (m68hc11_frame_p): New function for the above.
2965 (m68hc11_frame_base_address): New function to return fp of frame.
2966 (m68hc11_frame_args_address): Update for frame.
2967 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2968 (m68hc11_unwind_sp): New function.
2969 (m68hc11_unwind_dummy_id): New function.
2970 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2971 calls.
2972
2973 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2974
2975 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2976 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2977 when we are beyond the current pc.
2978
2979 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2980
2981 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2982 from m68hc11_push_arguments.
2983 (m68hc11_push_arguments): Remove.
2984 (m68hc11_push_return_address): Remove.
2985 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2986 handlers; remove deprecated_extra_stack_alignment_needed.
2987
2988 2003-07-27 Andrew Cagney <cagney@redhat.com>
2989
2990 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2991 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2992 REAL_PC and not the pointer.
2993 * hppa-hpux-tdep.c: Include frame.h
2994
2995 2003-07-27 Andrew Cagney <cagney@redhat.com>
2996
2997 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2998 GDB_MULTI_ACH_PARTIAL.
2999
3000 2003-07-27 Andrew Cagney <cagney@redhat.com>
3001
3002 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3003 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3004 operator at start and not end of line.
3005 (decode_prologue): Ditto.
3006 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3007 frame_unwind_register_unsigned instead of
3008 frame_unwind_unsigned_register.
3009 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3010 read_register.
3011 (m32r_push_dummy_call): Use register_size instead of
3012 REGISTER_RAW_SIZE.
3013 (m32r_frame_sniffer): Replace m32r_frame_p.
3014 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3015 * m32r-rom.c (report_transfer_performance): Delete extern
3016 declaration.
3017 (m32r_load, m32r_upload_command): Use print_transfer_performance
3018 instead of report_transfer_performance.
3019 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3020 / add_show_from_set.
3021
3022 2003-07-26 Andrew Cagney <cagney@redhat.com>
3023
3024 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3025 store_return_value and extract_struct_value_address.
3026
3027 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
3028
3029 PR c++/1267
3030 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3031 NULL, default to the section containing PC.
3032
3033 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3034
3035 * NEWS: Mention "regs" deprecated for m68hc11 too.
3036
3037 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3038 (m68hc11_print_register): New function to print out one register.
3039 (m68hc11_print_registers_info): New function to print registers.
3040 (show_regs): Deprecate and use the above.
3041 (m68hc11_gdbarch_init): Install the print_registers_info.
3042
3043 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3044
3045 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3046 that we have a SIGTRAP before returning non-zero.
3047
3048 2003-07-23 Michal Ludvig <mludvig@suse.cz>
3049 Elena Zannoni <ezannoni@redhat.com>
3050
3051 * linespec.c (decode_line_2): Avoid crash if
3052 find_function_start_sal() returns empty record.
3053
3054 2003-07-23 Andreas Schwab <schwab@suse.de>
3055
3056 * ia64-tdep.c (ia64_print_insn): New function.
3057 (ia64_gdbarch_init): Set print_insn to it.
3058 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3059 deprecated_tm_print_insn_info.
3060
3061 2003-07-22 Michael Snyder <msnyder@redhat.com>
3062
3063 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3064 handle 8-bit returns (long long).
3065 (h8300h_extract_return_value): Ditto.
3066 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3067
3068 2003-07-22 Andrew Cagney <cagney@redhat.com>
3069
3070 * gdbarch.c Include "gdb_obstack.h".
3071 (struct gdbarch): Add an "obstack".
3072 (alloc_gdbarch_data): Allocate the gdbarch data using
3073 GDBARCH_OBSTACK_CALLOC.
3074 (free_gdbarch_data): Delete function.
3075 (gdbarch_obstack_zalloc): New function.
3076 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3077 Assert that the architecture is not initialized.
3078 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3079 vector from the obstack.
3080 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3081 architecture obstack.
3082 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3083 (set_gdbarch_data): Assert that the data is not initialized.
3084 (struct gdbarch_data): Delete member "free".
3085 (register_gdbarch_data): Do not initialize "free".
3086 * gdbarch.h, gdbarch.c: Re-generate.
3087
3088 2003-07-22 Andrew Cagney <cagney@redhat.com>
3089
3090 * configure.in (build_warnings): Add -Wformat-nonliteral.
3091 * configure: Re-generate.
3092
3093 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3094
3095 * dwarf2loc.c (locexpr_describe_location): Fix typos.
3096
3097 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3098
3099 * findvar.c (read_var_value): Remove case for thread local storage
3100 variables. It is now entirely handled by the dwarf2 location
3101 expression code.
3102 * printcmd.c (address_info): Ditto.
3103 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3104 enumeration value.
3105 (struct symbol): Remove objfile field, which was used by
3106 LOC_THREAD_LOCAL_STATIC only.
3107 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3108 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3109 usage of objfile pointer.
3110 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3111 thread local variables.
3112 Add include of objfiles.h.
3113 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3114 storage variables.
3115 * Makefile.in (dwarf2loc.o): Update dependencies.
3116
3117 2003-07-22 Andrew Cagney <cagney@redhat.com>
3118
3119 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3120 get_frame_base.
3121 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3122 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3123 (struct value): Add opaque declaration.
3124 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3125
3126 2003-07-21 Andrew Cagney <cagney@redhat.com>
3127
3128 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3129 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3130
3131 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3132
3133 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3134 regcache_cooked_read_unsigned instead of read_register.
3135 (m68hc11_saved_pc_after_call): Likewise.
3136 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3137 instead of write_register.
3138 (m68hc11_register_type): New function.
3139 (m68hc11_register_virtual_type): Remove.
3140 (m68hc11_store_return_value): Convert to use the regcache.
3141 (m68hc11_extract_struct_value_address): Likewise.
3142 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3143 m68hc11_register_type; undeprecate store_return_value and
3144 extract_struct_value_address.
3145
3146 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3147
3148 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3149 and translate to use regcache.
3150 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3151
3152 2003-07-18 Andrew Cagney <cagney@redhat.com>
3153
3154 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3155 * gdbarch.h, gdbarch.c: Re-generate.
3156 * i386-tdep.c (i386_gdbarch_init): Do not set
3157 DWARF2_BUILD_FRAME_INFO.
3158 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3159 unconditionally.
3160 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3161 DWARF2_BUILD_FRAME_INFO.
3162
3163 2003-07-18 Andrew Cagney <cagney@redhat.com>
3164
3165 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3166 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3167
3168 2003-07-18 Andrew Cagney <cagney@redhat.com>
3169
3170 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3171 frame_unwind_address_in_block, instead of frame_pc_unwind.
3172 (dwarf2_frame_cache): Ditto.
3173
3174 2003-07-18 Andrew Cagney <cagney@redhat.com>
3175
3176 * user-regs.h (struct gdbarch): Declare opaque.
3177 * ui-out.h (struct ui_file): Declare opaque.
3178 * dwarf2-frame.h (struct frame_info): Declare opaque.
3179
3180 2003-07-18 Kris Warkentin <kewarken@qnx.com>
3181
3182 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3183 #include "...".
3184 (procfs_meminfo): Change strerror to safe_strerror.
3185 (procfs_can_run): Remove K&R badness.
3186
3187 2003-07-17 Michael Snyder <msnyder@redhat.com>
3188
3189 * remote-sim.c: Comment typo fix.
3190
3191 2003-07-17 Andrew Cagney <cagney@redhat.com>
3192
3193 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3194 configure.
3195 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3196 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3197 GDB_MULTI_ARCH_PARTIAL.
3198
3199 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
3200
3201 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3202 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3203 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3204
3205 2003-07-16 Theodore A. Roth <troth@openavr.org>
3206
3207 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3208 found.
3209 (avr_frame_unwind_cache): Don't unwind FP for main.
3210 Update a comment.
3211 Save the computed prev_sp.
3212 (avr_saved_regs_unwinder): Remove function.
3213 (avr_frame_prev_register): Use PC unwind logic from
3214 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3215
3216 2003-07-16 Andrew Cagney <cagney@redhat.com>
3217
3218 * frame-base.h (frame_base_p_ftype): Delete definition.
3219 (frame_base_append_predicate): Delete declaration.
3220 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3221 (frame_unwind_append_predicate): Delete declaration.
3222 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3223 (append_predicate): Delete parameter "p".
3224 (frame_unwind_append_predicate): Delete function.
3225 (frame_unwind_append_sniffer): Update call to append_predicate.
3226 (frame_unwind_free): Delete function.
3227 (_initialize_frame_unwind): Pass NULL as "free" to
3228 register_gdbarch_data.
3229 (frame_unwind_init): Append the dummy_frame_sniffer.
3230 (frame_unwind_find_by_frame): Simplify.
3231 * frame-base.c (struct frame_base_table): Delete field "p".
3232 (append_predicate): Delete parameter "p".
3233 (frame_base_append_predicate): Delete function.
3234 (frame_base_append_sniffer): Update call to append_predicate.
3235 (frame_base_free): Delete function.
3236 (frame_base_find_by_frame): Simplify.
3237 (_initialize_frame_base): Pass NULL as "free" to
3238 register_gdbarch_data.
3239 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3240 (x86_64_sigtramp_frame_sniffer): Replace
3241 "x86_64_sigtramp_frame_p".
3242 (x86_64_init_abi): Set the frame unwind sniffers.
3243 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3244 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3245 (m68k_gdbarch_init): Set the frame unwind sniffers.
3246 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3247 "i386_sigtramp_frame_p".
3248 (i386_frame_sniffer): Replace "i386_frame_p".
3249 (i386_gdbarch_init): Set the frame unwind sniffers.
3250 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3251 (avr_gdbarch_init): Set the frame unwind sniffers.
3252 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3253 "alpha_sigtramp_frame_p"
3254 (alpha_heuristic_frame_sniffer): Replace
3255 "alpha_heuristic_frame_p".
3256 (alpha_gdbarch_init): Set the frame unwind sniffers.
3257 (alpha_dwarf2_init_abi): Ditto.
3258 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3259 "alpha_debug_frame_p".
3260 (alpha_mdebug_frame_base_sniffer): Replace
3261 "alpha_mdebug_frame_base_p".
3262 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3263 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3264 (d10v_gdbarch_init): Set the frame unwind sniffer.
3265 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3266 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3267 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3268 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3269 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3270 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3271
3272 2003-07-16 Michael Snyder <msnyder@redhat.com>
3273
3274 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3275 should go thru sh_dsp_register_sim_regno, else the dsp regs
3276 will not get the right values.
3277
3278 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3279
3280 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3281 deprecated_store_floating by call to store_typed_floating.
3282 (sh_sh4_register_convert_to_raw): Substitute call to
3283 deprecated_extract_floating by call to extract_typed_floating.
3284
3285 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3286
3287 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3288
3289 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3290
3291 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3292 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3293 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3294 as possible.
3295 (do_pseudo_register): Remove.
3296 (sh_push_dummy_code): New function.
3297 (sh64_store_struct_return): Rename from sh_store_struct_return.
3298 Only called for sh64 now.
3299 (sh_extract_struct_value_address): Regcache'ify.
3300 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3301 and accomodate new tasks.
3302 (sh64_push_return_address): Rename from sh_push_return_address.
3303 Only called for sh64 now.
3304 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3305 Regcache'ify.
3306 (sh3e_sh4_extract_return_value): Regcache'ify.
3307 (sh_default_store_return_value): Ditto.
3308 (sh3e_sh4_store_return_value): Ditto.
3309 (sh_default_register_byte): Remove.
3310 (sh_sh4_register_byte): Remove.
3311 (sh_default_register_raw_size): Remove.
3312 (sh_sh4_register_raw_size): Remove.
3313 (sh_register_virtual_size): Remove.
3314 (sh_sh3e_register_virtual_type): Remove.
3315 (sh_sh3e_register_type): New function.
3316 (sh_sh4_register_virtual_type): Remove.
3317 (sh_sh4_register_type): New function.
3318 (sh_default_register_virtual_type): Remove.
3319 (sh_default_register_type): New function.
3320 (do_fv_register_info): Add parameters to accomodate call from
3321 sh_print_registers_info.
3322 (do_dr_register_info): Ditto.
3323 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3324 Add parameters to accomodate call from sh_print_registers_info.
3325 (sh_do_fp_register): Ditto.
3326 (sh64_do_pseudo_register): Call do_dr_register_info,
3327 do_fv_register_info and sh_do_fp_register with default parameters.
3328 (sh_do_register): Add parameters to accomodate call from
3329 sh_print_registers_info.
3330 (sh_print_register): Ditto.
3331 (sh_print_registers_info): Rename from sh_do_registers_info.
3332 Add parameters to be used as gdbarch_print_registers_info
3333 implementation. Accomodate removed do_pseudo_register function
3334 pointer.
3335 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3336 function pointer. Call sh_print_register with default parameters.
3337 (sh64_do_registers_info): Call sh_print_registers_info instead of
3338 sh_do_registers_info.
3339 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3340 detection of deprecated vs. non-deprecated functionality.
3341 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3342 function pointer assignments by direct function calls.
3343
3344 2003-07-15 Andrew Cagney <cagney@redhat.com>
3345
3346 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3347 (frame_register_unwind, create_new_frame): Ditto.
3348 (legacy_get_prev_frame, get_frame_type): Ditto.
3349 (get_frame_base_address): Use frame_base_find_by_frame.
3350 (get_frame_locals_address): Use frame_base_find_by_frame.
3351 (get_frame_args_address): Use frame_base_find_by_frame.
3352 * frame-base.h (frame_base_sniffer_ftype): Declare.
3353 (frame_base_append_sniffer): Declare.
3354 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3355 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3356 (frame_base_append_sniffer): New function.
3357 (frame_base_append_predicate): Add a NULL sniffer.
3358 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3359 (struct frame_base_table): Add "sniffer".
3360 (frame_base_free): Free the "sniffer" table.
3361 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3362 (frame_unwind_append_sniffer): Declare.
3363 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3364 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3365 (struct frame_unwind_table): Add "sniffer", delete "middle".
3366 (append_predicate): Add "sniffer" parameter, append the sniffer.
3367 (frame_unwind_init): Update append_predicate call.
3368 (frame_unwind_append_sniffer): New function.
3369 (frame_unwind_append_predicate): Update append_predicate call.
3370 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3371
3372 2003-07-15 Andrew Cagney <cagney@redhat.com>
3373
3374 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3375 before code inhibiting repeated unwind attempts. Add to
3376 commentary on that test's problems.
3377 * blockframe.c (inside_main_func): Look for "main" in the minimal
3378 symbol table.
3379 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3380 identical.
3381
3382 2003-07-15 Andrew Cagney <cagney@redhat.com>
3383
3384 * complaints.c (struct explanation): Define.
3385 (struct complaints): Change type of "explanation" to "struct
3386 explanation".
3387 (symfile_explanations): Convert to a "struct explanation" table.
3388 (vcomplaint): Update.
3389
3390 2003-07-15 Michal Ludvig <mludvig@suse.cz>
3391
3392 * x86-64-linux-nat.c (regmap): Removed.
3393 (supply_gregset, fill_gregset): Call
3394 x86_64_linux_(fill,supply)_gregset functions.
3395 * x86-64-linux-tdep.c (USER_*): New defines.
3396 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3397 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3398 New functions.
3399 (fetch_core_registers): Ditto.
3400 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3401 * x86-64-linux-tdep.h: New file.
3402 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3403 and core-regset.o.
3404 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3405
3406 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3407
3408 * x86-64-tdep.c (x86_64_store_return_value): Use
3409 regcache_cooked_write_part instead of regcache_cooked_write.
3410
3411 * configure.host: Add x86_64-*-freebsd*.
3412 * configure.tgt: Add x86_64-*-freebsd*.
3413 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3414 * amd64fbsd-nat.c: New file.
3415 * amd64fbsd-tdep.c: New file.
3416 * config/i386/nm-fbsd64.h: New file.
3417 * config/i386/fbsd64.mh: New file.
3418 * config/i386/fbsd64.mt: New file.
3419
3420 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3421
3422 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3423 `sc_regs_offset' and `sc_fpregs_offset'.
3424 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3425 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3426 (alpha_sigtramp_register_address): Rewrite to use new members of
3427 `struct gdbarch_tdep'.
3428 (alpha_gdbarch_init): Initialize new members of struct
3429 gdbarch_tdep'.
3430 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3431 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3432 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3433 (alphafbsd_pc_in_sigtramp): Implement.
3434 (alphafbsd_sigtramp_offset): New function.
3435 (alphafbsd_sigcontext_addr): New function.
3436 (alphafbsd_init_abi): Initialize signal trampoline related members
3437 of `struct gdbarch_tdep'.
3438 (_initialize_alphafbsd_tdep): Add prototype.
3439
3440 2003-07-11 Theodore A. Roth <troth@openavr.org>
3441
3442 * Makefile.in (install-only): Quote sed expression when generating
3443 transformed_name.
3444
3445 2003-07-11 Richard Henderson <rth@redhat.com>
3446
3447 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3448 * dwarf2-frame.c: Include complaints.h.
3449 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3450 variable initialization; return NULL on error.
3451 (decode_frame_entry): New.
3452
3453 2003-07-11 Andrew Cagney <cagney@redhat.com>
3454
3455 * frame.h (frame_address_in_block): Delete declaration.
3456 * blockframe.c (frame_address_in_block): Delete function.
3457 (get_frame_block): Use get_frame_address_in_block.
3458 (block_innermost_frame): Ditto.
3459 * stack.c (print_frame, backtrace_command_1): Ditto.
3460
3461 * frame.h (get_frame_address_in_block): Declare.
3462 (frame_unwind_address_in_block): Declare.
3463 * frame.c (frame_unwind_address_in_block): New function.
3464 (get_frame_address_in_block): New function.
3465
3466 2003-07-10 Andrew Cagney <cagney@redhat.com>
3467
3468 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3469 pre-default. Note: re-generate has no effect.
3470
3471 2003-07-10 Andrew Cagney <cagney@redhat.com>
3472
3473 * gdbarch.sh: When a variable, but not a function, compare against
3474 0. Fix problem in previous patch.
3475 * gdbarch.c: Re-generate.
3476
3477 2003-07-10 Andrew Cagney <cagney@redhat.com>
3478
3479 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3480 functions against NULL, not 0.
3481 * gdbarch.c: Re-generate.
3482
3483 2003-07-10 Fred Fish <fnf@ninemoons.com>
3484
3485 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3486 null string instead of a null pointer.
3487 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3488
3489 2003-07-09 Michael Snyder <msnyder@redhat.com>
3490
3491 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3492
3493 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3494
3495 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3496 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3497 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3498 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3499 * x86-64-tdep.c: ... from here.
3500
3501 2003-07-09 Andreas Schwab <schwab@suse.de>
3502
3503 * m68k-tdep.h (enum struct_return): Define.
3504 (struct gdbarch_tdep): Add struct_return.
3505 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3506 bytes are padded to the right, not to the left. Pass struct value
3507 address in register %a1, not on stack.
3508 (m68k_use_struct_convention): New function.
3509 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3510 struct_return in tdep to pcc_struct_return.
3511 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3512 reg_struct_return.
3513
3514 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3515
3516 * somread.c (som_symfile_offsets): Fix compilation error.
3517
3518 2003-07-09 Andrew Cagney <cagney@redhat.com>
3519
3520 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3521 Add comments about the checks.
3522
3523 2003-07-08 Andrew Cagney <cagney@redhat.com>
3524
3525 * Makefile.in: Make dependency section headers consistent.
3526 (config_h): Move to $BUILD headers section.
3527 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3528 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3529 (ada-exp.tab.c): Move to YACC/LEX section.
3530 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3531 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3532
3533 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3534
3535 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3536 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3537 of strerror with safe_strerror, use ISO C function definitions,
3538 and replace instances of sprintf with snprintf.
3539
3540 2003-07-07 Andrew Cagney <cagney@redhat.com>
3541
3542 * frame.c (get_prev_frame): Enable check for identical frames.
3543 Update comments. Update error messages.
3544
3545 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3546
3547 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3548
3549 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3550
3551 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3552 sort_symtab_syms, no longer necessary.
3553
3554 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3555
3556 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3557
3558 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3559
3560 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3561 (mips_register_byte): Likewise.
3562
3563 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3564
3565 * Makefile.in (sparc_tdep_h): New.
3566 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3567 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3568 * sparc-linux-nat.c: Include "sparc-tdep.h".
3569 * sparc-nat.c: Likewise.
3570 * sparc-tdep.c: Likewise.
3571 * sparc64nbsd-nat.c: Likewise.
3572 * sparcnbsd-nat.c: Likewise.
3573 * sparcnbsd-tdep.c: Likewise.
3574 * sparc-tdep.h: New file.
3575 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3576 and sparc_npc_regnum.
3577
3578 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3579
3580 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3581 (mips_linux_cannot_store_register): List supported instead of
3582 unsupported registers.
3583
3584 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3585
3586 * disasm.c (dump_insns): Separate instructions from addresses.
3587
3588 2003-07-07 Andreas Schwab <schwab@suse.de>
3589
3590 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3591 dependencies.
3592 * m68k-tdep.c (NUM_FREGS): Delete.
3593 (SIG_PC_FP_OFFSET): Delete.
3594 (TARGET_M68K): Delete.
3595 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3596 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3597 P_MOVEL_SP, P_MOVEML_SP): Define.
3598 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3599 P_TRAP): Delete.
3600 (m68k_register_raw_size): Delete.
3601 (m68k_register_virtual_size): Delete.
3602 (m68k_register_type): Renamed from m68k_register_virtual_type and
3603 add gdbarch argument.
3604 (m68k_store_struct_return): Delete.
3605 (m68k_deprecated_extract_return_value): Delete.
3606 (m68k_deprecated_extract_struct_value_address): Delete.
3607 (m68k_frame_chain): Delete.
3608 (m68k_frame_saved_pc): Delete.
3609 (m68k_fix_call_dummy): Delete.
3610 (m68k_push_dummy_frame): Delete.
3611 (m68k_pop_frame): Delete.
3612 (m68k_extract_return_value): New function.
3613 (m68k_store_return_value): Rewrite using regcache.
3614 (m68k_extract_struct_value_address): Rewrite using regcache.
3615 (m68k_push_dummy_call): New function.
3616 (struct m68k_frame_cache): Define.
3617 (m68k_alloc_frame_cache): New function.
3618 (m68k_analyze_frame_setup): New function.
3619 (m68k_analyze_register_saves): New function.
3620 (m68k_analyze_prologue): New function.
3621 (m68k_skip_prologue): Rewrite using above functions.
3622 (m68k_unwind_pc): New function.
3623 (m68k_frame_cache): New function.
3624 (m68k_frame_this_id): New function.
3625 (m68k_frame_prev_register): New function.
3626 (m68k_frame_unwind): New variable.
3627 (m68k_frame_p): New function.
3628 (m68k_sigtramp_frame_cache): New function.
3629 (m68k_sigtramp_frame_this_id): New function.
3630 (m68k_sigtramp_frame_prev_register): New function.
3631 (m68k_sigtramp_frame_unwind): New variable.
3632 (m68k_sigtramp_frame_p): New function.
3633 (m68k_frame_base_address): New function.
3634 (m68k_frame_base): New function.
3635 (m68k_unwind_dummy_id): New function.
3636 (fill_gregset): Use regcache_collect.
3637 (fill_fpregset): Likewise.
3638 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3639 defined.
3640 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3641 deprecated_init_frame_pc, deprecated_store_struct_return,
3642 deprecated_extract_return_value, deprecated_store_return_value,
3643 deprecated_frame_chain, deprecated_frame_saved_pc,
3644 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3645 deprecated_register_virtual_size,
3646 deprecated_max_register_raw_size,
3647 deprecated_max_register_virtual_size,
3648 deprecated_register_virtual_type, deprecated_register_size,
3649 deprecated_register_byte, deprecated_register_bytes,
3650 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3651 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3652 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3653 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3654 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3655 deprecated_push_dummy_frame, deprecated_pop_frame,
3656 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3657 only if SYSCALL_TRAP is defined. Set extract_return_value,
3658 store_return_value, extract_struct_value_address, register_type,
3659 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3660 predicates.
3661 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3662 M68K_MAX_REGISTER_SIZE): Define.
3663 (struct m68k_sigtramp_info): Define.
3664 (struct gdbarch_tdep): Add get_sigtramp_info.
3665 * m68klinux-nat.c (fetch_register): Use register_size instead of
3666 REGISTER_RAW_SIZE. Don't put assignment in if.
3667 (store_register): Likewise.
3668 (fetch_inferior_registers): Likewise.
3669 (store_inferior_registers): Likewise.
3670 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3671 (m68k_linux_frame_saved_pc): Delete.
3672 (m68k_linux_sigcontext_reg_offset,
3673 m68k_linux_ucontext_reg_offset): Define.
3674 (m68k_linux_get_sigtramp_info): New function.
3675 (m68k_linux_extract_return_value): Rewrite using regcache.
3676 (m68k_linux_store_return_value): Likewise.
3677 (m68k_linux_extract_struct_value_address): Likewise.
3678 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3679 Don't set deprecated_frame_saved_pc,
3680 deprecated_extract_return_value, deprecated_store_return_value,
3681 deprecated_extract_struct_value_address. Set
3682 extract_return_value, store_return_value,
3683 extract_struct_value_address.
3684
3685 2003-07-07 Andrew Cagney <cagney@redhat.com>
3686
3687 * expprint.c: Include "user-regs.h" instead of "frame.h".
3688 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3689 frame_map_regnum_to_name.
3690 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3691 (frame_map_name_to_regnum): Simplify, call
3692 user_reg_map_name_to_regnum.
3693 (frame_map_regnum_to_name): Simplify, call
3694 user_reg_map_regnum_to_name.
3695 (frame_register_unwind): Update.
3696 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3697 (_initialize_frame_reg): Call user_reg_add_builtin.
3698 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3699 (value_of_register): Use value_of_user_reg.
3700 * eval.c (evaluate_subexp_standard): Update.
3701 * parse.c (write_dollar_variable): Update.
3702 * d10v-tdep.c (d10v_print_registers_info): Update.
3703 * infcmd.c (registers_info): Update.
3704 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3705 (builtin_regs_h): Delete macro.
3706 (user_regs_h): Define.
3707 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3708 (builtin-regs.o): Delete target.
3709 (user-regs.o): Specify dependencies.
3710 (expprint.o): Update dependencies.
3711 (findvar.o): Update dependencies.
3712 (frame.o): Update dependencies.
3713 (std-regs.o): Update dependencies.
3714
3715 2003-07-06 Christopher Faylor <cgf@redhat.com>
3716
3717 * win32-nat.c (solib_symbols_add): Use one variable for all section
3718 address stuff. Pass variable rather than address of variable to
3719 safe_symbol_file_add.
3720
3721 2003-07-06 Andreas Schwab <schwab@suse.de>
3722
3723 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3724
3725 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3726
3727 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3728
3729 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3730
3731 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3732
3733 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3734
3735 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3736 * config/i386/nto.mh: New file.
3737 * config/i386/nm-nto.h: New file.
3738 * configure.host: Add i[3456]86-*-nto*.
3739
3740 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3741
3742 * remote-vx.c (vx_add_symbols): Fix compilation error.
3743
3744 2003-07-03 Andrew Cagney <cagney@redhat.com>
3745
3746 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3747 * gdbarch.h, gdbarch.c: Re-generate.
3748 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3749 (legacy_register_name): Declare.
3750 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3751 (REGISTER_NAME): Define.
3752 * sparc-tdep.c (legacy_register_name): New function.
3753 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3754 (REGISTER_NAME): Define.
3755 (hppa64_register_name): Declare.
3756 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3757 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3758 (hppa64_register_name): New function.
3759 (hppa_register_name): New function.
3760 * arch-utils.c (legacy_register_name): Delete.
3761 * arch-utils.h (legacy_register_name): Delete.
3762
3763 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3764
3765 * cli/cli-interp.c (cli_interpreter_resume): Update the
3766 cli_uiout's stream to gdb_stdout.
3767
3768 2003-07-03 Andrew Cagney <cagney@redhat.com>
3769
3770 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3771 predicate.
3772 * gdbarch.h, gdbarch.c: Re-generate.
3773 * regcache.c (init_regcache_descr): Use legacy code when either
3774 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3775
3776 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3777
3778 * NEWS: Move "set logging" entry into GDB 6.0 section.
3779
3780 2003-07-02 Jim Blandy <jimb@redhat.com>
3781
3782 * s390-tdep.c (struct frame_extra_info): new member:
3783 'stack_bought_valid'.
3784 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3785 initialize fextra_info->stack_bought.
3786 (s390_frameless_function_invocation): Don't trust the value of
3787 fextra_info_ptr->stack_bought unless
3788 fextra_info->stack_bought_valid is set.
3789
3790 New S390 prologue analyzer.
3791 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3792 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3793 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3794 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3795 compute_x_addr, s390_on_stack, s390_store,
3796 s390_get_signal_frame_info): New functions.
3797 (S390_NUM_SPILL_SLOTS): New macro.
3798 (s390_get_frame_info): Rewritten.
3799 (is_arg_reg): Deleted.
3800
3801 Break out the decoding of S/390 instructions into separate
3802 functions, to make it more legible, and easier to check
3803 against the spec.
3804 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3805 is_rx, is_rxe): New functions.
3806 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3807 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3808 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3809 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3810 enums for opcode values. (Is this an improvement?)
3811
3812 2003-07-02 Andrew Cagney <cagney@redhat.com>
3813
3814 * i386-tdep.c: Revert change committed as part of trad-frame code
3815 below.
3816
3817 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3818
3819 * breakpoint.c (insert_catchpoint): Make static.
3820
3821 2003-07-02 Andreas Schwab <schwab@suse.de>
3822
3823 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3824 former ia64_push_arguments and ia64_push_return_address, and use
3825 regcache functions instead of read/write_register.
3826 (ia64_gdbarch_init): Set push_dummy_call instead of
3827 deprecated_push_arguments and deprecated_push_return_address.
3828
3829 2003-07-01 Andreas Jaeger <aj@suse.de>
3830
3831 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3832 before the call.
3833 Set %rax only to number of SSE registers used.
3834
3835 2003-07-01 Andrew Cagney <cagney@redhat.com>
3836
3837 * trad-frame.h: Update comments, a -1 .addr is reserved.
3838 (trad_frame_value_p, trad_frame_addr_p): Declare.
3839 (trad_frame_reg_p): Declare.
3840 (trad_frame_set_value): Rename trad_frame_register_value.
3841 (trad_frame_set_unknown): Declare.
3842 * trad-frame.c (trad_frame_realreg_p): New function.
3843 (trad_frame_addr_p, trad_frame_value_p): New function.
3844 (trad_frame_set_unknown): New function.
3845 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3846 (trad_frame_prev_register): Use trad_frame_realreg_p,
3847 trad_frame_addr_p and trad_frame_value_p.
3848 (trad_frame_set_value): Rename trad_frame_register_value.
3849 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3850 and trad_frame_set_value.
3851
3852 2003-06-30 Jim Blandy <jimb@redhat.com>
3853
3854 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3855 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3856 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3857 for 16 registers, and then 32 more bytes.
3858 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3859 New macros.
3860 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3861 Move up in the file, since it's now used by is_simple_arg.
3862 (is_simple_arg): Don't assume registers are four bytes long.
3863 Exclude all double arguments. Extended floats are not simple
3864 args.
3865 (is_power_of_two): New function.
3866 (pass_by_copy_ref): Call is_power_of_two, and check that the
3867 length fits in a register, rather than listing all the acceptable
3868 sizes. Extended floats are not passed by reference.
3869 (s390_push_arguments): Don't assume registers are four bytes long.
3870 Reserve an argument register to point to the buffer for structures
3871 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3872 S390_STACK_FRAME_OVERHEAD.
3873
3874 2003-06-30 Andreas Schwab <schwab@suse.de>
3875
3876 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3877 format error message.
3878
3879 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3880
3881 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3882
3883 2003-06-30 David Carlton <carlton@kealia.com>
3884
3885 Band-aid for PR c++/1245.
3886 * Makefile.in (cp-support.o): Depend on complaints_h.
3887 * cp-support.c: Include complaints.h. Add declaration for
3888 find_last_component.
3889 (cp_find_first_component): Separate code into
3890 cp_find_first_component_aux.
3891 (cp_find_first_component_aux): Call demangled_name_complaint.
3892 (demangled_name_complaint): New.
3893
3894 2003-06-30 Andrew Cagney <cagney@redhat.com>
3895
3896 * remote.c (remote_write_bytes): Explicitly compute and then use
3897 the payload size. Update comments to reflect. Fixes problem of
3898 GDB not sending small packets as found by Fred Fish.
3899
3900 2003-06-30 Andrew Cagney <cagney@redhat.com>
3901
3902 * remote.c (remote_async_wait): Fix -Wformat problem.
3903
3904 2003-06-29 Andrew Cagney <cagney@redhat.com>
3905
3906 * remote.c (remote_wait): Call error, and not warning, when the
3907 packet is corrupt.
3908 (remote_async_wait): Ditto.
3909
3910 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3911
3912 * sparc-tdep.c (sparc_y_regnum): Make external again.
3913
3914 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3915
3916 * cli/cli-logging.c (pop_output_files): Add void to function
3917 definition.
3918
3919 2003-06-29 Andrew Cagney <cagney@redhat.com>
3920
3921 * frame.c (frame_register_unwind): Use unsigned char when dumping
3922 the buffer contents.
3923
3924 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3925
3926 * cli/cli-logging.c: New file.
3927 * cli-out.c (struct ui_out_data): Add original_stream.
3928 (cli_redirect): New function.
3929 (cli_ui_out_impl): Add cli_redirect.
3930 (cli_out_new): Initialize original_stream.
3931 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3932 (uo_redirect, ui_out_redirect): New.
3933 * ui-out.h (struct ui_out_impl): Add redirect member.
3934 (redirect_ftype): New.
3935 (ui_out_redirect): Add prototype.
3936 * Makefile.in: Add rules for cli-logging.c.
3937 * NEWS: Mention "set logging".
3938
3939 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3940
3941 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3942
3943 2003-06-27 Andrew Cagney <cagney@redhat.com>
3944
3945 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3946 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3947 * avr-tdep.c (avr_call_dummy_address): Delete function.
3948 (avr_gdbarch_init): Do not set call_dummy_address.
3949
3950 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3951
3952 * symfile.c (syms_from_objfile): Move variables to inner block.
3953 Move the checks for the non-mainline case a bit earlier to avoid
3954 doing some useless computations.
3955
3956 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3957
3958 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3959
3960 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3961
3962 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3963 sections.
3964
3965 2003-06-26 Michael Chastain <mec@shout.net>
3966
3967 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3968 gdb/testsuite/gdb.c++/pr-1210.exp.
3969
3970 2003-06-26 Andrew Cagney <cagney@redhat.com>
3971
3972 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3973 altivec_expression.h and altivec_registers.h.
3974
3975 2003-06-26 Andrew Cagney <cagney@redhat.com>
3976
3977 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3978 info->mach when MIPS16. Patch suggested by Fred Fish.
3979
3980 2003-06-26 Andrew Cagney <cagney@redhat.com>
3981
3982 * utils.c (internal_vproblem): Print the problem to a reason
3983 buffer and then pass to query. Make the msg variable more local.
3984
3985 2003-06-26 Andrew Cagney <cagney@redhat.com>
3986
3987 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3988 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3989 * gdbarch.h, gdbarch.c: Re-generate.
3990 * frame-base.c (default_frame_args_address): Update. Use
3991 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3992 not available.
3993 (default_frame_locals_address): Ditto for
3994 DEPRECATED_FRAME_LOCALS_ADDRESS.
3995 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3996 (vax_frame_num_args): Update.
3997 (vax_gdbarch_init): Update.
3998 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3999 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4000 * mcore-tdep.c (mcore_gdbarch_init): Update.
4001 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4002 * ia64-tdep.c (ia64_gdbarch_init): Update.
4003 * symtab.h (address_class): Update comments.
4004 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4005 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4006 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4007 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4008 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4009 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4010 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4011 * alpha-mdebug-tdep.c: Update.
4012 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4013
4014 2003-06-26 Andreas Jaeger <aj@suse.de>
4015
4016 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4017 of SSE registers so that varargs functions work. Rework handling
4018 of passing arguments on the stack.
4019 (x86_64_store_return_value): Return double and float values in SSE
4020 register.
4021
4022 2003-06-24 Michael Chastain <mec@shout.net>
4023
4024 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4025 the "constructor breakpoints ignored" bug.
4026
4027 2003-06-25 David Carlton <carlton@kealia.com>
4028
4029 * MAINTAINERS: Update e-mail address.
4030
4031 2003-06-24 Jim Blandy <jimb@redhat.com>
4032
4033 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4034
4035 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4036 function.
4037 (ppc_linux_init_abi): Register it as the
4038 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4039
4040 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4041 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4042 method.
4043
4044 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4045 (ppc64_standard_linkage_target): Use it.
4046
4047 2003-06-23 Andrew Cagney <cagney@redhat.com>
4048
4049 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4050 for 0 "int0" and 4 "int32" sized registers.
4051 * gdbtypes.c (builtin_type_int0): Define.
4052 (build_gdbtypes): Initialize builtin_type_int0.
4053 * gdbtypes.h (builtin_type_int0): Declare.
4054
4055 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4056
4057 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4058 as characters are unsigned.
4059
4060 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4061
4062 PR gdb/1179
4063 * dwarfread.c (struct_type): Skip static fields without crashing.
4064
4065 2003-06-22 Andrew Cagney <cagney@redhat.com>
4066
4067 GDB 6.0 branch created.
4068 * README: Update.
4069 * PROBLEMS: Update. Empty.
4070 * NEWS: Update.
4071
4072 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4073
4074 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4075 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4076
4077 2003-06-22 Andrew Cagney <cagney@redhat.com>
4078
4079 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4080 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4081 Velikov.
4082
4083 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4084
4085 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4086 compilers.
4087
4088 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4089
4090 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4091 argument of val_print.
4092 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4093 to the address argument of baseclass_offset or target_read_memory.
4094 Do add it to the argument of cp_print_value_fields.
4095
4096 2003-06-21 Andrew Cagney <cagney@redhat.com>
4097
4098 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4099 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4100 instead of 0..NUM_REGS.
4101 (mips_register_reggroup_p): New function.
4102 (mips_pseudo_register_write): New function.
4103 (mips_pseudo_register_read): New function.
4104 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4105 based on the register's type.
4106 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4107 cooked.
4108 (mips_get_saved_register): Simplify. Assert that REGNO is a
4109 pseudo / cooked.
4110 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4111 (mips_register_type): Replace mips_register_virtual_type. Map
4112 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4113 when available.
4114 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4115 that the register is cooked / virtual.
4116 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4117 Only get the extra info when needed.
4118 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4119 (mips32_heuristic_proc_desc): Fetch the cooked register.
4120 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4121 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4122 (mips_print_register): Use gdbarch_register_type, instead of
4123 REGISTER_VIRTUAL_TYPE.
4124 (print_gp_register_row): Use gdbarch_register_type, instead of
4125 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4126 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4127 Print the pseudo / cooked registers.
4128 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4129 Print the pseudo / cooked registers.
4130 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4131 REG_NUM is pseudo / cooked.
4132 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4133 (mips_n32n64_xfer_return_value): Ditto.
4134 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4135 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4136 (mips_register_sim_regno): New function.
4137 (mips_gdbarch_init): Set deprecated_register_byte,
4138 register_group_p, pseudo_register_write, pseudo_register_read,
4139 register_sim_regno, and num_pseudo_regs. Set register_type,
4140 instead of register_virtual_type.
4141 * Makefile.in (mips-tdep.o): Update dependencies.
4142 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4143 REGISTER_VIRTUAL_TYPE.
4144 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4145 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4146 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4147 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4148 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4149
4150 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4151
4152 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4153 * cli/cli-cmds.c: Include "gdb_vfork.h".
4154 (shell_escape): Use vfork.
4155
4156 2003-06-21 Andrew Cagney <cagney@redhat.com>
4157
4158 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4159 32 bit floating-point register saves.
4160
4161 * frame.h (deprecated_unwind_get_saved_register): Delete.
4162 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4163 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4164 and deprecated_get_next_frame_hack instead of
4165 deprecated_unwind_get_saved_register.
4166
4167 * mips-tdep.c (mips_dump_tdep): Do not print
4168 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4169
4170 * frame.c (get_frame_register): New function.
4171 (frame_unwind_register_signed): New function.
4172 (get_frame_register_signed): New function.
4173 (frame_unwind_register_unsigned): New function.
4174 (get_frame_register_unsigned): New function.
4175 * frame.h: Add comments on naming schema.
4176 (get_frame_register, frame_unwind_register_signed): Declare.
4177 (get_frame_register_signed, get_frame_register_signed): Declare.
4178 (frame_unwind_register_unsigned): Declare.
4179 (get_frame_register_unsigned): Declare.
4180
4181 2003-06-20 Theodore A. Roth <troth@openavr.org>
4182
4183 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4184
4185 2003-06-20 Theodore A. Roth <troth@openavr.org>
4186
4187 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4188 (avr_read_sp): Ditto.
4189
4190 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
4191
4192 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4193 * config/arm/nm-linux.h: Likewise.
4194 * config/arm/tm-linux.h: Likewise.
4195 * config/ia64/nm-linux.h: Likewise.
4196 * config/ia64/tm-ia64.h: Likewise.
4197 * config/s390/tm-linux.h: Likewise.
4198 * config/s390/tm-s390.h: Likewise.
4199 * s390-nat.c: Likewise.
4200 * s390-tdep.c: Likewise.
4201
4202 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4203 * config/ia64/linux.mt: Likewise.
4204 * config/m68k/linux.mh: Likewise.
4205 * config/mips/linux.mt: Likewise.
4206 * config/powerpc/linux.mh: Likewise.
4207 * config/sh/linux.mt: Likewise.
4208
4209 2003-06-19 Kris Warkentin <kewarken@qnx.com>
4210
4211 * solib.c (solib_open): Change tests for whether to search
4212 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4213 comments.
4214
4215 2003-06-19 Theodore A. Roth <troth@openavr.org>
4216
4217 * avr-tdep.c (avr_frame_address): Delete function.
4218 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4219 set_gdbarch_frame_args_address.
4220
4221 2003-06-19 Andrew Cagney <cagney@redhat.com>
4222
4223 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4224 (REGISTER_CONVERT_FROM_TYPE): Delete.
4225 (mips_register_convert_to_type): Delete declaration.
4226 (mips_register_convert_from_type): Delete declaration.
4227 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4228 kernel/.
4229
4230 2003-06-19 Michael Snyder <msnyder@redhat.com>
4231
4232 * linux-nat.h: New file.
4233 * linux-nat.c: Include linux-nat.h.
4234 * lin-lwp.c: Include linux-nat.h.
4235 Move struct lwp_info def to linux-nat.h.
4236 * linux-proc.c: Include linux-nat.h.
4237 (linux_make_note_section): Iterate over lwps instead of threads.
4238 (linux_do_thread_registers): Use lwp instead of merged pid.
4239 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
4240 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
4241 Add dependency on linux_nat_h.
4242
4243 2003-06-19 Theodore A. Roth <troth@openavr.org>
4244
4245 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4246
4247 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4248
4249 * varobj.c (get_type, get_target_type): Use check_typedef.
4250
4251 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4252
4253 * breakpoint.c (insert_catchpoint): Call internal_error.
4254
4255 2003-06-19 Theodore A. Roth <troth@openavr.org>
4256
4257 * avr-tdep.c (avr_push_dummy_code): Delete function.
4258 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4259
4260 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4261
4262 * arch-utils.c (default_prepare_to_proceed): Remove.
4263 (generic_prepare_to_proceed): Remove.
4264 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4265 (generic_prepare_to_proceed): Remove prototype.
4266 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4267 * gdbarch.c: Regenerate.
4268 * gdbarch.h: Regenerate.
4269 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4270 * hppah-nat.c (hppa_switched_threads): Remove.
4271 * infrun.c (prepare_to_proceed): New static function, copied from
4272 generic_prepare_to_proceed. Remove select_it argument.
4273 (proceed): Call prepare_to_proceed.
4274 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4275 variables.
4276 (ptrace_wait): Don't set the removed variables.
4277 (hppa_switched_threads): Remove.
4278 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4279 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4280 (lin_lwp_prepare_to_proceed): Remove prototype.
4281 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4282 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4283
4284 2003-06-18 Theodore A. Roth <troth@openavr.org>
4285
4286 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4287 trad-frame.h.
4288 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4289 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4290 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4291 (AVR_PROLOGUE_*): Enumerate prologue types.
4292 (struct frame_extra_info): Remove.
4293 (struct avr_unwind_cache): Define.
4294 (avr_write_sp): Delete function.
4295 (avr_read_fp): Ditto.
4296 (avr_init_extra_frame_info): Ditto.
4297 (avr_pop_frame): Ditto.
4298 (avr_frame_saved_pc): Ditto.
4299 (avr_saved_pc_after_call): Ditto.
4300 (avr_push_return_address): Ditto.
4301 (avr_frame_chain): Ditto.
4302 (avr_store_struct_return): Ditto.
4303 (avr_push_arguments): Ditto.
4304 (avr_scan_prologue): Update comments. Changed to set up the info for
4305 cache unwinding. Now returns end of prologue PC.
4306 (avr_skip_prologue): Better handling of functions lacking a prologue
4307 by using avr_scan_prologue.
4308 (avr_scan_arg_moves): New function.
4309 (avr_saved_regs_unwinder): Ditto.
4310 (avr_frame_unwind_cache): Ditto.
4311 (avr_unwind_pc): Ditto.
4312 (avr_frame_this_id): Ditto.
4313 (avr_frame_prev_register): Ditto.
4314 (avr_frame_p): Ditto.
4315 (avr_frame_base_address ): Ditto.
4316 (avr_unwind_dummy_id): Ditto.
4317 (avr_push_dummy_code): Ditto.
4318 (push_stack_item): Ditto.
4319 (pop_stack_item): Ditto.
4320 (avr_push_dummy_call): Ditto.
4321 (struct stack_item): Define.
4322 (avr_frame_unwind): Declare structure.
4323 (avr_frame_base): Ditto.
4324 (avr_gdbarch_init): Remove calls to
4325 set_gdbarch_deprecated_init_frame_pc,
4326 set_gdbarch_deprecated_target_read_fp,
4327 set_gdbarch_deprecated_dummy_write_sp,
4328 set_gdbarch_deprecated_fp_regnum,
4329 set_gdbarch_deprecated_push_arguments,
4330 set_gdbarch_deprecated_push_return_address,
4331 set_gdbarch_deprecated_pop_frame,
4332 set_gdbarch_deprecated_store_struct_return,
4333 set_gdbarch_deprecated_frame_init_saved_regs,
4334 set_gdbarch_deprecated_init_extra_frame_info,
4335 set_gdbarch_deprecated_frame_chain,
4336 set_gdbarch_deprecated_frame_saved_pc,
4337 set_gdbarch_deprecated_saved_pc_after_call.
4338 Add calls to set_gdbarch_push_dummy_call,
4339 set_gdbarch_push_dummy_code,
4340 frame_unwind_append_predicate,
4341 frame_base_set_default,
4342 set_gdbarch_unwind_dummy_id,
4343 set_gdbarch_unwind_pc.
4344 Wrap a long line.
4345
4346 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4347
4348 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4349 registers for H8/300S.
4350 (h8300_print_registers_info): Ditto.
4351 (h8300_gdbarch_init): Accommodate register count for H8/300S.
4352
4353 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
4354
4355 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4356 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4357 (lin_lwp_wait): Likewise. Update comments.
4358 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4359 (pull_pid_from_list, linux_record_stopped_pid): New.
4360
4361 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4362
4363 * ada-lang.c (scan_discrim_bound): Name first argument.
4364 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4365 declared by ALL_BLOCK_SYMBOLS.
4366
4367 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4368
4369 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4370 ("regcache.h"): Include it.
4371 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4372
4373 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4374
4375 * NEWS: Mention gdbserver detach change and "disconnect" command.
4376 * infcmd.c (disconnect_command): New function.
4377 (_initialize_infcmd): Add ``disconnect'' command.
4378 * remote.c (remote_async_detach): Delete.
4379 (remote_detach): Merge remote_async_detach.
4380 (remote_disconnect): New.
4381 (init_remote_ops): Set to_disconnect.
4382 (init_remote_cisco_ops): Likewise.
4383 (init_remote_async_ops): Likewise. Use remote_detach.
4384 * target.c (cleanup_target): Default to_disconnect.
4385 (update_current_target): Inherit to_disconnect.
4386 (target_disconnect, debug_to_disconnect): New functions.
4387 (setup_target_debug): Set to_disconnect.
4388 * target.h (struct target_ops): Add to_disconnect.
4389 (target_disconnect): Add prototype.
4390
4391 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4392
4393 * breakpoint.c (insert_catchpoint): New function.
4394 (insert_breakpoints): Use catch_exceptions to call
4395 insert_catchpoint. Disable catchpoints if they fail to insert.
4396
4397 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4398
4399 * symfile.c (reread_symbols): Clear sym_private.
4400
4401 2003-06-17 Andrew Cagney <cagney@redhat.com>
4402
4403 * trad-frame.h (struct frame_info): Add opaque declaration.
4404 * remote-fileio.h (struct cmd_list_element): Add opaque
4405 declaration.
4406 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4407 comments.
4408
4409 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4410
4411 * remote.c (remote_prepare_to_store): Replace call to
4412 deprecated_read_register_bytes with multiple regcache_raw_read
4413 calls.
4414
4415 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4416
4417 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4418 (nto_find_and_open_solib): Likewise.
4419 (nto_init_solib_absolute_prefix): Likewise.
4420 (_initialize_nto_tdep): Fix indentation.
4421
4422 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4423
4424 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4425
4426 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4427
4428 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4429
4430 2003-06-17 Jim Blandy <jimb@redhat.com>
4431
4432 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4433
4434 2003-06-16 Theodore A. Roth <troth@openavr.org>
4435
4436 * avr-tdep.c (avr_extract_return_value): New function.
4437 (avr_gdbarch_init): Set extract_return_value method.
4438
4439 2003-06-16 Andrew Cagney <cagney@redhat.com>
4440
4441 * frame.h (deprecated_get_next_frame_hack): Declare.
4442 * frame.c (legacy_saved_regs_prev_register): Only require
4443 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4444 there are always saved regs.
4445 (deprecated_generic_get_saved_register): Do not require
4446 DEPRECATED_FRAME_INIT_SAVED_REGS.
4447 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4448 use frame ID unwind instead.
4449 (deprecated_get_next_frame_hack): New function.
4450
4451 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4452
4453 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4454 (h8300_push_dummy_call): ...this function. Some minor optimization.
4455 (h8300_push_return_address): Remove.
4456 (h8300_gdbarch_init): Remove calls to
4457 set_gdbarch_deprecated_dummy_write_sp,
4458 set_gdbarch_deprecated_push_arguments and
4459 set_gdbarch_deprecated_push_return_address.
4460 Add call to set_gdbarch_push_dummy_call.
4461
4462 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4463
4464 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4465 (E_PSEUDO_EXR_REGNUM): Ditto.
4466 (h8300_is_argument_spill): Check for instructions moving argument
4467 registers into safe registers.
4468 (h8300_skip_prologue): Check for stm instruction to push registers
4469 used for register variables onto stack.
4470 (gdb_print_insn_h8300): Remove.
4471 (h8300_examine_prologue): Add a comment.
4472 (h8300_register_name): Take pseudo registers into account.
4473 (h8300s_register_name): Ditto.
4474 (h8300sx_register_name): Ditto.
4475 (h8300_print_register): Ditto.
4476 (h8300_print_registers_info): Define "nice" printing order.
4477 (h8300_saved_pc_after_call): Take pseudo registers into account.
4478 (h8300_register_type): Ditto. Return type used for remote connection
4479 when requesting real CCR or EXR register, return actual type when
4480 requesting pseudo CCR or EXR.
4481 (h8300_pseudo_register_read): New function.
4482 (h8300_pseudo_register_write): Ditto.
4483 (h8300_dbg_reg_to_regnum): Ditto.
4484 (h8300s_dbg_reg_to_regnum): Ditto.
4485 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4486 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4487 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4488 set_gdbarch_print_insn architecture dependent.
4489 Call set_gdbarch_pseudo_register_read and
4490 set_gdbarch_pseudo_register_write.
4491 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4492
4493 2003-06-16 Andrew Cagney <cagney@redhat.com>
4494
4495 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4496 * gdbarch.h, gdbarch.c: Re-generate.
4497 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4498 * s390-tdep.c (s390_gdbarch_init): Update.
4499 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4500 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4501 * mips-tdep.c (mips_gdbarch_init): Update.
4502 * mcore-tdep.c (mcore_gdbarch_init): Update.
4503 * cris-tdep.c (cris_gdbarch_init): Update.
4504 * infcall.c (call_function_by_hand): Update.
4505 * ia64-tdep.c (ia64_push_arguments): Update comment.
4506 * frame.c (legacy_get_prev_frame): Do not assume
4507 SAVE_DUMMY_FRAME_TOS_P.
4508 * dummy-frame.c (find_dummy_frame): Update comment.
4509
4510 2003-06-16 Andrew Cagney <cagney@redhat.com>
4511
4512 * regcache.c (do_cooked_read): Do not use register_valid_p.
4513
4514 2003-06-15 Theodore A. Roth <troth@openavr.org>
4515
4516 * avr-tdep.c (avr_register_type): Remove a blank line.
4517 (avr_scan_prologue): Correct some comments.
4518
4519 2003-06-15 Theodore A. Roth <troth@openavr.org>
4520
4521 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4522 prologue types.
4523 Properly scan prologues generated by gcc with the -mcall-prologues
4524 option.
4525 Add code to scan -mcall-prologues for mega devices.
4526
4527 2003-06-15 Theodore A. Roth <troth@openavr.org>
4528
4529 * avr-tdep.c (avr_register_byte): Delete function.
4530 (avr_register_raw_size): Delete function.
4531 (avr_register_virtual_size): Delete function.
4532 (avr_register_virtual_type): Delete function.
4533 (avr_register_type): New function.
4534 (avr_address_to_pointer): Remove unused code.
4535 (avr_read_fp): Need to read FP as two separate bytes due to change to
4536 avr_register_type() usage.
4537 (avr_gdbarch_init): Don't set deprecated_register_size.
4538 Don't set deprecated_register_bytes.
4539 Don't set deprecated_register_byte.
4540 Don't set deprecated_register_raw_size.
4541 Don't set deprecated_max_register_raw_size.
4542 Don't set deprecated_register_virtual_size.
4543 Don't set deprecated_max_register_virtual_size.
4544 Don't set deprecated_register_virtual_type.
4545 Set register_type method.
4546
4547 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4548
4549 * Makefile.in (linux-nat.o): Add rule.
4550 * linux-nat.c: New file.
4551 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4552 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4553 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4554 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4555 * config/arm/linux.mh (NATDEPFILES): Likewise.
4556 * config/i386/linux.mh (NATDEPFILES): Likewise.
4557 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4558 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4559 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4560 * config/mips/linux.mh (NATDEPFILES): Likewise.
4561 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4562 * config/s390/s390.mh (NATDEPFILES): Likewise.
4563 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4564
4565 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4566
4567 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4568 replace out-of-date comment.
4569
4570 2003-06-15 Andrew Cagney <cagney@redhat.com>
4571
4572 * rdi-share/host.h (Fail): Change to a varargs function.
4573 * remote-rdi.c (Fail): Update.
4574
4575 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4576
4577 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4578 (i386_convert_register_p, i386_register_to_value,
4579 i386_register_from_value): Handle types longer than 8 bytes.
4580
4581 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4582
4583 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4584 Move floating-point code to new function in i387-tdep.c.
4585 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4586 New functions containing code moved here from i386-tdep.c.
4587 * i387-tdep.h: Add opaque declaration for `struct type'.
4588 (i387_register_to_value, i387_value_to_register): New prototypes.
4589 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4590 (x86_64_init_abi): Set convert_register_p, register_to_value and
4591 value_to_register here.
4592
4593 2003-06-14 Andrew Cagney <cagney@redhat.com>
4594
4595 * mips-tdep.c (mips_register_to_value): Make static.
4596 (mips_value_to_register): Make static.
4597 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4598 * ia64-tdep.c (ia64_register_raw_size): Make static.
4599 (ia64_register_virtual_size): Make static.
4600 (ia64_register_byte): Make static.
4601 * i387-tdep.c: Include "i387-tdep.h".
4602 (print_387_control_word): Delete function.
4603 (print_387_status_word): Delete function.
4604 (print_387_status_bits): Delete function.
4605 (print_387_control_bits): Delete function.
4606 * Makefile.in (i387-tdep.o): Update dependencies.
4607 * rdi-share/host.h (Fail): Declare.
4608 * remote-rdi.c (Fail): Update to match declaration.
4609
4610 2003-06-14 Andrew Cagney <cagney@redhat.com>
4611
4612 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4613 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4614 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4615 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4616 * README: Delete reference to remote-array.
4617 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4618 (remote-array.o): Delete target.
4619 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4620 * remote-array.c: Delete file.
4621
4622 2003-06-14 Andrew Cagney <cagney@redhat.com>
4623 Mark Kettenis <kettenis@gnu.org>
4624
4625 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4626 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4627 parameter with "frame".
4628 * gdbarch.h, gdbarch.c: Re-generate.
4629 * frame.h (put_frame_register): Declare.
4630 * frame.c (put_frame_register): New function.
4631 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4632 (legacy_register_to_value): Rewrite, use "frame" to get the
4633 register value.
4634 (legacy_value_to_register): Rewrite, use "frame" to find the
4635 register's location before storing.
4636 * arch-utils.h (legacy_convert_register_p): Update.
4637 (legacy_register_to_value, legacy_value_to_register): Update.
4638 * findvar.c (value_from_register): Rewrite, eliminate use of
4639 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4640 "frame" to REGISTER_TO_VALUE.
4641 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4642 lval_reg_frame_relative + lval_register branch of the switch. Do
4643 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4644 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4645 I386_EDI_REGNUM): New defines.
4646 (i386_next_regnum, i386_convert_register_p,
4647 i386_register_to_value, i386_value_to_register): New functions.
4648 (i386_register_convertible, i386_register_convert_to_virtual,
4649 i386_convert_to_raw): Remove functions.
4650 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4651 value_to_register instead of register_convertible,
4652 register_convert_to_virtual and register_convert_to_raw.
4653 * mips-tdep.c (mips_convert_register_p): New function.
4654 (mips_value_to_register): Replace mips_register_convert_from_type.
4655 (mips_register_to_value): Replace mips_register_convert_to_type.
4656 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4657 register_to_value.
4658 * alpha-tdep.c (alpha_convert_register_p): Update.
4659 (alpha_value_to_register): Update, store the register.
4660 (alpha_register_to_value): Update, fetch the register.
4661
4662 2003-06-14 Theodore A. Roth <troth@openavr.org>
4663
4664 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4665 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4666 Don't set deprecated_call_dummy_words.
4667 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4668 Don't set remote_translate_xfer_address.
4669 (avr_io_reg_read_command): Remove commented out debug printf.
4670 Wrap a long line.
4671
4672 2003-06-14 Theodore A. Roth <troth@openavr.org>
4673
4674 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4675 causes gdb to seg fault.
4676
4677 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4678
4679 * sparc-nat.c (fetch_inferior_registers): Correct
4680 a reference to "registers".
4681
4682 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4683
4684 * Makefile.in (exc_request_U_h): Define
4685 (exc_request_S_h): Likewise.
4686 (msg_reply_S_h): Likewise.
4687 (msg_U_h): Likewise.
4688 (notify_S_h): Likewise.
4689 (process_reply_S_h): Likewise.
4690 (gnu-nat.o): Depend on gdb_obstack_h
4691 * gnu-nat.c: Include "gdb_obstack.h".
4692
4693 2003-06-13 Andrew Cagney <cagney@redhat.com>
4694
4695 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4696 * gdbarch.h, gdbarch.c: Re-generate.
4697
4698 2003-06-13 Andrew Cagney <cagney@redhat.com>
4699
4700 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4701 when deprecated REGISTER macros can be deleted.
4702 * gdbarch.h, gdbarch.c: Re-generate.
4703
4704 2003-06-13 Jim Blandy <jimb@redhat.com>
4705
4706 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4707 Linux entry point symbols for _dl_debug_state, too.
4708
4709 2003-06-13 Andrew Cagney <cagney@redhat.com>
4710
4711 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4712 available, do not use the FP register, and always save the TOS.
4713 * dummy-frame.c (dummy_frame_this_id): Do not assert
4714 SAVE_DUMMY_FRAME_TOS.
4715 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4716 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4717 (i386_push_dummy_call): Add 8 to the returned SP.
4718 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4719 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4720 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4721 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4722 (x86_64_push_dummy_call): Return "sp + 16".
4723 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4724 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4725 save_dummy_frame_tos.
4726
4727 2003-06-13 Jim Blandy <jimb@redhat.com>
4728
4729 * frv-tdep.c (frv_use_struct_convention): Delete static
4730 declaration for function deleted in my change of 2003-06-12.
4731
4732 2003-06-13 Theodore A. Roth <troth@openavr.org>
4733
4734 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4735 (avr_pointer_to_address): Shift code addrs left 1 bit.
4736 (avr_convert_from_func_ptr_addr): Delete function since operation is
4737 better handled by avr_address_to_pointer and avr_pointer_to_address.
4738 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4739
4740 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4741
4742 From Kelley Cook <kelleycook@wideopenwest.com>:
4743 * configure.host: Accept i[34567]86 variants.
4744 * configure.tgt: Likewise.
4745 * nlm/configure.in: Likewise.
4746 * nlm/configure: Regenerated.
4747
4748 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4749
4750 * arm-tdep.c (solib-svr4.h): Dont' include it.
4751 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4752 * arm-linux-tdep.c: ... here. Make static.
4753 (arm_linux_init_abi): Register it.
4754 (solib-svr4.h): Include it.
4755 * Makefile.in: Update dependencies.
4756 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4757 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4758
4759 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4760
4761 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4762 indicate registers used for return values.
4763 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4764 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4765 members.
4766 (h8300_init_extra_frame_info): Ditto.
4767 (h8300_frame_locals_address): Removed.
4768 (h8300_frame_args_address): Removed.
4769 (h8300_extract_return_value): Use new regcache structure. Only care
4770 for 16 bit CPUs.
4771 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4772 (h8300_store_return_value): Use new regcache structure. Only care
4773 for 16 bit CPUs.
4774 (h8300h_store_return_value): Same function for 32 bit CPUs.
4775 (h8300_store_struct_return): Removed.
4776 (h8300_extract_struct_value_address): Use new regcache structure.
4777 (h8300h_extract_struct_value_address): Removed.
4778 (h8300_push_dummy_code): New function.
4779 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4780 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4781 set_gdbarch_store_return_value architecture dependent.
4782 Call set_gdbarch_push_dummy_code and
4783 set_gdbarch_extract_struct_value_address.
4784 Remove calls to set_gdbarch_frame_args_address,
4785 set_gdbarch_frame_locals_address,
4786 set_gdbarch_deprecated_store_struct_return,
4787 set_gdbarch_deprecated_extract_return_value,
4788 set_gdbarch_deprecated_extract_struct_value_address,
4789 set_gdbarch_deprecated_call_dummy_words and
4790 set_gdbarch_deprecated_sizeof_call_dummy_words.
4791
4792 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4793
4794 * h8300-tdep.c (h8300_register_byte): Remove.
4795 (h8300h_register_byte): Remove.
4796 (h8300_register_virtual_type): Remove. Substitute by...
4797 (h8300_register_type): New function.
4798 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4799 (h8300h_extract_struct_value_address): Ditto.
4800 (h8300_gdbarch_init): Drop calls to
4801 set_gdbarch_deprecated_register_byte and
4802 set_gdbarch_deprecated_register_virtual_type.
4803 Add call to set_gdbarch_register_type.
4804
4805 2003-06-13 Andrew Cagney <cagney@redhat.com>
4806
4807 * gdbarch.sh: Update comments on registers.
4808 (deprecated_register_byte): Rename register_byte.
4809 (deprecated_register_raw_size): Rename register_raw_size.
4810 (deprecated_register_virtual_size): Rename register_virtual_size.
4811 (deprecated_register_virtual_type): Rename register_virtual_type.
4812 * gdbarch.h, gdbarch.c: Re-generate.
4813 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4814 * vax-tdep.c (vax_gdbarch_init): Update.
4815 * v850-tdep.c (v850_gdbarch_init): Update.
4816 * sparc-tdep.c (sparc_gdbarch_init): Update.
4817 * sh-tdep.c (sh_gdbarch_init): Update.
4818 * s390-tdep.c (s390_gdbarch_init): Update.
4819 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4820 * ns32k-tdep.c: Update.
4821 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4822 * mips-tdep.c (mips_gdbarch_init): Update.
4823 * mcore-tdep.c (mcore_gdbarch_init): Update.
4824 * m68k-tdep.c (m68k_gdbarch_init): Update.
4825 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4826 * ia64-tdep.c (ia64_gdbarch_init): Update.
4827 * hppa-tdep.c (hppa_gdbarch_init): Update.
4828 * h8300-tdep.c (h8300_gdbarch_init): Update.
4829 * frv-tdep.c (frv_gdbarch_init): Update.
4830 * cris-tdep.c (cris_gdbarch_init): Update.
4831 * avr-tdep.c (avr_gdbarch_init): Update.
4832 * alpha-tdep.c (alpha_gdbarch_init): Update.
4833 * arm-tdep.c (arm_gdbarch_init): Update.
4834
4835 2003-06-13 Andrew Cagney <cagney@redhat.com>
4836
4837 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4838 mips_o32_use_struct_convention with always_use_struct_convention.
4839
4840 2003-06-12 David Carlton <carlton@kealia.com>
4841
4842 * cp-namespace.c (cp_set_block_scope): Comment out
4843 processing_has_namespace_info branch.
4844
4845 2003-06-12 Jim Blandy <jimb@redhat.com>
4846
4847 Recognize and skip 64-bit PowerPC Linux linkage functions.
4848 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4849 insn_pattern, insns_match_pattern, d_field, ds_field): New
4850 functions, macros, and types for working with PPC instructions.
4851 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4852 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4853 ppc64_skip_trampoline_code): New functions, variables, and macros
4854 for recognizing and skipping linkage functions.
4855 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4856 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4857
4858 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4859 register offsets for both the 32- and 64-bit interfaces.
4860
4861 Actually finish the job started by my change of 2003-05-29.
4862 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4863 other #definition of this.
4864 (ppc_linux_skip_trampoline_code): Remove declaration.
4865 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4866 static.
4867 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4868 method for GDBARCH.
4869
4870 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4871 'long' on ppc64-*-linux*.
4872
4873 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4874 isn't #defined, assume the register doesn't exist: act as if
4875 tdep->ppc_mq_regnum were -1.
4876
4877 * configure.host, configure.tgt: Add entries for
4878 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4879 powerpc/linux.mt.
4880 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4881 New files.
4882
4883 * arch-utils.c (always_use_struct_convention): New function.
4884 * arch-utils.h (always_use_struct_convention): New prototype.
4885 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4886 (alpha_gdbarch_init): Register always_use_struct_convention,
4887 instead of alpha_use_struct_convention.
4888 * cris-tdep.c (cris_use_struct_convention): Delete.
4889 (cris_gdbarch_init): Register always_use_struct_convention,
4890 instead of cris_use_struct_convention.
4891 * frv-tdep.c (frv_use_struct_convention): Delete.
4892 (frv_gdbarch_init): Register always_use_struct_convention,
4893 instead of frv_use_struct_convention.
4894 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4895 (h8300_gdbarch_init): Register always_use_struct_convention,
4896 instead of h8300_use_struct_convention.
4897 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4898 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4899 instead of mips_o32_use_struct_convention.
4900
4901 2003-06-12 Andrew Cagney <cagney@redhat.com>
4902
4903 * wince.c: Include "mips-tdep.h".
4904 * mips-tdep.h (mips_next_pc): Declare.
4905 * mcore-tdep.c: Make more local functions static.
4906 * Makefile.in (wince.o): Update dependencies.
4907
4908 2003-06-12 David Carlton <carlton@kealia.com>
4909
4910 * symtab.c (lookup_symbol_aux_minsyms): Replace
4911 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4912 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4913 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4914 SYMBOL_NATURAL_NAME.
4915
4916 2003-06-12 Andreas Schwab <schwab@suse.de>
4917
4918 * Makefile.in (tuiDisassem.o): Update dependencies.
4919
4920 2003-06-12 David Carlton <carlton@bactrian.org>
4921
4922 * symtab.h: Delete declaration of make_symbol_overload_list.
4923 Add declaration of lookup_partial_symbol.
4924 * symtab.c (remove_params): Move to cp-support.c.
4925 (overload_list_add_symbol, make_symbol_overload_list)
4926 (sym_return_val_size, sym_return_val_index): Ditto.
4927 (lookup_partial_symbol): Make extern.
4928 * cp-support.h: Add declaration of make_symbol_overload_list.
4929 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4930 symtab.h, and block.h.
4931 (remove_params): Move here from symtab.c.
4932 (overload_list_add_symbol, make_symbol_overload_list)
4933 (sym_return_val_size, sym_return_val_index): Ditto.
4934 * valops.c: Include cp-support.h.
4935 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4936 frame_h, and block_h.
4937 (valops.o): Depend on cp_support_h.
4938
4939 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4940
4941 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4942 substitute by NUM_REGS throughout.
4943 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4944 (h8300s_register_name): New function for H8S registers.
4945 (h8300sx_register_name): Ditto for H8SX registers.
4946 (h8300_print_register): Revise register printing, avoid depending
4947 on 32 bit long.
4948 (h8300_register_byte): Only care for H8/300 registers.
4949 (h8300h_register_byte): New function for any other architecture.
4950 (h8300_register_raw_size): Remove.
4951 (h8300_register_virtual_type): Revise to return actually useful
4952 type.
4953 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4954 (h8300h_extract_struct_value_address): New function for any other
4955 architecture.
4956 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4957 set_gdbarch_register_name, set_gdbarch_register_byte,
4958 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4959 Remove calls to set_gdbarch_deprecated_register_size,
4960 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4961 set_gdbarch_deprecated_max_register_raw_size,
4962 set_gdbarch_register_virtual_size and
4963 set_gdbarch_deprecated_max_register_virtual_size entirely.
4964 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4965 set_gdbarch_long_double_bit.
4966
4967 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4968
4969 * doublest.c (convert_doublest_to_floatformat): When dealing
4970 with the implied integer bit, only alter mant_bits if we are
4971 processing a full 32 bits of mantissa.
4972
4973 2003-06-11 David Carlton <carlton@bactrian.org>
4974
4975 * dictionary.h: New.
4976 * dictionary.c: New.
4977 * block.h: Add opaque declaration for struct dictionary.
4978 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4979 'sym' members.
4980 (BLOCK_DICT): New macro.
4981 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4982 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4983 BLOCK_SHOULD_SORT.
4984 (ALL_BLOCK_SYMBOLS): Update definition.
4985 * Makefile.in (SFILES): Add dictionary.c.
4986 (dictionary_h): New.
4987 (COMMON_OBS): Add dictionary.o.
4988 (dictionary.o): New.
4989 (ada-lang.o): Depend on dictionary_h.
4990 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4991 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4992 (mi-cmd-stack.o): Ditto.
4993 (gdbtk-cmds.o): Update dependencies.
4994 (gdbtk-stack.o): Ditto.
4995 * ada-lang.c: Include dictionary.h.
4996 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4997 (fill_in_ada_prototype, debug_print_block): Ditto.
4998 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4999 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5000 'is_sorted'.
5001 * mdebugread.c: Include dictionary.h.
5002 (struct parse_stack): Delete 'maxsyms' member.
5003 (parse_symbol): Update calls to new_block. Delete calls to
5004 shrink_block. Use dictionary methods.
5005 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5006 Update calls to new_symtab. Don't maintain maxsyms data.
5007 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5008 (add_symbol): Just call dict_add_symbol.
5009 (new_symtab): Delete 'maxsyms' argument.
5010 (new_symtab): Update calls to new_block.
5011 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5012 (shrink_block): Delete function.
5013 (fixup_sigtramp): Update call to new_block. Add symbol via
5014 dict_add_symbol.
5015 * jv-lang.c: Include dictionary.h.
5016 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5017 appropriately. Set class_symtab->free_func. Make sure the
5018 blockvector is big enough to hold two blocks.
5019 (add_class_symtab_symbol): Use dictionary methods.
5020 (free_class_block): New function.
5021 (type_from_class): Replace explicit iteration by
5022 ALL_BLOCK_SYMBOLS.
5023 * symtab.h (struct symtab): Replace 'free_ptr' method by
5024 'free_func'.
5025 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5026 sort_symtab_syms.
5027 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5028 sort_symtab_syms.
5029 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5030 Include dictionary.h.
5031 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5032 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5033 sort_symtab_syms.
5034 * objfiles.c: Include dictionary.h.
5035 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5036 * buildsym.c: Include dictionary.h.
5037 (finish_block): Use dictionary methods.
5038 (end_symtab): Set free_func to NULL, not free_ptr.
5039 * tracepoint.c: Include dictionary.h.
5040 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5041 (scope_info): Ditto.
5042 * stack.c: Include dictionary.h.
5043 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5044 (print_block_frame_labels, print_frame_arg_vars)
5045 (print_frame_args): Ditto.
5046 * symmisc.c (free_symtab_block): Use dictionary methods.
5047 (dump_symtab): Ditto.
5048 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5049 Include dictionary.h.
5050 * symfile.h: Delete declarations of sort_block_syms,
5051 sort_symtab_syms.
5052 * symfile.c (sort_block_syms): Delete.
5053 (sort_symtab_syms): Delete.
5054 * symtab.c: Include dictionary.h.
5055 (lookup_block_symbol): Use dictionary iterators.
5056 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5057 (search_symbols, make_symbol_completion_list): Ditto.
5058 (make_symbol_overload_list): Ditto.
5059 * valops.c (value_of_local): Use dict_empty.
5060 Include dictionary.h.
5061
5062 2003-06-11 J. Brobecker <brobecker@gnat.com>
5063
5064 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5065
5066 2003-06-11 David Carlton <carlton@bactrian.org>
5067
5068 * block.h (BLOCK_SHOULD_SORT): Delete.
5069 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5070 blocks.
5071 * ada-lang.c (ada_add_block_symbols): Ditto.
5072 * symfile.c (sort_block_syms): Delete.
5073 (sort_symtab_syms): Ditto.
5074 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5075 declarations.
5076 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5077 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5078 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5079 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5080 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5081 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5082 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5083
5084 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5085
5086 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
5087 bits to 128.
5088
5089 2003-06-11 Andrew Cagney <cagney@redhat.com>
5090
5091 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5092 REGISTER_CONVERTIBLE.
5093 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5094 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5095 * gdbarch.h, gdbarch.c: Re-generate.
5096 * arch-utils.h (deprecated_register_convertible_not): Rename
5097 generic_register_convertible_not.
5098 * arch-utils.c (deprecated_register_convertible_not): Rename
5099 generic_register_convertible.
5100 (legacy_convert_register_p, legacy_register_to_value): Update.
5101 * sh-tdep.c (sh64_push_arguments): Update.
5102 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5103 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5104 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5105 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5106 * arch-utils.c (legacy_value_to_register): Update.
5107 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5108 (rs6000_register_convert_to_raw): Make parameter "from" const.
5109 * mips-tdep.c (mips_gdbarch_init): Update.
5110 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5111 * infcmd.c (default_print_registers_info): Update.
5112 * ia64-tdep.c (ia64_gdbarch_init): Update.
5113 (ia64_register_convert_to_raw): Make parameter "from" const.
5114 * i386-tdep.c (i386_gdbarch_init): Update.
5115 (i386_register_convert_to_raw): Update.
5116
5117 2003-06-11 Andrew Cagney <cagney@redhat.com>
5118
5119 * remote-fileio.c: Include "remote-fileio.h".
5120 * Makefile.in (remote-fileio.o): Update dependencies.
5121 (remote_fileio_h): Fix typo.
5122
5123 2003-06-11 Andrew Cagney <cagney@redhat.com>
5124
5125 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5126 (xstormy16_save_dummy_frame_tos): Make static.
5127 (_initialize_xstormy16_tdep): Add declaration.
5128 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5129 * v850-tdep.c: Make local functions static.
5130 (_initialize_v850_tdep): Add declaration.
5131 * sparc-tdep.c: Make local functions static.
5132 (_initialize_sparc_tdep): Add declaration.
5133 * sh-tdep.c: Make local functions static.
5134 (_initialize_sh_tdep): Add declaration.
5135 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5136 * s390-tdep.c: Make local functions static.
5137 (_initialize_s390_tdep): Add declaration.
5138 * dbxread.c (find_stab_function_addr): Make static.
5139 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5140 * ocd.c (_initialize_remote_ocd): Add declaration.
5141 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5142 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5143 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5144 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5145 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5146 * remote-array.c (_initialize_array): Add declaration.
5147 (_initialize_remote_monitors): Add declaration.
5148 * remote-mips.c: Make local functions static.
5149 (_initialize_remote_mips): Add declaration.
5150 * mcore-tdep.c: Make all local functions static.
5151 (_initialize_mcore_tdep): Add declaration.
5152 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5153 * abug-rom.c (_initialize_abug_rom): Add declaration.
5154 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5155 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5156 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5157 * remote-est.c (_initialize_est): Add declaration.
5158 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5159 (m68hc11_call_dummy_address): Make static.
5160 * ia64-tdep.c: Make local functions static.
5161 (_initialize_ia64_tdep): Add declaration.
5162 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5163 * monitor.c (monitor_wait_filter): Make static.
5164 (_initialize_remote_monitors): Add declaration.
5165 * remote-hms.c (_initialize_remote_hms): Add declaration.
5166 * remote-e7000.c (fetch_regs_from_dump): Make static.
5167 (expect_n): Make static.
5168 (_initialize_remote_e7000): Add declaration.
5169 * ser-e7kpc.c: Always include "defs.h".
5170 (_initialize_ser_e7000pc): Add declaration.
5171 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5172 * cris-tdep.c: Make all but one function static.
5173 (_initialize_cris_tdep): Add declaration.
5174 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5175 * solib.c (update_solib_list): Make static.
5176 (_initialize_solib): Add declaration.
5177 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5178 (_initialize_avr_tdep): Add declaration.
5179 * remote-rdi.c (voiddummy): Make static.
5180 (_initialize_remote_rdi): Add declaration.
5181 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5182 * remote-rdp.c (send_rdp): Make static.
5183 (_initialize_remote_rdp): Add declaration.
5184 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5185
5186 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
5187
5188 * remote-fileio.c: Make ari happy.
5189
5190 2003-06-10 J. Brobecker <brobecker@gnat.com>
5191
5192 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5193 fetching the trailing bytes of the buffer we are about to write.
5194
5195 2003-06-10 Andrew Cagney <cagney@redhat.com>
5196
5197 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5198 * Makefile.in (remote-fileio.o): Update dependencies.
5199 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5200 include <setjmp.h>, or <sys/types.h> conditional on USG.
5201 (remote_fio_jmp_buf): Delete global variable.
5202
5203 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
5204 Martin M. Hunt <hunt@redhat.com>
5205
5206 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5207 (SFILES): Add remote-fileio.c.
5208 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5209 dependencies for building remote.o.
5210 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5211 * remote-fileio.h: New header file defining remote File-I/O interface.
5212 * remote.c (remote_write_bytes, remote_read_bytes): Remove
5213 static storage class.
5214 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5215 'F' packet.
5216 (_initialize_remote): Call initialize_remote_fileio().
5217 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
5218 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5219 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5220 (captured_main): Initialize new ui_files.
5221 * ui-file.c: Add read and fgets input functions.
5222 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5223 (null_file_read): New function.
5224 (ui_file_read): New function.
5225 (set_ui_file_read): New function.
5226 (stdio_file_read): New function.
5227 * ui-file.h: New type ui_file_read_ftype.
5228 (set_ui_file_read): Declare.
5229 (ui_file_read): Declare.
5230
5231 2003-06-09 Andrew Cagney <cagney@redhat.com>
5232
5233 * frame.h (deprecated_unwind_get_saved_register): Rename
5234 generic_unwind_get_saved_register, update comments.
5235 * mips-tdep.c (mips_get_saved_register): Update.
5236 * frame.c (deprecated_unwind_get_saved_register): Update.
5237
5238 2003-06-09 Andrew Cagney <cagney@redhat.com>
5239
5240 * vax-tdep.c (vax_frame_locals_address): Delete function.
5241 (vax_gdbarch_init): Do not set frame_locals_address.
5242 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5243 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5244 * s390-tdep.c (s390_frame_args_address): Delete function.
5245 (s390_gdbarch_init): Do not set frame_args_address or
5246 frame_locals_address.
5247 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5248 (ns32k_gdbarch_init): Do not set frame_locals_address.
5249 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5250 (hppa_frame_locals_address): Delete function.
5251 (hppa_gdbarch_init): Do not set frame_args_address, or
5252 frame_locals_address.
5253 * arm-tdep.c (arm_frame_args_address): Delete.
5254 (arm_frame_locals_address): Delete.
5255 (arm_gdbarch_init): Do not set frame_args_address, or
5256 frame_locals_address.
5257
5258 2003-06-09 Andrew Cagney <cagney@redhat.com>
5259
5260 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5261 * gdbarch.h, gdbarch.c: Re-generate.
5262 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5263 * arch-utils.c (frame_num_args_unknown): Delete function.
5264 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5265 (frame_info): Use FRAME_NUM_ARGS_P.
5266 * arm-tdep.c (arm_frame_num_args): Delete function.
5267 (arm_gdbarch_init): Do not set frame_num_args.
5268 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5269 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5270 (hppa_gdbarch_init): Do not set frame_num_args.
5271 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5272 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5273 frame_num_args to default frame_num_args_unknown.
5274 * v850-tdep.c (v850_gdbarch_init): Ditto.
5275 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5276 * sh-tdep.c (sh_gdbarch_init): Ditto.
5277 * s390-tdep.c (s390_gdbarch_init): Ditto.
5278 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5279 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5280 * mips-tdep.c (mips_gdbarch_init): Ditto.
5281 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5282 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5283 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5284 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5285 * i386-tdep.c (i386_gdbarch_init): Ditto.
5286 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5287 * frv-tdep.c (frv_gdbarch_init): Ditto.
5288 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5289 * cris-tdep.c (cris_gdbarch_init): Ditto.
5290 * avr-tdep.c (avr_gdbarch_init): Ditto.
5291 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5292
5293 2003-06-09 Andrew Cagney <cagney@redhat.com>
5294
5295 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5296 (print_frame_args): Moved to "stack.c".
5297 * stack.c: Include "gdb_assert.h".
5298 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5299 (print_frame_args): Moved from "printcmd.c".
5300 * frame.h (print_frame_args): Delete declaration.
5301 * Makefile.in (stack.o): Update dependencies.
5302
5303 2003-06-08 Andrew Cagney <cagney@redhat.com>
5304
5305 * frame.c (get_prev_frame): Remove reference to
5306 frame_args_address_correct in comments.
5307 * frame-base.c (default_frame_args_address): Delete code
5308 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5309 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5310 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5311 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5312 (vax_frame_args_address_correct): Delete declaration.
5313
5314 2003-06-08 Andrew Cagney <cagney@redhat.com>
5315
5316 * gdbarch.sh (UNWIND_SP): Add.
5317 * gdbarch.h, gdbarch.c: Re-generate.
5318 * frame.c (frame_sp_unwind): New function.
5319 (get_frame_sp): New function.
5320 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5321 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5322 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5323 value.
5324 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5325 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5326
5327 2003-06-08 Andrew Cagney <cagney@redhat.com>
5328
5329 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5330 REMOTE_BREAKPOINT.
5331 * remote.c: Update.
5332 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5333 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5334 * config/m68k/tm-sun3.h: Update.
5335 * config/m68k/tm-m68klynx.h: Update.
5336 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5337
5338 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5339 trad_frame". Update comments.
5340 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5341 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5342 (trad_frame_register_value, trad_frame_prev_register): Update.
5343
5344 2003-06-08 Andrew Cagney <cagney@redhat.com>
5345
5346 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5347 from GCC's acinclude.m4.
5348 * configure.in: Check for getopt's delcaration.
5349 * aclocal.m4, config.in, configure: Re-generate.
5350 * main.c (error_init): Delete declaration.
5351 * defs.h (error_init): Declare.
5352 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5353 (rs6000_convert_from_func_ptr_addr): Make static.
5354 (_initialize_rs6000_tdep): Add declaration.
5355 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5356 (show_commands, set_verbose, show_history): Delete declaration.
5357 * top.h (set_verbose): Add declaration.
5358 (show_history, set_history, show_commands): Add declaration.
5359 (do_restore_instream_cleanup): Add declaration.
5360 * objc-lang.c (specialcmp): Make static.
5361 (print_object_command): Make static.
5362 (find_objc_msgsend): Make static.
5363 (find_objc_msgcall_submethod_helper): Make static.
5364 (find_objc_msgcall_submethod): Make static.
5365 (_initialize_objc_language): Add declaration.
5366 (find_implementation_from_class): Make static.
5367 (find_implementation): Make static.
5368 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5369 * objc-lang.h (lookup_struct_typedef): Add declaration.
5370 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5371 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5372 (do_restore_user_call_depth): Make static.
5373 (do_restore_instream_cleanup): Delete declaration.
5374 (dont_repeat): Delete declaration.
5375 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5376 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5377 * reggroups.c (_initialize_reggroup): Add declaration.
5378 * cp-support.c (_initialize_cp_support): Add declaration.
5379 * cp-abi.c (_initialize_cp_abi): Add declaration.
5380 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5381 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5382 (_initialize_gnu_v3_abi): Add declaration.
5383 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5384 (_initialize_gnu_v2_abi): Add declaration.
5385 * frame-base.c (_initialize_frame_base): Add declaration.
5386 * doublest.c (floatformat_from_length): Make static.
5387 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5388 * frame.c (create_sentinel_frame): Make static.
5389 (_initialize_frame): Add declaration.
5390 * top.c (do_catch_errors): Make static.
5391 (gdb_rl_operate_and_get_next_completion): Make static.
5392 * typeprint.c: Include "typeprint.h".
5393 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5394 (sentinel_frame_this_id): Make static.
5395 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5396 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5397 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5398 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5399 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5400 * maint.c (maintenance_print_architecture): Make static.
5401 * signals/signals.c (_initialize_signals): Add declaration.
5402 * std-regs.c (_initialize_frame_reg): Add declaration.
5403 * jv-exp.y (push_variable): ISO C definition.
5404 (push_qualified_expression_name): Ditto.
5405 * memattr.c (_initialize_mem): Add declaration.
5406 * remote.c (remote_check_watch_resources): Make static.
5407 (remote_stopped_by_watchpoint): Make static.
5408 (remote_stopped_data_address): Make static.
5409 * d10v-tdep.c (nr_dmap_regs): Make static.
5410 (a0_regnum): Make static.
5411 (d10v_frame_unwind_cache): Make static.
5412 (d10v_frame_p): Make static.
5413 * osabi.c (show_osabi): Make static.
5414 (_initialize_gdb_osabi): Add extern declaration.
5415 * gdbtypes.c (make_qualified_type): Make static.
5416 (safe_parse_type): Make static.
5417 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5418 * macrotab.c (macro_bcache_free): Make static.
5419 * interps.c (interp_set_quiet): Make static.
5420 (interpreter_exec_cmd): Make static.
5421 * stack.h (select_frame_command): New file.
5422 * stack.c: Include "stack.h".
5423 (select_frame_command_wrapper): Delete function.
5424 (select_frame_command): Make global.
5425 * infcall.c: Include "infcall.h".
5426 * linespec.c: Include "linespec.h".
5427 * symfile.c (sections_overlap): Make static.
5428 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5429 * charset.c (_initialize_charset): Add missing prototype.
5430 * regcache.c (init_legacy_regcache_descr): Make static.
5431 (do_regcache_xfree): Make static.
5432 (regcache_xfer_part): Make static.
5433 (_initialize_regcache): Add missing prototype.
5434 * breakpoint.c (parse_breakpoint_sals): Make static.
5435 (breakpoint_sals_to_pc): Make static.
5436 * interps.h (clear_interpreter_hooks): ISO C declaration.
5437 * Makefile.in (stack_h): Define.
5438 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5439 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5440
5441 2003-06-08 Andrew Cagney <cagney@redhat.com>
5442
5443 * Makefile.in (d10v-tdep.o): Update dependencies.
5444 (SFILES): Add trad-frame.c.
5445 (trad_frame_h): Define.
5446 (COMMON_OBS): Add trad-frame.o.
5447 (trad-frame.o): Specify dependencies.
5448 * d10v-tdep.c: Include "trad-frame.h".
5449 (saved_regs_unwinder): Delete function.
5450 (d10v_frame_prev_register): Use trad_frame_prev_register.
5451 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5452 trad_frame", delete "regs" and "prev_sp".
5453 (prologue_find_regs): Use trad-frame.
5454 * trad-frame.h, trad-frame.c: New files.
5455
5456 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5457
5458 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5459
5460 2003-06-07 Adam Fedor <fedor@gnu.org>
5461
5462 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5463 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5464 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5465 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5466 resolve_msgsend_super, resolve_msgsend_super_stret):
5467 Use it.
5468
5469 2003-06-07 Andrew Cagney <cagney@redhat.com>
5470
5471 * symfile.h: Re-indent, clean up comments.
5472
5473 2003-06-07 Andrew Cagney <cagney@redhat.com>
5474
5475 * inferior.h (deprecated_write_sp): Replace
5476 generic_target_write_sp.
5477 * regcache.c (deprecated_write_sp): Replace
5478 generic_target_write_sp.
5479 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5480 * vax-tdep.c (vax_gdbarch_init): Update.
5481 * v850-tdep.c (v850_gdbarch_init): Update.
5482 * sparc-tdep.c (sparc_gdbarch_init): Update.
5483 * sh-tdep.c (sh_gdbarch_init): Update.
5484 * s390-tdep.c (s390_gdbarch_init): Update.
5485 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5486 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5487 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5488 * mcore-tdep.c (mcore_gdbarch_init): Update.
5489 * m68k-tdep.c (m68k_gdbarch_init): Update.
5490 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5491 * ia64-tdep.c (ia64_gdbarch_init): Update.
5492 * h8300-tdep.c (h8300_gdbarch_init): Update.
5493 * frv-tdep.c (frv_gdbarch_init): Update.
5494 * cris-tdep.c (cris_gdbarch_init): Update.
5495 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5496
5497 2003-06-07 Andrew Cagney <cagney@redhat.com>
5498
5499 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5500 Assert that PC_REGNUM is valid.
5501 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5502
5503 2003-06-07 Andrew Cagney <cagney@redhat.com>
5504
5505 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5506 * gdbarch.h, gdbarch.c: Regenerate.
5507 * mn10300-tdep.c: Include "gdb_assert.h".
5508 (mn10300_read_fp): New function.
5509 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5510 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5511 * ia64-tdep.c: Include "gdb_assert.h".
5512 (ia64_read_fp): New function.
5513 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5514 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5515 * regcache.c (generic_target_read_sp): Delete function.
5516 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5517 * inferior.h (generic_target_read_sp): Delete declaration.
5518 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5519 generic_target_read_sp.
5520 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5521 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5522 * sh-tdep.c (sh_gdbarch_init): Ditto.
5523 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5524 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5525
5526 2003-06-07 Andrew Cagney <cagney@redhat.com>
5527
5528 * gdbarch.sh: Comment each field of startup_gdbarch.
5529 * gdbarch.h, gdbarch.c: Re-generate.
5530
5531 2003-06-07 Andrew Cagney <cagney@redhat.com>
5532
5533 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5534 * gdbarch.h, gdbarch.c: Re-generate.
5535 * regcache.c: Update comments on read_pc et.al.
5536 (generic_target_read_pc): Delete function.
5537 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5538 * inferior.h (generic_target_read_pc): Delete declaration.
5539 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5540 generic_target_read_pc.
5541 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5542 * sh-tdep.c (sh_gdbarch_init): Ditto.
5543 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5544 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5545
5546 2003-06-07 Andrew Cagney <cagney@redhat.com>
5547
5548 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5549 "index" with "special_local_sect". Use strcmp instead of STREQ.
5550 Append period to coments.
5551
5552 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5553
5554 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5555 (elfstab_offset_sections): Likewise.
5556 * gdb-stabs.h (stab_section_info): Likewise.
5557 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5558 * objfiles.c (objfile_relocate): Likewise.
5559 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5560 * remote.c (get_offsets): Likewise.
5561 (remote_cisco_objfile_relocate): Likewise.
5562 * somread.c (som_symfile_offsets): Likewise.
5563 * symfile.c (alloc_section_addr_info): New function.
5564 (build_section_addr_info_from_section_tab): Use it.
5565 (free_section_addr_info): Adjust.
5566 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5567 (syms_from_objfile): Allocate local_addr dynamically.
5568 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5569 dynamically.
5570 (add_symbol_file_command): Allocate sect_opts dynamically.
5571 (reread_symbols): Avoid use of SECT_OFF_MAX.
5572 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5573 (alloc_section_addr_info): Declare it.
5574 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5575 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5576 dynamically.
5577 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5578
5579 2003-06-06 Andrew Cagney <cagney@redhat.com>
5580
5581 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5582 (d10v_frame_unwind_cache): Do not set "return_pc".
5583
5584 2003-06-06 Michael Snyder <msnyder@redhat.com>
5585
5586 * h8300-tdep.c: Make tidy (long lines).
5587
5588 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5589
5590 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5591 to regcache_collect().
5592
5593 2003-06-05 J. Brobecker <brobecker@gnat.com>
5594
5595 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5596 pc_in_sigtramp multiarch method.
5597 (hppa_hpux_som_init_abi): Use it.
5598 (hppa_hpux_elf_init_abi): Likewise.
5599 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5600 macro has been multiarched.
5601 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5602 macro here, as hppa64 isn't multiarched yet.
5603
5604 2003-06-05 Andrew Cagney <cagney@redhat.com>
5605
5606 * Makefile.in (value_h): Add $(frame_h).
5607 * value.h: Include "frame.h".
5608 (struct value): Replace "frame_addr" with "frame_id".
5609 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5610 * values.c (allocate_value): Use VALUE_FRAME_ID.
5611 (value_copy): Use VALUE_FRAME_ID.
5612 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5613 * valops.c (value_assign): Update. Use frame_find_by_id.
5614
5615 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5616
5617 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5618 in each pass.
5619
5620 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5621
5622 * thread-db.c (check_event): For create/death event breakpoints,
5623 loop through all messages to ensure that we read the message
5624 corresponding to the breakpoint we are at.
5625
5626 2003-06-04 Michael Snyder <msnyder@redhat.com>
5627
5628 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5629
5630 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5631
5632 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5633 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5634 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5635 when handling .eh_frame sections.
5636
5637 2003-06-04 J. Brobecker <brobecker@gnat.com>
5638
5639 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5640 prepare_to_proceed procedure instead of the hppa-specific one.
5641 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5642
5643 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5644
5645 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5646 * config.in: Regenerated.
5647 * configure.in: Add test for syscall function and check for
5648 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5649 * configure: Regenerated.
5650 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5651 <sys/syscall.h>.
5652 (kill_lwp): New function that uses tkill syscall or
5653 uses kill, depending on whether threading model is nptl or not.
5654 All callers of kill() changed to use kill_lwp().
5655 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5656 see if all threads have already exited in the nptl model.
5657 (stop_and_resume_callback): New callback function used by the
5658 lin_lwp_wait thread exit handling code.
5659 (stop_wait_callback): Check for threads already having exited and
5660 delete such threads fromt the lwp list when discovered.
5661 (stop_callback): Don't assert retcode of kill call.
5662
5663 Roland McGrath <roland@redhat.com>
5664 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5665 nptl libthread_db.
5666
5667 2003-06-03 Richard Henderson <rth@redhat.com>
5668
5669 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5670 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5671 (alpha_sigtramp_frame_prev_register): Likewise.
5672 (alpha_heuristic_frame_prev_register): Likewise.
5673 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5674
5675 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5676 alpha-specific register id names.
5677 (alpha_mdebug_frame_unwind_cache): Likewise.
5678 (alpha_mdebug_frame_prev_register): Likewise.
5679
5680 2003-06-03 Richard Henderson <rth@redhat.com>
5681
5682 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5683 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5684 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5685 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5686 unwind routines.
5687 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5688 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5689 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5690
5691 * alpha-linux-tdep.c: Remove unnecessary includes.
5692 * Makefile.in (alpha-linux-tdep.o): Update.
5693
5694 2003-06-03 Richard Henderson <rth@redhat.com>
5695
5696 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5697 (alphabsd_fill_fpreg): Likewise.
5698
5699 2003-06-03 J. Brobecker <brobecker@gnat.com>
5700
5701 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5702 references to struct frame_info fields by calls to the equivalent
5703 accessors. Necessary now that frame_info is opaque.
5704
5705 2003-06-03 J. Brobecker <brobecker@gnat.com>
5706
5707 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5708 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5709 structure, field no longer exists.
5710
5711 2003-06-03 J. Brobecker <brobecker@gnat.com>
5712
5713 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5714 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5715
5716 2003-06-03 J. Brobecker <brobecker@gnat.com>
5717
5718 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5719 references to struct frame_info fields by calls to the equivalent
5720 accessors. Necessary now that frame_info is opaque.
5721
5722 2003-06-03 J. Brobecker <brobecker@gnat.com>
5723
5724 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5725 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5726 structure, field no longer exists.
5727
5728 2003-06-03 Theodore A. Roth <troth@openavr.org>
5729
5730 * remote.c (init_remote_state): Compute sizeof_g_packet by
5731 accumulation of the size of all registers instead of blindly using
5732 DEPRECATED_REGISTER_BYTES.
5733
5734 2003-06-03 Michael Snyder <msnyder@redhat.com>
5735
5736 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5737 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5738 for h8300sx.
5739
5740 2003-06-03 J. Brobecker <brobecker@gnat.com>
5741
5742 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5743 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5744
5745 2003-06-03 Andrew Cagney <cagney@redhat.com>
5746
5747 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5748 (sparc_convert_to_raw): Delete function.
5749 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5750 register_convert_to_virtual.
5751
5752 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5753
5754 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5755 layer if not dealing with a statically-linked threaded program.
5756
5757 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5758
5759 * solib.c (solib_open): Update comment to reflect actual search order.
5760
5761 2003-06-03 Andrew Cagney <cagney@redhat.com>
5762
5763 * frame.c (get_frame_memory_signed): New function.
5764 (get_frame_memory, get_frame_memory_unsigned): New function.
5765 (get_frame_arch): New function.
5766 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5767 (get_frame_memory, get_frame_unsigned_memory): Declare.
5768 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5769 get_frame_memory_unsigned and get_frame_arch.
5770 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5771
5772 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5773
5774 * MAINTAINERS (write after approval): Add myself.
5775
5776 2003-06-03 Jim Blandy <jimb@redhat.com>
5777
5778 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5779 elements of gregset_t are 64 bits each, but access registers
5780 are still 32 bits, so they're packed two per gregset_t
5781 element. Unpack/pack them properly.
5782
5783 2003-06-02 David Carlton <carlton@bactrian.org>
5784
5785 * linespec.c (find_methods): Break out code into
5786 add_matching_methods and add_constructors.
5787 (add_matching_methods): New.
5788 (add_constructors): Ditto.
5789
5790 2003-06-02 Andrew Cagney <cagney@redhat.com>
5791
5792 * sparc-tdep.c (sparc_print_registers): Delete call to
5793 REGISTER_CONVERTIBLE.
5794 (sparc_gdbarch_init): Do not set register_convertible.
5795 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5796 * frv-tdep.c (frv_gdbarch_init): Ditto.
5797 * cris-tdep.c (cris_gdbarch_init): Ditto.
5798
5799 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5800
5801 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5802 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5803 (syms_from_objfile): Ditto.
5804
5805 2003-06-03 Andreas Schwab <schwab@suse.de>
5806
5807 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5808 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5809
5810 2003-06-02 Richard Henderson <rth@redhat.com>
5811
5812 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5813 a member of all_reggroup.
5814
5815 2003-06-02 Richard Henderson <rth@redhat.com>
5816
5817 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5818 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5819 (alpha_lds, alpha_sts): New.
5820 (alpha_convert_register_p): Change from _register_convertible.
5821 (alpha_register_to_value): Change from _convert_to_virtual;
5822 restructure and fail for type sizes other than 4 or 8.
5823 (alpha_value_to_register): Similarly.
5824 (alpha_extract_return_value): Use alpha_sts.
5825 (alpha_store_return_value): Use alpha_lds.
5826 (alpha_gdbarch_init): Update hooks.
5827
5828 2003-06-02 Richard Henderson <rth@redhat.com>
5829
5830 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5831 regnum identifiers.
5832 (alpha_sigtramp_register_address): Likewise.
5833
5834 2003-06-02 Richard Henderson <rth@redhat.com>
5835
5836 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5837 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5838 * alpha-tdep.h: Declare them.
5839
5840 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5841 Remove zerobuf. Don't error on UNIQUE.
5842 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5843 (ALPHA_REGSET_UNIQUE): Provide default.
5844 (supply_gregset): Use alpha_supply_int_regs.
5845 (fill_gregset): Use alpha_fill_int_regs.
5846 (supply_fpregset): Use alpha_supply_fp_regs.
5847 (fill_fpregset): Use alpha_fill_fp_regs.
5848 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5849 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5850 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5851 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5852 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5853 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5854
5855 2003-06-02 Richard Henderson <rth@redhat.com>
5856
5857 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5858
5859 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5860 (alpha_store_return_value): Likewise.
5861
5862 2003-06-02 David Carlton <carlton@math.stanford.edu>
5863
5864 * block.c (contained_in): Add 'const' to arguments.
5865 (block_function): Ditto.
5866 * block.h: Update declarations for block_function and
5867 contained_in.
5868
5869 2003-06-02 David Carlton <carlton@math.stanford.edu>
5870
5871 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5872 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5873 * p-valprint.c (pascal_val_print): Ditto.
5874 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5875
5876 2003-06-02 Richard Henderson <rth@redhat.com>
5877
5878 * alpha-tdep.c (alpha_push_dummy_call): Use
5879 builtin_type_ieee_double_little instead of builtin_type_double.
5880
5881 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5882 sign-extension of 32-bit values.
5883 (alpha_store_return_value): Similarly.
5884
5885 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5886 (alpha_extract_return_value): Likewise.
5887 (alpha_store_return_value): Likewise.
5888
5889 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5890 (alpha_store_return_value): Error on IEEE Quad floats.
5891
5892 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5893 (alpha_extract_struct_value_address): Likewise.
5894 (alpha_store_return_value): Likewise.
5895 (alpha_store_struct_return): Remove.
5896 (alpha_gdbarch_init): Update hook registration to match.
5897
5898 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5899 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5900 macros where appropriate.
5901 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5902 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5903
5904 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5905 for SP, GP; void_func_ptr for PC; non-language-specific types
5906 for all others.
5907 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5908
5909 2003-06-02 Richard Henderson <rth@redhat.com>
5910
5911 * top.h (lim_at_start): Declare.
5912 * main.c (captured_main): Set it.
5913 * top.c (lim_at_start): Define.
5914 (command_loop): Use it instead of &environ.
5915 * event-top.c (command_handler): Likewise.
5916
5917 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5918
5919 * mipsnbsd-tdep.c: Update copyright years.
5920 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5921
5922 2003-06-01 Richard Henderson <rth@redhat.com>
5923
5924 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5925 (alpha-linux-tdep.o): Update dependencies.
5926 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5927 * alpha-mdebug-tdep.c: Remove unneeded includes.
5928
5929 2003-06-01 Richard Henderson <rth@redhat.com>
5930
5931 * alpha-tdep.c (alpha_register_reggroup_p): New.
5932 (alpha_gdbarch_init): Register it.
5933
5934 2003-06-02 Andrew Cagney <cagney@redhat.com>
5935
5936 * dwarfread.c: Eliminate "register"
5937 (decode_die_type): Eliminate assignment within "if".
5938 (struct_type, decode_array_element_type): Ditto.
5939 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5940 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5941 (decode_modified_type, completedieinfo): Ditto.
5942 * block.c: Eliminate "register".
5943 (blockvector_for_pc_sect): Eliminate assignment within "if".
5944 * cp-support.h (struct symbol): Opaque declaration.
5945 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5946
5947 2003-06-01 Richard Henderson <rth@redhat.com>
5948
5949 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5950 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5951
5952 2003-06-01 Adam Fedor <fedor@gnu.org>
5953
5954 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5955 * gdbarch.[ch]: Regenerate.
5956 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5957 (hppa_gdbarch_init): Set it in the gdbarch vector.
5958 * i386-tdep.c (i386_fetch_pointer_argument): New
5959 (i386_gdbarch_init): Set it into gdbarch.
5960 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5961 (rs6000_gdbarch_init): Set it in gdbarch.
5962 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5963 (sparc_gdbarch_init): Set it in gdbarch.
5964
5965 2003-06-01 Andrew Cagney <cagney@redhat.com>
5966
5967 * defs.h (extract_address): Delete declaration.
5968 * findvar.c (extract_address): Delete function.
5969 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5970 extract_address with the inline equivalent,
5971 extract_unsigned_integer.
5972 (xstormy16_extract_struct_value_address): Ditto.
5973 (xstormy16_pointer_to_address): Ditto.
5974 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5975 * v850-tdep.c (v850_push_arguments): Ditto.
5976 (v850_extract_return_value): Ditto.
5977 (v850_extract_struct_value_address): Ditto.
5978 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5979 (sparcnbsd_get_longjmp_target_64): Ditto.
5980 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5981 (get_longjmp_target): Ditto.
5982 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5983 (sh64_extract_struct_value_address): Ditto.
5984 (sh_push_arguments): Ditto.
5985 (sh64_push_arguments): Ditto.
5986 * remote-vxsparc.c (vx_read_register): Ditto.
5987 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5988 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5989 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5990 * mipsv4-nat.c (get_longjmp_target): Ditto.
5991 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5992 * mips-nat.c (get_longjmp_target): Ditto.
5993 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5994 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5995 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5996 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5997 * irix5-nat.c (get_longjmp_target): Ditto.
5998 * irix4-nat.c (get_longjmp_target): Ditto.
5999 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6000 (ia64_push_arguments): Ditto.
6001 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6002 * h8300-tdep.c (h8300_push_arguments): Ditto.
6003 (h8300_store_return_value): Ditto.
6004 (h8300_extract_struct_value_address): Ditto.
6005 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6006 (frv_push_arguments): Ditto.
6007 * avr-tdep.c (avr_pointer_to_address): Ditto.
6008 (avr_push_arguments): Ditto.
6009 * arm-tdep.c (arm_push_dummy_call): Ditto.
6010 (arm_get_longjmp_target): Ditto.
6011 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6012 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6013 (alpha_get_longjmp_target): Ditto.
6014
6015 * solib-irix.c (extract_mips_address): Inline extract_address,
6016 replacing it with extract_signed_integer.
6017 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6018 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6019 (first_link_map_member, open_symbol_file_object): Ditto.
6020 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6021 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6022 (LM_NEXT, LM_NAME): Ditto.
6023
6024 2003-06-01 Richard Henderson <rth@redhat.com>
6025
6026 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6027 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6028 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6029 (alpha_cannot_store_register): Likewise.
6030 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6031 * alpha-nat.c (supply_gregset): Likewise.
6032 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
6033
6034 2003-06-01 Andrew Cagney <cagney@redhat.com>
6035
6036 * infcall.c (call_function_by_hand): Update comment on
6037 DEPRECATED_DUMMY_WRITE_SP.
6038
6039 * mips-tdep.c (mips_gdbarch_init): Do not set
6040 deprecated_dummy_write_sp.
6041 (mips_eabi_push_dummy_call): Set the SP register.
6042 (mips_o64_push_dummy_call): Set the SP register.
6043 (mips_o32_push_dummy_call): Set the SP register.
6044 (mips_n32n64_push_dummy_call): Set the SP register.
6045
6046 2003-06-01 Richard Henderson <rth@redhat.com>
6047
6048 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6049 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6050 (supply_gregset): Likewise.
6051 * alpha-tdep.c (alpha_store_return_value): Likewise.
6052 (alpha_get_longjmp_target): Likewise.
6053 (alpha_register_name): Constify array.
6054 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6055 deprecated_register_size, deprecated_register_bytes,
6056 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6057 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6058 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
6059
6060 2003-06-01 Richard Henderson <rth@redhat.com>
6061
6062 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6063 from arg_reg_buffer to regcache to avoid double conversion.
6064
6065 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6066
6067 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6068 SP_REGNUM.
6069 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6070 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6071
6072 2003-06-01 Richard Henderson <rth@redhat.com>
6073
6074 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6075 (decode_frame_entry): Set it. Skip FDE augmentation.
6076
6077 2003-06-01 Richard Henderson <rth@redhat.com>
6078
6079 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6080 not overlapping PC_REGNUM.
6081
6082 2003-06-01 Richard Henderson <rth@redhat.com>
6083
6084 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6085 alpha_push_arguments. Don't dump argument register data to
6086 the target stack. Fix float and 128-bit long double semantics.
6087 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6088 (alpha_fix_call_dummy): Remove.
6089 (alpha_call_dummy_words): Remove.
6090 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
6091
6092 2003-06-01 Richard Henderson <rth@redhat.com>
6093
6094 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6095
6096 2003-06-01 Andrew Cagney <cagney@redhat.com>
6097
6098 * mips-tdep.c (is_mips16_addr): New function.
6099 (make_mips16_addr, unmake_mips16_addr): New functions.
6100 (pc_is_mips16, mips_fetch_instruction): Use.
6101 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6102 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6103 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6104 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6105 TARGET_MIPS.
6106 * config/mips/tm-mips.h: Update copyright.
6107 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6108 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6109 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6110 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6111 (TM_PRINT_INSN_MACH): Delete.
6112 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6113
6114 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6115 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6116 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6117 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6118 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6119 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6120 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6121 mips*-*-riscos* and mips*-*-sysv* onto mips.
6122 * config/mips/mips64.mt: New file.
6123 * config/mips/mips.mt: New file.
6124 * config/mips/littlemips.mt: Delete file.
6125 * config/mips/decstation.mt: Delete file.
6126 * config/mips/vr4300el.mt: Delete file.
6127 * config/mips/vr5000el.mt: Delete file.
6128 * config/mips/vr5000.mt: Delete file.
6129 * config/mips/vr4100.mt: Delete file.
6130 * config/mips/vr4xxxel.mt: Delete file.
6131 * config/mips/vr4300.mt: Delete file.
6132 * config/mips/vr4xxx.mt: Delete file.
6133 * config/mips/bigmips.mt: Delete file.
6134 * config/mips/bigmips64.mt: Delete file.
6135 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6136 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6137 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6138 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6139 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6140 "tm-bigmips.h".
6141 * config/mips/tm-irix3.h: Ditto.
6142 * config/mips/tm-mipsv4.h: Ditto.
6143 * config/mips/tm-embed.h: Ditto.
6144 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6145 "tm-bigmips64.h".
6146 * config/mips/tm-vr5000el.h: Delete file.
6147 * config/mips/tm-tx39l.h: Delete file.
6148 * config/mips/tm-vr4300el.h: Delete file.
6149 * config/mips/tm-vr4xxxel.h: Delete file.
6150 * config/mips/tm-vr4300.h: Delete file.
6151 * config/mips/tm-vr4100.h: Delete file.
6152 * config/mips/tm-vr4xxx.h: Delete file.
6153 * config/mips/tm-vr5000.h: Delete file.
6154 * config/mips/tm-embedl64.h: Delete file.
6155 * config/mips/tm-embedl.h: Delete file.
6156 * config/mips/tm-embed64.h: Delete file.
6157 * config/mips/tm-bigmips64.h: Delete file.
6158 * config/mips/tm-bigmips.h: Delete file.
6159
6160 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6161
6162 Fix gdb/1216.
6163 * shnbsd-nat.c: Include "sh-tdep.h".
6164
6165 From Richard Henderson <rth@redhat.com>:
6166 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6167
6168 2003-05-31 Andrew Cagney <cagney@redhat.com>
6169
6170 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6171 forward declaration.
6172 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6173 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6174 (mips_find_saved_regs): Use set_reg_offset.
6175 (mips_frame_init_saved_regs): Delete function.
6176 (mips_pop_frame): Call mips_find_saved_regs instead of
6177 DEPRECATED_FRAME_INIT_SAVED_REGS.
6178
6179 2003-05-31 Andrew Cagney <cagney@redhat.com>
6180
6181 * mips-tdep.c (mips_gdbarch_init): Do not set
6182 deprecated_max_register_raw_size, register_virtual_size, and
6183 deprecated_max_register_virtual_size.
6184
6185 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6186
6187 * i386-tdep.c: Include "dwarf2-frame.h".
6188 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6189 * Makefile.in (i386-tdep.o): Update dependencies.
6190
6191 * dwarf2-frame.c, dwarf2-frame.h: New files.
6192 * Makefile.in (SFILES): Add dwarf2-frame.c.
6193 (dwarf2_frame_h): Define.
6194 (COMMON_OBS): Add dwarf2-frame.o.
6195 (dwarf2-frame.o): Add dependencies.
6196
6197 2003-05-31 Andreas Jaeger <aj@suse.de>
6198
6199 * x86-64-linux-nat.c: Fix comment.
6200
6201 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6202
6203 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6204 function signature.
6205
6206 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6207 have a sigcontext_addr handler.
6208 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6209 sigcontext_addr handler.
6210
6211 2003-05-31 Andrew Cagney <cagney@redhat.com>
6212
6213 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6214 (print_fp_register_row): Replace do_fp_register_row.
6215 (mips_print_fp_register): Add "file" and "frame" parameters.
6216 (mips_print_register): Add "file" and "frame" parameters.
6217 (mips_print_registers_info): Replace mips_do_registers_info.
6218 (mips_gdbarch_init): Set print_registers_info instead of
6219 deprecated_do_registers_info.
6220 (mips_read_fp_register_single): Add "frame" parameter.
6221 (mips_read_fp_register_double): Add "frame" parameter.
6222
6223 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6224
6225 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6226 Fixes a bug where GDB would print the wrong register names for
6227 targets without SSE.
6228
6229 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6230 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6231 registers.
6232
6233 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6234 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6235 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6236 TDEP->sc_sp_offset.
6237
6238 From Michal Ludvig <mludvig@suse.cz>:
6239 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6240 and `sc_num_regs'.
6241 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6242 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6243 I386_ST0_REGNUM): Move here from...
6244 * i386-tdep.c: ... here.
6245 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6246 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6247 registers if possible.
6248 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6249 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6250 Remove variables.
6251 (i386bsd_sc_reg_offset): New variable.
6252 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6253 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6254 TDEP->sc_sp_offset.
6255 (i386fbsd_sc_reg_offset): New variable.
6256 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6257 TDEP->sc_num_regs.
6258 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6259 variables.
6260 (i386fbsd4_sc_reg_offset): New variable.
6261 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6262 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6263 TDEP->sc_sp_offset.
6264 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6265 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6266 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6267 Remove variables.
6268 (i386nbsd_sc_reg_offset): New variable.
6269 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6270 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6271 TDEP->sc_sp_offset.
6272 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6273 Remove variables.
6274 (i386obsd_sc_reg_offset): New variable.
6275 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6276 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6277 TDEP->sc_sp_offset.
6278 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6279 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6280 for frame pointer offset in `struct sigcontext'.
6281
6282 2003-05-31 Andrew Cagney <cagney@redhat.com>
6283
6284 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6285 architecture methods call_dummy_words, sizeof_call_dummy_words,
6286 push_return_address, store_struct_return, and fix_call_dummy. Set
6287 push_dummy_call instead of deprecated_push_arguments.
6288 (mips_store_struct_return): Delete function.
6289 (mips_fix_call_dummy): Delete function.
6290 (mips_push_return_address): Delete function.
6291 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6292 RA_REGNUM and T9_REGNUM.
6293 (mips_n32n64_push_dummy_call): Ditto for
6294 mips_n32n64_push_arguments.
6295 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6296 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6297
6298 2003-05-31 Andrew Cagney <cagney@redhat.com>
6299
6300 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6301 "dummy_addr" to "bp_addr".
6302 * infcall.c (call_function_by_hand): Pass "funaddr" to
6303 gdbarch_push_dummy_call.
6304 * gdbarch.h, gdbarch.c: Re-generate.
6305 * i386-tdep.c (i386_push_dummy_call): Update.
6306 * arm-tdep.c (arm_push_dummy_call): Update.
6307 * d10v-tdep.c (d10v_push_dummy_call): Update.
6308
6309 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6310
6311 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6312 variable declarations.
6313 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6314 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6315 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6316 x86_64_init_frame_pc, x86_64_init_frame_pc,
6317 x86_64_function_has_prologue): Remove prototypes.
6318 (X86_64_NUM_GREGS): New define.
6319 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6320 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6321 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6322 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6323 XMM1_REGNUM): Remove defines.
6324 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6325 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6326 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6327 X86_64_XMM1_REGNUM): New defines.
6328 (struct x86_64_register_info): Renamed from `struct
6329 register_info'. Remove `size' member.
6330 (x86_64_register_info_table): Remove variable.
6331 (x86_64_register_info): New variable.
6332 (X86_64_NUM_REGS): New define.
6333 (X86_64_NUM_GREGS): Remove define.
6334 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6335 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6336 Remove variables.
6337 (x86_54_dwarf2_reg_to_regnum): Remove function.
6338 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6339 (x86_64_dwarf_reg_to_regnum): New function.
6340 (x86_64_register_name): Rewrite.
6341 (x86_64_register_raw_size): Remove function.
6342 (x86_64_register_byte_table): Remove variable.
6343 (x86_64_register_byte): Remove function.
6344 (x86_64_register_virtual_type): Remove function.
6345 (x86_64_register_type): New function.
6346 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6347 x86_64_register_convert_to_raw): Remove functions.
6348 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6349 (x86_64_use_struct_convention): Make static. Adjust for renamed
6350 defines.
6351 (x86_64_frame_init_saved_regs): Remove function.
6352 (x86_64_push_arguments): Make static. Change to accept a regcache
6353 as argument.
6354 (x86_64_store_return_value, x86_64_extract_return_value): Make
6355 static. Rewrite based on i386 counterparts.
6356 (x86_64_push_dummy_call): New function.
6357 (X86_64_NUM_SAVED_REGS): New define.
6358 (x86_64_register_number): Remove function.
6359 (x86_64_store_struct_return): Remove function.
6360 (x86_64_frameless_function_invocation,
6361 x86_64_function_has_prologue): Remove functions.
6362 (PROLOG_BUFSIZE): Remove define.
6363 (struct x86_64_frame_cache): New structure.
6364 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6365 x86_64_frame_cache, x86_64_frame_this_id,
6366 x86_64_frame_prev_register, x86_64_frame_p,
6367 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6368 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6369 functions.
6370 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6371 variables.
6372 (x86_64_skip_prologue): Rewrite in terms of
6373 x86_64_analyze_prologue.
6374 (x86_64_frame_base_address): New function.
6375 (x86_64_frame_base): New variable.
6376 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6377 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6378 set deprecated_fp_regnum, deprecated_register_size,
6379 deprecated_register_bytes, register_raw_size, register_byte,
6380 register_virtual_type, register_convertiable,
6381 register_convert_to_virtual, convert_to_raw,
6382 deprecated_get_saved_register, deprecated_target_read_fp,
6383 deprecated_push_arguments, deprecated_push_return_address,
6384 deprecated_pop_frame, deprecated_store_struct_return,
6385 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6386 frameless_function_invocation, deprecated_frame_saved_pc,
6387 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6388 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6389 deprecated_init_frame_pc and virtual_frame_pointer. Call
6390 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6391 and x86_64_frame_p. Call frame_base_set_default to register
6392 x86_64_frame_base.
6393 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6394 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6395 (_initialize_x86_64_tdep): Remove function.
6396 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6397 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6398 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6399 define.
6400 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6401 (x86_64_linux_sigcontext_addr): Rewrite.
6402 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6403 x86_64_linux_frame_saved_pc): Remove functions.
6404 (x86_64_linux_pc_in_sigtramp): Renamed from
6405 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6406 trampoline.
6407 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6408 Remove_functions.
6409 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6410 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6411 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6412 (x86_64_regmap): Rename to regmap.
6413 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6414 x86_64_num_gregs.
6415 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6416 x86_64_regmap.
6417 (x86_64_fxsave_offset): Remove function.
6418 (supply_fpregset): Simply call x86_64_supply_fxsave.
6419 (fill_fpregset): Simply call x86_64_fill_fxsave.
6420 (fetch_inferior_registers, store_inferior_registers): Avoid
6421 asignment in if-statement.
6422 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6423 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6424 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6425 (fetch_core_registers): Remove function.
6426 (linux_elf_core_fns): Remove.
6427 (offsetoff): Don't define.
6428 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6429 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6430 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6431 add core-regset.o.
6432 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6433 protection against multiple includes instead of NM_X86_64_h. Add
6434 various comments. Include "config/nm-linux.h". Don't include
6435 <signal.h>.
6436 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6437 GET_THREAD_SIGNALS): Remove defines.
6438 (x86_64_register_u_addr, kernel_u_size,
6439 lin_thread_get_thread_signals): Remove prototypes.
6440 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6441 [HAVE_LINK_H]: Don't include "solib.h".
6442 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6443 * config/i386/tm-x86-64linux.h: Fix comments.
6444 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6445 x86-64-tdep.o): Update dependencies.
6446
6447 2003-05-30 Andrew Cagney <cagney@redhat.com>
6448
6449 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6450 Change parameter type to a "struct regcache *".
6451
6452 * gdbarch.sh: Regardless of the multi-arch level, always define
6453 the macro when not already defined.
6454 * gdbarch.h, gdbarch.c: Re-generate.
6455
6456 2003-05-30 Richard Henderson <rth@redhat.com>
6457
6458 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6459 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6460 (alpha_mdebug_frame_this_id): Likewise.
6461 (alpha_mdebug_frame_prev_register): Likewise.
6462 (alpha_mdebug_frame_base_address): Likewise.
6463 (alpha_mdebug_frame_locals_address): Likewise.
6464 (alpha_mdebug_frame_args_address): Likewise.
6465 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6466 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6467 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6468 loop increment.
6469 (alpha_heuristic_frame_this_id): Make static.
6470 (alpha_heuristic_frame_prev_register): Likewise.
6471 (alpha_heuristic_frame_base_address): Likewise.
6472 * alpha-tdep.h: Update.
6473
6474 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6475
6476 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6477 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6478 defenitions.
6479 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6480 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6481 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6482 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6483 I386_ST0_REGNUM): New defines.
6484 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6485 codestream_get): Remove define.
6486 (codestream_next_addr, condestream_addr, condestream_buf,
6487 codestream_off, codestream_cnt): Remove variables.
6488 (codestream_fill, codestream_seek, codestream_read): Remove
6489 functions.
6490 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6491 functionality.
6492 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6493 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6494 i386_frame_saved_pc, i386_saved_pc_after_call,
6495 i386_frame_num_args, i386_frame_init_saved_regs,
6496 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6497 i386_push_arguments): Remove functions.
6498 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6499 functionality. Use i386_analyze_prologue instead of
6500 i386_get_frame_setup.
6501 (I386_NUM_SAVED_REGS): New define.
6502 (struct i386_frame_cache): New structure.
6503 (i386_alloc_frame_cache, i386_analyze_struct_return,
6504 i386_skip_probe, i386_analyze_frame_setup,
6505 i386_analyze_register_saves, i386_analyze_prologue,
6506 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6507 i386_frame_prev_register, i386_sigtramp_frame_cache,
6508 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6509 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6510 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6511 New functions.
6512 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6513 New variables.
6514 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6515 I386_EAX_REGNUM and I386_EDX_REGNUM.
6516 (i386_extract_return_value, i386_store_return_value): Use
6517 I386_ST0_REGNUM where appropriate.
6518 (i386_extract_struct_value_address): Rewrite to use extract_address.
6519 (i386_svr4_pc_in_sigtramp): Add comment.
6520 (i386_svr4_sigcontext_addr): Rewrite.
6521 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6522 TDEP->sc_sp_offset.
6523 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6524 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6525 of new defines. Set push_dummy_call, don't set
6526 deprecated_push_arguments, deprecated_push_return_address,
6527 deprecated_pop_frame. Don't set parm_boundary. Don't set
6528 deprecated_frame_chain, deprecated_frame_saved_pc,
6529 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6530 save_dummy_frame_tos, unwind_pc. Call
6531 frame_unwind_append_predicate and frame_base_set_default. Don't
6532 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6533 Don't set frameless_function_invocation. Don't set
6534 deprecated_register_bytes, deprecated_register_size,
6535 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6536 * i386-linux-tdep.c: Fix formatting in some comments.
6537 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6538 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6539 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6540 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6541 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6542 redundant parentheses.
6543 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6544 (i386_linux_sigcontext_addr): Use it. Rewrite.
6545 (find_minsym_and_objfile): Change name of second argument.
6546 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6547 changed. Use frame_pc_unwind instead of
6548 DEPRECATED_SAVED_PC_AFTER_CALL.
6549 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6550 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6551 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6552 unwinder.
6553 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6554 "dummy-frame.h".
6555 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6556 (_initialize_i386_cygwin_tdep): New prototype.
6557 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6558 deprecated_frame_chain_valid.
6559 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6560 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6561 Rely on the SVR4 defaults.
6562 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6563 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6564
6565 2003-05-30 Andrew Cagney <cagney@redhat.com>
6566
6567 * infcall.c (call_function_by_hand): Always call
6568 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6569
6570 2003-05-30 Richard Henderson <rth@redhat.com>
6571
6572 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6573 increment.
6574
6575 2003-05-29 Jim Blandy <jimb@redhat.com>
6576
6577 Use gdbarch methods for solib stuff on PowerPC Linux.
6578 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6579 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6580 show through.
6581 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6582 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6583 giving the same effect as the #definitions above.
6584
6585 2003-05-29 Adam Fedor <fedor@gnu.org>
6586
6587 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6588 (find_implementation_from_class): Replace it with the standard
6589 case i.e. do nothing.
6590
6591 2003-05-29 Richard Henderson <rth@redhat.com>
6592
6593 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6594 (alpha_linux_sigtramp_offset): Use it. Make static.
6595 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6596 update for new frame model.
6597 * alpha-mdebug-tdep.c: New file.
6598 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6599 (alpha_osf1_init_abi): Install it.
6600 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6601 (linked_proc_desc_table): Remove.
6602 (alpha_frame_past_sigtramp_frame): Remove.
6603 (alpha_dynamic_sigtramp_offset): Remove.
6604 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6605 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6606 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6607 (push_sigtramp_desc): Remove.
6608 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6609 (alpha_cannot_store_register): Likewise.
6610 (alpha_sigcontext_addr): Remove.
6611 (alpha_find_saved_regs): Remove.
6612 (alpha_frame_init_saved_regs): Remove.
6613 (alpha_init_frame_pc_first): Remove.
6614 (read_next_frame_reg): Remove.
6615 (alpha_frame_saved_pc): Remove.
6616 (alpha_saved_pc_after_call): Remove.
6617 (temp_proc_desc, temp_saved_regs): Remove.
6618 (alpha_about_to_return): Remove.
6619 (cached_proc_desc): Remove.
6620 (alpha_frame_chain): Remove.
6621 (alpha_print_extra_frame_info): Remove.
6622 (alpha_init_extra_frame_info): Remove.
6623 (alpha_frame_locals_address): Remove.
6624 (alpha_frame_args_address): Remove.
6625 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6626 (alpha_push_dummy_frame): Remove.
6627 (alpha_pop_frame): Remove.
6628 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6629 (alpha_read_insn): New.
6630 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6631 for different insn encodings.
6632 (alpha_in_lenient_prologue): Remove.
6633 (struct alpha_sigtramp_unwind_cache): New.
6634 (alpha_sigtramp_frame_unwind_cache): New.
6635 (alpha_sigtramp_register_address): New.
6636 (alpha_sigtramp_frame_this_id): New.
6637 (alpha_sigtramp_frame_prev_register): New.
6638 (alpha_sigtramp_frame_unwind): New.
6639 (alpha_sigtramp_frame_p): New.
6640 (struct alpha_heuristic_unwind_cache): New.
6641 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6642 don't count nop insns that occur between functions.
6643 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6644 heuristic_proc_desc, but without the mdebug wrapping.
6645 (alpha_heuristic_frame_this_id): New.
6646 (alpha_heuristic_frame_prev_register): New.
6647 (alpha_heuristic_frame_unwind): New.
6648 (alpha_heuristic_frame_p): New.
6649 (alpha_heuristic_frame_base_address): New.
6650 (alpha_heuristic_frame_base): New.
6651 (alpha_unwind_dummy_id): New.
6652 (alpha_unwind_pc): New.
6653 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6654 frame related deprecated initializations; install replacements.
6655 (alpha_dump_tdep): Remove.
6656 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6657 (alpha_read_insn, alpha_after_prologue,
6658 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6659 alpha_heuristic_frame_prev_register,
6660 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6661 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6662 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6663 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6664
6665 2003-05-29 Andrew Cagney <cagney@redhat.com>
6666
6667 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6668 dependant on the availability of ASSERT_FUNCTION.
6669 (ASSERT_FUNCTION): Do not define when there is no function name.
6670
6671 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6672
6673 From Jimi X <jimix@watson.ibm.com>:
6674 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6675
6676 2003-05-28 Jim Blandy <jimb@redhat.com>
6677
6678 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6679 argument to ptrace to int; the system headers should give it the
6680 right type, and pointers don't fit in ints on powerpc64-*-*.
6681
6682 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6683
6684 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6685 DW_TAG_catch_block.
6686
6687 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6688
6689 * stabsread.c (dbx_lookup_type): Make static.
6690 (read_type): Ditto.
6691 (add_undefined_type): Ditto.
6692 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6693 not export.
6694
6695 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6696
6697 * hpread.c (hpread_has_name): Make static.
6698 (hpread_psymtab_to_symtab): Ditto.
6699 (file_exists): Ditto.
6700 (hpread_call_pxdb): Ditto.
6701 (hpread_pxdb_needed): Ditto.
6702 (hpread_quick_traverse): Ditto.
6703 (hpread_get_header): Ditto.
6704 (hpread_get_lntt): Ditto.
6705 (hpread_get_slt): Ditto.
6706 (class_of): Ditto.
6707
6708 2003-05-25 Andreas Schwab <schwab@suse.de>
6709
6710 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6711 stack_align and deprecated_extra_stack_alignment_needed.
6712 (m68k_stack_align): Delete.
6713
6714 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6715 (m68k_register_virtual_size): Likewise.
6716 (altos_skip_prologue): Remove obsolete function.
6717 (isi_frame_num_args): Likewise.
6718 (news_frame_num_args): Likewise.
6719 (m68k_fix_call_dummy): Make static.
6720 (m68k_push_dummy_frame): Likewise.
6721 (m68k_pop_frame): Likewise.
6722 (m68k_skip_prologue): Likewise.
6723 (m68k_frame_init_saved_regs): Likewise.
6724 (m68k_saved_pc_after_call): Likewise.
6725 (m68k_get_longjmp_target): Make multi-arch.
6726 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6727 structure. Register m68k_get_longjmp_target if enabled.
6728 * m68k-tdep.h (struct gdbarch_tdep): Define.
6729 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6730
6731 * Makefile.in (config.status): Also depend on configure.tgt
6732 and configure.host.
6733 (m68klinux-tdep.o): Update dependencies.
6734 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6735 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6736 (M68K_LINUX_JB_PC): Define.
6737 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6738 and take additional parameter.
6739 (m68k_linux_sigtramp_saved_pc): Update.
6740 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6741 m68k_linux_pc_in_sigtramp, in_plt_section,
6742 find_solib_trampoline_target.
6743 * config/m68k/tm-linux.h: Don't include any tm headers.
6744 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6745 (JB_ELEMENT_SIZE): Likewise.
6746 (JB_PC): Likewise.
6747 (GET_LONGJMP_TARGET): Likewise.
6748 (IN_SIGTRAMP): Likewise.
6749 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6750
6751 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6752
6753 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6754 (sparc32_push_arguments): Re-implement by calling
6755 sparc32_do_push_arguments.
6756
6757 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6758
6759 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6760 SPARC_O1_REGNUM): New defines.
6761 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6762 (sparc32_store_return_value): New function.
6763 (sparc_extract_struct_value_address): Rewrite to operate on a
6764 regcache.
6765 (sparc_gdbarch_init): Don't set
6766 deprecated_extract_struct_value_address. Set
6767 extract_struct_value_address instead. Don't set
6768 deprecated_extract_return_value and deprecated_store_return_value
6769 for 32-bit targets. Set extract_return_value and
6770 store_return_value instead.
6771 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6772 DEPRECTAED_EXTRACT_RETURN_VALUE,
6773 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6774 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6775 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6776 (sparc_store_return_value): Remove prototype.
6777 (sparc32_store_return_value): New prototype.
6778 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6779 Adjust prototypes.
6780
6781 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6782
6783 * sparcnbsd-tdep.c: Include "gdb_string.h".
6784
6785 2003-05-23 Andrew Cagney <cagney@redhat.com>
6786
6787 * p-valprint.c (pascal_val_print): Replace extract_address with
6788 the inline equivalent extract_unsigned_integer.
6789 * jv-valprint.c (java_value_print): Ditto.
6790 * ada-valprint.c (ada_val_print_1): Ditto.
6791 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6792
6793 2003-05-23 Theodore A. Roth <troth@openavr.org>
6794
6795 * blockframe.c (frameless_look_for_prologue): Remove unused
6796 after_prologue variable.
6797
6798 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6799
6800 * blockframe.c (get_pc_function_start): Rewrite to avoid
6801 asignments in if-statements.
6802
6803 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6804
6805 Committed by Elena Zannoni <ezannoni@redhat.com>.
6806 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6807 files, don't relocate absolute symbols (and do use mst_abs).
6808
6809 2003-05-23 Andrew Cagney <cagney@redhat.com>
6810
6811 * objc-lang.c: Include "gdb_assert.h".
6812 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6813 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6814 (gdb_check, gdb_check_fatal): Delete functions.
6815 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6816 gdb_assert.
6817 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6818 * Makefile.in (objc-lang.o): Update dependencies.
6819
6820 2003-05-22 Ian Lance Taylor <ian@airs.com>
6821
6822 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6823 with fprintf_filtered, not fprintf_unfiltered.
6824
6825 2003-05-22 Andrew Cagney <cagney@redhat.com>
6826
6827 * stack.c (frame_info): Inline extract_address, replacing it with
6828 extract_unsigned_integer.
6829 * findvar.c (unsigned_pointer_to_address): Ditto.
6830 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6831 * dwarf2expr.c (dwarf2_read_address): Ditto.
6832 * frame.c (frame_pc_unwind): Update comment.
6833 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6834
6835 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6836
6837 * infptrace.c (detach): Call print_sys_errmsg rather than
6838 perror_with_name to issue warning message when errno is non-zero
6839 after calling ptrace detach.
6840
6841 2003-05-21 J. Brobecker <brobecker@gnat.com>
6842
6843 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6844 macro definitions from here...
6845 * hppa-tdep.c: ...to there.
6846
6847 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6848
6849 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6850 register_ptrace_addr(). Fix all callers.
6851
6852 2003-05-21 Andreas Schwab <schwab@suse.de>
6853
6854 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6855 dependencies.
6856 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6857 end.
6858 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6859 (_initialize_m68k_linux_tdep): New function.
6860 (m68k_linux_frame_saved_pc): Make static.
6861 (m68k_linux_extract_return_value): Likewise.
6862 (m68k_linux_store_return_value): Likewise.
6863 (m68k_linux_extract_struct_value_address): Likewise.
6864 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6865 Remove.
6866 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6867 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6868 (DEPRECATED_FRAME_SAVED_PC): Remove.
6869
6870 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6871
6872 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6873 regset numbering rather than our own.
6874
6875 2003-05-19 David Carlton <carlton@bactrian.org>
6876
6877 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6878
6879 2003-05-19 David Carlton <carlton@bactrian.org>
6880
6881 Partial fix for PR c++/827.
6882 * cp-support.h: Include symtab.h.
6883 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6884 * cp-namespace.c: Update contributors.
6885 (cp_lookup_symbol_nonlocal): New.
6886 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6887 (lookup_symbol_file): Ditto.
6888 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6889 * block.h: Declare block_scope, block_using, block_global_block.
6890 * block.c (block_scope): New.
6891 (block_using, block_global_block): Ditto.
6892 * Makefile.in (cp_support_h): Depend on symtab_h.
6893 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6894
6895 2003-05-19 David Carlton <carlton@bactrian.org>
6896
6897 * language.h (struct language_defn): Add 'la_value_of_this'
6898 and 'la_lookup_symbol_nonlocal' members.
6899 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6900 lookup_symbol_static, lookup_symbol_global,
6901 lookup_symbol_aux_block.
6902 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6903 if we should search fields of this and how to do static/global
6904 lookup.
6905 (lookup_symbol_aux_block): Make extern.
6906 (basic_lookup_symbol_nonlocal): New.
6907 (lookup_symbol_static, lookup_symbol_global): Ditto.
6908 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6909 'la_lookup_symbol_nonlocal' members.
6910 * c-lang.c (c_language_defn, cplus_language_defn)
6911 (asm_language_defn, minimal_language_defn): Ditto.
6912 * jv-lang.c (java_language_defn): Ditto.
6913 * language.c (unknown_language_defn, auto_language_defn)
6914 (local_language_defn): Ditto.
6915 * m2-lang.c (m2_language_defn): Ditto.
6916 * objc-lang.c (objc_language_defn): Ditto.
6917 * scm-lang.c (scm_language_defn): Ditto.
6918 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6919 * p-lang.c (pascal_language_defn): Ditto for both.
6920 * Makefile.in (f-lang.o): Depend on value_h.
6921 (p-lang.o): Ditto.
6922
6923 2003-05-19 David Carlton <carlton@bactrian.org>
6924
6925 * block.h: Declare block_static_block.
6926 * block.c (block_static_block): New.
6927 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6928 lookup_symbol_aux_local, calling block_static_block instead.
6929 (lookup_symbol_aux_local): Delete 'static_block' argument.
6930
6931 2003-05-19 David Carlton <carlton@bactrian.org>
6932
6933 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6934
6935 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6936
6937 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6938 register numbers mapping.
6939
6940 2003-05-18 Adam Fedor <fedor@gnu.org>
6941
6942 * symtab.c (completion_list_objc_symbol): New function.
6943 (make_symbol_completion_list): Use it to add ObjC symbols
6944 when looking though the list.
6945 (language_search_unquoted_string): New function.
6946 (make_file_symbol_completion_list): Use it.
6947
6948 2003-05-18 Andreas Schwab <schwab@suse.de>
6949
6950 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6951 dependencies.
6952 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6953 as m68k_linux_extract_return_value.
6954 (DEPRECATED_STORE_RETURN_VALUE): Define as
6955 m68k_linux_store_return_value.
6956 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6957 m68k_linux_extract_struct_value_address.
6958 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6959 get_next_frame, get_frame_base, get_frame_pc.
6960 (m68k_linux_frame_saved_pc): Use get_frame_base.
6961 (m68k_linux_extract_return_value): New function.
6962 (m68k_linux_store_return_value): New function.
6963 (m68k_linux_extract_struct_value_address): New function.
6964 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6965
6966 * c-exp.y (typebase): Remove duplicate occurence of
6967 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6968 of lookup_signed_typename.
6969
6970 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6971
6972 * dwarf2loc.c (find_location_expression): Change type of second
6973 argument to `size_t *'.
6974 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6975 for size variable.
6976
6977 2003-05-18 David Carlton <carlton@bactrian.org>
6978
6979 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6980 'linkage_name'. Add comment.
6981 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6982 'linkage_name'.
6983 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6984 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6985 (lookup_block_symbol): Ditto.
6986
6987 2003-05-16 Andrew Cagney <cagney@redhat.com>
6988
6989 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6990 * gdbarch.h, gdbarch.c: Re-generate.
6991 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6992 * TODO (REGISTER_BYTES): Delete reference.
6993 * alpha-tdep.c (alpha_gdbarch_init): Update.
6994 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6995 * x86-64-tdep.c (x86_64_init_abi): Update.
6996 * vax-tdep.c (vax_gdbarch_init): Update.
6997 * v850-tdep.c (v850_gdbarch_init): Update.
6998 * sparc-tdep.c (sparc_gdbarch_init): Update.
6999 * sh-tdep.c (sh_gdbarch_init): Update.
7000 * s390-tdep.c (s390_gdbarch_init): Update.
7001 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7002 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7003 (ns32k_gdbarch_init_32382): Update.
7004 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7005 * mcore-tdep.c (mcore_gdbarch_init): Update.
7006 * m68k-tdep.c (m68k_gdbarch_init): Update.
7007 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7008 * ia64-tdep.c (ia64_gdbarch_init): Update.
7009 * i386-tdep.c (i386_gdbarch_init): Update.
7010 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7011 * hppa-tdep.c (hppa_gdbarch_init): Update.
7012 * h8300-tdep.c (h8300_gdbarch_init): Update.
7013 * frv-tdep.c (frv_gdbarch_init): Update.
7014 * cris-tdep.c (cris_gdbarch_init): Update.
7015 * avr-tdep.c (avr_gdbarch_init): Update.
7016 * arm-tdep.c (arm_gdbarch_init): Update.
7017 * sparc-tdep.c (sparc_pop_frame): Update.
7018 * rs6000-tdep.c (rs6000_pop_frame): Update.
7019 * remote.c (init_remote_state): Update.
7020 (remote_prepare_to_store): Update.
7021 * remote-vx.c (vx_prepare_to_store): Update.
7022 * remote-sds.c (sds_fetch_registers): Update.
7023 (sds_prepare_to_store): Update.
7024 * remote-array.c: Update.
7025 * regcache.c (init_legacy_regcache_descr): Update.
7026 (init_regcache_descr): Update.
7027 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7028 (mips_o64_extract_return_value): Update.
7029 * irix5-nat.c (fetch_core_registers): Update.
7030 * irix4-nat.c (fetch_core_registers): Update.
7031 * i386-tdep.h: Update.
7032 * hppa-tdep.c (pa_do_registers_info): Update.
7033 (pa_do_strcat_registers_info): Update.
7034 * cris-tdep.c (cris_register_bytes_ok): Update.
7035 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7036 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7037 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7038 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7039 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7040 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7041 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7042 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7043 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7044 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7045 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7046 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7047 (REGISTER_BYTES_OK): Update.
7048 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7049 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7050
7051 2003-05-16 Ian Lance Taylor <ian@airs.com>
7052
7053 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7054 (vax_print_insn, print_insn_arg): Remove static functions.
7055 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7056 print_insn_vax from opcodes library.
7057 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7058
7059 2003-05-15 Andrew Cagney <cagney@redhat.com>
7060
7061 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7062 * target.h (memory_breakpoint_from_pc): Delete declaration.
7063 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7064 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7065 * monitor.c (monitor_insert_breakpoint): Use
7066 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7067 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7068 * gdbarch.h, gdbarch.c: Re-generate.
7069 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7070 (sparc_gdbarch_init): Set breakpoint_from_pc to
7071 sparc_breakpoint_from_pc.
7072 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7073 (BREAKPOINT_FROM_PC): Define.
7074 (sparc_breakpoint_from_pc): Declare.
7075 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7076 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7077 (BREAKPOINT_FROM_PC): Define.
7078 (BREAKPOINT): Delete macro.
7079 * target.h: Update comment.
7080 * s390-tdep.c (s390_gdbarch_init): Update comments.
7081 * remote.c: Update comments.
7082 * remote-mips.c: Update comments.
7083 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7084 * mem-break.c: Update comment.
7085 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7086 (ia64_memory_insert_breakpoint): Update.
7087 * config/sparc/tm-sparc.h: Update comment.
7088 * config/pa/tm-hppa64.h: Update comment.
7089 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7090 (rs6000_breakpoint_from_pc): Update.
7091 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7092 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7093 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7094 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7095 (mips_breakpoint_from_pc): Update.
7096 (mips_dump_tdep): Update.
7097
7098 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7099 * minsyms.c (lookup_minimal_symbol): Inline
7100 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7101
7102 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7103 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7104 * p-lang.c (pascal_printstr): Ditto.
7105 * objc-lang.c (objc_printstr): Ditto.
7106 * m2-lang.c (m2_printstr): Ditto.
7107 * jv-valprint.c (java_print_value_fields): Ditto.
7108 * f-lang.c (f_printstr): Ditto.
7109 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7110 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7111 for repeat_count_threshold.
7112 * Makefile.in (cp-valprint.o): Update dependencies.
7113
7114 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
7115
7116 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7117 (examine_prologue): Support looking through leaf functions, knowing
7118 they start with mov r2,r12. Support skipping over indirect stores
7119 of the input registers. Upon hitting a non-nop branch instruction
7120 or predicated instruction, bail out by setting lim_pc to the current
7121 pc value in the loop. At the end, if the lim_pc value is still
7122 beyond our calculated value and we have trust_limit set,
7123 use the lim_pc value.
7124
7125 2003-05-15 Andrew Cagney <cagney@redhat.com>
7126
7127 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7128 generic_find_dummy_frame.
7129 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7130 (deprecated_generic_find_dummy_frame): Update.
7131 (deprecated_read_register_dummy): Update.
7132 * frame.c (deprecated_generic_get_saved_register): Update.
7133
7134 2003-05-15 Theodore A. Roth <troth@openavr.org>
7135
7136 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7137 (avr_gdbarch_init): Set breakpoint_from_pc method.
7138
7139 2003-05-15 Andrew Cagney <cagney@redhat.com>
7140
7141 * regcache.c (build_regcache): Set deprecated_register_valid
7142 directly.
7143 (deprecated_grub_regcache_for_register_valid): Delete function.
7144 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7145 declaration.
7146
7147 2003-05-15 David Carlton <carlton@bactrian.org>
7148
7149 Committed by Elena Zannoni <ezannoni@redhat.com>
7150 * symtab.c (lookup_symbol_aux): Delete calls to
7151 lookup_symbol_aux_minsyms.
7152 (lookup_symbol_aux_minsyms): Comment out function and
7153 prototype. Delete lookup by mangled name.
7154
7155 2003-05-14 Kevin Buettner <kevinb@redhat.com>
7156
7157 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7158 correctly indicate an empty stack and ``stack_allocated'' to the
7159 indicate the number of elements initially allocated.
7160 (dwarf_expr_grow_stack): Simplify method for computing new
7161 stack size. Don't loop infinitely if ``stack_len'' is zero.
7162 (execute_stack_op): Move ``ctx->in_reg'' initialization
7163 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7164 be used in conjuction with DW_OP_piece. Revise error message
7165 accordingly.
7166
7167 2003-05-14 Theodore A. Roth <troth@openavr.org>
7168
7169 * MAINTAINERS: Update my email address.
7170 * avr-tdep.c: Ditto.
7171
7172 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
7173
7174 * symtab.h (enum domain_enum): Rename from namespace_enum.
7175 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7176 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7177 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7178 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7179 TYPES_NAMESPACE, METHODS_NAMESPACE.
7180 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7181 (struct symbol, struct partial_symbol): Rename field
7182 'namespace_enum namespace' to 'domain_enum domain'.
7183 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7184 Delete old define kludge for namespace.
7185
7186 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7187 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7188 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7189 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7190 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7191 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7192 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7193 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7194 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7195 occurrences of the above.
7196
7197 2003-05-14 Ian Lance Taylor <ian@airs.com>
7198
7199 * Makefile.in (install-only): Use $(SHELL) when running
7200 mkinstalldirs.
7201
7202 2003-05-13 Ian Lance Taylor <ian@airs.com>
7203
7204 * MAINTAINERS (write after approval): Add myself.
7205
7206 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7207 second and third arguments.
7208 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7209 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7210
7211 2003-05-13 Andrew Cagney <cagney@redhat.com>
7212
7213 * defs.h (store_address): Delete declaration.
7214 findvar.c (store_address): Delete function.
7215 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7216 store_unsigned_integer.
7217 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7218 * v850-tdep.c (v850_push_arguments): Ditto.
7219 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7220 * sh-tdep.c (sh64_get_saved_register): Ditto.
7221 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7222 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7223 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7224 (mips_get_saved_register): Ditto.
7225 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7226 (find_func_descr, ia64_push_arguments): Ditto.
7227 * i386-tdep.c (i386_push_arguments): Ditto.
7228 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7229 * frv-tdep.c (frv_push_arguments): Ditto.
7230 * frame.c (legacy_saved_regs_prev_register): Ditto.
7231 (deprecated_generic_get_saved_register): Ditto.
7232 * findvar.c (unsigned_address_to_pointer): Ditto.
7233 * dwarf2read.c (dwarf2_const_value): Ditto.
7234 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7235 * alpha-tdep.c (alpha_push_arguments): Ditto.
7236
7237 2003-05-12 J. Brobecker <brobecker@gnat.com>
7238
7239 * NEWS: Mention that the hppa-hpux port has been partially
7240 multiarched (32bit ABIT only, so far).
7241
7242 2003-05-11 Andrew Cagney <cagney@redhat.com>
7243
7244 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7245 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7246 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7247 sim/testsuite/sim/arm/misaligned2.ms, and
7248 sim/testsuite/sim/arm/misaligned3.ms.
7249 * disasm.h (struct ui_file): Add opaque struct declaration.
7250 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7251 * frame.h (struct ui_file): Ditto.
7252
7253 2003-05-11 Mark Kettenis <kettenis@gnu.org>
7254
7255 * value.h: Pretty print.
7256
7257 2003-05-10 Mark Kettenis <kettenis@gnu.org>
7258
7259 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7260
7261 2003-05-08 Andrew Cagney <cagney@redhat.com>
7262
7263 * regcache.h (max_register_size): Delete declaration.
7264 * regcache.c (max_register_size): Delete function.
7265 (struct regcache_descr): Delete field "max_register_size".
7266 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7267 registers fit in MAX_REGISTER_SIZE.
7268 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7269 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7270 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7271 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7272 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7273 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7274 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7275 * dve3900-rom.c, hppa-tdep.c: Ditto.
7276
7277 2003-05-08 David Carlton <carlton@math.stanford.edu>
7278
7279 * valops.c (push_word): Fix typo.
7280
7281 2003-05-08 Andrew Cagney <cagney@redhat.com>
7282
7283 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7284 * gdbarch.h: Re-generate.
7285 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7286 (legacy_max_register_raw_size): Delete declaration.
7287 * regcache.c (legacy_max_register_raw_size): Delete function.
7288 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7289 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7290 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7291 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7292 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7293 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7294 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7295 * findvar.c, dwarf2cfi.c: Ditto.
7296
7297 2003-05-08 Andrew Cagney <cagney@redhat.com>
7298
7299 * mips-tdep.c (read_signed_register): New function, moved to here
7300 from "regcache.c".
7301 (read_signed_register_pid): Ditto.
7302 * regcache.c (read_signed_register_pid): Delete function, moved to
7303 "mips-tdep.c".
7304 (read_signed_register): Ditto.
7305 * regcache.h (read_signed_register): Delete declaration.
7306 (read_signed_register_pid): Delete declaration.
7307
7308 2003-05-08 Andrew Cagney <cagney@redhat.com>
7309
7310 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7311 * gdbarch.h: Re-generate.
7312 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7313 (legacy_max_register_virtual_size): Delete declaration.
7314 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7315 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7316 * tracepoint.c (memrange_sortmerge): Ditto.
7317 * sparc-tdep.c (sparc_print_registers): Ditto.
7318 * regcache.c (legacy_max_register_virtual_size): Delete function.
7319
7320 2002-05-08 J. Brobecker <brobecker@gnat.com>
7321
7322 * fork-child.c (escape_bang_in_quoted_argument): New function.
7323 (fork_inferior): Escape '!' characters in quoted arguments
7324 only when needed.
7325
7326 2003-05-08 J. Brobecker <brobecker@gnat.com>
7327
7328 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7329 the language of the CU is not currently supported by GDB.
7330
7331 2003-05-08 J. Brobecker <brobecker@gnat.com>
7332
7333 * defs.h (language): Add language_minimal enum value.
7334 * c-lang.c (minimal_language_defn): New language definition.
7335 (_initialize_c_language): Add the new minimal language to the list
7336 of languages known to GDB.
7337
7338 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7339
7340 * frame.c (get_frame_type): Don't attempt to lazily initialize
7341 frame's unwinder for legacy frames.
7342
7343 2003-05-07 Andrew Cagney <cagney@redhat.com>
7344
7345 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7346 and "regcache" parameters.
7347 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7348
7349 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7350
7351 * dwarf2read.c (dwarf_decode_lines): Only use output of
7352 check_cu_functions() when calling record_line(). Do not update
7353 the current address.
7354
7355 2003-05-07 Andrew Cagney <cagney@redhat.com>
7356
7357 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7358 code.
7359
7360 2003-05-07 Jim Blandy <jimb@redhat.com>
7361
7362 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7363 'maint info symtabs' and 'maint info psymtabs'.
7364 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7365 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7366 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7367 Declarations updated.
7368 * maint.c (maintenance_list_command): Delete.
7369 (_initialize_maint_cmds): Update calls to add_cmd.
7370 * gdbcmd.h (maintenancelistlist): Delete declaration.
7371 * cli/cli-cmds.c (maintenancelistlist): Delete.
7372 (init_cmd_lists): Don't initialize it.
7373 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7374
7375 2003-05-07 Andrew Cagney <cagney@redhat.com>
7376
7377 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7378 "regcache".
7379 (d10v_print_registers_info): Update.
7380 (d10v_dmap_register, d10v_imap_register): Delete functions.
7381 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7382 and "imap_register".
7383 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7384 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7385 * arch-utils.c (generic_remote_translate_xfer_address): Add
7386 "regcache" and "gdbarch" parameters.
7387 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7388 parameter. Change class to multi-arch.
7389 * gdbarch.h, gdbarch.c: Re-generate.
7390 * remote.c (remote_xfer_memory): Use
7391 gdbarch_remote_translate_xfer_address.
7392
7393 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7394
7395 * infrun.c (prev_pc): Move declaration ahead of proceed().
7396 (proceed): Refresh prev_pc value before resuming.
7397 (stop_stepping): Remove code to refresh prev_pc.
7398
7399 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7400
7401 * nto-tdep.c: Removed stray comment.
7402
7403 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7404
7405 * i386-nto-tdep.c: Fix old K&R function definitions.
7406 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7407 Also change add_show_from_set() call to add_setshow_cmd().
7408 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7409
7410 2003-05-05 Andrew Cagney <cagney@redhat.com>
7411
7412 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7413 (fprint_dummy_frames): New function.
7414 (maintenance_print_dummy_frames): New function.
7415 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7416 * frame.c (fprint_frame_id): Make global.
7417 * frame.h (fprint_frame_id): Declare.
7418 * Makefile.in (dummy-frame.o): Update dependencies.
7419
7420 2003-05-05 Andrew Cagney <cagney@redhat.com>
7421
7422 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7423 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7424 SIZEOF_CALL_DUMMY_WORDS.
7425 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7426 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7427 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7428 CALL_DUMMY_BREAKPOINT_OFFSET.
7429 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7430 CALL_DUMMY_START_OFFSET.
7431 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7432 * gdbarch.h, gdbarch.c: Re-generate.
7433 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7434 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7435 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7436 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7437 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7438 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7439 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7440 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7441 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7442 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7443 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7444 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7445 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7446 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7447 * config/sparc/tm-sparc.h: Update.
7448
7449 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7450
7451 * configure.tgt: Add i[3456]86-*-nto*.
7452 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7453 * nto-tdep.c: New file. Neutrino target support routines.
7454 * nto-tdep.h: New file. Neutrino target header.
7455 * config/tm-qnxnto.h: New file.
7456 * config/i386/i386nto.mt: New file.
7457 * config/i386/tm-i386nto.h: New file.
7458
7459 2003-05-04 Andrew Cagney <cagney@redhat.com>
7460
7461 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7462 (load_infrun_state): Ditto.
7463 (struct thread_info): Drop "prev_func_name" field.
7464 * thread.c (load_infrun_state): Update.
7465 (save_infrun_state): Update.
7466 * infrun.c (prev_func_name): Delete variable.
7467 (init_wait_for_inferior): Do not clear prev_func_name.
7468 (stop_stepping, keep_going, context_switch): Do not swap
7469 prev_func_name.
7470 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7471 instead of PC_IN_SIGTRAMP.
7472
7473 2003-05-04 Andrew Cagney <cagney@redhat.com>
7474
7475 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7476 REGISTER_BYTE with register_offset_hack.
7477 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7478 that REGISTER_BYTE is consistent with the regcache.
7479 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7480 * gdbarch.h, gdbarch.c: Regenerate.
7481
7482 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7483
7484 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7485 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7486
7487 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7488
7489 2003-05-03 J. Brobecker <brobecker@gnat.com>
7490
7491 From Thierry Schneider <tpschneider1@yahoo.com>
7492 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7493 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7494 (mi-cmd-symbol.o): Add rule.
7495
7496 2003-05-03 Andrew Cagney <cagney@redhat.com>
7497
7498 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7499 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7500 * gdbarch.h, gdbarch.c: Re-generate.
7501 * d10v-tdep.c (d10v_push_dummy_code): New function.
7502 (d10v_gdbarch_init): Set push_dummy_code.
7503 * infcall.c (legacy_push_dummy_code): New function.
7504 (generic_push_dummy_code): New function.
7505 (push_dummy_code): New function.
7506 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7507 instead of dummy_addr, to push_dummy_call. Move call to
7508 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7509 switch.
7510 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7511
7512 2003-05-03 Andrew Cagney <cagney@redhat.com>
7513
7514 * disasm.h (print_insn): Declare.
7515 * disasm.c (init_gdb_disassemble_info): New function.
7516 (gdb_disassembly): Call init_gdb_disassemble_info.
7517 (gdb_print_insn): New function.
7518 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7519 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7520 * mcore-tdep.c: Include "disasm.h"
7521 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7522 * d10v-tdep.c: Include "disasm.h".
7523 (display_trace): Call gdb_print_insn, instead of print_insn.
7524 (print_insn): Delete function.
7525 * printcmd.c: Include "disasm.h".
7526 (print_insn): Delete function.
7527 (print_formatted): Call gdb_print_insn, instead of print_insn.
7528 * Makefile.in (printcmd.o): Update dependencies.
7529 (mcore-tdep.o, d10v-tdep.o): Ditto.
7530
7531 2003-05-02 Andrew Cagney <cagney@redhat.com>
7532
7533 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7534 PC_REGNUM, re-indent.
7535 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7536 PC_REGNUM isn't set.
7537
7538 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7539 * gdbarch.h, gdbarch.c: Re-generate.
7540 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7541 register_virtual_size, pc_regnum, or register_bytes.
7542 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7543 (d10v_register_type): Use D10V_PC_REGNUM.
7544 (d10v_print_registers_info, d10v_read_pc): Ditto.
7545 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7546 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7547
7548 2003-05-02 David Carlton <carlton@bactrian.org>
7549
7550 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7551 the name with mstrsave.
7552
7553 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7554
7555 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7556 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7557 (host_charset_name, target_charset_name): New vars for use by
7558 set/show commands.
7559 (host_charset_enum, target_charset_enum): New enums for set/show
7560 commands.
7561 (set_charset_sfunc, set_host_charset_sfunc,
7562 set_target_charset_sfunc): New functions.
7563 (set_host_charset, set_target_charset): Make static.
7564 (list_charsets, set_host_charset_command,
7565 set_target_charset_command): Delete functions.
7566 (show_charset_command): Rewrite as....
7567 (show_charset): Hook this up with the set/show command mechanism.
7568 (_initialize_charset): Change names of charsets to match the
7569 set/show enums. Use host_charset_name and target_charset_name.
7570 Use set/show mechanism for charset, host-charset, target-charset
7571 commands. Do not make 'show host-charset' and 'show
7572 target-charset' be aliases of 'show charset'.
7573
7574 * charset.h (set_host_charset, set_target_charset): Don't export,
7575 they are not used outside the file.
7576
7577 2003-05-01 Andrew Cagney <cagney@redhat.com>
7578
7579 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7580 (gdb_disassembly): Make "di" non static, always initialize and
7581 cleanup. Always use dis_asm_read_memory.
7582 (gdb_dis_asm_read_memory): Delete function.
7583
7584 2003-05-01 Andrew Cagney <cagney@redhat.com>
7585
7586 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7587 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7588
7589 2003-04-30 Andrew Cagney <cagney@redhat.com>
7590
7591 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7592 "tm_print_insn_info".
7593 (TARGET_PRINT_INSN_INFO): Delete macro.
7594 (dis_asm_read_memory): Delete function declaration.
7595 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7596 (tm_print_insn_info): Delete variable definition.
7597 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7598 * gdbarch.h, gdbarch.c: Re-generate.
7599 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7600 "deprecated_tm_print_insn_info".
7601 * mcore-tdep.c (mcore_dump_insn): Ditto.
7602 * mips-tdep.c (mips_gdbarch_init): Ditto.
7603 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7604 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7605 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7606 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7607 instead of TARGET_PRINT_INSN_INFO, add comment.
7608 * s390-tdep.c (s390_get_frame_info): Instead of
7609 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7610 (s390_check_function_end, s390_is_sigreturn): Ditto.
7611 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7612 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7613 * disasm.c: Include "gdbcore.h".
7614 (_initialize_disasm): New function, initialize
7615 "deprecated_tm_print_insn_info".
7616 (deprecated_tm_print_insn_info): New variable.
7617 (dis_asm_read_memory): Moved from "corefile.c", made static.
7618 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7619 * Makefile.in (disasm.o): Update dependencies.
7620
7621 2003-04-30 Andrew Cagney <cagney@redhat.com>
7622
7623 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7624
7625 2003-04-29 Adam Fedor <fedor@gnu.org>
7626
7627 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7628 * infcall.c (find_function_addr): Make non-static.
7629 * infcall.h (find_function_addr): Declare.
7630 * Makefile.in (eval.o): Update dependencies.
7631
7632 2003-04-28 Adam Fedor <fedor@gnu.org>
7633
7634 * symtab.c (symbol_find_demangled_name): Check for and demangle
7635 ObjC symbols.
7636 (symbol_init_demangled_name): Init for language_objc as well.
7637
7638 2003-04-28 Andrew Cagney <cagney@redhat.com>
7639
7640 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7641 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7642 * gdbarch.h, gdbarch.c: Re-generate.
7643 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7644 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7645 * inferior.h (deprecated_read_fp): Rename read_fp.
7646 (generic_target_read_fp): Delete declaration.
7647 * regcache.c (generic_target_read_fp): Delete function.
7648 (deprecated_read_fp): Replace read_fp, use
7649 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7650 * d10v-tdep.c (d10v_read_fp): Delete function.
7651 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7652
7653 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7654 deprecated_target_read_fp to generic_target_read_fp.
7655 * sh-tdep.c (sh_gdbarch_init): Ditto.
7656 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7657 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7658 * frv-tdep.c (frv_gdbarch_init): Ditto.
7659
7660 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7661 deprecated_fp_regnum.
7662 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7663 * vax-tdep.c (vax_gdbarch_init): Ditto.
7664 * v850-tdep.c (v850_gdbarch_init): Ditto.
7665 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7666 * sh-tdep.c (sh_gdbarch_init): Ditto.
7667 * s390-tdep.c (s390_gdbarch_init): Ditto.
7668 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7669 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7670 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7671 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7672 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7673 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7674 * i386-tdep.c (i386_gdbarch_init): Ditto.
7675 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7676 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7677 * frv-tdep.c (frv_gdbarch_init): Ditto.
7678 * cris-tdep.c (cris_gdbarch_init): Ditto.
7679 * avr-tdep.c (avr_gdbarch_init): Ditto.
7680 * arm-tdep.c (arm_gdbarch_init): Ditto.
7681 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7682
7683 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7684 * v850-tdep.c (v850_gdbarch_init): Ditto.
7685 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7686 * sh-tdep.c (sh_gdbarch_init): Ditto.
7687 * s390-tdep.c (s390_gdbarch_init): Ditto.
7688 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7689 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7690 * mips-tdep.c (mips_gdbarch_init): Ditto.
7691 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7692 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7693 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7694 * frv-tdep.c (frv_gdbarch_init): Ditto.
7695 * avr-tdep.c (avr_gdbarch_init): Ditto.
7696 * arm-tdep.c (arm_gdbarch_init): Ditto.
7697
7698 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7699 DEPRECATED_FP_REGNUM.
7700 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7701 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7702 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7703 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7704 (sparc32_register_virtual_type): Ditto.
7705 * sh-tdep.c (sh64_frame_chain): Ditto.
7706 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7707 (sh_nofp_frame_init_saved_regs): Ditto.
7708 (sh64_nofp_frame_init_saved_regs): Ditto.
7709 (sh_fp_frame_init_saved_regs): Ditto.
7710 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7711 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7712 * procfs.c (procfs_fetch_registers): Ditto.
7713 (procfs_store_registers): Ditto.
7714 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7715 (store_inferior_registers, fetch_core_registers): Ditto.
7716 (fetch_kcore_registers, clear_regs): Ditto.
7717 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7718 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7719 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7720 * nlm/i386.c (do_status): Ditto.
7721 * mipsv4-nat.c (supply_gregset): Ditto.
7722 * mips-tdep.c: Ditto for comments.
7723 * mips-nat.c (fetch_inferior_registers): Ditto.
7724 (store_inferior_registers, fetch_core_registers): Ditto.
7725 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7726 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7727 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7728 (i386_do_pop_frame, i386_register_type): Ditto.
7729 * hppa-tdep.c (hppa_frame_chain): Ditto.
7730 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7731 (hppa_pop_frame, hppa_read_fp): Ditto.
7732 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7733 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7734 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7735 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7736 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7737 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7738 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7739 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7740 * blockframe.c: Ditto for comments.
7741 * arch-utils.h: Ditto for comments.
7742 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7743 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7744 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7745 * alpha-tdep.h: Ditto for comments.
7746 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7747 (alpha_cannot_store_register): Ditto.
7748 (alpha_push_dummy_frame): Ditto.
7749 * alpha-nat.c (supply_gregset): Ditto.
7750
7751 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7752 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7753 * config/sparc/tm-sparc.h: Update comment.
7754
7755 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7756 deprecated_read_fp instead of TARGET_READ_FP.
7757 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7758 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7759 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7760 deprecated_read_fp instead of read_fp.
7761 * s390-tdep.c (s390_push_arguments): Ditto.
7762 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7763 * frame.h: Ditto in comments.
7764 * frame.c (legacy_get_prev_frame): Ditto.
7765 * dummy-frame.c (dummy_frame_this_id): Ditto.
7766 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7767
7768 2003-04-28 Andrew Cagney <cagney@redhat.com>
7769
7770 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7771 * gdbarch.h, gdbarch.c: Re-generate.
7772 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7773 * vax-tdep.c (_initialize_vax_tdep): Update.
7774 * v850-tdep.c (_initialize_v850_tdep): Update.
7775 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7776 * s390-tdep.c (_initialize_s390_tdep): Update.
7777 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7778 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7779 * mips-tdep.c (_initialize_mips_tdep): Update.
7780 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7781 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7782 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7783 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7784 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7785 * frv-tdep.c (_initialize_frv_tdep): Update.
7786 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7787 (_initialize_cris_tdep): Update.
7788 * arch-utils.c (legacy_print_insn): Update.
7789 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7790
7791 2003-04-26 Adam Fedor <fedor@gnu.org>
7792
7793 * linespec.c (decode_objc): New function to decode ObjC calls
7794 (decode_line_1): Check for ObjC calls (using decode_objc)
7795 * Makefile (linespec.o): Update dependencies.
7796
7797 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7798
7799 * breakpoint.h (struct breakpoint_ops): New.
7800 (struct breakpoint): Add ops member.
7801
7802 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7803 (mention): Use new breakpoint ops member.
7804 (set_raw_breakpoint): Initialize ops field to NULL.
7805 (print_exception_catchpoint, print_one_exception_catchpoint)
7806 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7807 (gnu_v3_exception_catchpoint_ops): New.
7808 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7809
7810 2003-04-25 Adam Fedor <fedor@gnu.org>
7811
7812 * Makefile.in (COMMON_OBS): Add objc-lang.o
7813
7814 2003-04-25 Andrew Cagney <cagney@redhat.com>
7815
7816 * d10v-tdep.c (print_insn): Delete function.
7817 (display_trace): Use TARGET_PRINT_INSN.
7818 (_initialize_d10v_tdep): Do not set tm_print_insn.
7819 (d10v_gdbarch_init): Set print_insn.
7820
7821 2003-04-25 Andrew Cagney <cagney@redhat.com>
7822
7823 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7824 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7825 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7826 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7827 (nr_dmap_regs, a0_regnum): ... new functions.
7828 (d10v_print_registers_info): Use a0_regnum, use register_size.
7829 (d10v_register_byte): Delete function.
7830 (d10v_register_raw_size): Delete function.
7831 (d10v_register_type): Use a0_regnum.
7832 (d10v_print_registers_info): Use a0_regnum.
7833 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7834 (d10v_gdbarch_init): Do not set register_byte or
7835 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7836 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7837 extract_address.
7838 (trace_command): Use XCALLOC.
7839 (print_insn): Delete reference to tm_print_insn.
7840 (saved_regs_unwinder): Use store_unsigned_integer instead of
7841 store_address.
7842 * frame.h (FRAME_OBSTACK_CALLOC): Define
7843
7844 2003-04-25 David Carlton <carlton@bactrian.org>
7845
7846 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7847
7848 2003-04-24 Adam Fedor <fedor@gnu.org>
7849
7850 * objc-lang.c: Include "valprint.h"
7851 * Makefile.in (objc-lang.o): Update dependencies.
7852
7853 2003-04-24 Adam Fedor <fedor@gnu.org>
7854
7855 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7856 architecture dependant compilation and mark as unimplemented
7857 (until they get put in the gdbarch vector).
7858
7859 2003-04-23 David Carlton <carlton@bactrian.org>
7860
7861 * cp-support.c (cp_find_first_component): Accept 'operator' in
7862 more locations.
7863
7864 2003-04-23 Andrew Cagney <cagney@redhat.com>
7865
7866 * infcall.c (call_function_by_hand): Eliminate redundant
7867 indentation. Move "saved_async" and "old_cleanups" to where they
7868 are needed.
7869
7870 2003-04-23 Andrew Cagney <cagney@redhat.com>
7871
7872 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7873 and "buffer". Move the "name" code to where it is needed.
7874
7875 2003-04-23 Andrew Cagney <cagney@redhat.com>
7876
7877 * infcall.c (call_function_by_hand): Move variables "start_sp",
7878 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7879 code to ON_STACK switch branch.
7880
7881 2003-04-23 Andrew Cagney <cagney@redhat.com>
7882
7883 * infcall.c (call_function_by_hand): Make declaration of "i",
7884 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7885 lint.
7886
7887 2003-04-23 Andrew Cagney <cagney@redhat.com>
7888
7889 * infcall.c (call_function_by_hand): Delete variable
7890 "n_method_args". Localize "param_type"'s declaration to the loop
7891 that it is used. Reinstate code assigning to said variable -
7892 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7893 Rationalize code using "param_type".
7894
7895 2003-04-22 Andrew Cagney <cagney@redhat.com>
7896
7897 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7898 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7899 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7900 to DEPRECATED_PUSH_RETURN_ADDRESS.
7901
7902 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7903
7904 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7905 on the DWARF2 register number prior to fetching a register.
7906
7907 2003-04-22 J. Brobecker <brobecker@gnat.com>
7908
7909 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7910 Update all the tests using SOFT_FLOAT considering the fact that
7911 this macro was always set to 0.
7912 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7913 considering the fact that this macro was always set to 0.
7914 * hppa-tdep.h (hppa_store_return_value): Likewise.
7915 (hppa_extract_return_value): Likewise.
7916
7917 2003-04-22 J. Brobecker <brobecker@gnat.com>
7918
7919 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7920 the hppa-pro target only.
7921
7922 2003-04-21 J. Brobecker <brobecker@gnat.com>
7923
7924 Ongoing multi-arch conversion effort for HP/UX:
7925 * config/pa/tm-hppa.h: Move all macro that are no longer
7926 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7927 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7928
7929 2003-04-21 J. Brobecker <brobecker@gnat.com>
7930
7931 * config/pa/tm-hppa.h: Obsolete a section that was only used
7932 for hppa-pro.
7933
7934 2003-04-21 J. Brobecker <brobecker@gnat.com>
7935
7936 Ongoing multi-arch conversion for HP/UX.
7937 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7938 if already defined (allows hppa64 to stay non-multiarched for now).
7939 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7940
7941 2003-04-21 Andrew Cagney <cagney@redhat.com>
7942
7943 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7944
7945 2003-04-21 Andrew Cagney <cagney@redhat.com>
7946
7947 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7948 "i386_num_mmx_regs".
7949
7950 2003-04-21 Andrew Cagney <cagney@redhat.com>
7951
7952 * infcall.c: New file.
7953 * infcall.h: New file.
7954 * valarith.c: Include "infcall.h".
7955 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7956 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7957 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7958 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7959 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7960 (SFILES): Add "infcall.c"
7961 (COMMON_OBS): Add "infcall.o".
7962 (infcall.o): Specify dependencies.
7963 * value.h (call_function_by_hand): Delete declaration.
7964 * inferior.h (run_stack_dummy): Delete declaration.
7965 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7966 (run_stack_dummy): Move to "infcall.c", merged into
7967 call_function_by_hand.
7968 * valops.c (call_function_by_hand): Moved to "infcall.c".
7969 (find_function_addr, value_arg_coerce): Ditto.
7970 (unwindonsignal_p, coerce_float_to_double): Ditto.
7971 (_initialize_valops): Move "set/show coerce-float-to-double", and
7972 "set/show unwindonsignal" commands to "infcall.c".
7973 * v850-tdep.c, target.h: Update comments.
7974 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7975 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7976 (sh64_init_extra_frame_info): Update comments.
7977 * mn10300-tdep.c: Update comments.
7978 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7979 * config/sparc/tm-sparc.h: Update comments.
7980 * breakpoint.h: Update comments.
7981 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7982 * arm-tdep.c: Update comment.
7983
7984 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7985
7986 * i386-tdep.c (i386_num_register_names): New variable.
7987 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7988 (MM0_REGNUM): Remove redundant parentheses in define.
7989 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7990 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7991 i386_mxcsr_regnum_p): Remove redundant parentheses.
7992 (i386_register_name): Use i386_num_register_names.
7993
7994 * i386-tdep.c (i386_extract_return_value,
7995 i386_store_return_value): Correct check for availability of
7996 floating-point registers.
7997
7998 * i386-tdep.c (i386_frame_num_args): Remove function.
7999 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8000
8001 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8002 mmx_regnum_to_fp_regnum. Adjust all callers.
8003
8004 * i386-tdep.c (i386_get_longjmp_target): Use
8005 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8006 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8007 extract_address.
8008
8009 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8010
8011 * core-regset.c: Update comments to reflect reality. Re-order
8012 includes.
8013 (fetch_core_registers): Use switch instead of if. Remove
8014 redundant prototype.
8015
8016 2003-04-18 Jim Blandy <jimb@redhat.com>
8017
8018 * s390-tdep.c (s390_frame_align): New function.
8019 (s390_gdbarch_init): Register it with the gdbarch object.
8020
8021 2003-04-17 Richard Henderson <rth@redhat.com>
8022
8023 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8024
8025 2003-04-17 Michael Snyder <msnyder@redhat.com>
8026 Karen Bennet <bennet@redhat.com>
8027
8028 Committed by Elena Zannoni <ezannoni@redhat.com>
8029 * gdb_gcore.sh: New script to create a core dump of a process.
8030
8031 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
8032
8033 * values.c (value_being_returned): Don't fetch the return
8034 value if the return type is void.
8035
8036 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8037
8038 * thread-db.c: Reindented.
8039
8040 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8041
8042 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8043 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
8044 as types.
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070 2003-04-16 Kevin Buettner <kevinb@redhat.com>
8071
8072 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
8073 the size of ``long double'' to 16, instead of 8.
8074
8075 2003-04-16 Mark Kettenis <kettenis@gnu.org>
8076
8077 * i386-linux-nat.c: Add some whitespace to make things more
8078 readable.
8079 (fetch_register, store_register, fetch_inferior_registers,
8080 store_inferior_registers): Get rid of assignment in if-statement.
8081 (store_register): Fix typo in error message.
8082
8083 2003-04-16 Andrew Cagney <cagney@redhat.com>
8084
8085 * utils.c (xmmalloc): Always allocate something, matches
8086 libiberty/xmalloc's semantics.
8087 (xmrealloc, xmcalloc): Ditto.
8088
8089 2003-04-16 Andrew Cagney <cagney@redhat.com>
8090
8091 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8092 update comments.
8093 (get_frame_type): Initialize unwind and type when needed.
8094 (get_frame_id, frame_register_unwind): Ditto.
8095
8096 2003-04-16 Andrew Cagney <cagney@redhat.com>
8097
8098 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8099 obsolete.
8100 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8101 * sparcl-stub.c: Obsolete file.
8102 * config/sparc/tm-sparclet.h: Obsolete file.
8103 * sparclet-stub.c: Obsolete file.
8104 * sparclet-rom.c: Obsolete file.
8105 * sparcl-tdep.c: Obsolete file.
8106 * config/sparc/tm-sparclite.h: Obsolete file.
8107 * config/sparc/sparclite.mt: Obsolete file.
8108 * config/sparc/sparclet.mt: Obsolete file.
8109 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8110 sparc86x-*-* obsolete.
8111
8112 2003-04-15 David Carlton <carlton@math.stanford.edu>
8113
8114 * Makefile.in (SFILES): Add cp-namespace.c.
8115 (COMMON_OBS): Add cp-namespace.o.
8116 (block.o): Depend on gdb_obstack_h and cp_support_h.
8117 (buildsym.o): Depend on cp_support_h.
8118 (cp-namespace.o): New.
8119 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8120 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8121 (dwarf2read.o): Depend on cp_support_h.
8122 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8123 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8124 processing_current_namespace.
8125 (read_namespace): Update processing_current_namespace; check for
8126 anonymous namespaces.
8127 (dwarf2_name): New function.
8128 (dwarf2_extension): Ditto.
8129 * cp-support.h: Update copyright, contributors.
8130 Add inclusion guards.
8131 Add opaque declaration for structs obstack, block, symbol.
8132 (struct using_direct): New struct.
8133 Add declarations for cp_find_first_component,
8134 cp_entire_prefix_len, processing_has_namespace_info,
8135 processing_current_namespace, cp_is_anonymous,
8136 cp_add_using_directive, cp_initialize_namespace,
8137 cp_finalize_namespace, cp_set_block_scope,
8138 cp_scan_for_anonymous_namespaces.
8139 * cp-namespace.c: New file.
8140 * cp-support.c: Update copyright.
8141 Include ctype.h, gdb_assert.h, gdbcmd.h.
8142 New variable maint_cplus_cmd_list.
8143 (cp_find_first_component): New function.
8144 (cp_entire_prefix_len, maint_cplus_command)
8145 (first_component_command, _initialize_cp_support): Ditto.
8146 * buildsym.c: Include cp-support.h.
8147 New variable using_list.
8148 (add_symbol_to_list): Check for anonymous namespaces.
8149 (finish_block): Set block's scope.
8150 (start_symtab): Initialize C++ namespace support.
8151 (end_symtab): Finalize C++ namespace support.
8152 * block.h: Add opaque declarations for structs
8153 block_namespace_info, using_direct, and obstack.
8154 Add declarations for block_set_scope and block_set_using.
8155 (struct block): Add 'language_specific' member.
8156 (BLOCK_NAMESPACE): New macro.
8157 * block.c: Include gdb_obstack.h and cp-support.h.
8158 (struct block_namespace_info): New struct.
8159 (block_set_scope): New function.
8160 (block_set_using, block_initialize_namespace): Ditto.
8161
8162 2003-04-14 Kevin Buettner <kevinb@redhat.com>
8163
8164 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8165 (locate_base): Return early if there aren't any link map offsets.
8166 (svr4_solib_create_inferior_hook): Warn if shared library support
8167 is unavailable.
8168
8169 2003-04-14 David Carlton <carlton@math.stanford.edu>
8170
8171 * symtab.c (symbol_set_names): Add prefix when storing Java names
8172 in hash table. Fix for PR java/1039.
8173
8174 2003-04-14 David Carlton <carlton@math.stanford.edu>
8175
8176 * symtab.c (symbol_set_names): Rename 'name' arg to
8177 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8178 * symtab.h: Change 'name' argument in declaration of
8179 symbol_set_names to 'linkage_name'.
8180 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8181
8182 2003-04-14 Andrew Cagney <cagney@redhat.com>
8183
8184 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8185 return the fully sign-extended register value.
8186 (get_frame_pointer): Ditto.
8187 (mips_pop_frame): Initialize "proc_desc" after checking for a
8188 dummy frame.
8189
8190 2003-04-14 Andrew Cagney <cagney@redhat.com>
8191
8192 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8193 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8194 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8195 (mips_push_register): Delete function.
8196 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8197 PUSH_FP_REGNUM.
8198
8199 2003-04-14 Jim Blandy <jimb@redhat.com>
8200
8201 * symmisc.c: #include "gdb_regex.h".
8202 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8203 functions.
8204 * maint.c (maintenance_list_command): New function.
8205 (_initialize_maint_cmds): Register the above as commands.
8206 * symtab.h (maintenance_list_symtabs,
8207 maintenance_list_psymtabs): New declarations.
8208 * cli/cli-cmds.c (maintenancelistlist): New variable.
8209 (init_cmd_lists): Initialize it.
8210 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8211 * gdbcmd.h (maintenancelistlist): New declaration.
8212 * Makefile.in (symmisc.o): Update dependencies.
8213
8214 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
8215
8216 * s390-nat.c: Include asm/types.h for addr_t.
8217
8218 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
8219
8220 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8221 actually incoming type.
8222
8223 2003-04-13 Andrew Cagney <cagney@redhat.com>
8224
8225 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8226 get_next_frame and get_frame_saved_regs.
8227
8228 2003-04-13 Andrew Cagney <cagney@redhat.com>
8229
8230 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8231 of gdbarch_num_regs.
8232
8233 2003-04-13 Andrew Cagney <cagney@redhat.com>
8234
8235 * frame.h: Mention what replaced what in "struct frame_info".
8236 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8237 deprecated_update_frame_base_hack and
8238 deprecated_update_frame_pc_hack.
8239 * hppa-tdep.c: Ditto.
8240
8241 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8242
8243 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8244 to read_reg and update its comment. Remove regnum member.
8245 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8246 Don't call read_reg when setting in_reg. Call read_reg to get
8247 the frame base if it's in a register. Return the register number
8248 on the stack instead of in the context. Remove extra arguments
8249 to read_reg.
8250 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8251 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8252 the register number on the expression stack.
8253 (needs_frame_read_reg): Remove extra arguments.
8254
8255 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8256
8257 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8258 made non-static.
8259 (execute_stack_op): All callers updated.
8260 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8261 * dwarf2loc.c (find_location_expression): New function.
8262 (dwarf_expr_frame_base): Call it.
8263 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8264 (dwarf2_tracepoint_var_ref): New function, broken out from
8265 locexpr_tracepoint_var_ref.
8266 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8267 Make static.
8268 (loclist_read_variable, loclist_read_needs_frame): New functions.
8269 (loclist_describe_location, loclist_tracepoint_var_ref): New
8270 functions.
8271 (dwarf2_loclist_funcs): New struct location_funcs.
8272 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8273 (struct dwarf2_locexpr_baton): Add comments.
8274 (dwarf2_loclist_funcs): New extern.
8275 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8276 base_address and base_known.
8277 (dwarf_loc_buffer): New variable.
8278 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8279 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8280 (dwarf2_has_info): Initialize dwarf_loc_offset.
8281 (dwarf2_build_psymtabs): Read in .debug_loc.
8282 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8283 DWARF_LOC_SIZE.
8284 (psymtab_to_symtab_1): Likewise. Move base address calculation
8285 here, from...
8286 (dwarf2_get_pc_bounds): ... here. Use the base address from
8287 cu_header.
8288 (dwarf2_symbol_mark_computed): Handle location lists.
8289
8290 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8291
8292 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8293 if the linkage name demangled successfully.
8294
8295 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8296
8297 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8298 disassmbly_flavour): Removed.
8299
8300 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8301
8302 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8303
8304 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8305
8306 2003-04-12 Andrew Cagney <cagney@redhat.com>
8307
8308 * frame.h (struct frame_info): Move definition from here ...
8309 * frame.c (struct frame_info): ... to here.
8310
8311 2003-04-12 Andrew Cagney <cagney@redhat.com>
8312
8313 * gdbthread.h (save_infrun_state): Delete parameter
8314 "prev_func_start".
8315 (struct thread_info): Delete field "prev_func_start".
8316 (load_infrun_state): Ditto.
8317 * thread.c (load_infrun_state, save_infrun_state): Update.
8318 * infrun.c (prev_func_start): Delete variable.
8319 (context_switch, init_wait_for_inferior): Update.
8320 (stop_stepping, keep_going): Update.
8321
8322 2003-04-12 Andrew Cagney <cagney@redhat.com>
8323
8324 * gdbarch.sh: Add missing opaque declarations.
8325 * gdbarch.h: Regnerate.
8326 * symtab.h: Add missing opaque declarations.
8327 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8328 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8329 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8330 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8331 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8332 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8333 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8334 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8335 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8336 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8337 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8338 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8339 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8340
8341 2003-04-11 Andrew Cagney <cagney@redhat.com>
8342
8343 * frame.c (get_frame_id): Return this frame's "id".
8344 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8345 function start.
8346 (legacy_saved_regs_this_id): Replace function body with
8347 internal-error.
8348 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8349 FRAME_OBSTACK_ZALLOC.
8350 (create_new_frame): Mark the frame ID as valid.
8351
8352 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
8353
8354 * Makefile.in (libbfd_h): Added missing setting.
8355 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8356 according to the selected ABI.
8357
8358 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8359
8360 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8361
8362 2003-04-11 Andrew Cagney <cagney@redhat.com>
8363
8364 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8365 SAVED_PC_AFTER_CALL.
8366 * gdbarch.h, gdbarch.c: Regenerate.
8367 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8368 * x86-64-tdep.c (x86_64_init_abi): Update.
8369 * vax-tdep.c (vax_gdbarch_init): Update.
8370 * v850-tdep.c (v850_gdbarch_init): Update.
8371 * sparc-tdep.c (sparc_gdbarch_init): Update.
8372 * sh-tdep.c (sh_gdbarch_init): Update.
8373 * s390-tdep.c (s390_gdbarch_init): Update.
8374 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8375 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8376 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8377 * mips-tdep.c (mips_gdbarch_init): Update.
8378 * mcore-tdep.c (mcore_gdbarch_init): Update.
8379 * m68k-tdep.c (m68k_gdbarch_init): Update.
8380 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8381 * ia64-tdep.c (ia64_gdbarch_init): Update.
8382 (ia64_saved_pc_after_call): Update declaration.
8383 * i386ly-tdep.c (i386lynx_init_abi): Update.
8384 * i386-tdep.c (i386_gdbarch_init): Update.
8385 * hppa-tdep.c (hppa_gdbarch_init): Update.
8386 * h8300-tdep.c (h8300_gdbarch_init): Update.
8387 * frv-tdep.c (frv_gdbarch_init): Update.
8388 * cris-tdep.c (cris_gdbarch_init): Update.
8389 * avr-tdep.c (avr_gdbarch_init): Update.
8390 * arm-tdep.c (arm_gdbarch_init): Update.
8391 * alpha-tdep.c (alpha_gdbarch_init): Update.
8392 * ns32knbsd-nat.c (frame_num_args): Update.
8393 * ns32k-tdep.c (umax_frame_num_args): Update.
8394 * mips-tdep.c (mips_init_frame_pc_first): Update.
8395 * infrun.c (step_over_function): Update.
8396 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8397 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8398 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8399 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8400 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8401 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8402 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8403 * arch-utils.c (init_frame_pc_default): Update.
8404 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8405 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8406 declaration.
8407
8408 2003-04-11 Andrew Cagney <cagney@redhat.com>
8409
8410 * i387-tdep.c: Update copyright.
8411 (i387_to_double): Delete function.
8412 (double_to_i387): Delete function.
8413
8414 2003-04-10 Andrew Cagney <cagney@redhat.com>
8415
8416 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8417 frame's function's address. Simplify.
8418 (d10v_frame_unwind_cache): Check that the frame's function is
8419 non-zero.
8420
8421 2003-04-10 Jim Blandy <jimb@redhat.com>
8422
8423 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8424 call to set_gdbarch_deprecated_push_arguments.
8425
8426 2003-04-10 Andrew Cagney <cagney@redhat.com>
8427
8428 * frame.c (fprint_frame_id): New function.
8429 (fprint_frame_type, fprint_frame): New function.
8430 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8431 (create_sentinel_frame, get_frame_id): Ditto.
8432 (frame_id_p, frame_id_eq): Ditto.
8433 (frame_id_inner, create_new_frame): Ditto.
8434 (legacy_get_prev_frame, get_prev_frame): Ditto.
8435 (deprecated_update_frame_pc_hack): Ditto.
8436 (frame_register_unwind): Ditto.
8437 (deprecated_update_frame_base_hack): Ditto.
8438
8439 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8440
8441 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8442 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8443 frame_chain function.
8444 * Makefile.in: Add dependencies due to above change.
8445
8446 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8447
8448 * blockframe.c (legacy_frame_chain_valid): Move call to
8449 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8450 inside_entry_file.
8451
8452 2003-04-09 Andrew Cagney <cagney@redhat.com>
8453
8454 * frame.h (struct frame_id): Replace "pc" and "base" with
8455 "stack_addr" and "code_addr". Update comments.
8456 (frame_id_build): Update parameter names and comment.
8457 (struct frame_info): Replace "id_p" and "id" with "this_id".
8458 * dummy-frame.c (dummy_frame_this_id): Update.
8459 * breakpoint.c (print_one_breakpoint): Update.
8460 * frame.c (get_frame_id): Update.
8461 (get_frame_base, frame_id_build): Update.
8462 (create_sentinel_frame, legacy_get_prev_frame): Update.
8463 (deprecated_update_frame_base_hack): Update.
8464 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8465 (frame_id_inner): Ditto.
8466
8467 2003-04-09 Andrew Cagney <cagney@redhat.com>
8468
8469 * defs.h (gdb_print_host_address): Make "addr" parameter a
8470 pointer constant.
8471 * utils.c (gdb_print_host_address): Update.
8472
8473 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8474
8475 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8476 register number for R0 is 0.
8477
8478 2003-04-09 J. Brobecker <brobecker@gnat.com>
8479
8480 * frame.h (struct gdbarch): Add opaque structure definition
8481 to avoid a compilation warning on LynxOS 4.0.
8482
8483 2003-04-09 Andrew Cagney <cagney@redhat.com>
8484
8485 * frame.h (struct frame_info): Delete field "pc". Replace
8486 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8487 structure.
8488 * frame.c (frame_pc_unwind): Update.
8489 (create_sentinel_frame): Do not set "pc".
8490 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8491 (get_frame_pc): Call frame_pc_unwind.
8492 (deprecated_update_frame_pc_hack): Update.
8493 (create_new_frame): Use "pc" not "->pc".
8494
8495 2003-04-09 Andrew Cagney <cagney@redhat.com>
8496
8497 * frame.c (get_frame_id): Eliminate code updating "frame".
8498 (legacy_get_prev_frame): Ditto.
8499 (get_frame_base): Return id.base directly.
8500 (deprecated_update_frame_base_hack): Update "id.base".
8501 * frame.h (struct frame_info): Delete field "frame".
8502
8503 2003-04-09 Andrew Cagney <cagney@redhat.com>
8504
8505 * NEWS: Mention that the "Sequent family" is obsolete.
8506 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8507 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8508 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8509 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8510 * config/i386/tm-ptx4.h: Obsolete file.
8511 * config/i386/tm-ptx.h: Obsolete file.
8512 * symm-tdep.c: Obsolete file.
8513 * config/i386/symmetry.mt: Obsolete file.
8514 * config/i386/tm-symmetry.h: Obsolete file.
8515 * symm-nat.c: Obsolete file.
8516 * config/i386/nm-symmetry.h: Obsolete file.
8517 * config/i386/xm-symmetry.h: Obsolete file.
8518 * config/i386/symmetry.mh: Obsolete file.
8519 * config/i386/nm-ptx4.h: Obsolete file.
8520 * config/i386/ptx4.mh: Obsolete file.
8521 * config/i386/ptx.mt: Obsolete file.
8522 * config/i386/ptx.mh: Obsolete file.
8523 * config/i386/xm-ptx4.h: Obsolete file.
8524 * config/i386/xm-ptx.h: Obsolete file.
8525
8526 2003-04-09 Andrew Cagney <cagney@redhat.com>
8527
8528 Obsolete mips*-*-mach3*.
8529 * NEWS: Mention that mips*-*-mach3* is obsolete.
8530 * m3-nat.c: Obsolete file.
8531 * config/nm-m3.h: Obsolete file.
8532 * config/mips/tm-mipsm3.h: Obsolete file.
8533 * config/mips/mipsm3.mt: Obsolete file.
8534 * config/mips/mipsm3.mh: Obsolete file.
8535 * config/mips/xm-mipsm3.h: Obsolete file.
8536 * mipsm3-nat.c: Obsolete file.
8537 * configure.host: Obsolete mips-dec-mach3*.
8538 * configure.tgt: Obsolete mips*-*-mach3*.
8539
8540 2003-04-09 Andrew Cagney <cagney@redhat.com>
8541
8542 * doublest.h: Update copyright.
8543 (deprecated_store_floating, deprecated_extract_floating): Rename
8544 store_floating and extract_floating. Update comments.
8545 * doublest.c: Update copyright.
8546 (extract_floating_by_length): Replace extract_floating.
8547 (store_floating_by_length): Replace store_floating.
8548 (deprecated_extract_floating): New function.
8549 (deprecated_store_floating): New function.
8550 (extract_typed_floating): Call extract_floating_by_length.
8551 (store_typed_floating): Call store_floating_by_length.
8552 * x86-64-tdep.c (x86_64_store_return_value): Update.
8553 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8554 (sh64_extract_return_value): Update.
8555 (sh_sh4_register_convert_to_virtual): Update.
8556 (sh_sh64_register_convert_to_virtual): Update.
8557 (sh_sh4_register_convert_to_raw): Update.
8558 (sh_sh64_register_convert_to_raw): Update.
8559 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8560 (rs6000_register_convert_to_raw): Update.
8561 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8562 (ia64_register_convert_to_raw): Update.
8563 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8564 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8565 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8566 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8567 (alpha_register_convert_to_raw): Update.
8568
8569 2003-04-08 Andrew Cagney <cagney@redhat.com>
8570
8571 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8572 * gdbarch.h, gdbarch.c: Re-generate.
8573 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8574 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8575 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8576 conditionally, use frame_pc_unwind as an alternative. Add
8577 comments.
8578 * arch-utils.c (init_frame_pc_default): Only call
8579 SAVED_PC_AFTER_CALL when available.
8580
8581 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8582
8583 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8584 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8585 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8586 (start_remote): Ditto.
8587 (handle_inferior_event): Ditto.
8588 (save_inferior_status): Ditto.
8589 (restore_inferior_status): Ditto.
8590 * infcmd.c (attach_command): Ditto.
8591 * fork-child.c (startup_inferior): Ditto.
8592 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8593 * alpha-tdep.c (heuristic_proc_start): Ditto.
8594 * mips-tdep.c (heuristic_proc_start): Ditto.
8595 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8596 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8597 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8598 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8599 * remote-vx.c (vx_create_inferior): Ditto.
8600
8601 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8602
8603 * infrun.c (stop_soon_quietly): Make it an enum, to better
8604 override the default behavior of handle_inferior_event.
8605 (clear_proceed_status): Update uses of stop_soon_quietly to
8606 reflect that it is now an enum.
8607 (start_remote): Ditto.
8608 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8609 is set to handle the new GNU/Linux kernel behavior for
8610 attach/sigstop. Update uses of stop_soon_quietly.
8611 * inferior.h (enum stop_kind): New enum.
8612 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8613 Reset normal handle_inferior_event behavior, afterwards.
8614 * fork-child.c (startup_inferior): Update.
8615 * alpha-tdep.c (heuristic_proc_start): Update.
8616 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8617 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8618 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8619 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8620 * remote-vx.c (vx_create_inferior): Update.
8621 * mips-tdep.c (heuristic_proc_start): Update.
8622
8623 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8624
8625 * disasm.c (dump_insns): Move variables inside loop, or they will
8626 be freed more than once, causing wild memory corruptions.
8627 (gdb_disassembly): Look for the substring "-thread",
8628 instead of "-threads" in the target name, to make sure to find
8629 the 'multi-thread' target. Also, make sure we do the right thing
8630 with the "core" target.
8631
8632 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8633
8634 * mips-tdep.c (mips_print_fp_register): New function, created from
8635 do_fp_register_row(). Registers are now (also) printed as hex.
8636 Only one register is printed per row.
8637 (mips_print_register, do_fp_register_row): Print floating point
8638 registers with mips_print_fp_register().
8639
8640 2003-04-06 Andrew Cagney <cagney@redhat.com>
8641
8642 * valprint.h (inspect_it): Add extern declaration.
8643 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8644 (selectors_info, classes_info): Ditto.
8645 (find_objc_msgcall): Fix indentation.
8646 (objc_printstr): Delete extern declarations.
8647
8648 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8649
8650 2003-04-06 Andrew Cagney <cagney@redhat.com>
8651
8652 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8653 Update comment.
8654 * frame.c (legacy_saved_regs_this_id): Update.
8655 (legacy_get_prev_frame): Update.
8656 * xstormy16-tdep.c: Update comment.
8657 * sparc-tdep.c (sparc_frame_chain): Update comment.
8658 * blockframe.c (legacy_frame_chain_valid): Update.
8659
8660 2003-04-06 Andrew Cagney <cagney@redhat.com>
8661
8662 * valprint.c (val_print_type_code_int): Delete #ifdef
8663 PRINT_TYPELESS_INTEGER code.
8664
8665 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8666 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8667 multi-arch definition.
8668 * gdbarch.h: Re-generate.
8669
8670 2003-04-05 Andrew Cagney <cagney@redhat.com>
8671
8672 Eliminate FRAME_FIND_SAVED_REGS.
8673 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8674 Change FSR parameter to a pointer.
8675 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8676 Assume FSR parameter is a pointer.
8677 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8678 Make fsr a pointer.
8679 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8680 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8681 saved_regs a pointer.
8682 (hppa_frame_saved_pc): Ditto.
8683 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8684 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8685 pointer.
8686 (restore_pc_queue): Make fsr a pointer.
8687 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8688 (hppa_frame_chain): Make saved_regs a pointer, call
8689 hppa_frame_init_saved_regs.
8690 * sparc-tdep.c: Include "gdb_assert.h".
8691 (sparc_frame_find_saved_regs): Replace internal_error with
8692 gdb_assert.
8693 * remote-vxsparc.c (vx_read_register): Delete reference to
8694 FRAME_FIND_SAVED_REGS.
8695 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8696 * gdbarch.h: Regenerate.
8697 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8698 (deprecated_get_frame_saved_regs): Delete declaration.
8699 (struct frame_saved_regs): Delete definition.
8700 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8701 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8702 (hppa_frame_find_saved_regs): Delete declaration.
8703 (FRAME_FIND_SAVED_REGS): Delete macro.
8704 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8705 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8706 FRAME_FIND_SAVED_REGS in comment.
8707
8708 2003-04-05 Andrew Cagney <cagney@redhat.com>
8709
8710 * frame.c (frame_func_unwind, get_frame_func): New functions.
8711 * frame.h (get_frame_func, frame_func_unwind): Declare.
8712 (struct frame_info): Add field "prev_func" for caching the
8713 previous frame's function address.
8714 * arm-tdep.c (arm_frameless_function_invocation): Combine
8715 get_pc_function_start and get_frame_pc into get_frame_func.
8716 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8717 (sh64_nofp_frame_init_saved_regs): Ditto.
8718 * s390-tdep.c (s390_function_start): Ditto.
8719 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8720 (rs6000_frameless_function_invocation): Ditto.
8721 (rs6000_frame_saved_pc): Ditto.
8722 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8723 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8724 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8725 (i386_frame_init_saved_regs): Ditto.
8726 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8727 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8728 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8729 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8730 * blockframe.c (frameless_look_for_prologue): Ditto.
8731
8732 2003-04-05 Andrew Cagney <cagney@redhat.com>
8733
8734 * frame.c (legacy_get_prev_frame): Link prev to next at the
8735 function start. Update comments.
8736
8737 2003-04-05 Andrew Cagney <cagney@redhat.com>
8738
8739 * frame.c (get_frame_id): Update comment.
8740 (legacy_get_prev_frame): Update comment.
8741 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8742 * gdbarch.h: Regenerate.
8743 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8744 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8745
8746 2003-04-05 Andrew Cagney <cagney@redhat.com>
8747
8748 * stack.c (print_frame_info): Use get_frame_pc.
8749
8750 2003-04-04 Andrew Cagney <cagney@redhat.com>
8751
8752 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8753 the frame's type from the unwinder.
8754 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8755 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8756 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8757 (get_frame_base_address): Use get_frame_type.
8758 (get_frame_locals_address, get_frame_args_address): Ditto.
8759 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8760 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8761 (struct frame_info): Add comment explaining why the frame contains
8762 a "type" field.
8763 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8764 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8765 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8766 NORMAL_FRAME.
8767 * frame-unwind.h: Include "frame.h".
8768 (struct frame_unwind): Add "type" field.
8769 * Makefile.in (frame_unwind_h): Add $(frame_h).
8770
8771 2003-04-04 Andrew Cagney <cagney@redhat.com>
8772
8773 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8774 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8775 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8776 get_frame_base.
8777 (d10v_unwind_dummy_id): Use frame_id_build.
8778 * frame.c (find_frame_sal): Use get_frame_pc.
8779 (create_new_frame): Use deprecated_update_frame_pc_hack and
8780 deprecated_update_frame_base_hack.
8781 (create_sentinel_frame): Add comment about ->pc going away.
8782 (get_prev_frame): Add comment about ->pc going away.
8783 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8784 frame_id_build, deprecated_update_frame_pc_hack and
8785 deprecated_update_frame_base_hack.
8786 (select_frame): Use get_frame_pc.
8787 (legacy_saved_regs_this_id): Use frame_id_build.
8788
8789 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8790
8791 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8792 signed integer case.
8793 (classify_argument): Handle enumerations and references.
8794
8795 2003-04-04 Andrew Cagney <cagney@redhat.com>
8796
8797 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8798 ID to NULL.
8799
8800 2003-04-01 Adam Fedor <fedor@gnu.org>
8801
8802 * gdb/objc-lang.c (selectors_info): Replace calls to
8803 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8804 SYMBOL_NATURAL_NAME.
8805 (classes_info, find_methods): Likewise.
8806
8807 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8808
8809 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8810 ``mach'' to the value determined by bfd_default_set_arch_mach().
8811
8812 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8813
8814 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8815 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8816 (mi-cmd-file.o): Update dependencies.
8817
8818 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8819
8820 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8821 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8822
8823 2003-04-01 Adam Fedor <fedor@gnu.org>
8824
8825 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8826 * language.h (struct language_defn): Add la_demangle.
8827 (language_demangle): Declare.
8828 * language.c (language_demangle): New function.
8829 (unk_lang_demangle): Likewise.
8830 (unknown_language_defn, auto_language_defn, local_language_defn):
8831 Add ukn_lang_demangle.
8832 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8833 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8834 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8835 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8836 * jv-lang.c (java_demangle): New function
8837 (java_language_defn): Use it for la_demangle element.
8838 * objc-lang.c (objc_demangle): Add options argument
8839 (objc_language_defn): Use objc_demangle for la_demangle element.
8840 * maint.c (maintenance_demangle): Replace switch with
8841 call to language_demangle.
8842 * utils.c (fprintf_symbol_filtered): Likewise.
8843
8844 2003-04-01 Andrew Cagney <cagney@redhat.com>
8845
8846 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8847 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8848 PRINT_TYPELESS_INTEGER.
8849 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8850 PUSH_RETURN_ADDRESS.
8851
8852 2003-04-01 Andrew Cagney <cagney@redhat.com>
8853
8854 * Makefile.in (d10v-tdep.o): Update dependencies.
8855 * d10v-tdep.c: Include "frame-base.h".
8856 (d10v_frame_unwind): Make constant.
8857 (d10v_frame_base_address): New function.
8858 (d10v_frame_base): New variable.
8859 (d10v_gdbarch_init): Set frame_base default.
8860 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8861 comment for base.
8862 (d10v_frame_unwind_cache): Set and use "prev_sp".
8863 (d10v_frame_this_id): Use the previous frame's inner most stack
8864 address and this frame's func address for the frame ID. Use
8865 frame_id_build. Don't analyze beyond the current instruction.
8866
8867 2003-04-01 Andrew Cagney <cagney@redhat.com>
8868
8869 * frame.h (get_frame_locals_address, get_frame_args_address):
8870 Refer to the base address, instead of the address of the first
8871 local or parameter.
8872
8873 2003-04-01 Andrew Cagney <cagney@redhat.com>
8874
8875 Add frame debug info addresses:
8876 * frame-base.c: New file.
8877 * frame-base.h: New file.
8878 * frame.h (struct frame_base): Add opaque declaration.
8879 (get_frame_base): Update comment.
8880 (get_frame_base_address): Declare.
8881 (get_frame_locals_address): Declare.
8882 (get_frame_args_address): Declare.
8883 (struct frame_info): Add "base" and "base_cache". Update
8884 comments on the unwinder.
8885 * frame.c: Include "frame-base.h".
8886 (get_frame_locals_address): New function.
8887 (get_frame_base_address): New function.
8888 (get_frame_args_address): New function.
8889 * findvar.c (read_var_value): Use get_frame_locals_address and
8890 get_frame_args_address.
8891 * stack.c (frame_info): Use get_frame_locals_address and
8892 get_frame_args_address.
8893 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8894 moved to "frame-base.c".
8895 * printcmd.c (print_frame_nameless_args): Ditto.
8896 * symtab.h (address_class): Update comments.
8897 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8898 get_frame_base_address.
8899 * dwarf2expr.c (execute_stack_op): Ditto.
8900 * Makefile.in (frame_base_h): Define.
8901 (frame.o): Update dependencies.
8902 (frame-base.o): Add dependencies.
8903 (SFILES): Add frame-base.c.
8904 (COMMON_OBS): Add frame-base.o.
8905
8906 2003-04-01 Andrew Cagney <cagney@redhat.com>
8907
8908 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8909 CALL_DUMMY_LENGTH): Ditto.
8910 * gdbarch.c: Re-generate.
8911 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8912 (CALL_DUMMY_LENGTH): Delete macro.
8913 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8914 * arm-tdep.c (arm_gdbarch_init): Ditto.
8915 * avr-tdep.c (avr_gdbarch_init): Ditto.
8916 * cris-tdep.c (cris_gdbarch_init): Ditto.
8917 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8918 * frv-tdep.c (frv_gdbarch_init): Ditto.
8919 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8920 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8921 * i386-tdep.c (i386_gdbarch_init): Ditto.
8922 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8923 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8924 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8925 * mips-tdep.c (mips_gdbarch_init): Ditto.
8926 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8927 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8928 * s390-tdep.c (s390_gdbarch_init): Ditto.
8929 * sh-tdep.c (sh_gdbarch_init): Ditto.
8930 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8931 * v850-tdep.c (v850_gdbarch_init): Ditto.
8932 * vax-tdep.c (vax_gdbarch_init): Ditto.
8933 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8934
8935 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8936
8937 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8938
8939 2003-04-01 Andrew Cagney <cagney@redhat.com>
8940
8941 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8942 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8943 * gdbarch.h, gdbarch.c: Re-generate.
8944 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8945 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8946 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8947 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8948 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8949 * infcmd.c (run_stack_dummy): Simplify assuming
8950 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8951 * infrun.c (handle_inferior_event): Ditto.
8952 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8953 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8954 * arm-tdep.c (arm_gdbarch_init): Ditto.
8955 * avr-tdep.c (avr_gdbarch_init): Ditto.
8956 * cris-tdep.c (cris_gdbarch_init): Ditto.
8957 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8958 * frv-tdep.c (frv_gdbarch_init): Ditto.
8959 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8960 * i386-tdep.c (i386_gdbarch_init): Ditto.
8961 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8962 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8963 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8964 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8965 * mips-tdep.c (mips_gdbarch_init): Ditto.
8966 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8967 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8968 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8969 * s390-tdep.c (s390_gdbarch_init): Ditto.
8970 * sh-tdep.c (sh_gdbarch_init): Ditto.
8971 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8972 * v850-tdep.c (v850_gdbarch_init): Ditto.
8973 * vax-tdep.c (vax_gdbarch_init): Ditto.
8974 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8975
8976 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8977
8978 * symfile.c (symfile_relocate_debug_section): Update call to
8979 bfd_simple_get_relocated_section_contents.
8980
8981 2003-03-31 Andrew Cagney <cagney@redhat.com>
8982
8983 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8984 * gdbarch.h, gdbarch.c: Regenerate.
8985 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8986 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8987 available.
8988 * frame.h (generic_fix_call_dummy): Delete declaration.
8989 * dummy-frame.h: Update comment.
8990 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8991 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8992 fix_call_dummy.
8993 * sh-tdep.c (sh_gdbarch_init): Ditto.
8994 * s390-tdep.c (s390_gdbarch_init): Ditto.
8995 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8996 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8997 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8998 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8999 * i386-tdep.c (i386_gdbarch_init): Ditto.
9000 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9001 * frv-tdep.c (frv_gdbarch_init): Ditto.
9002 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9003 * cris-tdep.c (cris_gdbarch_init): Ditto.
9004 * avr-tdep.c (avr_gdbarch_init): Ditto.
9005 * arm-tdep.c (arm_gdbarch_init): Ditto.
9006
9007 2003-03-31 J. Brobecker <brobecker@gnat.com>
9008
9009 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9010 (INIT_FRAME_AP): Likewise.
9011 (EXTRA_FRAME_INFO): Likewise.
9012
9013 2003-03-31 Andrew Cagney <cagney@redhat.com>
9014
9015 * gdbarch.sh: Include "symfile.h".
9016 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9017 * gdbarch.h, gdbarch.c: Re-generate.
9018 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9019 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9020 call_dummy_address, the default is at entry_point_address.
9021 * v850-tdep.c (v850_gdbarch_init): Ditto.
9022 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9023 * sh-tdep.c (sh_gdbarch_init): Ditto.
9024 * s390-tdep.c (s390_gdbarch_init): Ditto.
9025 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9026 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9027 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9028 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9029 * i386-tdep.c (i386_gdbarch_init): Ditto.
9030 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9031 * frv-tdep.c (frv_gdbarch_init): Ditto.
9032 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9033 * cris-tdep.c (cris_gdbarch_init): Ditto.
9034 * arm-tdep.c (arm_gdbarch_init): Ditto.
9035
9036 2003-03-31 Andrew Cagney <cagney@redhat.com>
9037
9038 * gdbarch.sh (CALL_DUMMY_P): Delete.
9039 * gdbarch.h, gdbarch.c: Re-generate.
9040 * inferior.h (CALL_DUMMY_P): Delete macro.
9041 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9042 * vax-tdep.c (vax_gdbarch_init): Update.
9043 * v850-tdep.c (v850_gdbarch_init): Update.
9044 * sparc-tdep.c (sparc_gdbarch_init): Update.
9045 * sh-tdep.c (sh_gdbarch_init): Update.
9046 * s390-tdep.c (s390_gdbarch_init): Update.
9047 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9048 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9049 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9050 * mips-tdep.c (mips_gdbarch_init): Update.
9051 * mcore-tdep.c (mcore_gdbarch_init): Update.
9052 * m68k-tdep.c (m68k_gdbarch_init): Update.
9053 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9054 * ia64-tdep.c (ia64_gdbarch_init): Update.
9055 * i386-tdep.c (i386_gdbarch_init): Update.
9056 * h8300-tdep.c (h8300_gdbarch_init): Update.
9057 * frv-tdep.c (frv_gdbarch_init): Update.
9058 * d10v-tdep.c (d10v_gdbarch_init): Update.
9059 * cris-tdep.c (cris_gdbarch_init): Update.
9060 * breakpoint.c (deprecated_frame_in_dummy): Update.
9061 * avr-tdep.c (avr_gdbarch_init): Update.
9062 * alpha-tdep.c (alpha_gdbarch_init): Update.
9063 * arm-tdep.c (arm_gdbarch_init): Update.
9064 * dummy-frame.c (dummy_frame_this_id): Update comments.
9065 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9066 * frame.c (legacy_get_prev_frame): Ditto.
9067 * valops.c (call_function_by_hand): Delete function.
9068 (hand_function_call): Rename to call_function_by_hand
9069
9070 2003-03-30 Andrew Cagney <cagney@redhat.com>
9071
9072 2002-11-10 Klee Dienes <kdienes@apple.com>
9073 * value.h (struct value): Update comment.
9074
9075 2003-03-30 Andrew Cagney <cagney@redhat.com>
9076
9077 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9078 D10V_FP_REGNUM.
9079 (d10v_gdbarch_init): Do not set fp_regnum.
9080
9081 * frame.c (get_frame_base): Force ID initialization.
9082 (get_prev_frame): Move computation of the frame ID from here ...
9083 (get_frame_id): ... to here.
9084 (legacy_get_prev_frame): Mark the frame ID as valid.
9085 * frame.h (struct frame_info): Add field "id_p".
9086
9087 2003-03-30 Mark Kettenis <kettenis@gnu.org>
9088
9089 * i386-tdep.c (i386_store_struct_return): Removed.
9090 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9091
9092 2003-03-30 Andrew Cagney <cagney@redhat.com>
9093
9094 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9095 * gdbarch.h, gdbarch.c: Regenerate.
9096 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9097 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9098 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9099 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9100 * i386-tdep.c (i386_gdbarch_init): Ditto.
9101 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9102 * cris-tdep.c (cris_gdbarch_init): Ditto.
9103 * vax-tdep.c (vax_gdbarch_init): Ditto.
9104 * s390-tdep.c (s390_gdbarch_init): Ditto.
9105 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9106 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9107 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9108 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9109 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9110 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9111 * sparc-tdep.c (sparc_gdbarch_init): Update.
9112 * sh-tdep.c (sh_gdbarch_init): Update.
9113 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9114 * mips-tdep.c (mips_gdbarch_init): Update.
9115 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9116 * ia64-tdep.c (ia64_gdbarch_init): Update.
9117 * frv-tdep.c (frv_gdbarch_init): Update.
9118 * avr-tdep.c (avr_gdbarch_init): Update.
9119 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9120 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9121 instead of when push_dummy_call is not available.
9122
9123 2003-03-30 Andrew Cagney <cagney@redhat.com>
9124
9125 * infttrace.c: Include "gdbthread.h".
9126 (parent_attach_all): Fix function signature.
9127 (call_ptrace): Update call.
9128 * Makefile.in (infttrace.o): Update dependencies.
9129
9130 2003-03-30 Andrew Cagney <cagney@redhat.com>
9131
9132 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9133 PUSH_RETURN_ADDRESS.
9134 * gdbarch.h, gdbarch.c: Regenerate.
9135 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9136 * x86-64-tdep.c (x86_64_init_abi): Update.
9137 * v850-tdep.c (v850_gdbarch_init): Update.
9138 * sparc-tdep.c (sparc_gdbarch_init): Update.
9139 * sh-tdep.c (sh_gdbarch_init): Update.
9140 * s390-tdep.c (s390_gdbarch_init): Update.
9141 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9142 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9143 * mips-tdep.c (mips_gdbarch_init): Update.
9144 * mcore-tdep.c (mcore_gdbarch_init): Update.
9145 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9146 * ia64-tdep.c (ia64_gdbarch_init): Update.
9147 * i386-tdep.c (i386_gdbarch_init): Update.
9148 * h8300-tdep.c (h8300_gdbarch_init): Update.
9149 * frv-tdep.c (frv_gdbarch_init): Update.
9150 * cris-tdep.c (cris_gdbarch_init): Update.
9151 * avr-tdep.c (avr_gdbarch_init): Update.
9152 * arm-tdep.c (arm_gdbarch_init): Update.
9153 * valops.c (hand_function_call): Update.
9154
9155 2003-03-29 Andrew Cagney <cagney@redhat.com>
9156
9157 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9158 sizeof_call_dummy_words.
9159 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9160 define.
9161 * gdbarch.h: Regenerate.
9162
9163 2003-03-29 Andrew Cagney <cagney@redhat.com>
9164
9165 * infttrace.h: New file.
9166 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9167 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9168 (hpread_read_doc_function_type): Detect an initialized type1.
9169 (hpread_quick_traverse): Initialize mod_name_string.
9170 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9171 (som_solib_get_solib_by_pc): Declare.
9172 (so_lib_thread_start_addr): Declare.
9173 (no_shared_libraries): Declare.
9174 * somread.c (init_import_symbols): Make static. Add forward
9175 declaration.
9176 * config/pa/nm-hppah.h: Include "infttrace.h" for
9177 parent_attach_all.
9178 (hppa_insert_hw_watchpoint): Declare.
9179 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9180 * hppah-nat.c: Include "gdb_string.h".
9181 (parent_attach_all): Delete extern declaration, moved to
9182 "infttrace.h".
9183 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9184 int.
9185 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9186 * Makefile.in (infttrace_h): Define.
9187 (hpread.o): Update dependencies.
9188 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9189 * hppa-hpux-tdep.c: Include "gdb_string.h".
9190 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9191 * infrun.c (handle_inferior_event): Always initialize
9192 stepped_after_stopped_by_watchpoint. Add default and remove
9193 fallthrough in switch statement.
9194 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9195 parameter to int.
9196 (hppa_remove_hw_watchpoint): Ditto.
9197
9198 2003-03-29 Andrew Cagney <cagney@redhat.com>
9199
9200 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9201 offset.
9202
9203 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
9204
9205 * arm-tdep.c (arm_push_arguments): Delete.
9206 (struct stack_item): New type.
9207 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9208 (arm_store_struct_return): Delte.
9209 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9210 arm_push_arguments or arm_store_struct_return.
9211
9212 2003-03-28 Andrew Cagney <cagney@redhat.com>
9213
9214 * Makefile.in (d10v-tdep.o): Update dependencies.
9215 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9216 * d10v-tdep.c: Include "remote.h".
9217 (target_resume_hook): Delete extern declaration.
9218 (target_wait_loop_hook): Ditto.
9219 (tdisassemble_command): Eliminate assignment in "if" conditional.
9220 (d10v_ts2_register_sim_regno): Eliminate call to
9221 legacy_register_sim_regno.
9222 (d10v_ts3_register_sim_regno): Ditto.
9223
9224 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9225
9226 * thread.c: Reindented.
9227 * lin-lwp.c: Ditto.
9228 * linux-proc.c: Ditto.
9229
9230 2003-03-28 Bob Rossi <bob_rossi@cox.net>
9231
9232 * MAINTAINERS (write after approval): Add myself.
9233
9234 2003-03-27 Theodore A. Roth <troth@openavr.org>
9235
9236 * objc-exp.y: Add missing semi-colons.
9237
9238 2003-03-27 Andrew Cagney <cagney@redhat.com>
9239
9240 * regcache.c (write_sp): Delete function and references.
9241 * inferior.h (write_sp): Delete declaration.
9242 * valops.c (hand_function_call): Replace write_sp with
9243 TARGET_WRITE_SP.
9244 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9245 (sparc_pop_frame): Ditto.
9246
9247 2003-03-27 Andrew Cagney <cagney@redhat.com>
9248
9249 * NEWS: Mention removal of support for hppa*-*-bsd* and
9250 hppa*-*-osf* natives, and hppa*-*-pro* target.
9251 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9252 * config/pa/xm-pa.h: Obsolete file.
9253 * config/pa/xm-hppab.h: Obsolete file.
9254 * config/pa/nm-hppab.h: Obsolete file.
9255 * config/pa/tm-hppab.h: Obsolete file.
9256 * config/pa/tm-hppao.h: Obsolete file.
9257 * config/pa/nm-hppao.h: Obsolete file.
9258 * config/pa/tm-pro.h: Obsolete file.
9259 * config/pa/hppaosf.mt: Obsolete file.
9260 * config/pa/hppaosf.mh: Obsolete file.
9261 * config/pa/hppapro.mt: Obsolete file.
9262 * config/pa/hppabsd.mt: Obsolete file.
9263 * config/pa/hppabsd.mh: Obsolete file.
9264 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9265 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9266 hppa*-*-osf*.
9267
9268 2003-03-27 Andrew Cagney <cagney@redhat.com>
9269
9270 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9271 push_arguments. Don't set push_return_address or write_sp.
9272 (d10v_push_dummy_call): Replace d10v_push_arguments.
9273 (d10v_push_return_address, d10v_write_sp): Delete function,
9274 handled by push_dummy_call.
9275
9276 2003-03-26 Andrew Cagney <cagney@redhat.com>
9277
9278 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9279 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9280 regcache and dummy_addr parameters.
9281 * gdbarch.h, gdbarch.c: Re-generate.
9282 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9283 available; assume it will handle stack alignment and return
9284 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9285 legacy_push_arguments.
9286 (legacy_push_arguments): Rename default_push_arguments.
9287 * value.h (legacy_push_arguments): Rename default_push_arguments.
9288 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9289 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9290 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9291 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9292 * config/i386/tm-symmetry.h: Update.
9293 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9294 * x86-64-tdep.c (x86_64_init_abi): Update.
9295 * v850-tdep.c (v850_gdbarch_init): Update.
9296 * sparc-tdep.c (sparc_gdbarch_init): Update.
9297 * sh-tdep.c (sh_gdbarch_init): Update.
9298 * s390-tdep.c (s390_gdbarch_init): Update.
9299 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9300 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9301 * mips-tdep.c (mips_gdbarch_init): Update.
9302 * mcore-tdep.c (mcore_gdbarch_init): Update.
9303 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9304 * ia64-tdep.c (ia64_gdbarch_init): Update.
9305 * i386-tdep.c (i386_gdbarch_init): Update.
9306 * hppa-tdep.c (hppa_gdbarch_init): Update.
9307 * h8300-tdep.c (h8300_gdbarch_init): Update.
9308 * frv-tdep.c (frv_gdbarch_init): Update.
9309 * d10v-tdep.c (d10v_gdbarch_init): Update.
9310 * cris-tdep.c (cris_gdbarch_init): Update.
9311 * avr-tdep.c (avr_gdbarch_init): Update.
9312 * arm-tdep.c (arm_gdbarch_init): Update.
9313 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9314 * alpha-tdep.c (alpha_gdbarch_init): Update.
9315
9316 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9317
9318 * signals/signals.c (do_target_signal_to_host): Correct realtime
9319 signal range test.
9320
9321 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9322
9323 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9324 (struct sal_chain, map_catch_names): Remove.
9325 (catch_exception_command_1): Don't call
9326 handle_gnu_4_16_catch_command.
9327
9328 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9329
9330 From Mark Dettinger <dettinge@de.ibm.com>:
9331 * dwarf2cfi.c (read_2u): Increment pointer by two.
9332
9333 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9334
9335 * signals/signals.c: Fix typos in last change.
9336
9337 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9338
9339 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9340 not already defined. Use __SIGRTMIN if available.
9341 (target_signal_from_host): Remove SIGRTMIN block.
9342 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9343 the signal is within the realtime range.
9344
9345 2003-03-25 Adam Fedor <fedor@gnu.org>
9346
9347 * Makefile.in (infrun.o): Add $(language_h)
9348 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9349 for language specific trampolines.
9350 * language.h (struct language_defn): Add skip_trampoline.
9351 (skip_language_trampoline): Declare.
9352 * language.c (unk_lang_trampoline, skip_language_trampoline):
9353 New functions.
9354 (unknown_language_defn, auto_language_defn, local_language_defn):
9355 Add ukn_lang_trampoline.
9356 * ada-lang.c (ada_language_defn): Add NULL for language
9357 specific skip_trampoline.
9358 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9359 scm-lang.c: Likewise.
9360 * objc-lang.c (objc_skip_trampoline): New function.
9361 (objc_language_defn): Add objc_skip_trampoline.
9362
9363 2003-03-25 Andrew Cagney <cagney@redhat.com>
9364
9365 * frame.c (get_prev_frame): Delay validating a frame's ID -
9366 non-NULL, didn't go backwards - until an attempt to unwind it to
9367 the previous frame.
9368
9369 2003-03-25 Andrew Cagney <cagney@redhat.com>
9370
9371 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9372 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9373 * gdbarch.h, gdbarch.c: Re-generate.
9374 * config/sparc/tm-sparc.h
9375 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9376 * sparc-tdep.c (sparc_gdbarch_init): Set
9377 deprecated_extra_stack_alignment_needed.
9378 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9379 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9380 extra_stack_alignment_needed.
9381 * v850-tdep.c (v850_gdbarch_init): Ditto.
9382 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9383 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9384 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9385 * cris-tdep.c (cris_gdbarch_init): Ditto.
9386 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9387 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9388
9389 2003-03-25 Andrew Cagney <cagney@redhat.com>
9390
9391 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9392 STORE_STRUCT_RETURN.
9393 * gdbarch.h, gdbarch.c: Regenerate.
9394 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9395 (d10v_push_arguments): Set the struct return register.
9396 (d10v_gdbarch_init): Update.
9397 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9398 * x86-64-tdep.c (x86_64_init_abi): Update.
9399 * vax-tdep.c (vax_gdbarch_init): Update.
9400 * v850-tdep.c (v850_gdbarch_init): Update.
9401 * sparc-tdep.c (sparc_gdbarch_init): Update.
9402 * sh-tdep.c (sh_gdbarch_init): Update.
9403 * s390-tdep.c (s390_gdbarch_init): Update.
9404 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9405 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9406 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9407 * mips-tdep.c (mips_gdbarch_init): Update.
9408 * mcore-tdep.c (mcore_gdbarch_init): Update.
9409 * m68k-tdep.c (m68k_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 * cris-tdep.c (cris_gdbarch_init): Update.
9417 * avr-tdep.c (avr_gdbarch_init): Update.
9418 * arm-tdep.c (arm_gdbarch_init): Update.
9419 * alpha-tdep.c (alpha_gdbarch_init): Update.
9420
9421 2003-03-25 Andrew Cagney <cagney@redhat.com>
9422
9423 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9424 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9425 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9426 * gdbarch.h, gdbarch.c: Regenerate.
9427 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9428 call_dummy_stack_adjust_p.
9429 * vax-tdep.c (vax_gdbarch_init): Ditto.
9430 * v850-tdep.c (v850_gdbarch_init): Ditto.
9431 * sh-tdep.c (sh_gdbarch_init): Ditto.
9432 * s390-tdep.c (s390_gdbarch_init): Ditto.
9433 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9434 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9435 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9436 * mips-tdep.c (mips_gdbarch_init): Ditto.
9437 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9438 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9439 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9440 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9441 * i386-tdep.c (i386_gdbarch_init): Ditto.
9442 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9443 * frv-tdep.c (frv_gdbarch_init): Ditto.
9444 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9445 * cris-tdep.c (cris_gdbarch_init): Ditto.
9446 * avr-tdep.c (avr_gdbarch_init): Ditto.
9447 * arm-tdep.c (arm_gdbarch_init): Ditto.
9448 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9449 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9450 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9451 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9452 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9453 call_dummy_stack_adjust_p.
9454 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9455 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9456 * sparc-tdep.c (sparc32_push_arguments): Update.
9457 * valops.c (hand_function_call): Update.
9458
9459 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9460
9461 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9462 set_gdbarch_char_signed.
9463
9464 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9465
9466 PR cli/548
9467 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9468
9469 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9470
9471 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9472 (_initialize_arm_tdep): Don't set tm_print_insn.
9473
9474 2003-03-24 Adam Fedor <fedor@gnu.org>
9475
9476 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9477 * objc-lang.h: Add multiple inclusion protection.
9478 (start_msglist, add_msglist, end_msglist): Additional declarations.
9479
9480 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9481
9482 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9483 value was renamed to ARM_FLOAT_SOFT_FPA.
9484
9485 2003-03-23 Andrew Cagney <cagney@redhat.com>
9486
9487 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9488 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9489 * gdbarch.h, gdbarch.c: Regenerate.
9490 * valops.c (hand_function_call): Update.
9491 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9492 * frame.c (legacy_saved_regs_this_id): Update.
9493 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9494 * dummy-frame.h: Update.
9495 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9496 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9497 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9498 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9499 * config/m68k/tm-sun3.h: Update.
9500 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9501 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9502 * x86-64-tdep.c (x86_64_init_abi): Update.
9503 * vax-tdep.c (vax_gdbarch_init): Update.
9504 * v850-tdep.c (v850_gdbarch_init): Update.
9505 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9506 * sh-tdep.c (sh_gdbarch_init): Update.
9507 * s390-tdep.c (s390_gdbarch_init): Update.
9508 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9509 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9510 (frame_get_saved_regs): Update.
9511 * ppc-linux-tdep.c (ppc_linux_init_abi): 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_frame_num_args, i386_gdbarch_init): Update.
9520 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9521 (i386_interix_back_one_frame): Update.
9522 * hppa-tdep.c (hppa_gdbarch_init): Update.
9523 (hppa_init_extra_frame_info): Update.
9524 * h8300-tdep.c (h8300_gdbarch_init): Update.
9525 * frv-tdep.c (frv_gdbarch_init): Update.
9526 * cris-tdep.c (cris_gdbarch_init): Update.
9527 * avr-tdep.c (avr_gdbarch_init): Update.
9528 * arm-tdep.c (arm_gdbarch_init): Update.
9529 * alpha-tdep.c (alpha_gdbarch_init): Update.
9530
9531 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9532
9533 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9534 (arm_get_fp_model): Declare.
9535 * arm-tdep.c (fp_model_strings): New string array.
9536 (arm_fp_model, current_fp_model): New variables.
9537 (arm_get_fp_model): New function.
9538 (arm_set_fp): New function.
9539 (set_fp_model_sfunc): New function.
9540 (show_fp_model): New function.
9541 (_initialize_arm_tdep): Add new command to set/show the FPU.
9542 (arm_extract_return_value): Use arm_get_fp_model.
9543 (arm_store_return_value): Likewise.
9544 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9545 to initialize the floating-point data types.
9546 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9547 model is FPA.
9548
9549 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9550
9551 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9552 the current setting of each value.
9553 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9554 new_set and new_show. Use add_setshow_cmd_full and
9555 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9556 commands and add new version as subcommands of "set/show arm".
9557
9558 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9559
9560 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9561 (set_arm_command, show_arm_command): New functions.
9562 (_initialize_arm_tdep): Add them.
9563 (num_disassembly_options): Renamed from num_flavor_options.
9564 (valid_disassembly_styles): Renamed from valid_flavors.
9565 (disassembly_style): Renamed from disassembly_flavor.
9566 (set_disassembly_style_sfunc): Renamed from
9567 set_disassembly_flavor_sfunc.
9568 (set_disassembly_style): Renamed from set_disassembly_flavor.
9569 (arm_othernames): Updated.
9570 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9571 command. Add "set/show arm disassembly" commands. Deprecate
9572 "othernames" command.
9573
9574 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9575
9576 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9577 (arm-tdep.o): Depend on elf_arm_h.
9578
9579 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9580
9581 * Makefile.in (coff_internal_h): Define.
9582 (arm-tdep.o): Update dependencies.
9583
9584 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9585
9586 * arm-tdep.c (prologue_cache): Delete.
9587 (check_prologue_cache, save_prologue_cache): Delete.
9588 (arm_scan_prologue): Don't check or update the prologue_cache.
9589 (arm_gdb_arch_init): Don't initialize it.
9590 (_initialize_arm_tdep): Likewise.
9591
9592 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9593
9594 * MAINTAINERS (tui): Maintainer of tui code.
9595
9596 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9597
9598 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9599 (i386-cygwin-tdep.o): Add dependencies.
9600 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9601 * i386-cygwin-tdep.c: New file.
9602 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9603 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9604
9605 2003-03-20 Andrew Cagney <cagney@redhat.com>
9606
9607 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9608 (handle_inferior_event): Remove code calling
9609 DYNAMIC_TRAMPOLINE_NEXTPC.
9610
9611 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9612 already has a full path.
9613
9614 * main.c (gdb_main): Return 1.
9615 (captured_main): Call error to report an invalid interpreter.
9616
9617 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9618 * alpha-osf1-tdep.c: Include "gdb_string.h".
9619
9620 2003-03-19 J. Brobecker <brobecker@gnat.com>
9621
9622 Continuing work to convert the hppa targets to multiarch partial.
9623
9624 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9625 method, now that hppa_push_dummy_frame has a conformant prototype.
9626 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9627 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9628 for the switch to multiarch partial.
9629
9630 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9631
9632 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9633 when iss is issNull.
9634
9635 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9636
9637 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9638 NUM_REGS bounds check.
9639
9640 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9641
9642 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9643 * mips-tdep.c (gdb_assert.h): Include.
9644 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9645 (mips_register_name): Handle integer registers explicitly. Add
9646 bounds checking.
9647 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9648 (mips_lsi33k_reg_names): Don't list integer registers; they're
9649 handled by mips_register_name() now.
9650 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9651 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9652 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9653 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9654 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9655
9656 2003-03-18 Andrew Cagney <cagney@redhat.com>
9657
9658 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9659 a void pointer.
9660 * gdbtypes.h (print_scalar_formatted): Update declaration.
9661 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9662
9663 2003-03-18 J. Brobecker <brobecker@gnat.com>
9664
9665 * infrun.c (observer.h): Add #include.
9666 (normal_stop): Add call to observer_notify_normal_stop.
9667 * Makefile.in (infrun.o): Add dependency on observer.h.
9668
9669 2003-03-18 J. Brobecker <brobecker@gnat.com>
9670
9671 Continuing work to convert the hppa targets to multiarch partial.
9672 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9673 parameter. Reformat comment.
9674 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9675 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9676 to match new profile.
9677
9678 2003-03-18 J. Brobecker <brobecker@gnat.com>
9679
9680 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9681 appear to be working in any case.
9682
9683 2003-03-18 J. Brobecker <brobecker@gnat.com>
9684
9685 * observer.c (observer_test_first_observer): New static variable.
9686 (observer_test_second_observer): Likewise.
9687 (observer_test_third_observer): Likewise.
9688 (observer_test_first_notification_function): New static function.
9689 (observer_test_second_notification_function): Likewise.
9690 (observer_test_third_notification_function): Likewise.
9691
9692 2003-03-17 J. Brobecker <brobecker@gnat.com>
9693
9694 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9695 * somsolib.c (gdb_assert.h): Likewise.
9696 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9697 (somsolib.o): Likewise.
9698
9699 2003-03-17 Andrew Cagney <cagney@redhat.com>
9700
9701 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9702 BFD. Simplify setting of di.endian.
9703
9704 2003-03-17 Andrew Cagney <cagney@redhat.com>
9705
9706 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9707 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9708
9709 From Elena Zannoni <ezannoni@redhat.com>
9710 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9711 vector and floating-point parameters.
9712 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9713 convention.
9714 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9715
9716 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9717
9718 * MAINTAINERS: Remove my name from several maintainership roles.
9719
9720 2003-03-17 Andrew Cagney <cagney@redhat.com>
9721
9722 Fix frame off-by-one bug.
9723 * frame-unwind.h (frame_this_id_ftype): Replace
9724 frame_unwind_id_ftype.
9725 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9726 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9727 with "prev_register".
9728 * frame-unwind.c (frame_unwind_find_by_pc): Return
9729 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9730 comment.
9731 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9732 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9733 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9734 (dummy_frame_unwind): Update.
9735 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9736 sentinel_frame_register_unwind.
9737 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9738 (sentinel_frame_unwinder): Update.
9739 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9740 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9741 * frame.c (create_sentinel_frame): Update. Initialize
9742 "prologue_cache" instead of "unwind_cache".
9743 (frame_register_unwind): Call this frame's prev_register with the
9744 next frame and this frame's prologue cache.
9745 (get_prev_frame): Simplify. Always call prev frame's this_id with
9746 this frame and prev frame's prologue cache. Document that this
9747 call is shifted one to the left when compared to the
9748 frame_register_unwind call.
9749 (legacy_saved_regs_prev_register): Replace
9750 frame_saved_regs_register_unwind.
9751 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9752 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9753 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9754 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9755 (d10v_frame_unwind): Update.
9756 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9757 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9758 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9759 "saved_regs" with "this_saved_regs".
9760
9761 2003-03-16 Andrew Cagney <cagney@redhat.com>
9762
9763 * frame.c (frame_pop): Don't call target_store_registers. Fix
9764 problem reported by Mark Kettenis.
9765
9766 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9767
9768 * i386-tdep.c (i386_register_type): Renamed from
9769 i386_register_virtual_type. Adjust function signature.
9770 (i386_gdbarch_init): Set register_type instead of
9771 deprecated_max_register_raw_size,
9772 deprecated_max_register_virtual_size and register_virtual_type.
9773
9774 2003-03-14 Andrew Cagney <cagney@redhat.com>
9775
9776 * frame.c (get_prev_frame): When a legacy frame, always call
9777 legacy_get_prev_frame. Simplify unwind code using assumption that
9778 the unwinder is new.
9779 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9780 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9781 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9782
9783 2003-03-14 Andrew Cagney <cagney@redhat.com>
9784
9785 * frame.c (get_saved_register): Delete function.
9786 * frame.h (get_saved_register): Delete declaration.
9787 * xstormy16-tdep.c: Update comment.
9788 * regcache.h: Update comments.
9789 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9790 get_saved_register and extract_address, use
9791 frame_read_unsigned_register.
9792 (sparc_frame_saved_pc): Ditto.
9793 (sparc_get_saved_register): Instead of get_saved_register, use
9794 frame_register.
9795 (sparc_pop_frame): Ditto.
9796 * findvar.c: Update comments.
9797 (value_of_register): Call frame_register instead of
9798 get_saved_register.
9799 (value_from_register): Ditto.
9800 * config/sparc/tm-sparc.h: Update comment.
9801 * breakpoint.c: Update comment.
9802
9803 2003-03-14 Andrew Cagney <cagney@redhat.com>
9804
9805 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9806 GET_SAVED_REGISTER.
9807 * gdbarch.h, gdbarch.c: Re-generate.
9808 * frame.h: Update comments.
9809 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9810 * x86-64-tdep.c (x86_64_init_abi): Update.
9811 * sparc-tdep.c (sparc_gdbarch_init): Update.
9812 * sh-tdep.c (sh_gdbarch_init): Update.
9813 * mips-tdep.c (mips_gdbarch_init): Update.
9814 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9815 * cris-tdep.c (cris_gdbarch_init): Update.
9816 * ia64-tdep.c (ia64_gdbarch_init): Update.
9817 * frame.c (frame_register): Update.
9818 (get_saved_register): Update.
9819 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9820
9821 2003-03-13 Andrew Cagney <cagney@redhat.com>
9822
9823 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9824 * gdbarch.h, gdbarch.c: Regenerate.
9825 * valops.c (hand_function_call): Update comment.
9826 * stack.c (return_command): Update comment.
9827 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9828 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9829 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9830 * x86-64-tdep.c (x86_64_init_abi): Update.
9831 * vax-tdep.c (vax_gdbarch_init): Update.
9832 * v850-tdep.c (v850_gdbarch_init): Update.
9833 * sparc-tdep.c (sparc_gdbarch_init): Update.
9834 * sh-tdep.c (sh_gdbarch_init): Update.
9835 * s390-tdep.c (s390_gdbarch_init): Update.
9836 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9837 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9838 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9839 * mips-tdep.c (mips_gdbarch_init): Update.
9840 * mcore-tdep.c (mcore_gdbarch_init): Update.
9841 * m68k-tdep.c (m68k_gdbarch_init): Update.
9842 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9843 * ia64-tdep.c (ia64_gdbarch_init): Update.
9844 * i386-tdep.c (i386_gdbarch_init): Update.
9845 * hppa-tdep.c (hppa_gdbarch_init): Update.
9846 * h8300-tdep.c (h8300_gdbarch_init): Update.
9847 * frv-tdep.c (frv_gdbarch_init): Update.
9848 * cris-tdep.c (cris_gdbarch_init): Update.
9849 * avr-tdep.c (avr_gdbarch_init): Update.
9850 * arm-tdep.c (arm_gdbarch_init): Update.
9851 * alpha-tdep.c (alpha_gdbarch_init): Update.
9852
9853 2003-03-13 Andrew Cagney <cagney@redhat.com>
9854
9855 * frame.c (legacy_frame_p): New function.
9856 (get_prev_frame): Use legacy_frame_p.
9857 * frame.h (legacy_frame_p): Declare.
9858
9859 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9860
9861 * MAINTAINERS (write after approval): Alphabetically
9862 listing corrected.
9863
9864 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9865
9866 * MAINTAINERS (write after approval): Add myself.
9867
9868 2003-03-12 Andrew Cagney <cagney@redhat.com>
9869
9870 * frame.c (get_prev_frame): Rename the frame parameter to
9871 "this_frame".
9872 (get_next_frame, legacy_get_prev_frame): Ditto.
9873
9874 2003-03-12 Andrew Cagney <cagney@redhat.com>
9875
9876 * frame.c (get_current_frame): Check target_has_registers before
9877 checking target_has_stack.
9878 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9879 instead of deprecated_selected_frame.
9880 * findvar.c (value_of_register): Pass "frame", not
9881 deprecated_selected_frame, to value_of_builtin_reg.
9882
9883 2003-03-12 Andrew Cagney <cagney@redhat.com>
9884
9885 * regcache.c (regcache_cooked_write_signed): New function.
9886 (regcache_cooked_write_unsigned): New function.
9887 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9888 (regcache_cooked_read_signed): Fix regnum in range assertion.
9889 * regcache.h (regcache_cooked_write_signed): Declare.
9890 (regcache_cooked_write_unsigned): Declare.
9891
9892 2003-03-12 Andrew Cagney <cagney@redhat.com>
9893
9894 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9895 * gdbarch.h, gdbarch.c: Re-generate.
9896 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9897 * x86-64-tdep.h: Update.
9898 * x86-64-tdep.c (x86_64_init_abi): Update.
9899 * v850-tdep.c (v850_gdbarch_init): Update.
9900 * sparc-tdep.c (sparc_gdbarch_init): Update.
9901 * sh-tdep.c (sh_gdbarch_init): Update.
9902 * s390-tdep.c (s390_gdbarch_init): Update.
9903 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9904 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9905 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9906 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9907 * mips-tdep.c (mips_gdbarch_init): Update.
9908 * mcore-tdep.c (mcore_gdbarch_init): Update.
9909 * m68k-tdep.c (m68k_gdbarch_init): Update.
9910 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9911 * ia64-tdep.c (ia64_gdbarch_init): Update.
9912 * i386-tdep.c (i386_gdbarch_init): Update.
9913 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9914 * hppa-tdep.c (hppa_gdbarch_init): Update.
9915 * h8300-tdep.c (h8300_gdbarch_init): Update.
9916 * frv-tdep.c (frv_gdbarch_init): Update.
9917 * cris-tdep.c (cris_gdbarch_init): Update.
9918 * avr-tdep.c (avr_gdbarch_init): Update.
9919 * arm-tdep.c (arm_gdbarch_init): Update.
9920 * alpha-tdep.c (alpha_gdbarch_init): Update.
9921 * sh-tdep.c (sh_init_extra_frame_info): Update.
9922 (sh64_init_extra_frame_info): Update.
9923 * ns32knbsd-nat.c (frame_num_args): Update.
9924 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9925 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9926 (xstormy16_frame_chain_valid): Update.
9927 * vax-tdep.c (vax_saved_pc_after_call): Update.
9928 * v850-tdep.c (v850_frame_chain): Update.
9929 (v850_pop_frame): Update.
9930 (v850_init_extra_frame_info): Update.
9931 * sparc-tdep.c (setup_arbitrary_frame): Update.
9932 * ns32k-tdep.c (umax_frame_num_args): Update.
9933 * s390-tdep.c (s390_pop_frame_regular): Update.
9934 * mn10300-tdep.c (mn10300_frame_chain): Update.
9935 (mn10300_pop_frame_regular): Update.
9936 (mn10300_init_extra_frame_info): Update.
9937 * mips-tdep.c (mips_init_frame_pc_first): Update.
9938 (mips_frame_chain): Update.
9939 (mips_pop_frame): Update.
9940 * mcore-tdep.c (mcore_frame_chain): Update.
9941 (mcore_pop_frame): Update.
9942 (mcore_init_extra_frame_info): Update.
9943 * arch-utils.c (init_frame_pc_default): Update.
9944 * m68k-tdep.c (isi_frame_num_args): Update.
9945 (delta68_frame_num_args): Update.
9946 (news_frame_num_args): Update.
9947 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9948 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9949 (alpha_frame_chain): Update.
9950 (alpha_pop_frame): Update.
9951 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9952 (hppa_init_extra_frame_info): Update.
9953 (hppa_frame_chain): Update.
9954 (hppa_frame_chain_valid): Update.
9955 * cris-tdep.c (cris_init_extra_frame_info): Update.
9956 * avr-tdep.c (avr_init_extra_frame_info): Update.
9957 * arm-tdep.c (arm_frame_chain_valid): Update.
9958 (arm_init_extra_frame_info): Update.
9959 (arm_pop_frame): Update.
9960 * frame.c (frame_pc_unwind): Update.
9961 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9962 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9963 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9964 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9965 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9966 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9967
9968 2003-03-12 Andrew Cagney <cagney@redhat.com>
9969
9970 Eliminate the need for POP_FRAME.
9971 * frame.c (do_frame_unwind_register): New function.
9972 (frame_pop): When no POP_FRAME, pop the frame using register
9973 unwind and a scratch regcache.
9974 (frame_saved_regs_pop): Delete function.
9975 (trad_frame_unwinder): Update.
9976 * d10v-tdep.c (d10v_frame_pop): Delete function.
9977 (d10v_frame_unwind): Update.
9978 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9979 (sentinel_frame_unwinder): Update.
9980 * dummy-frame.c (dummy_frame_pop): Delete function.
9981 (dummy_frame_unwind): Update.
9982 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9983 (struct frame_unwind): Update.
9984
9985 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9986
9987 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9988 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9989 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9990 Do range checks on register number obtained from debugging info.
9991 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9992 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9993 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9994 mapping function.
9995 (do_fp_register_row): Fix typo which caused double type to be
9996 used when attempting to unpack a float.
9997
9998 2003-03-11 J. Brobecker <brobecker@gnat.com>
9999
10000 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10001
10002 2003-03-11 Andrew Cagney <cagney@redhat.com>
10003
10004 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10005 frame. Problem found by Corinna Vinschen.
10006
10007 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10008
10009 * doublest.c (floatformat_from_length): Accept also
10010 the real size of 'long double' type.
10011
10012 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
10013
10014 From Klee Dienes <kdienes@apple.com>:
10015 * breakpoint.c (bpstat_copy): Copy the command lines as well
10016 as the old value, to match what is freed in bpstat_clear.
10017
10018 2003-03-10 David Carlton <carlton@math.stanford.edu>
10019
10020 * minsyms.c (add_minsym_to_hash_table): Replace
10021 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10022 (compare_minimal_symbols, compact_minimal_symbols)
10023 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10024 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10025 of DEPRECATED_SYMBOL_MATCHES_NAME.
10026 (lookup_minimal_symbol_solib_trampoline): Ditto.
10027
10028 2003-03-10 Andrew Cagney <cagney@redhat.com>
10029
10030 * regcache.h (regcache_cooked_read_ftype): Define.
10031 (regcache_save, regcache_restore): Add a cooked_read parameter.
10032 * regcache.c (regcache_save, regcache_restore): Update.
10033 (do_cooked_read): New function.
10034 (regcache_cpy): Pass do_cooked_read to regcache_save and
10035 regcache_restore.
10036
10037 2003-03-10 Andrew Cagney <cagney@redhat.com>
10038
10039 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10040 * gdbarch.h, gdbarch.c: Re-generate.
10041 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10042 * x86-64-tdep.h: Update.
10043 * x86-64-tdep.c (x86_64_init_abi): Update.
10044 * v850-tdep.c (v850_gdbarch_init): Update.
10045 * sparc-tdep.c (sparc_gdbarch_init): Update.
10046 * sh-tdep.c (sh_gdbarch_init): Update.
10047 * s390-tdep.c (s390_gdbarch_init): Update.
10048 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10049 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10050 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10051 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10052 * mips-tdep.c (mips_gdbarch_init): Update.
10053 * mcore-tdep.c (mcore_gdbarch_init): Update.
10054 * m68k-tdep.c (m68k_gdbarch_init): Update.
10055 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10056 * ia64-tdep.c (ia64_gdbarch_init): Update.
10057 * i386-tdep.c (i386_gdbarch_init): Update.
10058 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10059 * hppa-tdep.c (hppa_gdbarch_init): Update.
10060 * h8300-tdep.c (h8300_gdbarch_init): Update.
10061 * frv-tdep.c (frv_gdbarch_init): Update.
10062 * cris-tdep.c (cris_gdbarch_init): Update.
10063 * avr-tdep.c (avr_gdbarch_init): Update.
10064 * arm-tdep.c (arm_gdbarch_init): Update.
10065 * alpha-tdep.c (alpha_gdbarch_init): Update.
10066 * sh-tdep.c (sh_init_extra_frame_info): Update.
10067 (sh64_init_extra_frame_info): Update.
10068 * ns32knbsd-nat.c (frame_num_args): Update.
10069 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10070 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10071 (xstormy16_frame_chain_valid): Update.
10072 * vax-tdep.c (vax_saved_pc_after_call): Update.
10073 * v850-tdep.c (v850_frame_chain): Update.
10074 (v850_pop_frame): Update.
10075 (v850_init_extra_frame_info): Update.
10076 * sparc-tdep.c (setup_arbitrary_frame): Update.
10077 * ns32k-tdep.c (umax_frame_num_args): Update.
10078 * s390-tdep.c (s390_pop_frame_regular): Update.
10079 * mn10300-tdep.c (mn10300_frame_chain): Update.
10080 (mn10300_pop_frame_regular): Update.
10081 (mn10300_init_extra_frame_info): Update.
10082 * mips-tdep.c (mips_init_frame_pc_first): Update.
10083 (mips_frame_chain): Update.
10084 (mips_pop_frame): Update.
10085 * mcore-tdep.c (mcore_frame_chain): Update.
10086 (mcore_pop_frame): Update.
10087 (mcore_init_extra_frame_info): Update.
10088 * arch-utils.c (init_frame_pc_default): Update.
10089 * m68k-tdep.c (isi_frame_num_args): Update.
10090 (delta68_frame_num_args): Update.
10091 (news_frame_num_args): Update.
10092 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10093 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10094 (alpha_frame_chain): Update.
10095 (alpha_pop_frame): Update.
10096 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10097 (hppa_init_extra_frame_info): Update.
10098 (hppa_frame_chain): Update.
10099 (hppa_frame_chain_valid): Update.
10100 * cris-tdep.c (cris_init_extra_frame_info): Update.
10101 * avr-tdep.c (avr_init_extra_frame_info): Update.
10102 * arm-tdep.c (arm_frame_chain_valid): Update.
10103 (arm_init_extra_frame_info): Update.
10104 (arm_pop_frame): Update.
10105 * frame.c (frame_pc_unwind): Update.
10106 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10107 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10108 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10109 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10110 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10111 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10112
10113 2003-03-10 Andrew Cagney <cagney@redhat.com>
10114
10115 * gdbarch.sh (gdbarch_unwind_pc): New method.
10116 * gdbarch.h, gdbarch.c: Regenerate.
10117 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10118 but use read_pc and FRAME_SAVED_PC as fall backs.
10119 (frame_saved_regs_pc_unwind): Delete function.
10120 (trad_frame_unwinder): Update.
10121 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10122 (struct frame_unwind): Update.
10123 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10124 (dummy_frame_unwind): Update.
10125 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10126 (sentinel_frame_unwinder): Update.
10127 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10128 (d10v_frame_unwind): Update.
10129 (d10v_unwind_pc): New function.
10130 (d10v_gdbarch_init): Set unwind_pc.
10131
10132 2003-03-10 Andrew Cagney <cagney@redhat.com>
10133
10134 * gdbarch.h: Re-generate.
10135
10136 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10137 PC.
10138 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10139 the PC register.
10140
10141 2003-03-08 Mark Kettenis <kettenis@gnu.org>
10142
10143 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10144
10145 2003-03-08 Andrew Cagney <cagney@redhat.com>
10146
10147 * cli-out.c: Update copyright.
10148 (cli_out_data): Define typedef. Use instead of ui_out_data.
10149
10150 2003-03-08 Andrew Cagney <cagney@redhat.com>
10151
10152 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10153 the result.
10154
10155 2003-03-07 Andrew Cagney <cagney@redhat.com>
10156
10157 * gdbarch.sh: Don't generate two macro definitions when an
10158 undefined macro taking no arguments.
10159 * gdbarch.h: Regenerate.
10160
10161 2002-03-07 Michal Ludvig <mludvig@suse.cz>
10162
10163 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10164 (x86_64_unwind_dummy_id): New functions.
10165 (x86_64_init_abi): Register these two new functions.
10166
10167 2003-03-07 Michal Ludvig <mludvig@suse.cz>
10168
10169 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
10170 (x86_64_skip_prologue): Move prologue detection to
10171 separate function.
10172 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10173
10174 2003-03-05 Andrew Cagney <cagney@redhat.com>
10175
10176 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10177 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10178 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10179 to use unwind_dummy_id when a dummy frame.
10180 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10181 predicate.
10182 * gdbarch.h, gdbarch.c: Regneerate.
10183
10184 2003-03-05 Andrew Cagney <cagney@redhat.com>
10185
10186 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10187 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10188 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10189 values.
10190
10191 2003-03-05 Andrew Cagney <cagney@redhat.com>
10192
10193 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10194 (struct d10v_unwind_cache): Delete field "frameless". Replace
10195 "next_addr" with "sp_offset". Add "r11_offset".
10196 (d10v_frame_unwind_cache): Update.
10197 (prologue_find_regs): Update. When "mv r11, sp", save the
10198 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10199 RN was saved in r11_offset.
10200
10201 2003-03-05 Andrew Cagney <cagney@redhat.com>
10202
10203 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10204 cached PC value in the next frame.
10205
10206 2003-03-05 Andrew Cagney <cagney@redhat.com>
10207
10208 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10209 "id_unwind_cache" with "id".
10210 (frame_id_unwind): Delete declaration.
10211 * frame.c (frame_id_unwind): Delete function.
10212 (get_prev_frame): Call the frame id unwind method directly. Store
10213 the returned next frame's ID value in NEXT_FRAME. Note that there
10214 is a problem with the wrong unwind ID being called with the wrong
10215 unwind cache.
10216
10217 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10218
10219 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10220
10221 2003-03-05 James Ingham <jingham@apple.com>
10222 Daniel Jacobowitz <drow@mvista.com>
10223
10224 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10225 (auto_cp_abi): New variable.
10226 (current_cp_abi, num_cp_abis): Make static.
10227 (CP_ABI_MAX): Define.
10228 (cp_abis): Turn into an array.
10229 (value_virtual_fn_field): Fix formatting.
10230 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10231 takes a pointer.
10232 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10233 (list_cp_abis, _initialize_cp_abi): New functions.
10234 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10235 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10236 switch_to_cp_abi. Update prototype for register_cp_abi.
10237 * Makefile.in (cp-abi.o): Update dependencies.
10238 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10239 instead of switch_to_cp_abi.
10240 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10241 register_cp_abi.
10242 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10243 register_cp_abi.
10244 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10245
10246 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10247
10248 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10249 * dwarf2loc.c: Include "regcache.h".
10250 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10251 register_size.
10252 * Makefile.in (dwarf2loc.o): Update dependencies.
10253
10254 2003-03-04 Theodore A. Roth <troth@openavr.org>
10255
10256 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10257 number of io registers reported by remote target is not a multiple of
10258 step.
10259
10260 2003-03-04 David Carlton <carlton@math.stanford.edu>
10261
10262 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10263 (lookup_symbol_aux_psymtabs): Update call to
10264 lookup_partial_symbol.
10265 (lookup_transparent_type, find_main_psymtab)
10266 (make_symbol_overload_list): Ditto.
10267
10268 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10269
10270 * MAINTAINERS (Write after approval): Update my email address.
10271
10272 2003-03-03 Andrew Cagney <cagney@redhat.com>
10273
10274 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10275 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10276 predicate. Replace MAX_REGISTER_RAW_SIZE.
10277 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10278 MAX_REGISTER_VIRTUAL_SIZE.
10279 * regcache.c (legacy_max_register_raw_size): New function.
10280 (legacy_max_register_virtual_size): New function.
10281 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10282 (MAX_REGISTER_RAW_SIZE): Define.
10283 (legacy_max_register_raw_size): Declare.
10284 (legacy_max_register_virtual_size): Declare.
10285 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10286 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10287 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10288 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10289 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10290 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10291 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10292 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10293 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10294 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10295 * vax-tdep.c (vax_gdbarch_init): Update.
10296 * v850-tdep.c (v850_gdbarch_init): Update.
10297 * sparc-tdep.c (sparc_gdbarch_init): Update.
10298 * sh-tdep.c (sh_gdbarch_init): Update.
10299 * s390-tdep.c (s390_gdbarch_init): Update.
10300 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10301 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10302 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10303 * mips-tdep.c (mips_gdbarch_init): Update.
10304 * mcore-tdep.c (mcore_gdbarch_init): Update.
10305 * m68k-tdep.c (m68k_gdbarch_init): Update.
10306 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10307 * ia64-tdep.c (ia64_gdbarch_init): Update.
10308 * i386-tdep.c (i386_gdbarch_init): Update.
10309 * hppa-tdep.c (hppa_gdbarch_init): Update.
10310 * h8300-tdep.c (h8300_gdbarch_init): Update.
10311 * frv-tdep.c (frv_gdbarch_init): Update.
10312 * cris-tdep.c (cris_gdbarch_init): Update.
10313 * avr-tdep.c (avr_gdbarch_init): Update.
10314 * arm-tdep.c (arm_gdbarch_init): Update.
10315 * alpha-tdep.c (alpha_gdbarch_init): Update.
10316 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10317 max_register_raw_size or max_register_virtual_size.
10318
10319 2003-03-03 David Carlton <carlton@math.stanford.edu>
10320
10321 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10322 SYMBOL_MATCHES_NAME, add comment.
10323 (SYMBOL_MATCHES_NATURAL_NAME): New.
10324 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10325 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10326 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10327 * symtab.c (lookup_partial_symbol): Use
10328 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10329 unhelpful comment.
10330 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10331 SYMBOL_MATCHES_NAME.
10332 Fix for PR c++/33.
10333
10334 2003-03-03 David Carlton <carlton@math.stanford.edu>
10335
10336 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10337 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10338 by regexp matching against SYMBOL_NATURAL_NAME.
10339
10340 2003-03-03 David Carlton <carlton@math.stanford.edu>
10341
10342 * linespec.c (find_method): Extract code into collect_methods.
10343 (collect_methods): New.
10344
10345 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10346
10347 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10348 get_frame_base.
10349
10350 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10351 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10352
10353 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10354
10355 * arch-utils.c (generic_register_byte): Fix to use the loop index
10356 and not regnum when summing the size of all registers up to regnum.
10357
10358 2003-03-01 Andrew Cagney <cagney@redhat.com>
10359
10360 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10361 FRAME_INIT_SAVED_REGS.
10362 * gdbarch.h, gdbarch.c: Regenerate.
10363 * stack.c (frame_info): Update.
10364 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10365 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10366 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10367 * ns32k-tdep.c (ns32k_pop_frame): Update.
10368 * mips-tdep.c (mips_pop_frame): Update.
10369 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10370 * ia64-tdep.c (ia64_frame_chain): Update.
10371 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10372 (ia64_frameless_function_invocation): Update.
10373 (ia64_init_extra_frame_info): Update.
10374 (ia64_pop_frame_regular): Update.
10375 * frame.h (struct frame_info): Update comment.
10376 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10377 * frame.c (frame_saved_regs_register_unwind): Update.
10378 (frame_saved_regs_register_unwind): Update.
10379 (deprecated_generic_get_saved_register): Update.
10380 * cris-tdep.c: Update comment.
10381 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10382 Rename macro.
10383 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10384 * x86-64-tdep.c (x86_64_init_abi): Update.
10385 * vax-tdep.c (vax_gdbarch_init): Update.
10386 * v850-tdep.c (v850_gdbarch_init): Update.
10387 * sparc-tdep.c (sparc_gdbarch_init): Update.
10388 * sh-tdep.c (sh_gdbarch_init): Update.
10389 * s390-tdep.c (s390_gdbarch_init): Update.
10390 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10391 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10392 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10393 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10394 * mips-tdep.c (mips_gdbarch_init): Update.
10395 * mcore-tdep.c (mcore_gdbarch_init): Update.
10396 * m68k-tdep.c (m68k_gdbarch_init): Update.
10397 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10398 * ia64-tdep.c (ia64_gdbarch_init): Update.
10399 * i386-tdep.c (i386_gdbarch_init): Update.
10400 * frv-tdep.c (frv_gdbarch_init): Update.
10401 * avr-tdep.c (avr_gdbarch_init): Update.
10402 * arm-tdep.c (arm_gdbarch_init): Update.
10403 * alpha-tdep.c (alpha_gdbarch_init): Update.
10404
10405 2003-03-01 Andrew Cagney <cagney@redhat.com>
10406
10407 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10408 option enum and switch. When no windows, set the interpreter to
10409 INTERP_CONSOLE.
10410
10411 2003-03-01 Andrew Cagney <cagney@redhat.com>
10412
10413 * main.c (captured_main): Replace magic option characters with an
10414 enum.
10415
10416 2003-03-01 Andrew Cagney <cagney@redhat.com>
10417
10418 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10419 INIT_EXTRA_FRAME_INFO.
10420 * gdbarch.h, gdbarch.c: Regenerate.
10421 * arm-tdep.c: Update comments.
10422 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10423 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10424 * frame.h, avr-tdep.c: Ditto.
10425 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10426 (create_new_frame, legacy_get_prev_frame): Ditto.
10427 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10428 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10429 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10430 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10431 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10432 * v850-tdep.c (v850_gdbarch_init): Ditto.
10433 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10434 * sh-tdep.c (sh_gdbarch_init): Ditto.
10435 * s390-tdep.c (s390_gdbarch_init): Ditto.
10436 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10437 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10438 * mips-tdep.c (mips_gdbarch_init): Ditto.
10439 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10440 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10441 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10442 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10443 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10444 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10445 * frv-tdep.c (frv_gdbarch_init): Ditto.
10446 * cris-tdep.c (cris_gdbarch_init): Ditto.
10447 * avr-tdep.c (avr_gdbarch_init): Ditto.
10448 * arm-tdep.c (arm_gdbarch_init): Ditto.
10449 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10450 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10451
10452 2003-03-01 Andrew Cagney <cagney@redhat.com>
10453
10454 * gdbarch.sh (register_type): New function with predicate.
10455 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10456 * gdbarch.h, gdbarch.c: Re-generate.
10457 * arch-utils.c (generic_register_byte): Use generic_register_size.
10458 (generic_register_size): When available, use
10459 gdbarch_register_type.
10460 * regcache.c (init_regcache_descr): When available, initialize the
10461 register type array using gdbarch_register_type. If the
10462 architecture supplies gdbarch_register_type, do not use the legacy
10463 regcache layout.
10464 * d10v-tdep.c (d10v_register_type): Replace
10465 d10v_register_virtual_type.
10466 (d10v_gdbarch_init): Set register_type instead of
10467 register_virtual_type.
10468
10469 2003-03-01 Andrew Cagney <cagney@redhat.com>
10470
10471 * Makefile.in (ax-gdb.o): Update dependencies.
10472 * ax-gdb.c: Include "regcache.h".
10473 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10474 * findvar.c (value_of_register): Ditto.
10475 * infcmd.c (default_print_registers_info): Ditto.
10476
10477 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10478
10479 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10480 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10481
10482 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10483
10484 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10485 of STREQ.
10486
10487 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10488
10489 * Makefile.in (dwarf2loc.o): Update dependencies.
10490 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10491 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10492 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10493 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10494 (locexpr_tracepoint_var_ref): New function.
10495 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10496
10497 2003-02-28 Andrew Cagney <cagney@redhat.com>
10498
10499 * regcache.c (register_size): New function.
10500 * regcache.h (register_size): Declare
10501 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10502 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10503
10504 2003-02-28 David Carlton <carlton@math.stanford.edu>
10505
10506 * linespec.c (decode_compound): Extract code into find_method.
10507 (find_method): New.
10508
10509 2003-02-28 J. Brobecker <brobecker@gnat.com>
10510
10511 * Makefile.in: Add rules to build and link in observer.o.
10512
10513 2003-02-27 J. Brobecker <brobecker@gnat.com>
10514
10515 * observer.c: Minor comments edits.
10516
10517 2003-02-27 J. Brobecker <brobecker@gnat.com>
10518
10519 * observer.h, observer.c: New file.
10520
10521 2003-02-27 Andrew Cagney <cagney@redhat.com>
10522
10523 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10524
10525 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10526
10527 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10528 (M6812_OP_STS_EXT): Likewise.
10529 (m6811_prologue): Use the above to recognize prologue.
10530 (m6812_prologue): Likewise.
10531
10532 2003-02-27 David Carlton <carlton@math.stanford.edu>
10533
10534 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10535 SYMBOL_PRINT_NAME.
10536 (compare_psymbols): Ditto.
10537 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10538
10539 2003-02-27 Michael Snyder <msnyder@redhat.com>
10540
10541 * f-lang.c (build_fortran_types): New function.
10542 (_initialize_f_language): Gdbarch-register built-in fortran types.
10543 * doublest.c (extract_floating): Fix warning text.
10544
10545 2003-02-27 Andrew Cagney <cagney@redhat.com>
10546
10547 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10548 predicate. Replaces PUSH_DUMMY_FRAME.
10549 * gdbarch.h, gdbarch.c: Regnerate.
10550 * valops.c (hand_function_call): Update. Call
10551 generic_push_dummy_frame directly.
10552 * vax-tdep.c (vax_gdbarch_init): Update.
10553 * sparc-tdep.c (sparc_gdbarch_init): Update.
10554 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10555 * m68k-tdep.c (m68k_gdbarch_init): Update.
10556 * hppa-tdep.c (hppa_gdbarch_init): Update.
10557 * alpha-tdep.c (alpha_gdbarch_init): Update.
10558 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10559 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10560 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10561 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10562 push_dummy_frame to generic_push_dummy_frame.
10563 * v850-tdep.c (v850_gdbarch_init): Ditto.
10564 * sh-tdep.c (sh_gdbarch_init): Ditto.
10565 * s390-tdep.c (s390_gdbarch_init): Ditto.
10566 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10567 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10568 * mips-tdep.c (mips_gdbarch_init): Ditto.
10569 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10570 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10571 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10572 * i386-tdep.c (i386_gdbarch_init): Ditto.
10573 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10574 * frv-tdep.c (frv_gdbarch_init): Ditto.
10575 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10576 * cris-tdep.c (cris_gdbarch_init): Ditto.
10577 * avr-tdep.c (avr_gdbarch_init): Ditto.
10578 * arm-tdep.c (arm_gdbarch_init): Ditto.
10579
10580 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10581
10582 * mips-tdep.c (show_mips_abi): New function.
10583 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10584 command ``show mips abi''.
10585
10586 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10587
10588 From Elena Zannoni <ezannoni@redhat.com>
10589 * dbxread.c (process_one_symbol): Only record line 0 if one or
10590 more sline entries have been seen for the function.
10591
10592 2003-02-26 Michael Chastain <mec@shout.net>
10593
10594 * configure: Regenerate with autoconf 000227.
10595
10596 2003-02-26 Michael Chastain <mec@shout.net>
10597
10598 Close PR build/660.
10599 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10600 for old libc5/glibc.
10601 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10602
10603 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10604
10605 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10606 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10607
10608 2003-02-26 Michael Chastain <mec@shout.net>
10609
10610 * configure.in: New variable HAVE_UINTPTR_T.
10611 * configure, config.in: Regenerated.
10612
10613 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10614
10615 Fix PR build/1097.
10616 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10617
10618 2003-02-25 Andrew Cagney <cagney@redhat.com>
10619
10620 * frame.c (get_prev_frame): Add comment on check for
10621 inside_entry_func. Only check for inside_entry_file when not a
10622 dummy and not a sentinel. Check that the new frame is not inner
10623 to the old frame.
10624
10625 2003-02-25 Andrew Cagney <cagney@redhat.com>
10626
10627 * frame.c (frame_debug): New variable.
10628 (_initialize_frame): Add "set/show debug frame" command.
10629 (get_prev_frame): When frame_debug, print reason why unwind
10630 failed.
10631
10632 2003-02-25 Michael Chastain <mec@shout.net>
10633
10634 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10635 to avoid uintptr_t definition problems.
10636
10637 2003-02-25 David Carlton <carlton@math.stanford.edu>
10638
10639 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10640 (SYMBOL_LINKAGE_NAME): Ditto.
10641 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10642 SYMBOL_LINKAGE_NAME.
10643 (struct general_symbol_info): Expand comment.
10644 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10645 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10646 (SYMBOL_MATCHES_REGEXP): Ditto.
10647 * symtab.c (symbol_natural_name): New function.
10648 * objfiles.h: Replace all uses of SYMBOL_NAME by
10649 DEPRECATED_SYMBOL_NAME.
10650 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10651 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10652 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10653 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10654 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10655 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10656 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10657 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10658 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10659 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10660 * ada-exp.y: Ditto.
10661 * ada-exp.y: Update copyright.
10662 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10663 * cp-valprint.c: Ditto.
10664
10665 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10666
10667 * infptrace.c (detach): Do not flag error if ptrace detach fails
10668 and errno is set to ESRCH.
10669
10670 2003-02-24 Andrew Cagney <cagney@redhat.com>
10671
10672 * infptrace.c (udot_info): Change type of udot_off to long. Use
10673 paddr when printing udot_off's value.
10674
10675 2003-02-24 David Carlton <carlton@math.stanford.edu>
10676
10677 * symtab.c (make_symbol_overload_list): Only read in partial
10678 symtabs containing a matching partial symbol.
10679
10680 2003-02-24 David Carlton <carlton@math.stanford.edu>
10681
10682 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10683 do the comparison, not strcmp.
10684 * symfile.c (compare_psymbols): Ditto.
10685 * defs.h: Declare strcmp_iw_ordered.
10686 * utils.c (strcmp_iw_ordered): New function.
10687
10688 2003-02-24 Jim Blandy <jimb@redhat.com>
10689
10690 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10691 support, shared libs): Remove my name from here, to better reflect
10692 reality.
10693
10694 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10695
10696 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10697 (target_ops): Add to_have_continuable_watchpoint.
10698 * target.c (update_current_target): Add INHERIT line for
10699 to_have_continuable_watchpoint.
10700 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10701 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10702 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10703 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10704
10705 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10706
10707 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10708 maintainership.
10709
10710 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10711
10712 * solib.c (solib_open): Call target defined search function after
10713 failing with solib-search-path.
10714 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10715 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10716
10717 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10718
10719 * MAINTAINERS: Add myself to Write After section.
10720
10721 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10722
10723 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10724
10725 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10726
10727 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10728 (m68hc11_add_reggroups): New function.
10729 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10730 (m68hc11_gdbarch_init): Install the reggroups.
10731 (_initialize_m68hc11_tdep): Initialize them.
10732
10733 2003-02-21 James E Wilson <wilson@tuliptree.org>
10734
10735 * MAINTAINERS: Update my email address.
10736
10737 2003-02-21 David Carlton <carlton@math.stanford.edu>
10738
10739 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10740
10741 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10742
10743 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10744 * symtab.h: Add opaque declarations of struct axs_value and
10745 struct agent_expr.
10746 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10747 (struct location_funcs): New type.
10748 (struct symbol): Add "loc" to aux_value.
10749 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10750 * dwarf2read.c: Include "dwarf2expr.h".
10751 (dwarf2_symbol_mark_computed): New function.
10752 (read_func_scope): Use it.
10753 (var_decode_location): New function.
10754 (new_symbol): Use it.
10755 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10756
10757 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10758 (dwarf2expr_h, dwarf2loc_h): New variables.
10759 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10760 (dwarf2expr.o, dwarf2loc.o): New rules.
10761 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10762 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10763 LOC_COMPUTED_ARG.
10764 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10765 * m2-exp.y (yylex): Likewise.
10766 * printcmd.c (address_info, print_frame_args): Likewise.
10767 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10768 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10769 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10770 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10771 * symtab.c (lookup_block_symbol): Likewise.
10772
10773 2003-02-20 Adam Fedor <fedor@gnu.org>
10774
10775 * symtab.h: Remove objc_specific struct
10776 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10777 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10778 Have language_objc use cplus_specific struct.
10779
10780 2003-02-20 Tom Tromey <tromey@redhat.com>
10781
10782 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10783 TYPE_NAME, when printing a String value. PR java/1075.
10784
10785 2003-02-20 Adam Fedor <fedor@gnu.org>
10786
10787 * objc-lang.h (find_methods): Remove declaration.
10788 * objc-lang.c (find_methods): Make static.
10789
10790 2003-02-20 Christopher Faylor <cgf@redhat.com>
10791
10792 * win32-nat.c (get_image_name): Check return value from
10793 ReadProcessMemory.
10794 (child_xfer_memory): Ditto.
10795
10796 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10797
10798 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10799 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10800 '${exec_prefix}' (in addition to the expansion thereof) as
10801 relocatable.
10802 * configure: Rebuilt.
10803
10804 2003-02-20 David Carlton <carlton@math.stanford.edu>
10805
10806 * symtab.c (search_symbols): Revert the search_symbols part of my
10807 2002-12-23 patch. Add comment.
10808
10809 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10810
10811 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10812 * dbxread.c (elfstab_build_psymtabs): Don't call
10813 install_minimal_symbols.
10814 (stabsect_build_psymtabs): Likewise.
10815 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10816 earlier.
10817 * somread.c (som_symfile_read): Call install_minimal_symbols
10818 and do_cleanups earlier.
10819 * nlmread.c (nlm_symfile_read): Likewise.
10820 * mdebugread.c (elfmdebug_build_psymtabs): Call
10821 install_minimal_symbols and make appropriate cleanups.
10822
10823 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10824
10825 * solib.c (reload_shared_libraries): New function.
10826 (_initialize_solib): Add callbacks for ``set solib-search-path''
10827 and ``set solib-absolute-prefix''.
10828
10829 2003-02-20 David Carlton <carlton@math.stanford.edu>
10830
10831 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10832 expand comment.
10833 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10834 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10835 * ada-typeprint.c (ada_typedef_print): Ditto.
10836 * ax-gdb.c (gen_var_ref): Ditto.
10837 * breakpoint.c (print_one_breakpoint): Ditto.
10838 * buildsym.c (finish_block): Ditto.
10839 * c-valprint.c (c_val_print): Ditto.
10840 * expprint.c (print_subexp): Ditto.
10841 * findvar.c (locate_var_value): Ditto.
10842 * infcmd.c (jump_command): Ditto.
10843 * linespec.c (decode_line_2, decode_compound): Ditto.
10844 * maint.c (maintenance_translate_address): Ditto.
10845 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10846 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10847 Ditto.
10848 * p-valprint.c (pascal_val_print): Ditto.
10849 * stabsread.c (define_symbol): Ditto.
10850 * stack.c (print_frame, frame_info, print_block_frame_locals)
10851 (print_frame_arg_vars, return_command): Ditto.
10852 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10853 * symmisc.c (print_symbol): Ditto.
10854 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10855 (compare_search_syms, print_symbol_info, print_msymbol_info)
10856 (rbreak_command): Ditto.
10857 * tracepoint.c (tracepoints_info): Ditto.
10858 * typeprint.c (typedef_print): Ditto.
10859 * valops.c (value_of_variable, hand_function_call): Ditto.
10860 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10861 * ada-typeprint.c: Update Copyright.
10862 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10863 * tracepoint.c, cli/cli-cmds.c: Ditto.
10864
10865 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10866
10867 * frame.c (generic_unwind_get_saved_register): Make non-static.
10868 * frame.h (generic_unwind_get_saved_register): Declare.
10869 * mips-tdep.c (read_next_frame_reg): Fetch register from
10870 current regcache when frame is NULL.
10871 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10872 that must be NULL.
10873 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10874 instead of frame_register_unwind().
10875
10876 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10877
10878 * remote-sim.c (gdbsim_insert_breakpoint)
10879 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10880 code.
10881
10882 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10883
10884 * remote.c (_initialize_remote): Add commands "set/show remote
10885 hardware-watchpoint-limit" and "set/show remote
10886 hardware-breakpoint-limit".
10887 (remote_hw_watchpoint_limit): Initialize to -1.
10888 (remote_hw_breakpoint_limit): Ditto.
10889 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10890
10891 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10892
10893 * coff-pe-read.c: New file - support reading of minimal symbols from a
10894 portable executable using the export table.
10895 * coff-pe-read.h: New file.
10896 * coffread.c: Include coff-pe-read.h.
10897 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10898 debugging symbols found.
10899 * Makefile.in (SFILES): Add coff-pe-read.o.
10900 (coff_pe_read_h): Define.
10901 (COMMON_OBS): Add coff-pe-read.o.
10902 (coffread.o): Add coff_pe_read_h dependency.
10903 (coff-pe-read.o): New target.
10904
10905 2003-02-19 David Carlton <carlton@math.stanford.edu>
10906
10907 * Makefile.in (SFILES): Add block.c.
10908 (block_h): New.
10909 (COMMON_OBS): Add block.o.
10910 (block.o): New.
10911 (x86-64-tdep.o): Add $(block_h).
10912 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10913 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10914 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10915 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10916 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10917 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10918 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10919 * value.h: Add opaque declaration for struct block.
10920 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10921 * ada-lang.h: Ditto.
10922 * x86-64-tdep.c: #include "block.h"
10923 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10924 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10925 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10926 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10927 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10928 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10929 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10930 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10931 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10932 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10933 * symtab.c (block_function): Ditto.
10934 (contained_in): Ditto.
10935 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10936 block.h. Add opaque declaration for struct block.
10937 * symtab.h: Move block_function and contained_in declarations to
10938 block.h. Add opaque declarations for struct block, struct
10939 blockvector.
10940 (struct block): Move to block.h.
10941 (struct blockvector): Ditto.
10942 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10943 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10944 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10945 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10946 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10947 Ditto.
10948 * block.c: New file.
10949 * block.h: New file.
10950
10951 2003-02-19 Theodore A. Roth <troth@openavr.org>
10952
10953 * avr-tdep.c (avr_extract_return_value): Remove function.
10954 (avr_store_return_value): Remove function.
10955 (avr_extract_struct_value_address): Remove function.
10956 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10957
10958 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10959
10960 * rs6000-tdep.c: Include "gdb_assert.h".
10961 (registers_e500): Add "acc" and "spefscr".
10962 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10963 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10964 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10965 really is "r0".
10966 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10967
10968 2003-02-18 Keith Seitz <keiths@redhat.com>
10969
10970 * Makefile.in: Add gdbtk-interps.c.
10971
10972 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10973
10974 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10975 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10976
10977 2003-02-18 Andrew Cagney <cagney@redhat.com>
10978
10979 * symtab.h (struct objfile): Add opaque declaration.
10980
10981 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10982
10983 From Jim Ingham <jingham@apple.com>:
10984 * dbxread.c (process_one_symbol): Use last_function_start rather
10985 than function_start_offset to find the real beginning of the
10986 current function. The latter is just the text section offset on
10987 some systems, the former is always the real function start.
10988
10989 2003-02-17 Andrew Cagney <cagney@redhat.com>
10990
10991 * configure.in: Revert ${target} != ${host}.
10992
10993 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10994
10995 * configure.in (Makefile): Use the test ${target} != ${host},
10996 instead of the absence of the "nm.h" file, to determine of the
10997 configuration non-native.
10998 * configure: Regenerate.
10999
11000 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
11001
11002 From Brian Ford <ford@vss.fsi.com>
11003
11004 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11005 conditionalize tui_active test.
11006 (lookup_cmd_1): Ditto.
11007
11008 2003-02-14 Mark Kettenis <kettenis@gnu.org>
11009
11010 * configure.in: Add check for _etext.
11011 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11012 available.
11013 * config.in, configure: regenerated.
11014
11015 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
11016
11017 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11018
11019 2003-02-14 Andrew Cagney <ac131313@redhat.com>
11020
11021 * main.c (tui_version): Delete variable.
11022 (captured_main): When --tui, set interpreter_p to "tui" instead of
11023 enabling tui_version.
11024 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11025 tui_version.
11026 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11027 * cli/cli-cmds.c (disassemble_command): Ditto.
11028 * defs.h (tui_version): Delete declaration.
11029 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11030 (tui-interp.o): Add rules.
11031 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11032
11033 2003-02-14 Christopher Faylor <cgf@redhat.com>
11034
11035 * win32-nat.c (register_loaded_dll): Correctly set address range for
11036 just-loaded dll.
11037
11038 2003-02-12 Jason Molenda (jmolenda@apple.com)
11039
11040 * symmisc.c (print_objfile_statistics): Include information about
11041 the number of psymtabs and symtabs in each object file.
11042
11043 2003-02-13 Keith R Seitz <keiths@redhat.com>
11044
11045 * main.h (struct captured_main_args): Add interpreter_p.
11046 * main.c (captured_main): Initialize interpreter_p from context.
11047 * gdb.c (main): Set interpreter_p argument.
11048 * Makefile.in (gdb.o): Add dependency for interps.h.
11049
11050 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11051
11052 * event-top.c (cli_command_loop): Delete declaration.
11053 (_initialize_event_loop): Delete function setting event_loop_hook.
11054 * event-top.h (cli_command_loop): Declare. Update copyright.
11055 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11056 * interps.c (current_interp_command_loop): When event_loop_p, call
11057 cli_command_loop.
11058
11059 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11060
11061 * interps.h (interp_command_loop_ftype): Change return type to
11062 void.
11063
11064 2003-02-12 Michal Ludvig <mludvig@suse.cz>
11065
11066 * x86-64-tdep.c (x86_64_extract_return_value)
11067 (x86_64_store_return_value): Use regcache instead of regbuf.
11068 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11069 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11070
11071 2003-02-11 Andrew Cagney <ac131313@redhat.com>
11072
11073 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11074 * aclocal.m4: Regenerate.
11075 * configure: Regenerate.
11076
11077 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11078 TCL_LD_SEARCH_FLAGS.
11079
11080 2003-02-10 Michal Ludvig <mludvig@suse.cz>
11081
11082 * dwarf2cfi.c: Reindented.
11083
11084 2003-02-09 Andrew Cagney <ac131313@redhat.com>
11085
11086 * interps.c (clear_interpreter_hooks): Convert function definition
11087 to ISO C.
11088
11089 2003-02-07 David Carlton <carlton@math.stanford.edu>
11090
11091 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11092
11093 2003-02-07 Kevin Buettner <kevinb@redhat.com>
11094
11095 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11096 (struct type): ...to here.
11097 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11098 field.
11099 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11100 (replace_type): Set length on all type variants for a given type.
11101
11102 2003-02-07 Andrew Cagney <ac131313@redhat.com>
11103
11104 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11105 <sys/stat.h>.
11106 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
11107
11108 2003-02-06 Andrew Cagney <ac131313@redhat.com>
11109
11110 * Makefile.in (symm-nat.o): Update dependencies.
11111 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11112 (lynx-nat.o, ia64-linux-nat.): Ditto.
11113 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11114 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11115 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11116
11117 * Makefile.in (inflow_h): Define.
11118 (procfs.o, inflow.o, procfs.o): Update dependencies.
11119 * inftarg.c (child_stop): Delete extern declaration of
11120 inferior_process_group. Include "inflow.h".
11121 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11122 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11123 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11124 (our_process_group, inferior_process_group): Extern declarations.
11125
11126 * procfs.c: Include "gdb_assert.h".
11127
11128 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11129 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11130 * jv-typeprint.c (java_type_print_base): Ditto.
11131 * typeprint.c (typedef_print): Eliminate STREQ.
11132 * cli/cli-script.c (define_command, define_command): Ditto.
11133 * main.c (captured_main): Ditto.
11134 * values.c (lookup_internalvar): Ditto.
11135 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11136 within `if' conditional.
11137 * linespec.c (decode_line_2): Ditto.
11138 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11139 (bfd_openw_with_cleanup): Ditto.
11140
11141 2003-02-07 Mark Kettenis <kettenis@gnu.org>
11142
11143 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11144 legacy_extract_return_value and store_return_value to
11145 legacy_return_value.
11146
11147 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11148
11149 * win32-nat.c (get_relocated_section_addrs): New function. Find
11150 section load addresses for symbol handling in relocated DLLs.
11151 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11152
11153 2003-02-05 Fred Fish <fnf@intrinsity.com>
11154
11155 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11156 '=' and '!='.
11157 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11158 with '&' and '=='.
11159 (angel_RDI_info): Ditto.
11160 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11161 with '&' and '!='.
11162 (threads_continue_all_with_signals): Ditto.
11163
11164 2003-02-05 Jim Ingham <jingham@apple.com>
11165 Keith Seitz <keiths@redhat.com>
11166 Elena Zannoni <ezannoni@redhat.com>
11167 Andrew Cagney <ac131313@redhat.com>
11168
11169 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11170 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11171 (SUBDIR_MI_OBS): Add "mi-interp.o".
11172 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11173 (SFILES): Add "interps.c".
11174 (COMMON_OBS): Add "interps.o".
11175 (interps_h, mi_main_h): Define.
11176 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11177 (mi-main.o, main.o, event-top.o): Update dependencies.
11178 * cli/cli-interp.c: New file.
11179 * interps.h, interps.c: New files.
11180 * top.c: (gdb_init): Don't install the default interpreter, handed
11181 by captured_main.
11182 * main.c: Include "interps.h".
11183 (interpreter_p): Note that it should malloc'ed.
11184 (captured_command_loop): Call current_interp_command_loop.
11185 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11186 xfree and xstrdup when updating interpreter_p. Install the
11187 default interpreter. Add hack to stop mi1's copyright notice
11188 being encoded.
11189 * event-top.h (gdb_setup_readline): Declare.
11190 (gdb_disable_readline): Declare.
11191 * event-top.c: Include "interps.h".
11192 (display_gdb_prompt): Call current_interp_display_prompt_p.
11193 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11194 gdb_stdlog, and gdb_stdtarg.
11195 (_initialize_event_loop): Don't call gdb_setup_readline.
11196 * cli-out.c (cli_out_set_stream): New function.
11197 * cli-out.h (cli_out_set_stream): Declare.
11198
11199 2003-02-06 Mark Kettenis <kettenis@gnu.org>
11200
11201 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11202 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11203 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11204 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11205 config/i386/i386v42mp.mt: Removed.
11206
11207 2003-02-05 Mark Kettenis <kettenis@gnu.org>
11208
11209 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11210 GDB_OSABI_SOLARIS.
11211
11212 2003-02-05 Michael Chastain <mec@shout.net>
11213
11214 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11215 2.12.1 and earlier versions.
11216
11217 2003-02-05 Andrew Cagney <ac131313@redhat.com>
11218
11219 Remove orphaned hosts, targets and files.
11220 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11221 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11222 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11223 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11224 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11225 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11226 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11227 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11228 * config/sparc/tm-sp64sim.h: Delete.
11229 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11230 hosts.
11231 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11232 mips*-dec-mach3* targets.
11233
11234 2003-02-04 Michael Chastain <mec@shout.net>
11235
11236 * NEWS: Fix typo: sepcifying -> specifying.
11237
11238 2003-02-04 Michael Chastain <mec@shout.net>
11239
11240 * dwarfread.c: Add documentation on the state of dwarf-1,
11241 looking towards obsoletion.
11242
11243 2003-02-03 Michael Chastain <mec@shout.net>
11244
11245 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11246 gdb/testsuite/gdb.c++/pr-1023.exp.
11247
11248 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11249
11250 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11251 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11252
11253 * utils.c (init_page_info): Delete reference to MPW in comments.
11254 * main.c (captured_main): Delete #ifdef MPW.
11255
11256 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11257
11258 * NEWS: Note that the m32r-*-elf* is obsolete.
11259 * monitor.c (monitor_expect): Obsolete reference to m32r.
11260 * configure.tgt: Mark m32r-*-elf* as obsolete.
11261 * MAINTAINERS: Mark m32k as obsolete.
11262 * m32r-rom.c: Obsolete file.
11263 * config/m32r/m32r.mt: Obsolete file.
11264 * config/m32r/tm-m32r.h: Obsolete file.
11265 * m32r-stub.c: Obsolete file.
11266 * m32r-tdep.c: Obsolete file.
11267
11268 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11269
11270 * NEWS: Mention that the z8k-zilog-none is obsolete.
11271 * MAINTAINERS: Mark z8k as obsolete.
11272 * configure.tgt: Obsolete the z8k-*-coff* target.
11273 * config/z8k/z8k.mt: Obsolete file.
11274 * config/z8k/tm-z8k.h: Obsolete file.
11275 * z8k-tdep.c: Obsolete file.
11276
11277 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11278
11279 * NEWS: Mention that the mn10200-elf is obsolete.
11280 * configure.tgt: Obsolete mn10200-*-* target.
11281 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11282 mention that the mn10200 is obsolete.
11283 * breakpoint.h: Ditto.
11284 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11285 * config/mn10200/mn10200.mt: Obsolete file.
11286 * config/mn10200/tm-mn10200.h: Obsolete file.
11287 * mn10200-tdep.c: Obsolete file.
11288
11289 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11290
11291 * MAINTAINERS: Mark h8500 as obsolete.
11292 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11293 * findvar.c (value_from_register): Ditto.
11294 * h8500-tdep.c: Mark file as obsolete.
11295 * config/h8500/h8500.mt: Ditto.
11296 * config/h8500/tm-h8500.h: Ditto.
11297 * NEWS: Mention that h8500 is obsolete.
11298
11299 2003-02-04 David Carlton <carlton@math.stanford.edu>
11300
11301 * objfiles.c (allocate_objfile): Always set name. Add comment at
11302 start of function.
11303 * jv-lang.c (get_dynamics_objfile): Add comment.
11304
11305 2003-02-04 David Carlton <carlton@math.stanford.edu>
11306
11307 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11308 * printcmd.c (build_address_symbolic): Replace uses of
11309 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11310 SYMBOL_NAME, and asm_demangle.
11311 Update copyright.
11312
11313 2003-02-04 David Carlton <carlton@math.stanford.edu>
11314
11315 * linespec.c (decode_compound): Extract code into
11316 lookup_prefix_sym.
11317 (lookup_prefix_sym): New function.
11318
11319 2003-02-04 David Carlton <carlton@math.stanford.edu>
11320
11321 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11322 FLOAT_COERCION_BADNESS.
11323 * gdbtypes.c (rank_one_type): Replace all uses of
11324 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11325
11326 2003-02-04 Jim Blandy <jimb@redhat.com>
11327
11328 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11329 section, let dwarf_macinfo_section point to it, not
11330 dwarf_loc_section.
11331
11332 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11333
11334 Pointed out by Anton Blanchard <anton@samba.org>.
11335 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11336 (ppc_linux_at_sigtramp_return_path): Use it.
11337
11338 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11339
11340 * defs.h (streq): Add prototype.
11341 * utils.c (streq): New function.
11342
11343 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11344 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11345 * mdebugread.c (new_symbol): Likewise.
11346 * stabsread.c (define_symbol): Likewise.
11347 * coffread.c (process_coff_symbol): Likewise.
11348 * dwarfread.c (new_symbol): Likewise.
11349
11350 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11351 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11352 here.
11353 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11354 SYMBOL_INIT_DEMANGLED_NAME.
11355 * objfiles.c: Include "hashtab.h".
11356 (allocate_objfile): Call htab_set_functions_ex for the
11357 demangled_names_hash.
11358 (free_objfile): Call htab_delete for the demangled_names_hash.
11359 * objfiles.h (struct htab): Add declaration.
11360 (struct objfile): Add demangled_names_hash.
11361 * symfile.c: Include "hashtab.h".
11362 (reread_symbols): Call htab_delete for the demangled_names_hash.
11363 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11364 SYMBOL_NAME in the bcache.
11365 * symtab.c: Include "hashtab.h". Update comments.
11366 (create_demangled_names_hash, symbol_set_names): New functions.
11367 (symbol_find_demangled_name): New function, broken out from
11368 symbol_init_demangled_names.
11369 (symbol_init_demangled_names): Use it.
11370 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11371 (SYMBOL_SET_NAMES): New macro.
11372 (symbol_set_names): Add prototype.
11373
11374 2003-02-03 Jim Blandy <jimb@redhat.com>
11375
11376 Use a single, consistent representation for an empty minimal
11377 symbol table in an objfile.
11378 * objfiles.c (terminate_minimal_symbol_table): New function.
11379 (allocate_objfile): Call it.
11380 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11381 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11382 non-NULL.
11383 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11384 objfile has minimal symbols, compare minimal_symbol_count to zero,
11385 instead of comparing msymbols with NULL.
11386 * objfiles.c (have_minimal_symbols): Same.
11387 * solib-sunos.c (solib_add_common_symbols): Call
11388 terminate_minimal_symbol_table.
11389 * symfile.c (reread_symbols): Same.
11390
11391 2003-02-03 Kevin Buettner <kevinb@redhat.com>
11392
11393 * s390-tdep.c (s390_address_class_type_flags)
11394 (s390_address_class_type_flags_to_name)
11395 (s390_address_class_name_to_type_flags): New functions.
11396 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11397 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11398
11399 2003-02-03 Michael Snyder <msnyder@redhat.com>
11400
11401 * arm-tdep.c: Fix spell-o in comment.
11402
11403 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11404
11405 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11406 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11407 error messages to contain BFD filename.
11408
11409 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11410
11411 Fix PR gdb/742 gdb/743 gdb/877
11412 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11413 (do_mixed_source_and_assembly): Use
11414 make_cleanup_ui_out_tuple_begin_end and
11415 make_cleanup_ui_out_tuple_begin_end.
11416 (do_mixed_source_and_assembly): Ditto.
11417 * thread.c (do_captured_list_thread_ids): Ditto.
11418 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11419 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11420 ui_out_tuple_end): Delete prototypes.
11421 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11422 ui_out_list_end, ui_out_tuple_end): Delete.
11423
11424 From Kevin Buettner <kevinb@redhat.com>:
11425 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11426 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11427 (do_cleanup_table_end): New functions.
11428 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11429 Use cleanups to invoke_ui_out_tuple_end().
11430 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11431 * cli/cli-setshow.c (cmd_show_list): Use
11432 make_cleanup_ui_out_tuple_begin_end.
11433
11434 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11435
11436 * frame.c (frame_unwind_register): New function.
11437 (frame_unwind_unsigned_register): Use.
11438 (frame_unwind_signed_register): Use.
11439 (frame_read_register): New function.
11440 * frame.h (frame_unwind_register): Declare.
11441 (frame_read_register): Declare.
11442
11443 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11444 and frame_unwind_register instead of read_memory, write_register
11445 and deprecated_write_register_bytes.
11446
11447 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11448
11449 * frame.h: Note that namelen can be negative.
11450 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11451 NAME's length.
11452
11453 * NEWS: Mention that the d10v's `regs' command is deprecated.
11454 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11455 (d10v_print_registers_info): New function.
11456 (show_regs): Call d10v_print_registers_info.
11457 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11458
11459 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11460
11461 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11462 lost in the previous patch.
11463
11464 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11465
11466 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11467 * stack.c (print_frame_info_base): Output complete FRAME tuple
11468 for synthesized frames.
11469
11470 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11471
11472 * mips-nat.c (zerobuf): Delete.
11473 (fetch_inferior_registers): Alloc local zerobuf.
11474 (fetch_core_registers): Alloc local zerobuf.
11475 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11476 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11477 * thread-db.c (thread_db_store_registers): Ditto.
11478 * sh-tdep.c (sh_do_register): Ditto.
11479 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11480 * remote-sim.c (gdbsim_store_register): Ditto.
11481 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11482 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11483 * monitor.c (monitor_supply_register): Ditto.
11484 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11485 * mips-nat.c (fetch_inferior_registers): Ditto.
11486 * m68klinux-nat.c (fetch_register): Ditto.
11487 * lynx-nat.c (fetch_inferior_registers): Ditto.
11488 (fetch_inferior_registers): Ditto.
11489 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11490 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11491 (hpux_thread_store_registers): Ditto.
11492 * hppah-nat.c (fetch_register): Ditto.
11493 * hppab-nat.c (fetch_register): Ditto.
11494 * hppa-tdep.c (pa_register_look_aside): Ditto.
11495 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11496 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11497
11498 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11499
11500 * gdbarch.sh: Explictly specify all method levels. When a
11501 variable with an empty level, provide a non-multi-arch default.
11502 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11503 * gdbarch.h: Re-generate.
11504 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11505 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11506
11507 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11508
11509 * defs.h (host_pointer_to_address): Delete declaration.
11510 (address_to_host_pointer): Delete declaration.
11511 * utils.c (host_pointer_to_address): Delete function.
11512 (address_to_host_pointer): Delete function.
11513 * procfs.c (procfs_address_to_host_pointer): New function.
11514 * procfs.c (proc_set_watchpoint): Use.
11515 (procfs_can_use_hw_breakpoint): Update comments.
11516 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11517 (som_solib_add): Use.
11518 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11519 * hppa-tdep.c (unwind_command): Use.
11520
11521 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11522
11523 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11524 strlen d_name.
11525
11526 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11527 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11528 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11529 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11530 (define_symbol): Update.
11531 * symfile.c (generic_load): Remove references to nindy.
11532 * symtab.c: Remove references to nindy.
11533
11534 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11535
11536 * infcmd.c (print_float_info): Delete code conditional on
11537 FLOAT_INFO.
11538 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11539 * config/m68k/nm-apollo68b.h: Ditto.
11540 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11541 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11542 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11543
11544 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11545
11546 * config/i386/tm-i386os9k.h: Removed.
11547
11548 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11549 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11550 they're identical to i[3456]86-*-sysv* now.
11551 * config/i386/i386v32.mh: Removed.
11552 * config/i386/xm-i386v32.h: Removed.
11553 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11554
11555 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11556
11557 * config/i386/i386dgux.mh: Removed.
11558 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11559
11560 * configure.in: Fix typo.
11561 * configure: Regenerated.
11562
11563 2003-01-31 David Carlton <carlton@math.stanford.edu>
11564
11565 * dwarf2read.c (dwarf2_locate_sections): Set
11566 dwarf_ranges_section.
11567
11568 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11569
11570 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11571 * utils.c: Update comments documenting legitimate uses of PTR.
11572
11573 * utils.c: Re-indent.
11574
11575 * config/djgpp/fnchange.lst: Delete nindy files.
11576 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11577 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11578 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11579 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11580 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11581 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11582 * Makefile.in (init.c): Remove nindy references.
11583 (saber_gdb): Delete rule.
11584 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11585 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11586 and a68v-nat.c.
11587 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11588 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11589 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11590 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11591 nindy-share/stop.h.
11592 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11593 * saber.suppress: Delete file.
11594
11595 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11596
11597 * dbxread.c (stabs_data): New static variable.
11598 (fill_symbuf): Support an in-memory buffer for stabs data.
11599 (stabs_seek): New function.
11600 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11601 (read_ofile_symtab): Use stabs_seek.
11602 (elfstab_build_psymtabs): Take an asection* instead of
11603 an offset and size. Relocate the stabs data if necessary.
11604 Save the section* for dbx_psymtab_to_symtab.
11605 * dwarf2read.c: Add section variables for each debug section.
11606 (dwarf2_locate_sections): Fill them in.
11607 (dwarf2_read_section): Take an asection* argument.
11608 Relocate the section contents if necessary.
11609 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11610 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11611 it to dwarf2_read_section.
11612 (dwarf2_build_frame_info): Update callers.
11613 * elfread.c (elf_symfile_read): Update call to
11614 elfstab_build_psymtabs.
11615 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11616 (DBX_STAB_SECTION): New macro.
11617 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11618 * symfile.c (symfile_dummy_outputs): New function.
11619 (symfile_relocate_debug_section): New function.
11620 * symfile.h (symfile_relocate_debug_section): Add prototype.
11621
11622 2003-01-31 Richard Henderson <rth@redhat.com>
11623
11624 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11625 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11626 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11627 * alpha-tdep.c (alpha_register_name): Add "unique".
11628 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11629 (ALPHA_UNIQUE_REGNUM): New.
11630 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11631
11632 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11633
11634 * README: Remove reference to Ericsson 1800 monitor.
11635 * Makefile.in (remote-es.o): Delete rule.
11636 (ALLDEPFILES): Delete remote-es.c.
11637 * remote-es.c: Delete file.
11638 * config/m68k/es1800.mt: Delete file.
11639 * config/djgpp/fnchange.lst: Update.
11640 * configure.tgt: Delete m68*-ericsson-* target.
11641
11642 2003-01-31 Adam Fedor <fedor@gnu.org>
11643
11644 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11645 Remove duplicate/shadowing variable of same name.
11646
11647 2003-01-30 Jim Blandy <jimb@redhat.com>
11648
11649 * symfile.c (find_separate_debug_file): Assert that the objfile's
11650 directory name we compute ends with a slash, and then assume that
11651 that's so everywhere we use it.
11652
11653 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11654
11655 * valops.c (value_assign): Flush frame cache after stores to memory
11656 also.
11657
11658 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11659
11660 * Makefile.in (mon960-rom.o): Delete rule.
11661 * mon960-rom.c: Delete file.
11662
11663 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11664
11665 * d10v-tdep.c: Include "frame-unwind.h".
11666 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11667 list.
11668 (next_addr, uses_frame): Delete.
11669 (struct d10v_unwind_cache): Define.
11670 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11671 Use info instead of next_addr and uses_frame globals.
11672 (d10v_frame_init_saved_regs): Delete function.
11673 (d10v_init_extra_frame_info): Delete function.
11674 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11675 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11676 init_frame_pc or frame_saved_pc.
11677 (d10v_pop_frame): Delete function.
11678 (do_d10v_pop_frame): Delete function.
11679 (d10v_frame_chain): Delete function.
11680 (d10v_frame_chain_valid): Delete function.
11681 (d10v_frame_pc_unwind): New function.
11682 (d10v_frame_id_unwind): New function.
11683 (saved_regs_unwinder): New function.
11684 (d10v_frame_register_unwind): New function.
11685 (d10v_frame_pop): New function.
11686 (d10v_frame_unwind): New variable.
11687 (d10v_frame_p): New function.
11688 (d10v_frame_saved_pc): Delete function.
11689 * Makefile.in (d10v-tdep.o): Update dependencies.
11690
11691 2003-01-30 J. Brobecker <brobecker@gnat.com>
11692
11693 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11694 causing some regressions due to a change in the default value
11695 for this macro.
11696
11697 2003-01-29 Richard Henderson <rth@redhat.com>
11698 Elena Zannoni <ezannoni@redhat.com>
11699 Daniel Jacobowitz <drow@mvista.com>
11700
11701 Fix PR gdb/961.
11702 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11703 variables.
11704 (RANGES_SECTION): New.
11705 (dwarf_ranges_buffer): New variable.
11706 (struct comp_unit_head): Add member "die".
11707 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11708 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11709 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11710 (dwarf2_locate_sections): Likewise.
11711 (dwarf2_build_psymtabs): Read .debug_ranges.
11712 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11713 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11714 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11715 Look for DW_AT_ranges and return the bounding box.
11716
11717 2003-01-29 Brian Ford <ford@vss.fsi.com>
11718
11719 * win32-nat.c (cygwin_pid): Removed as unused.
11720 (child_attach): Try fall back to Cygwin pid.
11721
11722 2003-01-29 Jim Blandy <jimb@redhat.com>
11723
11724 * objfiles.h (struct objfile): Doc fix.
11725
11726 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11727
11728 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11729 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11730 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11731 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11732 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11733 (FRAME_SAVED_PC): Change to a function with predicate.
11734 * gdbarch.h, gdbarch.c: Re-generate.
11735
11736 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11737
11738 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11739
11740 * complaints.c (complain): Delete function.
11741 * complaints.h (struct deprecated_complaint): Delete definition.
11742 (complain): Delete declaration.
11743
11744 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11745
11746 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11747 dummy frames.
11748
11749 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11750
11751 * sentinel-frame.h, sentinel-frame.c: New files.
11752 * Makefile.in (frame.o): Update dependencies.
11753 (SFILES): Add sentinel-frame.c.
11754 (sentinel_frame_h): Define.
11755 (COMMON_OBS): Add sentinel-frame.o.
11756 (sentinel-frame.o): Specify dependencies.
11757 * frame.c: Include "sentinel-frame.h".
11758 (frame_register_unwind): Rewrite assuming that there is always a a
11759 ->next frame.
11760 (frame_register, generic_unwind_get_saved_register): Ditto.
11761 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11762 (create_sentinel_frame, unwind_to_current_frame): New functions.
11763 (get_current_frame): Rewrite using create_sentinel_frame and
11764 unwind_to_current_frame. When possible, always create a frame.
11765 (create_new_frame): Set next to the sentinel frame.
11766 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11767 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11768 ID cache when necessary.
11769 (frame_saved_regs_id_unwind): Use frame_relative_level.
11770 (deprecated_generic_get_saved_register): Use frame_relative_level,
11771 get_frame_saved_regs, get_frame_pc, get_frame_base and
11772 get_next_frame.
11773 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11774 frame_register.
11775
11776 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11777
11778 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11779
11780 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11781
11782 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11783 (maintenance_set_profile_cmd): Use error () instead of warning ().
11784
11785 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11786
11787 * configure.in: Check that -pg works if using --enable-profiling.
11788 Check for monstartup and _mcleanup regardless of --enable-profiling.
11789 * maint.c: Check for monstartup and _mcleanup before using them.
11790 * config.in: Regenerated.
11791 * configure: Regenerated.
11792
11793 2003-01-24 Nick Clifton <nickc@redhat.com>
11794
11795 * Add sh2e support:
11796
11797 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11798
11799 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11800 (sh2e_show_regs): New.
11801 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11802 * config/sh/tm-sh.h: Added sh2e to comments.
11803
11804 2003-01-23 Jim Blandy <jimb@redhat.com>
11805
11806 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11807 symbols found)" message here; we haven't checked for a separate
11808 debug info file yet, so we don't know yet.
11809 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11810 we've looked everywhere. Also, there's no need to print a special
11811 message when we're loading the separate debug info file: the one
11812 symbol_file_add prints is fine.
11813
11814 2003-01-23 Alexander Larsson <alexl@redhat.com>
11815 Jim Blandy <jimb@redhat.com>
11816
11817 Add support for executables whose debug info has been separated
11818 out into a separate file, leaving only a link behind.
11819 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11820 and separate_debug_objfile_backlink.
11821 (put_objfile_before): New declaration.
11822 * symfile.c: #include "filenames.h".
11823 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11824 debug info in a separate file, read that, too. Save the addrs
11825 argument, so we can use it again to read the separated debug info;
11826 syms_from_objfile modifies the table we pass it.
11827 (reread_symbols): After re-reading an objfile, call
11828 reread_separate_symbols to refresh its separate debug info
11829 objfile, if it has one.
11830 (reread_separate_symbols, find_separate_debug_file,
11831 get_debug_link_info, separate_debug_file_exists): New functions.
11832 (debug_file_directory): New global var.
11833 (_initialize_symfile): Initialize debug_file_directory, and
11834 provide the new `set debug-file-directory' command to let the user
11835 change it.
11836 * objfiles.c (free_objfile): If this objfile has its debug info in
11837 a separate objfile, free that one too. If this is itself a
11838 separate debug info objfile, clear our parent's backlink.
11839 (put_objfile_before): New function.
11840 * utils.c (gnu_debuglink_crc32): New function.
11841 * defs.h (gnu_debuglink_crc32): New declaration.
11842 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11843 * configure.in: Handle --with-separate-debug-dir config option.
11844 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11845 * acconfig.h (DEBUGDIR): New macro.
11846 * configure, aclocal.m4, config.in: Regenerated.
11847
11848 2003-01-22 Jim Blandy <jimb@redhat.com>
11849
11850 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11851 like the old symbol_file_add, but taking new arguments: you can
11852 now pass in either a `struct section_addr_info' list to say where
11853 each section is loaded, or a `struct section_offsets' table. Pass
11854 these new arguments through to syms_from_objfile as appropriate.
11855 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11856 with the appropriate quiescent values for the new arguments.
11857
11858 * symfile.c: #include "gdb_assert.h".
11859 (syms_from_objfile): Add the ability to pass in a section offset
11860 table directly, as an alternative to the section_addr_info table.
11861 Document arguments better.
11862 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11863 * symfile.h (syms_from_objfile): Update declaration.
11864 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11865 syms_from_objfile.
11866 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11867
11868 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11869
11870 Original patch by Tom Tromey <tromey@cygnus.com> and
11871 Jason Molenda <jmolenda@apple.com>.
11872 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11873 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11874 * NEWS: Mention profiling.
11875 * configure.in (--enable-gdbtk): Fix typo.
11876 (--enable-profiling): New. Set PROFILE_CFLAGS.
11877 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11878 Fill in function.
11879 (profiling_state): New variable.
11880 (mcleanup_wrapper): New function.
11881 (_initialize_maint): Remove NOTYET, fix call to
11882 add_setshow_boolean_cmd for "maint set profile".
11883 * configure: Regenerated.
11884
11885 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11886
11887 * Makefile.in (install-gdbtk): Install PNG images too.
11888
11889 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11890
11891 * exec.c (text_start): Delete global variable.
11892 (exec_file_attach): Make text_start local to the function.
11893 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11894 * valops.c (hand_function_call): Delete code that handles
11895 BEFORE_TEXT_END and AFTER_TEXT_END.
11896 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11897 of CALL_DUMMY_LOCATION.
11898 * gdbarch.c: Regenerate.
11899 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11900 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11901 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11902 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11903 (text_end): Delete extern declaration.
11904
11905 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11906
11907 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11908 * blockframe.c (backtrace_below_main): Move to "frame.c".
11909 (frame_chain_valid): Delete check for backtrace_below_main.
11910 (_initialize_blockframe): Delete initialization, move ``set
11911 backtrace-below-main'' command to "frame.c".
11912 (do_flush_frames_sfunc): Delete function.
11913 * frame.c: Include "command.h" and "gdbcmd.h".
11914 (frame_type_from_pc): New function.
11915 (create_new_frame): Use frame_type_from_pc.
11916 (legacy_get_prev_frame): New function.
11917 (get_prev_frame): Rewrite. When an old style frame, call
11918 legacy_get_prev_frame. Otherwize, unwind the PC first.
11919 (_initialize_frame): Add ``set backtrace-below-main'' command.
11920 * Makefile.in (frame.o): Update dependencies.
11921
11922 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11923
11924 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11925 DEPRECATED_REGISTERS_INFO.
11926
11927 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11928
11929 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11930 Maintainers'. Update `Various Maintainers'.
11931
11932 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11933
11934 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11935 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11936 Suppress actual parameters when `-'.
11937 * gdbarch.h, gdbarch.c: Regenerate.
11938
11939 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11940
11941 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11942 code handling dummy frames.
11943
11944 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11945
11946 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11947 (struct frame_unwind): Add field pop.
11948 * frame.h (frame_pop): Declare.
11949 * frame.c (frame_saved_regs_pop): New function.
11950 (trad_frame_unwinder): Add frame_saved_regs_pop.
11951 (frame_pop): New function.
11952 * dummy-frame.c (dummy_frame_pop): New function.
11953 (discard_innermost_dummy): New function.
11954 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11955 (dummy_frame_unwind): Add dummy_frame_pop.
11956 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11957 * valops.c (hand_function_call): Ditto.
11958 * stack.c (return_command): Ditto.
11959
11960 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11961
11962 * cris-tdep.c: Fix function declaration indentation.
11963 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11964 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11965 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11966 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11967 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11968 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11969
11970 2003-01-18 Michael Chastain <mec@shout.net>
11971
11972 * README (Unpacking and Installation -- quick overview):
11973 Warn against ".../gdb-5.3/gdb/configure".
11974
11975 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11976
11977 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11978 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11979 (struct frame_unwind): Declare opaque.
11980 (dummy_frame_p): Declare function.
11981 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11982 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11983 * dummy-frame.c: Include "frame-unwind.h".
11984 (dummy_frame_p): New function.
11985 (dummy_frame_unwind): New variable.
11986 * frame.c: Include "frame-unwind.h".
11987 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11988 to use the new unwind field.
11989 (set_unwind_by_pc): Delete function.
11990 (create_new_frame, get_prev_frame): Set unwind field using
11991 frame_unwind_find_by_pc.
11992 (trad_frame_unwind, trad_frame_unwinder): New variables.
11993 * frame.h (trad_frame_unwind): Declare variable.
11994 (frame_id_unwind_ftype): Delete declaration.
11995 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11996 (struct frame_unwind): Declare opaque.
11997 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11998 register_unwind with a single unwind pointer.
11999 * frame-unwind.h, frame-unwind.c: New files.
12000 * Makefile.in (SFILES): Add frame-unwind.c.
12001 (frame_unwind_h): Define.
12002 (COMMON_OBS): Add frame-unwind.o.
12003 (frame-unwind.o): Specify dependencies.
12004 (frame.o, dummy-frame.o): Update dependencies.
12005
12006 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12007
12008 * ada-valprint.c: Eliminate PTR.
12009 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12010 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12011 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12012 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12013 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12014 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12015 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
12016
12017 2003-01-17 Andrew Cagney <ac131313@redhat.com>
12018
12019 * main.c (captured_main): Don't use PTR.
12020 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12021 * gdbtypes.c (lookup_primitive_typename): Ditto.
12022 (lookup_struct_elt_type): Ditto.
12023 * f-valprint.c (info_common_command): Ditto.
12024 (list_all_visible_commons): Ditto.
12025 * jv-typeprint.c (java_type_print_base): Ditto.
12026
12027 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12028 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12029 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12030 i386-interix-nat.c and i386-interix-tdep.c. Rename
12031 m68klinux-nat.c and m68klinux-tdep.c. Rename
12032 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12033 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12034 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12035 * main.c (captured_main): Use xfree, not free.
12036
12037 2003-01-16 Andrew Cagney <ac131313@redhat.com>
12038
12039 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12040 ID back using a parameter.
12041 * frame.c (frame_id_unwind): Update call.
12042 (frame_saved_regs_id_unwind): Update.
12043 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12044 * dummy-frame.h (struct frame_id): Add opaque declaration.
12045 (dummy_frame_id_unwind): Update declaration.
12046
12047 2003-01-15 Andrew Cagney <ac131313@redhat.com>
12048
12049 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12050
12051 2003-01-15 Stephen P. Smith <ischis2@cox.net>
12052
12053 * MAINTAINERS (Stephen P. Smith): Updated email address.
12054
12055 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
12056
12057 Fix PR gdb/898
12058 * breakpoint.c (until_break_command): Add new argument. Use it to
12059 decide whether to stop only at the current frame or not.
12060 * breakpoint.h (until_break_command): Update prototype.
12061 * infcmd.c (until_command): Add new argument to until_break_command
12062 call.
12063 (advance_command): New function.
12064 (_initialize_infcmd): Update help string for 'until' command.
12065 Add new 'advance' command.
12066
12067 2003-01-14 David Carlton <carlton@math.stanford.edu>
12068
12069 * linespec.c (decode_line_1): Normalize comments.
12070 (set_flags): Ditto.
12071 (locate_first_half): Ditto.
12072 (decode_compound): Ditto.
12073 (symtab_from_filename): Ditto.
12074 (decode_all_digits): Ditto.
12075 (decode_dollar): Ditto.
12076 (find_methods): Ditto.
12077 (find_toplevel_char): Ditto.
12078
12079 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12080
12081 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12082 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12083 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12084 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12085 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12086 * language.c, language.h, m32r-tdep.c: Update copyright.
12087 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12088 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12089 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12090 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12091 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12092 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12093
12094 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12095
12096 * stabsread.h (process_later, resolve_cfront_continuation):
12097 Obsolete.
12098 Update copyright years.
12099 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12100 Update copyright year.
12101 * dbxread.c(struct cont_elem): Obsolete.
12102 (process_later, process_now): Obsolete functions.
12103 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12104 Update copyright year.
12105 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12106 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12107 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12108 (parse_partial_symbols): Obsolete cfront support.
12109 * stabsread.c
12110 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12111 macros.
12112 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12113 read_cfront_baseclasses, read_cfront_member_functions,
12114 resolve_cfront_continuation,read_cfront_static_fields,
12115 copy_cfront_struct_fields): Obsolete functions.
12116 (define_symbol, read_one_struct_field): Obsolete cfront support.
12117 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12118 Update Copyright year.
12119
12120 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12121
12122 * stack.c (print_frame_info, print_stack_frame_base_stub,
12123 print_stack_frame_base, show_and_print_stack_frame_stub,
12124 show_and_print_stack_frame, print_only_stack_frame_stub,
12125 print_only_stack_frame): Delete functions.
12126 (print_stack_frame_stub): Call print_frame_info instead of
12127 print_frame_info_base.
12128 (print_frame_info_base): Rename to print_frame_info.
12129 (backtrace_command_1): Call print_frame_info, instead of
12130 print_frame_info_base.
12131 (current_frame_command): Call print_stack_frame, instead of
12132 print_only_stack_frame.
12133 (frame_command): Call print_stack_frame, instead of
12134 show_and_print_stack_frame.
12135 (up_command): Ditto.
12136 (down_command): Ditto.
12137 * frame.h (print_only_stack_frame): Delete prototype.
12138 * infrun.c (normal_stop): Call print_stack_frame, instead of
12139 show_and_print_stack_frame.
12140 * thread.c (info_threads_command): Call print_stack_frame, instead
12141 of print_only_stack_frame.
12142
12143 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12144
12145 * README (Graphical interface to GDB): Update URL. Point at
12146 gdb/links/.
12147
12148 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12149 version match.
12150
12151 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12152
12153 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12154 lines.
12155
12156 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12157
12158 * thread-db.c (attach_thread): Prototype.
12159 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12160 thread information (ti), and valid flags (th_valid, ti_valid).
12161 (attach_thread): Move target_pid_to_str call to after the thread
12162 is added to GDB's list. Initialize the cache.
12163 (thread_get_info_callback, thread_db_map_id2thr)
12164 (thread_db_get_info): New functions.
12165 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12166 (thread_db_store_registers, thread_db_thread_alive)
12167 (thread_db_get_thread_local_address): Use them.
12168 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12169 of calling error() for threads in unknown state.
12170
12171 (clear_lwpid_callback): New function.
12172 (thread_db_resume): Use it to clear the cache.
12173
12174 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12175
12176 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12177 (resume_callback): Remove dead code.
12178
12179 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12180
12181 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12182 predicate.
12183 * gdbarch.h, gdbarch.c: Regenerate.
12184 * stack.c (frame_info): Only initialize the saved registers when
12185 FRAME_INIT_SAVED_REGS_P.
12186 * frame.c (frame_saved_regs_register_unwind): Assert
12187 FRAME_INIT_SAVED_REGS_P.
12188 (deprecated_generic_get_saved_register): Ditto.
12189
12190 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12191
12192 * source.c (openp): Squelch warning about "filename".
12193
12194 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12195
12196 * source.c (openp): If the file does not exist don't necessarily
12197 search the path.
12198
12199 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12200
12201 Fix PR gdb/872.
12202 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12203 (integer_types_same_name_p): New function.
12204 (rank_one_type): Use it.
12205 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12206
12207 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12208
12209 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12210 variables.
12211 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12212 * configure.in: Add --with-sysroot.
12213 * configure: Regenerated.
12214 * main.c (gdb_sysroot): New variable.
12215 (captured_main): Initialize gdb_sysroot.
12216 * defs.h (gdb_sysroot): New extern declaration.
12217 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12218
12219 2003-01-12 Michael Chastain <mec@shout.net>
12220
12221 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12222
12223 2003-01-12 Michael Chastain <mec@shout.net>
12224
12225 * top.c (print_gdb_version): Bump copyright year to 2003.
12226
12227 2003-01-12 David Carlton <carlton@bactrian.org>
12228
12229 * linespec.c (symtab_from_filename): Rename variable 's' to
12230 'file_symtab'.
12231
12232 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12233
12234 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12235 dummy frame.
12236 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12237
12238 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12239
12240 * d10v-tdep.c: Include "gdb_assert.h".
12241 (d10v_store_return_value): Rewrite to match current interface.
12242 (d10v_extract_struct_value_address): Ditto.
12243 (d10v_extract_return_value): Ditto.
12244 (d10v_gdbarch_init): Set store_restore_value,
12245 extract_struct_value_address and extract_return_value.
12246
12247 2003-01-12 J. Brobecker <brobecker@gnat.com>
12248
12249 * hpread.c (set_namestring): New procedure replacing the
12250 SET_NAMESTRING macro.
12251 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12252 by calls to set_namestring.
12253
12254 2003-01-11 J. Brobecker <brobecker@gnat.com>
12255
12256 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12257 a compilation warning.
12258 (hpread_process_one_debug_symbol): Likewise.
12259
12260 2003-01-10 David Carlton <carlton@math.stanford.edu>
12261
12262 * linespec.c (decode_line_1): Rename variable 's' to
12263 'file_symtab'.
12264 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12265 (decode_dollar): Ditto.
12266 (decode_variable): Ditto.
12267 (symbol_found): Ditto.
12268
12269 2003-01-09 Michael Chastain <mec@shout.net>
12270
12271 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12272
12273 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
12274
12275 * win32-nat.c (set_process_privilege): New function.
12276 (child_attach): Call set_process_privilege() to enable the
12277 SE_DEBUG_NAME user privilege if available in process token.
12278
12279 2003-01-10 J. Brobecker <brobecker@gnat.com>
12280
12281 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12282 compilation error in the previous revision.
12283
12284 2003-01-09 David Carlton <carlton@math.stanford.edu>
12285
12286 * linespec.c: Update copyright.
12287
12288 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
12289
12290 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12291 than inferior_ptid.
12292 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12293
12294 2003-01-09 Andrew Cagney <ac131313@redhat.com>
12295
12296 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12297 Update comments.
12298 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12299 (frame_saved_regs_zalloc): Update.
12300 (frame_saved_regs_register_unwind): Update.
12301 (create_new_frame): Update.
12302 (get_prev_frame): Update.
12303 (frame_extra_info_zalloc): Update.
12304 (deprecated_get_frame_saved_regs): Update.
12305 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12306 * cris-tdep.c: Update comment.
12307
12308 * somsolib.h: Fix function indentation.
12309 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12310 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12311 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12312 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12313 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12314
12315 * infrun.c (follow_fork): Use ISO C definition.
12316 * expprint.c (print_subexp): Use xfree instead of free.
12317 * charset.c: Include "gdb_string.h" instead of <string.h>.
12318 (register_iconv_charsets): Use ISO C definition.
12319 (host_charset, target_charset): Ditto.
12320 * Makefile.in (charset.o): Update dependencies.
12321 (mi-cmd-env.o): Update dependencies.
12322
12323 2003-01-08 Andrew Cagney <cagney@redhat.com>
12324
12325 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12326 get_frame_base.
12327
12328 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12329
12330 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12331 build directories. Save edited gdb output in Mbuild.log. If a
12332 build fails, remove any final GDB executable.
12333
12334 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12335
12336 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12337 replacing hex constants with function names and stripping leading
12338 file name directory prefixes.
12339
12340 2003-01-08 Andrew Cagney <cagney@redhat.com>
12341
12342 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12343 get_frame_base.
12344
12345 2003-01-08 David Carlton <carlton@math.stanford.edu>
12346
12347 * linespec.c (decode_line_1): Move code into decode_variable.
12348 (decode_variable): New function.
12349
12350 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12351
12352 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12353
12354 2003-01-08 Andrew Cagney <cagney@redhat.com>
12355
12356 * cris-tdep.c (cris_frame_init_saved_regs): Use
12357 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12358 saved_regs buffer.
12359 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12360 (sh64_nofp_frame_init_saved_regs): Ditto.
12361 (sh_fp_frame_init_saved_regs): Ditto.
12362 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12363 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12364 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12365 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12366
12367 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12368
12369 * minsyms.c (lookup_minimal_symbol): Update comment.
12370 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12371 (lookup_minimal_symbol_solib_trampoline): Likewise.
12372
12373 2003-01-08 Andrew Cagney <cagney@redhat.com>
12374
12375 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12376 frame_relative_level.
12377
12378 * alpha-tdep.c: Use get_frame_extra_info.
12379 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12380 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12381 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12382 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12383
12384 * alpha-tdep.c: Use get_next_frame.
12385 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12386 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12387 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12388 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12389 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12390 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12391 * xstormy16-tdep.c: Ditto.
12392
12393 2003-01-07 Andrew Cagney <cagney@redhat.com>
12394
12395 * alpha-tdep.c: Use get_frame_base.
12396 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12397 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12398 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12399 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12400 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12401 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12402 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12403 * config/sparc/tm-sparc.h: Ditto.
12404
12405 2003-01-07 Andrew Cagney <cagney@redhat.com>
12406
12407 * frame.c (deprecated_get_frame_context): New function.
12408 (deprecated_set_frame_context): New function.
12409 * frame.h (deprecated_get_frame_context): Declare.
12410 (deprecated_set_frame_context): Declare.
12411 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12412 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12413
12414 2003-01-07 Andrew Cagney <cagney@redhat.com>
12415
12416 * frame.c (deprecated_set_frame_next_hack): New function.
12417 (deprecated_set_frame_prev_hack): New function.
12418 * frame.h (deprecated_set_frame_next_hack): Declare.
12419 (deprecated_set_frame_prev_hack): Declare.
12420 * mcore-tdep.c (analyze_dummy_frame): Use
12421 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12422 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12423
12424 2003-01-07 David Carlton <carlton@math.stanford.edu>
12425
12426 * linespec.c (decode_line_1): Move code into decode_dollar.
12427 (decode_dollar): New function.
12428
12429 2003-01-07 Andrew Cagney <cagney@redhat.com>
12430
12431 * arm-tdep.c (arm_init_extra_frame_info): Use
12432 deprecated_update_frame_base_hack.
12433 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12434 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12435 (fix_frame_pointer): Ditto.
12436 (mn10300_analyze_prologue): Ditto.
12437
12438 2003-01-07 Andrew Cagney <cagney@redhat.com>
12439
12440 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12441 extra_info using frame_extra_info_zalloc.
12442 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12443 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12444 (sh64_init_extra_frame_info): Ditto.
12445 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12446 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12447 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12448 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12449 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12450 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12451 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12452 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12453 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12454 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12455 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12456 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12457
12458 * mn10300-tdep.c (analyze_dummy_frame): Use
12459 deprecated_set_frame_extra_info_hack.
12460 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12461
12462 2003-01-07 J. Brobecker <brobecker@gnat.com>
12463
12464 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12465 class is not scText. These do not define "real" procedures.
12466 (parse_partial_symbols): Likewise.
12467
12468 2003-01-06 Michael Snyder <msnyder@redhat.com>
12469
12470 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12471
12472 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12473
12474 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12475 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12476 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12477 deprecated_frame_xmalloc_with_cleanup.
12478 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12479 deprecated_frame_xmalloc.
12480 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12481 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12482
12483 2003-01-06 Andrew Cagney <cagney@redhat.com>
12484
12485 * x86-64-linux-tdep.c: Include "osabi.h".
12486 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12487
12488 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12489
12490 2003-01-06 Andrew Cagney <cagney@redhat.com>
12491
12492 * MAINTAINERS (Target Instruction Set Architectures): Update
12493 arm-elf. Can be built with -Werror, has been multiarched.
12494
12495 * value.h (unpack_long): Make buffer parameter constant.
12496 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12497 * scm-lang.h (scm_parse): Ditto.
12498 * defs.h (extract_typed_address, extract_address): Ditto.
12499 (extract_long_unsigned_integer): Ditto.
12500 * inferior.h (unsigned_pointer_to_address): Ditto.
12501 (signed_pointer_to_address): Ditto.
12502 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12503 * gdbarch.h, gdbarch.c: Regenerate.
12504 * findvar.c (extract_long_unsigned_integer): Update.
12505 (extract_address): Update.
12506 (extract_typed_address): Update.
12507 (unsigned_pointer_to_address): Update.
12508 * values.c (unpack_long): Update.
12509 (unpack_double): Update.
12510 (unpack_pointer): Update.
12511 (unpack_field_as_long): Update.
12512 * d10v-tdep.c (d10v_pointer_to_address): Update.
12513 * avr-tdep.c (avr_pointer_to_address): Update.
12514 * scm-lang.c (scm_unpack): Update.
12515 * findvar.c (signed_pointer_to_address): Update.
12516
12517 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12518
12519 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12520 since it is in i386-tdep.c.
12521
12522 2003-01-06 J. Brobecker <brobecker@gnat.com>
12523
12524 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12525 failure introduced in the previous change.
12526
12527 2003-01-05 Michael Chastain <mec@shout.net>
12528
12529 * README: Remove references to deleted remote-*.c files:
12530 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12531 remote-nrom.c, remote-os9k.c, remote-udi.c.
12532
12533 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12534
12535 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12536 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12537 i386_get_longjmp_target.
12538
12539 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12540
12541 * arm-tdep.c (prologue_cache): Change to a pointer.
12542 (_initialize_arm_tdep): Allocate prologue_cache.
12543 (check_prologue_cache): Update.
12544 (save_prologue_cache): Update.
12545 (arm_gdbarch_init): Update.
12546
12547 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12548
12549 * stabsread.c (update_method_name_from_physname): Call complaint()
12550 instead of error.
12551
12552 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12553
12554 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12555 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12556 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12557
12558 * blockframe.c: Include "gdbcmd.h" and "command.h".
12559 (backtrace_below_main): New variable.
12560 (file_frame_chain_valid, func_frame_chain_valid)
12561 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12562 (generic_func_frame_chain_valid): Remove functions.
12563 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12564 (_initialize_blockframe): New function.
12565 * Makefile.in (blockframe.o): Update dependencies.
12566 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12567 comment. Call frame_chain_valid ().
12568 * frame.h: Remove old prototypes. Add prototype for
12569 frame_chain_valid and update comments to match.
12570 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12571 Remove old comment.
12572 * gdbarch.h: Regenerated.
12573 * gdbarch.c: Regenerated.
12574
12575 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12576 set_gdbarch_frame_chain_valid.
12577 * avr-tdep.c (avr_gdbarch_init): Likewise.
12578 * cris-tdep.c (cris_gdbarch_init): Likewise.
12579 * frv-tdep.c (frv_gdbarch_init): Likewise.
12580 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12581 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12582 (i386_nw_init_abi): Likewise.
12583 (i386_gdbarch_init): Likewise.
12584 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12585 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12586 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12587 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12588 * mips-tdep.c (mips_gdbarch_init): Likewise.
12589 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12590 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12591 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12592 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12593 * s390-tdep.c (s390_gdbarch_init): Likewise.
12594 * sh-tdep.c (sh_gdbarch_init): Likewise.
12595 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12596 * v850-tdep.c (v850_gdbarch_init): Likewise.
12597 * vax-tdep.c (vax_gdbarch_init): Likewise.
12598 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12599
12600 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12601 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12602 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12603 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12604 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12605 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12606 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12607 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12608
12609 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12610
12611 * Makefile.in (acconfig_h): Remove incorrect macro.
12612 (config_h): Define.
12613 (osabi.o): Update dependencies.
12614 * configure.tgt: Set gdb_osabi based on target triplet.
12615 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12616 * configure: Regenerated.
12617 * config.in: Regenerated.
12618 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12619 (GDB_OSABI_DEFAULT): Define if not already defined.
12620 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12621 (set_osabi_string): New variables.
12622 (gdbarch_register_osabi): Add new OS ABI to
12623 gdb_osabi_available_names.
12624 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12625 (set_osabi, show_osabi): New functions.
12626 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12627
12628 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12629
12630 * arch-utils.c (gdbarch_info_init): Set osabi to
12631 GDB_OSABI_UNINITIALIZED.
12632 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12633 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12634 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12635 * gdbarch.c: Regenerated.
12636 * gdbarch.h: Regenerated.
12637 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12638 there's no BFD.
12639 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12640 * osabi.h (enum gdb_osabi): Move to defs.h.
12641 (gdbarch_init_osabi): Update prototype.
12642 * defs.h (enum gdb_osabi): Moved here.
12643 * Makefile.in: Update dependencies.
12644
12645 * alpha-tdep.h: Don't include "osabi.h".
12646 (struct gdbarch_tdep): Remove osabi member.
12647 * alpha-tdep.c: Include "osabi.h".
12648 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12649 iterate over arches. Update call to gdbarch_init_osabi.
12650 (alpha_dump_tdep): Don't dump osabi.
12651 * alpha-linux-tdep.c: Include "osabi.h".
12652 * alpha-osf1-tdep.c: Include "osabi.h".
12653 * alphafbsd-tdep.c: Include "osabi.h".
12654 * alphanbsd-tdep.c: Include "osabi.h".
12655
12656 * arm-tdep.h: Don't include "osabi.h".
12657 (struct gdbarch_tdep): Remove osabi member.
12658 * arm-tdep.c: Include "osabi.h".
12659 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12660 iterate over arches. Update call to gdbarch_init_osabi.
12661 (arm_dump_tdep): Don't dump osabi.
12662 * arm-linux-tdep.c: Include "osabi.h".
12663 * armnbsd-tdep.c: Include "osabi.h".
12664
12665 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12666 Update call to gdbarch_init_osabi.
12667
12668 * i386-tdep.h: Don't include "osabi.h".
12669 (struct gdbarch_tdep): Remove osabi member.
12670 * i386-tdep.c: Include "osabi.h".
12671 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12672 iterate over arches. Update call to gdbarch_init_osabi.
12673 (i386_dump_tdep): Don't dump osabi.
12674 * i386-linux-tdep.c: Include "osabi.h".
12675 * i386-sol2-tdep.c: Include "osabi.h".
12676 * i386bsd-tdep.c: Include "osabi.h".
12677 * i386gnu-tdep.c: Include "osabi.h".
12678 * i386ly-tdep.c: Include "osabi.h".
12679 * i386nbsd-tdep.c: Include "osabi.h".
12680 * i386obsd-tdep.c: Include "osabi.h".
12681
12682 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12683 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12684 check osabi when iterating over arches. Update call to
12685 gdbarch_init_osabi.
12686 (mips_dump_tdep): Don't dump osabi.
12687
12688 * ns32k-tdep.h: Don't include "osabi.h".
12689 (struct gdbarch_tdep): Remove.
12690 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12691 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12692 allocate tdep. Update call to gdbarch_init_osabi.
12693 (ns32k_dump_tdep): Remove.
12694 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12695 * ns32knbsd-tdep.c: Include "osabi.h".
12696
12697 * ppc-tdep.h: Don't include "osabi.h".
12698 (struct gdbarch_tdep): Remove osabi member.
12699 * rs6000-tdep.c: Include "osabi.h".
12700 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12701 osabi when iterating over arches. Update call to
12702 gdbarch_init_osabi.
12703 (rs6000_dump_tdep): Don't dump osabi.
12704 * ppc-linux-tdep.c: Include "osabi.h".
12705 * ppcnbsd-tdep.c: Include "osabi.h".
12706
12707 * sh-tdep.h: Don't include "osabi.h".
12708 (struct gdbarch_tdep): Remove osabi member.
12709 * sh-tdep.c: Include "osabi.h".
12710 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12711 iterate over arches. Update call to gdbarch_init_osabi.
12712 (sh_dump_tdep): Don't dump osabi.
12713 * shnbsd-tdep.c: Include "osabi.h".
12714
12715 * sparc-tdep.c: Include "osabi.h".
12716 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12717 iterate over arches. Update call to gdbarch_init_osabi.
12718 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12719 tdep structure.
12720
12721 * vax-tdep.h: Don't include "osabi.h".
12722 (struct gdbarch_tdep): Remove.
12723 * vax-tdep.c: Include "osabi.h".
12724 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12725 iterate over arches. Don't allocate tdep. Update call
12726 to gdbarch_init_osabi.
12727 (vax_dump_tdep): Remove.
12728 (_initialize_vax_tdep): Update call to gdbarch_register.
12729
12730 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12731
12732 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12733 entirely.
12734 (breakpoint_re_set_one): Don't fetch the value for a disabled
12735 watchpoint.
12736
12737 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12738
12739 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12740 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12741 (COERCE_FLOAT_TO_DOUBLE): Remove.
12742 * gdbarch.c: Regenerate.
12743 * gdbarch.h: Regenerate.
12744 * Makefile.in: Remove value_h from gdbarch_h.
12745 * valops.c (coerce_float_to_double): New variable.
12746 (default_coerce_float_to_double): Remove.
12747 (standard_coerce_float_to_double): Remove.
12748 (value_arg_coerce): Use coerce_float_to_double.
12749 (_initialize_valops): Add "set coerce-float-to-double".
12750 * value.h (default_coerce_float_to_double): Remove prototype.
12751 (standard_coerce_float_to_double): Remove prototype.
12752
12753 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12754 prototyped.
12755 * mdebugread.c (parse_symbol): Likewise.
12756 * stabsread.c (define_symbol): Mark all functions as prototyped.
12757
12758 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12759 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12760 set_gdbarch_coerce_float_to_double.
12761 * arm-tdep.c (arm_gdbarch_init): Likewise.
12762 * frv-tdep.c (frv_gdbarch_init): Likewise.
12763 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12764 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12765 * mips-tdep.c (mips_gdbarch_init): Likewise.
12766 (mips_coerce_float_to_double): Remove.
12767 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12768 (rs6000_coerce_float_to_double): Remove.
12769 * s390-tdep.c (s390_gdbarch_init): Likewise.
12770 * sh-tdep.c (sh_gdbarch_init): Likewise.
12771 (sh_coerce_float_to_double): Remove.
12772 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12773 (sparc_coerce_float_to_double): Remove.
12774 * v850-tdep.c (v850_gdbarch_init): Likewise.
12775 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12776 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12777 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12778 (hppa_coerce_float_to_double): Remove prototype.
12779 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12780
12781 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12782
12783 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12784
12785 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12786
12787 Suggested by Stewart Brown <sb24@avaya.com>:
12788 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12789 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12790 (c_type_print_varspec_suffix): Likewise.
12791
12792 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12793
12794 * configure.in: Don't set and AC_SUBST SUBDIRS.
12795 * configure: Regenerated.
12796
12797 * configure.in: Remove code dealing with shared libraries.
12798 * Makefile.in: Remove HLDFLAGS and HLDENV.
12799 * configure: Regenerated.
12800
12801 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12802
12803 * frame.c (deprecated_frame_xmalloc): New function.
12804 (deprecated_set_frame_saved_regs_hack): New function.
12805 (deprecated_set_frame_extra_info_hack): New function.
12806 * frame.h (deprecated_frame_xmalloc): Declare.
12807 (deprecated_set_frame_saved_regs_hack): Declare.
12808 (deprecated_set_frame_extra_info_hack): Declare.
12809
12810 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12811
12812 * configure.in: Move code that provides the --enable-gdbtk option
12813 right after the code that handles the --enable-tui option, and
12814 polish it somewhat.
12815 * configure: Regenerated.
12816
12817 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12818 AC_CHECK_FUNCS and remove the old check for pread64.
12819 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12820 * acconfig.h (_GNU_SOURCE): Add.
12821 (HAVE_PREAD64): Remove.
12822 * configure, aclocal.m4, config.in: Regenerated.
12823
12824 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12825
12826 * alpha-tdep.c: Use get_frame_saved_regs.
12827 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12828 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12829 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12830 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12831 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12832
12833 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12834
12835 * configure.in: Remove all use of the SUBDIRS variable; add
12836 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12837 code providing the --enable-multi-ice option, and move it right in
12838 front of the code that checks whether gdbserver is supported.
12839 Polish that too.
12840 * configure: Regenerated.
12841 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12842 @SUBDIRS@.
12843
12844 2003-01-03 Andrew Cagney <cagney@redhat.com>
12845
12846 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12847 * avr-tdep.c, cris-tdep.c: Ditto.
12848 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12849 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12850
12851 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12852
12853 * configure.in: Remove --enable-netrom option.
12854 * configure: Regenerated.
12855
12856 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12857
12858 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12859 declaration for `struct re_pattern_buffer' instead.
12860 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12861
12862 2003-01-03 J. Brobecker <brobecker@gnat.com>
12863
12864 * mdebugread.c (parse_symbol): Count until the stEnd matching
12865 the structure name.
12866
12867 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12868
12869 * configure.in: Remove --with-cpu option.
12870 subscripts. Remove evil changequotes here.
12871 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12872 * config.in, configure: Regenerated.
12873
12874 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12875 * configure.in: Cleanup section that sources GDB and BFD configure
12876 subscripts. Remove evil changequotes here.
12877 * config.in, configure: Regenerated.
12878
12879 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12880
12881 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12882 frame accessor methods.
12883 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12884 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12885 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12886 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12887 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12888 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12889 * z8k-tdep.c: Ditto.
12890
12891 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12892
12893 * configure.in: Remove UI_OUT configuration code.
12894 * ada-lang.c: Update assuming UI_OUT is always true.
12895 * Makefile.in (UIOUT_CFLAGS): Remove.
12896 * configure: Regenerated.
12897 * TODO: Remove blurb about elimination of -DUI_OUT.
12898
12899 * configure.in: Move code that provides the --enable-gdbcli,
12900 --enable-gdbmi options right before the code that handles the
12901 --enable-tui option. Polish a bit.
12902 * configure: Regenerated.
12903
12904 * configure.in: Rewrite check for GNU regex and the
12905 --without-included regex option, and move it into the "Checks for
12906 library functions" section. This makes us use the system regex
12907 again by default on systems with version 2 of the GNU C library.
12908 This was apparently broken.
12909 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12910 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12911 * config.in, configure: Regenerated.
12912
12913 * configure.in: Move code that provides the --enable-tui option
12914 before the "Checks for libraries" section. Polish the code
12915 somewhat and set need_curses to yes if we build the TUI. Rewrite
12916 code that looks for a library providing termcap functionality to
12917 match more closely what's done in the Readline library, and move
12918 it into to the "Checks for libraries" section.
12919 * configure: Regenerated.
12920 * Makefile.in (TERMCAP): Remove variable.
12921 * config/i386/go32.mh (TERMCAP): Remove variable.
12922
12923 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12924
12925 * MAINTAINERS: Mention gdb_mbuild.sh.
12926 * gdb_mbuild.sh: Rewrite.
12927
12928 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12929
12930 * configure.in: Fix typo in last change.
12931 * config.in, configure: Regenerated.
12932
12933 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12934
12935 * valarith.c (value_binop): Delete obsolete code and comments.
12936 * configure.host: Ditto.
12937 * buildsym.h (make_blockvector): Ditto.
12938 * buildsym.c (make_blockvector): Ditto.
12939 * defs.h (enum language): Ditto.
12940 (chill_demangle): Ditto.
12941 * elfread.c (elf_symtab_read): Ditto.
12942 * dwarfread.c (CHILL_PRODUCER): Ditto.
12943 (set_cu_language): Ditto.
12944 (handle_producer): Ditto.
12945 * expprint.c (print_subexp): Ditto.
12946 * gdbtypes.c (chill_varying_type): Ditto.
12947 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12948 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12949 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12950 (chill_varying_type): Ditto.
12951 * language.h (_LANG_chill): Ditto.
12952 * language.c (binop_result_type, integral_type): Ditto.
12953 (character_type, string_type, structured_type): Ditto.
12954 (lang_bool_type, binop_type_check): Ditto.
12955 * stabsread.h (os9k_stabs): Ditto.
12956 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12957 (define_symbol, read_type, read_struct_fields): Ditto.
12958 (read_array_type, read_enum_type, read_huge_number): Ditto.
12959 (read_range_type, start_stabs): Ditto.
12960 * symfile.c (init_filename_language_table): Ditto.
12961 (add_psymbol_with_dem_name_to_list): Ditto.
12962 * symtab.c (symbol_init_language_specific): Ditto.
12963 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12964 * symtab.h (struct general_symbol_info): Ditto.
12965 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12966 * typeprint.c (typedef_print): Ditto.
12967 * utils.c (fprintf_symbol_filtered): Ditto.
12968 * valops.c (value_cast, search_struct_field, value_slice): Delete
12969 obsolete code.
12970 (varying_to_slice): Delete function.
12971 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12972 (varying_to_slice): Delete declaration.
12973 * MAINTAINERS: Update.
12974
12975 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12976
12977 * configure.in: Reorganize "Checks for library functions section"
12978 a bit. Remove check for `btowc' and `isascii' functions.
12979 * configure: Regenerated.
12980
12981 * acconfig.h (_MSE_INT_H): Remove.
12982 * configure.in: Create "Checks for header files" section, and move
12983 appropriate tests there. Don't check for objlist.h, wchar.h,
12984 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12985 misdetection fix. Also add "Checks for types", "Checks for
12986 compiler characteristics" and "Checks for library functions"
12987 sections.
12988 * config.in, configure: Regenerated.
12989
12990 * configure.in: Create "Checks for programs" section, and move
12991 appropriate tests there.
12992
12993 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12994
12995 * configure.in: Create "Checks for libraries" section, and move
12996 appropriate tests there. Cleanup check for wctype in libw. Use
12997 AC_SEARCH_LIBS to see whether we need libsocket.
12998 * configure: Regenerated.
12999
13000 For older changes see ChangeLog-2002
13001 \f
13002 Local Variables:
13003 mode: change-log
13004 left-margin: 8
13005 fill-column: 74
13006 version-control: never
13007 End:
This page took 0.303104 seconds and 4 git commands to generate.