2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
221c12ff
AC
12003-10-09 Andrew Cagney <cagney@redhat.com>
2
3 * ppc-tdep.h (struct type): Declare opaque.
4 * x86-64-tdep.h (struct regcache): Declare opaque.
5 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
6 coding style.
7
ef5200c1
AC
82003-10-09 Andrew Cagney <cagney@redhat.com>
9
10 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
11 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
12 (SOFTWARE_SINGLE_STEP_P): Ditto.
13 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
14 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
15 (SOFTWARE_SINGLE_STEP_P): Ditto.
16 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
17 software_single_step to rs6000_software_single_step.
18
9644bbdd
AC
192003-10-09 Andrew Cagney <cagney@redhat.com>
20
21 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
22
db72fa6b
MS
232003-10-09 Michael Snyder <msnyder@redhat.com>
24
f3efb16c
MS
25 * frame.h: Fix typo in comment.
26 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
27 * d10v-tdep.c: Random whitespace/comment tweaks.
28
9a5cef92
EZ
292003-10-09 Elena Zannoni <ezannoni@redhat.com>
30
31 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 32 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92
EZ
33 on stack.
34
35 Based on input by Stephen Clarke (stephen.clarke@superh.com):
36 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
37 in detail.
38
0f317a0c
DJ
392003-10-09 Daniel Jacobowitz <drow@mvista.com>
40
41 * remote-mips.c (mips_initialize): Remove unneeded call to
42 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
43
bbab2f46
DJ
442003-10-09 Daniel Jacobowitz <drow@mvista.com>
45
46 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
47 a memory pointer.
48
550950b8
JJ
492003-10-08 Jeff Johnston <jjohnstn@redhat.com>
50
51 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
52 for any lwp we resume.
53 (running_callback): Add lwps that have pending status events
54 against them to be considered running.
55
15c69bc7
KI
562003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
57
58 * m32r-tdep.c : Include "dis-asm.h".
59 * Makefile.in (m32r-tdep.o): Update dependencies.
60
51065942
JB
612003-10-06 J. Brobecker <brobecker@gnat.com>
62
63 * completer.h (get_gdb_completer_word_break_characters): Delete.
64 * completer.c: include language.h.
65 (gdb_completer_word_break_characters): Delete.
66 (get_gdb_completer_word_break_characters): Delete.
67 (location_completer): Use the word break characters of the current
68 language.
69 (complete_line): Likewise.
70 (line_completion_function): Likewise.
71 (skip_quoted_chars): Likewise.
72 * Makefile.in (completer.o): Add dependency on language.h.
73 * top.c (init_main): Set the readline word break characters
74 to GDB's default word break characters.
75
6084f43a
JB
762003-10-06 J. Brobecker <brobecker@gnat.com>
77
78 * language.h (language_defn): new field, la_word_break_characters.
79 * language.c (unknown_language_defn): Set new field to
80 default_word_break_characters.
81 (auto_language_defn): Likewise.
82 (local_language_defn): Likewise.
83 * ada-lang.c (ada_language_defn): Likewise.
84 * c-lang.c (c_language_defn): Likewise.
85 (cplus_language_defn): Likewise.
86 (asm_language_defn): Likewise.
87 (minimal_language_defn): Likewise.
88 * f-lang.c (f_language_defn): Likewise.
89 * jv-lang.c (java_language_defn): Likewise.
90 * m2-lang.c (m2_language_defn): Likewise.
91 * objc-lang.c (objc_language_defn): Likewise.
92 * p-lang.c (pascal_language_defn): Likewise.
93 * scm-lang.c (scm_language_defn): Likewise.
94
944fcfab
AC
952003-10-06 Andrew Cagney <cagney@redhat.com>
96
97 * ppc-sysv-tdep.c: Re-indent.
98
9f0a5303
JB
992003-10-06 J. Brobecker <brobecker@gnat.com>
100
101 * language.h (default_word_break_characters): Add prototype.
102 * language.c (default_word_break_characters): New function.
103
7270b6ed
AS
1042003-10-06 Andreas Schwab <schwab@suse.de>
105
106 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
107 with %eax.
108
a5d61f66
AC
1092003-10-06 Andrew Cagney <cagney@redhat.com>
110
111 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
112 "h8500-tdep.c".
113 (z8k-tdep.o): Delete custom build rule.
114
28a86f5c
AC
1152003-10-06 Andrew Cagney <cagney@redhat.com>
116
1bfd8a83
AC
117 * Makefile.in: Update all dependencies.
118
17144ef8
AC
119 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
120 No longer list PA as as obsolete candidate. List m32r as
121 broken instead of obsolete.
122
a5679ae5
AC
123 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
124 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
125 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
126 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
127 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
128 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
129 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
130 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
131 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
132 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
133 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
134 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
135 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
136 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
137 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
138 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
139 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
140 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
141 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
142 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
143 * config/z8k/z8k.mt: Ditto.
144
4a8269c0
AC
145 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
146 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
147 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
148 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
149 sparclite were removed.
150 * configure.host, configure.tgt: Remove corresponding tuples.
151
41989fcd
AC
152 * breakpoint.c, breakpoint.h: Remove obsolete code.
153 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
154 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
155 * stabsread.h, xcoffread.c: Ditto.
156
28a86f5c
AC
157 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
158 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
159 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
160 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
161
4efdaa0d
DL
1622003-10-06 David Lecomber <dsl@sources.redhat.com>
163
164 * f-valprint.c: Reformatting
165
ae53de43
MK
1662003-10-06 Mark Kettenis <kettenis@gnu.org>
167
a8bb57e7
MK
168 * x86-64-tdep.c: Remove duplicate comment.
169
ae53de43
MK
170 * x86-64-tdep.c (x86_64_store_return_value): Don't use
171 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
172 names for return values. This fixes a bug since we looked at %rbx
173 instead of %rdx.
174
473f17b0
MK
1752003-10-05 Mark Kettenis <kettenis@gnu.org>
176
2c261fae
MK
177 * x86-64-tdep.c: Include "regset.h".
178
473f17b0
MK
179 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
180 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
181 sizeof_fpregset.
182 * i386-tdep.c: Include "regset.h".
183 (i386_supply_gregset): New function.
184 (i386_supply_fpregset): New function.
185 (i386_gdbarch_init): Initialze register set-related members of
186 TDEP.
187 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
188 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
189
afd48b75
AC
1902003-10-03 Andrew Cagney <cagney@redhat.com>
191
192 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
193 set extract_return_value, store_return_value and
194 use_struct_convention to ppc64_sysv_abi_extract_return_value,
195 ppc64_sysv_abi_store_return_value and
196 ppc64_sysv_abi_use_struct_convention.
197 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
198 (ppc64_sysv_abi_store_return_value): Declare.
199 (ppc64_sysv_abi_use_struct_convention): Declare.
200 * ppc-sysv-tdep.c (enum return_value_convention): Define.
201 (ppc64_sysv_abi_extract_return_value): New function.
202 (ppc64_sysv_abi_store_return_value): New function.
203 (ppc64_sysv_abi_use_struct_convention): New function.
204 (ppc64_sysv_abi_return_value): New function.
205
9b540880
AC
2062003-10-03 Andrew Cagney <cagney@redhat.com>
207
208 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
209 convert a descriptor to a function when it's in the ".opd"
210 section.
211
8748518b
CV
2122003-10-03 Corinna Vinschen <vinschen@redhat.com>
213
214 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
215 reg_size to keep GCC silent.
216
0fd85043
CV
2172003-10-03 Corinna Vinschen <vinschen@redhat.com>
218
219 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
220 base for DW_EH_PE_textrel encodings.
221 (read_encoded_value): Add a DW_EH_PE_textrel case.
222 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
223 section.
224
37b517aa
MK
2252003-10-03 Mark Kettenis <kettenis@gnu.org>
226
227 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
228
12c266ea
AC
2292003-10-02 Andrew Cagney <cagney@redhat.com>
230
231 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
232 REGISTER_RAW_SIZE.
233 * gdbarch.h, gdbarch.c: Re-generate.
234 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
235 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
236 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
237 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
238 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
239 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
240 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
241 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
242 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
243 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
244 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
245 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
246 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
247 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
248 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
249 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
250
78ba4af6
JB
2512003-10-02 Jim Blandy <jimb@redhat.com>
252
253 * dwarf2read.c (struct die_info): Doc fix.
254
617daa0e
CV
2552003-10-02 Corinna Vinschen <vinschen@redhat.com>
256
257 * sh-tdep.c: Running thru gdb_indent.sh.
258
e5e33cd9
CV
2592003-10-02 Corinna Vinschen <vinschen@redhat.com>
260
261 * sh-tdep.c (sh_justify_value_in_reg): New function.
262 (sh_stack_allocsize): Ditto.
263 (flt_argreg_array): New array used for floating point argument
264 passing.
265 (sh_init_flt_argreg): New function.
266 (sh_next_flt_argreg): Ditto.
267 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
268 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
269 Fix argument passing strategy.
270 (sh_push_dummy_call_nofpu): Ditto.
271
5fe830e4
AC
2722003-10-01 Andrew Cagney <cagney@redhat.com>
273
274 * value.h (register_value_being_returned): Declare. Replace
275 "value_being_returned".
276 * infcall.c (call_function_by_hand): Use
277 register_value_being_returned.
278 * infcmd.c (print_return_value): Call
279 "register_value_being_returned", handle struct return locally.
280 * values.c (register_value_being_returned): New function. Replace
281 "value_being_returned".
282
2832003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
284
285 * linux-proc.c (linux_do_registers): New function.
286 (linux_make_note_section): Use linux_do_registers in case of
287 single threaded inferior programs.
288
64f395bf
AC
2892003-10-01 Andrew Cagney <cagney@redhat.com>
290
291 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
292 use STRUCT_ADDR. When not using "struct return convention", pass
293 "0" to "value_being_returned". Add FIXMEs.
294 * infcmd.c (print_return_value): Pass an explicit 0/1 to
295 value_being_returned. Add comments.
296 * values.c (value_being_returned): Add fixme.
297 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
298 (hppa_value_returned_from_stack): Add FIXME.
299
639d11d3
DC
3002003-09-30 David Carlton <carlton@kealia.com>
301
302 * dwarf2read.c (struct die_info): Add 'parent' field; replace
303 'has_children' and 'next' by 'child' and 'sibling'.
304 (read_comp_unit): Rework algorithm, breaking body into
305 read_die_and_children and read_die_and_siblings.
306 (read_die_and_children, read_die_and_siblings): New.
307 (read_full_die): Add 'has_children' argument; set it instead of
308 the die's 'has_children' field. Minor formatting cleanup.
309 (free_die_list): Use die->child and die->sibling instead of
310 die->next.
311 (dump_die_list): Ditto.
312 (sibling_die): Use die->sibling.
313 (psymtab_to_symtab_1): Use die's 'child' field in place of its
314 'has_children' and 'next' fields.
315 (process_die, read_file_scope, read_func_scope)
316 (read_lexical_block_scope, read_structure_scope)
317 (read_enumeration, read_array_type, read_common_block)
318 (read_namespace, read_subroutine_type, dump_die): Ditto.
319
5bffac25
AC
3202003-09-30 Andrew Cagney <cagney@redhat.com>
321
322 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
323 to 224, not 220.
324
f30992d4
AC
3252003-09-30 Andrew Cagney <cagney@redhat.com>
326
327 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
328 REGISTER_VIRTUAL_SIZE.
329 * gdbarch.h, gdbarch.c: Regenerate.
330 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
331 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
332 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
333
2e092625
AC
3342003-09-29 Andrew Cagney <cagney@redhat.com>
335
336 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
337 DEPRECATED_REGISTER_VIRTUAL_TYPE.
338 * gdbarch.h, gdbarch.c: Regenerate.
339 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
340 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
341
342 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
343 * remote-vxmips.c (vx_read_register): Ditto.
344 * remote-vx68.c (vx_read_register): Ditto.
345 * gnu-nat.c (inf_validate_procs): Ditto.
346
7a5dd6ee
JB
3472003-09-29 J. Brobecker <brobecker@gnat.com>
348
349 * infcall.c (call_function_by_hand): Fix build failure
350 introduced in the previous change to this file.
351
1fe43d45
AC
3522003-09-29 Andrew Cagney <cagney@redhat.com>
353
354 * NEWS: Mention Objective-C.
355
e28a332c
JG
3562003-09-29 Jerome Guitton <guitton@act-europe.fr>
357
358 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
359 test if the register has been saved on the stack.
360 (arm_scan_prologue_cache): When analysing the instruction
361 "str lr, [sp, #-4]", save the address where lr has been stored.
362
9ff63c35
AC
3632003-09-28 Andrew Cagney <cagney@redhat.com>
364
7f5f525d
AC
365 * frame.c (frame_read_unsigned_register): Delete function.
366 * frame.h (frame_read_unsigned_register): Delete declaration.
367 * sparc-tdep.c (sparc_init_extra_frame_info): Use
368 get_frame_register_unsigned.
369 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
370 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
371 * d10v-tdep.c (d10v_print_registers_info): Ditto.
372
373 * frame.h (frame_read_register): Delete declaration.
374 * frame.c (frame_read_register): Delete function.
375 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
376 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
377 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
378 * mips-tdep.c (mips_register_to_value): Ditto.
379 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
380 * d10v-tdep.c (d10v_print_registers_info): Ditto.
381
382 * frame.c (frame_read_signed_register): Delete function.
383 (frame_read_unsigned_register): Update comments.
384 * frame.h (frame_read_signed_register): Delete declaration.
385 * h8300-tdep.c (h8300_print_register): Use
386 get_frame_register_signed.
387 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
388
9ff63c35
AC
389 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
390 Rename VALUE_RETURNED_FROM_STACK.
391 * infcmd.c (print_return_value): Update.
392 * infcall.c (call_function_by_hand): Update.
393
41d041d6
MK
3942003-09-28 Mark Kettenis <kettenis@gnu.org>
395
396 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
397 regcache argument and reverse the order of the other two
398 arguments. Remove local regcache variable. Determine
399 architecture from REGCACHE. Update comments.
400 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
401 reverse the order of the other two arguments. Remove local
402 regcache variable. Determine architecture from REGCACHE. Update
403 comments.
404 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
405 prototypes. Update comments.
406 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
407 comment.
408 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
409 Update.
410 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
411 * i386-interix-nat.c (supply_fpregset): Update.
412 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
413 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
414 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
415 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
416 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
417 Update.
418 * i386obsd-tdep.c (fetch_core_registers): Update.
419 * i386v4-nat.c (supply_fpregset): Update.
420 * x86-64-linux-nat.c (supply_fpregset): Update.
421 * x86-64-linux-tdep.c (fetch_core_registers): Update.
422
1cb97e17
MK
4232003-09-27 Mark Kettenis <kettenis@gnu.org>
424
5716833c
MK
425 * i386-tdep.h: Put opaque declarations in alphabetical
426 order. Remove spurious whitespace.
427 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
428 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
429 * i386-tdep.c (MM0_REGNUM): Remove define.
430 (i386_mmx_regnum_p): Add gdbarch argument.
431 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
432 Rewrite using new macro definitions for FPU/SSE registers.
433 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
434 definitions from i387-tdep.h.
435 (i386_register_name): Update.
436 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
437 new macro definitions for FPU/SSE registers.
438 (i386_extract_return_value): Determine whether floating-point
439 registers are present by examining REGCACHE's architecture.
440 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
441 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
442 FPU/SSE registers.
443 (i386_register_type): Update.
444 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
445 definitions for FPU registers. Use REGCACHE's architecture to
446 determine the appropriate register numbers.
447 (i386_pseudo_register_read, i386_pseudo_register_write,
448 i386_register_reggroup_p): Update.
449 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
450 TDEP->mm0_regnum.
451 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
452 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
453 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
454 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
455 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
456 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
457 *' to `void *'.
458 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
459 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
460 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
461 definitions for FPU/SSE registers.
462 (FXSAVE_MXCSR_ADDR): New define.
463 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
464 TDEP->mm0_regnum.
465 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
466 (I387_ST0_REGNUM): Define.
467
41d35cb0
MK
468 * regcache.h (get_regcache_arch): New prototype.
469 * regcache.c (get_regcache_arch): New function.
470
54e74f72
MK
471 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
472 whitespace.
473
1cb97e17
MK
474 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
475 Initialize using ARRAY_SIZE.
476
0968aa8c
AC
4772003-09-27 Andrew Cagney <cagney@redhat.com>
478
479 * arch-utils.c (deprecated_init_frame_pc_default): Rename
480 "init_frame_pc_default".
481 * arch-utils.h (deprecated_init_frame_pc_default): Update.
482 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
483 * vax-tdep.c (vax_gdbarch_init): Update.
484 * v850-tdep.c (v850_gdbarch_init): Update.
485 * sh64-tdep.c (sh64_gdbarch_init): Update.
486 * s390-tdep.c (s390_gdbarch_init): Update.
487 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
488 * mcore-tdep.c (mcore_gdbarch_init): Update.
489 * h8300-tdep.c (h8300_gdbarch_init): Update.
490 * cris-tdep.c (cris_gdbarch_init): Update.
491 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
492
54c84734
MK
4932003-09-26 Mark Kettenis <kettenis@gnu.org>
494
495 * regset.h: New file.
496 * Makefile.in (regset_h): Add.
497
1b1d3794
AC
4982003-09-25 Andrew Cagney <cagney@redhat.com>
499
500 * frame.h (deprecated_frame_saved_regs): Rename
501 get_frame_saved_regs.
502 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
503 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
504 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
505 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
506 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
507
e6beb428
AC
5082003-09-25 Andrew Cagney <cagney@redhat.com>
509
510 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
511 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
512 and Java.
513 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
514 arm*-*-* do not use the new frame code.
515
710122da
DC
5162003-09-25 David Carlton <carlton@kealia.com>
517
518 * c-exp.y: Remove 'register' declarations.
519 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
520
79c2c32d
DC
5212003-09-25 David Carlton <carlton@kealia.com>
522
523 * c-exp.y: Include cp-support.h. Add qualified_type.
524 (yylex): Delete nested type hack; add comments.
525 * cp-namespace.c (cp_lookup_nested_type): New function.
526 * cp-support.h: Declare cp_lookup_nested_type.
527 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
528 instead of value_struct_elt_for_reference.
529 * valops.c: Include cp-support.h.
530 (value_aggregate_elt): New function.
531 (value_namespace_elt): Ditto.
532 (value_struct_elt_for_reference): Make static.
533 * value.h: Delete declaration of value_struct_elt_for_reference;
534 add declaration for value_aggregate_elt.
535 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
536 (valops.o): Ditto.
537
898c62f5
DJ
5382003-09-25 Daniel Jacobowitz <drow@mvista.com>
539
540 * stack.c: Include "reggroups.h".
541 (frame_info): Only display registers in all_reggroup.
542 * Makefile.in (stack.o): Update dependencies.
543
28cd8767
JG
5442003-09-25 Jerome Guitton <guitton@act-europe.fr>
545
546 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
547 "add ip, sp #n" in the prologue.
548 (arm_scan_prologue): Ditto.
549
a4ab2b5d
JG
5502003-09-25 Jerome Guitton <guitton@act-europe.fr>
551
552 * MAINTAINERS (write after approval): Add myself.
553
3f244638
AS
5542003-09-25 Andreas Schwab <schwab@suse.de>
555
556 * m68k-tdep.c: Include "dwarf2-frame.h".
557 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
558 * Makefile.in (m68k-tdep.o): Update dependencies.
559
1c0159e0
CV
5602003-09-25 Corinna Vinschen <vinschen@redhat.com>
561
562 * sh-tdep.c (struct frame_extra_info): Remove.
563 (struct sh_frame_cache): New structure.
564 (GET_SOURCE_REG): New macro extracting source register of an opcode.
565 (GET_TARGET_REG): Ditto but target register.
566 (GET_PUSHED_REG): Remove.
567 (IS_MOV_ARG_TO_REG): New macro.
568 (IS_MOV_ARG_TO_IND_R14): New macro.
569 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
570 (IS_MOVW_PCREL_TO_REG): New macro.
571 (IS_MOVL_PCREL_TO_REG): New macro.
572 (IS_SUB_REG_FROM_SP): New macro.
573 (IS_ARG_MOV): Remove.
574 (IS_MOV_TO_R14): Remove.
575 (IS_RESTORE_FP): New macro.
576 (IS_RTS): New macro.
577 (IS_LDS): New macro.
578 (IS_MOV_FP_SP): New macro.
579 (IS_ADD_REG_TO_FP): New macro.
580 (IS_ADD_IMM_FP): New macro.
581 (sh_skip_prologue_hard_way): Remove.
582 (sh_saved_pc_after_call): Remove.
583 (sh_frame_chain): Remove.
584 (sh_find_callers_reg): Remove.
585 (sh_nofp_frame_init_saved_regs): Remove.
586 (sh_fp_frame_init_saved_regs): Remove.
587 (sh_init_extra_frame_info): Remove.
588 (sh_analyze_prologue): New function.
589 (sh_skip_prologue): Remove deprecated code. Rely on new function
590 sh_analyze_prologue when after_prologue fails.
591 (sh_frame_saved_pc): Remove.
592 (sh_alloc_frame_cache): New function.
593 (sh_frame_cache): Ditto.
594 (sh_frame_prev_register): Ditto.
595 (sh_frame_this_id): Ditto.
596 (sh_frame_unwind): New structure defining the heuristic frame
597 sniffer interface.
598 (sh_frame_sniffer): New function.
599 (sh_unwind_sp): Ditto.
600 (sh_unwind_pc): Ditto.
601 (sh_unwind_dummy_id): Ditto.
602 (sh_frame_base_address): Ditto.
603 (sh_frame_base): New structure defining new frame base code.
604 (sh_in_function_epilogue_p): New function.
605 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
606 code and to call all new code instead. Initialize dwarf2 and
607 heuristic frame sniffer.
608
5f9769d1
PH
6092003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
610
611 * parser-defs.h (struct exp_descriptor): New definition, containing
612 language-specific info for printing, prefixifying, dumping, and
613 evaluating expressions.
614 (exp_descriptor_standard): Declare new variable.
615 (print_subexp): Make global and declare here (from expprint.c).
616 (dump_subexp): Ditto.
617 (dump_subexp_body_standard): Declare.
618 (operator_length_standard): Declare.
619 (op_name_standard): Declare.
620 (print_subexp): Declare.
621 (print_subexp_standard): Declare.
622
623 * language.h (struct language_defn): Add la_exp_desc field to hold
624 pointer to table for language-specific operators.
625 Remove evaluate_exp field, which is now in struct exp_descriptor.
626
627 * parse.c (operator_length): Move most code to new
628 operator_length_standard function. Use language-specific information.
629 (operator_length_standard): New function taking most code from
630 operator_length.
631 (exp_descriptor_standard): New constant.
632
633 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
634 and OP_EXTENDED_LAST.
635
636 * expprint.c (print_subexp): Use language-specific print_subexp.
637 Make global; remove static declaration.
638 Move most code to print_subexp_standard.
639 (print_subexp_standard): New function, containing code formerly in
640 print_subexp.
641 (op_name): Add expression to argument signature.
642 Use langauge-specific op_name.
643 Move most code to op_name_standard.
644 (op_name_standard): New function, containing code formerly in op_name.
645 (dump_subexp): Use new version of op_name function.
646 Use language-specific dump_subexp_body, and move most existing code to
647 dump_subexp_body_standard.
648 (dump_raw_expression): Use new op_name interface.
649 (dump_subexp_body): Move most code to dump_subexp_body_standard.
650 (dump_subexp_body_standard): New function, containing code formerly
651 in dump_subexp_body.
652
653 * language.c (unknown_language): Add default la_exp_desc field and
654 remove evaluate_exp field.
655 (auto_language): Ditto.
656 (local_language): Ditto.
657 * f-lang.c (f_language_defn): Ditto.
658 * c-lang.c (c_language_defn): Ditto.
659 (cplus_language_defn): Ditto.
660 (asm_language_defn): Ditto.
661 (minimal_language_defn): Ditto.
662 * p-lang.c (pascal_language_defn): Ditto.
663 * m2-lang.c (m2_language_defn): Ditto.
664 * objc-lang.c (objc_language_defn): Ditto.
665
666 * jv-lang.c (exp_descriptor_java): New variable, containing
667 Java-specific expression evaluator.
668 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
669 field.
670 * scm-lang.c (exp_descriptor_scm): New variable, containing
671 Scheme-specific expression evaluator.
672 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
673 field.
674 * objc-lang.c (print_object_command): Take evaluate_exp from the
675 la_exp_desc field.
676
677 * Makefile.in (eval.o): Add dependency on parser-defs.h.
678
679 * eval.c: Include parser-defs.h for the full declaration of
680 la_exp_desc's type.
681 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
682
24daaebc
PH
6832003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
684
685 * parser-defs.h (operator_length): Declare.
686
687 * parse.c (length_of_subexp): Use operator_length to get operator
688 lengths and arities for operators.
689 Move most code to new operator_length function.
690 (operator_length): New function absorbing most code from
691 length_of_subexp.
692 (prefixify_subexp): Remove large case and use operator_length instead.
693 (parse_exp_1): Use renamings:
694 dump_prefix_expression => dump_raw_expression and
695 dump_postfix_expression => dump_prefix_expression.
696
697 * expression.h (dump_prefix_expression): Rename to ...
698 (dump_raw_expression): New name.
699 (dump_postfix_expression): Rename to ...
700 (dump_prefix_expression): New name.
701
702 * expprint.c (dump_subexp): Make global. Add comment.
703 Move most existing code to dump_subexp_body.
704 (dump_subexp_body): New function.
705 (dump_prefix_expression): Rename to dump_raw_expression.
706 Remove attempt to print the expression via print_expression: it can't
707 work before the expression is prefixified.
708 (dump_raw_expression): Renamed from dump_prefix_expression.
709 (dump_postfix_expression): Rename to dump_prefix_expression, since
710 that's what it does.
711 Remove 'note' parameter, since this routine must be used on
712 prefixified expression.
713 (dump_prefix_expression): Renamed from dump_postfix_expression.
714
8c2957c4
JB
7152003-09-22 Jim Blandy <jimb@redhat.com>
716
717 * dwarf2read.c (read_array_type): When building the type for an
718 array of unspecified length, make sure to choose the upper bound
719 so that the array's total length comes out to be zero --- that's
720 how we represent such arrays.
721
592e3010
MC
7222003-09-22 Michael Chastain <mec@shout.net>
723
724 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
725
365c70b1
JJ
7262003-09-22 Jeff Johnston <jjohnstn@redhat.com>
727
728 * top.c (quit_force): Fix indirect call to quit_target so
729 a struct qt_args pointer is passed.
730
5d6eb653
AC
7312003-09-22 Andrew Cagney <cagney@redhat.com>
732
733 * arch-utils.h (init_frame_pc_noop): Delete declaration.
734 * arch-utils.c (init_frame_pc_noop): Delete function.
735 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
736 "init_frame_pc".
737 * mips-tdep.c (mips_gdbarch_init): Ditto.
738 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
739 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
740 declaration.
741 (DEPRECATED_INIT_FRAME_PC): Delete macro.
742 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
743 declaration.
744 (DEPRECATED_INIT_FRAME_PC): Delete macro.
745
b222a67f
AG
7462003-09-22 Anthony Green <green@redhat.com>
747
748 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
749 declaration.
750
d5b5ac79
AC
7512003-09-20 Andrew Cagney <cagney@redhat.com>
752
deafb061
AC
753 * breakpoint.c: Eliminate ARGSUSED.
754 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
755 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
756 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
757 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
758 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
759 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
760 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
761 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
762 * wince.c, remote-vx.c: Ditto.
763
d5b5ac79
AC
764 * cli/cli-script.c: Remove "register" attributes.
765 * config/pa/tm-hppa.h: Ditto.
766 * cli/cli-decode.c: Ditto.
767 * cli/cli-cmds.c: Ditto.
768
c6316faa
AC
7692003-09-19 Andrew Cagney <cagney@redhat.com>
770
771 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
772 DEPRECATED_NPC_REGNUM.
773 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
774
f4f99b11
CF
7752003-09-19 Christopher Faylor <cgf@redhat.com>
776
777 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
778
1708f284
JB
7792003-09-19 Jim Blandy <jimb@redhat.com>
780
781 * macrotab.c (macro_include): Use the correct comparison to find
782 the appropriate place for this inclusion in the list.
783
b9fbf434
AC
7842003-09-19 Andrew Cagney <cagney@redhat.com>
785
786 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
787 (DEPRECATED_HPUX_TEXT_END): Define.
788 (deprecated_hpux_text_end): Declare.
789 (struct target_ops): Declare opaque.
790 * hppah-nat.c (text_end): Make static.
791 (deprecated_hpux_text_end): New function.
792 * exec.c (text_end): Delete global variable.
793 (NEED_TEXT_START_END): Do not define.
794 (exec_file_attach): Replace code computing "text_end" code with
795 call to DEPRECATED_HPUX_TEXT_END.
796
5b03f266
AC
7972003-09-19 Andrew Cagney <cagney@redhat.com>
798
799 * utils.c (align_up, align_down): New functions.
800 * defs.h (align_up, align_down): Declare.
801 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
802 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
803 and "align_down".
804 (round_up, round_down): Delete functions.
805 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
806 "align_down".
807 (ROUND_DOWN, ROUND_UP): Delete macros.
808 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
809 * h8300-tdep.c: Replace "round_up" and "round_down" with
810 "align_up" and "align_down".
811 (round_up, round_down): Delete macros.
812 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
813 "align_down".
814 (ROUND_UP, ROUND_DOWN): Delete macros.
815
51db5742
JB
8162003-09-18 J. Brobecker <brobecker@gnat.com>
817
818 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
819 hard-coded constant. Use the proper machine name instead.
820
77949794
AC
8212003-09-17 Andrew Cagney <cagney@redhat.com>
822
823 * sparc-tdep.c (legacy_register_name): Delete function.
824 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
825 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
826 * infcmd.c (gdb_register_name): Delete variable.
827 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
828 REGISTER_NAME and "tm.h".
829 * gdbarch.h, gdbarch.c: Regenerate.
830 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
831 REGISTER_NAMES in comments.
832 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
833 * m68klinux-nat.c (regmap): Ditto.
834
b55c33cc
JB
8352003-09-17 Jim Blandy <jimb@redhat.com>
836
837 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
838
957e27ac
AC
8392003-09-17 Andrew Cagney <cagney@redhat.com>
840
841 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
842 (ppcnbsd_init_abi): Set "use_struct_convention" to
843 "ppcnbsd_use_struct_convention".
844
192cb3d4
MK
8452003-09-17 Mark Kettenis <kettenis@gnu.org>
846
847 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
848 * gdbarch.h, gdbarch.c: Regenerate.
849 (stabs_argument_has_addr): New architecture method.
850 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
851 * arch-utils.c: Include "buildsym.h".
852 (default_stabs_argument_has_addr): New function.
853 * stabsread.c (define_symbol): Use stabs_argument_has_addr
854 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
855
efe59759
AC
8562003-09-17 Andrew Cagney <cagney@redhat.com>
857
858 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
859 * gdbarch.h, gdbarch.c: Regenerate.
860 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
861 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
862 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
863 * sparcnbsd-tdep.c: Update.
864
62700349
AC
8652003-09-17 Andrew Cagney <cagney@redhat.com>
866
867 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
868 * gdbarch.h, gdbarch.c: Regenerate.
869 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
870 * d10v-tdep.c, frame.c: Update.
871 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
872 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
873 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
874 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
875 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
876 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
877 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
878 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
879 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
880 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
881 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
882 * config/pa/nm-hppah.h: Update.
883
b9ff3018
AC
8842003-09-16 Andrew Cagney <cagney@redhat.com>
885
886 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
887 "use_struct_convention" to "ppc_linux_use_struct_convention".
888 (ppc_linux_use_struct_convention): New function.
889 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
890 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
891 "rs6000_use_struct_convention".
892 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
893 declaration.
894 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
895 Delete function.
896
aa1ee363
AC
8972003-09-16 Andrew Cagney <cagney@redhat.com>
898
899 * buildsym.c: Remove more occurances of "register".
900 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
901 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
902 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
903 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
904 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
905 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
906 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
907 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
908
f2ea0907
CV
9092003-09-16 Corinna Vinschen <vinschen@redhat.com>
910
911 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
912 numbers to enumeration values.
913 * sh-tdep.c: Accomodate above change.
914 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
915 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
916 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
917 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
918 (IS_FPUSH): Rename from IS_FMOV.
919 (sh_extract_struct_value_address): Remove useless comment.
920 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
921 instead of own local values.
922 (sh_dump_tdep): Remove.
923 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
924 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
925
1c704f11
AC
9262003-09-15 Andrew Cagney <cagney@redhat.com>
927
928 * doublest.c (convert_floatformat_to_doublest): No longer need to
929 cast "exp_bias" to an int. Reverts 2002-12-04 change.
930
ac79b88b
DJ
9312003-09-15 Daniel Jacobowitz <drow@mvista.com>
932
933 * values.c (unpack_double): Call floatformat_is_valid.
934
1c671366
MK
9352003-09-15 Mark Kettenis <kettenis@gnu.org>
936
de5227fb
MK
937 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
938 ps_strings into a long.
939
1c671366
MK
940 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
941 _initialize_am64fbsd_nat.
942
a604369a
KB
9432003-09-15 Kevin Buettner <kevinb@redhat.com>
944
945 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
946 associated with DW_AT_ranges attribute is out of bounds.
947
b3cacbee
DL
9482003-09-15 David Lecomber <dsl@sources.redhat.com>
949
950 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
951
d0f37bb2
MC
9522003-09-14 Michael Chastain <mec@shout.net>
953
954 * config/m68k/nm-apollo68v.h: Delete.
955 * config/m68k/xm-apollo68v.h: Delete.
956
69517000
AC
9572003-09-14 Andrew Cagney <cagney@redhat.com>
958
959 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
960 * dcache.c: Update copyrights and descriptions.
961 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
962
ef8b349d
AC
9632003-09-14 Andrew Cagney <cagney@redhat.com>
964
965 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
966 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
967
52f0bd74
AC
9682003-09-14 Andrew Cagney <cagney@redhat.com>
969
970 * alpha-nat.c: Remove some occurances of "register".
971 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
972 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
973 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
974 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
975 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
976 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
977 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
978 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
979 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
980 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
981 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
982 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
983 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
984 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
985 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
986 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
987 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
988 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
989 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
990 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
991 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
992 * values.c, vax-tdep.c, xcoffread.c: Ditto.
993
4a4b3fed
AC
9942003-09-13 Andrew Cagney <cagney@redhat.com>
995
996 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
997 * ppc-tdep.h (struct regcache): Declare opaque.
998 * objfiles.h (struct objfile_data): Declare opaque.
999 * cp-support.h (struct objfile): Declare opaque.
1000 * linux-nat.h (target_waitstatus): Declare opaque.
1001
2110b94f
MK
10022003-09-14 Mark Kettenis <kettenis@gnu.org>
1003
1c671366
MK
1004 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1005 (stabs_argument_has_addr): New architecture method.
1006 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1007 * arch-utils.c: Include "buildsym.h".
1008 (default_stabs_argument_has_addr): New function.
1009 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1010 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1011
2110b94f
MK
1012 * cris-tdep.c (cris_gdbarch_init): Set
1013 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1014 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1015 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1016 * mips-tdep.c (mips_gdbarch_init): Likewise.
1017 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1018 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1019
48436ce6
AC
10202003-09-13 Andrew Cagney <cagney@redhat.com>
1021
1022 * values.c (using_struct_return): Delete "function" and "funcaddr"
1023 parameters.
1024 * value.h (using_struct_return): Update declaration.
1025 * infcmd.c (finish_command_continuation): Update.
1026 (finish_command): Update.
1027 * infcall.c (call_function_by_hand): Update.
1028 * eval.c (evaluate_subexp_standard): Update.
1029
403d9909
CF
10302003-09-13 Christopher Faylor <cgf@redhat.com>
1031
1032 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1033 SSE registers since gdb will not operate correctly without this.
1034 Restore include file ordering munged in previous change.
1035 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1036
ebf7d56b
MK
10372003-09-13 Mark Kettenis <kettenis@gnu.org>
1038
8e823e25
MK
1039 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1040 REG_STRUCT_HAS_ADDR.
1041 * gdbarch.c, gdbarch.h: Updated.
1042 * infcall.c (call_function_by_hand): Update.
1043 * stabsread.c (define_symbol): Updated.
1044
ebf7d56b
MK
1045 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1046
d3f13f72
CF
10472003-09-12 Christopher Faylor <cgf@redhat.com>
1048
1049 * win32-nat.c: Reorganize so that defines used by target headers are
1050 actually defined by the system headers.
1051 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1052 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1053
14f75137
JB
10542003-09-12 Jim Blandy <jimb@redhat.com>
1055
d646061f
JB
1056 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1057 the file has no .data, .bss, or .rodata sections. Instead wait
1058 until we see a variable alleged to live in one of those sections.
1059
2a13f9bc
JB
1060 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1061 .bss section, presume that any variables we find live in the
1062 .rodata section.
1063
4f49b26b
JB
1064 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1065 offsets for global and static variables.
1066
14f75137
JB
1067 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1068 symbol types are, by definition, in the .data section, so it is
1069 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1070 If there is no .data section, there should be no N_DATA or N_DATA
1071 | N_EXT symbols.
1072
212c460c
MK
10732003-09-12 Mark Kettenis <kettenis@gnu.org>
1074
1075 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1076 (amd64fbsd_sigcontext_addr): Rewrite.
1077 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1078 with correct values.
1079 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1080 (amd64fbsd_init_abi): Fix typo.
1081
68856ea3
AC
10822003-09-12 Andrew Cagney <cagney@redhat.com>
1083
1084 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1085 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1086
627b3ba2
AC
10872003-09-12 Andrew Cagney <cagney@redhat.com>
1088
1089 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1090 "entry_file_highpc". Update comments.
1091 * defs.h (deprecated_inside_entry_file): Rename
1092 "inside_entry_file".
1093 * blockframe.c (deprecated_inside_entry_file): Rename
1094 "inside_entry_file".
1095 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1096 * vax-tdep.c (vax_frame_chain): Update.
1097 * sh64-tdep.c (sh64_frame_chain): Update.
1098 * sh-tdep.c (sh_frame_chain): Update.
1099 * rs6000-tdep.c (rs6000_frame_chain): Update.
1100 * ns32k-tdep.c (ns32k_frame_chain): Update.
1101 * mips-tdep.c (mips_frame_chain): Update.
1102 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1103 * m32r-tdep.c (m32r_frame_this_id): Update.
1104 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1105 * frv-tdep.c (frv_frame_this_id): Update.
1106 * d10v-tdep.c (d10v_frame_this_id): Update.
1107 * cris-tdep.c (cris_frame_chain): Update.
1108 * blockframe.c (legacy_frame_chain_valid): Update.
1109 * avr-tdep.c (avr_frame_this_id): Update.
1110 * arm-tdep.c (arm_prologue_this_id): Update.
1111 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1112 * objfiles.c (objfile_relocate): Update.
1113 * mipsread.c (mipscoff_symfile_read): Update.
1114 (mipscoff_symfile_read): Update.
1115 * mdebugread.c (parse_partial_symbols): Update.
1116 * dwarfread.c (read_file_scope): Update.
1117 * dwarf2read.c (read_file_scope): Update.
1118 * dbxread.c (read_dbx_symtab): Update.
1119 (read_dbx_symtab): Update.
1120 * coffread.c (complete_symtab): Update.
1121
b0abbc58
JJ
11222003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1123
1124 * top.c (quit_target): New static helper function.
1125 (quit_force): Moved code to quit_target(). Call quit_target()
1126 via catch_errors() to catch errors during quit.
1127
a1632d59
DC
11282003-09-11 David Carlton <carlton@kealia.com>
1129
1130 * buildsym.c (finish_block): Use allocate_block to allocate the
1131 block.
1132 * mdebugread.c (new_block): Add FIXME.
1133
5c4e30ca
DC
11342003-09-11 David Carlton <carlton@kealia.com>
1135
1136 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1137 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1138 (recursive_dump_type): Ditto.
1139 * printcmd.c (print_formatted): Ditto.
1140 * typeprint.c (print_type_scalar): Ditto.
1141 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1142 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1143 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1144 maint_cplus_cmd_list.
1145 * cp-support.c: Make maint_cplus_cmd_list extern.
1146 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1147 command.h.
1148 (lookup_symbol_file): Look in possible namespace blocks when
1149 appropriate.
1150 (initialize_namespace_symtab): New.
1151 (get_possible_namespace_block, free_namespace_block)
1152 (check_possible_namespace_symbols)
1153 (check_possible_namespace_symbols_loop)
1154 (check_one_possible_namespace_symbol)
1155 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1156 (_initialize_cp_namespace): Ditto.
1157 * block.h: Declare allocate_block.
1158 * block.c (allocate_block): New.
1159 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1160 allocate_block.
1161 * symfile.h: Update declaration of add_psymbol_to_list.
1162 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1163 question.
1164 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1165 scan_partial_symbols_call.
1166 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1167 helper functions.
1168 (add_partial_symbol): If necessary, scan mangled names for names
1169 of namespaces.
1170 (add_partial_namespace): Add NAMESPACE argument; generate partial
1171 symbols associated to namespaces.
1172 (add_partial_enumeration): Add NAMESPACE argument.
1173 (new_symbol): Allow namespace syms.
1174 (read_namespace): Generate namespace syms.
1175 * objfiles.h: Add opaque declaration of struct symtab.
1176 (struct objfile): Add cp_namespace_symtab member.
1177 * objfiles.c (allocate_objfile): Set
1178 objfile->cp_namespace_symtab.
1179 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1180 dictionary_h, command_h.
1181
33a7c2fc
AC
11822003-09-11 Andrew Cagney <cagney@redhat.com>
1183
1184 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1185 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1186 near the function's end.
1187 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1188 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1189 regcache_raw_write_signed to set SP_REGNUM.
1190
63cd24fe
EZ
11912003-09-11 Elena Zannoni <ezannoni@redhat.com>
1192
1193 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1194 orig_addrs is set up properly.
1195
f27dd7fd
AC
11962003-09-11 Andrew Cagney <cagney@redhat.com>
1197
1198 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1199 * gdbarch.h, gdbarch.c: Re-generate.
1200 * infcall.c (call_function_by_hand): Update.
1201 * hppa-tdep.c (hppa_push_arguments): Update.
1202 * ada-lang.c (place_on_stack): Update.
1203 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1204 * sparc-tdep.c (sparc_gdbarch_init): Update.
1205 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1206 * hppa-tdep.c (hppa_gdbarch_init): Update.
1207 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1208 stack_align.
1209
f630a401
DJ
12102003-09-11 Daniel Jacobowitz <drow@mvista.com>
1211
1212 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1213 register do need a frame.
1214
0ddabb4c
AC
12152003-09-11 Andrew Cagney <cagney@redhat.com>
1216
1217 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1218 buildable since GDB 5.0.
1219 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1220 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1221 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1222 * irix4-nat.c: Delete file.
1223 * config/mips/irix4.mh: Delete file.
1224 * config/mips/irix3.mh: Delete file.
1225 * config/mips/irix3.mt: Delete file.
1226 * config/mips/tm-irix3.h: Delete file.
1227 * config/mips/nm-irix3.h: Delete file.
1228 * config/mips/xm-irix3.h: Delete file.
1229 * config/mips/nm-irix4.h: Delete file.
1230 * config/mips/xm-irix4.h: Delete file.
1231 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1232
fde2cceb
JB
12332003-09-10 J. Brobecker <brobecker@gnat.com>
1234
1235 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1236 * Makefile.in (hppa-tdep.o): Update dependencies.
1237
66f667f5
JW
12382003-09-10 James E Wilson <wilson@specifixinc.com>
1239
ef5fd69f
JW
1240 * MAINTAINERS: Change my e-mail address. Move to paper trail
1241 section.
66f667f5 1242
53e8aaea
KB
12432003-09-10 Kevin Buettner <kevinb@redhat.com>
1244
1245 * MAINTAINERS (frv): New ISA entry.
1246
dcc6aaff
KB
12472003-09-10 Kevin Buettner <kevinb@redhat.com>
1248
1249 * frv-tdep.c (dis-asm.h): Include.
1250 * Makefile.in (frv-tdep.o): Update dependencies.
1251
932644f0
JJ
12522003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1253
1254 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1255 Fix typo for high range of floating registers.
1256
91c24f0a
DC
12572003-09-09 David Carlton <carlton@kealia.com>
1258
1259 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1260 highpc initialization here out of scan_partial_symbols.
1261 (scan_partial_symbols): Restructure into a recursive version,
1262 calling add_partial_namespace and add_partial_enumeration when
1263 appropriate.
1264 (add_partial_namespace): New.
1265 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1266
c9263853
AC
12672003-09-09 Andrew Cagney <cagney@redhat.com>
1268
e56a0ecc
AC
1269 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1270 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1271 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1272 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1273
794a477a
AC
1274 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1275 (rs6000_push_dummy_call): Set the "TOC" register.
1276
c9263853
AC
1277 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1278 methods "max_register_raw_size", "max_register_virtual_size" or
1279 "register_virtual_size".
1280
afa7d0b2
ILT
12812003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1282
1283 * MAINTAINERS: Update my e-mail address.
1284
7a41266b
AC
12852003-09-09 Andrew Cagney <cagney@redhat.com>
1286
1287 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1288 (rs6000_push_dummy_call): Store the struct return address.
1289 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1290
77b2b6d4
AC
12912003-09-09 Andrew Cagney <cagney@redhat.com>
1292
1293 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1294 "ppc_sysv_abi_push_arguments".
1295 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1296 "ppc_sysv_abi_push_arguments".
1297 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1298 instead of "push_arguments".
1299 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1300
e8a7b686
AC
13012003-09-09 Andrew Cagney <cagney@redhat.com>
1302
1303 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1304 instead of CALL_DUMMY_ADDRESS.
1305
f86f5ca3
PH
13062003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1307
1308 * p-lang.c: Eliminate "register".
1309 * c-lang.c: Ditto.
1310 * expprint.c: Ditto.
1311 * f-lang.c: Ditto.
1312 * jv-lang.c: Ditto.
1313 * language.c: Ditto.
1314 * m2-lang.c: Ditto.
1315 * parse.c: Ditto.
1316 * scm-lang.c: Ditto.
1317 * objc-lang.c: Ditto.
1318
83ee270e
NC
13192003-09-09 Nick Clifton <nickc@redhat.com>
1320
1321 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1322
a89aa300
AC
13232003-09-04 Andrew Cagney <cagney@redhat.com>
1324
1325 * avr-tdep.c: Include "dis-asm.h".
1326 * cris-tdep.c: Include "dis-asm.h".
1327 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1328 instead of corresponding typedef.
1329 * h8300-tdep.c: Include "dis-asm.h".
1330 * ia64-tdep.c: Include "dis-asm.h".
1331 * i386-tdep.c: Include "dis-asm.h".
1332 (i386_print_insn): Use "struct disassemble_info" instead of
1333 corresponding typedef.
1334 * m68k-tdep.c: Include "dis-asm.h".
1335 * mcore-tdep.c: Include "dis-asm.h".
1336 * mips-tdep.c: Include "dis-asm.h".
1337 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1338 instead of corresponding typedef.
1339 * ns32k-tdep.c: Include "dis-asm.h".
1340 * s390-tdep.c: Include "dis-asm.h".
1341 * sparc-tdep.c: Include "dis-asm.h".
1342 * vax-tdep.c: Include "dis-asm.h".
1343 * v850-tdep.c: Include "dis-asm.h".
1344 * mn10300-tdep.c: Include "dis-asm.h".
1345 * rs6000-tdep.c: Include "dis-asm.h".
1346 * xstormy16-tdep.c: Include "dis-asm.h".
1347 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1348 print_insn_xstormy16.
1349 * Makefile.in (v850-tdep.o): Update dependencies.
1350 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1351 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1352 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1353 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1354 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1355 (gdbarch_h): Remove $(dis_asm_h).
1356 * disasm.c: Include "dis-asm.h".
1357 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1358 corresponding typedef.
1359 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1360 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1361 * gdbarch.sh: Do not include "dis-asm.h".
1362 (struct disassemble_info): Declare opaque.
1363 (TARGET_PRINT_INSN): Update declaration.
1364 * gdbarch.h, gdbarch.c: Re-generate.
1365
88a82a65
AC
13662003-09-08 Andrew Cagney <cagney@redhat.com>
1367
1368 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1369 CALL_DUMMY_ADDRESS, change to a predicate.
1370 * gdbarch.h, gdbarch.c: Re-generate.
1371 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1372 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1373 * infcall.c (call_function_by_hand): Ditto.
1374 * sparc-tdep.c (sparc_push_return_address): Ditto.
1375 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1376 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1377 CALL_DUMMY_ADDRESS with entry_point_address.
1378 * v850-tdep.c (v850_push_return_address): Ditto.
1379 * s390-tdep.c (s390_push_return_address): Ditto.
1380 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1381 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1382 * mcore-tdep.c (mcore_push_return_address): Ditto.
1383 * cris-tdep.c (cris_push_return_address): Ditto.
1384 * arm-tdep.c (arm_push_return_address): Ditto.
1385
3e2c4033
AC
13862003-09-08 Andrew Cagney <cagney@redhat.com>
1387
1388 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1389 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1390 and REG_UNMODIFIED to REG_SAME_VALUE.
1391 (execute_cfa_program): Update.
1392 (dwarf2_frame_cache): Update. Initialize table to
1393 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1394 location.
1395 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1396
39efb398
AC
13972003-09-08 Andrew Cagney <cagney@redhat.com>
1398
1399 * gnu-nat.c: Remove "inline" function attribute.
1400 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1401
f5cb5aca
KB
14022003-09-08 Kevin Buettner <kevinb@redhat.com>
1403
1404 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1405 target.
1406
1cb761c7
KB
14072003-09-08 Kevin Buettner <kevinb@redhat.com>
1408
1409 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1410 (frame_extra_info): Rename this struct to frv_unwind_cache.
1411 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1412 Add fields ``prev_sp'' and ``base''.
1413 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1414 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1415 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1416 Delete.
1417 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1418 Revise all callers. Fill in the unwind cache argument and make
1419 other adjustments to account for new frame mechanisms.
1420 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1421 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1422 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1423 (frv_frame_unwind, frv_frame_base): New structs.
1424 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1425 additional arguments expected by this method and adjust function
1426 body accordingly.
1427 (frv_gdbarch_init): Remove calls to the following functions:
1428 set_gdbarch_deprecated_init_frame_pc(),
1429 set_gdbarch_deprecated_saved_pc_after_call(),
1430 set_gdbarch_deprecated_frame_chain(),
1431 set_gdbarch_deprecated_frame_saved_pc(),
1432 set_gdbarch_deprecated_frame_init_saved_regs(),
1433 set_gdbarch_deprecated_push_arguments(),
1434 set_gdbarch_deprecated_push_return_address(),
1435 set_gdbarch_deprecated_pop_frame(),
1436 set_gdbarch_deprecated_call_dummy_words(),
1437 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1438 set_gdbarch_deprecated_init_extra_frame_info(),
1439 set_gdbarch_deprecated_dummy_write_sp(), and
1440 set_gdbarch_deprecated_pc_in_call_dummy().
1441 Add calls to the following functions:
1442 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1443 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1444 frame_base_set_default().
1445 * Makefile.in (frv-tdep.o): Update dependencies.
1446
68f6cf99
MK
14472003-09-09 Mark Kettenis <kettenis@gnu.org>
1448
1449 * dwarf2-frame.c (read_encoded_value): Add support for
1450 DW_EH_PE_aligned encoding.
1451
73b65bb0
DJ
14522003-09-08 Daniel Jacobowitz <drow@mvista.com>
1453
1454 * infrun.c (normal_stop): Don't print a message if the inferior
1455 has exited.
1456
7c8a5605
JB
14572003-09-08 Jim Blandy <jimb@redhat.com>
1458
1459 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1460 * dbxread.c: #include "gdb_assert.h".
1461 (read_dbx_symtab): If the objfile has no .data section, use the
1462 section index for the .bss section instead.
1463
7dd88986
DJ
14642003-09-08 Daniel Jacobowitz <drow@mvista.com>
1465
1466 * frame.c (deprecated_safe_get_selected_frame): New function.
1467 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1468 * findvar.c (read_var_value): Call it.
1469
55ff77ac
CV
14702003-09-08 Corinna Vinschen <vinschen@redhat.com>
1471
1472 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1473 (sh64-tdep.o): Add dependencies.
1474 * configure.tgt: Add FIXME to sh-*-linux*.
1475 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1476 (sh_gdbarch_init): Always set correct sh_show_regs function
1477 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1478 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1479 * sh64-tdep.c: New file, containing all sh64 related code from
1480 sh-tdep.c.
1481 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1482 * config/sh/linux.mt (TDEPFILES): Ditto.
1483 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1484 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1485 * config/sh/wince.mt (TDEPFILES): Ditto.
1486
bfb39158
DJ
14872003-09-07 Daniel Jacobowitz <drow@mvista.com>
1488
1489 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1490 (stop_wait_callback): Handle !lp->signalled also.
1491 (lin_lwp_has_pending, flush_callback): New functions.
1492 (lin_lwp_wait): Call flush_callback.
1493 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1494 (linux_proc_pending_signals): New function.
1495 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1496
9407de8e
DJ
14972003-09-07 Daniel Jacobowitz <drow@mvista.com>
1498
1499 From Nick Kelsey <nickk@ubicom.com>:
1500 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1501 when the stop PC is at the beginning of a function also.
1502
2ef47cd0
DJ
15032003-09-06 Daniel Jacobowitz <drow@mvista.com>
1504
1505 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1506 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1507
6f4492c8
MK
15082003-09-06 Mark Kettenis <kettenis@gnu.org>
1509
1510 * sol-thread.c: Include "gdb_string.h".
1511
d3420b2f
MK
15122003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1513
1514 * gcore.c: Reorder include files in alphabetical order. Include
1515 "gdb_assert.h". Various coding style fixes.
1516 (derive_stack_segment, derive_heap_segment): Replace check for
1517 non-null BOTTOM and TOP with gdb_assert.
1518 (derive_heap_segment): Replace check for successful creation of
1519 ZERO with gdb_assert.
1520 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1521
5220ea4c
AC
15222003-09-04 Andrew Cagney <cagney@redhat.com>
1523
1524 * thread-db.c (verbose_dlsym): New function.
1525 (thread_db_load): Use verbose_dlsym
1526 (thread_db_new_objfile): Print that libthread_db was loaded, and
1527 that thread debugging was enabled.
1528
6e8c2c06
AC
15292003-09-04 Andrew Cagney <cagney@redhat.com>
1530
1531 * configure.tgt: Add "mips64*-*-*" target. Delete
1532 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1533 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1534 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1535 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1536 mips*-sony-*, and mips64*-*-elf* targets.
1537 * config/mips/embedl.mt: Delete file.
1538 * config/mips/embedl64.mt: Delete file.
1539 * config/mips/mips.mt: Delete file.
1540 * config/mips/mips64.mt: Delete file.
1541 * config/mips/tm-embed.h: Delete file.
1542 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1543 * config/mips/embed64.mt: Delete out-of-date comment.
1544
3a3bc038
AC
15452003-09-04 Andrew Cagney <cagney@redhat.com>
1546
1547 * hppa-tdep.c (hppa_gdbarch_init): Set
1548 "have_nonsteppable_watchpoint".
1549 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1550 * mips-tdep.c (mips_dump_tdep): Do not print
1551 HAVE_NONSTEPPABLE_WATCHPOINT.
1552 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1553 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1554 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1555 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1556
a957e642
CV
15572003-09-04 Corinna Vinschen <vinschen@redhat.com>
1558
1559 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1560 unused code. Add comment.
1561
a6fbcf2f
CV
15622003-09-04 Corinna Vinschen <vinschen@redhat.com>
1563
1564 * breakpoint.c (watchpoint_check): Check for pc being in an
1565 epilogue if watchpoint frame couldn't be found.
1566
c14a44d5
AC
15672003-09-04 Andrew Cagney <cagney@redhat.com>
1568
1569 * Makefile.in: Re-generate all dependencies.
1570
f6c40618
AC
15712003-09-03 Andrew Cagney <cagney@redhat.com>
1572
1573 * arch-utils.h (legacy_print_insn): Delete declaration.
1574 * arch-utils.c (legacy_print_insn): Delete function.
1575 * disasm.c (deprecated_tm_print_insn_info): Delete.
1576 (_initialize_disasm): Delete function, contained code initializing
1577 deprecated_tm_print_insn_info.
1578 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1579 (deprecated_tm_print_insn_info): Delete.
1580 (TARGET_PRINT_INSN): Do not provide a default.
1581 * gdbarch.h, gdbarch.c: Re-generate.
1582
242e8be5
AC
15832003-09-03 Andrew Cagney <cagney@redhat.com>
1584
1585 * disasm.c (fprintf_disasm): New function.
1586 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1587 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1588 reverts 2003-08-14 change.
1589 (_initialize_disasm): Call "init_disassemble_info", instead of
1590 INIT_DISASSEMBLE_INFO_NO_ARCH.
1591
3ffc3dda
MS
15922003-09-03 Michael Snyder <msnyder@redhat.com>
1593
1594 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1595
52d16ba8
AC
15962003-09-03 Andrew Cagney <cagney@redhat.com>
1597
1598 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1599 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1600 * symfile.c (syms_from_objfile): Update.
1601 (reread_symbols): `Update
1602 * exec.c (exec_file_attach): Update.
1603 (exec_file_attach): Update.
1604 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1605 2003-08-29 change.
1606 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1607
eb5492fa
DJ
16082003-09-03 Daniel Jacobowitz <drow@mvista.com>
1609
1610 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1611 trad-frame.h.
1612 (arm_get_cache): Delete macro.
1613 (struct arm_prologue_cache): Update comments. Make saved_regs into
1614 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1615 to prev_sp.
1616 (thumb_scan_prologue): Update for cache changes. Don't call
1617 DEPRECATED_PC_IN_CALL_DUMMY.
1618 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1619 argument and use it in desperation search for our prologue. Do not
1620 search past the specified PC.
1621 (arm_make_prologue_cache): Simplify.
1622
1623 (arm_prologue_this_id, arm_prologue_prev_register)
1624 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1625 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1626 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1627 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1628 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1629
1630 (arm_frame_chain_valid, arm_find_callers_reg)
1631 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1632 (arm_pop_frame): Delete obsolete methods.
1633 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1634
1635 (arm_gdbarch_init): Update for new frame methods. Register prologue
1636 and sigtramp unwinders. Set the default frame base method.
1637
1638 * Makefile.in (arm-tdep.o): Update dependencies.
1639 * varobj.c (find_frame_addr_in_frame_chain): Call
1640 get_frame_base_address.
1641 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1642
24de872b
DJ
16432003-09-03 Daniel Jacobowitz <drow@mvista.com>
1644
1645 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1646 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1647 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1648 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1649 Take NEXT_FRAME and CACHE arguments. Call
1650 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1651 Set unwound_pc in CACHE instead of modifying the frame argument.
1652 Don't bother checking the frame type when looking for sigtramp
1653 frames.
1654 (arm_make_prologue_cache, arm_frame_chain)
1655 (arm_init_extra_frame_info): New functions.
1656
9b8d791a
DJ
16572003-09-03 Daniel Jacobowitz <drow@mvista.com>
1658
1659 * arm-tdep.c (arm_get_cache): Define.
1660 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1661 unwound_sp, unwound_pc, and saved_regs.
1662 (thumb_scan_prologue): Take a cache instead of the frame.
1663 (arm_scan_prologue): Likewise.
1664 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1665 instead of a temporary frame.
1666 (arm_init_extra_frame_info): Allocate and use a cache.
1667 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1668
7ee3275f
AC
16692003-09-03 Andrew Cagney <cagney@redhat.com>
1670
1671 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1672 * config/mips/wince.mt (TM_CLIBS): Ditto.
1673 * config/sh/wince.mt (TM_CLIBS): Ditto.
1674 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1675 * config/sparc/sp64.mt (CC): Delete.
1676
57b29be7
AC
16772003-09-03 Andrew Cagney <cagney@redhat.com>
1678
1679 * defs.h: Do not include "arch-utils.h".
1680 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1681 GDB_MULTI_ARCH_PURE.
1682 * configure.in (GDB_MULTI_ARCH): Do not define.
1683 * configure, config.in: Regenerate.
1684 * configure.tgt: Do not set variable "gdb_multi_arch".
1685 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1686 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1687 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1688 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1689 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1690 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1691 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1692 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1693 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1694 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1695 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1696 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1697 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1698 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1699 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1700 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1701 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1702 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1703
12e035e2
MC
17042003-08-30 Michael Chastain <mec@shout.net>
1705
1706 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1707 * config/m68k/nm-hp300hpux.h: Delete.
1708 * config/m68k/tm-hp300hpux.h: Delete.
1709 * config/m68k/xm-hp300hpux.h: Delete.
1710 * config/m68k/xm-hp300bsd.h: Delete.
1711 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1712 tm-hp300hpux.h, xm-hp300hpux.h.
1713 * somsolib.c: Remove comment about hp300 shared libraries.
1714
bda34dc2
MK
17152003-08-31 Mark Kettenis <kettenis@gnu.org>
1716
5bca7895
MK
1717 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1718 Only define PTRACE_GET_THREAD_AREA is not already defined.
1719 Various style fixes in code and comments and some additional
1720 spelling fixes in comments. Move after functions dealing with
1721 debug registers.
1722 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1723 Fix coding-style.
1724
bda34dc2
MK
1725 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1726 frame_unwind_register_unsigned instead of
1727 frame_unwind_unsigned_register.
1728
c890192f
MK
17292003-08-30 Mark Kettenis <kettenis@gnu.org>
1730
1731 * configure.in: Search for gethostbyname in libnsl.
1732 * configure: Regenerated.
1733
60fac5b8
MK
17342003-08-29 Mark Kettenis <kettenis@gnu.org>
1735
e294916c
MK
1736 * configure.in: Remove redundant AC_MSG_RESULT in check for
1737 uintptr_t in stdint.h.
1738 * configure: Regenerated.
1739
c40d267a
MK
1740 * amd64-nat.h (struct regcache): Add opaque declaration.
1741
60fac5b8
MK
1742 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1743 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1744 Change "register array" to "register cache" in comments.
1745 (x86_64_linux_gregset64_reg_offset): New variable.
1746 (GETREGS_SUPPLIES): Remove macro.
1747 (supply_gregset): Call amd64_supply_native_gregset instead of
1748 x86_64_linux_supply_gregset.
1749 (fill_gregset): Rename `regno' to `regnum'. Call
1750 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1751 (store_regs): Rename `regno' to `regnum'.
1752 (store_fpregs): Rename `regno' to `regnum'.
1753 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1754 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1755 Reorganize function a bit.
1756 (store_inferior_registers): Rename `regno' to `regnum'. Use
1757 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1758 Reorganize function a bit.
1759 (_initialize_x86_64_linux_nat): New function.
1760 * config/i386/x86-64linux.mh.
1761
546143b6
AC
17622003-08-29 Andrew Cagney <cagney@redhat.com>
1763
1764 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1765 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1766 (target_remove_watchpoint): Delete macro.
1767 (target_insert_watchpoint): Delete macro.
1768 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1769 (remote_mips_stopped_by_watchpoint): Delete declaration.
1770 (remote_mips_remove_watchpoint): Delete declaration.
1771 (remote_mips_set_watchpoint): Delete declaration.
1772 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1773 * remote-mips.c (_initialize_remote_mips): Set
1774 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1775 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1776 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1777 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1778 (mips_stopped_by_watchpoint): Rename
1779 remote_mips_stopped_by_watchpoint.
1780 (mips_can_hardware_watchpoint): Rename
1781 remote_mips_can_use_hardware_watchpoint, update function
1782 signature.
1783
7bace51b
MK
17842003-08-29 Mark Kettenis <kettenis@gnu.org>
1785
b0f5c6f2
MK
1786 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1787 USER_DS. We haven't given them a register number yet.
1788
2a6d284d
MK
1789 * amd64-nat.h: New file.
1790 * amd64-nat.c: New file.
1791 * amd64fbsd-nat.c: Include "amd64-nat.h".
1792 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1793 (amd64fbsd32_r_reg_offset): New variable.
1794 (supply_gregset): Simply call amd64_supply_native_gregset.
1795 (fill_gregset): Rename `regno' to `regnum'. Simply call
1796 amd64_collect_native_gregset.
1797 (fill_fpregset): Rename `regno' to `regnum'.
1798 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1799 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1800 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1801 `fpregset_t'. Call amd64_supply_native_gregset instead of
1802 supply_gregset. Call x86_64_supply_fxsave instead of
1803 supply_fpregset.
1804 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1805 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1806 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1807 `fpregset_t'. Call amd64_collect_native_gregset instead of
1808 fill_gregset. Call x86_64_collect_fxsave instead of
1809 fill_fpregset.
1810 (_initialize_am64fbsd_nat): Initialize
1811 amd64_native_gregset32_reg_offset and
1812 amd64_native_gregset64_reg_offset.
1813 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1814
a16d75cc
MK
1815 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1816 null pointer. Fix typo in comment.
1817
7bace51b
MK
1818 * regcache.c (supply_register): Reimplement to call
1819 regcache_raw_supply.
1820 (regcache_collect): Reimplement by calling regcache_raw_collect.
1821
9a661b68
MK
18222003-08-28 Mark Kettenis <kettenis@gnu.org>
1823
1824 * regcache.c (register_buffer): Consitify first argument.
1825 (regcache_raw_supply, regcache_raw_collect): New
1826 functions.
1827
e94cc8fa
DJ
18282003-08-28 Daniel Jacobowitz <drow@mvista.com>
1829
1830 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1831 by Nathan J. Williams.
1832
c64bd0ce
DJ
18332003-08-28 Daniel Jacobowitz <drow@mvista.com>
1834
1835 * lin-lwp.c (wait_lwp): New function, copied from
1836 stop_wait_callback. Clean up.
1837 (stop_wait_callback): Use wait_lwp.
1838
e5ab0dce
AC
18392003-08-28 Andrew Cagney <cagney@redhat.com>
1840
1841 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1842 flavour and disassembler options.
1843 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1844 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1845 deprecated_tm_print_insn_info.
1846
a788de9b
AC
18472003-08-27 Andrew Cagney <cagney@redhat.com>
1848
1849 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1850 Use target_read_memory.
1851 (s390_get_frame_info): Update. Do not reference
1852 deprecated_tm_print_insn_info.
1853 (s390_check_function_end, s390_is_sigreturn): Ditto.
1854
36482093
AC
18552003-08-27 Andrew Cagney <cagney@redhat.com>
1856
1857 * Makefile.in (cris-tdep.o): Update dependencies.
1858 * cris-tdep.c: Include "gdb_assert.h".
1859 (cris_gdbarch_init): Set print_insn.
1860 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1861 (cris_delayed_get_disassembler): Simplify, directly call the
1862 disassembler returned by cris_get_disassembler.
1863 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1864 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1865 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1866 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1867 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1868 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1869 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1870 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1871 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1872 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1873 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1874 (gdb_print_insn_sparc): Delete function.
1875 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1876 deprecated_tm_print_insn_info.
1877 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1878 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1879 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1880 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1881 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1882 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1883 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1884 (s390_gdbarch_init): Set print_insn.
1885
0285512f
AC
18862003-08-27 Andrew Cagney <cagney@redhat.com>
1887
1888 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1889 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1890 * infcall.c (call_function_by_hand): Convert the entry point
1891 address into a code address.
1892
cdcd5552
AC
18932003-08-27 Andrew Cagney <cagney@redhat.com>
1894
1895 * dsrec.c: Include "gdb_string.h".
1896 * Makefile.in (dsrec.o): Update dependencies.
1897
e85cddad
MC
18982003-08-27 Michael Chastain <mec@shout.net>
1899
1900 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1901
8bbfbb23
AC
19022003-08-27 Andrew Cagney <cagney@redhat.com>
1903
1904 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1905 (alpha_osf1_init_abi): Do not set call_dummy_address.
1906
ba058b66
DC
19072003-08-27 David Carlton <carlton@kealia.com>
1908
1909 From Randolph Chung <tausq@debian.org>:
1910 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1911 compiles with -Wformat-nonliteral -Werror.
1912
87f84c9d
JB
19132003-08-26 Jim Blandy <jimb@redhat.com>
1914
1915 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1916 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1917 bfd_lookup_symbol, since we only want symbols in code sections.
1918 (look_for_base): Pass zero as the SECT_FLAGS argument to
1919 bfd_lookup_symbol, since we're not concerned about which section
1920 the symbol is in.
1921
102d615a
JJ
19222003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1923
1924 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1925 we are frameless or the return address register is already known.
1926
cc7ad3ea
AC
19272003-08-26 Andrew Cagney <cagney@redhat.com>
1928
1929 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1930 in size. Add comments.
1931
af8b88dd
JJ
19322003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1933
1934 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1935 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1936
e0a4f5a1
JM
19372003-08-26 Jason Merrill <jason@redhat.com>
1938
1939 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1940 case out of #ifdef MIPS block.
1941
4ae9ee8e
DJ
19422003-08-25 Daniel Jacobowitz <drow@mvista.com>
1943
1944 PR java/1322
1945 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1946 available before calling SECT_OFF_TEXT.
3c164570 1947 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1948
004d836a
JJ
19492003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1950
1951 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1952 bof, and nat0-nat127 as pseudo-registers.
1953 (ia64_frame_cache): New struct used to cache frame info.
1954 (ia64_register_reggroup_p): New routine used to override default
1955 register grouping so registers without names are still saved and
1956 restored.
1957 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1958 pseudo values.
1959 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1960 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1961 (ia64_alloc_frame_cache): New routine to create a new
1962 ia64_frame_cache.
1963 (examine_prologue): Change prototype to add next_frame pointer.
1964 Assume frameless until otherwise proven. Verify that the cfm for
1965 current frame matches the cfm that should occur for the prologues
1966 alloc insn and if equal, mark as not frameless. At end of routine,
1967 if not frameless, calculate registers for the previous frame and store
1968 in the cache, if a cache is provided.
1969 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1970 and pass 0 for next_frame.
1971 (ia64_store_return_value): Change to use convert_typed_floating()
1972 instead of calling ia64_convert_to_raw().
1973 (ia64_extract_return_value): Change to use convert_typed_floating()
1974 instead of calling ia64_convert_to_virtual().
1975 (ia64_frame_cache): New routine to support new frame model.
1976 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1977 (ia64_frame_sniffer): Ditto.
1978 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1979 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1980 (ia64_sigtramp_frame_prev_register): Ditto.
1981 (ia64_sigtramp_frame_sniffer): Ditto.
1982 (ia64_frame_base_address): Ditto.
1983 (ia64_extract_struct_value_address): Change to issue error message.
1984 (ia64_frame_align): New routine to align sp.
1985 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1986 (ia64_push_arguments): Removed. Logic moved to
1987 ia64_push_dummy_call().
1988 (ia64_push_return_address): Ditto.
1989 (ia64_unwind_dummy_id): New function.
1990 (ia64_unwind_pc): Ditto.
1991 (ia64_convert_register_p): Ditto.
1992 (ia64_register_to_value): Ditto.
1993 (ia64_value_to_register): Ditto.
1994 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1995 (ia64_register_byte, ia64_register_raw_size): Ditto.
1996 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1997 (ia64_saved_pc_after_call): Ditto.
1998 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1999 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2000 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2001 (ia64_register_convert_to_raw): Ditto.
2002 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2003 (ia64_init_extra_frame_info): Ditto.
2004 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2005 (ia64_gdbarch_init): Remove registering of deprecated functions that
2006 are no longer used. Add registration of new gdbarch functions.
2007 Remove registering deprecated_write_sp. Replace
2008 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2009 Delete set_gdbarch_deprecated_register_convertible(),
2010 set_gdbarch_deprecated_register_convert_to_virtual(), and
2011 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2012 set_gdbarch_deprecated_register_size(),
2013 set_gdbarch_deprecated_register_bytes(),
2014 set_gdbarch_pcregnum(),
2015 set_gdbarch_deprecated_register_byte(),
2016 set_gdbarch_deprecated_register_raw_size(),
2017 set_gdbarch_deprecated_max_register_raw_size(),
2018 set_gdbarch_deprecated_register_virtual_size(),
2019 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2020 Replace set_gdbarch_deprecated_extract_return_value() with
2021 set_gdbarch_extract_return_value(). Remove calls to:
2022 set_gdbarch_deprecated_saved_pc_after_call();
2023 set_gdbarch_deprecated_frame_chain(),
2024 set_gdbarch_deprecated_frame_saved_pc(),
2025 set_gdbarch_deprecated_frame_init_saved_regs(),
2026 set_gdbarch_deprecated_get_saved_register(),
2027 set_gdbarch_deprecated_call_dummy_words(),
2028 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2029 set_gdbarch_deprecated_init_extra_frame_info(),
2030 set_gdbarch_deprecated_frame_args_address(),
2031 set_gdbarch_deprecated_frame_locals_address(),
2032 and set_gdbarch_deprecated_dummy_write_sp().
2033 Add set_gdbarch_convert_register_p(),
2034 set_gdbarch_register_to_value(),
2035 set_gdbarch_value_to_register(),
2036 set_gdbarch_push_dummy_call(),
2037 set_gdbarch_frame_align(),
2038 set_gdbarch_unwind_dummy_id(),
2039 set_gdbarch_unwind_pc(),
2040 frame_unwind_append_sniffer(),
2041 frame_unwind_append_sniffer(),
2042 and frame_base_set_default().
2043
aede7613
CD
20442003-08-25 Chris Demetriou <cgd@broadcom.com>
2045
2046 * configure.tgt: Document need for special "mipsisa64" handling.
2047 (mipsisa64*-*-linux64): Handle as target linux64.
2048 (mipsisa64*-*-*): Handle as target embed64.
2049
43c3a82e
MC
20502003-08-18 Michael Chastain <mec@shout.net>
2051
2052 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2053 objfile bug.
2054
6564f77d
MK
20552003-08-24 Mark Kettenis <kettenis@gnu.org>
2056
2de139ba
MK
2057 * i387-tdep.h: Update copyright date.
2058 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2059
6564f77d
MK
2060 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2061 CFLAGS games to reflect reality.
2062
42cf1509
AC
20632003-08-24 Andrew Cagney <cagney@redhat.com>
2064
2065 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2066 GDB_MULTI_ARCH is always non-zero.
2067 * osabi.c (_initialize_gdb_osabi): Ditto.
2068 (gdbarch_init_osabi): Ditto.
2069 * sparc-tdep.c: Ditto for #if code.
2070
0485f6ad
MK
20712003-08-23 Mark Kettenis <kettenis@gnu.org>
2072
2073 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2074 Update comments.
2075 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2076 comments.
2077 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2078 x86_64_supply_fxsave.
2079 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2080 x86_64_supply_fxsave.
2081 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2082 x86_64_supply_fxsave.
2083
c7716133
AJ
20842003-08-23 Andreas Jaeger <aj@suse.de>
2085
2086 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2087 i387_supply_fxsave.
2088
ed504bdf
MK
20892003-08-23 Mark Kettenis <kettenis@gnu.org>
2090
2091 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2092 i387_supply_register.
2093 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2094 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2095 i387_supply_fsave.
2096 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2097 i387_supply_fxsave.
2098 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2099 i387_supply_fsave.
2100 * i386bsd-nat.c (supply_fpregset): Adjust call to
2101 i387_supply_fsave.
2102 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2103 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2104 supply_fpregset.
2105 (store_inferior_registers): Remove extraneous whitespace. Call
2106 i387_fill_fsave instead of fill_fpregset.
2107 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2108 (supply_fpregset): Likewise.
2109 * i386v4-nat.c (supply_fpregset): Adjust call to
2110 i387_supply_fsave.
2111 * i386-interix-nat.c (supply_fpregset): Adjust call to
2112 i387_supply_fsave.
2113 * i386-linux-nat.c (supply_fpregset): Adjust call to
2114 i387_supply_fsave.
2115 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2116 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2117 i387supply_fsave and i387_supply_fxsave.
2118 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2119 Incorporate code from `i387_supply_register.
2120 (i387_supply_register): Remove.
2121 (i387_supply_fxsave): Add `regnum' argument.
2122 Update comments.
2123 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2124 prototype.
2125 (i387_supply_register): remove prototype.
2126 Update comments.
2127
4be5d520
MC
21282003-08-22 Michael Chastain <mec@shout.net>
2129
2130 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2131 Add lines for files in gdb/testsuite/gdb.cp/* that are
2132 still not 8.3 unique.
2133
7ed85d26
DJ
21342003-08-22 Daniel Jacobowitz <drow@mvista.com>
2135
2136 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2137 TYPE_VPTR_FIELDNO is valid.
2138
eb0d3137
MK
21392003-08-19 Mark Kettenis <kettenis@gnu.org>
2140
2141 * utils.c (set_width_command): Remove prototypes.
2142 (set_screen_size): New prototype.
2143 (init_page_info): Simplify by fetching the screen size from
2144 Readline. Call set_screen_size.
2145 (set_screen_size): New function.
2146 (set_width): Add missing whitespace in comment.
2147 (set_width_command): Call set_screen_size.
2148 (set_height_command): New function.
2149 (initialize_utils): Fix formatting. Make "set height" command
2150 call set_height_command. Remove redundant code that turns off
2151 pagination if output isn't a terminal. Remove redundant call to
2152 set_width_command.
2153
7e6d0ac8
MK
21542003-08-22 Mark Kettenis <kettenis@gnu.org>
2155
3567a8ea
MK
2156 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2157 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2158 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2159 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2160 `case' keyword.
2161 (sparc64_register_info): Give the reister with number
2162 SPARC64_STATE_REGNUM a name.
2163 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2164 %asi and %ccr.
2165 (sparc64_push_dummy_call): Take BIAS into account when checking
2166 stcak alignment.
2167 (sparc_software_single_step): Remove assertions that check whether
2168 NPC and NNPC were zero.
2169 (sparc_supply_rwindow): Make public. Merge functionality with
2170 sparc64_supply_rwindow.
2171 (sparc_fill_rwindow): Make public. Merge functionality with
2172 sparc64_fill_rwindow.
2173 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2174 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2175 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2176 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2177 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2178
7e6d0ac8
MK
2179 * reggroups.c: Add whitespace after declarations of local
2180 variables in functions.
2181
72e5f484
MC
21822003-08-21 Michael Chastain <mec@shout.net>
2183
2184 * gdbtypes.h: Change array bound type from an int to enum.
2185
435ac228
AC
21862003-08-21 Andrew Cagney <cagney@redhat.com>
2187
2188 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2189 * config/sparc/tm-sparc.h: Ditto.
2190 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2191 unconditionally.
2192 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2193
0d0e1a63
MK
21942003-07-13 Mark Kettenis <kettenis@gnu.org>
2195
2196 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2197 (register_objfile_data, set_objfile_data, objfile_data): New
2198 prototypes.
2199 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2200 prototypes.
2201 (allocate_objfile): Call objfile_alloc_data.
2202 (free_objfile): Call objfile_free_data.
2203 (struct objfile_data): New.
2204 (struct objfile_data_registration): New.
2205 (struct objfile_data_registry): New.
2206 (objfile_data_registry): New variable.
2207 (register_objfile_data): New function.
2208 (objfile_alloc_data, objfile_free_data): New functions.
2209 (set_objfile_data, objfile_data): New functions.
2210 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2211 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2212 (_initialize_dwarf2_frame): New function and prototype.
2213
d90cf509
AC
22142003-08-21 Andrew Cagney <cagney@redhat.com>
2215
2216 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2217 a specific architecture.
2218 * arch-utils.h (set_architecture_from_arch_mach): Delete
2219 declaration.
2220 (target_architecture_hook): Delete declaration.
2221 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2222 (default_float_format): Assume GDB_MULTI_ARCH.
2223 (default_double_format): Assume GDB_MULTI_ARCH.
2224 (set_endian_from_file): Delete function.
2225 (arch_ok): Delete function.
2226 (set_arch): Delete function.
2227 (set_architecture_from_arch_mach): Delete function.
2228 (set_architecture_from_file): Delete function.
2229 (set_architecture): Assume GDB_MULTI_ARCH.
2230 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2231
8b39fe56
MK
22322003-08-21 Mark Kettenis <kettenis@gnu.org>
2233
2234 Rewrite FreeBSD/sparc64 native configuration.
2235 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2236 * sparc64fbsd-nat.c: New file.
2237 * sparc64fbsd-tdep.c: New file.
2238 * sparc64-tdep.c sparc64-tdep.h: New files.
2239 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2240 sparc64fbsd-tdep.o): New dependencies.
2241 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2242 and sparc64fbsd-tdep.c.
2243 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2244 * config/sparc/fbsd.mh: Remove copyright notice.
2245 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2246 sparcbsd-nat.o.
2247 * config/sparc/fbsd.mt: Remove copyright notice.
2248 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2249 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2250 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2251 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2252 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2253 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2254 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2255 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2256 "sparc/tm-sp64.h".
2257 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2258 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2259
a7f19c79
MC
22602003-08-21 Michael Chastain <mec@shout.net>
2261
2262 * symtab.h: Add doco on the space critical structures and
2263 some measurements of space usage.
2264
da08ea5b
MS
22652003-08-21 Michael Snyder <msnyder@redhat.com>
2266
2267 * tracepoint.c (trace_dump_command): Trace break address
2268 is subject to DECR_PC_AFTER_BREAK.
2269 (set_traceframe_context): Make "trace_line" an int.
2270 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2271
6df2bf50
MS
22722003-08-20 Michael Snyder <msnyder@redhat.com>
2273
2274 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2275 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2276 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2277 argument passing.
2278 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2279 functions, replace sh_push_dummy_call.
2280 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2281
0955bbf0
MC
22822003-08-20 Michael Chastain <mec@shout.net>
2283
2284 * gdbtypes.h (struct main_type): Rearrange to save space.
2285
260a4188
MS
22862003-08-20 Michael Snyder <msnyder@redhat.com>
2287
2288 * trad-frame.c: Comment typo fix.
2289
8baa6f92
KB
22902003-08-20 Michael Snyder <msnyder@redhat.com>
2291 Kevin Buettner <kevinb@redhat.com>
2292
2293 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2294 (frv_frame_init_saved_regs): Add declaration.
2295 (frame_extra_info): Add new field ``saved_regs''.
2296 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2297 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2298 Update frame related code.
2299 (frv_extract_struct_value_address): Adjust formatting.
2300 * Makefile.in (frv-tdep.o): Update dependencies.
2301 * config/frv/tm-frv.h (target_insert_watchpoint)
2302 (target_remove_watchpoint, target_insert_hw_breakpoint)
2303 (target_remove_hw_breakpoint): Delete these macros.
2304 (remote_insert_watchpoint, remote_remove_watchpoint)
2305 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2306 these declarations.
2307
87193939
MC
23082003-08-20 Michael Chastain <mec@shout.net>
2309
2310 * defs.h (ENUM_BITFIELD): New macro.
2311 * symtab.h (ENUM_BITFIELD): Use it.
2312 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2313
062103ba
SA
23142003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2315
2316 * MAINTAINERS (write after approval): Add myself.
2317
8b148df9
AC
23182003-08-18 Andrew Cagney <cagney@redhat.com>
2319
2320 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2321 * gdbarch.h, gdbarch.c: Re-generate.
2322 * infcall.c (call_function_by_hand): Adjust the SP by
2323 frame_red_zone_size before allocating any stack space.
2324 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2325 * x86-64-tdep.c (x86_64_frame_align): New function.
2326 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2327
2328 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2329 Remove code adjusting SP so that it skips over the Red Zone.
2330
954a4db8
MK
23312003-08-18 Mark Kettenis <kettenis@gnu.org>
2332
2333 * NEWS (New native configurations): Mention FreeBSD/amd64.
2334
1a241548
AC
23352003-08-18 Andrew Cagney <cagney@redhat.com>
2336
2337 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2338 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2339 "m68k_frame_p".
2340 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2341
f82b2acd
MK
23422003-08-18 Mark Kettenis <kettenis@gnu.org>
2343
2344 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2345
4056d258
ML
23462003-08-18 Michal Ludvig <mludvig@suse.cz>
2347
2348 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2349 Define.
2350 * i386-linux-nat.c: Include "linux-nat.h".
2351 (child_post_startup_inferior): New function.
2352
99ab4326
MK
23532003-08-18 Mark Kettenis <kettenis@gnu.org>
2354
2355 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2356 at the start of a frameless function. This probably fixes PR
2357 backtrace/1338.
2358
c8d5f0d6
MC
23592003-08-17 Michael Chastain <mec@shout.net>
2360
2361 * symfile.c (find_sym_fns): Remove special case for apollo target.
2362
9016a515
DJ
23632003-08-17 Daniel Jacobowitz <drow@mvista.com>
2364
2365 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2366 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2367 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2368 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2369 (linux_supports_tracevforkdone): New function.
2370 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2371 TRACEVFORKDONE.
2372 (child_follow_fork): Handle vfork.
2373 (linux_handle_extended_wait): Likewise. Also handle exec.
2374 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2375 * NEWS: Mention fork tracing.
2376
c538c11c
DJ
23772003-08-17 Daniel Jacobowitz <drow@mvista.com>
2378
2379 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2380
4de4c07c
DJ
23812003-08-17 Daniel Jacobowitz <drow@mvista.com>
2382
2383 * Makefile.in (i386-linux-nat.o): Update dependencies.
2384 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2385 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2386 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2387 * i386-linux-nat.c: Include "linux-nat.h".
2388 (child_post_startup_inferior): New function.
2389 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2390 * infptrace.c (kill_inferior): Wrap in #ifdef.
2391 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2392 attaching to each LWP.
2393 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2394 (init_lin_lwp_ops): Fill in some more operations.
2395 * linux-nat.h (linux_enable_event_reporting)
2396 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2397 prototypes.
2398 * linux-nat.c (linux_enable_event_reporting): New function.
2399 (child_post_attach, linux_child_post_startup_inferior)
2400 (child_post_startup_inferior, child_follow_fork)
2401 (linux_handle_extended_wait, kill_inferior): New functions.
2402
7996bcec
AC
24032003-08-16 Andrew Cagney <cagney@redhat.com>
2404
2405 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2406 * gdbarch.h, gdbarch.c: Re-generate.
2407
3d48a7a0
MK
24082003-08-16 Mark Kettenis <kettenis@gnu.org>
2409
2410 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2411
7989c619
AC
24122003-08-16 Andrew Cagney <cagney@redhat.com>
2413
2414 * NEWS: Mention that "set prompt-escape-char" was deleted.
2415 * top.c (get_prompt_1): Delete function.
2416 (gdb_prompt_escape):
2417 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2418 prompt-escape-char" command.
2419 (MAX_PROMPT_SIZE): Delete macro.
2420 (get_prompt): Simplify, do not call get_prompt_1.
2421
07978cd8
AC
24222003-08-16 Andrew Cagney <cagney@redhat.com>
2423
2424 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2425 -Werror. -Wformat-nonliteral problems.
2426
3ff7cf9e
JB
24272003-08-15 J. Brobecker <brobecker@gnat.com>
2428
2429 Further multiarching work mostly for hppa64-*-hpux11:
2430 * hppa-tdep.h: New file.
2431 * hppa-tdep.c: #include hppa-tdep.c.
2432 (hppa32_num_regs): Renamed from hppa_num_regs.
2433 (hppa64_num_regs): New constant.
2434 (hppa64_call_dummy_breakpoint_offset): New constant.
2435 (hppa32_call_dummy_length): New constant.
2436 (hppa64_call_dummy_length): New constant.
2437 (hppa32_stack_align): Make name 32bit explicit.
2438 (hppa32_register_virtual_type): Likewise.
2439 (hppa32_extract_return_value): Likewise.
2440 (hppa32_use_struct_convention): Likewise.
2441 (hppa32_store_return_value): Likewise.
2442 (hppa64_register_virtual_type): New function.
2443 (hppa64_extract_return_value): New function.
2444 (hppa64_use_struct_convention): New function.
2445 (hppa64_store_return_value): New function.
2446 (hppa_frame_locals_address): Remove declaration, function does
2447 not exist anymore.
2448 (hppa_register_byte): Add support for PA64 ABI.
2449 (hppa_gdbarch_init): Add support for PA64 ABI.
2450 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2451 Make name 32bit explicit.
2452 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2453 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2454 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2455 (hppa64_hpux_frame_base_before_sigtramp): New function.
2456 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2457 * config/pa/tm-hppa64.h: Remove macros that are no longer
2458 necessary now that the gdbarch vector is properly setup.
2459 Transform some macros into function calls. Some minor cleanup.
2460 * config/pa/tm-hppah.h: Update function calls in macros
2461 following the function renaming in hppa-hpux-tdep.c.
2462 * Makefile.in (hppa_tdep_h): New variable.
2463 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2464
5d05ca6d
MS
24652003-08-14 Michael Snyder <msnyder@redhat.com>
2466
2467 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2468
37ba2569
JB
24692003-08-13 J. Brobecker <brobecker@gnat.com>
2470
2471 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2472 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2473 routine.
2474
aed7f26a
MS
24752003-08-13 Michael Snyder <msnyder@redhat.com>
2476
2477 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2478 (frv_saved_pc_after_call): Use deprecated ftype.
2479 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2480 (frv_remote_translate_xfer_address): Remove.
2481 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2482
752d4ac1
JB
24832003-08-13 J. Brobecker <brobecker@gnat.com>
2484
2485 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2486 initialization after the common gdbarch initialization, not before.
2487
1426ac1d
JB
24882003-08-13 J. Brobecker <brobecker@gnat.com>
2489
2490 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2491 (ADDR_BITS_REMOVE): Remove, redundant.
2492
b6fbdd1d
JB
24932003-08-13 J. Brobecker <brobecker@gnat.com>
2494
2495 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2496 gdbarch method to clear the 2 low bits of text addresses.
2497
44160db3
AC
24982003-08-12 Andrew Cagney <cagney@redhat.com>
2499
2500 * Makefile.in (dsrec.o): Update dependencies.
2501 * dsrec.c: Include "gdb_assert.h".
2502 (make_srec): Use snprintf instead of sprintf, use a literal format
2503 string.
2504
bcf7d3ca
AC
25052003-08-12 Andrew Cagney <cagney@redhat.com>
2506
2507 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2508 FRAME_OBSTACK_ZALLOC.
2509
49ed40de
KB
25102003-08-12 Kevin Buettner <kevinb@redhat.com>
2511
2512 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2513 SSE registers.
2514
b246147c
MK
25152003-08-10 Mark Kettenis <kettenis@gnu.org>
2516
2517 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2518 amd64fbsd_sc_reg_offset): Add extern declarations.
2519 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2520 declarations.
2521
d95fdc0d
BE
25222003-08-11 Ben Elliston <bje@wasabisystems.com>
2523
2524 * MAINTAINERS (write after approval): Update my mail address.
2525
cf6a0e73
AC
25262003-08-10 Andrew Cagney <cagney@redhat.com>
2527
2528 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2529
f837910f
MK
25302003-08-10 Mark Kettenis <kettenis@gnu.org>
2531
e2dbbd2d
MK
2532 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2533 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2534 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2535 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2536 i386bsd_sc_reg_offset): Add extern declarations.
2537 * i386obsd-nat.c: Include "i386-tdep.h"
2538 (_initialize_i386obsd_nat): Remove extern declarations.
2539 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2540 declarations.
2541 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2542 declarations.
2543
f837910f
MK
2544 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2545 instead of frame_read_register.
2546 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2547 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2548 SP_REGNUM.
2549 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2550 instead of frame_unwind_unsigned_register. Use
2551 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2552 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2553 instead of read_register. Use builtin_type_void_data_ptr instead
2554 of builtin_type_void_func_ptr when extracting the address of the
2555 jmp_buf.
2556 (i386_extract_return_value, i386_store_return_value,
2557 i386_pseudo_register_read, i386_pseudo_register_write): Use
2558 register_size instead REGISTER_RAW_SIZE.
2559
edcf254d
AC
25602003-08-10 Andrew Cagney <cagney@redhat.com>
2561
2562 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2563 sprintf. Make "name" constant.
2564
26604a34
MK
25652003-08-10 Mark Kettenis <kettenis@gnu.org>
2566
192285c6
MK
2567 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2568 instead of frame_read_register.
f837910f
MK
2569 (i387_print_float_info): Use get_frame_register and
2570 get_frame_register_unsigned instead of frame_register_read.
192285c6 2571
f0925262
MK
2572 * i386fbsd-nat.c: Include "i386-tdep.h".
2573 (child_resume): Make `eflags' an ULONGEST. Use
2574 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2575 instead of register_read and register_write.
2576
a144416f
MK
2577 * i386bsd-nat.c (fetch_inferior_registers,
2578 store_inferior_registers): Don't use && at the end of a line.
2579 (_initialize_i386bsd_nat): Fix typo.
2580
fec74868
MK
2581 * frame.c (_initialize_frame): Add missing backslash.
2582
87232496
MK
2583 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2584 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2585 and supply_register instead of manipulating the register buffer
2586 directly.
2587
c9b9de0b
MK
2588 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2589 * config/i386/nm-i386sol2.h
2590 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2591
26604a34
MK
2592 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2593 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2594 instructions that GCC likes to mingle into the prologue. Fixes
2595 gdb/1253 and gdb/1255.
2596
25d29d70
AC
25972003-08-09 Andrew Cagney <cagney@redhat.com>
2598
2599 Fix GDB PR cli/926.
2600 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2601 * command.h (add_setshow_uinteger_cmd): Declare.
2602 * frame.c (set_backtrace_cmd): New function.
2603 (show_backtrace_cmd): New function.
2604 * frame.c (_initialize_frame): Replace "set/show
2605 backtrace-below-main" with "set/show backtrace past-main". Add
2606 command "set/show backtrace limit".
2607 (backtrace_past_main): Rename "backtrace_below_main".
2608 (backtrace_limit): New variable.
2609 (get_prev_frame): Update. Check the backtrace_limit.
2610
9ebf4acf
AC
26112003-08-09 Andrew Cagney <cagney@redhat.com>
2612
2613 * defs.h (xstrprintf): Declare.
2614 * utils.c (xstrprintf): New function.
2615 * breakpoint.c (insert_breakpoints): Replace sprintf and
2616 non-literal format strings, with xstrprintf and cleanups.
2617 (delete_breakpoint,breakpoint_re_set): Ditto.
2618 (commands_command, insert_breakpoints): Ditto.
2619 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2620 (break_at_finish_command_1): Ditto.
2621
3771659b
AC
26222003-08-09 Andrew Cagney <cagney@redhat.com>
2623
2624 * MAINTAINERS (language support): List Adam Fedor as Objective C
2625 maintainer.
2626
b4263afa
JB
26272003-08-08 J. Brobecker <brobecker@gnat.com>
2628
2629 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2630 are now multiarched.
2631
d84defb1
JB
26322003-08-08 J. Brobecker <brobecker@gnat.com>
2633
2634 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2635 longer necessary now that hppa64 is partially multiarch'ed.
2636
f786f615
AC
26372003-08-08 Andrew Cagney <cagney@redhat.com>
2638
2639 * interps.c (interp_set): Check for a NULL "old_interp".
2640
c938e9b0
L
26412003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2642
2643 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2644 (install-only): Support DESTDIR.
2645 (uninstall): Likewise.
2646 (install-gdbtk): Likewise.
2647
9a146a11
EZ
26482003-08-08 Elena Zannoni <ezannoni@redhat.com>
2649
2650 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2651 contains something meaningful at all times.
2652
2653Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2654
62599e99 2655 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2656
56296155
BC
2657Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2658
62599e99 2659 * MAINTAINERS (write after approval): Added self.
56296155 2660
9710e734
AC
26612003-08-07 Andrew Cagney <cagney@redhat.com>
2662
2663 * inferior.h (AT_SYMBOL): Define.
2664 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2665 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2666 * mips-tdep.c (mips_call_dummy_address): Delete function.
2667 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2668 set call_dummy_address.
2669
98b3ab73
AC
26702003-08-07 Andrew Cagney <cagney@redhat.com>
2671
2672 * language.c (op_error): Delete function.
2673 (binop_type_check): Delete function.
2674 * language.h (type_op_error, range_op_error): Delete macros.
2675 (op_error): Delete declaration.
2676
2fcf52f0
AC
26772003-08-07 Andrew Cagney <cagney@redhat.com>
2678
2679 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2680
abd4220e 26812003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2682
abd4220e 2683 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2684 (x86_64_push_arguments): Skip the red zone.
abd4220e 2685
9dd5f34f
AC
26862003-08-05 Andrew Cagney <cagney@redhat.com>
2687
2688 * reggroups.c (reggroup_next): Check for the final entry.
2689
e5e78edc
AC
26902003-08-04 Andrew Cagney <cagney@redhat.com>
2691
ab4e3d93
AC
2692 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2693 * cli/cli-script.c (define_command): Call query directly, instead
2694 of passing it a buffer.
2695 * ocd.c (ocd_error): Pass error a constant format string.
2696 * remote-mips.c (mips_error): Use fputs_filtered.
2697
1062ca82
AC
2698 * solib-svr4.c (_initialize_svr4_solib): Update
2699 register_gdbarch_data call.
2700 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2701
fcc1c85c
AC
2702 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2703 (register_gdbarch_data): Delete "free" parameter. Update
2704 comments.
2705 * gdbarch.h, gdbarch.c: Re-generate.
2706 * reggroups.c (_initialize_reggroup): Update.
2707 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2708 * frame-base.c (_initialize_frame_base): Update.
2709 * frame-unwind.c (_initialize_frame_unwind): Update.
2710 * user-regs.c (_initialize_user_regs): Update.
2711 * remote.c (_initialize_remote): Update.
2712 * regcache.c (_initialize_regcache): Update.
2713
116f06ea
AC
2714 * regcache.c (xfree_regcache_descr): Delete function.
2715 (_initialize_regcache): Update call to register_gdbarch_data.
2716 (init_regcache_descr, init_legacy_regcache_descr): Use
2717 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2718
e5e78edc
AC
2719 * remote.c (free_remote_state): Delete function.
2720 (_initialize_remote): Update register_gdbarch_data.
2721 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2722 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2723
6c7d17ba
AC
27242003-08-04 Andrew Cagney <cagney@redhat.com>
2725
2726 * reggroups.c (struct reggroup_el): Define.
2727 (struct reggroups): Delete field "nr_group". Replace array
2728 "group" with a "first" to "last" linked list.
2729 (reggroups_init): Update. Allocate using gdbarch's obstack.
2730 (reggroups_free): Delete function.
2731 (add_group): Update. Add "el" parameter.
2732 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2733 (default_groups): Update.
2734 (reggroup_next): Replace reggroups.
2735 (reggroups_dump): Update.
2736 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2737 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2738 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2739
89b7795b
DJ
27402003-08-04 Daniel Jacobowitz <drow@mvista.com>
2741
2742 * Makefile.in (tui-interp.o): Update dependencies.
2743
306d9ac5
DC
27442003-08-04 David Carlton <carlton@kealia.com>
2745
2746 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2747 to internal_error call.
2748 * source.c (forward_search_command): Add "%s" format argument.
2749 (reverse_search_command): Ditto.
2750 * top.c (quit_confirm): Ditto.
2751 * cli/cli-setshow.c (do_setshow_command): Ditto.
2752 * cp-valprint.c (cp_print_class_method): Replace
2753 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2754 (cp_print_class_member): Ditto.
2755 * event-top.c (command_line_handler): Ditto.
2756 * linux-proc.c (linux_info_proc_cmd): Ditto.
2757 * p-typeprint.c (pascal_type_print_base): Ditto.
2758 * p-valprint.c (pascal_object_print_class_method): Ditto.
2759 (pascal_object_print_class_member): Ditto.
2760 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2761 * remote.c (remote_cisco_section_offsets): Ditto.
2762 * top.c (command_line_input): Ditto.
2763 * utils.c (vwarning,error_stream,quit): Ditto.
2764 * valprint.c (print_floating,print_binary_chars)
2765 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2766
57bfe177
AC
27672003-08-04 Andrew Cagney <cagney@redhat.com>
2768
2769 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2770
e546b999
AC
27712003-08-02 Andrew Cagney <cagney@redhat.com>
2772
2773 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2774 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2775 amd64fbsd-nat.c.
2776
91092ee5
AC
27772003-08-02 Andrew Cagney <cagney@redhat.com>
2778
2779 * Makefile.in: Update all dependencies and definitions.
2780
889f28e2
AF
27812003-08-02 Adam Fedor <fedor@gnu.org>
2782
2783 * linespec.c (is_objc_method_format): New function
2784 (decode_line_1, locate_first_half): Use it.
2785 Fixes PR objc/1298
2786
880bc914
AC
27872003-08-01 Andrew Cagney <cagney@redhat.com>
2788
2789 * NEWS: Mention that m32r is multi-arch.
2790 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2791 * configure.tgt: Recognize m32r-*-*.
2792 * config/m32r/tm-m32r.h: Delete file.
2793 * config/m32r/m32r.mt: New file.
2794 * m32r-rom.c (m32r_upload_command): Use hostent only when
2795 gethostname succeeds, in order to avoid a compilation
2796 warning.
2797 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2798 compiler warning.
2799
19f59343
MS
28002003-08-01 Michael Snyder <msnyder@redhat.com>
2801
2802 * sh-tdep.c (sh_frame_align): New gdbarch method.
2803 (sh_gdbarch_init): Set up frame_align method.
2804
4e7d7511
MS
28052003-07-31 Michael Snyder <msnyder@redhat.com>
2806
2807 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2808 which is already covered by the new frames infrastructure.
2809
63022984
AC
28102003-07-31 Andrew Cagney <cagney@redhat.com>
2811
2812 * user-regs.c (struct user_reg): Add "next" link.
2813 (struct user_regs): Replace "user" with "first" and "last" links.
2814 (append_user_reg): Add pre-allocated "reg" parameter.
2815 (builtin_user_regs): Provide initial value for "last".
2816 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2817 (user_regs_init): Allocate memory from the gdbarch obstack.
2818 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2819 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2820 linked list.
2821 (usernum_to_user_reg): New function.
2822 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2823 (value_of_user_reg): Use usernum_to_user_reg.
2824 (user_regs_free): Delete function.
2825 (_initialize_user_regs): Update register_gdbarch_data call.
2826
7cf6e574
DJ
28272003-07-31 Daniel Jacobowitz <drow@mvista.com>
2828
2829 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2830
c48a845b
MS
28312003-07-30 Michael Snyder <msnyder@redhat.com>
2832
4e7d7511 2833 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2834 * infcall.c (call_function_by_hand): Pass struct_addr to
2835 value_being_returned.
2836 * infcmd.c (print_return_value): Pass zero as struct_addr.
2837 * values.c (value_being_returned): If struct_addr is passed,
2838 use it instead of trying to recover it from the inferior.
2839
f0d8db19
KB
28402003-07-30 Kevin Buettner <kevinb@redhat.com>
2841
2842 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2843 the prologue analyzer won't need to attempt to extract the pc
2844 value from the woefully incomplete dummy frame.
2845 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2846 possible. Disable code which modifies the frame.
2847
e5c113a1
AC
28482003-07-28 Andrew Cagney <cagney@redhat.com>
2849
2850 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2851 to level 2.
2852 (annotate_breakpoints_table, annotate_record): Ditto.
2853 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2854 (annotate_field_name_end, annotate_field_value): Ditto.
2855 (annotate_field_end, annotate_frame_source_begin): Ditto.
2856 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2857 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2858 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2859 (annotate_frame_address_end, annotate_frame_address): Ditto.
2860 (annotate_frame_args, annotate_frame_end): Ditto.
2861 (annotate_frame_where, annotate_arg_begin): Ditto.
2862 (annotate_arg_name_end, annotate_arg_value): Ditto.
2863 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2864 (annotate_function_call, annotate_signal_name): Ditto.
2865 (annotate_signal_string, annotate_signal_name_end): Ditto.
2866 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2867 (annotate_value_begin, annotate_value_history_value): Ditto.
2868 (annotate_value_history_end, annotate_value_end): Ditto.
2869 (annotate_display_begin, annotate_display_number_end): Ditto.
2870 (annotate_display_format, annotate_display_expression): Ditto.
2871 (annotate_display_expression_end, annotate_display_value): Ditto.
2872 (annotate_display_end, annotate_array_section_begin): Ditto.
2873 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2874 (annotate_elt, annotate_array_section_end): Ditto.
2875
bb1db049
AC
28762003-07-28 Andrew Cagney <cagney@redhat.com>
2877
2878 * regcache.c (struct regcache_descr): Update comments on
2879 nr_raw_registers.
2880 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2881 sizeof_raw_register_valid_p.
2882 (init_regcache_descr): Set nr_raw_registers and
2883 sizeof_raw_register_valid_p before calling
2884 init_legacy_regcache_descr.
2885
20e6603c
AC
28862003-07-28 Andrew Cagney <cagney@redhat.com>
2887
2888 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2889 MOD NUM_REGS.
2890
db742940
DJ
28912003-07-28 Daniel Jacobowitz <drow@mvista.com>
2892
2893 * thread.c (info_threads_command): Use get_selected_frame ().
2894 Check that there is at least one non-sentinel frame.
2895
ce7f4371
SC
28962003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2897
2898 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2899 (m68hc11_pop_frame): Remove.
2900 (m68hc11_frame_saved_pc): Remove.
2901 (m68hc11_frame_chain): Remove.
2902 (m68hc11_frame_init_saved_regs): Remove.
2903 (m68hc11_init_extra_frame_info): Remove.
2904 (m68hc11_store_struct_return): Remove.
2905 (m68hc11_saved_pc_after_call): Remove.
2906
1ea653ae
SC
29072003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2908
2909 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2910 frame unwind information.
2911 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2912 and adapted for frame unwinding.
2913 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2914 (m68hc11_unwind_pc): New function.
2915 (m68hc11_frame_unwind_cache): New function to analyze frames.
2916 (m68hc11_frame_this_id): New function to create new frame struct.
2917 (m68hc11_frame_prev_register): New function to unwind a register from
2918 the frame.
2919 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2920 (m68hc11_frame_p): New function for the above.
2921 (m68hc11_frame_base_address): New function to return fp of frame.
2922 (m68hc11_frame_args_address): Update for frame.
2923 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2924 (m68hc11_unwind_sp): New function.
2925 (m68hc11_unwind_dummy_id): New function.
2926 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2927 calls.
2928
c8a7f6ac
SC
29292003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2930
2931 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2932 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2933 when we are beyond the current pc.
2934
3dc990bf
SC
29352003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2936
2937 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2938 from m68hc11_push_arguments.
2939 (m68hc11_push_arguments): Remove.
2940 (m68hc11_push_return_address): Remove.
2941 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2942 handlers; remove deprecated_extra_stack_alignment_needed.
2943
222e5d1d
AC
29442003-07-27 Andrew Cagney <cagney@redhat.com>
2945
2946 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2947 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2948 REAL_PC and not the pointer.
2949 * hppa-hpux-tdep.c: Include frame.h
2950
a7e9a47e
AC
29512003-07-27 Andrew Cagney <cagney@redhat.com>
2952
2953 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2954 GDB_MULTI_ACH_PARTIAL.
2955
7e3dd49e
AC
29562003-07-27 Andrew Cagney <cagney@redhat.com>
2957
2958 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2959 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2960 operator at start and not end of line.
2961 (decode_prologue): Ditto.
2962 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2963 frame_unwind_register_unsigned instead of
2964 frame_unwind_unsigned_register.
2965 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2966 read_register.
2967 (m32r_push_dummy_call): Use register_size instead of
2968 REGISTER_RAW_SIZE.
2969 (m32r_frame_sniffer): Replace m32r_frame_p.
2970 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2971 * m32r-rom.c (report_transfer_performance): Delete extern
2972 declaration.
2973 (m32r_load, m32r_upload_command): Use print_transfer_performance
2974 instead of report_transfer_performance.
2975 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2976 / add_show_from_set.
2977
0880807f
AC
29782003-07-26 Andrew Cagney <cagney@redhat.com>
2979
2980 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2981 store_return_value and extract_struct_value_address.
2982
64ae9269
DJ
29832003-07-26 Daniel Jacobowitz <drow@mvista.com>
2984
2985 PR c++/1267
2986 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2987 NULL, default to the section containing PC.
2988
e286caf2
SC
29892003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2990
2991 * NEWS: Mention "regs" deprecated for m68hc11 too.
2992
2993 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2994 (m68hc11_print_register): New function to print out one register.
2995 (m68hc11_print_registers_info): New function to print registers.
2996 (show_regs): Deprecate and use the above.
2997 (m68hc11_gdbarch_init): Install the print_registers_info.
2998
705b278b
JJ
29992003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3000
3001 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3002 that we have a SIGTRAP before returning non-zero.
3003
63cd4198
EZ
30042003-07-23 Michal Ludvig <mludvig@suse.cz>
3005 Elena Zannoni <ezannoni@redhat.com>
3006
3007 * linespec.c (decode_line_2): Avoid crash if
3008 find_function_start_sal() returns empty record.
3009
6926787d
AS
30102003-07-23 Andreas Schwab <schwab@suse.de>
3011
3012 * ia64-tdep.c (ia64_print_insn): New function.
3013 (ia64_gdbarch_init): Set print_insn to it.
3014 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3015 deprecated_tm_print_insn_info.
3016
708cc1b6
MS
30172003-07-22 Michael Snyder <msnyder@redhat.com>
3018
3019 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3020 handle 8-bit returns (long long).
3021 (h8300h_extract_return_value): Ditto.
3022 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3023
aebd7893
AC
30242003-07-22 Andrew Cagney <cagney@redhat.com>
3025
3026 * gdbarch.c Include "gdb_obstack.h".
3027 (struct gdbarch): Add an "obstack".
3028 (alloc_gdbarch_data): Allocate the gdbarch data using
3029 GDBARCH_OBSTACK_CALLOC.
3030 (free_gdbarch_data): Delete function.
3031 (gdbarch_obstack_zalloc): New function.
3032 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3033 Assert that the architecture is not initialized.
3034 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3035 vector from the obstack.
3036 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3037 architecture obstack.
3038 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3039 (set_gdbarch_data): Assert that the data is not initialized.
3040 (struct gdbarch_data): Delete member "free".
3041 (register_gdbarch_data): Do not initialize "free".
3042 * gdbarch.h, gdbarch.c: Re-generate.
3043
153721e6
AC
30442003-07-22 Andrew Cagney <cagney@redhat.com>
3045
3046 * configure.in (build_warnings): Add -Wformat-nonliteral.
3047 * configure: Re-generate.
3048
c193f044 30492003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
3050
3051 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 3052
c3228f12
EZ
30532003-07-22 Elena Zannoni <ezannoni@redhat.com>
3054
3055 * findvar.c (read_var_value): Remove case for thread local storage
3056 variables. It is now entirely handled by the dwarf2 location
3057 expression code.
3058 * printcmd.c (address_info): Ditto.
3059 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3060 enumeration value.
3061 (struct symbol): Remove objfile field, which was used by
3062 LOC_THREAD_LOCAL_STATIC only.
3063 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3064 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3065 usage of objfile pointer.
3066 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3067 thread local variables.
3068 Add include of objfiles.h.
3069 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3070 storage variables.
3071 * Makefile.in (dwarf2loc.o): Update dependencies.
3072
aef9bcd2
AC
30732003-07-22 Andrew Cagney <cagney@redhat.com>
3074
3075 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3076 get_frame_base.
3077 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3078 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3079 (struct value): Add opaque declaration.
3080 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3081
d95a8903
AC
30822003-07-21 Andrew Cagney <cagney@redhat.com>
3083
3084 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3085 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3086
4db73d49
SC
30872003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3088
3089 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3090 regcache_cooked_read_unsigned instead of read_register.
3091 (m68hc11_saved_pc_after_call): Likewise.
3092 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3093 instead of write_register.
3094 (m68hc11_register_type): New function.
3095 (m68hc11_register_virtual_type): Remove.
3096 (m68hc11_store_return_value): Convert to use the regcache.
3097 (m68hc11_extract_struct_value_address): Likewise.
3098 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3099 m68hc11_register_type; undeprecate store_return_value and
3100 extract_struct_value_address.
3101
ef2b8fcd
SC
31022003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3103
3104 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3105 and translate to use regcache.
3106 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3107
625b0b97
AC
31082003-07-18 Andrew Cagney <cagney@redhat.com>
3109
3110 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3111 * gdbarch.h, gdbarch.c: Re-generate.
3112 * i386-tdep.c (i386_gdbarch_init): Do not set
3113 DWARF2_BUILD_FRAME_INFO.
3114 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3115 unconditionally.
3116 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3117 DWARF2_BUILD_FRAME_INFO.
3118
22b0d388
AC
31192003-07-18 Andrew Cagney <cagney@redhat.com>
3120
3121 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3122 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3123
1ce5d6dd
AC
31242003-07-18 Andrew Cagney <cagney@redhat.com>
3125
3126 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3127 frame_unwind_address_in_block, instead of frame_pc_unwind.
3128 (dwarf2_frame_cache): Ditto.
3129
e6e5e94c
AC
31302003-07-18 Andrew Cagney <cagney@redhat.com>
3131
3132 * user-regs.h (struct gdbarch): Declare opaque.
3133 * ui-out.h (struct ui_file): Declare opaque.
3134 * dwarf2-frame.h (struct frame_info): Declare opaque.
3135
5483d879
KW
31362003-07-18 Kris Warkentin <kewarken@qnx.com>
3137
3138 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3139 #include "...".
3140 (procfs_meminfo): Change strerror to safe_strerror.
3141 (procfs_can_run): Remove K&R badness.
3142
278a7cf7
MS
31432003-07-17 Michael Snyder <msnyder@redhat.com>
3144
3145 * remote-sim.c: Comment typo fix.
3146
606e3b82
AC
31472003-07-17 Andrew Cagney <cagney@redhat.com>
3148
3149 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3150 configure.
3151 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3152 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3153 GDB_MULTI_ARCH_PARTIAL.
3154
c43af07c
EZ
31552003-07-17 Elena Zannoni <ezannoni@redhat.com>
3156
3157 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3158 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3159 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3160
3b85b0f1
TR
31612003-07-16 Theodore A. Roth <troth@openavr.org>
3162
3163 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3164 found.
3165 (avr_frame_unwind_cache): Don't unwind FP for main.
3166 Update a comment.
3167 Save the computed prev_sp.
3168 (avr_saved_regs_unwinder): Remove function.
3169 (avr_frame_prev_register): Use PC unwind logic from
3170 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3171
336d1bba
AC
31722003-07-16 Andrew Cagney <cagney@redhat.com>
3173
3174 * frame-base.h (frame_base_p_ftype): Delete definition.
3175 (frame_base_append_predicate): Delete declaration.
3176 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3177 (frame_unwind_append_predicate): Delete declaration.
3178 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3179 (append_predicate): Delete parameter "p".
3180 (frame_unwind_append_predicate): Delete function.
3181 (frame_unwind_append_sniffer): Update call to append_predicate.
3182 (frame_unwind_free): Delete function.
3183 (_initialize_frame_unwind): Pass NULL as "free" to
3184 register_gdbarch_data.
3185 (frame_unwind_init): Append the dummy_frame_sniffer.
3186 (frame_unwind_find_by_frame): Simplify.
3187 * frame-base.c (struct frame_base_table): Delete field "p".
3188 (append_predicate): Delete parameter "p".
3189 (frame_base_append_predicate): Delete function.
3190 (frame_base_append_sniffer): Update call to append_predicate.
3191 (frame_base_free): Delete function.
3192 (frame_base_find_by_frame): Simplify.
3193 (_initialize_frame_base): Pass NULL as "free" to
3194 register_gdbarch_data.
3195 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3196 (x86_64_sigtramp_frame_sniffer): Replace
3197 "x86_64_sigtramp_frame_p".
3198 (x86_64_init_abi): Set the frame unwind sniffers.
3199 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3200 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3201 (m68k_gdbarch_init): Set the frame unwind sniffers.
3202 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3203 "i386_sigtramp_frame_p".
3204 (i386_frame_sniffer): Replace "i386_frame_p".
3205 (i386_gdbarch_init): Set the frame unwind sniffers.
3206 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3207 (avr_gdbarch_init): Set the frame unwind sniffers.
3208 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3209 "alpha_sigtramp_frame_p"
3210 (alpha_heuristic_frame_sniffer): Replace
3211 "alpha_heuristic_frame_p".
3212 (alpha_gdbarch_init): Set the frame unwind sniffers.
3213 (alpha_dwarf2_init_abi): Ditto.
3214 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3215 "alpha_debug_frame_p".
3216 (alpha_mdebug_frame_base_sniffer): Replace
3217 "alpha_mdebug_frame_base_p".
3218 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3219 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3220 (d10v_gdbarch_init): Set the frame unwind sniffer.
3221 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3222 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3223 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3224 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3225 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3226 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3227
48db5a3c
CV
32282003-07-16 Michael Snyder <msnyder@redhat.com>
3229
3230 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3231 should go thru sh_dsp_register_sim_regno, else the dsp regs
3232 will not get the right values.
3233
32342003-07-16 Corinna Vinschen <vinschen@redhat.com>
3235
3236 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3237 deprecated_store_floating by call to store_typed_floating.
3238 (sh_sh4_register_convert_to_raw): Substitute call to
3239 deprecated_extract_floating by call to extract_typed_floating.
3240
32412003-07-16 Corinna Vinschen <vinschen@redhat.com>
3242
3243 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3244
32452003-07-16 Corinna Vinschen <vinschen@redhat.com>
3246
3247 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3248 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3249 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3250 as possible.
3251 (do_pseudo_register): Remove.
3252 (sh_push_dummy_code): New function.
3253 (sh64_store_struct_return): Rename from sh_store_struct_return.
3254 Only called for sh64 now.
3255 (sh_extract_struct_value_address): Regcache'ify.
3256 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3257 and accomodate new tasks.
3258 (sh64_push_return_address): Rename from sh_push_return_address.
3259 Only called for sh64 now.
3260 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3261 Regcache'ify.
3262 (sh3e_sh4_extract_return_value): Regcache'ify.
3263 (sh_default_store_return_value): Ditto.
3264 (sh3e_sh4_store_return_value): Ditto.
3265 (sh_default_register_byte): Remove.
3266 (sh_sh4_register_byte): Remove.
3267 (sh_default_register_raw_size): Remove.
3268 (sh_sh4_register_raw_size): Remove.
3269 (sh_register_virtual_size): Remove.
3270 (sh_sh3e_register_virtual_type): Remove.
3271 (sh_sh3e_register_type): New function.
3272 (sh_sh4_register_virtual_type): Remove.
3273 (sh_sh4_register_type): New function.
3274 (sh_default_register_virtual_type): Remove.
3275 (sh_default_register_type): New function.
3276 (do_fv_register_info): Add parameters to accomodate call from
3277 sh_print_registers_info.
3278 (do_dr_register_info): Ditto.
3279 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3280 Add parameters to accomodate call from sh_print_registers_info.
3281 (sh_do_fp_register): Ditto.
3282 (sh64_do_pseudo_register): Call do_dr_register_info,
3283 do_fv_register_info and sh_do_fp_register with default parameters.
3284 (sh_do_register): Add parameters to accomodate call from
3285 sh_print_registers_info.
3286 (sh_print_register): Ditto.
3287 (sh_print_registers_info): Rename from sh_do_registers_info.
3288 Add parameters to be used as gdbarch_print_registers_info
3289 implementation. Accomodate removed do_pseudo_register function
3290 pointer.
3291 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3292 function pointer. Call sh_print_register with default parameters.
3293 (sh64_do_registers_info): Call sh_print_registers_info instead of
3294 sh_do_registers_info.
3295 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3296 detection of deprecated vs. non-deprecated functionality.
3297 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3298 function pointer assignments by direct function calls.
3299
e8a89fe2
AC
33002003-07-15 Andrew Cagney <cagney@redhat.com>
3301
3302 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3303 (frame_register_unwind, create_new_frame): Ditto.
3304 (legacy_get_prev_frame, get_frame_type): Ditto.
3305 (get_frame_base_address): Use frame_base_find_by_frame.
3306 (get_frame_locals_address): Use frame_base_find_by_frame.
3307 (get_frame_args_address): Use frame_base_find_by_frame.
3308 * frame-base.h (frame_base_sniffer_ftype): Declare.
3309 (frame_base_append_sniffer): Declare.
3310 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3311 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3312 (frame_base_append_sniffer): New function.
3313 (frame_base_append_predicate): Add a NULL sniffer.
3314 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3315 (struct frame_base_table): Add "sniffer".
3316 (frame_base_free): Free the "sniffer" table.
3317 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3318 (frame_unwind_append_sniffer): Declare.
3319 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3320 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3321 (struct frame_unwind_table): Add "sniffer", delete "middle".
3322 (append_predicate): Add "sniffer" parameter, append the sniffer.
3323 (frame_unwind_init): Update append_predicate call.
3324 (frame_unwind_append_sniffer): New function.
3325 (frame_unwind_append_predicate): Update append_predicate call.
3326 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3327
0714963c
AC
33282003-07-15 Andrew Cagney <cagney@redhat.com>
3329
3330 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3331 before code inhibiting repeated unwind attempts. Add to
3332 commentary on that test's problems.
3333 * blockframe.c (inside_main_func): Look for "main" in the minimal
3334 symbol table.
3335 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3336 identical.
3337
d9170e22
AC
33382003-07-15 Andrew Cagney <cagney@redhat.com>
3339
3340 * complaints.c (struct explanation): Define.
3341 (struct complaints): Change type of "explanation" to "struct
3342 explanation".
3343 (symfile_explanations): Convert to a "struct explanation" table.
3344 (vcomplaint): Update.
3345
eba29c8c
ML
33462003-07-15 Michal Ludvig <mludvig@suse.cz>
3347
3348 * x86-64-linux-nat.c (regmap): Removed.
3349 (supply_gregset, fill_gregset): Call
3350 x86_64_linux_(fill,supply)_gregset functions.
3351 * x86-64-linux-tdep.c (USER_*): New defines.
3352 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3353 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3354 New functions.
3355 (fetch_core_registers): Ditto.
3356 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3357 * x86-64-linux-tdep.h: New file.
3358 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3359 and core-regset.o.
3360 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3361
68cc0bfb
MK
33622003-07-13 Mark Kettenis <kettenis@gnu.org>
3363
88a115f7
MK
3364 * x86-64-tdep.c (x86_64_store_return_value): Use
3365 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3366
68cc0bfb
MK
3367 * configure.host: Add x86_64-*-freebsd*.
3368 * configure.tgt: Add x86_64-*-freebsd*.
3369 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3370 * amd64fbsd-nat.c: New file.
3371 * amd64fbsd-tdep.c: New file.
3372 * config/i386/nm-fbsd64.h: New file.
3373 * config/i386/fbsd64.mh: New file.
3374 * config/i386/fbsd64.mt: New file.
3375
138e7be5
MK
33762003-07-11 Mark Kettenis <kettenis@gnu.org>
3377
3378 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3379 `sc_regs_offset' and `sc_fpregs_offset'.
3380 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3381 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3382 (alpha_sigtramp_register_address): Rewrite to use new members of
3383 `struct gdbarch_tdep'.
3384 (alpha_gdbarch_init): Initialize new members of struct
3385 gdbarch_tdep'.
3386 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3387 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3388 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3389 (alphafbsd_pc_in_sigtramp): Implement.
3390 (alphafbsd_sigtramp_offset): New function.
3391 (alphafbsd_sigcontext_addr): New function.
3392 (alphafbsd_init_abi): Initialize signal trampoline related members
3393 of `struct gdbarch_tdep'.
3394 (_initialize_alphafbsd_tdep): Add prototype.
3395
95303a68
TR
33962003-07-11 Theodore A. Roth <troth@openavr.org>
3397
ba292e4c
TR
3398 * Makefile.in (install-only): Quote sed expression when generating
3399 transformed_name.
95303a68 3400
6896c0c7
RH
34012003-07-11 Richard Henderson <rth@redhat.com>
3402
3403 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3404 * dwarf2-frame.c: Include complaints.h.
3405 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3406 variable initialization; return NULL on error.
3407 (decode_frame_entry): New.
3408
8edd5d01
AC
34092003-07-11 Andrew Cagney <cagney@redhat.com>
3410
c4a09524
AC
3411 * frame.h (frame_address_in_block): Delete declaration.
3412 * blockframe.c (frame_address_in_block): Delete function.
3413 (get_frame_block): Use get_frame_address_in_block.
3414 (block_innermost_frame): Ditto.
3415 * stack.c (print_frame, backtrace_command_1): Ditto.
3416
8edd5d01
AC
3417 * frame.h (get_frame_address_in_block): Declare.
3418 (frame_unwind_address_in_block): Declare.
3419 * frame.c (frame_unwind_address_in_block): New function.
3420 (get_frame_address_in_block): New function.
3421
f7968451
AC
34222003-07-10 Andrew Cagney <cagney@redhat.com>
3423
3424 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3425 pre-default. Note: re-generate has no effect.
3426
ae99b398
AC
34272003-07-10 Andrew Cagney <cagney@redhat.com>
3428
3429 * gdbarch.sh: When a variable, but not a function, compare against
3430 0. Fix problem in previous patch.
3431 * gdbarch.c: Re-generate.
3432
956ac328
AC
34332003-07-10 Andrew Cagney <cagney@redhat.com>
3434
3435 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3436 functions against NULL, not 0.
3437 * gdbarch.c: Re-generate.
3438
287c3240
FF
34392003-07-10 Fred Fish <fnf@ninemoons.com>
3440
3441 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3442 null string instead of a null pointer.
3443 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3444
32f63c4b
MS
34452003-07-09 Michael Snyder <msnyder@redhat.com>
3446
3447 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3448
402ecd56
MK
34492003-07-09 Mark Kettenis <kettenis@gnu.org>
3450
3451 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3452 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3453 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3454 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3455 * x86-64-tdep.c: ... from here.
3456
c481dac7
AS
34572003-07-09 Andreas Schwab <schwab@suse.de>
3458
3459 * m68k-tdep.h (enum struct_return): Define.
3460 (struct gdbarch_tdep): Add struct_return.
3461 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3462 bytes are padded to the right, not to the left. Pass struct value
3463 address in register %a1, not on stack.
3464 (m68k_use_struct_convention): New function.
3465 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3466 struct_return in tdep to pcc_struct_return.
3467 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3468 reg_struct_return.
3469
64176fa3
JB
34702003-07-09 Joel Brobecker <brobecker@gnat.com>
3471
3472 * somread.c (som_symfile_offsets): Fix compilation error.
3473
96a4ee76
AC
34742003-07-09 Andrew Cagney <cagney@redhat.com>
3475
3476 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3477 Add comments about the checks.
3478
1517c6d1
AC
34792003-07-08 Andrew Cagney <cagney@redhat.com>
3480
3481 * Makefile.in: Make dependency section headers consistent.
3482 (config_h): Move to $BUILD headers section.
3483 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3484 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3485 (ada-exp.tab.c): Move to YACC/LEX section.
3486 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3487 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3488
dc5dd1eb
KW
34892003-07-08 Kris Warkentin <kewarken@qnx.com>
3490
3491 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
3492 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3493 of strerror with safe_strerror, use ISO C function definitions,
3494 and replace instances of sprintf with snprintf.
dc5dd1eb 3495
612dde91
AC
34962003-07-07 Andrew Cagney <cagney@redhat.com>
3497
3498 * frame.c (get_prev_frame): Enable check for identical frames.
3499 Update comments. Update error messages.
3500
492c11d3
JB
35012003-07-07 Joel Brobecker <brobecker@gnat.com>
3502
3503 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3504
376a5a49
JB
35052003-07-07 Joel Brobecker <brobecker@gnat.com>
3506
3507 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3508 sort_symtab_syms, no longer necessary.
3509
22b4a9ad
JB
35102003-07-07 Joel Brobecker <brobecker@gnat.com>
3511
3512 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3513
5bbcb741
JB
35142003-07-07 Joel Brobecker <brobecker@gnat.com>
3515
3516 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3517 (mips_register_byte): Likewise.
3518
c139e7d9
DJ
35192003-07-07 Daniel Jacobowitz <drow@mvista.com>
3520
3521 * Makefile.in (sparc_tdep_h): New.
3522 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3523 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3524 * sparc-linux-nat.c: Include "sparc-tdep.h".
3525 * sparc-nat.c: Likewise.
3526 * sparc-tdep.c: Likewise.
3527 * sparc64nbsd-nat.c: Likewise.
3528 * sparcnbsd-nat.c: Likewise.
3529 * sparcnbsd-tdep.c: Likewise.
3530 * sparc-tdep.h: New file.
3531 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3532 and sparc_npc_regnum.
3533
fd8f87c5
DJ
35342003-07-07 Daniel Jacobowitz <drow@mvista.com>
3535
3536 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3537 (mips_linux_cannot_store_register): List supported instead of
3538 unsupported registers.
3539
13adf674
DJ
35402003-07-07 Daniel Jacobowitz <drow@mvista.com>
3541
3542 * disasm.c (dump_insns): Separate instructions from addresses.
3543
8de307e0
AS
35442003-07-07 Andreas Schwab <schwab@suse.de>
3545
3546 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3547 dependencies.
3548 * m68k-tdep.c (NUM_FREGS): Delete.
3549 (SIG_PC_FP_OFFSET): Delete.
3550 (TARGET_M68K): Delete.
3551 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3552 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3553 P_MOVEL_SP, P_MOVEML_SP): Define.
3554 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3555 P_TRAP): Delete.
3556 (m68k_register_raw_size): Delete.
3557 (m68k_register_virtual_size): Delete.
3558 (m68k_register_type): Renamed from m68k_register_virtual_type and
3559 add gdbarch argument.
3560 (m68k_store_struct_return): Delete.
3561 (m68k_deprecated_extract_return_value): Delete.
3562 (m68k_deprecated_extract_struct_value_address): Delete.
3563 (m68k_frame_chain): Delete.
3564 (m68k_frame_saved_pc): Delete.
3565 (m68k_fix_call_dummy): Delete.
3566 (m68k_push_dummy_frame): Delete.
3567 (m68k_pop_frame): Delete.
3568 (m68k_extract_return_value): New function.
3569 (m68k_store_return_value): Rewrite using regcache.
3570 (m68k_extract_struct_value_address): Rewrite using regcache.
3571 (m68k_push_dummy_call): New function.
3572 (struct m68k_frame_cache): Define.
3573 (m68k_alloc_frame_cache): New function.
3574 (m68k_analyze_frame_setup): New function.
3575 (m68k_analyze_register_saves): New function.
3576 (m68k_analyze_prologue): New function.
3577 (m68k_skip_prologue): Rewrite using above functions.
3578 (m68k_unwind_pc): New function.
3579 (m68k_frame_cache): New function.
3580 (m68k_frame_this_id): New function.
3581 (m68k_frame_prev_register): New function.
3582 (m68k_frame_unwind): New variable.
3583 (m68k_frame_p): New function.
3584 (m68k_sigtramp_frame_cache): New function.
3585 (m68k_sigtramp_frame_this_id): New function.
3586 (m68k_sigtramp_frame_prev_register): New function.
3587 (m68k_sigtramp_frame_unwind): New variable.
3588 (m68k_sigtramp_frame_p): New function.
3589 (m68k_frame_base_address): New function.
3590 (m68k_frame_base): New function.
3591 (m68k_unwind_dummy_id): New function.
3592 (fill_gregset): Use regcache_collect.
3593 (fill_fpregset): Likewise.
3594 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3595 defined.
3596 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3597 deprecated_init_frame_pc, deprecated_store_struct_return,
3598 deprecated_extract_return_value, deprecated_store_return_value,
3599 deprecated_frame_chain, deprecated_frame_saved_pc,
3600 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3601 deprecated_register_virtual_size,
3602 deprecated_max_register_raw_size,
3603 deprecated_max_register_virtual_size,
3604 deprecated_register_virtual_type, deprecated_register_size,
3605 deprecated_register_byte, deprecated_register_bytes,
3606 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3607 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3608 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3609 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3610 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3611 deprecated_push_dummy_frame, deprecated_pop_frame,
3612 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3613 only if SYSCALL_TRAP is defined. Set extract_return_value,
3614 store_return_value, extract_struct_value_address, register_type,
3615 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3616 predicates.
3617 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3618 M68K_MAX_REGISTER_SIZE): Define.
3619 (struct m68k_sigtramp_info): Define.
3620 (struct gdbarch_tdep): Add get_sigtramp_info.
3621 * m68klinux-nat.c (fetch_register): Use register_size instead of
3622 REGISTER_RAW_SIZE. Don't put assignment in if.
3623 (store_register): Likewise.
3624 (fetch_inferior_registers): Likewise.
3625 (store_inferior_registers): Likewise.
3626 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3627 (m68k_linux_frame_saved_pc): Delete.
3628 (m68k_linux_sigcontext_reg_offset,
3629 m68k_linux_ucontext_reg_offset): Define.
3630 (m68k_linux_get_sigtramp_info): New function.
3631 (m68k_linux_extract_return_value): Rewrite using regcache.
3632 (m68k_linux_store_return_value): Likewise.
3633 (m68k_linux_extract_struct_value_address): Likewise.
3634 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3635 Don't set deprecated_frame_saved_pc,
3636 deprecated_extract_return_value, deprecated_store_return_value,
3637 deprecated_extract_struct_value_address. Set
3638 extract_return_value, store_return_value,
3639 extract_struct_value_address.
3640
eb8bc282
AC
36412003-07-07 Andrew Cagney <cagney@redhat.com>
3642
3643 * expprint.c: Include "user-regs.h" instead of "frame.h".
3644 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3645 frame_map_regnum_to_name.
3646 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3647 (frame_map_name_to_regnum): Simplify, call
3648 user_reg_map_name_to_regnum.
3649 (frame_map_regnum_to_name): Simplify, call
3650 user_reg_map_regnum_to_name.
3651 (frame_register_unwind): Update.
3652 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3653 (_initialize_frame_reg): Call user_reg_add_builtin.
3654 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3655 (value_of_register): Use value_of_user_reg.
3656 * eval.c (evaluate_subexp_standard): Update.
3657 * parse.c (write_dollar_variable): Update.
3658 * d10v-tdep.c (d10v_print_registers_info): Update.
3659 * infcmd.c (registers_info): Update.
3660 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3661 (builtin_regs_h): Delete macro.
3662 (user_regs_h): Define.
3663 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3664 (builtin-regs.o): Delete target.
3665 (user-regs.o): Specify dependencies.
3666 (expprint.o): Update dependencies.
3667 (findvar.o): Update dependencies.
3668 (frame.o): Update dependencies.
3669 (std-regs.o): Update dependencies.
3670
9f476a01
CF
36712003-07-06 Christopher Faylor <cgf@redhat.com>
3672
3673 * win32-nat.c (solib_symbols_add): Use one variable for all section
3674 address stuff. Pass variable rather than address of variable to
3675 safe_symbol_file_add.
3676
a731b831
AS
36772003-07-06 Andreas Schwab <schwab@suse.de>
3678
3679 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3680
9f83329d
JB
36812003-07-04 Joel Brobecker <brobecker@gnat.com>
3682
3683 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3684
27e28cc5
KW
36852003-07-04 Kris Warkentin <kewarken@qnx.com>
3686
3687 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3688
36892003-07-04 Kris Warkentin <kewarken@qnx.com>
3690
3691 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3692 * config/i386/nto.mh: New file.
3693 * config/i386/nm-nto.h: New file.
3694 * configure.host: Add i[3456]86-*-nto*.
3695
100f2e98
JB
36962003-07-03 Joel Brobecker <brobecker@gnat.com>
3697
3698 * remote-vx.c (vx_add_symbols): Fix compilation error.
3699
e23457df
AC
37002003-07-03 Andrew Cagney <cagney@redhat.com>
3701
3702 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3703 * gdbarch.h, gdbarch.c: Re-generate.
3704 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3705 (legacy_register_name): Declare.
3706 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3707 (REGISTER_NAME): Define.
3708 * sparc-tdep.c (legacy_register_name): New function.
3709 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3710 (REGISTER_NAME): Define.
3711 (hppa64_register_name): Declare.
3712 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3713 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3714 (hppa64_register_name): New function.
3715 (hppa_register_name): New function.
3716 * arch-utils.c (legacy_register_name): Delete.
3717 * arch-utils.h (legacy_register_name): Delete.
3718
38caaeec
DJ
37192003-07-03 Daniel Jacobowitz <drow@mvista.com>
3720
3721 * cli/cli-interp.c (cli_interpreter_resume): Update the
3722 cli_uiout's stream to gdb_stdout.
3723
dadd712e
AC
37242003-07-03 Andrew Cagney <cagney@redhat.com>
3725
3726 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3727 predicate.
3728 * gdbarch.h, gdbarch.c: Re-generate.
3729 * regcache.c (init_regcache_descr): Use legacy code when either
3730 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3731
c7f1390e
DJ
37322003-07-02 Daniel Jacobowitz <drow@mvista.com>
3733
3734 * NEWS: Move "set logging" entry into GDB 6.0 section.
3735
4bc8c588
JB
37362003-07-02 Jim Blandy <jimb@redhat.com>
3737
a9dd42f1
JB
3738 * s390-tdep.c (struct frame_extra_info): new member:
3739 'stack_bought_valid'.
3740 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3741 initialize fextra_info->stack_bought.
3742 (s390_frameless_function_invocation): Don't trust the value of
3743 fextra_info_ptr->stack_bought unless
3744 fextra_info->stack_bought_valid is set.
3745
4bc8c588
JB
3746 New S390 prologue analyzer.
3747 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3748 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3749 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3750 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3751 compute_x_addr, s390_on_stack, s390_store,
3752 s390_get_signal_frame_info): New functions.
3753 (S390_NUM_SPILL_SLOTS): New macro.
3754 (s390_get_frame_info): Rewritten.
3755 (is_arg_reg): Deleted.
3756
3757 Break out the decoding of S/390 instructions into separate
3758 functions, to make it more legible, and easier to check
3759 against the spec.
3760 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3761 is_rx, is_rxe): New functions.
3762 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3763 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3764 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3765 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3766 enums for opcode values. (Is this an improvement?)
3767
fd13a04a
AC
37682003-07-02 Andrew Cagney <cagney@redhat.com>
3769
3770 * i386-tdep.c: Revert change committed as part of trad-frame code
3771 below.
3772
3f8091c1
DJ
37732003-07-02 Daniel Jacobowitz <drow@mvista.com>
3774
3775 * breakpoint.c (insert_catchpoint): Make static.
3776
8dd5115e
AS
37772003-07-02 Andreas Schwab <schwab@suse.de>
3778
3779 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3780 former ia64_push_arguments and ia64_push_return_address, and use
3781 regcache functions instead of read/write_register.
3782 (ia64_gdbarch_init): Set push_dummy_call instead of
3783 deprecated_push_arguments and deprecated_push_return_address.
3784
a2229c23
AJ
37852003-07-01 Andreas Jaeger <aj@suse.de>
3786
3787 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3788 before the call.
3789 Set %rax only to number of SSE registers used.
3790
3b3850e8
AC
37912003-07-01 Andrew Cagney <cagney@redhat.com>
3792
3793 * trad-frame.h: Update comments, a -1 .addr is reserved.
3794 (trad_frame_value_p, trad_frame_addr_p): Declare.
3795 (trad_frame_reg_p): Declare.
3796 (trad_frame_set_value): Rename trad_frame_register_value.
3797 (trad_frame_set_unknown): Declare.
3798 * trad-frame.c (trad_frame_realreg_p): New function.
3799 (trad_frame_addr_p, trad_frame_value_p): New function.
3800 (trad_frame_set_unknown): New function.
3801 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3802 (trad_frame_prev_register): Use trad_frame_realreg_p,
3803 trad_frame_addr_p and trad_frame_value_p.
3804 (trad_frame_set_value): Rename trad_frame_register_value.
3805 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3806 and trad_frame_set_value.
a2229c23 3807
4d819d0e
JB
38082003-06-30 Jim Blandy <jimb@redhat.com>
3809
3810 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3811 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3812 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3813 for 16 registers, and then 32 more bytes.
3814 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3815 New macros.
3816 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3817 Move up in the file, since it's now used by is_simple_arg.
3818 (is_simple_arg): Don't assume registers are four bytes long.
3819 Exclude all double arguments. Extended floats are not simple
3820 args.
3821 (is_power_of_two): New function.
3822 (pass_by_copy_ref): Call is_power_of_two, and check that the
3823 length fits in a register, rather than listing all the acceptable
3824 sizes. Extended floats are not passed by reference.
3825 (s390_push_arguments): Don't assume registers are four bytes long.
3826 Reserve an argument register to point to the buffer for structures
3827 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3828 S390_STACK_FRAME_OVERHEAD.
3829
1ad828f1
AS
38302003-06-30 Andreas Schwab <schwab@suse.de>
3831
3832 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3833 format error message.
3834
39b00981
JB
38352003-06-30 Joel Brobecker <brobecker@gnat.com>
3836
3837 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3838
b2a7f303
DC
38392003-06-30 David Carlton <carlton@kealia.com>
3840
3841 Band-aid for PR c++/1245.
3842 * Makefile.in (cp-support.o): Depend on complaints_h.
3843 * cp-support.c: Include complaints.h. Add declaration for
3844 find_last_component.
3845 (cp_find_first_component): Separate code into
3846 cp_find_first_component_aux.
3847 (cp_find_first_component_aux): Call demangled_name_complaint.
3848 (demangled_name_complaint): New.
3849
a257b5bb
AC
38502003-06-30 Andrew Cagney <cagney@redhat.com>
3851
3852 * remote.c (remote_write_bytes): Explicitly compute and then use
3853 the payload size. Update comments to reflect. Fixes problem of
3854 GDB not sending small packets as found by Fred Fish.
3855
0a2cfde4
AC
38562003-06-30 Andrew Cagney <cagney@redhat.com>
3857
3858 * remote.c (remote_async_wait): Fix -Wformat problem.
3859
3fcb8548
AC
38602003-06-29 Andrew Cagney <cagney@redhat.com>
3861
3862 * remote.c (remote_wait): Call error, and not warning, when the
3863 packet is corrupt.
3864 (remote_async_wait): Ditto.
3865
9f9970a3
DJ
38662003-06-29 Daniel Jacobowitz <drow@mvista.com>
3867
3868 * sparc-tdep.c (sparc_y_regnum): Make external again.
3869
83a8ccca
DJ
38702003-06-29 Daniel Jacobowitz <drow@mvista.com>
3871
3872 * cli/cli-logging.c (pop_output_files): Add void to function
3873 definition.
3874
d2cf594a
AC
38752003-06-29 Andrew Cagney <cagney@redhat.com>
3876
3877 * frame.c (frame_register_unwind): Use unsigned char when dumping
3878 the buffer contents.
3879
0fac0b41
DJ
38802003-06-28 Daniel Jacobowitz <drow@mvista.com>
3881
3882 * cli/cli-logging.c: New file.
3883 * cli-out.c (struct ui_out_data): Add original_stream.
3884 (cli_redirect): New function.
3885 (cli_ui_out_impl): Add cli_redirect.
3886 (cli_out_new): Initialize original_stream.
3887 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3888 (uo_redirect, ui_out_redirect): New.
3889 * ui-out.h (struct ui_out_impl): Add redirect member.
3890 (redirect_ftype): New.
3891 (ui_out_redirect): Add prototype.
3892 * Makefile.in: Add rules for cli-logging.c.
3893 * NEWS: Mention "set logging".
3894
88a07d7c
EZ
38952003-06-27 Elena Zannoni <ezannoni@redhat.com>
3896
3897 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3898
4eb58876
AC
38992003-06-27 Andrew Cagney <cagney@redhat.com>
3900
3901 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3902 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3903 * avr-tdep.c (avr_call_dummy_address): Delete function.
3904 (avr_gdbarch_init): Do not set call_dummy_address.
3905
1549f619
EZ
39062003-06-27 Elena Zannoni <ezannoni@redhat.com>
3907
3908 * symfile.c (syms_from_objfile): Move variables to inner block.
3909 Move the checks for the non-mainline case a bit earlier to avoid
3910 doing some useless computations.
3911
3cb3398d
EZ
39122003-06-27 Elena Zannoni <ezannoni@redhat.com>
3913
3914 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3915
3799ccc6
EZ
39162003-06-26 Elena Zannoni <ezannoni@redhat.com>
3917
3918 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3919 sections.
3920
ce1f6491
MC
39212003-06-26 Michael Chastain <mec@shout.net>
3922
3923 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3924 gdb/testsuite/gdb.c++/pr-1210.exp.
3925
d958dfd0
AC
39262003-06-26 Andrew Cagney <cagney@redhat.com>
3927
3928 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3929 altivec_expression.h and altivec_registers.h.
3930
d31431ed
AC
39312003-06-26 Andrew Cagney <cagney@redhat.com>
3932
3933 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3934 info->mach when MIPS16. Patch suggested by Fred Fish.
3935
714b1282
AC
39362003-06-26 Andrew Cagney <cagney@redhat.com>
3937
3938 * utils.c (internal_vproblem): Print the problem to a reason
3939 buffer and then pass to query. Make the msg variable more local.
3940
42efa47a
AC
39412003-06-26 Andrew Cagney <cagney@redhat.com>
3942
3943 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3944 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3945 * gdbarch.h, gdbarch.c: Re-generate.
3946 * frame-base.c (default_frame_args_address): Update. Use
3947 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3948 not available.
3949 (default_frame_locals_address): Ditto for
3950 DEPRECATED_FRAME_LOCALS_ADDRESS.
3951 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3952 (vax_frame_num_args): Update.
3953 (vax_gdbarch_init): Update.
3954 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3955 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3956 * mcore-tdep.c (mcore_gdbarch_init): Update.
3957 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3958 * ia64-tdep.c (ia64_gdbarch_init): Update.
3959 * symtab.h (address_class): Update comments.
3960 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3961 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3962 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3963 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3964 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3965 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3966 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3967 * alpha-mdebug-tdep.c: Update.
3968 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3969
8ffd9b1b
AJ
39702003-06-26 Andreas Jaeger <aj@suse.de>
3971
3972 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3973 of SSE registers so that varargs functions work. Rework handling
3974 of passing arguments on the stack.
3975 (x86_64_store_return_value): Return double and float values in SSE
3976 register.
3977
e8ac10a6
MC
39782003-06-24 Michael Chastain <mec@shout.net>
3979
3980 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3981 the "constructor breakpoints ignored" bug.
3982
986af8e6
DC
39832003-06-25 David Carlton <carlton@kealia.com>
3984
3985 * MAINTAINERS: Update e-mail address.
3986
d64558a5
JB
39872003-06-24 Jim Blandy <jimb@redhat.com>
3988
e538d2d7
JB
3989 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3990
02631ec0
JB
3991 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3992 function.
3993 (ppc_linux_init_abi): Register it as the
3994 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3995
e716d87a
JB
3996 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3997 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3998 method.
3999
d64558a5
JB
4000 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4001 (ppc64_standard_linkage_target): Use it.
4002
449a5da4
AC
40032003-06-23 Andrew Cagney <cagney@redhat.com>
4004
4005 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4006 for 0 "int0" and 4 "int32" sized registers.
4007 * gdbtypes.c (builtin_type_int0): Define.
4008 (build_gdbtypes): Initialize builtin_type_int0.
4009 * gdbtypes.h (builtin_type_int0): Declare.
4010
b2a02dda
SC
40112003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4012
4013 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4014 as characters are unsigned.
4015
fba3138e
DJ
40162003-06-22 Daniel Jacobowitz <drow@mvista.com>
4017
4018 PR gdb/1179
4019 * dwarfread.c (struct_type): Skip static fields without crashing.
4020
f6c8180b
AC
40212003-06-22 Andrew Cagney <cagney@redhat.com>
4022
4023 GDB 6.0 branch created.
f2c06f52
AC
4024 * README: Update.
4025 * PROBLEMS: Update. Empty.
4026 * NEWS: Update.
f6c8180b 4027
ae822768
DJ
40282003-06-22 Daniel Jacobowitz <drow@mvista.com>
4029
4030 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4031 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4032
261de166
AC
40332003-06-22 Andrew Cagney <cagney@redhat.com>
4034
4035 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4036 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4037 Velikov.
4038
30e94205
DJ
40392003-06-22 Daniel Jacobowitz <drow@mvista.com>
4040
4041 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4042 compilers.
4043
9e14d721
DJ
40442003-06-21 Daniel Jacobowitz <drow@mvista.com>
4045
4046 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4047 argument of val_print.
4048 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4049 to the address argument of baseclass_offset or target_read_memory.
4050 Do add it to the argument of cp_print_value_fields.
4051
a4b8ebc8
AC
40522003-06-21 Andrew Cagney <cagney@redhat.com>
4053
4054 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4055 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4056 instead of 0..NUM_REGS.
4057 (mips_register_reggroup_p): New function.
4058 (mips_pseudo_register_write): New function.
4059 (mips_pseudo_register_read): New function.
4060 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4061 based on the register's type.
4062 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4063 cooked.
4064 (mips_get_saved_register): Simplify. Assert that REGNO is a
4065 pseudo / cooked.
4066 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4067 (mips_register_type): Replace mips_register_virtual_type. Map
4068 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4069 when available.
4070 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4071 that the register is cooked / virtual.
4072 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4073 Only get the extra info when needed.
4074 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4075 (mips32_heuristic_proc_desc): Fetch the cooked register.
4076 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4077 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4078 (mips_print_register): Use gdbarch_register_type, instead of
4079 REGISTER_VIRTUAL_TYPE.
4080 (print_gp_register_row): Use gdbarch_register_type, instead of
4081 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4082 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4083 Print the pseudo / cooked registers.
4084 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4085 Print the pseudo / cooked registers.
4086 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4087 REG_NUM is pseudo / cooked.
4088 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4089 (mips_n32n64_xfer_return_value): Ditto.
4090 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4091 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4092 (mips_register_sim_regno): New function.
4093 (mips_gdbarch_init): Set deprecated_register_byte,
4094 register_group_p, pseudo_register_write, pseudo_register_read,
4095 register_sim_regno, and num_pseudo_regs. Set register_type,
4096 instead of register_virtual_type.
4097 * Makefile.in (mips-tdep.o): Update dependencies.
4098 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4099 REGISTER_VIRTUAL_TYPE.
4100 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4101 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4102 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4103 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4104 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4105
325ed089
DJ
41062003-06-21 Daniel Jacobowitz <drow@mvista.com>
4107
4108 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4109 * cli/cli-cmds.c: Include "gdb_vfork.h".
4110 (shell_escape): Use vfork.
4111
f0e7d0e8
AC
41122003-06-21 Andrew Cagney <cagney@redhat.com>
4113
c57bb9fa
AC
4114 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4115 32 bit floating-point register saves.
4116
6e51443a
AC
4117 * frame.h (deprecated_unwind_get_saved_register): Delete.
4118 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4119 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4120 and deprecated_get_next_frame_hack instead of
4121 deprecated_unwind_get_saved_register.
4122
ed183c7c
AC
4123 * mips-tdep.c (mips_dump_tdep): Do not print
4124 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4125
f0e7d0e8
AC
4126 * frame.c (get_frame_register): New function.
4127 (frame_unwind_register_signed): New function.
4128 (get_frame_register_signed): New function.
4129 (frame_unwind_register_unsigned): New function.
4130 (get_frame_register_unsigned): New function.
4131 * frame.h: Add comments on naming schema.
4132 (get_frame_register, frame_unwind_register_signed): Declare.
4133 (get_frame_register_signed, get_frame_register_signed): Declare.
4134 (frame_unwind_register_unsigned): Declare.
4135 (get_frame_register_unsigned): Declare.
4136
2224d941
TR
41372003-06-20 Theodore A. Roth <troth@openavr.org>
4138
4139 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4140
8619218d
TR
41412003-06-20 Theodore A. Roth <troth@openavr.org>
4142
4143 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4144 (avr_read_sp): Ditto.
4145
0b1b50c0
DJ
41462003-06-20 Daniel Jacobowitz <drow@mvista.com>
4147
4148 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4149 * config/arm/nm-linux.h: Likewise.
4150 * config/arm/tm-linux.h: Likewise.
4151 * config/ia64/nm-linux.h: Likewise.
4152 * config/ia64/tm-ia64.h: Likewise.
4153 * config/s390/tm-linux.h: Likewise.
4154 * config/s390/tm-s390.h: Likewise.
4155 * s390-nat.c: Likewise.
4156 * s390-tdep.c: Likewise.
4157
4158 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4159 * config/ia64/linux.mt: Likewise.
4160 * config/m68k/linux.mh: Likewise.
4161 * config/mips/linux.mt: Likewise.
4162 * config/powerpc/linux.mh: Likewise.
4163 * config/sh/linux.mt: Likewise.
4164
c8c18e65
KW
41652003-06-19 Kris Warkentin <kewarken@qnx.com>
4166
4167 * solib.c (solib_open): Change tests for whether to search
4168 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4169 comments.
4170
dcccef2e
TR
41712003-06-19 Theodore A. Roth <troth@openavr.org>
4172
4173 * avr-tdep.c (avr_frame_address): Delete function.
4174 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4175 set_gdbarch_frame_args_address.
4176
5861a190
AC
41772003-06-19 Andrew Cagney <cagney@redhat.com>
4178
4179 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4180 (REGISTER_CONVERT_FROM_TYPE): Delete.
4181 (mips_register_convert_to_type): Delete declaration.
4182 (mips_register_convert_from_type): Delete declaration.
4183 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4184 kernel/.
4185
0274a8ce
MS
41862003-06-19 Michael Snyder <msnyder@redhat.com>
4187
4188 * linux-nat.h: New file.
4189 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 4190 * lin-lwp.c: Include linux-nat.h.
0274a8ce 4191 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 4192 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
4193 (linux_make_note_section): Iterate over lwps instead of threads.
4194 (linux_do_thread_registers): Use lwp instead of merged pid.
4195 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 4196 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
4197 Add dependency on linux_nat_h.
4198
adf5f719
TR
41992003-06-19 Theodore A. Roth <troth@openavr.org>
4200
4201 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4202
6766a268
DJ
42032003-06-19 Daniel Jacobowitz <drow@mvista.com>
4204
4205 * varobj.c (get_type, get_target_type): Use check_typedef.
4206
1171114a
DJ
42072003-06-19 Daniel Jacobowitz <drow@mvista.com>
4208
4209 * breakpoint.c (insert_catchpoint): Call internal_error.
4210
adcf68a2
TR
42112003-06-19 Theodore A. Roth <troth@openavr.org>
4212
4213 * avr-tdep.c (avr_push_dummy_code): Delete function.
4214 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4215
ea67f13b
DJ
42162003-06-19 Daniel Jacobowitz <drow@mvista.com>
4217
4218 * arch-utils.c (default_prepare_to_proceed): Remove.
4219 (generic_prepare_to_proceed): Remove.
4220 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4221 (generic_prepare_to_proceed): Remove prototype.
4222 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4223 * gdbarch.c: Regenerate.
4224 * gdbarch.h: Regenerate.
4225 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4226 * hppah-nat.c (hppa_switched_threads): Remove.
4227 * infrun.c (prepare_to_proceed): New static function, copied from
4228 generic_prepare_to_proceed. Remove select_it argument.
4229 (proceed): Call prepare_to_proceed.
4230 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4231 variables.
4232 (ptrace_wait): Don't set the removed variables.
4233 (hppa_switched_threads): Remove.
4234 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4235 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4236 (lin_lwp_prepare_to_proceed): Remove prototype.
4237 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4238 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4239
4add8633
TR
42402003-06-18 Theodore A. Roth <troth@openavr.org>
4241
4242 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4243 trad-frame.h.
4244 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4245 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4246 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4247 (AVR_PROLOGUE_*): Enumerate prologue types.
4248 (struct frame_extra_info): Remove.
4249 (struct avr_unwind_cache): Define.
4250 (avr_write_sp): Delete function.
4251 (avr_read_fp): Ditto.
4252 (avr_init_extra_frame_info): Ditto.
4253 (avr_pop_frame): Ditto.
4254 (avr_frame_saved_pc): Ditto.
4255 (avr_saved_pc_after_call): Ditto.
4256 (avr_push_return_address): Ditto.
4257 (avr_frame_chain): Ditto.
4258 (avr_store_struct_return): Ditto.
4259 (avr_push_arguments): Ditto.
4260 (avr_scan_prologue): Update comments. Changed to set up the info for
4261 cache unwinding. Now returns end of prologue PC.
4262 (avr_skip_prologue): Better handling of functions lacking a prologue
4263 by using avr_scan_prologue.
4264 (avr_scan_arg_moves): New function.
4265 (avr_saved_regs_unwinder): Ditto.
4266 (avr_frame_unwind_cache): Ditto.
4267 (avr_unwind_pc): Ditto.
4268 (avr_frame_this_id): Ditto.
4269 (avr_frame_prev_register): Ditto.
4270 (avr_frame_p): Ditto.
4271 (avr_frame_base_address ): Ditto.
4272 (avr_unwind_dummy_id): Ditto.
4273 (avr_push_dummy_code): Ditto.
4274 (push_stack_item): Ditto.
4275 (pop_stack_item): Ditto.
4276 (avr_push_dummy_call): Ditto.
4277 (struct stack_item): Define.
4278 (avr_frame_unwind): Declare structure.
4279 (avr_frame_base): Ditto.
4280 (avr_gdbarch_init): Remove calls to
4281 set_gdbarch_deprecated_init_frame_pc,
4282 set_gdbarch_deprecated_target_read_fp,
4283 set_gdbarch_deprecated_dummy_write_sp,
4284 set_gdbarch_deprecated_fp_regnum,
4285 set_gdbarch_deprecated_push_arguments,
4286 set_gdbarch_deprecated_push_return_address,
4287 set_gdbarch_deprecated_pop_frame,
4288 set_gdbarch_deprecated_store_struct_return,
4289 set_gdbarch_deprecated_frame_init_saved_regs,
4290 set_gdbarch_deprecated_init_extra_frame_info,
4291 set_gdbarch_deprecated_frame_chain,
4292 set_gdbarch_deprecated_frame_saved_pc,
4293 set_gdbarch_deprecated_saved_pc_after_call.
4294 Add calls to set_gdbarch_push_dummy_call,
4295 set_gdbarch_push_dummy_code,
4296 frame_unwind_append_predicate,
4297 frame_base_set_default,
4298 set_gdbarch_unwind_dummy_id,
4299 set_gdbarch_unwind_pc.
4300 Wrap a long line.
4301
7be04a68
MS
43022003-06-18 Corinna Vinschen <vinschen@redhat.com>
4303
4304 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4305 registers for H8/300S.
4306 (h8300_print_registers_info): Ditto.
8ffd9b1b 4307 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4308
ae087d01
DJ
43092003-06-18 Daniel Jacobowitz <drow@mvista.com>
4310
4311 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4312 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4313 (lin_lwp_wait): Likewise. Update comments.
4314 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4315 (pull_pid_from_list, linux_record_stopped_pid): New.
4316
07d8f827
SC
43172003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4318
4319 * ada-lang.c (scan_discrim_bound): Name first argument.
4320 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4321 declared by ALL_BLOCK_SYMBOLS.
4322
7cb47b14
SC
43232003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4324
4325 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4326 ("regcache.h"): Include it.
4327 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4328
6ad8ae5c
DJ
43292003-06-17 Daniel Jacobowitz <drow@mvista.com>
4330
4331 * NEWS: Mention gdbserver detach change and "disconnect" command.
4332 * infcmd.c (disconnect_command): New function.
4333 (_initialize_infcmd): Add ``disconnect'' command.
4334 * remote.c (remote_async_detach): Delete.
4335 (remote_detach): Merge remote_async_detach.
4336 (remote_disconnect): New.
4337 (init_remote_ops): Set to_disconnect.
4338 (init_remote_cisco_ops): Likewise.
4339 (init_remote_async_ops): Likewise. Use remote_detach.
4340 * target.c (cleanup_target): Default to_disconnect.
4341 (update_current_target): Inherit to_disconnect.
4342 (target_disconnect, debug_to_disconnect): New functions.
4343 (setup_target_debug): Set to_disconnect.
4344 * target.h (struct target_ops): Add to_disconnect.
4345 (target_disconnect): Add prototype.
4346
687595f9
DJ
43472003-06-17 Daniel Jacobowitz <drow@mvista.com>
4348
4349 * breakpoint.c (insert_catchpoint): New function.
4350 (insert_breakpoints): Use catch_exceptions to call
4351 insert_catchpoint. Disable catchpoints if they fail to insert.
4352
29239a8f
DJ
43532003-06-17 Daniel Jacobowitz <drow@mvista.com>
4354
4355 * symfile.c (reread_symbols): Clear sym_private.
4356
2cdf3c63
AC
43572003-06-17 Andrew Cagney <cagney@redhat.com>
4358
4359 * trad-frame.h (struct frame_info): Add opaque declaration.
4360 * remote-fileio.h (struct cmd_list_element): Add opaque
4361 declaration.
4362 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4363 comments.
4364
cf0e1e0d
DJ
43652003-06-17 Daniel Jacobowitz <drow@mvista.com>
4366
4367 * remote.c (remote_prepare_to_store): Replace call to
4368 deprecated_read_register_bytes with multiple regcache_raw_read
4369 calls.
4370
192cdb19
KW
43712003-06-17 Kris Warkentin <kewarken@qnx.com>
4372
4373 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4374 (nto_find_and_open_solib): Likewise.
4375 (nto_init_solib_absolute_prefix): Likewise.
4376 (_initialize_nto_tdep): Fix indentation.
4377
89929b45
KW
43782003-06-17 Kris Warkentin <kewarken@qnx.com>
4379
4380 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4381
46019f27
KW
43822003-06-17 Kris Warkentin <kewarken@qnx.com>
4383
4384 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4385
1a38736e
JB
43862003-06-17 Jim Blandy <jimb@redhat.com>
4387
4388 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4389
3605c34a
TR
43902003-06-16 Theodore A. Roth <troth@openavr.org>
4391
4392 * avr-tdep.c (avr_extract_return_value): New function.
4393 (avr_gdbarch_init): Set extract_return_value method.
4394
870b3035
AC
43952003-06-16 Andrew Cagney <cagney@redhat.com>
4396
4397 * frame.h (deprecated_get_next_frame_hack): Declare.
4398 * frame.c (legacy_saved_regs_prev_register): Only require
4399 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4400 there are always saved regs.
4401 (deprecated_generic_get_saved_register): Do not require
4402 DEPRECATED_FRAME_INIT_SAVED_REGS.
4403 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4404 use frame ID unwind instead.
4405 (deprecated_get_next_frame_hack): New function.
4406
63d47a7d
CV
44072003-06-16 Corinna Vinschen <vinschen@redhat.com>
4408
4409 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4410 (h8300_push_dummy_call): ...this function. Some minor optimization.
4411 (h8300_push_return_address): Remove.
4412 (h8300_gdbarch_init): Remove calls to
4413 set_gdbarch_deprecated_dummy_write_sp,
4414 set_gdbarch_deprecated_push_arguments and
4415 set_gdbarch_deprecated_push_return_address.
4416 Add call to set_gdbarch_push_dummy_call.
4417
4bb1dc5e
CV
44182003-06-16 Corinna Vinschen <vinschen@redhat.com>
4419
4420 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4421 (E_PSEUDO_EXR_REGNUM): Ditto.
4422 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 4423 registers into safe registers.
4bb1dc5e
CV
4424 (h8300_skip_prologue): Check for stm instruction to push registers
4425 used for register variables onto stack.
4426 (gdb_print_insn_h8300): Remove.
4427 (h8300_examine_prologue): Add a comment.
4428 (h8300_register_name): Take pseudo registers into account.
4429 (h8300s_register_name): Ditto.
4430 (h8300sx_register_name): Ditto.
4431 (h8300_print_register): Ditto.
4432 (h8300_print_registers_info): Define "nice" printing order.
4433 (h8300_saved_pc_after_call): Take pseudo registers into account.
4434 (h8300_register_type): Ditto. Return type used for remote connection
4435 when requesting real CCR or EXR register, return actual type when
4436 requesting pseudo CCR or EXR.
4437 (h8300_pseudo_register_read): New function.
4438 (h8300_pseudo_register_write): Ditto.
4439 (h8300_dbg_reg_to_regnum): Ditto.
4440 (h8300s_dbg_reg_to_regnum): Ditto.
4441 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4442 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4443 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4444 set_gdbarch_print_insn architecture dependent.
4445 Call set_gdbarch_pseudo_register_read and
4446 set_gdbarch_pseudo_register_write.
4447 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4448
a59fe496
AC
44492003-06-16 Andrew Cagney <cagney@redhat.com>
4450
4451 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4452 * gdbarch.h, gdbarch.c: Re-generate.
4453 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4454 * s390-tdep.c (s390_gdbarch_init): Update.
4455 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4456 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4457 * mips-tdep.c (mips_gdbarch_init): Update.
4458 * mcore-tdep.c (mcore_gdbarch_init): Update.
4459 * cris-tdep.c (cris_gdbarch_init): Update.
4460 * infcall.c (call_function_by_hand): Update.
4461 * ia64-tdep.c (ia64_push_arguments): Update comment.
4462 * frame.c (legacy_get_prev_frame): Do not assume
4463 SAVE_DUMMY_FRAME_TOS_P.
4464 * dummy-frame.c (find_dummy_frame): Update comment.
4465
6f4e5a41
AC
44662003-06-16 Andrew Cagney <cagney@redhat.com>
4467
4468 * regcache.c (do_cooked_read): Do not use register_valid_p.
4469
72fab697
TR
44702003-06-15 Theodore A. Roth <troth@openavr.org>
4471
4472 * avr-tdep.c (avr_register_type): Remove a blank line.
4473 (avr_scan_prologue): Correct some comments.
4474
e3d8b004
TR
44752003-06-15 Theodore A. Roth <troth@openavr.org>
4476
4477 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4478 prologue types.
8ffd9b1b 4479 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
4480 option.
4481 Add code to scan -mcall-prologues for mega devices.
4482
866b76ea
TR
44832003-06-15 Theodore A. Roth <troth@openavr.org>
4484
4485 * avr-tdep.c (avr_register_byte): Delete function.
4486 (avr_register_raw_size): Delete function.
4487 (avr_register_virtual_size): Delete function.
4488 (avr_register_virtual_type): Delete function.
4489 (avr_register_type): New function.
4490 (avr_address_to_pointer): Remove unused code.
4491 (avr_read_fp): Need to read FP as two separate bytes due to change to
4492 avr_register_type() usage.
4493 (avr_gdbarch_init): Don't set deprecated_register_size.
4494 Don't set deprecated_register_bytes.
4495 Don't set deprecated_register_byte.
4496 Don't set deprecated_register_raw_size.
4497 Don't set deprecated_max_register_raw_size.
4498 Don't set deprecated_register_virtual_size.
4499 Don't set deprecated_max_register_virtual_size.
4500 Don't set deprecated_register_virtual_type.
4501 Set register_type method.
4502
3993f6b1
DJ
45032003-06-15 Daniel Jacobowitz <drow@mvista.com>
4504
4505 * Makefile.in (linux-nat.o): Add rule.
4506 * linux-nat.c: New file.
4507 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4508 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4509 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4510 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4511 * config/arm/linux.mh (NATDEPFILES): Likewise.
4512 * config/i386/linux.mh (NATDEPFILES): Likewise.
4513 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4514 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4515 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4516 * config/mips/linux.mh (NATDEPFILES): Likewise.
4517 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4518 * config/s390/s390.mh (NATDEPFILES): Likewise.
4519 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4520
786a90bb
MK
45212003-06-15 Mark Kettenis <kettenis@gnu.org>
4522
4523 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4524 replace out-of-date comment.
4525
3bd3f01e
AC
45262003-06-15 Andrew Cagney <cagney@redhat.com>
4527
4528 * rdi-share/host.h (Fail): Change to a varargs function.
4529 * remote-rdi.c (Fail): Update.
8ffd9b1b 4530
de5b9bb9
MK
45312003-06-15 Mark Kettenis <kettenis@gnu.org>
4532
4533 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4534 (i386_convert_register_p, i386_register_to_value,
4535 i386_register_from_value): Handle types longer than 8 bytes.
4536
d532c08f
MK
45372003-06-15 Mark Kettenis <kettenis@gnu.org>
4538
4539 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4540 Move floating-point code to new function in i387-tdep.c.
4541 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4542 New functions containing code moved here from i386-tdep.c.
4543 * i387-tdep.h: Add opaque declaration for `struct type'.
4544 (i387_register_to_value, i387_value_to_register): New prototypes.
4545 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4546 (x86_64_init_abi): Set convert_register_p, register_to_value and
4547 value_to_register here.
8ffd9b1b 4548
42c466d7
AC
45492003-06-14 Andrew Cagney <cagney@redhat.com>
4550
4551 * mips-tdep.c (mips_register_to_value): Make static.
4552 (mips_value_to_register): Make static.
4553 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4554 * ia64-tdep.c (ia64_register_raw_size): Make static.
4555 (ia64_register_virtual_size): Make static.
4556 (ia64_register_byte): Make static.
4557 * i387-tdep.c: Include "i387-tdep.h".
4558 (print_387_control_word): Delete function.
4559 (print_387_status_word): Delete function.
4560 (print_387_status_bits): Delete function.
4561 (print_387_control_bits): Delete function.
4562 * Makefile.in (i387-tdep.o): Update dependencies.
4563 * rdi-share/host.h (Fail): Declare.
4564 * remote-rdi.c (Fail): Update to match declaration.
4565
2a9cda49
AC
45662003-06-14 Andrew Cagney <cagney@redhat.com>
4567
4568 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4569 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4570 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4571 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4572 * README: Delete reference to remote-array.
4573 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4574 (remote-array.o): Delete target.
4575 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4576 * remote-array.c: Delete file.
4577
ff2e87ac
AC
45782003-06-14 Andrew Cagney <cagney@redhat.com>
4579 Mark Kettenis <kettenis@gnu.org>
4580
4581 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4582 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4583 parameter with "frame".
4584 * gdbarch.h, gdbarch.c: Re-generate.
4585 * frame.h (put_frame_register): Declare.
4586 * frame.c (put_frame_register): New function.
4587 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4588 (legacy_register_to_value): Rewrite, use "frame" to get the
4589 register value.
4590 (legacy_value_to_register): Rewrite, use "frame" to find the
4591 register's location before storing.
4592 * arch-utils.h (legacy_convert_register_p): Update.
4593 (legacy_register_to_value, legacy_value_to_register): Update.
4594 * findvar.c (value_from_register): Rewrite, eliminate use of
4595 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4596 "frame" to REGISTER_TO_VALUE.
4597 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4598 lval_reg_frame_relative + lval_register branch of the switch. Do
4599 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4600 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4601 I386_EDI_REGNUM): New defines.
4602 (i386_next_regnum, i386_convert_register_p,
4603 i386_register_to_value, i386_value_to_register): New functions.
4604 (i386_register_convertible, i386_register_convert_to_virtual,
4605 i386_convert_to_raw): Remove functions.
4606 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4607 value_to_register instead of register_convertible,
4608 register_convert_to_virtual and register_convert_to_raw.
4609 * mips-tdep.c (mips_convert_register_p): New function.
4610 (mips_value_to_register): Replace mips_register_convert_from_type.
4611 (mips_register_to_value): Replace mips_register_convert_to_type.
4612 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4613 register_to_value.
4614 * alpha-tdep.c (alpha_convert_register_p): Update.
4615 (alpha_value_to_register): Update, store the register.
4616 (alpha_register_to_value): Update, fetch the register.
4617
98be1e77
TR
46182003-06-14 Theodore A. Roth <troth@openavr.org>
4619
4620 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4621 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4622 Don't set deprecated_call_dummy_words.
4623 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4624 Don't set remote_translate_xfer_address.
4625 (avr_io_reg_read_command): Remove commented out debug printf.
4626 Wrap a long line.
4627
57bc6122
TR
46282003-06-14 Theodore A. Roth <troth@openavr.org>
4629
4630 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4631 causes gdb to seg fault.
4632
eb01fc62
DJ
46332003-06-14 Daniel Jacobowitz <drow@mvista.com>
4634
4635 * sparc-nat.c (fetch_inferior_registers): Correct
4636 a reference to "registers".
4637
3b3e6bee
DJ
46382003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4639
4640 * Makefile.in (exc_request_U_h): Define
4641 (exc_request_S_h): Likewise.
4642 (msg_reply_S_h): Likewise.
4643 (msg_U_h): Likewise.
4644 (notify_S_h): Likewise.
4645 (process_reply_S_h): Likewise.
4646 (gnu-nat.o): Depend on gdb_obstack_h
4647 * gnu-nat.c: Include "gdb_obstack.h".
4648
b8de8283
AC
46492003-06-13 Andrew Cagney <cagney@redhat.com>
4650
4651 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4652 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4653
f3be58bc
AC
46542003-06-13 Andrew Cagney <cagney@redhat.com>
4655
4656 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4657 when deprecated REGISTER macros can be deleted.
4658 * gdbarch.h, gdbarch.c: Re-generate.
4659
4c0122c8
JB
46602003-06-13 Jim Blandy <jimb@redhat.com>
4661
4662 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4663 Linux entry point symbols for _dl_debug_state, too.
4664
3e210248
AC
46652003-06-13 Andrew Cagney <cagney@redhat.com>
4666
4667 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4668 available, do not use the FP register, and always save the TOS.
4669 * dummy-frame.c (dummy_frame_this_id): Do not assert
4670 SAVE_DUMMY_FRAME_TOS.
4671 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4672 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4673 (i386_push_dummy_call): Add 8 to the returned SP.
4674 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4675 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4676 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4677 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4678 (x86_64_push_dummy_call): Return "sp + 16".
4679 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4680 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4681 save_dummy_frame_tos.
4682
0b65af49
JB
46832003-06-13 Jim Blandy <jimb@redhat.com>
4684
4685 * frv-tdep.c (frv_use_struct_convention): Delete static
4686 declaration for function deleted in my change of 2003-06-12.
4687
4ea2465e
TR
46882003-06-13 Theodore A. Roth <troth@openavr.org>
4689
4690 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4691 (avr_pointer_to_address): Shift code addrs left 1 bit.
4692 (avr_convert_from_func_ptr_addr): Delete function since operation is
4693 better handled by avr_address_to_pointer and avr_pointer_to_address.
4694 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4695
1581182a
MK
46962003-06-13 Mark Kettenis <kettenis@gnu.org>
4697
4698 From Kelley Cook <kelleycook@wideopenwest.com>:
4699 * configure.host: Accept i[34567]86 variants.
4700 * configure.tgt: Likewise.
4701 * nlm/configure.in: Likewise.
4702 * nlm/configure: Regenerated.
4703
7aa1783e
RE
47042003-06-13 Richard Earnshaw <rearnsha@arm.com>
4705
4706 * arm-tdep.c (solib-svr4.h): Dont' include it.
4707 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4708 * arm-linux-tdep.c: ... here. Make static.
4709 (arm_linux_init_abi): Register it.
4710 (solib-svr4.h): Include it.
4711 * Makefile.in: Update dependencies.
4712 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4713 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4714
0261a0d0
CV
47152003-06-13 Corinna Vinschen <vinschen@redhat.com>
4716
4717 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4718 indicate registers used for return values.
4719 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4720 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4721 members.
4722 (h8300_init_extra_frame_info): Ditto.
4723 (h8300_frame_locals_address): Removed.
4724 (h8300_frame_args_address): Removed.
4725 (h8300_extract_return_value): Use new regcache structure. Only care
4726 for 16 bit CPUs.
4727 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4728 (h8300_store_return_value): Use new regcache structure. Only care
4729 for 16 bit CPUs.
4730 (h8300h_store_return_value): Same function for 32 bit CPUs.
4731 (h8300_store_struct_return): Removed.
4732 (h8300_extract_struct_value_address): Use new regcache structure.
4733 (h8300h_extract_struct_value_address): Removed.
4734 (h8300_push_dummy_code): New function.
4735 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4736 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4737 set_gdbarch_store_return_value architecture dependent.
4738 Call set_gdbarch_push_dummy_code and
4739 set_gdbarch_extract_struct_value_address.
4740 Remove calls to set_gdbarch_frame_args_address,
4741 set_gdbarch_frame_locals_address,
4742 set_gdbarch_deprecated_store_struct_return,
4743 set_gdbarch_deprecated_extract_return_value,
4744 set_gdbarch_deprecated_extract_struct_value_address,
4745 set_gdbarch_deprecated_call_dummy_words and
4746 set_gdbarch_deprecated_sizeof_call_dummy_words.
4747
055c394a
CV
47482003-06-13 Corinna Vinschen <vinschen@redhat.com>
4749
4750 * h8300-tdep.c (h8300_register_byte): Remove.
4751 (h8300h_register_byte): Remove.
4752 (h8300_register_virtual_type): Remove. Substitute by...
4753 (h8300_register_type): New function.
4754 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4755 (h8300h_extract_struct_value_address): Ditto.
4756 (h8300_gdbarch_init): Drop calls to
4757 set_gdbarch_deprecated_register_byte and
4758 set_gdbarch_deprecated_register_virtual_type.
4759 Add call to set_gdbarch_register_type.
4760
9c04cab7
AC
47612003-06-13 Andrew Cagney <cagney@redhat.com>
4762
4763 * gdbarch.sh: Update comments on registers.
4764 (deprecated_register_byte): Rename register_byte.
4765 (deprecated_register_raw_size): Rename register_raw_size.
4766 (deprecated_register_virtual_size): Rename register_virtual_size.
4767 (deprecated_register_virtual_type): Rename register_virtual_type.
4768 * gdbarch.h, gdbarch.c: Re-generate.
4769 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4770 * vax-tdep.c (vax_gdbarch_init): Update.
4771 * v850-tdep.c (v850_gdbarch_init): Update.
4772 * sparc-tdep.c (sparc_gdbarch_init): Update.
4773 * sh-tdep.c (sh_gdbarch_init): Update.
4774 * s390-tdep.c (s390_gdbarch_init): Update.
4775 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4776 * ns32k-tdep.c: Update.
4777 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4778 * mips-tdep.c (mips_gdbarch_init): Update.
4779 * mcore-tdep.c (mcore_gdbarch_init): Update.
4780 * m68k-tdep.c (m68k_gdbarch_init): Update.
4781 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4782 * ia64-tdep.c (ia64_gdbarch_init): Update.
4783 * hppa-tdep.c (hppa_gdbarch_init): Update.
4784 * h8300-tdep.c (h8300_gdbarch_init): Update.
4785 * frv-tdep.c (frv_gdbarch_init): Update.
4786 * cris-tdep.c (cris_gdbarch_init): Update.
4787 * avr-tdep.c (avr_gdbarch_init): Update.
4788 * alpha-tdep.c (alpha_gdbarch_init): Update.
4789 * arm-tdep.c (arm_gdbarch_init): Update.
4790
b060cbea
AC
47912003-06-13 Andrew Cagney <cagney@redhat.com>
4792
4793 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4794 mips_o32_use_struct_convention with always_use_struct_convention.
4795
0fc9922a
DC
47962003-06-12 David Carlton <carlton@kealia.com>
4797
4798 * cp-namespace.c (cp_set_block_scope): Comment out
4799 processing_has_namespace_info branch.
4800
1fd35568
JB
48012003-06-12 Jim Blandy <jimb@redhat.com>
4802
f470a70a
JB
4803 Recognize and skip 64-bit PowerPC Linux linkage functions.
4804 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4805 insn_pattern, insns_match_pattern, d_field, ds_field): New
4806 functions, macros, and types for working with PPC instructions.
4807 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4808 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4809 ppc64_skip_trampoline_code): New functions, variables, and macros
4810 for recognizing and skipping linkage functions.
4811 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4812 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4813
49ff75ad
JB
4814 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4815 register offsets for both the 32- and 64-bit interfaces.
4816
bd918c83
JB
4817 Actually finish the job started by my change of 2003-05-29.
4818 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4819 other #definition of this.
4820 (ppc_linux_skip_trampoline_code): Remove declaration.
4821 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4822 static.
4823 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4824 method for GDBARCH.
4825
4826 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4827 'long' on ppc64-*-linux*.
4828
f8c59253
JB
4829 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4830 isn't #defined, assume the register doesn't exist: act as if
4831 tdep->ppc_mq_regnum were -1.
4832
8fbb30b1
JB
4833 * configure.host, configure.tgt: Add entries for
4834 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4835 powerpc/linux.mt.
4836 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4837 New files.
4838
1fd35568
JB
4839 * arch-utils.c (always_use_struct_convention): New function.
4840 * arch-utils.h (always_use_struct_convention): New prototype.
4841 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4842 (alpha_gdbarch_init): Register always_use_struct_convention,
4843 instead of alpha_use_struct_convention.
4844 * cris-tdep.c (cris_use_struct_convention): Delete.
4845 (cris_gdbarch_init): Register always_use_struct_convention,
4846 instead of cris_use_struct_convention.
4847 * frv-tdep.c (frv_use_struct_convention): Delete.
4848 (frv_gdbarch_init): Register always_use_struct_convention,
4849 instead of frv_use_struct_convention.
4850 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4851 (h8300_gdbarch_init): Register always_use_struct_convention,
4852 instead of h8300_use_struct_convention.
e3305dd9 4853 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4854 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4855 instead of mips_o32_use_struct_convention.
4856
e14e6e9c
AC
48572003-06-12 Andrew Cagney <cagney@redhat.com>
4858
4859 * wince.c: Include "mips-tdep.h".
4860 * mips-tdep.h (mips_next_pc): Declare.
4861 * mcore-tdep.c: Make more local functions static.
4862 * Makefile.in (wince.o): Update dependencies.
4863
2335f48e
DC
48642003-06-12 David Carlton <carlton@kealia.com>
4865
4866 * symtab.c (lookup_symbol_aux_minsyms): Replace
4867 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4868 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4869 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4870 SYMBOL_NATURAL_NAME.
4871
f70a7d61
AS
48722003-06-12 Andreas Schwab <schwab@suse.de>
4873
4874 * Makefile.in (tuiDisassem.o): Update dependencies.
4875
b6429628
DC
48762003-06-12 David Carlton <carlton@bactrian.org>
4877
4878 * symtab.h: Delete declaration of make_symbol_overload_list.
4879 Add declaration of lookup_partial_symbol.
4880 * symtab.c (remove_params): Move to cp-support.c.
4881 (overload_list_add_symbol, make_symbol_overload_list)
4882 (sym_return_val_size, sym_return_val_index): Ditto.
4883 (lookup_partial_symbol): Make extern.
4884 * cp-support.h: Add declaration of make_symbol_overload_list.
4885 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4886 symtab.h, and block.h.
4887 (remove_params): Move here from symtab.c.
4888 (overload_list_add_symbol, make_symbol_overload_list)
4889 (sym_return_val_size, sym_return_val_index): Ditto.
4890 * valops.c: Include cp-support.h.
4891 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4892 frame_h, and block_h.
4893 (valops.o): Depend on cp_support_h.
4894
084edea5
CV
48952003-06-12 Corinna Vinschen <vinschen@redhat.com>
4896
4897 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4898 substitute by NUM_REGS throughout.
4899 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4900 (h8300s_register_name): New function for H8S registers.
4901 (h8300sx_register_name): Ditto for H8SX registers.
4902 (h8300_print_register): Revise register printing, avoid depending
4903 on 32 bit long.
0261a0d0 4904 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4905 (h8300h_register_byte): New function for any other architecture.
4906 (h8300_register_raw_size): Remove.
4907 (h8300_register_virtual_type): Revise to return actually useful
4908 type.
4909 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4910 (h8300h_extract_struct_value_address): New function for any other
4911 architecture.
4912 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4913 set_gdbarch_register_name, set_gdbarch_register_byte,
4914 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4915 Remove calls to set_gdbarch_deprecated_register_size,
4916 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4917 set_gdbarch_deprecated_max_register_raw_size,
4918 set_gdbarch_register_virtual_size and
4919 set_gdbarch_deprecated_max_register_virtual_size entirely.
4920 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4921 set_gdbarch_long_double_bit.
4922
06194148
JJ
49232003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4924
8ffd9b1b
AJ
4925 * doublest.c (convert_doublest_to_floatformat): When dealing
4926 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4927 processing a full 32 bits of mantissa.
4928
de4f826b
DC
49292003-06-11 David Carlton <carlton@bactrian.org>
4930
4931 * dictionary.h: New.
4932 * dictionary.c: New.
4933 * block.h: Add opaque declaration for struct dictionary.
4934 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4935 'sym' members.
4936 (BLOCK_DICT): New macro.
4937 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4938 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4939 BLOCK_SHOULD_SORT.
4940 (ALL_BLOCK_SYMBOLS): Update definition.
4941 * Makefile.in (SFILES): Add dictionary.c.
4942 (dictionary_h): New.
4943 (COMMON_OBS): Add dictionary.o.
4944 (dictionary.o): New.
4945 (ada-lang.o): Depend on dictionary_h.
4946 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4947 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4948 (mi-cmd-stack.o): Ditto.
4949 (gdbtk-cmds.o): Update dependencies.
4950 (gdbtk-stack.o): Ditto.
4951 * ada-lang.c: Include dictionary.h.
4952 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4953 (fill_in_ada_prototype, debug_print_block): Ditto.
4954 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4955 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4956 'is_sorted'.
4957 * mdebugread.c: Include dictionary.h.
4958 (struct parse_stack): Delete 'maxsyms' member.
4959 (parse_symbol): Update calls to new_block. Delete calls to
4960 shrink_block. Use dictionary methods.
4961 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4962 Update calls to new_symtab. Don't maintain maxsyms data.
4963 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4964 (add_symbol): Just call dict_add_symbol.
4965 (new_symtab): Delete 'maxsyms' argument.
4966 (new_symtab): Update calls to new_block.
4967 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4968 (shrink_block): Delete function.
4969 (fixup_sigtramp): Update call to new_block. Add symbol via
4970 dict_add_symbol.
4971 * jv-lang.c: Include dictionary.h.
4972 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4973 appropriately. Set class_symtab->free_func. Make sure the
4974 blockvector is big enough to hold two blocks.
4975 (add_class_symtab_symbol): Use dictionary methods.
4976 (free_class_block): New function.
4977 (type_from_class): Replace explicit iteration by
4978 ALL_BLOCK_SYMBOLS.
4979 * symtab.h (struct symtab): Replace 'free_ptr' method by
4980 'free_func'.
4981 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4982 sort_symtab_syms.
4983 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4984 sort_symtab_syms.
4985 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4986 Include dictionary.h.
4987 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4988 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4989 sort_symtab_syms.
4990 * objfiles.c: Include dictionary.h.
4991 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4992 * buildsym.c: Include dictionary.h.
4993 (finish_block): Use dictionary methods.
4994 (end_symtab): Set free_func to NULL, not free_ptr.
4995 * tracepoint.c: Include dictionary.h.
4996 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4997 (scope_info): Ditto.
4998 * stack.c: Include dictionary.h.
4999 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5000 (print_block_frame_labels, print_frame_arg_vars)
5001 (print_frame_args): Ditto.
5002 * symmisc.c (free_symtab_block): Use dictionary methods.
5003 (dump_symtab): Ditto.
5004 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5005 Include dictionary.h.
5006 * symfile.h: Delete declarations of sort_block_syms,
5007 sort_symtab_syms.
5008 * symfile.c (sort_block_syms): Delete.
5009 (sort_symtab_syms): Delete.
5010 * symtab.c: Include dictionary.h.
5011 (lookup_block_symbol): Use dictionary iterators.
5012 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5013 (search_symbols, make_symbol_completion_list): Ditto.
5014 (make_symbol_overload_list): Ditto.
5015 * valops.c (value_of_local): Use dict_empty.
5016 Include dictionary.h.
5017
a31f978c
JB
50182003-06-11 J. Brobecker <brobecker@gnat.com>
5019
5020 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5021
526e70c0
DC
50222003-06-11 David Carlton <carlton@bactrian.org>
5023
5024 * block.h (BLOCK_SHOULD_SORT): Delete.
5025 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5026 blocks.
5027 * ada-lang.c (ada_add_block_symbols): Ditto.
5028 * symfile.c (sort_block_syms): Delete.
5029 (sort_symtab_syms): Ditto.
5030 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5031 declarations.
5032 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5033 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5034 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5035 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5036 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5037 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5038 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5039
33c08150
JJ
50402003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5041
8ffd9b1b 5042 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
5043 bits to 128.
5044
781a750d
AC
50452003-06-11 Andrew Cagney <cagney@redhat.com>
5046
5047 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5048 REGISTER_CONVERTIBLE.
5049 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5050 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5051 * gdbarch.h, gdbarch.c: Re-generate.
5052 * arch-utils.h (deprecated_register_convertible_not): Rename
5053 generic_register_convertible_not.
5054 * arch-utils.c (deprecated_register_convertible_not): Rename
5055 generic_register_convertible.
5056 (legacy_convert_register_p, legacy_register_to_value): Update.
5057 * sh-tdep.c (sh64_push_arguments): Update.
5058 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5059 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5060 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5061 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5062 * arch-utils.c (legacy_value_to_register): Update.
5063 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5064 (rs6000_register_convert_to_raw): Make parameter "from" const.
5065 * mips-tdep.c (mips_gdbarch_init): Update.
5066 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5067 * infcmd.c (default_print_registers_info): Update.
5068 * ia64-tdep.c (ia64_gdbarch_init): Update.
5069 (ia64_register_convert_to_raw): Make parameter "from" const.
5070 * i386-tdep.c (i386_gdbarch_init): Update.
5071 (i386_register_convert_to_raw): Update.
5072
cd90e54f
AC
50732003-06-11 Andrew Cagney <cagney@redhat.com>
5074
5075 * remote-fileio.c: Include "remote-fileio.h".
5076 * Makefile.in (remote-fileio.o): Update dependencies.
5077 (remote_fileio_h): Fix typo.
5078
a78f21af
AC
50792003-06-11 Andrew Cagney <cagney@redhat.com>
5080
5081 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5082 (xstormy16_save_dummy_frame_tos): Make static.
5083 (_initialize_xstormy16_tdep): Add declaration.
5084 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5085 * v850-tdep.c: Make local functions static.
5086 (_initialize_v850_tdep): Add declaration.
5087 * sparc-tdep.c: Make local functions static.
5088 (_initialize_sparc_tdep): Add declaration.
5089 * sh-tdep.c: Make local functions static.
5090 (_initialize_sh_tdep): Add declaration.
5091 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5092 * s390-tdep.c: Make local functions static.
5093 (_initialize_s390_tdep): Add declaration.
5094 * dbxread.c (find_stab_function_addr): Make static.
5095 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5096 * ocd.c (_initialize_remote_ocd): Add declaration.
5097 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5098 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5099 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5100 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5101 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5102 * remote-array.c (_initialize_array): Add declaration.
5103 (_initialize_remote_monitors): Add declaration.
5104 * remote-mips.c: Make local functions static.
5105 (_initialize_remote_mips): Add declaration.
5106 * mcore-tdep.c: Make all local functions static.
5107 (_initialize_mcore_tdep): Add declaration.
5108 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5109 * abug-rom.c (_initialize_abug_rom): Add declaration.
5110 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5111 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5112 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5113 * remote-est.c (_initialize_est): Add declaration.
5114 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5115 (m68hc11_call_dummy_address): Make static.
5116 * ia64-tdep.c: Make local functions static.
5117 (_initialize_ia64_tdep): Add declaration.
5118 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5119 * monitor.c (monitor_wait_filter): Make static.
5120 (_initialize_remote_monitors): Add declaration.
5121 * remote-hms.c (_initialize_remote_hms): Add declaration.
5122 * remote-e7000.c (fetch_regs_from_dump): Make static.
5123 (expect_n): Make static.
5124 (_initialize_remote_e7000): Add declaration.
5125 * ser-e7kpc.c: Always include "defs.h".
5126 (_initialize_ser_e7000pc): Add declaration.
5127 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5128 * cris-tdep.c: Make all but one function static.
5129 (_initialize_cris_tdep): Add declaration.
5130 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5131 * solib.c (update_solib_list): Make static.
5132 (_initialize_solib): Add declaration.
5133 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5134 (_initialize_avr_tdep): Add declaration.
5135 * remote-rdi.c (voiddummy): Make static.
5136 (_initialize_remote_rdi): Add declaration.
5137 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5138 * remote-rdp.c (send_rdp): Make static.
5139 (_initialize_remote_rdp): Add declaration.
5140 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5141
cbcdb1f5
CV
51422003-06-11 Corinna Vinschen <vinschen@redhat.com>
5143
5144 * remote-fileio.c: Make ari happy.
5145
a191ea8d
JB
51462003-06-10 J. Brobecker <brobecker@gnat.com>
5147
5148 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5149 fetching the trailing bytes of the buffer we are about to write.
5150
0ef75e11
AC
51512003-06-10 Andrew Cagney <cagney@redhat.com>
5152
5153 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5154 * Makefile.in (remote-fileio.o): Update dependencies.
5155 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5156 include <setjmp.h>, or <sys/types.h> conditional on USG.
5157 (remote_fio_jmp_buf): Delete global variable.
5158
449092f6 51592003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 5160 Martin M. Hunt <hunt@redhat.com>
449092f6 5161
559fa028
AC
5162 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5163 (SFILES): Add remote-fileio.c.
5164 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5165 dependencies for building remote.o.
449092f6
CV
5166 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5167 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 5168 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
5169 static storage class.
5170 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5171 'F' packet.
5172 (_initialize_remote): Call initialize_remote_fileio().
5173 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
5174 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5175 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5176 (captured_main): Initialize new ui_files.
5177 * ui-file.c: Add read and fgets input functions.
5178 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5179 (null_file_read): New function.
5180 (ui_file_read): New function.
5181 (set_ui_file_read): New function.
5182 (stdio_file_read): New function.
5183 * ui-file.h: New type ui_file_read_ftype.
5184 (set_ui_file_read): Declare.
5185 (ui_file_read): Declare.
5186
248de703
AC
51872003-06-09 Andrew Cagney <cagney@redhat.com>
5188
5189 * frame.h (deprecated_unwind_get_saved_register): Rename
5190 generic_unwind_get_saved_register, update comments.
5191 * mips-tdep.c (mips_get_saved_register): Update.
5192 * frame.c (deprecated_unwind_get_saved_register): Update.
5193
0ed8aa57
AC
51942003-06-09 Andrew Cagney <cagney@redhat.com>
5195
5196 * vax-tdep.c (vax_frame_locals_address): Delete function.
5197 (vax_gdbarch_init): Do not set frame_locals_address.
5198 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5199 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5200 * s390-tdep.c (s390_frame_args_address): Delete function.
5201 (s390_gdbarch_init): Do not set frame_args_address or
5202 frame_locals_address.
5203 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5204 (ns32k_gdbarch_init): Do not set frame_locals_address.
5205 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5206 (hppa_frame_locals_address): Delete function.
5207 (hppa_gdbarch_init): Do not set frame_args_address, or
5208 frame_locals_address.
5209 * arm-tdep.c (arm_frame_args_address): Delete.
5210 (arm_frame_locals_address): Delete.
5211 (arm_gdbarch_init): Do not set frame_args_address, or
5212 frame_locals_address.
5213
983a287a
AC
52142003-06-09 Andrew Cagney <cagney@redhat.com>
5215
5216 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5217 * gdbarch.h, gdbarch.c: Re-generate.
5218 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5219 * arch-utils.c (frame_num_args_unknown): Delete function.
5220 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5221 (frame_info): Use FRAME_NUM_ARGS_P.
5222 * arm-tdep.c (arm_frame_num_args): Delete function.
5223 (arm_gdbarch_init): Do not set frame_num_args.
5224 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5225 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5226 (hppa_gdbarch_init): Do not set frame_num_args.
5227 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5228 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5229 frame_num_args to default frame_num_args_unknown.
5230 * v850-tdep.c (v850_gdbarch_init): Ditto.
5231 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5232 * sh-tdep.c (sh_gdbarch_init): Ditto.
5233 * s390-tdep.c (s390_gdbarch_init): Ditto.
5234 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5235 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5236 * mips-tdep.c (mips_gdbarch_init): Ditto.
5237 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5238 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5239 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5240 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5241 * i386-tdep.c (i386_gdbarch_init): Ditto.
5242 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5243 * frv-tdep.c (frv_gdbarch_init): Ditto.
5244 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5245 * cris-tdep.c (cris_gdbarch_init): Ditto.
5246 * avr-tdep.c (avr_gdbarch_init): Ditto.
5247 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5248
8d3b0994
AC
52492003-06-09 Andrew Cagney <cagney@redhat.com>
5250
5251 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5252 (print_frame_args): Moved to "stack.c".
5253 * stack.c: Include "gdb_assert.h".
5254 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5255 (print_frame_args): Moved from "printcmd.c".
5256 * frame.h (print_frame_args): Delete declaration.
5257 * Makefile.in (stack.o): Update dependencies.
5258
25e3a86b
AC
52592003-06-08 Andrew Cagney <cagney@redhat.com>
5260
5261 * frame.c (get_prev_frame): Remove reference to
5262 frame_args_address_correct in comments.
5263 * frame-base.c (default_frame_args_address): Delete code
5264 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5265 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5266 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5267 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5268 (vax_frame_args_address_correct): Delete declaration.
5269
a9e5fdc2
AC
52702003-06-08 Andrew Cagney <cagney@redhat.com>
5271
5272 * gdbarch.sh (UNWIND_SP): Add.
5273 * gdbarch.h, gdbarch.c: Re-generate.
5274 * frame.c (frame_sp_unwind): New function.
5275 (get_frame_sp): New function.
5276 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5277 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5278 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5279 value.
5280 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5281 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5282
8983bd83
AC
52832003-06-08 Andrew Cagney <cagney@redhat.com>
5284
7fec2c59
AC
5285 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5286 REMOTE_BREAKPOINT.
5287 * remote.c: Update.
5288 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5289 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5290 * config/m68k/tm-sun3.h: Update.
5291 * config/m68k/tm-m68klynx.h: Update.
5292 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5293
8983bd83
AC
5294 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5295 trad_frame". Update comments.
5296 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5297 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5298 (trad_frame_register_value, trad_frame_prev_register): Update.
5299
b9362cc7
AC
53002003-06-08 Andrew Cagney <cagney@redhat.com>
5301
5302 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5303 from GCC's acinclude.m4.
5304 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5305 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5306 * main.c (error_init): Delete declaration.
5307 * defs.h (error_init): Declare.
5308 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5309 (rs6000_convert_from_func_ptr_addr): Make static.
5310 (_initialize_rs6000_tdep): Add declaration.
5311 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5312 (show_commands, set_verbose, show_history): Delete declaration.
5313 * top.h (set_verbose): Add declaration.
5314 (show_history, set_history, show_commands): Add declaration.
5315 (do_restore_instream_cleanup): Add declaration.
5316 * objc-lang.c (specialcmp): Make static.
5317 (print_object_command): Make static.
5318 (find_objc_msgsend): Make static.
5319 (find_objc_msgcall_submethod_helper): Make static.
5320 (find_objc_msgcall_submethod): Make static.
5321 (_initialize_objc_language): Add declaration.
5322 (find_implementation_from_class): Make static.
5323 (find_implementation): Make static.
5324 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5325 * objc-lang.h (lookup_struct_typedef): Add declaration.
5326 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5327 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5328 (do_restore_user_call_depth): Make static.
5329 (do_restore_instream_cleanup): Delete declaration.
5330 (dont_repeat): Delete declaration.
5331 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5332 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5333 * reggroups.c (_initialize_reggroup): Add declaration.
5334 * cp-support.c (_initialize_cp_support): Add declaration.
5335 * cp-abi.c (_initialize_cp_abi): Add declaration.
5336 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5337 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5338 (_initialize_gnu_v3_abi): Add declaration.
5339 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5340 (_initialize_gnu_v2_abi): Add declaration.
5341 * frame-base.c (_initialize_frame_base): Add declaration.
5342 * doublest.c (floatformat_from_length): Make static.
5343 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5344 * frame.c (create_sentinel_frame): Make static.
5345 (_initialize_frame): Add declaration.
5346 * top.c (do_catch_errors): Make static.
5347 (gdb_rl_operate_and_get_next_completion): Make static.
5348 * typeprint.c: Include "typeprint.h".
5349 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5350 (sentinel_frame_this_id): Make static.
5351 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5352 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5353 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5354 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5355 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5356 * maint.c (maintenance_print_architecture): Make static.
5357 * signals/signals.c (_initialize_signals): Add declaration.
5358 * std-regs.c (_initialize_frame_reg): Add declaration.
5359 * jv-exp.y (push_variable): ISO C definition.
5360 (push_qualified_expression_name): Ditto.
5361 * memattr.c (_initialize_mem): Add declaration.
5362 * remote.c (remote_check_watch_resources): Make static.
5363 (remote_stopped_by_watchpoint): Make static.
5364 (remote_stopped_data_address): Make static.
5365 * d10v-tdep.c (nr_dmap_regs): Make static.
5366 (a0_regnum): Make static.
5367 (d10v_frame_unwind_cache): Make static.
5368 (d10v_frame_p): Make static.
5369 * osabi.c (show_osabi): Make static.
5370 (_initialize_gdb_osabi): Add extern declaration.
5371 * gdbtypes.c (make_qualified_type): Make static.
5372 (safe_parse_type): Make static.
5373 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5374 * macrotab.c (macro_bcache_free): Make static.
5375 * interps.c (interp_set_quiet): Make static.
5376 (interpreter_exec_cmd): Make static.
5377 * stack.h (select_frame_command): New file.
5378 * stack.c: Include "stack.h".
5379 (select_frame_command_wrapper): Delete function.
5380 (select_frame_command): Make global.
5381 * infcall.c: Include "infcall.h".
5382 * linespec.c: Include "linespec.h".
5383 * symfile.c (sections_overlap): Make static.
5384 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5385 * charset.c (_initialize_charset): Add missing prototype.
5386 * regcache.c (init_legacy_regcache_descr): Make static.
5387 (do_regcache_xfree): Make static.
5388 (regcache_xfer_part): Make static.
5389 (_initialize_regcache): Add missing prototype.
5390 * breakpoint.c (parse_breakpoint_sals): Make static.
5391 (breakpoint_sals_to_pc): Make static.
5392 * interps.h (clear_interpreter_hooks): ISO C declaration.
5393 * Makefile.in (stack_h): Define.
5394 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5395 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5396
a0f267c7
AC
53972003-06-08 Andrew Cagney <cagney@redhat.com>
5398
5399 * Makefile.in (d10v-tdep.o): Update dependencies.
5400 (SFILES): Add trad-frame.c.
5401 (trad_frame_h): Define.
5402 (COMMON_OBS): Add trad-frame.o.
5403 (trad-frame.o): Specify dependencies.
5404 * d10v-tdep.c: Include "trad-frame.h".
5405 (saved_regs_unwinder): Delete function.
5406 (d10v_frame_prev_register): Use trad_frame_prev_register.
5407 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5408 trad_frame", delete "regs" and "prev_sp".
5409 (prologue_find_regs): Use trad-frame.
5410 * trad-frame.h, trad-frame.c: New files.
5411
4538b4f4
MK
54122003-06-08 Mark Kettenis <kettenis@gnu.org>
5413
5414 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5415
a0273b2f
AF
54162003-06-07 Adam Fedor <fedor@gnu.org>
5417
5418 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5419 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5420 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5421 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 5422 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
5423 Use it.
5424
3a6c3343
AC
54252003-06-07 Andrew Cagney <cagney@redhat.com>
5426
5427 * symfile.h: Re-indent, clean up comments.
5428
b46e02f6
AC
54292003-06-07 Andrew Cagney <cagney@redhat.com>
5430
5431 * inferior.h (deprecated_write_sp): Replace
5432 generic_target_write_sp.
5433 * regcache.c (deprecated_write_sp): Replace
5434 generic_target_write_sp.
5435 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5436 * vax-tdep.c (vax_gdbarch_init): Update.
5437 * v850-tdep.c (v850_gdbarch_init): Update.
5438 * sparc-tdep.c (sparc_gdbarch_init): Update.
5439 * sh-tdep.c (sh_gdbarch_init): Update.
5440 * s390-tdep.c (s390_gdbarch_init): Update.
5441 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5442 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5443 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5444 * mcore-tdep.c (mcore_gdbarch_init): Update.
5445 * m68k-tdep.c (m68k_gdbarch_init): Update.
5446 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5447 * ia64-tdep.c (ia64_gdbarch_init): Update.
5448 * h8300-tdep.c (h8300_gdbarch_init): Update.
5449 * frv-tdep.c (frv_gdbarch_init): Update.
5450 * cris-tdep.c (cris_gdbarch_init): Update.
5451 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5452
a42e117c
AC
54532003-06-07 Andrew Cagney <cagney@redhat.com>
5454
5455 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5456 Assert that PC_REGNUM is valid.
5457 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5458
bd1ce8ba
AC
54592003-06-07 Andrew Cagney <cagney@redhat.com>
5460
5461 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5462 * gdbarch.h, gdbarch.c: Regenerate.
5463 * mn10300-tdep.c: Include "gdb_assert.h".
5464 (mn10300_read_fp): New function.
5465 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5466 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5467 * ia64-tdep.c: Include "gdb_assert.h".
5468 (ia64_read_fp): New function.
5469 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5470 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5471 * regcache.c (generic_target_read_sp): Delete function.
5472 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5473 * inferior.h (generic_target_read_sp): Delete declaration.
5474 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5475 generic_target_read_sp.
5476 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5477 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5478 * sh-tdep.c (sh_gdbarch_init): Ditto.
5479 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5480 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5481
ec5cbaec
AC
54822003-06-07 Andrew Cagney <cagney@redhat.com>
5483
5484 * gdbarch.sh: Comment each field of startup_gdbarch.
5485 * gdbarch.h, gdbarch.c: Re-generate.
5486
cde9ea48
AC
54872003-06-07 Andrew Cagney <cagney@redhat.com>
5488
5489 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5490 * gdbarch.h, gdbarch.c: Re-generate.
5491 * regcache.c: Update comments on read_pc et.al.
5492 (generic_target_read_pc): Delete function.
5493 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5494 * inferior.h (generic_target_read_pc): Delete declaration.
5495 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5496 generic_target_read_pc.
5497 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5498 * sh-tdep.c (sh_gdbarch_init): Ditto.
5499 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5500 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5501
9a90a780
AC
55022003-06-07 Andrew Cagney <cagney@redhat.com>
5503
5504 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5505 "index" with "special_local_sect". Use strcmp instead of STREQ.
5506 Append period to coments.
5507
a39a16c4
MM
55082003-06-06 Mark Mitchell <mark@codesourcery.com>
5509
5510 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5511 (elfstab_offset_sections): Likewise.
5512 * gdb-stabs.h (stab_section_info): Likewise.
5513 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5514 * objfiles.c (objfile_relocate): Likewise.
5515 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5516 * remote.c (get_offsets): Likewise.
5517 (remote_cisco_objfile_relocate): Likewise.
5518 * somread.c (som_symfile_offsets): Likewise.
5519 * symfile.c (alloc_section_addr_info): New function.
5520 (build_section_addr_info_from_section_tab): Use it.
5521 (free_section_addr_info): Adjust.
5522 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5523 (syms_from_objfile): Allocate local_addr dynamically.
5524 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5525 dynamically.
5526 (add_symbol_file_command): Allocate sect_opts dynamically.
5527 (reread_symbols): Avoid use of SECT_OFF_MAX.
5528 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5529 (alloc_section_addr_info): Declare it.
5530 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5531 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5532 dynamically.
5533 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 5534
20c6c2f8
AC
55352003-06-06 Andrew Cagney <cagney@redhat.com>
5536
5537 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5538 (d10v_frame_unwind_cache): Do not set "return_pc".
5539
884a26c8
MS
55402003-06-06 Michael Snyder <msnyder@redhat.com>
5541
5542 * h8300-tdep.c: Make tidy (long lines).
5543
088ce440
ML
55442003-06-06 Michal Ludvig <mludvig@suse.cz>
5545
8ffd9b1b 5546 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
5547 to regcache_collect().
5548
7d773d96
JB
55492003-06-05 J. Brobecker <brobecker@gnat.com>
5550
5551 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5552 pc_in_sigtramp multiarch method.
5553 (hppa_hpux_som_init_abi): Use it.
5554 (hppa_hpux_elf_init_abi): Likewise.
5555 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5556 macro has been multiarched.
5557 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5558 macro here, as hppa64 isn't multiarched yet.
5559
1df6926e
AC
55602003-06-05 Andrew Cagney <cagney@redhat.com>
5561
5562 * Makefile.in (value_h): Add $(frame_h).
5563 * value.h: Include "frame.h".
5564 (struct value): Replace "frame_addr" with "frame_id".
5565 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5566 * values.c (allocate_value): Use VALUE_FRAME_ID.
5567 (value_copy): Use VALUE_FRAME_ID.
5568 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5569 * valops.c (value_assign): Update. Use frame_find_by_id.
5570
6b53acc6
ML
55712003-06-05 Michal Ludvig <mludvig@suse.cz>
5572
5573 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5574 in each pass.
5575
4d9850d3
JJ
55762003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5577
5578 * thread-db.c (check_event): For create/death event breakpoints,
5579 loop through all messages to ensure that we read the message
5580 corresponding to the breakpoint we are at.
5581
8efca6ba
MS
55822003-06-04 Michael Snyder <msnyder@redhat.com>
5583
5584 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5585
0912c7f2
MK
55862003-06-04 Mark Kettenis <kettenis@gnu.org>
5587
5588 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5589 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5590 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5591 when handling .eh_frame sections.
5592
4e370325
JB
55932003-06-04 J. Brobecker <brobecker@gnat.com>
5594
5595 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5596 prepare_to_proceed procedure instead of the hppa-specific one.
5597 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5598
b757528f 55992003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5600
b757528f
JJ
5601 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5602 * config.in: Regenerated.
5603 * configure.in: Add test for syscall function and check for
5604 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5605 * configure: Regenerated.
5606 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5607 <sys/syscall.h>.
5608 (kill_lwp): New function that uses tkill syscall or
5609 uses kill, depending on whether threading model is nptl or not.
5610 All callers of kill() changed to use kill_lwp().
5611 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5612 see if all threads have already exited in the nptl model.
5613 (stop_and_resume_callback): New callback function used by the
5614 lin_lwp_wait thread exit handling code.
5615 (stop_wait_callback): Check for threads already having exited and
5616 delete such threads fromt the lwp list when discovered.
5617 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5618
b757528f
JJ
5619 Roland McGrath <roland@redhat.com>
5620 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5621 nptl libthread_db.
5622
087779b1
RH
56232003-06-03 Richard Henderson <rth@redhat.com>
5624
b21fd293
RH
5625 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5626 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5627 (alpha_sigtramp_frame_prev_register): Likewise.
5628 (alpha_heuristic_frame_prev_register): Likewise.
5629 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5630
8ffd9b1b 5631 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5632 alpha-specific register id names.
5633 (alpha_mdebug_frame_unwind_cache): Likewise.
5634 (alpha_mdebug_frame_prev_register): Likewise.
5635
baa490c4
RH
56362003-06-03 Richard Henderson <rth@redhat.com>
5637
5638 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5639 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5640 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5641 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5642 unwind routines.
5643 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5644 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5645 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5646
5647 * alpha-linux-tdep.c: Remove unnecessary includes.
5648 * Makefile.in (alpha-linux-tdep.o): Update.
5649
56502003-06-03 Richard Henderson <rth@redhat.com>
5651
5652 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5653 (alphabsd_fill_fpreg): Likewise.
5654
f534e522
JB
56552003-06-03 J. Brobecker <brobecker@gnat.com>
5656
5657 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5658 references to struct frame_info fields by calls to the equivalent
5659 accessors. Necessary now that frame_info is opaque.
5660
4035536b
JB
56612003-06-03 J. Brobecker <brobecker@gnat.com>
5662
5663 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5664 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5665 structure, field no longer exists.
5666
0bd79c5c
JB
56672003-06-03 J. Brobecker <brobecker@gnat.com>
5668
5669 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5670 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5671
37bb6d9f
JB
56722003-06-03 J. Brobecker <brobecker@gnat.com>
5673
5674 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5675 references to struct frame_info fields by calls to the equivalent
5676 accessors. Necessary now that frame_info is opaque.
5677
852ee05c
JB
56782003-06-03 J. Brobecker <brobecker@gnat.com>
5679
5680 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5681 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5682 structure, field no longer exists.
5683
7d58c67d
TR
56842003-06-03 Theodore A. Roth <troth@openavr.org>
5685
8ffd9b1b 5686 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5687 accumulation of the size of all registers instead of blindly using
5688 DEPRECATED_REGISTER_BYTES.
5689
0a48e7e8
MS
56902003-06-03 Michael Snyder <msnyder@redhat.com>
5691
5692 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5693 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5694 for h8300sx.
5695
9798ab0d
JB
56962003-06-03 J. Brobecker <brobecker@gnat.com>
5697
5698 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5699 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5700
00b037e2
AC
57012003-06-03 Andrew Cagney <cagney@redhat.com>
5702
5703 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5704 (sparc_convert_to_raw): Delete function.
5705 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5706 register_convert_to_virtual.
5707
043b2f77
JJ
57082003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5709
5710 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5711 layer if not dealing with a statically-linked threaded program.
5712
f43caff8
KW
57132003-06-03 Kris Warkentin <kewarken@qnx.com>
5714
5715 * solib.c (solib_open): Update comment to reflect actual search order.
5716
ae1e7417
AC
57172003-06-03 Andrew Cagney <cagney@redhat.com>
5718
5719 * frame.c (get_frame_memory_signed): New function.
5720 (get_frame_memory, get_frame_memory_unsigned): New function.
5721 (get_frame_arch): New function.
5722 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5723 (get_frame_memory, get_frame_unsigned_memory): Declare.
5724 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5725 get_frame_memory_unsigned and get_frame_arch.
5726 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5727
cb123844
RG
57282003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5729
5730 * MAINTAINERS (write after approval): Add myself.
5731
1bb792e9
JB
57322003-06-03 Jim Blandy <jimb@redhat.com>
5733
5734 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5735 elements of gregset_t are 64 bits each, but access registers
5736 are still 32 bits, so they're packed two per gregset_t
5737 element. Unpack/pack them properly.
5738
aee8d8ba
DC
57392003-06-02 David Carlton <carlton@bactrian.org>
5740
5741 * linespec.c (find_methods): Break out code into
5742 add_matching_methods and add_constructors.
5743 (add_matching_methods): New.
5744 (add_constructors): Ditto.
5745
bf7488d2
AC
57462003-06-02 Andrew Cagney <cagney@redhat.com>
5747
bf7488d2
AC
5748 * sparc-tdep.c (sparc_print_registers): Delete call to
5749 REGISTER_CONVERTIBLE.
5750 (sparc_gdbarch_init): Do not set register_convertible.
5751 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5752 * frv-tdep.c (frv_gdbarch_init): Ditto.
5753 * cris-tdep.c (cris_gdbarch_init): Ditto.
5754
adedef68
EZ
57552003-06-02 Elena Zannoni <ezannoni@redhat.com>
5756
8ffd9b1b 5757 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5758 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5759 (syms_from_objfile): Ditto.
5760
650fcc91
AS
57612003-06-03 Andreas Schwab <schwab@suse.de>
5762
5763 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5764 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5765
df4a182b
RH
57662003-06-02 Richard Henderson <rth@redhat.com>
5767
5768 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5769 a member of all_reggroup.
5770
c483c494
RH
57712003-06-02 Richard Henderson <rth@redhat.com>
5772
5773 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5774 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5775 (alpha_lds, alpha_sts): New.
5776 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5777 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5778 restructure and fail for type sizes other than 4 or 8.
5779 (alpha_value_to_register): Similarly.
5780 (alpha_extract_return_value): Use alpha_sts.
5781 (alpha_store_return_value): Use alpha_lds.
5782 (alpha_gdbarch_init): Update hooks.
5783
b38b6be2
RH
57842003-06-02 Richard Henderson <rth@redhat.com>
5785
5786 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5787 regnum identifiers.
5788 (alpha_sigtramp_register_address): Likewise.
5789
98a8e1e5
RH
57902003-06-02 Richard Henderson <rth@redhat.com>
5791
5792 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5793 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5794 * alpha-tdep.h: Declare them.
5795
5796 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5797 Remove zerobuf. Don't error on UNIQUE.
5798 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5799 (ALPHA_REGSET_UNIQUE): Provide default.
5800 (supply_gregset): Use alpha_supply_int_regs.
5801 (fill_gregset): Use alpha_fill_int_regs.
5802 (supply_fpregset): Use alpha_supply_fp_regs.
5803 (fill_fpregset): Use alpha_fill_fp_regs.
5804 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5805 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5806 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5807 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5808 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5809 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5810
67dfac52
RH
58112003-06-02 Richard Henderson <rth@redhat.com>
5812
f75d70cc
RH
5813 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5814
67dfac52
RH
5815 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5816 (alpha_store_return_value): Likewise.
5817
0cf566ec
DC
58182003-06-02 David Carlton <carlton@math.stanford.edu>
5819
5820 * block.c (contained_in): Add 'const' to arguments.
5821 (block_function): Ditto.
5822 * block.h: Update declarations for block_function and
5823 contained_in.
5824
cdef89d0
DC
58252003-06-02 David Carlton <carlton@math.stanford.edu>
5826
5827 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5828 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5829 * p-valprint.c (pascal_val_print): Ditto.
5830 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5831
72667056
RH
58322003-06-02 Richard Henderson <rth@redhat.com>
5833
98a8e1e5
RH
5834 * alpha-tdep.c (alpha_push_dummy_call): Use
5835 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5836
8ffd9b1b 5837 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5838 sign-extension of 32-bit values.
5839 (alpha_store_return_value): Similarly.
0ede8eca 5840
98a8e1e5
RH
5841 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5842 (alpha_extract_return_value): Likewise.
5843 (alpha_store_return_value): Likewise.
7b5e1cb3 5844
98a8e1e5
RH
5845 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5846 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5847
98a8e1e5
RH
5848 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5849 (alpha_extract_struct_value_address): Likewise.
5850 (alpha_store_return_value): Likewise.
5851 (alpha_store_struct_return): Remove.
5852 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5853
98a8e1e5
RH
5854 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5855 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5856 macros where appropriate.
5857 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5858 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5859
98a8e1e5
RH
5860 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5861 for SP, GP; void_func_ptr for PC; non-language-specific types
5862 for all others.
5863 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5864
6dd77b81
RH
58652003-06-02 Richard Henderson <rth@redhat.com>
5866
5867 * top.h (lim_at_start): Declare.
5868 * main.c (captured_main): Set it.
5869 * top.c (lim_at_start): Define.
5870 (command_loop): Use it instead of &environ.
5871 * event-top.c (command_handler): Likewise.
5872
f4dbdb54
JT
58732003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5874
5875 * mipsnbsd-tdep.c: Update copyright years.
5876 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5877
8f285956
RH
58782003-06-01 Richard Henderson <rth@redhat.com>
5879
98a8e1e5
RH
5880 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5881 (alpha-linux-tdep.o): Update dependencies.
5882 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5883 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5884
615967cb
RH
58852003-06-01 Richard Henderson <rth@redhat.com>
5886
98a8e1e5
RH
5887 * alpha-tdep.c (alpha_register_reggroup_p): New.
5888 (alpha_gdbarch_init): Register it.
615967cb 5889
b59661bd
AC
58902003-06-02 Andrew Cagney <cagney@redhat.com>
5891
5892 * dwarfread.c: Eliminate "register"
5893 (decode_die_type): Eliminate assignment within "if".
5894 (struct_type, decode_array_element_type): Ditto.
5895 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5896 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5897 (decode_modified_type, completedieinfo): Ditto.
5898 * block.c: Eliminate "register".
5899 (blockvector_for_pc_sect): Eliminate assignment within "if".
5900 * cp-support.h (struct symbol): Opaque declaration.
5901 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5902
5ef165c2
RH
59032003-06-01 Richard Henderson <rth@redhat.com>
5904
98a8e1e5
RH
5905 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5906 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5907
143985b7
AF
59082003-06-01 Adam Fedor <fedor@gnu.org>
5909
5910 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5911 * gdbarch.[ch]: Regenerate.
5912 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5913 (hppa_gdbarch_init): Set it in the gdbarch vector.
5914 * i386-tdep.c (i386_fetch_pointer_argument): New
5915 (i386_gdbarch_init): Set it into gdbarch.
5916 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5917 (rs6000_gdbarch_init): Set it in gdbarch.
5918 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5919 (sparc_gdbarch_init): Set it in gdbarch.
5920
ae0167b9
AC
59212003-06-01 Andrew Cagney <cagney@redhat.com>
5922
7c0b4a20
AC
5923 * defs.h (extract_address): Delete declaration.
5924 * findvar.c (extract_address): Delete function.
5925 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5926 extract_address with the inline equivalent,
5927 extract_unsigned_integer.
5928 (xstormy16_extract_struct_value_address): Ditto.
5929 (xstormy16_pointer_to_address): Ditto.
5930 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5931 * v850-tdep.c (v850_push_arguments): Ditto.
5932 (v850_extract_return_value): Ditto.
5933 (v850_extract_struct_value_address): Ditto.
5934 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5935 (sparcnbsd_get_longjmp_target_64): Ditto.
5936 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5937 (get_longjmp_target): Ditto.
5938 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5939 (sh64_extract_struct_value_address): Ditto.
5940 (sh_push_arguments): Ditto.
5941 (sh64_push_arguments): Ditto.
5942 * remote-vxsparc.c (vx_read_register): Ditto.
5943 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5944 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5945 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5946 * mipsv4-nat.c (get_longjmp_target): Ditto.
5947 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5948 * mips-nat.c (get_longjmp_target): Ditto.
5949 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5950 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5951 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5952 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5953 * irix5-nat.c (get_longjmp_target): Ditto.
5954 * irix4-nat.c (get_longjmp_target): Ditto.
5955 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5956 (ia64_push_arguments): Ditto.
5957 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5958 * h8300-tdep.c (h8300_push_arguments): Ditto.
5959 (h8300_store_return_value): Ditto.
5960 (h8300_extract_struct_value_address): Ditto.
5961 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5962 (frv_push_arguments): Ditto.
5963 * avr-tdep.c (avr_pointer_to_address): Ditto.
5964 (avr_push_arguments): Ditto.
5965 * arm-tdep.c (arm_push_dummy_call): Ditto.
5966 (arm_get_longjmp_target): Ditto.
5967 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5968 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5969 (alpha_get_longjmp_target): Ditto.
5970
ae0167b9
AC
5971 * solib-irix.c (extract_mips_address): Inline extract_address,
5972 replacing it with extract_signed_integer.
5973 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5974 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5975 (first_link_map_member, open_symbol_file_object): Ditto.
5976 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5977 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5978 (LM_NEXT, LM_NAME): Ditto.
5979
44d88583
RH
59802003-06-01 Richard Henderson <rth@redhat.com>
5981
98a8e1e5
RH
5982 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5983 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5984 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5985 (alpha_cannot_store_register): Likewise.
5986 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5987 * alpha-nat.c (supply_gregset): Likewise.
5988 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5989
310e9b6a
AC
59902003-06-01 Andrew Cagney <cagney@redhat.com>
5991
5992 * infcall.c (call_function_by_hand): Update comment on
5993 DEPRECATED_DUMMY_WRITE_SP.
5994
5995 * mips-tdep.c (mips_gdbarch_init): Do not set
5996 deprecated_dummy_write_sp.
5997 (mips_eabi_push_dummy_call): Set the SP register.
5998 (mips_o64_push_dummy_call): Set the SP register.
5999 (mips_o32_push_dummy_call): Set the SP register.
6000 (mips_n32n64_push_dummy_call): Set the SP register.
6001
5ab84872
RH
60022003-06-01 Richard Henderson <rth@redhat.com>
6003
98a8e1e5
RH
6004 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6005 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6006 (supply_gregset): Likewise.
6007 * alpha-tdep.c (alpha_store_return_value): Likewise.
6008 (alpha_get_longjmp_target): Likewise.
6009 (alpha_register_name): Constify array.
6010 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6011 deprecated_register_size, deprecated_register_bytes,
6012 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6013 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6014 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 6015
09cc52fd
RH
60162003-06-01 Richard Henderson <rth@redhat.com>
6017
6018 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6019 from arg_reg_buffer to regcache to avoid double conversion.
6020
c7f16359
MK
60212003-06-01 Mark Kettenis <kettenis@gnu.org>
6022
6023 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6024 SP_REGNUM.
6025 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6026 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6027
7131cb6e
RH
60282003-06-01 Richard Henderson <rth@redhat.com>
6029
98a8e1e5
RH
6030 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6031 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 6032
f3e0f90b
RH
60332003-06-01 Richard Henderson <rth@redhat.com>
6034
98a8e1e5
RH
6035 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6036 not overlapping PC_REGNUM.
f3e0f90b 6037
c88e30c0
RH
60382003-06-01 Richard Henderson <rth@redhat.com>
6039
98a8e1e5
RH
6040 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6041 alpha_push_arguments. Don't dump argument register data to
6042 the target stack. Fix float and 128-bit long double semantics.
6043 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6044 (alpha_fix_call_dummy): Remove.
6045 (alpha_call_dummy_words): Remove.
6046 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 6047
f1a559ae
RH
60482003-06-01 Richard Henderson <rth@redhat.com>
6049
6050 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6051
5e045346
AC
60522003-06-01 Andrew Cagney <cagney@redhat.com>
6053
95404a3e
AC
6054 * mips-tdep.c (is_mips16_addr): New function.
6055 (make_mips16_addr, unmake_mips16_addr): New functions.
6056 (pc_is_mips16, mips_fetch_instruction): Use.
6057 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6058 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6059 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6060 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6061 TARGET_MIPS.
6062 * config/mips/tm-mips.h: Update copyright.
6063 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6064 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6065 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6066 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6067 (TM_PRINT_INSN_MACH): Delete.
6068 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6069
5e045346
AC
6070 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6071 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6072 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6073 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6074 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6075 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6076 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6077 mips*-*-riscos* and mips*-*-sysv* onto mips.
6078 * config/mips/mips64.mt: New file.
6079 * config/mips/mips.mt: New file.
6080 * config/mips/littlemips.mt: Delete file.
6081 * config/mips/decstation.mt: Delete file.
6082 * config/mips/vr4300el.mt: Delete file.
6083 * config/mips/vr5000el.mt: Delete file.
6084 * config/mips/vr5000.mt: Delete file.
6085 * config/mips/vr4100.mt: Delete file.
6086 * config/mips/vr4xxxel.mt: Delete file.
6087 * config/mips/vr4300.mt: Delete file.
6088 * config/mips/vr4xxx.mt: Delete file.
6089 * config/mips/bigmips.mt: Delete file.
6090 * config/mips/bigmips64.mt: Delete file.
6091 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6092 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6093 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6094 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6095 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6096 "tm-bigmips.h".
6097 * config/mips/tm-irix3.h: Ditto.
6098 * config/mips/tm-mipsv4.h: Ditto.
6099 * config/mips/tm-embed.h: Ditto.
6100 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6101 "tm-bigmips64.h".
6102 * config/mips/tm-vr5000el.h: Delete file.
6103 * config/mips/tm-tx39l.h: Delete file.
6104 * config/mips/tm-vr4300el.h: Delete file.
6105 * config/mips/tm-vr4xxxel.h: Delete file.
6106 * config/mips/tm-vr4300.h: Delete file.
6107 * config/mips/tm-vr4100.h: Delete file.
6108 * config/mips/tm-vr4xxx.h: Delete file.
6109 * config/mips/tm-vr5000.h: Delete file.
6110 * config/mips/tm-embedl64.h: Delete file.
6111 * config/mips/tm-embedl.h: Delete file.
6112 * config/mips/tm-embed64.h: Delete file.
6113 * config/mips/tm-bigmips64.h: Delete file.
6114 * config/mips/tm-bigmips.h: Delete file.
6115
2473a4a9
MK
61162003-06-01 Mark Kettenis <kettenis@gnu.org>
6117
97a5b208
MK
6118 Fix gdb/1216.
6119 * shnbsd-nat.c: Include "sh-tdep.h".
6120
2473a4a9
MK
6121 From Richard Henderson <rth@redhat.com>:
6122 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6123
e0f7ec59
AC
61242003-05-31 Andrew Cagney <cagney@redhat.com>
6125
6126 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6127 forward declaration.
6128 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6129 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6130 (mips_find_saved_regs): Use set_reg_offset.
6131 (mips_frame_init_saved_regs): Delete function.
6132 (mips_pop_frame): Call mips_find_saved_regs instead of
6133 DEPRECATED_FRAME_INIT_SAVED_REGS.
6134
68dcc709
AC
61352003-05-31 Andrew Cagney <cagney@redhat.com>
6136
6137 * mips-tdep.c (mips_gdbarch_init): Do not set
6138 deprecated_max_register_raw_size, register_virtual_size, and
6139 deprecated_max_register_virtual_size.
6140
cfc14b3a
MK
61412003-05-31 Mark Kettenis <kettenis@gnu.org>
6142
6405b0a6
MK
6143 * i386-tdep.c: Include "dwarf2-frame.h".
6144 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6145 * Makefile.in (i386-tdep.o): Update dependencies.
6146
cfc14b3a
MK
6147 * dwarf2-frame.c, dwarf2-frame.h: New files.
6148 * Makefile.in (SFILES): Add dwarf2-frame.c.
6149 (dwarf2_frame_h): Define.
6150 (COMMON_OBS): Add dwarf2-frame.o.
6151 (dwarf2-frame.o): Add dependencies.
6152
6a2751d2
AJ
61532003-05-31 Andreas Jaeger <aj@suse.de>
6154
6155 * x86-64-linux-nat.c: Fix comment.
6156
1c3545ae
MK
61572003-05-31 Mark Kettenis <kettenis@gnu.org>
6158
10f93086
MK
6159 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6160 function signature.
6161
1c3545ae
MK
6162 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6163 have a sigcontext_addr handler.
6164 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6165 sigcontext_addr handler.
6166
e11c53d2
AC
61672003-05-31 Andrew Cagney <cagney@redhat.com>
6168
6169 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6170 (print_fp_register_row): Replace do_fp_register_row.
6171 (mips_print_fp_register): Add "file" and "frame" parameters.
6172 (mips_print_register): Add "file" and "frame" parameters.
6173 (mips_print_registers_info): Replace mips_do_registers_info.
6174 (mips_gdbarch_init): Set print_registers_info instead of
6175 deprecated_do_registers_info.
6176 (mips_read_fp_register_single): Add "frame" parameter.
6177 (mips_read_fp_register_double): Add "frame" parameter.
6178
a3386186
MK
61792003-05-31 Mark Kettenis <kettenis@gnu.org>
6180
70913449
MK
6181 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6182 Fixes a bug where GDB would print the wrong register names for
6183 targets without SSE.
6184
2b5e0749
MK
6185 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6186 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6187 registers.
6188
6189 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6190 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6191 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6192 TDEP->sc_sp_offset.
6193
a3386186
MK
6194 From Michal Ludvig <mludvig@suse.cz>:
6195 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6196 and `sc_num_regs'.
6197 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6198 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6199 I386_ST0_REGNUM): Move here from...
6200 * i386-tdep.c: ... here.
6201 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6202 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6203 registers if possible.
6204 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6205 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6206 Remove variables.
6207 (i386bsd_sc_reg_offset): New variable.
6208 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6209 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6210 TDEP->sc_sp_offset.
6211 (i386fbsd_sc_reg_offset): New variable.
6212 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6213 TDEP->sc_num_regs.
6214 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6215 variables.
6216 (i386fbsd4_sc_reg_offset): New variable.
6217 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6218 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6219 TDEP->sc_sp_offset.
6220 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6221 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6222 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6223 Remove variables.
6224 (i386nbsd_sc_reg_offset): New variable.
6225 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6226 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6227 TDEP->sc_sp_offset.
6228 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6229 Remove variables.
6230 (i386obsd_sc_reg_offset): New variable.
6231 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6232 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6233 TDEP->sc_sp_offset.
6234 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6235 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6236 for frame pointer offset in `struct sigcontext'.
6237
25ab4790
AC
62382003-05-31 Andrew Cagney <cagney@redhat.com>
6239
6240 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6241 architecture methods call_dummy_words, sizeof_call_dummy_words,
6242 push_return_address, store_struct_return, and fix_call_dummy. Set
6243 push_dummy_call instead of deprecated_push_arguments.
6244 (mips_store_struct_return): Delete function.
6245 (mips_fix_call_dummy): Delete function.
6246 (mips_push_return_address): Delete function.
6247 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6248 RA_REGNUM and T9_REGNUM.
6249 (mips_n32n64_push_dummy_call): Ditto for
6250 mips_n32n64_push_arguments.
6251 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6252 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6253
6a65450a
AC
62542003-05-31 Andrew Cagney <cagney@redhat.com>
6255
6256 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6257 "dummy_addr" to "bp_addr".
6258 * infcall.c (call_function_by_hand): Pass "funaddr" to
6259 gdbarch_push_dummy_call.
6260 * gdbarch.h, gdbarch.c: Re-generate.
6261 * i386-tdep.c (i386_push_dummy_call): Update.
6262 * arm-tdep.c (arm_push_dummy_call): Update.
6263 * d10v-tdep.c (d10v_push_dummy_call): Update.
6264
c4f35dd8
MK
62652003-05-31 Mark Kettenis <kettenis@gnu.org>
6266
6267 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6268 variable declarations.
6269 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6270 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6271 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6272 x86_64_init_frame_pc, x86_64_init_frame_pc,
6273 x86_64_function_has_prologue): Remove prototypes.
6274 (X86_64_NUM_GREGS): New define.
6275 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6276 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6277 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6278 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6279 XMM1_REGNUM): Remove defines.
6280 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6281 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6282 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6283 X86_64_XMM1_REGNUM): New defines.
6284 (struct x86_64_register_info): Renamed from `struct
6285 register_info'. Remove `size' member.
6286 (x86_64_register_info_table): Remove variable.
6287 (x86_64_register_info): New variable.
6288 (X86_64_NUM_REGS): New define.
6289 (X86_64_NUM_GREGS): Remove define.
6290 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6291 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6292 Remove variables.
6293 (x86_54_dwarf2_reg_to_regnum): Remove function.
6294 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6295 (x86_64_dwarf_reg_to_regnum): New function.
6296 (x86_64_register_name): Rewrite.
6297 (x86_64_register_raw_size): Remove function.
6298 (x86_64_register_byte_table): Remove variable.
6299 (x86_64_register_byte): Remove function.
6300 (x86_64_register_virtual_type): Remove function.
6301 (x86_64_register_type): New function.
6302 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6303 x86_64_register_convert_to_raw): Remove functions.
6304 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6305 (x86_64_use_struct_convention): Make static. Adjust for renamed
6306 defines.
6307 (x86_64_frame_init_saved_regs): Remove function.
6308 (x86_64_push_arguments): Make static. Change to accept a regcache
6309 as argument.
6310 (x86_64_store_return_value, x86_64_extract_return_value): Make
6311 static. Rewrite based on i386 counterparts.
6312 (x86_64_push_dummy_call): New function.
6313 (X86_64_NUM_SAVED_REGS): New define.
6314 (x86_64_register_number): Remove function.
6315 (x86_64_store_struct_return): Remove function.
6316 (x86_64_frameless_function_invocation,
6317 x86_64_function_has_prologue): Remove functions.
6318 (PROLOG_BUFSIZE): Remove define.
6319 (struct x86_64_frame_cache): New structure.
6320 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6321 x86_64_frame_cache, x86_64_frame_this_id,
6322 x86_64_frame_prev_register, x86_64_frame_p,
6323 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6324 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6325 functions.
6326 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6327 variables.
6328 (x86_64_skip_prologue): Rewrite in terms of
6329 x86_64_analyze_prologue.
6330 (x86_64_frame_base_address): New function.
6331 (x86_64_frame_base): New variable.
6332 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6333 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6334 set deprecated_fp_regnum, deprecated_register_size,
6335 deprecated_register_bytes, register_raw_size, register_byte,
6336 register_virtual_type, register_convertiable,
6337 register_convert_to_virtual, convert_to_raw,
6338 deprecated_get_saved_register, deprecated_target_read_fp,
6339 deprecated_push_arguments, deprecated_push_return_address,
6340 deprecated_pop_frame, deprecated_store_struct_return,
6341 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6342 frameless_function_invocation, deprecated_frame_saved_pc,
6343 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6344 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6345 deprecated_init_frame_pc and virtual_frame_pointer. Call
6346 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6347 and x86_64_frame_p. Call frame_base_set_default to register
6348 x86_64_frame_base.
6349 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6350 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6351 (_initialize_x86_64_tdep): Remove function.
6352 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6353 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6354 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6355 define.
6356 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6357 (x86_64_linux_sigcontext_addr): Rewrite.
6358 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6359 x86_64_linux_frame_saved_pc): Remove functions.
6360 (x86_64_linux_pc_in_sigtramp): Renamed from
6361 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6362 trampoline.
6363 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6364 Remove_functions.
6365 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6366 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6367 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6368 (x86_64_regmap): Rename to regmap.
6369 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6370 x86_64_num_gregs.
6371 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6372 x86_64_regmap.
6373 (x86_64_fxsave_offset): Remove function.
6374 (supply_fpregset): Simply call x86_64_supply_fxsave.
6375 (fill_fpregset): Simply call x86_64_fill_fxsave.
6376 (fetch_inferior_registers, store_inferior_registers): Avoid
6377 asignment in if-statement.
6378 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6379 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6380 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6381 (fetch_core_registers): Remove function.
6382 (linux_elf_core_fns): Remove.
6383 (offsetoff): Don't define.
6384 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6385 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6386 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6387 add core-regset.o.
6388 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6389 protection against multiple includes instead of NM_X86_64_h. Add
6390 various comments. Include "config/nm-linux.h". Don't include
6391 <signal.h>.
6392 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6393 GET_THREAD_SIGNALS): Remove defines.
6394 (x86_64_register_u_addr, kernel_u_size,
6395 lin_thread_get_thread_signals): Remove prototypes.
6396 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6397 [HAVE_LINK_H]: Don't include "solib.h".
6398 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6399 * config/i386/tm-x86-64linux.h: Fix comments.
6400 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6401 x86-64-tdep.o): Update dependencies.
6402
c25083af
AC
64032003-05-30 Andrew Cagney <cagney@redhat.com>
6404
c8f55a7b
AC
6405 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6406 Change parameter type to a "struct regcache *".
6407
c25083af
AC
6408 * gdbarch.sh: Regardless of the multi-arch level, always define
6409 the macro when not already defined.
6410 * gdbarch.h, gdbarch.c: Re-generate.
6411
fbe586ae
RH
64122003-05-30 Richard Henderson <rth@redhat.com>
6413
6414 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6415 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6416 (alpha_mdebug_frame_this_id): Likewise.
6417 (alpha_mdebug_frame_prev_register): Likewise.
6418 (alpha_mdebug_frame_base_address): Likewise.
6419 (alpha_mdebug_frame_locals_address): Likewise.
6420 (alpha_mdebug_frame_args_address): Likewise.
6421 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6422 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6423 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6424 loop increment.
6425 (alpha_heuristic_frame_this_id): Make static.
6426 (alpha_heuristic_frame_prev_register): Likewise.
6427 (alpha_heuristic_frame_base_address): Likewise.
6428 * alpha-tdep.h: Update.
6429
acd5c798
MK
64302003-05-30 Mark Kettenis <kettenis@gnu.org>
6431
6432 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6433 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6434 defenitions.
6435 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6436 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6437 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6438 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6439 I386_ST0_REGNUM): New defines.
6440 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6441 codestream_get): Remove define.
6442 (codestream_next_addr, condestream_addr, condestream_buf,
6443 codestream_off, codestream_cnt): Remove variables.
6444 (codestream_fill, codestream_seek, codestream_read): Remove
6445 functions.
6446 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6447 functionality.
6448 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6449 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6450 i386_frame_saved_pc, i386_saved_pc_after_call,
6451 i386_frame_num_args, i386_frame_init_saved_regs,
6452 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6453 i386_push_arguments): Remove functions.
6454 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6455 functionality. Use i386_analyze_prologue instead of
6456 i386_get_frame_setup.
6457 (I386_NUM_SAVED_REGS): New define.
6458 (struct i386_frame_cache): New structure.
6459 (i386_alloc_frame_cache, i386_analyze_struct_return,
6460 i386_skip_probe, i386_analyze_frame_setup,
6461 i386_analyze_register_saves, i386_analyze_prologue,
6462 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6463 i386_frame_prev_register, i386_sigtramp_frame_cache,
6464 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6465 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6466 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6467 New functions.
6468 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6469 New variables.
6470 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6471 I386_EAX_REGNUM and I386_EDX_REGNUM.
6472 (i386_extract_return_value, i386_store_return_value): Use
6473 I386_ST0_REGNUM where appropriate.
6474 (i386_extract_struct_value_address): Rewrite to use extract_address.
6475 (i386_svr4_pc_in_sigtramp): Add comment.
6476 (i386_svr4_sigcontext_addr): Rewrite.
6477 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6478 TDEP->sc_sp_offset.
6479 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6480 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6481 of new defines. Set push_dummy_call, don't set
6482 deprecated_push_arguments, deprecated_push_return_address,
6483 deprecated_pop_frame. Don't set parm_boundary. Don't set
6484 deprecated_frame_chain, deprecated_frame_saved_pc,
6485 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6486 save_dummy_frame_tos, unwind_pc. Call
6487 frame_unwind_append_predicate and frame_base_set_default. Don't
6488 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6489 Don't set frameless_function_invocation. Don't set
6490 deprecated_register_bytes, deprecated_register_size,
6491 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6492 * i386-linux-tdep.c: Fix formatting in some comments.
6493 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6494 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6495 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6496 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6497 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6498 redundant parentheses.
6499 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6500 (i386_linux_sigcontext_addr): Use it. Rewrite.
6501 (find_minsym_and_objfile): Change name of second argument.
6502 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6503 changed. Use frame_pc_unwind instead of
6504 DEPRECATED_SAVED_PC_AFTER_CALL.
6505 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6506 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6507 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6508 unwinder.
6509 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6510 "dummy-frame.h".
6511 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6512 (_initialize_i386_cygwin_tdep): New prototype.
6513 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6514 deprecated_frame_chain_valid.
6515 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6516 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6517 Rely on the SVR4 defaults.
6518 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6519 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6520
c89b70f1
AC
65212003-05-30 Andrew Cagney <cagney@redhat.com>
6522
6523 * infcall.c (call_function_by_hand): Always call
6524 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6525
85b32d22
RH
65262003-05-30 Richard Henderson <rth@redhat.com>
6527
c89b70f1
AC
6528 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6529 increment.
85b32d22 6530
bfe51b1e
JB
65312003-05-29 Jim Blandy <jimb@redhat.com>
6532
6533 Use gdbarch methods for solib stuff on PowerPC Linux.
6534 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6535 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6536 show through.
6537 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6538 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6539 giving the same effect as the #definitions above.
6540
1abf022c
AF
65412003-05-29 Adam Fedor <fedor@gnu.org>
6542
6543 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6544 (find_implementation_from_class): Replace it with the standard
6545 case i.e. do nothing.
6546
d2427a71
RH
65472003-05-29 Richard Henderson <rth@redhat.com>
6548
6549 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6550 (alpha_linux_sigtramp_offset): Use it. Make static.
6551 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6552 update for new frame model.
6553 * alpha-mdebug-tdep.c: New file.
6554 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6555 (alpha_osf1_init_abi): Install it.
6556 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6557 (linked_proc_desc_table): Remove.
6558 (alpha_frame_past_sigtramp_frame): Remove.
6559 (alpha_dynamic_sigtramp_offset): Remove.
6560 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6561 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6562 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6563 (push_sigtramp_desc): Remove.
6564 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6565 (alpha_cannot_store_register): Likewise.
6566 (alpha_sigcontext_addr): Remove.
6567 (alpha_find_saved_regs): Remove.
6568 (alpha_frame_init_saved_regs): Remove.
6569 (alpha_init_frame_pc_first): Remove.
6570 (read_next_frame_reg): Remove.
6571 (alpha_frame_saved_pc): Remove.
6572 (alpha_saved_pc_after_call): Remove.
6573 (temp_proc_desc, temp_saved_regs): Remove.
6574 (alpha_about_to_return): Remove.
6575 (cached_proc_desc): Remove.
6576 (alpha_frame_chain): Remove.
6577 (alpha_print_extra_frame_info): Remove.
6578 (alpha_init_extra_frame_info): Remove.
6579 (alpha_frame_locals_address): Remove.
6580 (alpha_frame_args_address): Remove.
6581 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6582 (alpha_push_dummy_frame): Remove.
6583 (alpha_pop_frame): Remove.
6584 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6585 (alpha_read_insn): New.
6586 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6587 for different insn encodings.
6588 (alpha_in_lenient_prologue): Remove.
6589 (struct alpha_sigtramp_unwind_cache): New.
6590 (alpha_sigtramp_frame_unwind_cache): New.
6591 (alpha_sigtramp_register_address): New.
6592 (alpha_sigtramp_frame_this_id): New.
6593 (alpha_sigtramp_frame_prev_register): New.
6594 (alpha_sigtramp_frame_unwind): New.
6595 (alpha_sigtramp_frame_p): New.
6596 (struct alpha_heuristic_unwind_cache): New.
6597 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6598 don't count nop insns that occur between functions.
6599 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6600 heuristic_proc_desc, but without the mdebug wrapping.
6601 (alpha_heuristic_frame_this_id): New.
6602 (alpha_heuristic_frame_prev_register): New.
6603 (alpha_heuristic_frame_unwind): New.
6604 (alpha_heuristic_frame_p): New.
6605 (alpha_heuristic_frame_base_address): New.
6606 (alpha_heuristic_frame_base): New.
6607 (alpha_unwind_dummy_id): New.
6608 (alpha_unwind_pc): New.
6609 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6610 frame related deprecated initializations; install replacements.
6611 (alpha_dump_tdep): Remove.
6612 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6613 (alpha_read_insn, alpha_after_prologue,
6614 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6615 alpha_heuristic_frame_prev_register,
6616 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6617 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6618 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6619 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6620
93ec1121
AC
66212003-05-29 Andrew Cagney <cagney@redhat.com>
6622
6623 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6624 dependant on the availability of ASSERT_FUNCTION.
6625 (ASSERT_FUNCTION): Do not define when there is no function name.
6626
98f08d3d
KB
66272003-05-29 Kevin Buettner <kevinb@redhat.com>
6628
6629 From Jimi X <jimix@watson.ibm.com>:
6630 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6631
0897f59b
JB
66322003-05-28 Jim Blandy <jimb@redhat.com>
6633
6634 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6635 argument to ptrace to int; the system headers should give it the
6636 right type, and pointers don't fit in ints on powerpc64-*-*.
6637
14898363
L
66382003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6639
6640 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6641 DW_TAG_catch_block.
6642
a7a48797
EZ
66432003-05-26 Elena Zannoni <ezannoni@redhat.com>
6644
6645 * stabsread.c (dbx_lookup_type): Make static.
6646 (read_type): Ditto.
6647 (add_undefined_type): Ditto.
6648 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6649 not export.
6650
f5479e9c
EZ
66512003-05-26 Elena Zannoni <ezannoni@redhat.com>
6652
6653 * hpread.c (hpread_has_name): Make static.
6654 (hpread_psymtab_to_symtab): Ditto.
6655 (file_exists): Ditto.
6656 (hpread_call_pxdb): Ditto.
6657 (hpread_pxdb_needed): Ditto.
6658 (hpread_quick_traverse): Ditto.
6659 (hpread_get_header): Ditto.
6660 (hpread_get_lntt): Ditto.
6661 (hpread_get_slt): Ditto.
6662 (class_of): Ditto.
6663
eb2e12d7
AS
66642003-05-25 Andreas Schwab <schwab@suse.de>
6665
78bf922a
AS
6666 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6667 stack_align and deprecated_extra_stack_alignment_needed.
6668 (m68k_stack_align): Delete.
6669
eb2e12d7
AS
6670 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6671 (m68k_register_virtual_size): Likewise.
6672 (altos_skip_prologue): Remove obsolete function.
6673 (isi_frame_num_args): Likewise.
6674 (news_frame_num_args): Likewise.
6675 (m68k_fix_call_dummy): Make static.
6676 (m68k_push_dummy_frame): Likewise.
6677 (m68k_pop_frame): Likewise.
6678 (m68k_skip_prologue): Likewise.
6679 (m68k_frame_init_saved_regs): Likewise.
6680 (m68k_saved_pc_after_call): Likewise.
6681 (m68k_get_longjmp_target): Make multi-arch.
6682 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6683 structure. Register m68k_get_longjmp_target if enabled.
6684 * m68k-tdep.h (struct gdbarch_tdep): Define.
6685 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6686
6687 * Makefile.in (config.status): Also depend on configure.tgt
6688 and configure.host.
6689 (m68klinux-tdep.o): Update dependencies.
6690 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6691 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6692 (M68K_LINUX_JB_PC): Define.
6693 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6694 and take additional parameter.
6695 (m68k_linux_sigtramp_saved_pc): Update.
6696 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6697 m68k_linux_pc_in_sigtramp, in_plt_section,
6698 find_solib_trampoline_target.
6699 * config/m68k/tm-linux.h: Don't include any tm headers.
6700 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6701 (JB_ELEMENT_SIZE): Likewise.
6702 (JB_PC): Likewise.
6703 (GET_LONGJMP_TARGET): Likewise.
6704 (IN_SIGTRAMP): Likewise.
6705 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6706
eb2c22dc
MK
67072003-05-25 Mark Kettenis <kettenis@gnu.org>
6708
6709 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6710 (sparc32_push_arguments): Re-implement by calling
6711 sparc32_do_push_arguments.
6712
44b7b84e
MK
67132003-05-25 Mark Kettenis <kettenis@gnu.org>
6714
6715 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6716 SPARC_O1_REGNUM): New defines.
6717 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6718 (sparc32_store_return_value): New function.
6719 (sparc_extract_struct_value_address): Rewrite to operate on a
6720 regcache.
6721 (sparc_gdbarch_init): Don't set
6722 deprecated_extract_struct_value_address. Set
6723 extract_struct_value_address instead. Don't set
6724 deprecated_extract_return_value and deprecated_store_return_value
6725 for 32-bit targets. Set extract_return_value and
6726 store_return_value instead.
6727 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6728 DEPRECTAED_EXTRACT_RETURN_VALUE,
6729 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6730 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6731 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6732 (sparc_store_return_value): Remove prototype.
6733 (sparc32_store_return_value): New prototype.
6734 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6735 Adjust prototypes.
6736
f6ad61e3
MK
67372003-05-24 Mark Kettenis <kettenis@gnu.org>
6738
6739 * sparcnbsd-tdep.c: Include "gdb_string.h".
6740
b276f1bb
AC
67412003-05-23 Andrew Cagney <cagney@redhat.com>
6742
6743 * p-valprint.c (pascal_val_print): Replace extract_address with
6744 the inline equivalent extract_unsigned_integer.
6745 * jv-valprint.c (java_value_print): Ditto.
6746 * ada-valprint.c (ada_val_print_1): Ditto.
6747 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6748
e76c5fcc
TR
67492003-05-23 Theodore A. Roth <troth@openavr.org>
6750
6751 * blockframe.c (frameless_look_for_prologue): Remove unused
6752 after_prologue variable.
6753
2cdd89cb
MK
67542003-05-23 Mark Kettenis <kettenis@gnu.org>
6755
6756 * blockframe.c (get_pc_function_start): Rewrite to avoid
6757 asignments in if-statements.
6758
182d43bc
EZ
67592003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6760
6761 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6762 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6763 files, don't relocate absolute symbols (and do use mst_abs).
6764
e8f3fcdd
AC
67652003-05-23 Andrew Cagney <cagney@redhat.com>
6766
6767 * objc-lang.c: Include "gdb_assert.h".
6768 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6769 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6770 (gdb_check, gdb_check_fatal): Delete functions.
6771 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6772 gdb_assert.
6773 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6774 * Makefile.in (objc-lang.o): Update dependencies.
6775
3c23e6fb
ILT
67762003-05-22 Ian Lance Taylor <ian@airs.com>
6777
6778 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6779 with fprintf_filtered, not fprintf_unfiltered.
6780
af1342ab
AC
67812003-05-22 Andrew Cagney <cagney@redhat.com>
6782
6783 * stack.c (frame_info): Inline extract_address, replacing it with
6784 extract_unsigned_integer.
6785 * findvar.c (unsigned_pointer_to_address): Ditto.
6786 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6787 * dwarf2expr.c (dwarf2_read_address): Ditto.
6788 * frame.c (frame_pc_unwind): Update comment.
6789 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6790
47e242ec
JJ
67912003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6792
6793 * infptrace.c (detach): Call print_sys_errmsg rather than
6794 perror_with_name to issue warning message when errno is non-zero
6795 after calling ptrace detach.
6796
e2ac8128
JB
67972003-05-21 J. Brobecker <brobecker@gnat.com>
6798
6799 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6800 macro definitions from here...
6801 * hppa-tdep.c: ...to there.
6802
92b3541e
KB
68032003-05-20 Kevin Buettner <kevinb@redhat.com>
6804
6805 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6806 register_ptrace_addr(). Fix all callers.
6807
55809acb
AS
68082003-05-21 Andreas Schwab <schwab@suse.de>
6809
6810 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6811 dependencies.
6812 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6813 end.
6814 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6815 (_initialize_m68k_linux_tdep): New function.
6816 (m68k_linux_frame_saved_pc): Make static.
6817 (m68k_linux_extract_return_value): Likewise.
6818 (m68k_linux_store_return_value): Likewise.
6819 (m68k_linux_extract_struct_value_address): Likewise.
6820 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6821 Remove.
6822 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6823 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6824 (DEPRECATED_FRAME_SAVED_PC): Remove.
6825
0fbc10f7
KW
68262003-05-20 Kris Warkentin <kewarken@qnx.com>
6827
6828 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6829 regset numbering rather than our own.
6830
58da2eb2
DC
68312003-05-19 David Carlton <carlton@bactrian.org>
6832
6833 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6834
1fcb5155
DC
68352003-05-19 David Carlton <carlton@bactrian.org>
6836
6837 Partial fix for PR c++/827.
6838 * cp-support.h: Include symtab.h.
6839 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6840 * cp-namespace.c: Update contributors.
6841 (cp_lookup_symbol_nonlocal): New.
6842 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6843 (lookup_symbol_file): Ditto.
6844 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6845 * block.h: Declare block_scope, block_using, block_global_block.
6846 * block.c (block_scope): New.
6847 (block_using, block_global_block): Ditto.
6848 * Makefile.in (cp_support_h): Depend on symtab_h.
6849 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6850
5f9a71c3
DC
68512003-05-19 David Carlton <carlton@bactrian.org>
6852
6853 * language.h (struct language_defn): Add 'la_value_of_this'
6854 and 'la_lookup_symbol_nonlocal' members.
6855 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6856 lookup_symbol_static, lookup_symbol_global,
6857 lookup_symbol_aux_block.
6858 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6859 if we should search fields of this and how to do static/global
6860 lookup.
6861 (lookup_symbol_aux_block): Make extern.
6862 (basic_lookup_symbol_nonlocal): New.
6863 (lookup_symbol_static, lookup_symbol_global): Ditto.
6864 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6865 'la_lookup_symbol_nonlocal' members.
6866 * c-lang.c (c_language_defn, cplus_language_defn)
6867 (asm_language_defn, minimal_language_defn): Ditto.
6868 * jv-lang.c (java_language_defn): Ditto.
6869 * language.c (unknown_language_defn, auto_language_defn)
6870 (local_language_defn): Ditto.
6871 * m2-lang.c (m2_language_defn): Ditto.
6872 * objc-lang.c (objc_language_defn): Ditto.
6873 * scm-lang.c (scm_language_defn): Ditto.
6874 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6875 * p-lang.c (pascal_language_defn): Ditto for both.
6876 * Makefile.in (f-lang.o): Depend on value_h.
6877 (p-lang.o): Ditto.
6878
89a9d1b1
DC
68792003-05-19 David Carlton <carlton@bactrian.org>
6880
6881 * block.h: Declare block_static_block.
6882 * block.c (block_static_block): New.
6883 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6884 lookup_symbol_aux_local, calling block_static_block instead.
6885 (lookup_symbol_aux_local): Delete 'static_block' argument.
6886
eed3f8ab
DC
68872003-05-19 David Carlton <carlton@bactrian.org>
6888
6889 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6890
a09d8bda
ML
68912003-05-19 Michal Ludvig <mludvig@suse.cz>
6892
6893 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6894 register numbers mapping.
6895
69636828
AF
68962003-05-18 Adam Fedor <fedor@gnu.org>
6897
6898 * symtab.c (completion_list_objc_symbol): New function.
6899 (make_symbol_completion_list): Use it to add ObjC symbols
6900 when looking though the list.
6901 (language_search_unquoted_string): New function.
6902 (make_file_symbol_completion_list): Use it.
6903
55baeb84
AS
69042003-05-18 Andreas Schwab <schwab@suse.de>
6905
d0b45d99
AS
6906 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6907 dependencies.
6908 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6909 as m68k_linux_extract_return_value.
6910 (DEPRECATED_STORE_RETURN_VALUE): Define as
6911 m68k_linux_store_return_value.
6912 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6913 m68k_linux_extract_struct_value_address.
6914 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6915 get_next_frame, get_frame_base, get_frame_pc.
6916 (m68k_linux_frame_saved_pc): Use get_frame_base.
6917 (m68k_linux_extract_return_value): New function.
6918 (m68k_linux_store_return_value): New function.
6919 (m68k_linux_extract_struct_value_address): New function.
6920 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6921
55baeb84
AS
6922 * c-exp.y (typebase): Remove duplicate occurence of
6923 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6924 of lookup_signed_typename.
55baeb84 6925
b6b08ebf
MK
69262003-05-18 Mark Kettenis <kettenis@gnu.org>
6927
6928 * dwarf2loc.c (find_location_expression): Change type of second
6929 argument to `size_t *'.
6930 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6931 for size variable.
6932
5ad1c190
DC
69332003-05-18 David Carlton <carlton@bactrian.org>
6934
6935 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6936 'linkage_name'. Add comment.
6937 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6938 'linkage_name'.
6939 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6940 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6941 (lookup_block_symbol): Ditto.
6942
b8b527c5
AC
69432003-05-16 Andrew Cagney <cagney@redhat.com>
6944
6945 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6946 * gdbarch.h, gdbarch.c: Re-generate.
6947 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6948 * TODO (REGISTER_BYTES): Delete reference.
6949 * alpha-tdep.c (alpha_gdbarch_init): Update.
6950 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6951 * x86-64-tdep.c (x86_64_init_abi): Update.
6952 * vax-tdep.c (vax_gdbarch_init): Update.
6953 * v850-tdep.c (v850_gdbarch_init): Update.
6954 * sparc-tdep.c (sparc_gdbarch_init): Update.
6955 * sh-tdep.c (sh_gdbarch_init): Update.
6956 * s390-tdep.c (s390_gdbarch_init): Update.
6957 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6958 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6959 (ns32k_gdbarch_init_32382): Update.
6960 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6961 * mcore-tdep.c (mcore_gdbarch_init): Update.
6962 * m68k-tdep.c (m68k_gdbarch_init): Update.
6963 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6964 * ia64-tdep.c (ia64_gdbarch_init): Update.
6965 * i386-tdep.c (i386_gdbarch_init): Update.
6966 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6967 * hppa-tdep.c (hppa_gdbarch_init): Update.
6968 * h8300-tdep.c (h8300_gdbarch_init): Update.
6969 * frv-tdep.c (frv_gdbarch_init): Update.
6970 * cris-tdep.c (cris_gdbarch_init): Update.
6971 * avr-tdep.c (avr_gdbarch_init): Update.
6972 * arm-tdep.c (arm_gdbarch_init): Update.
6973 * sparc-tdep.c (sparc_pop_frame): Update.
6974 * rs6000-tdep.c (rs6000_pop_frame): Update.
6975 * remote.c (init_remote_state): Update.
6976 (remote_prepare_to_store): Update.
6977 * remote-vx.c (vx_prepare_to_store): Update.
6978 * remote-sds.c (sds_fetch_registers): Update.
6979 (sds_prepare_to_store): Update.
6980 * remote-array.c: Update.
6981 * regcache.c (init_legacy_regcache_descr): Update.
6982 (init_regcache_descr): Update.
6983 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6984 (mips_o64_extract_return_value): Update.
6985 * irix5-nat.c (fetch_core_registers): Update.
6986 * irix4-nat.c (fetch_core_registers): Update.
6987 * i386-tdep.h: Update.
6988 * hppa-tdep.c (pa_do_registers_info): Update.
6989 (pa_do_strcat_registers_info): Update.
6990 * cris-tdep.c (cris_register_bytes_ok): Update.
6991 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6992 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6993 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6994 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6995 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6996 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6997 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6998 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6999 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7000 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7001 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7002 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7003 (REGISTER_BYTES_OK): Update.
7004 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7005 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7006
ee2842e2
ILT
70072003-05-16 Ian Lance Taylor <ian@airs.com>
7008
7009 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7010 (vax_print_insn, print_insn_arg): Remove static functions.
7011 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7012 print_insn_vax from opcodes library.
7013 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7014
973177d3
AC
70152003-05-15 Andrew Cagney <cagney@redhat.com>
7016
aaab4dba
AC
7017 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7018 * target.h (memory_breakpoint_from_pc): Delete declaration.
7019 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7020 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7021 * monitor.c (monitor_insert_breakpoint): Use
7022 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7023 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7024 * gdbarch.h, gdbarch.c: Re-generate.
7025 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7026 (sparc_gdbarch_init): Set breakpoint_from_pc to
7027 sparc_breakpoint_from_pc.
7028 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7029 (BREAKPOINT_FROM_PC): Define.
7030 (sparc_breakpoint_from_pc): Declare.
7031 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7032 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7033 (BREAKPOINT_FROM_PC): Define.
7034 (BREAKPOINT): Delete macro.
7035 * target.h: Update comment.
7036 * s390-tdep.c (s390_gdbarch_init): Update comments.
7037 * remote.c: Update comments.
7038 * remote-mips.c: Update comments.
7039 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7040 * mem-break.c: Update comment.
7041 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7042 (ia64_memory_insert_breakpoint): Update.
7043 * config/sparc/tm-sparc.h: Update comment.
7044 * config/pa/tm-hppa64.h: Update comment.
7045 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7046 (rs6000_breakpoint_from_pc): Update.
7047 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7048 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7049 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7050 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7051 (mips_breakpoint_from_pc): Update.
7052 (mips_dump_tdep): Update.
7053
e06963ff
AC
7054 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7055 * minsyms.c (lookup_minimal_symbol): Inline
7056 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7057
973177d3
AC
7058 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7059 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7060 * p-lang.c (pascal_printstr): Ditto.
7061 * objc-lang.c (objc_printstr): Ditto.
7062 * m2-lang.c (m2_printstr): Ditto.
7063 * jv-valprint.c (java_print_value_fields): Ditto.
7064 * f-lang.c (f_printstr): Ditto.
7065 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7066 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7067 for repeat_count_threshold.
7068 * Makefile.in (cp-valprint.o): Update dependencies.
7069
5ea2bd7f 70702003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7071
5ea2bd7f
JJ
7072 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7073 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
7074 they start with mov r2,r12. Support skipping over indirect stores
7075 of the input registers. Upon hitting a non-nop branch instruction
7076 or predicated instruction, bail out by setting lim_pc to the current
7077 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
7078 beyond our calculated value and we have trust_limit set,
7079 use the lim_pc value.
7080
cc8c88f3
AC
70812003-05-15 Andrew Cagney <cagney@redhat.com>
7082
7083 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7084 generic_find_dummy_frame.
7085 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7086 (deprecated_generic_find_dummy_frame): Update.
7087 (deprecated_read_register_dummy): Update.
7088 * frame.c (deprecated_generic_get_saved_register): Update.
7089
909cd28e
TR
70902003-05-15 Theodore A. Roth <troth@openavr.org>
7091
7092 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7093 (avr_gdbarch_init): Set breakpoint_from_pc method.
7094
b923b08d
AC
70952003-05-15 Andrew Cagney <cagney@redhat.com>
7096
7097 * regcache.c (build_regcache): Set deprecated_register_valid
7098 directly.
7099 (deprecated_grub_regcache_for_register_valid): Delete function.
7100 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7101 declaration.
7102
ae2f03ac 71032003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
7104
7105 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
7106 * symtab.c (lookup_symbol_aux): Delete calls to
7107 lookup_symbol_aux_minsyms.
7108 (lookup_symbol_aux_minsyms): Comment out function and
7109 prototype. Delete lookup by mangled name.
ae2f03ac 7110
18ec9831
KB
71112003-05-14 Kevin Buettner <kevinb@redhat.com>
7112
7113 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7114 correctly indicate an empty stack and ``stack_allocated'' to the
7115 indicate the number of elements initially allocated.
7116 (dwarf_expr_grow_stack): Simplify method for computing new
7117 stack size. Don't loop infinitely if ``stack_len'' is zero.
7118 (execute_stack_op): Move ``ctx->in_reg'' initialization
7119 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7120 be used in conjuction with DW_OP_piece. Revise error message
7121 accordingly.
7122
de18ac1f
TR
71232003-05-14 Theodore A. Roth <troth@openavr.org>
7124
7125 * MAINTAINERS: Update my email address.
7126 * avr-tdep.c: Ditto.
7127
176620f1
EZ
71282003-05-14 Elena Zannoni <ezannoni@redhat.com>
7129
7130 * symtab.h (enum domain_enum): Rename from namespace_enum.
7131 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7132 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7133 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7134 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7135 TYPES_NAMESPACE, METHODS_NAMESPACE.
7136 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7137 (struct symbol, struct partial_symbol): Rename field
7138 'namespace_enum namespace' to 'domain_enum domain'.
7139 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7140 Delete old define kludge for namespace.
7141
7142 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7143 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7144 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7145 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7146 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7147 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7148 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7149 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7150 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7151 occurrences of the above.
7152
b7f31508
ILT
71532003-05-14 Ian Lance Taylor <ian@airs.com>
7154
7155 * Makefile.in (install-only): Use $(SHELL) when running
7156 mkinstalldirs.
7157
2fdbdd39
ILT
71582003-05-13 Ian Lance Taylor <ian@airs.com>
7159
a208d82c
ILT
7160 * MAINTAINERS (write after approval): Add myself.
7161
2fdbdd39
ILT
7162 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7163 second and third arguments.
7164 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7165 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7166
fbd9dcd3
AC
71672003-05-13 Andrew Cagney <cagney@redhat.com>
7168
7169 * defs.h (store_address): Delete declaration.
7170 findvar.c (store_address): Delete function.
7171 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7172 store_unsigned_integer.
7173 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7174 * v850-tdep.c (v850_push_arguments): Ditto.
7175 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7176 * sh-tdep.c (sh64_get_saved_register): Ditto.
7177 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7178 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7179 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7180 (mips_get_saved_register): Ditto.
7181 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7182 (find_func_descr, ia64_push_arguments): Ditto.
7183 * i386-tdep.c (i386_push_arguments): Ditto.
7184 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7185 * frv-tdep.c (frv_push_arguments): Ditto.
7186 * frame.c (legacy_saved_regs_prev_register): Ditto.
7187 (deprecated_generic_get_saved_register): Ditto.
7188 * findvar.c (unsigned_address_to_pointer): Ditto.
7189 * dwarf2read.c (dwarf2_const_value): Ditto.
7190 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7191 * alpha-tdep.c (alpha_push_arguments): Ditto.
7192
6760f9e6
JB
71932003-05-12 J. Brobecker <brobecker@gnat.com>
7194
7195 * NEWS: Mention that the hppa-hpux port has been partially
7196 multiarched (32bit ABIT only, so far).
7197
30e221b4
AC
71982003-05-11 Andrew Cagney <cagney@redhat.com>
7199
7200 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7201 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7202 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7203 sim/testsuite/sim/arm/misaligned2.ms, and
7204 sim/testsuite/sim/arm/misaligned3.ms.
7205 * disasm.h (struct ui_file): Add opaque struct declaration.
7206 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7207 * frame.h (struct ui_file): Ditto.
7208
dea7f9ba
MK
72092003-05-11 Mark Kettenis <kettenis@gnu.org>
7210
7211 * value.h: Pretty print.
7212
01986c48
MK
72132003-05-10 Mark Kettenis <kettenis@gnu.org>
7214
7215 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7216
123a958e
AC
72172003-05-08 Andrew Cagney <cagney@redhat.com>
7218
7219 * regcache.h (max_register_size): Delete declaration.
7220 * regcache.c (max_register_size): Delete function.
7221 (struct regcache_descr): Delete field "max_register_size".
7222 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7223 registers fit in MAX_REGISTER_SIZE.
7224 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7225 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7226 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7227 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7228 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7229 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7230 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7231 * dve3900-rom.c, hppa-tdep.c: Ditto.
7232
eb294659
DC
72332003-05-08 David Carlton <carlton@math.stanford.edu>
7234
7235 * valops.c (push_word): Fix typo.
7236
d9d9c31f
AC
72372003-05-08 Andrew Cagney <cagney@redhat.com>
7238
7239 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7240 * gdbarch.h: Re-generate.
7241 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7242 (legacy_max_register_raw_size): Delete declaration.
7243 * regcache.c (legacy_max_register_raw_size): Delete function.
7244 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7245 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7246 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7247 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7248 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7249 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7250 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7251 * findvar.c, dwarf2cfi.c: Ditto.
7252
22540ece
AC
72532003-05-08 Andrew Cagney <cagney@redhat.com>
7254
7255 * mips-tdep.c (read_signed_register): New function, moved to here
7256 from "regcache.c".
7257 (read_signed_register_pid): Ditto.
7258 * regcache.c (read_signed_register_pid): Delete function, moved to
7259 "mips-tdep.c".
7260 (read_signed_register): Ditto.
7261 * regcache.h (read_signed_register): Delete declaration.
7262 (read_signed_register_pid): Delete declaration.
7263
0c92afe8
AC
72642003-05-08 Andrew Cagney <cagney@redhat.com>
7265
7266 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7267 * gdbarch.h: Re-generate.
7268 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7269 (legacy_max_register_virtual_size): Delete declaration.
7270 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7271 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7272 * tracepoint.c (memrange_sortmerge): Ditto.
7273 * sparc-tdep.c (sparc_print_registers): Ditto.
7274 * regcache.c (legacy_max_register_virtual_size): Delete function.
7275
6037b830
JB
72762002-05-08 J. Brobecker <brobecker@gnat.com>
7277
7278 * fork-child.c (escape_bang_in_quoted_argument): New function.
7279 (fork_inferior): Escape '!' characters in quoted arguments
7280 only when needed.
7281
5d62c8b1
JB
72822003-05-08 J. Brobecker <brobecker@gnat.com>
7283
7284 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7285 the language of the CU is not currently supported by GDB.
7286
20a0e81d
JB
72872003-05-08 J. Brobecker <brobecker@gnat.com>
7288
7289 * defs.h (language): Add language_minimal enum value.
7290 * c-lang.c (minimal_language_defn): New language definition.
7291 (_initialize_c_language): Add the new minimal language to the list
7292 of languages known to GDB.
7293
710ee10a
KB
72942003-05-08 Kevin Buettner <kevinb@redhat.com>
7295
7296 * frame.c (get_frame_type): Don't attempt to lazily initialize
7297 frame's unwinder for legacy frames.
7298
1750fa04
AC
72992003-05-07 Andrew Cagney <cagney@redhat.com>
7300
7301 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7302 and "regcache" parameters.
7303 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7304
ddf9f258 73052003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7306
7307 * dwarf2read.c (dwarf_decode_lines): Only use output of
7308 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7309 the current address.
7310
87767c29
AC
73112003-05-07 Andrew Cagney <cagney@redhat.com>
7312
7313 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7314 code.
7315
5e7b2f39
JB
73162003-05-07 Jim Blandy <jimb@redhat.com>
7317
7318 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7319 'maint info symtabs' and 'maint info psymtabs'.
7320 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7321 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7322 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7323 Declarations updated.
7324 * maint.c (maintenance_list_command): Delete.
7325 (_initialize_maint_cmds): Update calls to add_cmd.
7326 * gdbcmd.h (maintenancelistlist): Delete declaration.
7327 * cli/cli-cmds.c (maintenancelistlist): Delete.
7328 (init_cmd_lists): Don't initialize it.
7329 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7330
f6684c31
AC
73312003-05-07 Andrew Cagney <cagney@redhat.com>
7332
7333 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7334 "regcache".
7335 (d10v_print_registers_info): Update.
7336 (d10v_dmap_register, d10v_imap_register): Delete functions.
7337 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7338 and "imap_register".
7339 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7340 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7341 * arch-utils.c (generic_remote_translate_xfer_address): Add
7342 "regcache" and "gdbarch" parameters.
7343 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7344 parameter. Change class to multi-arch.
7345 * gdbarch.h, gdbarch.c: Re-generate.
7346 * remote.c (remote_xfer_memory): Use
7347 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7348
e4846b08
JJ
73492003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7350
7351 * infrun.c (prev_pc): Move declaration ahead of proceed().
7352 (proceed): Refresh prev_pc value before resuming.
7353 (stop_stepping): Remove code to refresh prev_pc.
7354
6b71b8ac
KW
73552003-05-06 Kris Warkentin <kewarken@qnx.com>
7356
7357 * nto-tdep.c: Removed stray comment.
7358
47979a4b
KW
73592003-05-06 Kris Warkentin <kewarken@qnx.com>
7360
7361 * i386-nto-tdep.c: Fix old K&R function definitions.
7362 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7363 Also change add_show_from_set() call to add_setshow_cmd().
7364 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7365
00905d52
AC
73662003-05-05 Andrew Cagney <cagney@redhat.com>
7367
7368 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7369 (fprint_dummy_frames): New function.
7370 (maintenance_print_dummy_frames): New function.
7371 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7372 * frame.c (fprint_frame_id): Make global.
7373 * frame.h (fprint_frame_id): Declare.
7374 * Makefile.in (dummy-frame.o): Update dependencies.
7375
b1e29e33
AC
73762003-05-05 Andrew Cagney <cagney@redhat.com>
7377
7378 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7379 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7380 SIZEOF_CALL_DUMMY_WORDS.
7381 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7382 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7383 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7384 CALL_DUMMY_BREAKPOINT_OFFSET.
7385 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7386 CALL_DUMMY_START_OFFSET.
7387 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7388 * gdbarch.h, gdbarch.c: Re-generate.
7389 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7390 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7391 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7392 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7393 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7394 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7395 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7396 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7397 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7398 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7399 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7400 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7401 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7402 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7403 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7404
74052003-05-05 Kris Warkentin <kewarken@qnx.com>
7406
7407 * configure.tgt: Add i[3456]86-*-nto*.
7408 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7409 * nto-tdep.c: New file. Neutrino target support routines.
7410 * nto-tdep.h: New file. Neutrino target header.
7411 * config/tm-qnxnto.h: New file.
7412 * config/i386/i386nto.mt: New file.
7413 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 7414
0ce3d317
AC
74152003-05-04 Andrew Cagney <cagney@redhat.com>
7416
7417 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7418 (load_infrun_state): Ditto.
7419 (struct thread_info): Drop "prev_func_name" field.
7420 * thread.c (load_infrun_state): Update.
7421 (save_infrun_state): Update.
7422 * infrun.c (prev_func_name): Delete variable.
7423 (init_wait_for_inferior): Do not clear prev_func_name.
7424 (stop_stepping, keep_going, context_switch): Do not swap
7425 prev_func_name.
7426 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7427 instead of PC_IN_SIGTRAMP.
7428
46654a5b
AC
74292003-05-04 Andrew Cagney <cagney@redhat.com>
7430
7431 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7432 REGISTER_BYTE with register_offset_hack.
7433 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7434 that REGISTER_BYTE is consistent with the regcache.
7435 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7436 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 7437
14b08c1b
MK
74382003-05-04 Mark Kettenis <kettenis@gnu.org>
7439
04c8243f
MK
7440 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7441 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7442
14b08c1b
MK
7443 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7444
c7a11e01
JB
74452003-05-03 J. Brobecker <brobecker@gnat.com>
7446
7447 From Thierry Schneider <tpschneider1@yahoo.com>
7448 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7449 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7450 (mi-cmd-symbol.o): Add rule.
7451
7043d8dc
AC
74522003-05-03 Andrew Cagney <cagney@redhat.com>
7453
7454 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7455 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7456 * gdbarch.h, gdbarch.c: Re-generate.
7457 * d10v-tdep.c (d10v_push_dummy_code): New function.
7458 (d10v_gdbarch_init): Set push_dummy_code.
7459 * infcall.c (legacy_push_dummy_code): New function.
7460 (generic_push_dummy_code): New function.
7461 (push_dummy_code): New function.
7462 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7463 instead of dummy_addr, to push_dummy_call. Move call to
7464 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7465 switch.
7466 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7467
92bf2b80
AC
74682003-05-03 Andrew Cagney <cagney@redhat.com>
7469
7470 * disasm.h (print_insn): Declare.
7471 * disasm.c (init_gdb_disassemble_info): New function.
7472 (gdb_disassembly): Call init_gdb_disassemble_info.
7473 (gdb_print_insn): New function.
7474 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7475 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7476 * mcore-tdep.c: Include "disasm.h"
7477 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7478 * d10v-tdep.c: Include "disasm.h".
7479 (display_trace): Call gdb_print_insn, instead of print_insn.
7480 (print_insn): Delete function.
7481 * printcmd.c: Include "disasm.h".
7482 (print_insn): Delete function.
7483 (print_formatted): Call gdb_print_insn, instead of print_insn.
7484 * Makefile.in (printcmd.o): Update dependencies.
7485 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 7486
27d94c49
AC
74872003-05-02 Andrew Cagney <cagney@redhat.com>
7488
82de1e5b
AC
7489 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7490 PC_REGNUM, re-indent.
7491 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7492 PC_REGNUM isn't set.
7493
27d94c49
AC
7494 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7495 * gdbarch.h, gdbarch.c: Re-generate.
7496 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7497 register_virtual_size, pc_regnum, or register_bytes.
7498 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7499 (d10v_register_type): Use D10V_PC_REGNUM.
7500 (d10v_print_registers_info, d10v_read_pc): Ditto.
7501 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7502 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7503
a9c0dc7f
DC
75042003-05-02 David Carlton <carlton@bactrian.org>
7505
7506 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7507 the name with mstrsave.
7508
e33d66ec
EZ
75092003-05-02 Elena Zannoni <ezannoni@redhat.com>
7510
7511 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7512 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7513 (host_charset_name, target_charset_name): New vars for use by
7514 set/show commands.
7515 (host_charset_enum, target_charset_enum): New enums for set/show
7516 commands.
7517 (set_charset_sfunc, set_host_charset_sfunc,
7518 set_target_charset_sfunc): New functions.
7519 (set_host_charset, set_target_charset): Make static.
7520 (list_charsets, set_host_charset_command,
7521 set_target_charset_command): Delete functions.
7522 (show_charset_command): Rewrite as....
7523 (show_charset): Hook this up with the set/show command mechanism.
7524 (_initialize_charset): Change names of charsets to match the
7525 set/show enums. Use host_charset_name and target_charset_name.
7526 Use set/show mechanism for charset, host-charset, target-charset
7527 commands. Do not make 'show host-charset' and 'show
7528 target-charset' be aliases of 'show charset'.
7529
7530 * charset.h (set_host_charset, set_target_charset): Don't export,
7531 they are not used outside the file.
7532
2b6fd0d8
AC
75332003-05-01 Andrew Cagney <cagney@redhat.com>
7534
7535 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7536 (gdb_disassembly): Make "di" non static, always initialize and
7537 cleanup. Always use dis_asm_read_memory.
7538 (gdb_dis_asm_read_memory): Delete function.
7539
6ae2f580
AC
75402003-05-01 Andrew Cagney <cagney@redhat.com>
7541
7542 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7543 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7544
810ecf9f
AC
75452003-04-30 Andrew Cagney <cagney@redhat.com>
7546
7547 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7548 "tm_print_insn_info".
7549 (TARGET_PRINT_INSN_INFO): Delete macro.
7550 (dis_asm_read_memory): Delete function declaration.
7551 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7552 (tm_print_insn_info): Delete variable definition.
7553 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7554 * gdbarch.h, gdbarch.c: Re-generate.
7555 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7556 "deprecated_tm_print_insn_info".
7557 * mcore-tdep.c (mcore_dump_insn): Ditto.
7558 * mips-tdep.c (mips_gdbarch_init): Ditto.
7559 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7560 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7561 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7562 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7563 instead of TARGET_PRINT_INSN_INFO, add comment.
7564 * s390-tdep.c (s390_get_frame_info): Instead of
7565 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7566 (s390_check_function_end, s390_is_sigreturn): Ditto.
7567 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7568 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7569 * disasm.c: Include "gdbcore.h".
7570 (_initialize_disasm): New function, initialize
7571 "deprecated_tm_print_insn_info".
7572 (deprecated_tm_print_insn_info): New variable.
7573 (dis_asm_read_memory): Moved from "corefile.c", made static.
7574 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7575 * Makefile.in (disasm.o): Update dependencies.
7576
07020390
AC
75772003-04-30 Andrew Cagney <cagney@redhat.com>
7578
7579 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7580
a9fa03de
AF
75812003-04-29 Adam Fedor <fedor@gnu.org>
7582
7583 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7584 * infcall.c (find_function_addr): Make non-static.
7585 * infcall.h (find_function_addr): Declare.
7586 * Makefile.in (eval.o): Update dependencies.
7587
1bae87b9
AF
75882003-04-28 Adam Fedor <fedor@gnu.org>
7589
7590 * symtab.c (symbol_find_demangled_name): Check for and demangle
7591 ObjC symbols.
7592 (symbol_init_demangled_name): Init for language_objc as well.
7593
0ba6dca9
AC
75942003-04-28 Andrew Cagney <cagney@redhat.com>
7595
7596 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7597 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7598 * gdbarch.h, gdbarch.c: Re-generate.
7599 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7600 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7601 * inferior.h (deprecated_read_fp): Rename read_fp.
7602 (generic_target_read_fp): Delete declaration.
7603 * regcache.c (generic_target_read_fp): Delete function.
7604 (deprecated_read_fp): Replace read_fp, use
7605 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7606 * d10v-tdep.c (d10v_read_fp): Delete function.
7607 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7608
7609 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7610 deprecated_target_read_fp to generic_target_read_fp.
7611 * sh-tdep.c (sh_gdbarch_init): Ditto.
7612 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7613 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7614 * frv-tdep.c (frv_gdbarch_init): Ditto.
7615
7616 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7617 deprecated_fp_regnum.
7618 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7619 * vax-tdep.c (vax_gdbarch_init): Ditto.
7620 * v850-tdep.c (v850_gdbarch_init): Ditto.
7621 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7622 * sh-tdep.c (sh_gdbarch_init): Ditto.
7623 * s390-tdep.c (s390_gdbarch_init): Ditto.
7624 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7625 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7626 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7627 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7628 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7629 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7630 * i386-tdep.c (i386_gdbarch_init): Ditto.
7631 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7632 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7633 * frv-tdep.c (frv_gdbarch_init): Ditto.
7634 * cris-tdep.c (cris_gdbarch_init): Ditto.
7635 * avr-tdep.c (avr_gdbarch_init): Ditto.
7636 * arm-tdep.c (arm_gdbarch_init): Ditto.
7637 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7638
7639 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7640 * v850-tdep.c (v850_gdbarch_init): Ditto.
7641 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7642 * sh-tdep.c (sh_gdbarch_init): Ditto.
7643 * s390-tdep.c (s390_gdbarch_init): Ditto.
7644 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7645 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7646 * mips-tdep.c (mips_gdbarch_init): Ditto.
7647 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7648 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7649 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7650 * frv-tdep.c (frv_gdbarch_init): Ditto.
7651 * avr-tdep.c (avr_gdbarch_init): Ditto.
7652 * arm-tdep.c (arm_gdbarch_init): Ditto.
7653
7654 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7655 DEPRECATED_FP_REGNUM.
7656 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7657 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7658 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7659 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7660 (sparc32_register_virtual_type): Ditto.
7661 * sh-tdep.c (sh64_frame_chain): Ditto.
7662 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7663 (sh_nofp_frame_init_saved_regs): Ditto.
7664 (sh64_nofp_frame_init_saved_regs): Ditto.
7665 (sh_fp_frame_init_saved_regs): Ditto.
7666 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7667 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7668 * procfs.c (procfs_fetch_registers): Ditto.
7669 (procfs_store_registers): Ditto.
7670 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7671 (store_inferior_registers, fetch_core_registers): Ditto.
7672 (fetch_kcore_registers, clear_regs): Ditto.
7673 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7674 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7675 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7676 * nlm/i386.c (do_status): Ditto.
7677 * mipsv4-nat.c (supply_gregset): Ditto.
7678 * mips-tdep.c: Ditto for comments.
7679 * mips-nat.c (fetch_inferior_registers): Ditto.
7680 (store_inferior_registers, fetch_core_registers): Ditto.
7681 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7682 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7683 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7684 (i386_do_pop_frame, i386_register_type): Ditto.
7685 * hppa-tdep.c (hppa_frame_chain): Ditto.
7686 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7687 (hppa_pop_frame, hppa_read_fp): Ditto.
7688 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7689 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7690 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7691 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7692 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7693 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7694 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7695 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7696 * blockframe.c: Ditto for comments.
7697 * arch-utils.h: Ditto for comments.
7698 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7699 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7700 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7701 * alpha-tdep.h: Ditto for comments.
7702 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7703 (alpha_cannot_store_register): Ditto.
7704 (alpha_push_dummy_frame): Ditto.
7705 * alpha-nat.c (supply_gregset): Ditto.
7706
7707 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7708 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7709 * config/sparc/tm-sparc.h: Update comment.
7710
7711 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7712 deprecated_read_fp instead of TARGET_READ_FP.
7713 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7714 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7715 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7716 deprecated_read_fp instead of read_fp.
7717 * s390-tdep.c (s390_push_arguments): Ditto.
7718 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7719 * frame.h: Ditto in comments.
7720 * frame.c (legacy_get_prev_frame): Ditto.
7721 * dummy-frame.c (dummy_frame_this_id): Ditto.
7722 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7723
d7a27068
AC
77242003-04-28 Andrew Cagney <cagney@redhat.com>
7725
7726 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7727 * gdbarch.h, gdbarch.c: Re-generate.
7728 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7729 * vax-tdep.c (_initialize_vax_tdep): Update.
7730 * v850-tdep.c (_initialize_v850_tdep): Update.
7731 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7732 * s390-tdep.c (_initialize_s390_tdep): Update.
7733 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7734 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7735 * mips-tdep.c (_initialize_mips_tdep): Update.
7736 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7737 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7738 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7739 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7740 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7741 * frv-tdep.c (_initialize_frv_tdep): Update.
7742 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7743 (_initialize_cris_tdep): Update.
7744 * arch-utils.c (legacy_print_insn): Update.
7745 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7746
d2630e69
AF
77472003-04-26 Adam Fedor <fedor@gnu.org>
7748
7749 * linespec.c (decode_objc): New function to decode ObjC calls
7750 (decode_line_1): Check for ObjC calls (using decode_objc)
7751 * Makefile (linespec.o): Update dependencies.
7752
3086aeae
DJ
77532003-04-26 Daniel Jacobowitz <drow@mvista.com>
7754
7755 * breakpoint.h (struct breakpoint_ops): New.
7756 (struct breakpoint): Add ops member.
7757
7758 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7759 (mention): Use new breakpoint ops member.
7760 (set_raw_breakpoint): Initialize ops field to NULL.
7761 (print_exception_catchpoint, print_one_exception_catchpoint)
7762 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7763 (gnu_v3_exception_catchpoint_ops): New.
7764 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7765
1fbec6c3
AF
77662003-04-25 Adam Fedor <fedor@gnu.org>
7767
7768 * Makefile.in (COMMON_OBS): Add objc-lang.o
7769
0ef21242
AC
77702003-04-25 Andrew Cagney <cagney@redhat.com>
7771
7772 * d10v-tdep.c (print_insn): Delete function.
7773 (display_trace): Use TARGET_PRINT_INSN.
7774 (_initialize_d10v_tdep): Do not set tm_print_insn.
7775 (d10v_gdbarch_init): Set print_insn.
7776
f75493ed
AC
77772003-04-25 Andrew Cagney <cagney@redhat.com>
7778
7779 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7780 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7781 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7782 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7783 (nr_dmap_regs, a0_regnum): ... new functions.
7784 (d10v_print_registers_info): Use a0_regnum, use register_size.
7785 (d10v_register_byte): Delete function.
7786 (d10v_register_raw_size): Delete function.
7787 (d10v_register_type): Use a0_regnum.
7788 (d10v_print_registers_info): Use a0_regnum.
7789 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7790 (d10v_gdbarch_init): Do not set register_byte or
7791 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7792 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7793 extract_address.
7794 (trace_command): Use XCALLOC.
7795 (print_insn): Delete reference to tm_print_insn.
7796 (saved_regs_unwinder): Use store_unsigned_integer instead of
7797 store_address.
7798 * frame.h (FRAME_OBSTACK_CALLOC): Define
7799
2202b100
DC
78002003-04-25 David Carlton <carlton@bactrian.org>
7801
7802 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7803
4e45ca2e
AF
78042003-04-24 Adam Fedor <fedor@gnu.org>
7805
7806 * objc-lang.c: Include "valprint.h"
7807 * Makefile.in (objc-lang.o): Update dependencies.
7808
93de3e7f
AF
78092003-04-24 Adam Fedor <fedor@gnu.org>
7810
8ffd9b1b 7811 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7812 architecture dependant compilation and mark as unimplemented
7813 (until they get put in the gdbarch vector).
7814
0f20eeea
DC
78152003-04-23 David Carlton <carlton@bactrian.org>
7816
7817 * cp-support.c (cp_find_first_component): Accept 'operator' in
7818 more locations.
7819
74cfe982
AC
78202003-04-23 Andrew Cagney <cagney@redhat.com>
7821
7822 * infcall.c (call_function_by_hand): Eliminate redundant
7823 indentation. Move "saved_async" and "old_cleanups" to where they
7824 are needed.
8ffd9b1b 7825
52557533
AC
78262003-04-23 Andrew Cagney <cagney@redhat.com>
7827
7828 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7829 and "buffer". Move the "name" code to where it is needed.
7830
158775de
AC
78312003-04-23 Andrew Cagney <cagney@redhat.com>
7832
7833 * infcall.c (call_function_by_hand): Move variables "start_sp",
7834 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7835 code to ON_STACK switch branch.
8ffd9b1b 7836
ebc7896c
AC
78372003-04-23 Andrew Cagney <cagney@redhat.com>
7838
7839 * infcall.c (call_function_by_hand): Make declaration of "i",
7840 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7841 lint.
7842
d727590f
AC
78432003-04-23 Andrew Cagney <cagney@redhat.com>
7844
7845 * infcall.c (call_function_by_hand): Delete variable
7846 "n_method_args". Localize "param_type"'s declaration to the loop
7847 that it is used. Reinstate code assigning to said variable -
7848 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7849 Rationalize code using "param_type".
7850
d585e13a
AC
78512003-04-22 Andrew Cagney <cagney@redhat.com>
7852
7853 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7854 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7855 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7856 to DEPRECATED_PUSH_RETURN_ADDRESS.
7857
051caad9
KB
78582003-04-22 Kevin Buettner <kevinb@redhat.com>
7859
7860 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7861 on the DWARF2 register number prior to fetching a register.
7862
77296879
JB
78632003-04-22 J. Brobecker <brobecker@gnat.com>
7864
7865 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7866 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7867 this macro was always set to 0.
77296879
JB
7868 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7869 considering the fact that this macro was always set to 0.
7870 * hppa-tdep.h (hppa_store_return_value): Likewise.
7871 (hppa_extract_return_value): Likewise.
7872
4252f1df
JB
78732003-04-22 J. Brobecker <brobecker@gnat.com>
7874
7875 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7876 the hppa-pro target only.
7877
14604c6b
JB
78782003-04-21 J. Brobecker <brobecker@gnat.com>
7879
7880 Ongoing multi-arch conversion effort for HP/UX:
7881 * config/pa/tm-hppa.h: Move all macro that are no longer
7882 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7883 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7884
77eb01d1
JB
78852003-04-21 J. Brobecker <brobecker@gnat.com>
7886
7887 * config/pa/tm-hppa.h: Obsolete a section that was only used
7888 for hppa-pro.
7889
61995b3b
JB
78902003-04-21 J. Brobecker <brobecker@gnat.com>
7891
7892 Ongoing multi-arch conversion for HP/UX.
7893 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7894 if already defined (allows hppa64 to stay non-multiarched for now).
7895 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7896
4aa79dcc
AC
78972003-04-21 Andrew Cagney <cagney@redhat.com>
7898
7899 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7900
0f751ff2
AC
79012003-04-21 Andrew Cagney <cagney@redhat.com>
7902
7903 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7904 "i386_num_mmx_regs".
7905
04714b91
AC
79062003-04-21 Andrew Cagney <cagney@redhat.com>
7907
7908 * infcall.c: New file.
7909 * infcall.h: New file.
7910 * valarith.c: Include "infcall.h".
7911 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7912 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7913 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7914 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7915 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7916 (SFILES): Add "infcall.c"
7917 (COMMON_OBS): Add "infcall.o".
7918 (infcall.o): Specify dependencies.
7919 * value.h (call_function_by_hand): Delete declaration.
7920 * inferior.h (run_stack_dummy): Delete declaration.
7921 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7922 (run_stack_dummy): Move to "infcall.c", merged into
7923 call_function_by_hand.
7924 * valops.c (call_function_by_hand): Moved to "infcall.c".
7925 (find_function_addr, value_arg_coerce): Ditto.
7926 (unwindonsignal_p, coerce_float_to_double): Ditto.
7927 (_initialize_valops): Move "set/show coerce-float-to-double", and
7928 "set/show unwindonsignal" commands to "infcall.c".
7929 * v850-tdep.c, target.h: Update comments.
7930 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7931 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7932 (sh64_init_extra_frame_info): Update comments.
7933 * mn10300-tdep.c: Update comments.
7934 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7935 * config/sparc/tm-sparc.h: Update comments.
7936 * breakpoint.h: Update comments.
7937 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7938 * arm-tdep.c: Update comment.
7939
f9d3c2a8
MK
79402003-04-19 Mark Kettenis <kettenis@gnu.org>
7941
c40e1eab
MK
7942 * i386-tdep.c (i386_num_register_names): New variable.
7943 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7944 (MM0_REGNUM): Remove redundant parentheses in define.
7945 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7946 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7947 i386_mxcsr_regnum_p): Remove redundant parentheses.
7948 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7949
94ea66b3
MK
7950 * i386-tdep.c (i386_extract_return_value,
7951 i386_store_return_value): Correct check for availability of
7952 floating-point registers.
7953
54299a1d
MK
7954 * i386-tdep.c (i386_frame_num_args): Remove function.
7955 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7956
c86c27af
MK
7957 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7958 mmx_regnum_to_fp_regnum. Adjust all callers.
7959
f9d3c2a8
MK
7960 * i386-tdep.c (i386_get_longjmp_target): Use
7961 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7962 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7963 extract_address.
7964
94ba74a9
MK
79652003-04-19 Mark Kettenis <kettenis@gnu.org>
7966
7967 * core-regset.c: Update comments to reflect reality. Re-order
7968 includes.
7969 (fetch_core_registers): Use switch instead of if. Remove
7970 redundant prototype.
7971
4074e13c
JB
79722003-04-18 Jim Blandy <jimb@redhat.com>
7973
7974 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7975 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7976
e3ab4aba
RH
79772003-04-17 Richard Henderson <rth@redhat.com>
7978
7979 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7980
627bf7c1
EZ
79812003-04-17 Michael Snyder <msnyder@redhat.com>
7982 Karen Bennet <bennet@redhat.com>
7983
7984 Committed by Elena Zannoni <ezannoni@redhat.com>
7985 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7986
514621a9
EZ
79872003-04-17 Elena Zannoni <ezannoni@redhat.com>
7988
7989 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7990 value if the return type is void.
514621a9 7991
b4acd559
JJ
79922003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7993
7994 * thread-db.c: Reindented.
8ffd9b1b 7995
530b167e 79962003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7997
7998 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7999 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
8000 as types.
8001
0a48e7e8
MS
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8ffd9b1b 8025
ab9fe00e
KB
80262003-04-16 Kevin Buettner <kevinb@redhat.com>
8027
610a3745 8028 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
8029 the size of ``long double'' to 16, instead of 8.
8030
e64a344c
MK
80312003-04-16 Mark Kettenis <kettenis@gnu.org>
8032
8033 * i386-linux-nat.c: Add some whitespace to make things more
8034 readable.
8035 (fetch_register, store_register, fetch_inferior_registers,
8036 store_inferior_registers): Get rid of assignment in if-statement.
8037 (store_register): Fix typo in error message.
8038
25d41031
AC
80392003-04-16 Andrew Cagney <cagney@redhat.com>
8040
8041 * utils.c (xmmalloc): Always allocate something, matches
8042 libiberty/xmalloc's semantics.
8043 (xmrealloc, xmcalloc): Ditto.
8044
c50901fd
AC
80452003-04-16 Andrew Cagney <cagney@redhat.com>
8046
8047 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8048 update comments.
8049 (get_frame_type): Initialize unwind and type when needed.
8050 (get_frame_id, frame_register_unwind): Ditto.
8051
f81824a9
AC
80522003-04-16 Andrew Cagney <cagney@redhat.com>
8053
8054 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8055 obsolete.
8056 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8057 * sparcl-stub.c: Obsolete file.
8058 * config/sparc/tm-sparclet.h: Obsolete file.
8059 * sparclet-stub.c: Obsolete file.
8060 * sparclet-rom.c: Obsolete file.
8061 * sparcl-tdep.c: Obsolete file.
8062 * config/sparc/tm-sparclite.h: Obsolete file.
8063 * config/sparc/sparclite.mt: Obsolete file.
8064 * config/sparc/sparclet.mt: Obsolete file.
8065 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8066 sparc86x-*-* obsolete.
8067
9219021c
DC
80682003-04-15 David Carlton <carlton@math.stanford.edu>
8069
8070 * Makefile.in (SFILES): Add cp-namespace.c.
8071 (COMMON_OBS): Add cp-namespace.o.
8072 (block.o): Depend on gdb_obstack_h and cp_support_h.
8073 (buildsym.o): Depend on cp_support_h.
8074 (cp-namespace.o): New.
8075 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8076 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8077 (dwarf2read.o): Depend on cp_support_h.
8078 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8079 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8080 processing_current_namespace.
8081 (read_namespace): Update processing_current_namespace; check for
8082 anonymous namespaces.
8083 (dwarf2_name): New function.
8084 (dwarf2_extension): Ditto.
8085 * cp-support.h: Update copyright, contributors.
8086 Add inclusion guards.
8087 Add opaque declaration for structs obstack, block, symbol.
8088 (struct using_direct): New struct.
8089 Add declarations for cp_find_first_component,
8090 cp_entire_prefix_len, processing_has_namespace_info,
8091 processing_current_namespace, cp_is_anonymous,
8092 cp_add_using_directive, cp_initialize_namespace,
8093 cp_finalize_namespace, cp_set_block_scope,
8094 cp_scan_for_anonymous_namespaces.
8095 * cp-namespace.c: New file.
8096 * cp-support.c: Update copyright.
8097 Include ctype.h, gdb_assert.h, gdbcmd.h.
8098 New variable maint_cplus_cmd_list.
8099 (cp_find_first_component): New function.
8100 (cp_entire_prefix_len, maint_cplus_command)
8101 (first_component_command, _initialize_cp_support): Ditto.
8102 * buildsym.c: Include cp-support.h.
8103 New variable using_list.
8104 (add_symbol_to_list): Check for anonymous namespaces.
8105 (finish_block): Set block's scope.
8106 (start_symtab): Initialize C++ namespace support.
8107 (end_symtab): Finalize C++ namespace support.
8108 * block.h: Add opaque declarations for structs
8109 block_namespace_info, using_direct, and obstack.
8110 Add declarations for block_set_scope and block_set_using.
8111 (struct block): Add 'language_specific' member.
8112 (BLOCK_NAMESPACE): New macro.
8113 * block.c: Include gdb_obstack.h and cp-support.h.
8114 (struct block_namespace_info): New struct.
8115 (block_set_scope): New function.
8116 (block_set_using, block_initialize_namespace): Ditto.
8117
d5a921c9
KB
81182003-04-14 Kevin Buettner <kevinb@redhat.com>
8119
8120 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8121 (locate_base): Return early if there aren't any link map offsets.
8122 (svr4_solib_create_inferior_hook): Warn if shared library support
8123 is unavailable.
8124
d2a52b27
DC
81252003-04-14 David Carlton <carlton@math.stanford.edu>
8126
8127 * symtab.c (symbol_set_names): Add prefix when storing Java names
8128 in hash table. Fix for PR java/1039.
8129
980cae7a
DC
81302003-04-14 David Carlton <carlton@math.stanford.edu>
8131
8132 * symtab.c (symbol_set_names): Rename 'name' arg to
8133 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8134 * symtab.h: Change 'name' argument in declaration of
8135 symbol_set_names to 'linkage_name'.
8136 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8137
e227b13c
AC
81382003-04-14 Andrew Cagney <cagney@redhat.com>
8139
8140 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8141 return the fully sign-extended register value.
8142 (get_frame_pointer): Ditto.
8143 (mips_pop_frame): Initialize "proc_desc" after checking for a
8144 dummy frame.
8145
36712a20
AC
81462003-04-14 Andrew Cagney <cagney@redhat.com>
8147
8148 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8149 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8150 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8151 (mips_push_register): Delete function.
8152 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8153 PUSH_FP_REGNUM.
8154
44ea7b70
JB
81552003-04-14 Jim Blandy <jimb@redhat.com>
8156
8157 * symmisc.c: #include "gdb_regex.h".
8158 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8159 functions.
8160 * maint.c (maintenance_list_command): New function.
8161 (_initialize_maint_cmds): Register the above as commands.
8162 * symtab.h (maintenance_list_symtabs,
8163 maintenance_list_psymtabs): New declarations.
8164 * cli/cli-cmds.c (maintenancelistlist): New variable.
8165 (init_cmd_lists): Initialize it.
8166 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8167 * gdbcmd.h (maintenancelistlist): New declaration.
8168 * Makefile.in (symmisc.o): Update dependencies.
8169
2d0c7962
EZ
81702003-04-14 Elena Zannoni <ezannoni@redhat.com>
8171
8172 * s390-nat.c: Include asm/types.h for addr_t.
8173
1947a811
CV
81742003-04-14 Corinna Vinschen <vinschen@redhat.com>
8175
8176 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8177 actually incoming type.
8178
adb616d7
AC
81792003-04-13 Andrew Cagney <cagney@redhat.com>
8180
8181 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8182 get_next_frame and get_frame_saved_regs.
8183
9b5e151c
AC
81842003-04-13 Andrew Cagney <cagney@redhat.com>
8185
8186 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8187 of gdbarch_num_regs.
8188
ef6e7e13
AC
81892003-04-13 Andrew Cagney <cagney@redhat.com>
8190
8191 * frame.h: Mention what replaced what in "struct frame_info".
8192 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8193 deprecated_update_frame_base_hack and
8194 deprecated_update_frame_pc_hack.
8195 * hppa-tdep.c: Ditto.
8196
61fbb938
DJ
81972003-04-13 Daniel Jacobowitz <drow@mvista.com>
8198
8199 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8200 to read_reg and update its comment. Remove regnum member.
8201 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8202 Don't call read_reg when setting in_reg. Call read_reg to get
8203 the frame base if it's in a register. Return the register number
8204 on the stack instead of in the context. Remove extra arguments
8205 to read_reg.
8206 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8207 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8208 the register number on the expression stack.
8209 (needs_frame_read_reg): Remove extra arguments.
8210
0d53c4c4
DJ
82112003-04-13 Daniel Jacobowitz <drow@mvista.com>
8212
8213 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8214 made non-static.
8215 (execute_stack_op): All callers updated.
8216 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8217 * dwarf2loc.c (find_location_expression): New function.
8218 (dwarf_expr_frame_base): Call it.
8219 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8220 (dwarf2_tracepoint_var_ref): New function, broken out from
8221 locexpr_tracepoint_var_ref.
8222 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8223 Make static.
8224 (loclist_read_variable, loclist_read_needs_frame): New functions.
8225 (loclist_describe_location, loclist_tracepoint_var_ref): New
8226 functions.
8227 (dwarf2_loclist_funcs): New struct location_funcs.
8228 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8229 (struct dwarf2_locexpr_baton): Add comments.
8230 (dwarf2_loclist_funcs): New extern.
8231 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8232 base_address and base_known.
8233 (dwarf_loc_buffer): New variable.
8234 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8235 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8236 (dwarf2_has_info): Initialize dwarf_loc_offset.
8237 (dwarf2_build_psymtabs): Read in .debug_loc.
8238 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8239 DWARF_LOC_SIZE.
8240 (psymtab_to_symtab_1): Likewise. Move base address calculation
8241 here, from...
8242 (dwarf2_get_pc_bounds): ... here. Use the base address from
8243 cu_header.
8244 (dwarf2_symbol_mark_computed): Handle location lists.
8245
6aca59a3
DJ
82462003-04-13 Daniel Jacobowitz <drow@mvista.com>
8247
8248 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8249 if the linkage name demangled successfully.
8250
aca1fcd0
MK
82512003-04-13 Mark Kettenis <kettenis@gnu.org>
8252
97095916
MK
8253 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8254 disassmbly_flavour): Removed.
8255
aca1fcd0
MK
8256 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8257
562a961f
MK
82582003-04-13 Mark Kettenis <kettenis@gnu.org>
8259
8260 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8261
bd013d54
AC
82622003-04-12 Andrew Cagney <cagney@redhat.com>
8263
8264 * frame.h (struct frame_info): Move definition from here ...
8265 * frame.c (struct frame_info): ... to here.
8266
167ef8b1
AC
82672003-04-12 Andrew Cagney <cagney@redhat.com>
8268
8269 * gdbthread.h (save_infrun_state): Delete parameter
8270 "prev_func_start".
8271 (struct thread_info): Delete field "prev_func_start".
8272 (load_infrun_state): Ditto.
8273 * thread.c (load_infrun_state, save_infrun_state): Update.
8274 * infrun.c (prev_func_start): Delete variable.
8275 (context_switch, init_wait_for_inferior): Update.
8276 (stop_stepping, keep_going): Update.
8277
da3331ec
AC
82782003-04-12 Andrew Cagney <cagney@redhat.com>
8279
8280 * gdbarch.sh: Add missing opaque declarations.
8281 * gdbarch.h: Regnerate.
8282 * symtab.h: Add missing opaque declarations.
8283 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8284 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8285 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8286 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8287 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8288 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8289 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8290 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8291 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8292 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8293 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8294 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8295 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8296
18adea3f
AC
82972003-04-11 Andrew Cagney <cagney@redhat.com>
8298
8299 * frame.c (get_frame_id): Return this frame's "id".
8300 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8301 function start.
8302 (legacy_saved_regs_this_id): Replace function body with
8303 internal-error.
8304 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8305 FRAME_OBSTACK_ZALLOC.
8306 (create_new_frame): Mark the frame ID as valid.
8307
2252e863
AO
83082003-04-11 Alexandre Oliva <aoliva@redhat.com>
8309
8310 * Makefile.in (libbfd_h): Added missing setting.
8311 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8312 according to the selected ABI.
8313
a8245ab8
JJ
83142003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8315
8316 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8317
6913c89a
AC
83182003-04-11 Andrew Cagney <cagney@redhat.com>
8319
8320 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8321 SAVED_PC_AFTER_CALL.
8322 * gdbarch.h, gdbarch.c: Regenerate.
8323 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8324 * x86-64-tdep.c (x86_64_init_abi): Update.
8325 * vax-tdep.c (vax_gdbarch_init): Update.
8326 * v850-tdep.c (v850_gdbarch_init): Update.
8327 * sparc-tdep.c (sparc_gdbarch_init): Update.
8328 * sh-tdep.c (sh_gdbarch_init): Update.
8329 * s390-tdep.c (s390_gdbarch_init): Update.
8330 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8331 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8332 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8333 * mips-tdep.c (mips_gdbarch_init): Update.
8334 * mcore-tdep.c (mcore_gdbarch_init): Update.
8335 * m68k-tdep.c (m68k_gdbarch_init): Update.
8336 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8337 * ia64-tdep.c (ia64_gdbarch_init): Update.
8338 (ia64_saved_pc_after_call): Update declaration.
8339 * i386ly-tdep.c (i386lynx_init_abi): Update.
8340 * i386-tdep.c (i386_gdbarch_init): Update.
8341 * hppa-tdep.c (hppa_gdbarch_init): Update.
8342 * h8300-tdep.c (h8300_gdbarch_init): Update.
8343 * frv-tdep.c (frv_gdbarch_init): Update.
8344 * cris-tdep.c (cris_gdbarch_init): Update.
8345 * avr-tdep.c (avr_gdbarch_init): Update.
8346 * arm-tdep.c (arm_gdbarch_init): Update.
8347 * alpha-tdep.c (alpha_gdbarch_init): Update.
8348 * ns32knbsd-nat.c (frame_num_args): Update.
8349 * ns32k-tdep.c (umax_frame_num_args): Update.
8350 * mips-tdep.c (mips_init_frame_pc_first): Update.
8351 * infrun.c (step_over_function): Update.
8352 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8353 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8354 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8355 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8356 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8357 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8358 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8359 * arch-utils.c (init_frame_pc_default): Update.
8360 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8361 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8362 declaration.
8ffd9b1b 8363
38edeab8
AC
83642003-04-11 Andrew Cagney <cagney@redhat.com>
8365
8366 * i387-tdep.c: Update copyright.
8367 (i387_to_double): Delete function.
8368 (double_to_i387): Delete function.
8369
81f8a206
AC
83702003-04-10 Andrew Cagney <cagney@redhat.com>
8371
8372 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8373 frame's function's address. Simplify.
8374 (d10v_frame_unwind_cache): Check that the frame's function is
8375 non-zero.
8376
6e691f7a
JB
83772003-04-10 Jim Blandy <jimb@redhat.com>
8378
8379 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8380 call to set_gdbarch_deprecated_push_arguments.
8381
7f78e237
AC
83822003-04-10 Andrew Cagney <cagney@redhat.com>
8383
8384 * frame.c (fprint_frame_id): New function.
8385 (fprint_frame_type, fprint_frame): New function.
8386 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8387 (create_sentinel_frame, get_frame_id): Ditto.
8388 (frame_id_p, frame_id_eq): Ditto.
8389 (frame_id_inner, create_new_frame): Ditto.
8390 (legacy_get_prev_frame, get_prev_frame): Ditto.
8391 (deprecated_update_frame_pc_hack): Ditto.
8392 (frame_register_unwind): Ditto.
8393 (deprecated_update_frame_base_hack): Ditto.
8394
f870b49b
CV
83952003-04-10 Corinna Vinschen <vinschen@redhat.com>
8396
8397 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8398 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8399 frame_chain function.
8400 * Makefile.in: Add dependencies due to above change.
8401
7c86889b
CV
84022003-04-10 Corinna Vinschen <vinschen@redhat.com>
8403
8404 * blockframe.c (legacy_frame_chain_valid): Move call to
8405 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8406 inside_entry_file.
8407
d0a55772
AC
84082003-04-09 Andrew Cagney <cagney@redhat.com>
8409
8410 * frame.h (struct frame_id): Replace "pc" and "base" with
8411 "stack_addr" and "code_addr". Update comments.
8412 (frame_id_build): Update parameter names and comment.
8413 (struct frame_info): Replace "id_p" and "id" with "this_id".
8414 * dummy-frame.c (dummy_frame_this_id): Update.
8415 * breakpoint.c (print_one_breakpoint): Update.
8416 * frame.c (get_frame_id): Update.
8417 (get_frame_base, frame_id_build): Update.
8418 (create_sentinel_frame, legacy_get_prev_frame): Update.
8419 (deprecated_update_frame_base_hack): Update.
8420 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8421 (frame_id_inner): Ditto.
8422
ac16bf07
AC
84232003-04-09 Andrew Cagney <cagney@redhat.com>
8424
8425 * defs.h (gdb_print_host_address): Make "addr" parameter a
8426 pointer constant.
8427 * utils.c (gdb_print_host_address): Update.
8428
366cfc9e
KB
84292003-04-09 Kevin Buettner <kevinb@redhat.com>
8430
8431 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8432 register number for R0 is 0.
8433
cd983b5c
JB
84342003-04-09 J. Brobecker <brobecker@gnat.com>
8435
8436 * frame.h (struct gdbarch): Add opaque structure definition
8437 to avoid a compilation warning on LynxOS 4.0.
8438
d1340264
AC
84392003-04-09 Andrew Cagney <cagney@redhat.com>
8440
8441 * frame.h (struct frame_info): Delete field "pc". Replace
8442 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8443 structure.
8444 * frame.c (frame_pc_unwind): Update.
8445 (create_sentinel_frame): Do not set "pc".
8446 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8447 (get_frame_pc): Call frame_pc_unwind.
8448 (deprecated_update_frame_pc_hack): Update.
8449 (create_new_frame): Use "pc" not "->pc".
8450
90a6fffb
AC
84512003-04-09 Andrew Cagney <cagney@redhat.com>
8452
8453 * frame.c (get_frame_id): Eliminate code updating "frame".
8454 (legacy_get_prev_frame): Ditto.
8455 (get_frame_base): Return id.base directly.
8456 (deprecated_update_frame_base_hack): Update "id.base".
8457 * frame.h (struct frame_info): Delete field "frame".
8458
2fbce691
AC
84592003-04-09 Andrew Cagney <cagney@redhat.com>
8460
8461 * NEWS: Mention that the "Sequent family" is obsolete.
8462 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8463 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8464 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8465 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8466 * config/i386/tm-ptx4.h: Obsolete file.
8467 * config/i386/tm-ptx.h: Obsolete file.
8468 * symm-tdep.c: Obsolete file.
8469 * config/i386/symmetry.mt: Obsolete file.
8470 * config/i386/tm-symmetry.h: Obsolete file.
8471 * symm-nat.c: Obsolete file.
8472 * config/i386/nm-symmetry.h: Obsolete file.
8473 * config/i386/xm-symmetry.h: Obsolete file.
8474 * config/i386/symmetry.mh: Obsolete file.
8475 * config/i386/nm-ptx4.h: Obsolete file.
8476 * config/i386/ptx4.mh: Obsolete file.
8477 * config/i386/ptx.mt: Obsolete file.
8478 * config/i386/ptx.mh: Obsolete file.
8479 * config/i386/xm-ptx4.h: Obsolete file.
8480 * config/i386/xm-ptx.h: Obsolete file.
8481
78c43945
AC
84822003-04-09 Andrew Cagney <cagney@redhat.com>
8483
8484 Obsolete mips*-*-mach3*.
8485 * NEWS: Mention that mips*-*-mach3* is obsolete.
8486 * m3-nat.c: Obsolete file.
8487 * config/nm-m3.h: Obsolete file.
8488 * config/mips/tm-mipsm3.h: Obsolete file.
8489 * config/mips/mipsm3.mt: Obsolete file.
8490 * config/mips/mipsm3.mh: Obsolete file.
8491 * config/mips/xm-mipsm3.h: Obsolete file.
8492 * mipsm3-nat.c: Obsolete file.
8493 * configure.host: Obsolete mips-dec-mach3*.
8494 * configure.tgt: Obsolete mips*-*-mach3*.
8495
f1908289
AC
84962003-04-09 Andrew Cagney <cagney@redhat.com>
8497
8498 * doublest.h: Update copyright.
8499 (deprecated_store_floating, deprecated_extract_floating): Rename
8500 store_floating and extract_floating. Update comments.
8501 * doublest.c: Update copyright.
8502 (extract_floating_by_length): Replace extract_floating.
8503 (store_floating_by_length): Replace store_floating.
8504 (deprecated_extract_floating): New function.
8505 (deprecated_store_floating): New function.
8506 (extract_typed_floating): Call extract_floating_by_length.
8507 (store_typed_floating): Call store_floating_by_length.
8508 * x86-64-tdep.c (x86_64_store_return_value): Update.
8509 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8510 (sh64_extract_return_value): Update.
8511 (sh_sh4_register_convert_to_virtual): Update.
8512 (sh_sh64_register_convert_to_virtual): Update.
8513 (sh_sh4_register_convert_to_raw): Update.
8514 (sh_sh64_register_convert_to_raw): Update.
8515 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8516 (rs6000_register_convert_to_raw): Update.
8517 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8518 (ia64_register_convert_to_raw): Update.
8519 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8520 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8521 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8522 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8523 (alpha_register_convert_to_raw): Update.
8524
4443bd83
AC
85252003-04-08 Andrew Cagney <cagney@redhat.com>
8526
8527 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8528 * gdbarch.h, gdbarch.c: Re-generate.
8529 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8530 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8531 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8532 conditionally, use frame_pc_unwind as an alternative. Add
8533 comments.
8534 * arch-utils.c (init_frame_pc_default): Only call
8535 SAVED_PC_AFTER_CALL when available.
8536
c0236d92
EZ
85372003-04-08 Elena Zannoni <ezannoni@redhat.com>
8538
fbe586ae 8539 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8540 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8541 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8542 (start_remote): Ditto.
8543 (handle_inferior_event): Ditto.
8544 (save_inferior_status): Ditto.
8545 (restore_inferior_status): Ditto.
8546 * infcmd.c (attach_command): Ditto.
8547 * fork-child.c (startup_inferior): Ditto.
fbe586ae 8548 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8549 * alpha-tdep.c (heuristic_proc_start): Ditto.
8550 * mips-tdep.c (heuristic_proc_start): Ditto.
8551 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8552 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8553 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8554 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8555 * remote-vx.c (vx_create_inferior): Ditto.
8556
85572003-04-08 Elena Zannoni <ezannoni@redhat.com>
8558
8559 * infrun.c (stop_soon_quietly): Make it an enum, to better
8560 override the default behavior of handle_inferior_event.
8561 (clear_proceed_status): Update uses of stop_soon_quietly to
8562 reflect that it is now an enum.
8563 (start_remote): Ditto.
8564 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8565 is set to handle the new GNU/Linux kernel behavior for
8566 attach/sigstop. Update uses of stop_soon_quietly.
8567 * inferior.h (enum stop_kind): New enum.
8568 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8569 Reset normal handle_inferior_event behavior, afterwards.
8570 * fork-child.c (startup_inferior): Update.
8571 * alpha-tdep.c (heuristic_proc_start): Update.
8572 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8573 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8574 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8575 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8576 * remote-vx.c (vx_create_inferior): Update.
8577 * mips-tdep.c (heuristic_proc_start): Update.
8578
1211bce3
EZ
85792003-04-07 Elena Zannoni <ezannoni@redhat.com>
8580
8581 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8582 be freed more than once, causing wild memory corruptions.
1211bce3 8583 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8584 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8585 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8586 with the "core" target.
1211bce3 8587
f0ef6b29
KB
85882003-04-07 Kevin Buettner <kevinb@redhat.com>
8589
8590 * mips-tdep.c (mips_print_fp_register): New function, created from
8591 do_fp_register_row(). Registers are now (also) printed as hex.
8592 Only one register is printed per row.
8593 (mips_print_register, do_fp_register_row): Print floating point
8594 registers with mips_print_fp_register().
8595
8cf71652
AC
85962003-04-06 Andrew Cagney <cagney@redhat.com>
8597
5e488a7b
AC
8598 * valprint.h (inspect_it): Add extern declaration.
8599 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8600 (selectors_info, classes_info): Ditto.
8601 (find_objc_msgcall): Fix indentation.
8602 (objc_printstr): Delete extern declarations.
8603
8cf71652
AC
8604 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8605
e6ba3bc9
AC
86062003-04-06 Andrew Cagney <cagney@redhat.com>
8607
8608 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8609 Update comment.
8610 * frame.c (legacy_saved_regs_this_id): Update.
8611 (legacy_get_prev_frame): Update.
8612 * xstormy16-tdep.c: Update comment.
8613 * sparc-tdep.c (sparc_frame_chain): Update comment.
8614 * blockframe.c (legacy_frame_chain_valid): Update.
8615
55e1d7e7
AC
86162003-04-06 Andrew Cagney <cagney@redhat.com>
8617
996179ee
AC
8618 * valprint.c (val_print_type_code_int): Delete #ifdef
8619 PRINT_TYPELESS_INTEGER code.
8620
55e1d7e7
AC
8621 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8622 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8623 multi-arch definition.
8624 * gdbarch.h: Re-generate.
8625
43bd9a9e
AC
86262003-04-05 Andrew Cagney <cagney@redhat.com>
8627
8628 Eliminate FRAME_FIND_SAVED_REGS.
8629 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8630 Change FSR parameter to a pointer.
8631 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8632 Assume FSR parameter is a pointer.
8633 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8634 Make fsr a pointer.
8635 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8636 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8637 saved_regs a pointer.
8638 (hppa_frame_saved_pc): Ditto.
8639 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8640 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8641 pointer.
8642 (restore_pc_queue): Make fsr a pointer.
8643 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8644 (hppa_frame_chain): Make saved_regs a pointer, call
8645 hppa_frame_init_saved_regs.
8646 * sparc-tdep.c: Include "gdb_assert.h".
8647 (sparc_frame_find_saved_regs): Replace internal_error with
8648 gdb_assert.
8649 * remote-vxsparc.c (vx_read_register): Delete reference to
8650 FRAME_FIND_SAVED_REGS.
8651 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8652 * gdbarch.h: Regenerate.
8653 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8654 (deprecated_get_frame_saved_regs): Delete declaration.
8655 (struct frame_saved_regs): Delete definition.
8656 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8657 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8658 (hppa_frame_find_saved_regs): Delete declaration.
8659 (FRAME_FIND_SAVED_REGS): Delete macro.
8660 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8661 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8662 FRAME_FIND_SAVED_REGS in comment.
8663
be41e9f4
AC
86642003-04-05 Andrew Cagney <cagney@redhat.com>
8665
8666 * frame.c (frame_func_unwind, get_frame_func): New functions.
8667 * frame.h (get_frame_func, frame_func_unwind): Declare.
8668 (struct frame_info): Add field "prev_func" for caching the
8669 previous frame's function address.
8670 * arm-tdep.c (arm_frameless_function_invocation): Combine
8671 get_pc_function_start and get_frame_pc into get_frame_func.
8672 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8673 (sh64_nofp_frame_init_saved_regs): Ditto.
8674 * s390-tdep.c (s390_function_start): Ditto.
8675 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8676 (rs6000_frameless_function_invocation): Ditto.
8677 (rs6000_frame_saved_pc): Ditto.
8678 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8679 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8680 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8681 (i386_frame_init_saved_regs): Ditto.
8682 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8683 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8684 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8685 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8686 * blockframe.c (frameless_look_for_prologue): Ditto.
8687
a01dd7cc
AC
86882003-04-05 Andrew Cagney <cagney@redhat.com>
8689
8690 * frame.c (legacy_get_prev_frame): Link prev to next at the
8691 function start. Update comments.
8692
5e5592e6
AC
86932003-04-05 Andrew Cagney <cagney@redhat.com>
8694
8695 * frame.c (get_frame_id): Update comment.
8696 (legacy_get_prev_frame): Update comment.
8697 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8698 * gdbarch.h: Regenerate.
8699 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8700 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8701
6fba5002
AC
87022003-04-05 Andrew Cagney <cagney@redhat.com>
8703
8704 * stack.c (print_frame_info): Use get_frame_pc.
8705
7df05f2b
AC
87062003-04-04 Andrew Cagney <cagney@redhat.com>
8707
8708 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8709 the frame's type from the unwinder.
8710 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8711 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8712 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8713 (get_frame_base_address): Use get_frame_type.
8714 (get_frame_locals_address, get_frame_args_address): Ditto.
8715 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8716 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8717 (struct frame_info): Add comment explaining why the frame contains
8718 a "type" field.
8719 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8720 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8721 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8722 NORMAL_FRAME.
8723 * frame-unwind.h: Include "frame.h".
8724 (struct frame_unwind): Add "type" field.
8725 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8726
11889732
AC
87272003-04-04 Andrew Cagney <cagney@redhat.com>
8728
8729 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8730 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8731 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8732 get_frame_base.
8733 (d10v_unwind_dummy_id): Use frame_id_build.
8734 * frame.c (find_frame_sal): Use get_frame_pc.
8735 (create_new_frame): Use deprecated_update_frame_pc_hack and
8736 deprecated_update_frame_base_hack.
8737 (create_sentinel_frame): Add comment about ->pc going away.
8738 (get_prev_frame): Add comment about ->pc going away.
8739 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8740 frame_id_build, deprecated_update_frame_pc_hack and
8741 deprecated_update_frame_base_hack.
8742 (select_frame): Use get_frame_pc.
8743 (legacy_saved_regs_this_id): Use frame_id_build.
8744
50c46a0d
EZ
87452003-04-04 Elena Zannoni <ezannoni@redhat.com>
8746
fbe586ae
RH
8747 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8748 signed integer case.
8749 (classify_argument): Handle enumerations and references.
50c46a0d 8750
50bbdbd9
AC
87512003-04-04 Andrew Cagney <cagney@redhat.com>
8752
8753 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8754 ID to NULL.
8755
36018d2e
AF
87562003-04-01 Adam Fedor <fedor@gnu.org>
8757
8758 * gdb/objc-lang.c (selectors_info): Replace calls to
8759 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8760 SYMBOL_NATURAL_NAME.
8761 (classes_info, find_methods): Likewise.
8762
35cec841
KB
87632003-04-03 Kevin Buettner <kevinb@redhat.com>
8764
8765 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8766 ``mach'' to the value determined by bfd_default_set_arch_mach().
8767
43136899
BR
87682003-04-02 Bob Rossi <bob_rossi@cox.net>
8769
8770 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8771 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8772 (mi-cmd-file.o): Update dependencies.
8773
040b99fd
KB
87742003-04-01 Kevin Buettner <kevinb@redhat.com>
8775
8776 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8777 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8778
9a3d7dfd
AF
87792003-04-01 Adam Fedor <fedor@gnu.org>
8780
8781 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8782 * language.h (struct language_defn): Add la_demangle.
8783 (language_demangle): Declare.
8784 * language.c (language_demangle): New function.
8785 (unk_lang_demangle): Likewise.
8786 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8787 Add ukn_lang_demangle.
9a3d7dfd 8788 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8789 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8790 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8791 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8792 * jv-lang.c (java_demangle): New function
8793 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8794 * objc-lang.c (objc_demangle): Add options argument
8795 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8796 * maint.c (maintenance_demangle): Replace switch with
8797 call to language_demangle.
8798 * utils.c (fprintf_symbol_filtered): Likewise.
8799
5e074003
AC
88002003-04-01 Andrew Cagney <cagney@redhat.com>
8801
8802 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8803 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8804 PRINT_TYPELESS_INTEGER.
8805 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8806 PUSH_RETURN_ADDRESS.
8807
270cb5d6
AC
88082003-04-01 Andrew Cagney <cagney@redhat.com>
8809
8810 * Makefile.in (d10v-tdep.o): Update dependencies.
8811 * d10v-tdep.c: Include "frame-base.h".
8812 (d10v_frame_unwind): Make constant.
8813 (d10v_frame_base_address): New function.
8814 (d10v_frame_base): New variable.
8815 (d10v_gdbarch_init): Set frame_base default.
8816 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8817 comment for base.
8818 (d10v_frame_unwind_cache): Set and use "prev_sp".
8819 (d10v_frame_this_id): Use the previous frame's inner most stack
8820 address and this frame's func address for the frame ID. Use
8821 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8822
6bfb3e36
AC
88232003-04-01 Andrew Cagney <cagney@redhat.com>
8824
8825 * frame.h (get_frame_locals_address, get_frame_args_address):
8826 Refer to the base address, instead of the address of the first
8827 local or parameter.
8ffd9b1b 8828
da62e633
AC
88292003-04-01 Andrew Cagney <cagney@redhat.com>
8830
8831 Add frame debug info addresses:
8832 * frame-base.c: New file.
8833 * frame-base.h: New file.
8834 * frame.h (struct frame_base): Add opaque declaration.
8835 (get_frame_base): Update comment.
8836 (get_frame_base_address): Declare.
8837 (get_frame_locals_address): Declare.
8838 (get_frame_args_address): Declare.
8839 (struct frame_info): Add "base" and "base_cache". Update
8840 comments on the unwinder.
8841 * frame.c: Include "frame-base.h".
8842 (get_frame_locals_address): New function.
8843 (get_frame_base_address): New function.
8844 (get_frame_args_address): New function.
8845 * findvar.c (read_var_value): Use get_frame_locals_address and
8846 get_frame_args_address.
8847 * stack.c (frame_info): Use get_frame_locals_address and
8848 get_frame_args_address.
8849 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8850 moved to "frame-base.c".
8851 * printcmd.c (print_frame_nameless_args): Ditto.
8852 * symtab.h (address_class): Update comments.
8853 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8854 get_frame_base_address.
8855 * dwarf2expr.c (execute_stack_op): Ditto.
8856 * Makefile.in (frame_base_h): Define.
8857 (frame.o): Update dependencies.
8858 (frame-base.o): Add dependencies.
8859 (SFILES): Add frame-base.c.
8860 (COMMON_OBS): Add frame-base.o.
8861
3d30e9c2
AC
88622003-04-01 Andrew Cagney <cagney@redhat.com>
8863
8864 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8865 CALL_DUMMY_LENGTH): Ditto.
8866 * gdbarch.c: Re-generate.
8867 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8868 (CALL_DUMMY_LENGTH): Delete macro.
8869 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8870 * arm-tdep.c (arm_gdbarch_init): Ditto.
8871 * avr-tdep.c (avr_gdbarch_init): Ditto.
8872 * cris-tdep.c (cris_gdbarch_init): Ditto.
8873 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8874 * frv-tdep.c (frv_gdbarch_init): Ditto.
8875 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8876 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8877 * i386-tdep.c (i386_gdbarch_init): Ditto.
8878 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8879 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8880 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8881 * mips-tdep.c (mips_gdbarch_init): Ditto.
8882 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8883 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8884 * s390-tdep.c (s390_gdbarch_init): Ditto.
8885 * sh-tdep.c (sh_gdbarch_init): Ditto.
8886 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8887 * v850-tdep.c (v850_gdbarch_init): Ditto.
8888 * vax-tdep.c (vax_gdbarch_init): Ditto.
8889 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8890
ce0c7262
CV
88912003-04-01 Corinna Vinschen <vinschen@redhat.com>
8892
8893 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8894
73dd234f
AC
88952003-04-01 Andrew Cagney <cagney@redhat.com>
8896
8897 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8898 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8899 * gdbarch.h, gdbarch.c: Re-generate.
8900 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8901 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8902 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8903 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8904 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8905 * infcmd.c (run_stack_dummy): Simplify assuming
8906 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8907 * infrun.c (handle_inferior_event): Ditto.
8908 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8909 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8910 * arm-tdep.c (arm_gdbarch_init): Ditto.
8911 * avr-tdep.c (avr_gdbarch_init): Ditto.
8912 * cris-tdep.c (cris_gdbarch_init): Ditto.
8913 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8914 * frv-tdep.c (frv_gdbarch_init): Ditto.
8915 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8916 * i386-tdep.c (i386_gdbarch_init): Ditto.
8917 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8918 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8919 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8920 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8921 * mips-tdep.c (mips_gdbarch_init): Ditto.
8922 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8923 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8924 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8925 * s390-tdep.c (s390_gdbarch_init): Ditto.
8926 * sh-tdep.c (sh_gdbarch_init): Ditto.
8927 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8928 * v850-tdep.c (v850_gdbarch_init): Ditto.
8929 * vax-tdep.c (vax_gdbarch_init): Ditto.
8930 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8931
97606a13
DJ
89322003-04-01 Daniel Jacobowitz <drow@mvista.com>
8933
8934 * symfile.c (symfile_relocate_debug_section): Update call to
8935 bfd_simple_get_relocated_section_contents.
8936
e8ab51f7
AC
89372003-03-31 Andrew Cagney <cagney@redhat.com>
8938
8939 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8940 * gdbarch.h, gdbarch.c: Regenerate.
8941 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8942 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8943 available.
8944 * frame.h (generic_fix_call_dummy): Delete declaration.
8945 * dummy-frame.h: Update comment.
8946 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8947 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8948 fix_call_dummy.
8949 * sh-tdep.c (sh_gdbarch_init): Ditto.
8950 * s390-tdep.c (s390_gdbarch_init): Ditto.
8951 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8952 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8953 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8954 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8955 * i386-tdep.c (i386_gdbarch_init): Ditto.
8956 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8957 * frv-tdep.c (frv_gdbarch_init): Ditto.
8958 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8959 * cris-tdep.c (cris_gdbarch_init): Ditto.
8960 * avr-tdep.c (avr_gdbarch_init): Ditto.
8961 * arm-tdep.c (arm_gdbarch_init): Ditto.
8962
018d1b48
JB
89632003-03-31 J. Brobecker <brobecker@gnat.com>
8964
8965 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8966 (INIT_FRAME_AP): Likewise.
8967 (EXTRA_FRAME_INFO): Likewise.
8968
e9a2674e
AC
89692003-03-31 Andrew Cagney <cagney@redhat.com>
8970
8971 * gdbarch.sh: Include "symfile.h".
8972 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8973 * gdbarch.h, gdbarch.c: Re-generate.
8974 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8975 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8976 call_dummy_address, the default is at entry_point_address.
8977 * v850-tdep.c (v850_gdbarch_init): Ditto.
8978 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8979 * sh-tdep.c (sh_gdbarch_init): Ditto.
8980 * s390-tdep.c (s390_gdbarch_init): Ditto.
8981 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8982 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8983 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8984 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8985 * i386-tdep.c (i386_gdbarch_init): Ditto.
8986 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8987 * frv-tdep.c (frv_gdbarch_init): Ditto.
8988 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8989 * cris-tdep.c (cris_gdbarch_init): Ditto.
8990 * arm-tdep.c (arm_gdbarch_init): Ditto.
8991
e8a8712a
AC
89922003-03-31 Andrew Cagney <cagney@redhat.com>
8993
8994 * gdbarch.sh (CALL_DUMMY_P): Delete.
8995 * gdbarch.h, gdbarch.c: Re-generate.
8996 * inferior.h (CALL_DUMMY_P): Delete macro.
8997 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8998 * vax-tdep.c (vax_gdbarch_init): Update.
8999 * v850-tdep.c (v850_gdbarch_init): Update.
9000 * sparc-tdep.c (sparc_gdbarch_init): Update.
9001 * sh-tdep.c (sh_gdbarch_init): Update.
9002 * s390-tdep.c (s390_gdbarch_init): Update.
9003 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9004 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9005 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9006 * mips-tdep.c (mips_gdbarch_init): Update.
9007 * mcore-tdep.c (mcore_gdbarch_init): Update.
9008 * m68k-tdep.c (m68k_gdbarch_init): Update.
9009 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9010 * ia64-tdep.c (ia64_gdbarch_init): Update.
9011 * i386-tdep.c (i386_gdbarch_init): Update.
9012 * h8300-tdep.c (h8300_gdbarch_init): Update.
9013 * frv-tdep.c (frv_gdbarch_init): Update.
9014 * d10v-tdep.c (d10v_gdbarch_init): Update.
9015 * cris-tdep.c (cris_gdbarch_init): Update.
9016 * breakpoint.c (deprecated_frame_in_dummy): Update.
9017 * avr-tdep.c (avr_gdbarch_init): Update.
9018 * alpha-tdep.c (alpha_gdbarch_init): Update.
9019 * arm-tdep.c (arm_gdbarch_init): Update.
9020 * dummy-frame.c (dummy_frame_this_id): Update comments.
9021 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9022 * frame.c (legacy_get_prev_frame): Ditto.
9023 * valops.c (call_function_by_hand): Delete function.
9024 (hand_function_call): Rename to call_function_by_hand
9025
ed234cf8
AC
90262003-03-30 Andrew Cagney <cagney@redhat.com>
9027
9028 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 9029 * value.h (struct value): Update comment.
ed234cf8 9030
06c77151
AC
90312003-03-30 Andrew Cagney <cagney@redhat.com>
9032
6c2b5168
AC
9033 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9034 D10V_FP_REGNUM.
9035 (d10v_gdbarch_init): Do not set fp_regnum.
9036
06c77151
AC
9037 * frame.c (get_frame_base): Force ID initialization.
9038 (get_prev_frame): Move computation of the frame ID from here ...
9039 (get_frame_id): ... to here.
9040 (legacy_get_prev_frame): Mark the frame ID as valid.
9041 * frame.h (struct frame_info): Add field "id_p".
9042
97a1a11c
MK
90432003-03-30 Mark Kettenis <kettenis@gnu.org>
9044
9045 * i386-tdep.c (i386_store_struct_return): Removed.
9046 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9047
6c0e89ed
AC
90482003-03-30 Andrew Cagney <cagney@redhat.com>
9049
9050 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9051 * gdbarch.h, gdbarch.c: Regenerate.
9052 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9053 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9054 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9055 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9056 * i386-tdep.c (i386_gdbarch_init): Ditto.
9057 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9058 * cris-tdep.c (cris_gdbarch_init): Ditto.
9059 * vax-tdep.c (vax_gdbarch_init): Ditto.
9060 * s390-tdep.c (s390_gdbarch_init): Ditto.
9061 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9062 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9063 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9064 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9065 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9066 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9067 * sparc-tdep.c (sparc_gdbarch_init): Update.
9068 * sh-tdep.c (sh_gdbarch_init): Update.
9069 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9070 * mips-tdep.c (mips_gdbarch_init): Update.
9071 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9072 * ia64-tdep.c (ia64_gdbarch_init): Update.
9073 * frv-tdep.c (frv_gdbarch_init): Update.
9074 * avr-tdep.c (avr_gdbarch_init): Update.
9075 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9076 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9077 instead of when push_dummy_call is not available.
8ffd9b1b 9078
f7dd6af2
AC
90792003-03-30 Andrew Cagney <cagney@redhat.com>
9080
9081 * infttrace.c: Include "gdbthread.h".
9082 (parent_attach_all): Fix function signature.
9083 (call_ptrace): Update call.
9084 * Makefile.in (infttrace.o): Update dependencies.
9085
28f617b3
AC
90862003-03-30 Andrew Cagney <cagney@redhat.com>
9087
9088 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9089 PUSH_RETURN_ADDRESS.
9090 * gdbarch.h, gdbarch.c: Regenerate.
9091 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9092 * x86-64-tdep.c (x86_64_init_abi): Update.
9093 * v850-tdep.c (v850_gdbarch_init): Update.
9094 * sparc-tdep.c (sparc_gdbarch_init): Update.
9095 * sh-tdep.c (sh_gdbarch_init): Update.
9096 * s390-tdep.c (s390_gdbarch_init): Update.
9097 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9098 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9099 * mips-tdep.c (mips_gdbarch_init): Update.
9100 * mcore-tdep.c (mcore_gdbarch_init): Update.
9101 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9102 * ia64-tdep.c (ia64_gdbarch_init): Update.
9103 * i386-tdep.c (i386_gdbarch_init): Update.
9104 * h8300-tdep.c (h8300_gdbarch_init): Update.
9105 * frv-tdep.c (frv_gdbarch_init): Update.
9106 * cris-tdep.c (cris_gdbarch_init): Update.
9107 * avr-tdep.c (avr_gdbarch_init): Update.
9108 * arm-tdep.c (arm_gdbarch_init): Update.
9109 * valops.c (hand_function_call): Update.
9110
4d628cd7
AC
91112003-03-29 Andrew Cagney <cagney@redhat.com>
9112
9113 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9114 sizeof_call_dummy_words.
9115 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9116 define.
9117 * gdbarch.h: Regenerate.
8ffd9b1b 9118
65e82032
AC
91192003-03-29 Andrew Cagney <cagney@redhat.com>
9120
9121 * infttrace.h: New file.
9122 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9123 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9124 (hpread_read_doc_function_type): Detect an initialized type1.
9125 (hpread_quick_traverse): Initialize mod_name_string.
9126 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9127 (som_solib_get_solib_by_pc): Declare.
9128 (so_lib_thread_start_addr): Declare.
9129 (no_shared_libraries): Declare.
9130 * somread.c (init_import_symbols): Make static. Add forward
9131 declaration.
9132 * config/pa/nm-hppah.h: Include "infttrace.h" for
9133 parent_attach_all.
9134 (hppa_insert_hw_watchpoint): Declare.
9135 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9136 * hppah-nat.c: Include "gdb_string.h".
9137 (parent_attach_all): Delete extern declaration, moved to
9138 "infttrace.h".
9139 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9140 int.
9141 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9142 * Makefile.in (infttrace_h): Define.
9143 (hpread.o): Update dependencies.
9144 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9145 * hppa-hpux-tdep.c: Include "gdb_string.h".
9146 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9147 * infrun.c (handle_inferior_event): Always initialize
9148 stepped_after_stopped_by_watchpoint. Add default and remove
9149 fallthrough in switch statement.
9150 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9151 parameter to int.
9152 (hppa_remove_hw_watchpoint): Ditto.
9153
2c3bbe77
AC
91542003-03-29 Andrew Cagney <cagney@redhat.com>
9155
9156 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9157 offset.
9158
2dd604e7
RE
91592003-03-29 Richard Earnshaw <rearnsha@arm.com>
9160
9161 * arm-tdep.c (arm_push_arguments): Delete.
9162 (struct stack_item): New type.
9163 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9164 (arm_store_struct_return): Delte.
9165 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9166 arm_push_arguments or arm_store_struct_return.
9167
e8933a55
AC
91682003-03-28 Andrew Cagney <cagney@redhat.com>
9169
9170 * Makefile.in (d10v-tdep.o): Update dependencies.
9171 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9172 * d10v-tdep.c: Include "remote.h".
9173 (target_resume_hook): Delete extern declaration.
9174 (target_wait_loop_hook): Ditto.
9175 (tdisassemble_command): Eliminate assignment in "if" conditional.
9176 (d10v_ts2_register_sim_regno): Eliminate call to
9177 legacy_register_sim_regno.
9178 (d10v_ts3_register_sim_regno): Ditto.
9179
6949171e
JJ
91802003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9181
9182 * thread.c: Reindented.
9183 * lin-lwp.c: Ditto.
9184 * linux-proc.c: Ditto.
9185
98c7071f
BR
91862003-03-28 Bob Rossi <bob_rossi@cox.net>
9187
fbe586ae 9188 * MAINTAINERS (write after approval): Add myself.
98c7071f 9189
5edc9ca6
TR
91902003-03-27 Theodore A. Roth <troth@openavr.org>
9191
9192 * objc-exp.y: Add missing semi-colons.
9193
378bfd1b
AC
91942003-03-27 Andrew Cagney <cagney@redhat.com>
9195
9196 * regcache.c (write_sp): Delete function and references.
9197 * inferior.h (write_sp): Delete declaration.
9198 * valops.c (hand_function_call): Replace write_sp with
9199 TARGET_WRITE_SP.
9200 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9201 (sparc_pop_frame): Ditto.
8ffd9b1b 9202
56056df7
AC
92032003-03-27 Andrew Cagney <cagney@redhat.com>
9204
9205 * NEWS: Mention removal of support for hppa*-*-bsd* and
9206 hppa*-*-osf* natives, and hppa*-*-pro* target.
9207 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9208 * config/pa/xm-pa.h: Obsolete file.
9209 * config/pa/xm-hppab.h: Obsolete file.
9210 * config/pa/nm-hppab.h: Obsolete file.
9211 * config/pa/tm-hppab.h: Obsolete file.
9212 * config/pa/tm-hppao.h: Obsolete file.
9213 * config/pa/nm-hppao.h: Obsolete file.
9214 * config/pa/tm-pro.h: Obsolete file.
9215 * config/pa/hppaosf.mt: Obsolete file.
9216 * config/pa/hppaosf.mh: Obsolete file.
9217 * config/pa/hppapro.mt: Obsolete file.
9218 * config/pa/hppabsd.mt: Obsolete file.
9219 * config/pa/hppabsd.mh: Obsolete file.
9220 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9221 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9222 hppa*-*-osf*.
9223
5873a88d
AC
92242003-03-27 Andrew Cagney <cagney@redhat.com>
9225
9226 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9227 push_arguments. Don't set push_return_address or write_sp.
9228 (d10v_push_dummy_call): Replace d10v_push_arguments.
9229 (d10v_push_return_address, d10v_write_sp): Delete function,
9230 handled by push_dummy_call.
9231
b81774d8
AC
92322003-03-26 Andrew Cagney <cagney@redhat.com>
9233
9234 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9235 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9236 regcache and dummy_addr parameters.
9237 * gdbarch.h, gdbarch.c: Re-generate.
9238 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9239 available; assume it will handle stack alignment and return
9240 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9241 legacy_push_arguments.
9242 (legacy_push_arguments): Rename default_push_arguments.
9243 * value.h (legacy_push_arguments): Rename default_push_arguments.
9244 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9245 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9246 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9247 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9248 * config/i386/tm-symmetry.h: Update.
9249 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9250 * x86-64-tdep.c (x86_64_init_abi): Update.
9251 * v850-tdep.c (v850_gdbarch_init): Update.
9252 * sparc-tdep.c (sparc_gdbarch_init): Update.
9253 * sh-tdep.c (sh_gdbarch_init): Update.
9254 * s390-tdep.c (s390_gdbarch_init): Update.
9255 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9256 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9257 * mips-tdep.c (mips_gdbarch_init): Update.
9258 * mcore-tdep.c (mcore_gdbarch_init): Update.
9259 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9260 * ia64-tdep.c (ia64_gdbarch_init): Update.
9261 * i386-tdep.c (i386_gdbarch_init): Update.
9262 * hppa-tdep.c (hppa_gdbarch_init): Update.
9263 * h8300-tdep.c (h8300_gdbarch_init): Update.
9264 * frv-tdep.c (frv_gdbarch_init): Update.
9265 * d10v-tdep.c (d10v_gdbarch_init): Update.
9266 * cris-tdep.c (cris_gdbarch_init): Update.
9267 * avr-tdep.c (avr_gdbarch_init): Update.
9268 * arm-tdep.c (arm_gdbarch_init): Update.
9269 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9270 * alpha-tdep.c (alpha_gdbarch_init): Update.
9271
f541410f
DJ
92722003-03-26 Daniel Jacobowitz <drow@mvista.com>
9273
9274 * signals/signals.c (do_target_signal_to_host): Correct realtime
9275 signal range test.
9276
69f567ae
DJ
92772003-03-26 Daniel Jacobowitz <drow@mvista.com>
9278
9279 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9280 (struct sal_chain, map_catch_names): Remove.
9281 (catch_exception_command_1): Don't call
9282 handle_gnu_4_16_catch_command.
9283
d5d14a5a
DJ
92842003-03-26 Daniel Jacobowitz <drow@mvista.com>
9285
9286 From Mark Dettinger <dettinge@de.ibm.com>:
9287 * dwarf2cfi.c (read_2u): Increment pointer by two.
9288
bdd73e22
DJ
92892003-03-26 Daniel Jacobowitz <drow@mvista.com>
9290
9291 * signals/signals.c: Fix typos in last change.
9292
960cb555
DJ
92932003-03-26 Daniel Jacobowitz <drow@mvista.com>
9294
9295 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9296 not already defined. Use __SIGRTMIN if available.
9297 (target_signal_from_host): Remove SIGRTMIN block.
9298 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9299 the signal is within the realtime range.
9300
f636b87d
AF
93012003-03-25 Adam Fedor <fedor@gnu.org>
9302
9303 * Makefile.in (infrun.o): Add $(language_h)
9304 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9305 for language specific trampolines.
9306 * language.h (struct language_defn): Add skip_trampoline.
9307 (skip_language_trampoline): Declare.
9308 * language.c (unk_lang_trampoline, skip_language_trampoline):
9309 New functions.
9310 (unknown_language_defn, auto_language_defn, local_language_defn):
9311 Add ukn_lang_trampoline.
9312 * ada-lang.c (ada_language_defn): Add NULL for language
9313 specific skip_trampoline.
9314 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9315 scm-lang.c: Likewise.
9316 * objc-lang.c (objc_skip_trampoline): New function.
9317 (objc_language_defn): Add objc_skip_trampoline.
9318
28f617b3 93192003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9320
9321 * frame.c (get_prev_frame): Delay validating a frame's ID -
9322 non-NULL, didn't go backwards - until an attempt to unwind it to
9323 the previous frame.
9324
f933a9c5
AC
93252003-03-25 Andrew Cagney <cagney@redhat.com>
9326
9327 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9328 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9329 * gdbarch.h, gdbarch.c: Re-generate.
9330 * config/sparc/tm-sparc.h
9331 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9332 * sparc-tdep.c (sparc_gdbarch_init): Set
9333 deprecated_extra_stack_alignment_needed.
9334 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9335 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9336 extra_stack_alignment_needed.
9337 * v850-tdep.c (v850_gdbarch_init): Ditto.
9338 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9339 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9340 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9341 * cris-tdep.c (cris_gdbarch_init): Ditto.
9342 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9343 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9344
4183d812
AC
93452003-03-25 Andrew Cagney <cagney@redhat.com>
9346
9347 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9348 STORE_STRUCT_RETURN.
9349 * gdbarch.h, gdbarch.c: Regenerate.
9350 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9351 (d10v_push_arguments): Set the struct return register.
9352 (d10v_gdbarch_init): Update.
9353 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9354 * x86-64-tdep.c (x86_64_init_abi): Update.
9355 * vax-tdep.c (vax_gdbarch_init): Update.
9356 * v850-tdep.c (v850_gdbarch_init): Update.
9357 * sparc-tdep.c (sparc_gdbarch_init): Update.
9358 * sh-tdep.c (sh_gdbarch_init): Update.
9359 * s390-tdep.c (s390_gdbarch_init): Update.
9360 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9361 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9362 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9363 * mips-tdep.c (mips_gdbarch_init): Update.
9364 * mcore-tdep.c (mcore_gdbarch_init): Update.
9365 * m68k-tdep.c (m68k_gdbarch_init): Update.
9366 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9367 * ia64-tdep.c (ia64_gdbarch_init): Update.
9368 * i386-tdep.c (i386_gdbarch_init): Update.
9369 * hppa-tdep.c (hppa_gdbarch_init): Update.
9370 * h8300-tdep.c (h8300_gdbarch_init): Update.
9371 * frv-tdep.c (frv_gdbarch_init): Update.
9372 * cris-tdep.c (cris_gdbarch_init): Update.
9373 * avr-tdep.c (avr_gdbarch_init): Update.
9374 * arm-tdep.c (arm_gdbarch_init): Update.
9375 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9376
1bf6d5cc
AC
93772003-03-25 Andrew Cagney <cagney@redhat.com>
9378
9379 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9380 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9381 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9382 * gdbarch.h, gdbarch.c: Regenerate.
9383 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9384 call_dummy_stack_adjust_p.
9385 * vax-tdep.c (vax_gdbarch_init): Ditto.
9386 * v850-tdep.c (v850_gdbarch_init): Ditto.
9387 * sh-tdep.c (sh_gdbarch_init): Ditto.
9388 * s390-tdep.c (s390_gdbarch_init): Ditto.
9389 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9390 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9391 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9392 * mips-tdep.c (mips_gdbarch_init): Ditto.
9393 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9394 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9395 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9396 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9397 * i386-tdep.c (i386_gdbarch_init): Ditto.
9398 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9399 * frv-tdep.c (frv_gdbarch_init): Ditto.
9400 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9401 * cris-tdep.c (cris_gdbarch_init): Ditto.
9402 * avr-tdep.c (avr_gdbarch_init): Ditto.
9403 * arm-tdep.c (arm_gdbarch_init): Ditto.
9404 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9405 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9406 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9407 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9408 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9409 call_dummy_stack_adjust_p.
9410 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9411 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9412 * sparc-tdep.c (sparc32_push_arguments): Update.
9413 * valops.c (hand_function_call): Update.
9414
71c08af0
CV
94152003-03-25 Corinna Vinschen <vinschen@redhat.com>
9416
9417 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9418 set_gdbarch_char_signed.
9419
30757f90
RE
94202003-03-25 Richard Earnshaw <rearnsha@arm.com>
9421
9422 PR cli/548
9423 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9424
03d48a7d
RE
94252003-03-25 Richard Earnshaw <rearnsha@arm.com>
9426
9427 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9428 (_initialize_arm_tdep): Don't set tm_print_insn.
9429
2cf6873c
AF
94302003-03-24 Adam Fedor <fedor@gnu.org>
9431
9432 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9433 * objc-lang.h: Add multiple inclusion protection.
9434 (start_msglist, add_msglist, end_msglist): Additional declarations.
9435
17c0759e
RE
94362003-03-24 Richard Earnshaw <rearnsha@arm.com>
9437
9438 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9439 value was renamed to ARM_FLOAT_SOFT_FPA.
9440
618ce49f
AC
94412003-03-23 Andrew Cagney <cagney@redhat.com>
9442
9443 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9444 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9445 * gdbarch.h, gdbarch.c: Regenerate.
9446 * valops.c (hand_function_call): Update.
9447 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9448 * frame.c (legacy_saved_regs_this_id): Update.
9449 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9450 * dummy-frame.h: Update.
9451 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9452 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9453 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9454 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9455 * config/m68k/tm-sun3.h: Update.
9456 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9457 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9458 * x86-64-tdep.c (x86_64_init_abi): Update.
9459 * vax-tdep.c (vax_gdbarch_init): Update.
9460 * v850-tdep.c (v850_gdbarch_init): Update.
9461 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9462 * sh-tdep.c (sh_gdbarch_init): Update.
9463 * s390-tdep.c (s390_gdbarch_init): Update.
9464 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9465 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9466 (frame_get_saved_regs): Update.
9467 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9468 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9469 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9470 * mips-tdep.c (mips_gdbarch_init): Update.
9471 * mcore-tdep.c (mcore_gdbarch_init): Update.
9472 * m68k-tdep.c (m68k_gdbarch_init): Update.
9473 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9474 * ia64-tdep.c (ia64_gdbarch_init): Update.
9475 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9476 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9477 (i386_interix_back_one_frame): Update.
9478 * hppa-tdep.c (hppa_gdbarch_init): Update.
9479 (hppa_init_extra_frame_info): Update.
9480 * h8300-tdep.c (h8300_gdbarch_init): Update.
9481 * frv-tdep.c (frv_gdbarch_init): Update.
9482 * cris-tdep.c (cris_gdbarch_init): Update.
9483 * avr-tdep.c (avr_gdbarch_init): Update.
9484 * arm-tdep.c (arm_gdbarch_init): Update.
9485 * alpha-tdep.c (alpha_gdbarch_init): Update.
9486
fd50bc42
RE
94872003-03-22 Richard Earnshaw <rearnsha@arm.com>
9488
9489 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9490 (arm_get_fp_model): Declare.
9491 * arm-tdep.c (fp_model_strings): New string array.
9492 (arm_fp_model, current_fp_model): New variables.
9493 (arm_get_fp_model): New function.
9494 (arm_set_fp): New function.
9495 (set_fp_model_sfunc): New function.
9496 (show_fp_model): New function.
9497 (_initialize_arm_tdep): Add new command to set/show the FPU.
9498 (arm_extract_return_value): Use arm_get_fp_model.
9499 (arm_store_return_value): Likewise.
9500 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9501 to initialize the floating-point data types.
9502 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9503 model is FPA.
9504
26304000
RE
95052003-03-22 Richard Earnshaw <rearnsha@arm.com>
9506
9507 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9508 the current setting of each value.
9509 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 9510 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
9511 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9512 commands and add new version as subcommands of "set/show arm".
9513
afd7eef0
RE
95142003-03-22 Richard Earnshaw <rearnsha@arm.com>
9515
9516 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9517 (set_arm_command, show_arm_command): New functions.
9518 (_initialize_arm_tdep): Add them.
9519 (num_disassembly_options): Renamed from num_flavor_options.
9520 (valid_disassembly_styles): Renamed from valid_flavors.
9521 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 9522 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
9523 set_disassembly_flavor_sfunc.
9524 (set_disassembly_style): Renamed from set_disassembly_flavor.
9525 (arm_othernames): Updated.
9526 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9527 command. Add "set/show arm disassembly" commands. Deprecate
9528 "othernames" command.
9529
299a7944
RE
95302003-03-22 Richard Earnshaw <rearnsha@arm.com>
9531
9532 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9533 (arm-tdep.o): Depend on elf_arm_h.
9534
c1dac9e6
RE
95352003-03-22 Richard Earnshaw <rearnsha@arm.com>
9536
9537 * Makefile.in (coff_internal_h): Define.
9538 (arm-tdep.o): Update dependencies.
9539
2702d96c
RE
95402003-03-22 Richard Earnshaw <rearnsha@arm.com>
9541
9542 * arm-tdep.c (prologue_cache): Delete.
9543 (check_prologue_cache, save_prologue_cache): Delete.
9544 (arm_scan_prologue): Don't check or update the prologue_cache.
9545 (arm_gdb_arch_init): Don't initialize it.
9546 (_initialize_arm_tdep): Likewise.
9547
27d5d74b
SC
95482003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9549
9550 * MAINTAINERS (tui): Maintainer of tui code.
9551
1762d96d
CV
95522003-03-21 Corinna Vinschen <vinschen@redhat.com>
9553
9554 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9555 (i386-cygwin-tdep.o): Add dependencies.
9556 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9557 * i386-cygwin-tdep.c: New file.
9558 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9559 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9560
4c2e2391
AC
95612003-03-20 Andrew Cagney <cagney@redhat.com>
9562
f20d38b7
AC
9563 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9564 (handle_inferior_event): Remove code calling
9565 DYNAMIC_TRAMPOLINE_NEXTPC.
9566
0022b738
AC
9567 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9568 already has a full path.
9569
864dbc90
AC
9570 * main.c (gdb_main): Return 1.
9571 (captured_main): Call error to report an invalid interpreter.
9572
4c2e2391
AC
9573 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9574 * alpha-osf1-tdep.c: Include "gdb_string.h".
9575
5ef7553b
JB
95762003-03-19 J. Brobecker <brobecker@gnat.com>
9577
9578 Continuing work to convert the hppa targets to multiarch partial.
9579
9580 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9581 method, now that hppa_push_dummy_frame has a conformant prototype.
9582 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9583 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9584 for the switch to multiarch partial.
9585
7bde8967
KB
95862003-03-19 Kevin Buettner <kevinb@redhat.com>
9587
9588 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9589 when iss is issNull.
9590
b006a9e9
KB
95912003-03-18 Kevin Buettner <kevinb@redhat.com>
9592
9593 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9594 NUM_REGS bounds check.
9595
5e2e9765
KB
95962003-03-18 Kevin Buettner <kevinb@redhat.com>
9597
9598 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9599 * mips-tdep.c (gdb_assert.h): Include.
9600 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9601 (mips_register_name): Handle integer registers explicitly. Add
9602 bounds checking.
9603 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9604 (mips_lsi33k_reg_names): Don't list integer registers; they're
9605 handled by mips_register_name() now.
9606 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9607 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9608 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9609 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9610 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9611
a2867626
AC
96122003-03-18 Andrew Cagney <cagney@redhat.com>
9613
9614 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9615 a void pointer.
9616 * gdbtypes.h (print_scalar_formatted): Update declaration.
9617 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9618
06600e06
JB
96192003-03-18 J. Brobecker <brobecker@gnat.com>
9620
9621 * infrun.c (observer.h): Add #include.
9622 (normal_stop): Add call to observer_notify_normal_stop.
9623 * Makefile.in (infrun.o): Add dependency on observer.h.
9624
7daf4f5b
JB
96252003-03-18 J. Brobecker <brobecker@gnat.com>
9626
9627 Continuing work to convert the hppa targets to multiarch partial.
9628 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9629 parameter. Reformat comment.
9630 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9631 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9632 to match new profile.
9633
3371ccc0
JB
96342003-03-18 J. Brobecker <brobecker@gnat.com>
9635
9636 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9637 appear to be working in any case.
9638
4fbe891e
JB
96392003-03-18 J. Brobecker <brobecker@gnat.com>
9640
9641 * observer.c (observer_test_first_observer): New static variable.
9642 (observer_test_second_observer): Likewise.
9643 (observer_test_third_observer): Likewise.
9644 (observer_test_first_notification_function): New static function.
9645 (observer_test_second_notification_function): Likewise.
9646 (observer_test_third_notification_function): Likewise.
9647
a7ff40e7
JB
96482003-03-17 J. Brobecker <brobecker@gnat.com>
9649
9650 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9651 * somsolib.c (gdb_assert.h): Likewise.
9652 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9653 (somsolib.o): Likewise.
9654
26ca4152
AC
96552003-03-17 Andrew Cagney <cagney@redhat.com>
9656
9657 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9658 BFD. Simplify setting of di.endian.
9659
0a613259
AC
96602003-03-17 Andrew Cagney <cagney@redhat.com>
9661
9662 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9663 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9664
9665 From Elena Zannoni <ezannoni@redhat.com>
9666 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9667 vector and floating-point parameters.
9668 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9669 convention.
9670 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9671
1132738f
FN
96722003-03-17 Fernando Nasser <fnasser@redhat.com>
9673
9674 * MAINTAINERS: Remove my name from several maintainership roles.
9675
6dc42492
AC
96762003-03-17 Andrew Cagney <cagney@redhat.com>
9677
9678 Fix frame off-by-one bug.
9679 * frame-unwind.h (frame_this_id_ftype): Replace
9680 frame_unwind_id_ftype.
9681 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9682 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9683 with "prev_register".
9684 * frame-unwind.c (frame_unwind_find_by_pc): Return
9685 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9686 comment.
9687 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9688 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9689 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9690 (dummy_frame_unwind): Update.
9691 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9692 sentinel_frame_register_unwind.
9693 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9694 (sentinel_frame_unwinder): Update.
9695 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9696 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9697 * frame.c (create_sentinel_frame): Update. Initialize
9698 "prologue_cache" instead of "unwind_cache".
9699 (frame_register_unwind): Call this frame's prev_register with the
9700 next frame and this frame's prologue cache.
9701 (get_prev_frame): Simplify. Always call prev frame's this_id with
9702 this frame and prev frame's prologue cache. Document that this
9703 call is shifted one to the left when compared to the
9704 frame_register_unwind call.
9705 (legacy_saved_regs_prev_register): Replace
9706 frame_saved_regs_register_unwind.
9707 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9708 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9709 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9710 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9711 (d10v_frame_unwind): Update.
9712 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9713 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9714 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9715 "saved_regs" with "this_saved_regs".
9716
efd710d6
AC
97172003-03-16 Andrew Cagney <cagney@redhat.com>
9718
9719 * frame.c (frame_pop): Don't call target_store_registers. Fix
9720 problem reported by Mark Kettenis.
9721
4e259f09
MK
97222003-03-16 Mark Kettenis <kettenis@gnu.org>
9723
9724 * i386-tdep.c (i386_register_type): Renamed from
9725 i386_register_virtual_type. Adjust function signature.
9726 (i386_gdbarch_init): Set register_type instead of
9727 deprecated_max_register_raw_size,
9728 deprecated_max_register_virtual_size and register_virtual_type.
9729
055bb976
AC
97302003-03-14 Andrew Cagney <cagney@redhat.com>
9731
9732 * frame.c (get_prev_frame): When a legacy frame, always call
9733 legacy_get_prev_frame. Simplify unwind code using assumption that
9734 the unwinder is new.
9735 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9736 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9737 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9738
ac2adee5
AC
97392003-03-14 Andrew Cagney <cagney@redhat.com>
9740
9741 * frame.c (get_saved_register): Delete function.
9742 * frame.h (get_saved_register): Delete declaration.
9743 * xstormy16-tdep.c: Update comment.
9744 * regcache.h: Update comments.
9745 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9746 get_saved_register and extract_address, use
9747 frame_read_unsigned_register.
9748 (sparc_frame_saved_pc): Ditto.
9749 (sparc_get_saved_register): Instead of get_saved_register, use
9750 frame_register.
9751 (sparc_pop_frame): Ditto.
9752 * findvar.c: Update comments.
9753 (value_of_register): Call frame_register instead of
9754 get_saved_register.
9755 (value_from_register): Ditto.
9756 * config/sparc/tm-sparc.h: Update comment.
9757 * breakpoint.c: Update comment.
9758
129c1cd6
AC
97592003-03-14 Andrew Cagney <cagney@redhat.com>
9760
9761 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9762 GET_SAVED_REGISTER.
9763 * gdbarch.h, gdbarch.c: Re-generate.
9764 * frame.h: Update comments.
9765 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9766 * x86-64-tdep.c (x86_64_init_abi): Update.
9767 * sparc-tdep.c (sparc_gdbarch_init): Update.
9768 * sh-tdep.c (sh_gdbarch_init): Update.
9769 * mips-tdep.c (mips_gdbarch_init): Update.
9770 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9771 * cris-tdep.c (cris_gdbarch_init): Update.
9772 * ia64-tdep.c (ia64_gdbarch_init): Update.
9773 * frame.c (frame_register): Update.
9774 (get_saved_register): Update.
9775 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9776
749b82f6
AC
97772003-03-13 Andrew Cagney <cagney@redhat.com>
9778
9779 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9780 * gdbarch.h, gdbarch.c: Regenerate.
9781 * valops.c (hand_function_call): Update comment.
9782 * stack.c (return_command): Update comment.
9783 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9784 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9785 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9786 * x86-64-tdep.c (x86_64_init_abi): Update.
9787 * vax-tdep.c (vax_gdbarch_init): Update.
9788 * v850-tdep.c (v850_gdbarch_init): Update.
9789 * sparc-tdep.c (sparc_gdbarch_init): Update.
9790 * sh-tdep.c (sh_gdbarch_init): Update.
9791 * s390-tdep.c (s390_gdbarch_init): Update.
9792 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9793 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9794 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9795 * mips-tdep.c (mips_gdbarch_init): Update.
9796 * mcore-tdep.c (mcore_gdbarch_init): Update.
9797 * m68k-tdep.c (m68k_gdbarch_init): Update.
9798 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9799 * ia64-tdep.c (ia64_gdbarch_init): Update.
9800 * i386-tdep.c (i386_gdbarch_init): Update.
9801 * hppa-tdep.c (hppa_gdbarch_init): Update.
9802 * h8300-tdep.c (h8300_gdbarch_init): Update.
9803 * frv-tdep.c (frv_gdbarch_init): Update.
9804 * cris-tdep.c (cris_gdbarch_init): Update.
9805 * avr-tdep.c (avr_gdbarch_init): Update.
9806 * arm-tdep.c (arm_gdbarch_init): Update.
9807 * alpha-tdep.c (alpha_gdbarch_init): Update.
9808
1594fa56
AC
98092003-03-13 Andrew Cagney <cagney@redhat.com>
9810
9811 * frame.c (legacy_frame_p): New function.
9812 (get_prev_frame): Use legacy_frame_p.
9813 * frame.h (legacy_frame_p): Declare.
9814
7717fda3
V
98152003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9816
fbe586ae 9817 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9818 listing corrected.
9819
0c67cbe9
V
98202003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9821
fbe586ae 9822 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9823
03febf99
AC
98242003-03-12 Andrew Cagney <cagney@redhat.com>
9825
9826 * frame.c (get_prev_frame): Rename the frame parameter to
9827 "this_frame".
9828 (get_next_frame, legacy_get_prev_frame): Ditto.
9829
0a1e1ca1
AC
98302003-03-12 Andrew Cagney <cagney@redhat.com>
9831
9832 * frame.c (get_current_frame): Check target_has_registers before
9833 checking target_has_stack.
9834 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9835 instead of deprecated_selected_frame.
9836 * findvar.c (value_of_register): Pass "frame", not
9837 deprecated_selected_frame, to value_of_builtin_reg.
9838
a66a9c23
AC
98392003-03-12 Andrew Cagney <cagney@redhat.com>
9840
9841 * regcache.c (regcache_cooked_write_signed): New function.
9842 (regcache_cooked_write_unsigned): New function.
9843 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9844 (regcache_cooked_read_signed): Fix regnum in range assertion.
9845 * regcache.h (regcache_cooked_write_signed): Declare.
9846 (regcache_cooked_write_unsigned): Declare.
9847
8bedc050
AC
98482003-03-12 Andrew Cagney <cagney@redhat.com>
9849
9850 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9851 * gdbarch.h, gdbarch.c: Re-generate.
9852 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9853 * x86-64-tdep.h: Update.
9854 * x86-64-tdep.c (x86_64_init_abi): Update.
9855 * v850-tdep.c (v850_gdbarch_init): Update.
9856 * sparc-tdep.c (sparc_gdbarch_init): Update.
9857 * sh-tdep.c (sh_gdbarch_init): Update.
9858 * s390-tdep.c (s390_gdbarch_init): Update.
9859 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9860 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9861 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9862 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9863 * mips-tdep.c (mips_gdbarch_init): Update.
9864 * mcore-tdep.c (mcore_gdbarch_init): Update.
9865 * m68k-tdep.c (m68k_gdbarch_init): Update.
9866 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9867 * ia64-tdep.c (ia64_gdbarch_init): Update.
9868 * i386-tdep.c (i386_gdbarch_init): Update.
9869 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9870 * hppa-tdep.c (hppa_gdbarch_init): Update.
9871 * h8300-tdep.c (h8300_gdbarch_init): Update.
9872 * frv-tdep.c (frv_gdbarch_init): Update.
9873 * cris-tdep.c (cris_gdbarch_init): Update.
9874 * avr-tdep.c (avr_gdbarch_init): Update.
9875 * arm-tdep.c (arm_gdbarch_init): Update.
9876 * alpha-tdep.c (alpha_gdbarch_init): Update.
9877 * sh-tdep.c (sh_init_extra_frame_info): Update.
9878 (sh64_init_extra_frame_info): Update.
9879 * ns32knbsd-nat.c (frame_num_args): Update.
9880 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9881 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9882 (xstormy16_frame_chain_valid): Update.
9883 * vax-tdep.c (vax_saved_pc_after_call): Update.
9884 * v850-tdep.c (v850_frame_chain): Update.
9885 (v850_pop_frame): Update.
9886 (v850_init_extra_frame_info): Update.
9887 * sparc-tdep.c (setup_arbitrary_frame): Update.
9888 * ns32k-tdep.c (umax_frame_num_args): Update.
9889 * s390-tdep.c (s390_pop_frame_regular): Update.
9890 * mn10300-tdep.c (mn10300_frame_chain): Update.
9891 (mn10300_pop_frame_regular): Update.
9892 (mn10300_init_extra_frame_info): Update.
9893 * mips-tdep.c (mips_init_frame_pc_first): Update.
9894 (mips_frame_chain): Update.
9895 (mips_pop_frame): Update.
9896 * mcore-tdep.c (mcore_frame_chain): Update.
9897 (mcore_pop_frame): Update.
9898 (mcore_init_extra_frame_info): Update.
9899 * arch-utils.c (init_frame_pc_default): Update.
9900 * m68k-tdep.c (isi_frame_num_args): Update.
9901 (delta68_frame_num_args): Update.
9902 (news_frame_num_args): Update.
9903 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9904 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9905 (alpha_frame_chain): Update.
9906 (alpha_pop_frame): Update.
9907 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9908 (hppa_init_extra_frame_info): Update.
9909 (hppa_frame_chain): Update.
9910 (hppa_frame_chain_valid): Update.
9911 * cris-tdep.c (cris_init_extra_frame_info): Update.
9912 * avr-tdep.c (avr_init_extra_frame_info): Update.
9913 * arm-tdep.c (arm_frame_chain_valid): Update.
9914 (arm_init_extra_frame_info): Update.
9915 (arm_pop_frame): Update.
9916 * frame.c (frame_pc_unwind): Update.
9917 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9918 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9919 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9920 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9921 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9922 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9923
7a25a7c1
AC
99242003-03-12 Andrew Cagney <cagney@redhat.com>
9925
9926 Eliminate the need for POP_FRAME.
9927 * frame.c (do_frame_unwind_register): New function.
9928 (frame_pop): When no POP_FRAME, pop the frame using register
9929 unwind and a scratch regcache.
9930 (frame_saved_regs_pop): Delete function.
9931 (trad_frame_unwinder): Update.
9932 * d10v-tdep.c (d10v_frame_pop): Delete function.
9933 (d10v_frame_unwind): Update.
9934 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9935 (sentinel_frame_unwinder): Update.
9936 * dummy-frame.c (dummy_frame_pop): Delete function.
9937 (dummy_frame_unwind): Update.
9938 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9939 (struct frame_unwind): Update.
9940
2f38ef89
KB
99412003-03-11 Kevin Buettner <kevinb@redhat.com>
9942
9943 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9944 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9945 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9946 Do range checks on register number obtained from debugging info.
9947 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9948 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9949 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9950 mapping function.
9951 (do_fp_register_row): Fix typo which caused double type to be
9952 used when attempting to unpack a float.
9953
552f4abf
JB
99542003-03-11 J. Brobecker <brobecker@gnat.com>
9955
9956 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9957
e0d2ae16
AC
99582003-03-11 Andrew Cagney <cagney@redhat.com>
9959
9960 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9961 frame. Problem found by Corinna Vinschen.
9962
ddbfdd06
PM
99632003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9964
9965 * doublest.c (floatformat_from_length): Accept also
9966 the real size of 'long double' type.
9967
088b2ddc 99682003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9969
088b2ddc 9970 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9971 * breakpoint.c (bpstat_copy): Copy the command lines as well
9972 as the old value, to match what is freed in bpstat_clear.
9973
f56f77c1
DC
99742003-03-10 David Carlton <carlton@math.stanford.edu>
9975
9976 * minsyms.c (add_minsym_to_hash_table): Replace
9977 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9978 (compare_minimal_symbols, compact_minimal_symbols)
9979 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9980 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9981 of DEPRECATED_SYMBOL_MATCHES_NAME.
9982 (lookup_minimal_symbol_solib_trampoline): Ditto.
9983
5602984a
AC
99842003-03-10 Andrew Cagney <cagney@redhat.com>
9985
9986 * regcache.h (regcache_cooked_read_ftype): Define.
9987 (regcache_save, regcache_restore): Add a cooked_read parameter.
9988 * regcache.c (regcache_save, regcache_restore): Update.
9989 (do_cooked_read): New function.
9990 (regcache_cpy): Pass do_cooked_read to regcache_save and
9991 regcache_restore.
9992
8bedc050
AC
99932003-03-10 Andrew Cagney <cagney@redhat.com>
9994
9995 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9996 * gdbarch.h, gdbarch.c: Re-generate.
9997 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9998 * x86-64-tdep.h: Update.
9999 * x86-64-tdep.c (x86_64_init_abi): Update.
10000 * v850-tdep.c (v850_gdbarch_init): Update.
10001 * sparc-tdep.c (sparc_gdbarch_init): Update.
10002 * sh-tdep.c (sh_gdbarch_init): Update.
10003 * s390-tdep.c (s390_gdbarch_init): Update.
10004 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10005 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10006 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10007 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10008 * mips-tdep.c (mips_gdbarch_init): Update.
10009 * mcore-tdep.c (mcore_gdbarch_init): Update.
10010 * m68k-tdep.c (m68k_gdbarch_init): Update.
10011 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10012 * ia64-tdep.c (ia64_gdbarch_init): Update.
10013 * i386-tdep.c (i386_gdbarch_init): Update.
10014 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10015 * hppa-tdep.c (hppa_gdbarch_init): Update.
10016 * h8300-tdep.c (h8300_gdbarch_init): Update.
10017 * frv-tdep.c (frv_gdbarch_init): Update.
10018 * cris-tdep.c (cris_gdbarch_init): Update.
10019 * avr-tdep.c (avr_gdbarch_init): Update.
10020 * arm-tdep.c (arm_gdbarch_init): Update.
10021 * alpha-tdep.c (alpha_gdbarch_init): Update.
10022 * sh-tdep.c (sh_init_extra_frame_info): Update.
10023 (sh64_init_extra_frame_info): Update.
10024 * ns32knbsd-nat.c (frame_num_args): Update.
10025 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10026 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10027 (xstormy16_frame_chain_valid): Update.
10028 * vax-tdep.c (vax_saved_pc_after_call): Update.
10029 * v850-tdep.c (v850_frame_chain): Update.
10030 (v850_pop_frame): Update.
10031 (v850_init_extra_frame_info): Update.
10032 * sparc-tdep.c (setup_arbitrary_frame): Update.
10033 * ns32k-tdep.c (umax_frame_num_args): Update.
10034 * s390-tdep.c (s390_pop_frame_regular): Update.
10035 * mn10300-tdep.c (mn10300_frame_chain): Update.
10036 (mn10300_pop_frame_regular): Update.
10037 (mn10300_init_extra_frame_info): Update.
10038 * mips-tdep.c (mips_init_frame_pc_first): Update.
10039 (mips_frame_chain): Update.
10040 (mips_pop_frame): Update.
10041 * mcore-tdep.c (mcore_frame_chain): Update.
10042 (mcore_pop_frame): Update.
10043 (mcore_init_extra_frame_info): Update.
10044 * arch-utils.c (init_frame_pc_default): Update.
10045 * m68k-tdep.c (isi_frame_num_args): Update.
10046 (delta68_frame_num_args): Update.
10047 (news_frame_num_args): Update.
10048 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10049 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10050 (alpha_frame_chain): Update.
10051 (alpha_pop_frame): Update.
10052 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10053 (hppa_init_extra_frame_info): Update.
10054 (hppa_frame_chain): Update.
10055 (hppa_frame_chain_valid): Update.
10056 * cris-tdep.c (cris_init_extra_frame_info): Update.
10057 * avr-tdep.c (avr_init_extra_frame_info): Update.
10058 * arm-tdep.c (arm_frame_chain_valid): Update.
10059 (arm_init_extra_frame_info): Update.
10060 (arm_pop_frame): Update.
10061 * frame.c (frame_pc_unwind): Update.
10062 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10063 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10064 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10065 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10066 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10067 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10068
12cc2063
AC
100692003-03-10 Andrew Cagney <cagney@redhat.com>
10070
10071 * gdbarch.sh (gdbarch_unwind_pc): New method.
10072 * gdbarch.h, gdbarch.c: Regenerate.
10073 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10074 but use read_pc and FRAME_SAVED_PC as fall backs.
10075 (frame_saved_regs_pc_unwind): Delete function.
10076 (trad_frame_unwinder): Update.
10077 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10078 (struct frame_unwind): Update.
10079 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10080 (dummy_frame_unwind): Update.
10081 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10082 (sentinel_frame_unwinder): Update.
10083 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10084 (d10v_frame_unwind): Update.
10085 (d10v_unwind_pc): New function.
10086 (d10v_gdbarch_init): Set unwind_pc.
10087
ef840a37
AC
100882003-03-10 Andrew Cagney <cagney@redhat.com>
10089
a2ce2e56
AC
10090 * gdbarch.h: Re-generate.
10091
ef840a37
AC
10092 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10093 PC.
10094 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10095 the PC register.
10096
08f3424b
MK
100972003-03-08 Mark Kettenis <kettenis@gnu.org>
10098
10099 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10100
1248ede2
AC
101012003-03-08 Andrew Cagney <cagney@redhat.com>
10102
10103 * cli-out.c: Update copyright.
10104 (cli_out_data): Define typedef. Use instead of ui_out_data.
10105
f49bacc8
AC
101062003-03-08 Andrew Cagney <cagney@redhat.com>
10107
10108 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10109 the result.
10110
9b05f993
AC
101112003-03-07 Andrew Cagney <cagney@redhat.com>
10112
10113 * gdbarch.sh: Don't generate two macro definitions when an
10114 undefined macro taking no arguments.
10115 * gdbarch.h: Regenerate.
8ffd9b1b 10116
166f4c7b
ML
101172002-03-07 Michal Ludvig <mludvig@suse.cz>
10118
10119 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10120 (x86_64_unwind_dummy_id): New functions.
10121 (x86_64_init_abi): Register these two new functions.
10122
6d686a84
ML
101232003-03-07 Michal Ludvig <mludvig@suse.cz>
10124
10125 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 10126 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
10127 separate function.
10128 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10129
6314f104
AC
101302003-03-05 Andrew Cagney <cagney@redhat.com>
10131
10132 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10133 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10134 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10135 to use unwind_dummy_id when a dummy frame.
10136 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10137 predicate.
10138 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 10139
ceea5145
AC
101402003-03-05 Andrew Cagney <cagney@redhat.com>
10141
10142 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10143 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10144 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10145 values.
10146
0d843116
AC
101472003-03-05 Andrew Cagney <cagney@redhat.com>
10148
10149 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10150 (struct d10v_unwind_cache): Delete field "frameless". Replace
10151 "next_addr" with "sp_offset". Add "r11_offset".
10152 (d10v_frame_unwind_cache): Update.
10153 (prologue_find_regs): Update. When "mv r11, sp", save the
10154 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10155 RN was saved in r11_offset.
10156
b2579786
AC
101572003-03-05 Andrew Cagney <cagney@redhat.com>
10158
10159 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10160 cached PC value in the next frame.
10161
218e5956
AC
101622003-03-05 Andrew Cagney <cagney@redhat.com>
10163
10164 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10165 "id_unwind_cache" with "id".
10166 (frame_id_unwind): Delete declaration.
10167 * frame.c (frame_id_unwind): Delete function.
10168 (get_prev_frame): Call the frame id unwind method directly. Store
10169 the returned next frame's ID value in NEXT_FRAME. Note that there
10170 is a problem with the wrong unwind ID being called with the wrong
10171 unwind cache.
10172
ed363b1b
DJ
101732003-03-05 Daniel Jacobowitz <drow@mvista.com>
10174
10175 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10176
fe1f4a5e
DJ
101772003-03-05 James Ingham <jingham@apple.com>
10178 Daniel Jacobowitz <drow@mvista.com>
10179
10180 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10181 (auto_cp_abi): New variable.
10182 (current_cp_abi, num_cp_abis): Make static.
10183 (CP_ABI_MAX): Define.
10184 (cp_abis): Turn into an array.
10185 (value_virtual_fn_field): Fix formatting.
10186 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10187 takes a pointer.
10188 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10189 (list_cp_abis, _initialize_cp_abi): New functions.
10190 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10191 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10192 switch_to_cp_abi. Update prototype for register_cp_abi.
10193 * Makefile.in (cp-abi.o): Update dependencies.
10194 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10195 instead of switch_to_cp_abi.
10196 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10197 register_cp_abi.
10198 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10199 register_cp_abi.
10200 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10201
e4adbba9
DJ
102022003-03-05 Daniel Jacobowitz <drow@mvista.com>
10203
10204 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10205 * dwarf2loc.c: Include "regcache.h".
10206 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10207 register_size.
10208 * Makefile.in (dwarf2loc.o): Update dependencies.
10209
91ccbfc1
TR
102102003-03-04 Theodore A. Roth <troth@openavr.org>
10211
10212 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10213 number of io registers reported by remote target is not a multiple of
10214 step.
10215
3d4e8fd2
DC
102162003-03-04 David Carlton <carlton@math.stanford.edu>
10217
10218 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10219 (lookup_symbol_aux_psymtabs): Update call to
10220 lookup_partial_symbol.
10221 (lookup_transparent_type, find_main_psymtab)
10222 (make_symbol_overload_list): Ditto.
10223
ed42d87b
KH
102242003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10225
10226 * MAINTAINERS (Write after approval): Update my email address.
10227
a0ed5532
AC
102282003-03-03 Andrew Cagney <cagney@redhat.com>
10229
10230 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10231 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10232 predicate. Replace MAX_REGISTER_RAW_SIZE.
10233 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10234 MAX_REGISTER_VIRTUAL_SIZE.
10235 * regcache.c (legacy_max_register_raw_size): New function.
10236 (legacy_max_register_virtual_size): New function.
10237 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10238 (MAX_REGISTER_RAW_SIZE): Define.
10239 (legacy_max_register_raw_size): Declare.
10240 (legacy_max_register_virtual_size): Declare.
10241 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10242 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10243 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10244 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10245 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10246 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10247 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10248 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10249 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10250 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10251 * vax-tdep.c (vax_gdbarch_init): Update.
10252 * v850-tdep.c (v850_gdbarch_init): Update.
10253 * sparc-tdep.c (sparc_gdbarch_init): Update.
10254 * sh-tdep.c (sh_gdbarch_init): Update.
10255 * s390-tdep.c (s390_gdbarch_init): Update.
10256 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10257 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10258 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10259 * mips-tdep.c (mips_gdbarch_init): Update.
10260 * mcore-tdep.c (mcore_gdbarch_init): Update.
10261 * m68k-tdep.c (m68k_gdbarch_init): Update.
10262 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10263 * ia64-tdep.c (ia64_gdbarch_init): Update.
10264 * i386-tdep.c (i386_gdbarch_init): Update.
10265 * hppa-tdep.c (hppa_gdbarch_init): Update.
10266 * h8300-tdep.c (h8300_gdbarch_init): Update.
10267 * frv-tdep.c (frv_gdbarch_init): Update.
10268 * cris-tdep.c (cris_gdbarch_init): Update.
10269 * avr-tdep.c (avr_gdbarch_init): Update.
10270 * arm-tdep.c (arm_gdbarch_init): Update.
10271 * alpha-tdep.c (alpha_gdbarch_init): Update.
10272 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10273 max_register_raw_size or max_register_virtual_size.
10274
8e437497
DC
102752003-03-03 David Carlton <carlton@math.stanford.edu>
10276
10277 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10278 SYMBOL_MATCHES_NAME, add comment.
10279 (SYMBOL_MATCHES_NATURAL_NAME): New.
10280 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10281 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10282 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10283 * symtab.c (lookup_partial_symbol): Use
10284 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10285 unhelpful comment.
10286 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10287 SYMBOL_MATCHES_NAME.
10288 Fix for PR c++/33.
10289
25120b0d
DC
102902003-03-03 David Carlton <carlton@math.stanford.edu>
10291
10292 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10293 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10294 by regexp matching against SYMBOL_NATURAL_NAME.
10295
78a11fb4
DC
102962003-03-03 David Carlton <carlton@math.stanford.edu>
10297
10298 * linespec.c (find_method): Extract code into collect_methods.
10299 (collect_methods): New.
10300
645dd519
MK
103012003-03-02 Mark Kettenis <kettenis@gnu.org>
10302
b4700d91
MK
10303 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10304 get_frame_base.
10305
645dd519
MK
10306 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10307 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10308
0aa7e1aa
SC
103092003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10310
8ffd9b1b 10311 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10312 and not regnum when summing the size of all registers up to regnum.
10313
f30ee0bc
AC
103142003-03-01 Andrew Cagney <cagney@redhat.com>
10315
10316 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10317 FRAME_INIT_SAVED_REGS.
10318 * gdbarch.h, gdbarch.c: Regenerate.
10319 * stack.c (frame_info): Update.
10320 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10321 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10322 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10323 * ns32k-tdep.c (ns32k_pop_frame): Update.
10324 * mips-tdep.c (mips_pop_frame): Update.
10325 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10326 * ia64-tdep.c (ia64_frame_chain): Update.
10327 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10328 (ia64_frameless_function_invocation): Update.
10329 (ia64_init_extra_frame_info): Update.
10330 (ia64_pop_frame_regular): Update.
10331 * frame.h (struct frame_info): Update comment.
10332 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10333 * frame.c (frame_saved_regs_register_unwind): Update.
10334 (frame_saved_regs_register_unwind): Update.
10335 (deprecated_generic_get_saved_register): Update.
10336 * cris-tdep.c: Update comment.
10337 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10338 Rename macro.
10339 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10340 * x86-64-tdep.c (x86_64_init_abi): Update.
10341 * vax-tdep.c (vax_gdbarch_init): Update.
10342 * v850-tdep.c (v850_gdbarch_init): Update.
10343 * sparc-tdep.c (sparc_gdbarch_init): Update.
10344 * sh-tdep.c (sh_gdbarch_init): Update.
10345 * s390-tdep.c (s390_gdbarch_init): Update.
10346 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10347 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10348 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10349 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10350 * mips-tdep.c (mips_gdbarch_init): Update.
10351 * mcore-tdep.c (mcore_gdbarch_init): Update.
10352 * m68k-tdep.c (m68k_gdbarch_init): Update.
10353 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10354 * ia64-tdep.c (ia64_gdbarch_init): Update.
10355 * i386-tdep.c (i386_gdbarch_init): Update.
10356 * frv-tdep.c (frv_gdbarch_init): Update.
10357 * avr-tdep.c (avr_gdbarch_init): Update.
10358 * arm-tdep.c (arm_gdbarch_init): Update.
10359 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10360
42fa7c0f
AC
103612003-03-01 Andrew Cagney <cagney@redhat.com>
10362
10363 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10364 option enum and switch. When no windows, set the interpreter to
10365 INTERP_CONSOLE.
8ffd9b1b 10366
49c7e338
AC
103672003-03-01 Andrew Cagney <cagney@redhat.com>
10368
10369 * main.c (captured_main): Replace magic option characters with an
10370 enum.
10371
e9582e71
AC
103722003-03-01 Andrew Cagney <cagney@redhat.com>
10373
10374 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10375 INIT_EXTRA_FRAME_INFO.
10376 * gdbarch.h, gdbarch.c: Regenerate.
10377 * arm-tdep.c: Update comments.
10378 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10379 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10380 * frame.h, avr-tdep.c: Ditto.
10381 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10382 (create_new_frame, legacy_get_prev_frame): Ditto.
10383 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10384 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10385 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10386 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10387 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10388 * v850-tdep.c (v850_gdbarch_init): Ditto.
10389 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10390 * sh-tdep.c (sh_gdbarch_init): Ditto.
10391 * s390-tdep.c (s390_gdbarch_init): Ditto.
10392 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10393 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10394 * mips-tdep.c (mips_gdbarch_init): Ditto.
10395 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10396 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10397 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10398 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10399 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10400 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10401 * frv-tdep.c (frv_gdbarch_init): Ditto.
10402 * cris-tdep.c (cris_gdbarch_init): Ditto.
10403 * avr-tdep.c (avr_gdbarch_init): Ditto.
10404 * arm-tdep.c (arm_gdbarch_init): Ditto.
10405 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10406 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10407
35cac7cf
AC
104082003-03-01 Andrew Cagney <cagney@redhat.com>
10409
10410 * gdbarch.sh (register_type): New function with predicate.
10411 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10412 * gdbarch.h, gdbarch.c: Re-generate.
10413 * arch-utils.c (generic_register_byte): Use generic_register_size.
10414 (generic_register_size): When available, use
10415 gdbarch_register_type.
10416 * regcache.c (init_regcache_descr): When available, initialize the
10417 register type array using gdbarch_register_type. If the
10418 architecture supplies gdbarch_register_type, do not use the legacy
10419 regcache layout.
10420 * d10v-tdep.c (d10v_register_type): Replace
10421 d10v_register_virtual_type.
10422 (d10v_gdbarch_init): Set register_type instead of
10423 register_virtual_type.
10424
7b83296f
AC
104252003-03-01 Andrew Cagney <cagney@redhat.com>
10426
10427 * Makefile.in (ax-gdb.o): Update dependencies.
10428 * ax-gdb.c: Include "regcache.h".
10429 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10430 * findvar.c (value_of_register): Ditto.
10431 * infcmd.c (default_print_registers_info): Ditto.
10432
eadc1c87
MK
104332003-03-01 Mark Kettenis <kettenis@gnu.org>
10434
10435 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10436 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10437
14143612
MK
104382003-03-01 Mark Kettenis <kettenis@gnu.org>
10439
10440 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10441 of STREQ.
10442
a55cc764
DJ
104432003-02-28 Daniel Jacobowitz <drow@mvista.com>
10444
10445 * Makefile.in (dwarf2loc.o): Update dependencies.
10446 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10447 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10448 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10449 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10450 (locexpr_tracepoint_var_ref): New function.
10451 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10452
08a617da
AC
104532003-02-28 Andrew Cagney <cagney@redhat.com>
10454
10455 * regcache.c (register_size): New function.
10456 * regcache.h (register_size): Declare
10457 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10458 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10459
4224873a
DC
104602003-02-28 David Carlton <carlton@math.stanford.edu>
10461
10462 * linespec.c (decode_compound): Extract code into find_method.
10463 (find_method): New.
10464
ccdc5d7f
JB
104652003-02-28 J. Brobecker <brobecker@gnat.com>
10466
10467 * Makefile.in: Add rules to build and link in observer.o.
10468
974e8ced
JB
104692003-02-27 J. Brobecker <brobecker@gnat.com>
10470
10471 * observer.c: Minor comments edits.
10472
7a28f973
JB
104732003-02-27 J. Brobecker <brobecker@gnat.com>
10474
10475 * observer.h, observer.c: New file.
10476
27cddce2
AC
104772003-02-27 Andrew Cagney <cagney@redhat.com>
10478
10479 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10480
b94a41a1
SC
104812003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10482
10483 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10484 (M6812_OP_STS_EXT): Likewise.
10485 (m6811_prologue): Use the above to recognize prologue.
10486 (m6812_prologue): Likewise.
10487
c8be8951
DC
104882003-02-27 David Carlton <carlton@math.stanford.edu>
10489
10490 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10491 SYMBOL_PRINT_NAME.
10492 (compare_psymbols): Ditto.
10493 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10494
d05bb1fc
MS
104952003-02-27 Michael Snyder <msnyder@redhat.com>
10496
4e845cd3
MS
10497 * f-lang.c (build_fortran_types): New function.
10498 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
10499 * doublest.c (extract_floating): Fix warning text.
10500
f3824013
AC
105012003-02-27 Andrew Cagney <cagney@redhat.com>
10502
10503 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10504 predicate. Replaces PUSH_DUMMY_FRAME.
10505 * gdbarch.h, gdbarch.c: Regnerate.
10506 * valops.c (hand_function_call): Update. Call
10507 generic_push_dummy_frame directly.
10508 * vax-tdep.c (vax_gdbarch_init): Update.
10509 * sparc-tdep.c (sparc_gdbarch_init): Update.
10510 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10511 * m68k-tdep.c (m68k_gdbarch_init): Update.
10512 * hppa-tdep.c (hppa_gdbarch_init): Update.
10513 * alpha-tdep.c (alpha_gdbarch_init): Update.
10514 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10515 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10516 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10517 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10518 push_dummy_frame to generic_push_dummy_frame.
10519 * v850-tdep.c (v850_gdbarch_init): Ditto.
10520 * sh-tdep.c (sh_gdbarch_init): Ditto.
10521 * s390-tdep.c (s390_gdbarch_init): Ditto.
10522 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10523 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10524 * mips-tdep.c (mips_gdbarch_init): Ditto.
10525 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10526 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10527 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10528 * i386-tdep.c (i386_gdbarch_init): Ditto.
10529 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10530 * frv-tdep.c (frv_gdbarch_init): Ditto.
10531 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10532 * cris-tdep.c (cris_gdbarch_init): Ditto.
10533 * avr-tdep.c (avr_gdbarch_init): Ditto.
10534 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 10535
ad188201
KB
105362003-02-26 Kevin Buettner <kevinb@redhat.com>
10537
10538 * mips-tdep.c (show_mips_abi): New function.
10539 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10540 command ``show mips abi''.
10541
6b37567a 105422003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 10543
6b37567a 10544 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 10545 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
10546 more sline entries have been seen for the function.
10547
d3e0a5bf
MC
105482003-02-26 Michael Chastain <mec@shout.net>
10549
10550 * configure: Regenerate with autoconf 000227.
10551
18972eea
MC
105522003-02-26 Michael Chastain <mec@shout.net>
10553
10554 Close PR build/660.
10555 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10556 for old libc5/glibc.
10557 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10558
0bbde931
KW
105592003-02-26 Kris Warkentin <kewarken@qnx.com>
10560
10561 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10562 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10563
27ca5dad
MC
105642003-02-26 Michael Chastain <mec@shout.net>
10565
10566 * configure.in: New variable HAVE_UINTPTR_T.
10567 * configure, config.in: Regenerated.
10568
6f88d630
DJ
105692003-02-26 Daniel Jacobowitz <drow@mvista.com>
10570
10571 Fix PR build/1097.
10572 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10573
b14185ce
AC
105742003-02-25 Andrew Cagney <cagney@redhat.com>
10575
10576 * frame.c (get_prev_frame): Add comment on check for
10577 inside_entry_func. Only check for inside_entry_file when not a
10578 dummy and not a sentinel. Check that the new frame is not inner
10579 to the old frame.
10580
ac2bd0a9
AC
105812003-02-25 Andrew Cagney <cagney@redhat.com>
10582
10583 * frame.c (frame_debug): New variable.
10584 (_initialize_frame): Add "set/show debug frame" command.
10585 (get_prev_frame): When frame_debug, print reason why unwind
10586 failed.
10587
b18a0fd2
MC
105882003-02-25 Michael Chastain <mec@shout.net>
10589
10590 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10591 to avoid uintptr_t definition problems.
10592
22abf04a
DC
105932003-02-25 David Carlton <carlton@math.stanford.edu>
10594
10595 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10596 (SYMBOL_LINKAGE_NAME): Ditto.
10597 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10598 SYMBOL_LINKAGE_NAME.
10599 (struct general_symbol_info): Expand comment.
10600 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10601 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10602 (SYMBOL_MATCHES_REGEXP): Ditto.
10603 * symtab.c (symbol_natural_name): New function.
10604 * objfiles.h: Replace all uses of SYMBOL_NAME by
10605 DEPRECATED_SYMBOL_NAME.
10606 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10607 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10608 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10609 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10610 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10611 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10612 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10613 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10614 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10615 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10616 * ada-exp.y: Ditto.
10617 * ada-exp.y: Update copyright.
10618 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10619 * cp-valprint.c: Ditto.
10620
1a5848f6
JJ
106212003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10622
10623 * infptrace.c (detach): Do not flag error if ptrace detach fails
10624 and errno is set to ESRCH.
10625
7343d46a
AC
106262003-02-24 Andrew Cagney <cagney@redhat.com>
10627
10628 * infptrace.c (udot_info): Change type of udot_off to long. Use
10629 paddr when printing udot_off's value.
10630
49fa1dc2
DC
106312003-02-24 David Carlton <carlton@math.stanford.edu>
10632
10633 * symtab.c (make_symbol_overload_list): Only read in partial
10634 symtabs containing a matching partial symbol.
10635
0fe19209
DC
106362003-02-24 David Carlton <carlton@math.stanford.edu>
10637
10638 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10639 do the comparison, not strcmp.
10640 * symfile.c (compare_psymbols): Ditto.
10641 * defs.h: Declare strcmp_iw_ordered.
10642 * utils.c (strcmp_iw_ordered): New function.
10643
8e3ee7b5
JB
106442003-02-24 Jim Blandy <jimb@redhat.com>
10645
10646 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10647 support, shared libs): Remove my name from here, to better reflect
10648 reality.
10649
7df1a324
KW
106502003-02-24 Kris Warkentin <kewarken@qnx.com>
10651
10652 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10653 (target_ops): Add to_have_continuable_watchpoint.
10654 * target.c (update_current_target): Add INHERIT line for
10655 to_have_continuable_watchpoint.
10656 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10657 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10658 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10659 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10660
d1c76907
EZ
106612003-02-24 Elena Zannoni <ezannoni@redhat.com>
10662
10663 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10664 maintainership.
10665
2610b0bf
KW
106662003-02-24 Kris Warkentin <kewarken@qnx.com>
10667
f46169db
KW
10668 * solib.c (solib_open): Call target defined search function after
10669 failing with solib-search-path.
10670 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10671 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10672
9a3c34fe
KW
106732003-02-24 Kris Warkentin <kewarken@qnx.com>
10674
f46169db 10675 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10676
2417dd25
SC
106772003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10678
10679 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10680
b631436b
SC
106812003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10682
10683 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10684 (m68hc11_add_reggroups): New function.
10685 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10686 (m68hc11_gdbarch_init): Install the reggroups.
10687 (_initialize_m68hc11_tdep): Initialize them.
10688
0aa8c1e4
JW
106892003-02-21 James E Wilson <wilson@tuliptree.org>
10690
10691 * MAINTAINERS: Update my email address.
10692
50ceaba5
DC
106932003-02-21 David Carlton <carlton@math.stanford.edu>
10694
10695 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10696
4c2df51b
DJ
106972003-02-21 Daniel Jacobowitz <drow@mvista.com>
10698
10699 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10700 * symtab.h: Add opaque declarations of struct axs_value and
10701 struct agent_expr.
10702 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10703 (struct location_funcs): New type.
10704 (struct symbol): Add "loc" to aux_value.
10705 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10706 * dwarf2read.c: Include "dwarf2expr.h".
10707 (dwarf2_symbol_mark_computed): New function.
10708 (read_func_scope): Use it.
10709 (var_decode_location): New function.
10710 (new_symbol): Use it.
10711 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10712
10713 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10714 (dwarf2expr_h, dwarf2loc_h): New variables.
10715 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10716 (dwarf2expr.o, dwarf2loc.o): New rules.
10717 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10718 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10719 LOC_COMPUTED_ARG.
10720 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10721 * m2-exp.y (yylex): Likewise.
10722 * printcmd.c (address_info, print_frame_args): Likewise.
10723 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10724 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10725 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10726 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10727 * symtab.c (lookup_block_symbol): Likewise.
10728
5784d15e
AF
107292003-02-20 Adam Fedor <fedor@gnu.org>
10730
10731 * symtab.h: Remove objc_specific struct
10732 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10733 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10734 Have language_objc use cplus_specific struct.
10735
d4cad8db
TT
107362003-02-20 Tom Tromey <tromey@redhat.com>
10737
10738 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10739 TYPE_NAME, when printing a String value. PR java/1075.
10740
2f9a90b4
AF
107412003-02-20 Adam Fedor <fedor@gnu.org>
10742
d38074a8 10743 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 10744 * objc-lang.c (find_methods): Make static.
2f9a90b4 10745
6f17862b
CF
107462003-02-20 Christopher Faylor <cgf@redhat.com>
10747
10748 * win32-nat.c (get_image_name): Check return value from
10749 ReadProcessMemory.
10750 (child_xfer_memory): Ditto.
10751
715d1656
AO
107522003-02-20 Alexandre Oliva <aoliva@redhat.com>
10753
10754 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10755 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10756 '${exec_prefix}' (in addition to the expansion thereof) as
10757 relocatable.
10758 * configure: Rebuilt.
10759
b1262a02
DC
107602003-02-20 David Carlton <carlton@math.stanford.edu>
10761
10762 * symtab.c (search_symbols): Revert the search_symbols part of my
10763 2002-12-23 patch. Add comment.
10764
7134143f
DJ
107652002-02-20 Daniel Jacobowitz <drow@mvista.com>
10766
10767 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10768 * dbxread.c (elfstab_build_psymtabs): Don't call
10769 install_minimal_symbols.
10770 (stabsect_build_psymtabs): Likewise.
10771 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10772 earlier.
10773 * somread.c (som_symfile_read): Call install_minimal_symbols
10774 and do_cleanups earlier.
10775 * nlmread.c (nlm_symfile_read): Likewise.
10776 * mdebugread.c (elfmdebug_build_psymtabs): Call
10777 install_minimal_symbols and make appropriate cleanups.
10778
cf466558
KB
107792003-02-20 Kevin Buettner <kevinb@redhat.com>
10780
10781 * solib.c (reload_shared_libraries): New function.
10782 (_initialize_solib): Add callbacks for ``set solib-search-path''
10783 and ``set solib-absolute-prefix''.
10784
de5ad195
DC
107852003-02-20 David Carlton <carlton@math.stanford.edu>
10786
10787 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10788 expand comment.
10789 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10790 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10791 * ada-typeprint.c (ada_typedef_print): Ditto.
10792 * ax-gdb.c (gen_var_ref): Ditto.
10793 * breakpoint.c (print_one_breakpoint): Ditto.
10794 * buildsym.c (finish_block): Ditto.
10795 * c-valprint.c (c_val_print): Ditto.
10796 * expprint.c (print_subexp): Ditto.
10797 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10798 * infcmd.c (jump_command): Ditto.
10799 * linespec.c (decode_line_2, decode_compound): Ditto.
10800 * maint.c (maintenance_translate_address): Ditto.
10801 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10802 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10803 Ditto.
8ffd9b1b
AJ
10804 * p-valprint.c (pascal_val_print): Ditto.
10805 * stabsread.c (define_symbol): Ditto.
de5ad195 10806 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10807 (print_frame_arg_vars, return_command): Ditto.
10808 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10809 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10810 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10811 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10812 (rbreak_command): Ditto.
10813 * tracepoint.c (tracepoints_info): Ditto.
10814 * typeprint.c (typedef_print): Ditto.
10815 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10816 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10817 * ada-typeprint.c: Update Copyright.
10818 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10819 * tracepoint.c, cli/cli-cmds.c: Ditto.
10820
f796e4be
KB
108212003-02-20 Kevin Buettner <kevinb@redhat.com>
10822
10823 * frame.c (generic_unwind_get_saved_register): Make non-static.
10824 * frame.h (generic_unwind_get_saved_register): Declare.
10825 * mips-tdep.c (read_next_frame_reg): Fetch register from
10826 current regcache when frame is NULL.
10827 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10828 that must be NULL.
10829 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10830 instead of frame_register_unwind().
10831
836cc9f4
AC
108322003-02-20 Andrew Cagney <ac131313@redhat.com>
10833
10834 * remote-sim.c (gdbsim_insert_breakpoint)
10835 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10836 code.
10837
501eef12
AC
108382003-02-20 Andrew Cagney <ac131313@redhat.com>
10839
10840 * remote.c (_initialize_remote): Add commands "set/show remote
10841 hardware-watchpoint-limit" and "set/show remote
10842 hardware-breakpoint-limit".
10843 (remote_hw_watchpoint_limit): Initialize to -1.
10844 (remote_hw_breakpoint_limit): Ditto.
10845 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10846
1b6bc7e0
CF
108472003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10848
10849 * coff-pe-read.c: New file - support reading of minimal symbols from a
10850 portable executable using the export table.
10851 * coff-pe-read.h: New file.
10852 * coffread.c: Include coff-pe-read.h.
10853 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10854 debugging symbols found.
10855 * Makefile.in (SFILES): Add coff-pe-read.o.
10856 (coff_pe_read_h): Define.
10857 (COMMON_OBS): Add coff-pe-read.o.
10858 (coffread.o): Add coff_pe_read_h dependency.
10859 (coff-pe-read.o): New target.
10860
fe898f56
DC
108612003-02-19 David Carlton <carlton@math.stanford.edu>
10862
10863 * Makefile.in (SFILES): Add block.c.
10864 (block_h): New.
10865 (COMMON_OBS): Add block.o.
10866 (block.o): New.
10867 (x86-64-tdep.o): Add $(block_h).
10868 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10869 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10870 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10871 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10872 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10873 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10874 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10875 * value.h: Add opaque declaration for struct block.
10876 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10877 * ada-lang.h: Ditto.
10878 * x86-64-tdep.c: #include "block.h"
10879 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10880 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10881 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10882 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10883 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10884 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10885 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10886 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10887 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10888 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10889 * symtab.c (block_function): Ditto.
10890 (contained_in): Ditto.
10891 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10892 block.h. Add opaque declaration for struct block.
10893 * symtab.h: Move block_function and contained_in declarations to
10894 block.h. Add opaque declarations for struct block, struct
10895 blockvector.
10896 (struct block): Move to block.h.
10897 (struct blockvector): Ditto.
10898 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10899 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10900 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10901 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10902 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10903 Ditto.
10904 * block.c: New file.
10905 * block.h: New file.
10906
173345b5
TR
109072003-02-19 Theodore A. Roth <troth@openavr.org>
10908
10909 * avr-tdep.c (avr_extract_return_value): Remove function.
10910 (avr_store_return_value): Remove function.
10911 (avr_extract_struct_value_address): Remove function.
10912 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10913
338ef23d
AC
109142003-02-19 Andrew Cagney <ac131313@redhat.com>
10915
10916 * rs6000-tdep.c: Include "gdb_assert.h".
10917 (registers_e500): Add "acc" and "spefscr".
10918 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10919 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10920 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10921 really is "r0".
10922 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10923
5412f5f3
KS
109242003-02-18 Keith Seitz <keiths@redhat.com>
10925
10926 * Makefile.in: Add gdbtk-interps.c.
10927
881324eb
KB
109282003-02-18 Kevin Buettner <kevinb@redhat.com>
10929
10930 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10931 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10932
6a2f5abf
AC
109332003-02-18 Andrew Cagney <cagney@redhat.com>
10934
10935 * symtab.h (struct objfile): Add opaque declaration.
10936
54c7009d
EZ
109372003-02-18 Elena Zannoni <ezannoni@redhat.com>
10938
10939 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10940 * dbxread.c (process_one_symbol): Use last_function_start rather
10941 than function_start_offset to find the real beginning of the
10942 current function. The latter is just the text section offset on
10943 some systems, the former is always the real function start.
54c7009d 10944
7ee6d7eb
AC
109452003-02-17 Andrew Cagney <cagney@redhat.com>
10946
10947 * configure.in: Revert ${target} != ${host}.
10948
2846da9b
AC
109492003-02-17 Andrew Cagney <ac131313@redhat.com>
10950
10951 * configure.in (Makefile): Use the test ${target} != ${host},
10952 instead of the absence of the "nm.h" file, to determine of the
10953 configuration non-native.
10954 * configure: Regenerate.
8ffd9b1b 10955
3b27aeea
EZ
109562003-02-14 Elena Zannoni <ezannoni@redhat.com>
10957
fbe586ae 10958 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10959
10960 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10961 conditionalize tui_active test.
10962 (lookup_cmd_1): Ditto.
10963
b0b1c2c0
MK
109642003-02-14 Mark Kettenis <kettenis@gnu.org>
10965
10966 * configure.in: Add check for _etext.
10967 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10968 available.
10969 * config.in, configure: regenerated.
10970
8f05cde5
DJ
109712003-02-14 Daniel Jacobowitz <drow@mvista.com>
10972
10973 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10974
021e7609
AC
109752003-02-14 Andrew Cagney <ac131313@redhat.com>
10976
10977 * main.c (tui_version): Delete variable.
10978 (captured_main): When --tui, set interpreter_p to "tui" instead of
10979 enabling tui_version.
10980 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10981 tui_version.
10982 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10983 * cli/cli-cmds.c (disassemble_command): Ditto.
10984 * defs.h (tui_version): Delete declaration.
10985 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10986 (tui-interp.o): Add rules.
10987 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10988
e325dcec
CF
109892003-02-14 Christopher Faylor <cgf@redhat.com>
10990
36ffb041 10991 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10992 just-loaded dll.
10993
c4f90d87
JM
109942003-02-12 Jason Molenda (jmolenda@apple.com)
10995
fbe586ae
RH
10996 * symmisc.c (print_objfile_statistics): Include information about
10997 the number of psymtabs and symtabs in each object file.
c4f90d87 10998
e46e5ccd
KS
109992003-02-13 Keith R Seitz <keiths@redhat.com>
11000
11001 * main.h (struct captured_main_args): Add interpreter_p.
11002 * main.c (captured_main): Initialize interpreter_p from context.
11003 * gdb.c (main): Set interpreter_p argument.
11004 * Makefile.in (gdb.o): Add dependency for interps.h.
11005
fe97fe9c
AC
110062003-02-12 Andrew Cagney <ac131313@redhat.com>
11007
11008 * event-top.c (cli_command_loop): Delete declaration.
11009 (_initialize_event_loop): Delete function setting event_loop_hook.
11010 * event-top.h (cli_command_loop): Declare. Update copyright.
11011 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11012 * interps.c (current_interp_command_loop): When event_loop_p, call
11013 cli_command_loop.
11014
1cdac4ef
AC
110152003-02-12 Andrew Cagney <ac131313@redhat.com>
11016
11017 * interps.h (interp_command_loop_ftype): Change return type to
11018 void.
11019
48037ead
ML
110202003-02-12 Michal Ludvig <mludvig@suse.cz>
11021
11022 * x86-64-tdep.c (x86_64_extract_return_value)
11023 (x86_64_store_return_value): Use regcache instead of regbuf.
11024 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11025 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11026
033afc63
AC
110272003-02-11 Andrew Cagney <ac131313@redhat.com>
11028
11029 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11030 * aclocal.m4: Regenerate.
11031 * configure: Regenerate.
11032
11033 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11034 TCL_LD_SEARCH_FLAGS.
11035
40d02bca
ML
110362003-02-10 Michal Ludvig <mludvig@suse.cz>
11037
11038 * dwarf2cfi.c: Reindented.
11039
11308a41
AC
110402003-02-09 Andrew Cagney <ac131313@redhat.com>
11041
11042 * interps.c (clear_interpreter_hooks): Convert function definition
11043 to ISO C.
11044
e1c1c0f6
DC
110452003-02-07 David Carlton <carlton@math.stanford.edu>
11046
11047 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11048
ab5d3da6
KB
110492003-02-07 Kevin Buettner <kevinb@redhat.com>
11050
11051 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11052 (struct type): ...to here.
11053 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11054 field.
11055 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11056 (replace_type): Set length on all type variants for a given type.
11057
b8a92b82
AC
110582003-02-07 Andrew Cagney <ac131313@redhat.com>
11059
11060 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11061 <sys/stat.h>.
11062 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 11063
5cb316ef
AC
110642003-02-06 Andrew Cagney <ac131313@redhat.com>
11065
2555fe1a
AC
11066 * Makefile.in (symm-nat.o): Update dependencies.
11067 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11068 (lynx-nat.o, ia64-linux-nat.): Ditto.
11069 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11070 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11071 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11072
44270758
AC
11073 * Makefile.in (inflow_h): Define.
11074 (procfs.o, inflow.o, procfs.o): Update dependencies.
11075 * inftarg.c (child_stop): Delete extern declaration of
11076 inferior_process_group. Include "inflow.h".
11077 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11078 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11079 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11080 (our_process_group, inferior_process_group): Extern declarations.
11081
df8f7274
AC
11082 * procfs.c: Include "gdb_assert.h".
11083
5cb316ef
AC
11084 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11085 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11086 * jv-typeprint.c (java_type_print_base): Ditto.
11087 * typeprint.c (typedef_print): Eliminate STREQ.
11088 * cli/cli-script.c (define_command, define_command): Ditto.
11089 * main.c (captured_main): Ditto.
11090 * values.c (lookup_internalvar): Ditto.
11091 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11092 within `if' conditional.
11093 * linespec.c (decode_line_2): Ditto.
11094 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11095 (bfd_openw_with_cleanup): Ditto.
11096
2a28ccea
MK
110972003-02-07 Mark Kettenis <kettenis@gnu.org>
11098
11099 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11100 legacy_extract_return_value and store_return_value to
11101 legacy_return_value.
11102
786b8124
CF
111032003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11104
11105 * win32-nat.c (get_relocated_section_addrs): New function. Find
11106 section load addresses for symbol handling in relocated DLLs.
11107 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11108
b871e4ec
FF
111092003-02-05 Fred Fish <fnf@intrinsity.com>
11110
11111 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11112 '=' and '!='.
11113 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11114 with '&' and '=='.
11115 (angel_RDI_info): Ditto.
11116 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11117 with '&' and '!='.
11118 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 11119
4389a95a 111202003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
11121 Keith Seitz <keiths@redhat.com>
11122 Elena Zannoni <ezannoni@redhat.com>
11123 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
11124
11125 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11126 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11127 (SUBDIR_MI_OBS): Add "mi-interp.o".
11128 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11129 (SFILES): Add "interps.c".
11130 (COMMON_OBS): Add "interps.o".
11131 (interps_h, mi_main_h): Define.
11132 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11133 (mi-main.o, main.o, event-top.o): Update dependencies.
11134 * cli/cli-interp.c: New file.
11135 * interps.h, interps.c: New files.
11136 * top.c: (gdb_init): Don't install the default interpreter, handed
11137 by captured_main.
11138 * main.c: Include "interps.h".
11139 (interpreter_p): Note that it should malloc'ed.
11140 (captured_command_loop): Call current_interp_command_loop.
11141 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11142 xfree and xstrdup when updating interpreter_p. Install the
11143 default interpreter. Add hack to stop mi1's copyright notice
11144 being encoded.
11145 * event-top.h (gdb_setup_readline): Declare.
11146 (gdb_disable_readline): Declare.
11147 * event-top.c: Include "interps.h".
11148 (display_gdb_prompt): Call current_interp_display_prompt_p.
11149 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11150 gdb_stdlog, and gdb_stdtarg.
11151 (_initialize_event_loop): Don't call gdb_setup_readline.
11152 * cli-out.c (cli_out_set_stream): New function.
11153 * cli-out.h (cli_out_set_stream): Declare.
11154
ff3b5810
MK
111552003-02-06 Mark Kettenis <kettenis@gnu.org>
11156
11157 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11158 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11159 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11160 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11161 config/i386/i386v42mp.mt: Removed.
11162
5b729aa5
MK
111632003-02-05 Mark Kettenis <kettenis@gnu.org>
11164
11165 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11166 GDB_OSABI_SOLARIS.
11167
8cc15142
MC
111682003-02-05 Michael Chastain <mec@shout.net>
11169
11170 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11171 2.12.1 and earlier versions.
11172
5aa5d4b9
AC
111732003-02-05 Andrew Cagney <ac131313@redhat.com>
11174
11175 Remove orphaned hosts, targets and files.
11176 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11177 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11178 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11179 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11180 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11181 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11182 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11183 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11184 * config/sparc/tm-sp64sim.h: Delete.
11185 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11186 hosts.
11187 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11188 mips*-dec-mach3* targets.
11189
b68767c1
MC
111902003-02-04 Michael Chastain <mec@shout.net>
11191
11192 * NEWS: Fix typo: sepcifying -> specifying.
11193
5ae7ca1d
MC
111942003-02-04 Michael Chastain <mec@shout.net>
11195
11196 * dwarfread.c: Add documentation on the state of dwarf-1,
11197 looking towards obsoletion.
11198
d08a4280
MC
111992003-02-03 Michael Chastain <mec@shout.net>
11200
11201 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11202 gdb/testsuite/gdb.c++/pr-1023.exp.
11203
e9be73e4
AC
112042003-02-04 Andrew Cagney <ac131313@redhat.com>
11205
11206 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11207 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11208
11209 * utils.c (init_page_info): Delete reference to MPW in comments.
11210 * main.c (captured_main): Delete #ifdef MPW.
11211
05d57f6f
AC
112122003-02-04 Andrew Cagney <ac131313@redhat.com>
11213
8ffd9b1b 11214 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11215 * monitor.c (monitor_expect): Obsolete reference to m32r.
11216 * configure.tgt: Mark m32r-*-elf* as obsolete.
11217 * MAINTAINERS: Mark m32k as obsolete.
11218 * m32r-rom.c: Obsolete file.
11219 * config/m32r/m32r.mt: Obsolete file.
11220 * config/m32r/tm-m32r.h: Obsolete file.
11221 * m32r-stub.c: Obsolete file.
11222 * m32r-tdep.c: Obsolete file.
11223
8b0e5691
AC
112242003-02-04 Andrew Cagney <ac131313@redhat.com>
11225
11226 * NEWS: Mention that the z8k-zilog-none is obsolete.
11227 * MAINTAINERS: Mark z8k as obsolete.
11228 * configure.tgt: Obsolete the z8k-*-coff* target.
11229 * config/z8k/z8k.mt: Obsolete file.
11230 * config/z8k/tm-z8k.h: Obsolete file.
11231 * z8k-tdep.c: Obsolete file.
11232
67f16606
AC
112332003-02-04 Andrew Cagney <ac131313@redhat.com>
11234
11235 * NEWS: Mention that the mn10200-elf is obsolete.
11236 * configure.tgt: Obsolete mn10200-*-* target.
11237 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11238 mention that the mn10200 is obsolete.
11239 * breakpoint.h: Ditto.
11240 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11241 * config/mn10200/mn10200.mt: Obsolete file.
11242 * config/mn10200/tm-mn10200.h: Obsolete file.
11243 * mn10200-tdep.c: Obsolete file.
11244
fd2299bd
AC
112452003-02-04 Andrew Cagney <ac131313@redhat.com>
11246
11247 * MAINTAINERS: Mark h8500 as obsolete.
11248 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11249 * findvar.c (value_from_register): Ditto.
11250 * h8500-tdep.c: Mark file as obsolete.
11251 * config/h8500/h8500.mt: Ditto.
11252 * config/h8500/tm-h8500.h: Ditto.
11253 * NEWS: Mention that h8500 is obsolete.
11254
eb9a305d
DC
112552003-02-04 David Carlton <carlton@math.stanford.edu>
11256
11257 * objfiles.c (allocate_objfile): Always set name. Add comment at
11258 start of function.
11259 * jv-lang.c (get_dynamics_objfile): Add comment.
11260
406fc7fb
DC
112612003-02-04 David Carlton <carlton@math.stanford.edu>
11262
11263 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11264 * printcmd.c (build_address_symbolic): Replace uses of
11265 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11266 SYMBOL_NAME, and asm_demangle.
11267 Update copyright.
11268
93d91629
DC
112692003-02-04 David Carlton <carlton@math.stanford.edu>
11270
11271 * linespec.c (decode_compound): Extract code into
11272 lookup_prefix_sym.
11273 (lookup_prefix_sym): New function.
11274
1c5cb38e
DC
112752003-02-04 David Carlton <carlton@math.stanford.edu>
11276
11277 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11278 FLOAT_COERCION_BADNESS.
11279 * gdbtypes.c (rank_one_type): Replace all uses of
11280 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11281
0cf824c9
JB
112822003-02-04 Jim Blandy <jimb@redhat.com>
11283
11284 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11285 section, let dwarf_macinfo_section point to it, not
11286 dwarf_loc_section.
11287
a2d356b0
DJ
112882003-02-04 Daniel Jacobowitz <drow@mvista.com>
11289
11290 Pointed out by Anton Blanchard <anton@samba.org>.
11291 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11292 (ppc_linux_at_sigtramp_return_path): Use it.
11293
2de7ced7
DJ
112942003-02-04 Daniel Jacobowitz <drow@mvista.com>
11295
11296 * defs.h (streq): Add prototype.
11297 * utils.c (streq): New function.
11298
11299 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11300 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11301 * mdebugread.c (new_symbol): Likewise.
11302 * stabsread.c (define_symbol): Likewise.
11303 * coffread.c (process_coff_symbol): Likewise.
11304 * dwarfread.c (new_symbol): Likewise.
11305
11306 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11307 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11308 here.
11309 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11310 SYMBOL_INIT_DEMANGLED_NAME.
11311 * objfiles.c: Include "hashtab.h".
11312 (allocate_objfile): Call htab_set_functions_ex for the
11313 demangled_names_hash.
11314 (free_objfile): Call htab_delete for the demangled_names_hash.
11315 * objfiles.h (struct htab): Add declaration.
11316 (struct objfile): Add demangled_names_hash.
11317 * symfile.c: Include "hashtab.h".
11318 (reread_symbols): Call htab_delete for the demangled_names_hash.
11319 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11320 SYMBOL_NAME in the bcache.
11321 * symtab.c: Include "hashtab.h". Update comments.
11322 (create_demangled_names_hash, symbol_set_names): New functions.
11323 (symbol_find_demangled_name): New function, broken out from
11324 symbol_init_demangled_names.
11325 (symbol_init_demangled_names): Use it.
11326 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11327 (SYMBOL_SET_NAMES): New macro.
11328 (symbol_set_names): Add prototype.
11329
15831452
JB
113302003-02-03 Jim Blandy <jimb@redhat.com>
11331
11332 Use a single, consistent representation for an empty minimal
11333 symbol table in an objfile.
11334 * objfiles.c (terminate_minimal_symbol_table): New function.
11335 (allocate_objfile): Call it.
11336 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11337 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11338 non-NULL.
15831452
JB
11339 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11340 objfile has minimal symbols, compare minimal_symbol_count to zero,
11341 instead of comparing msymbols with NULL.
11342 * objfiles.c (have_minimal_symbols): Same.
11343 * solib-sunos.c (solib_add_common_symbols): Call
11344 terminate_minimal_symbol_table.
11345 * symfile.c (reread_symbols): Same.
8ffd9b1b 11346
ffc65945
KB
113472003-02-03 Kevin Buettner <kevinb@redhat.com>
11348
11349 * s390-tdep.c (s390_address_class_type_flags)
11350 (s390_address_class_type_flags_to_name)
11351 (s390_address_class_name_to_type_flags): New functions.
11352 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11353 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11354
f211c6d4
MS
113552003-02-03 Michael Snyder <msnyder@redhat.com>
11356
11357 * arm-tdep.c: Fix spell-o in comment.
11358
659b0389
ML
113592003-02-03 Michal Ludvig <mludvig@suse.cz>
11360
11361 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11362 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11363 error messages to contain BFD filename.
659b0389 11364
3b31d625
EZ
113652003-02-02 Elena Zannoni <ezannoni@redhat.com>
11366
997b089a 11367 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11368 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11369 (do_mixed_source_and_assembly): Use
11370 make_cleanup_ui_out_tuple_begin_end and
11371 make_cleanup_ui_out_tuple_begin_end.
11372 (do_mixed_source_and_assembly): Ditto.
11373 * thread.c (do_captured_list_thread_ids): Ditto.
11374 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11375 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11376 ui_out_tuple_end): Delete prototypes.
11377 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11378 ui_out_list_end, ui_out_tuple_end): Delete.
11379
11380 From Kevin Buettner <kevinb@redhat.com>:
11381 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
11382 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11383 (do_cleanup_table_end): New functions.
11384 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11385 Use cleanups to invoke_ui_out_tuple_end().
11386 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
11387 * cli/cli-setshow.c (cmd_show_list): Use
11388 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 11389
5b181d62
AC
113902003-02-02 Andrew Cagney <ac131313@redhat.com>
11391
11392 * frame.c (frame_unwind_register): New function.
11393 (frame_unwind_unsigned_register): Use.
11394 (frame_unwind_signed_register): Use.
11395 (frame_read_register): New function.
11396 * frame.h (frame_unwind_register): Declare.
11397 (frame_read_register): Declare.
11398
11399 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11400 and frame_unwind_register instead of read_memory, write_register
11401 and deprecated_write_register_bytes.
11402
5f601589
AC
114032003-02-02 Andrew Cagney <ac131313@redhat.com>
11404
11405 * frame.h: Note that namelen can be negative.
11406 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11407 NAME's length.
11408
11409 * NEWS: Mention that the d10v's `regs' command is deprecated.
11410 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11411 (d10v_print_registers_info): New function.
11412 (show_regs): Call d10v_print_registers_info.
11413 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11414
6a3fe0a4
MK
114152003-02-02 Mark Kettenis <kettenis@gnu.org>
11416
11417 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11418 lost in the previous patch.
11419
075559bc
AC
114202003-02-01 Andrew Cagney <ac131313@redhat.com>
11421
11422 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
11423 * stack.c (print_frame_info_base): Output complete FRAME tuple
11424 for synthesized frames.
075559bc 11425
6789195b
AC
114262003-02-02 Andrew Cagney <ac131313@redhat.com>
11427
11428 * mips-nat.c (zerobuf): Delete.
11429 (fetch_inferior_registers): Alloc local zerobuf.
11430 (fetch_core_registers): Alloc local zerobuf.
11431 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11432 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11433 * thread-db.c (thread_db_store_registers): Ditto.
11434 * sh-tdep.c (sh_do_register): Ditto.
11435 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11436 * remote-sim.c (gdbsim_store_register): Ditto.
11437 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11438 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11439 * monitor.c (monitor_supply_register): Ditto.
11440 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11441 * mips-nat.c (fetch_inferior_registers): Ditto.
11442 * m68klinux-nat.c (fetch_register): Ditto.
11443 * lynx-nat.c (fetch_inferior_registers): Ditto.
11444 (fetch_inferior_registers): Ditto.
11445 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11446 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11447 (hpux_thread_store_registers): Ditto.
11448 * hppah-nat.c (fetch_register): Ditto.
11449 * hppab-nat.c (fetch_register): Ditto.
11450 * hppa-tdep.c (pa_register_look_aside): Ditto.
11451 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11452 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11453
e669114a
AC
114542003-02-01 Andrew Cagney <ac131313@redhat.com>
11455
11456 * gdbarch.sh: Explictly specify all method levels. When a
11457 variable with an empty level, provide a non-multi-arch default.
11458 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11459 * gdbarch.h: Re-generate.
11460 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11461 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11462
9a043c1d
AC
114632003-02-01 Andrew Cagney <ac131313@redhat.com>
11464
11465 * defs.h (host_pointer_to_address): Delete declaration.
11466 (address_to_host_pointer): Delete declaration.
11467 * utils.c (host_pointer_to_address): Delete function.
11468 (address_to_host_pointer): Delete function.
11469 * procfs.c (procfs_address_to_host_pointer): New function.
11470 * procfs.c (proc_set_watchpoint): Use.
11471 (procfs_can_use_hw_breakpoint): Update comments.
11472 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11473 (som_solib_add): Use.
11474 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11475 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 11476
7ca9f392
AC
114772003-02-01 Andrew Cagney <ac131313@redhat.com>
11478
94bbfd30
AC
11479 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11480 strlen d_name.
11481
7ca9f392
AC
11482 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11483 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11484 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11485 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11486 (define_symbol): Update.
11487 * symfile.c (generic_load): Remove references to nindy.
11488 * symtab.c: Remove references to nindy.
11489
31a85ea2
AC
114902003-02-01 Andrew Cagney <ac131313@redhat.com>
11491
11492 * infcmd.c (print_float_info): Delete code conditional on
11493 FLOAT_INFO.
11494 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11495 * config/m68k/nm-apollo68b.h: Ditto.
11496 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11497 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11498 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11499
f6e85fc8
MK
115002003-02-01 Mark Kettenis <kettenis@gnu.org>
11501
6015b6a0
MK
11502 * config/i386/tm-i386os9k.h: Removed.
11503
f7a30bdf
MK
11504 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11505 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11506 they're identical to i[3456]86-*-sysv* now.
11507 * config/i386/i386v32.mh: Removed.
11508 * config/i386/xm-i386v32.h: Removed.
11509 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11510
28d52111
MK
11511 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11512
4d3f6bce
MK
11513 * config/i386/i386dgux.mh: Removed.
11514 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11515
f6e85fc8
MK
11516 * configure.in: Fix typo.
11517 * configure: Regenerated.
11518
53955967
DC
115192003-01-31 David Carlton <carlton@math.stanford.edu>
11520
11521 * dwarf2read.c (dwarf2_locate_sections): Set
11522 dwarf_ranges_section.
11523
b1364885
AC
115242003-01-31 Andrew Cagney <ac131313@redhat.com>
11525
8dbb1c65
AC
11526 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11527 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 11528
8731e58e
AC
11529 * utils.c: Re-indent.
11530
b1364885
AC
11531 * config/djgpp/fnchange.lst: Delete nindy files.
11532 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11533 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11534 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11535 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11536 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11537 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11538 * Makefile.in (init.c): Remove nindy references.
11539 (saber_gdb): Delete rule.
11540 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11541 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11542 and a68v-nat.c.
11543 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11544 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11545 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11546 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11547 nindy-share/stop.h.
11548 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11549 * saber.suppress: Delete file.
11550
086df311
DJ
115512003-01-31 Daniel Jacobowitz <drow@mvista.com>
11552
11553 * dbxread.c (stabs_data): New static variable.
11554 (fill_symbuf): Support an in-memory buffer for stabs data.
11555 (stabs_seek): New function.
11556 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11557 (read_ofile_symtab): Use stabs_seek.
11558 (elfstab_build_psymtabs): Take an asection* instead of
11559 an offset and size. Relocate the stabs data if necessary.
11560 Save the section* for dbx_psymtab_to_symtab.
11561 * dwarf2read.c: Add section variables for each debug section.
11562 (dwarf2_locate_sections): Fill them in.
11563 (dwarf2_read_section): Take an asection* argument.
11564 Relocate the section contents if necessary.
11565 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11566 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11567 it to dwarf2_read_section.
11568 (dwarf2_build_frame_info): Update callers.
11569 * elfread.c (elf_symfile_read): Update call to
11570 elfstab_build_psymtabs.
11571 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11572 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11573 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11574 * symfile.c (symfile_dummy_outputs): New function.
11575 (symfile_relocate_debug_section): New function.
11576 * symfile.h (symfile_relocate_debug_section): Add prototype.
11577
87d1b352
RH
115782003-01-31 Richard Henderson <rth@redhat.com>
11579
11580 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11581 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11582 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11583 * alpha-tdep.c (alpha_register_name): Add "unique".
11584 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11585 (ALPHA_UNIQUE_REGNUM): New.
11586 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11587
c48861fb
AC
115882003-01-31 Andrew Cagney <ac131313@redhat.com>
11589
11590 * README: Remove reference to Ericsson 1800 monitor.
11591 * Makefile.in (remote-es.o): Delete rule.
11592 (ALLDEPFILES): Delete remote-es.c.
11593 * remote-es.c: Delete file.
11594 * config/m68k/es1800.mt: Delete file.
11595 * config/djgpp/fnchange.lst: Update.
11596 * configure.tgt: Delete m68*-ericsson-* target.
11597
d764a824
AF
115982003-01-31 Adam Fedor <fedor@gnu.org>
11599
11600 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11601 Remove duplicate/shadowing variable of same name.
11602
fe36c4f4
JB
116032003-01-30 Jim Blandy <jimb@redhat.com>
11604
11605 * symfile.c (find_separate_debug_file): Assert that the objfile's
11606 directory name we compute ends with a slash, and then assume that
11607 that's so everywhere we use it.
11608
cb741690
DJ
116092003-01-30 Daniel Jacobowitz <drow@mvista.com>
11610
11611 * valops.c (value_assign): Flush frame cache after stores to memory
11612 also.
11613
96ee5227
AC
116142003-01-30 Andrew Cagney <ac131313@redhat.com>
11615
11616 * Makefile.in (mon960-rom.o): Delete rule.
11617 * mon960-rom.c: Delete file.
11618
7f6104a9
AC
116192003-01-30 Andrew Cagney <ac131313@redhat.com>
11620
11621 * d10v-tdep.c: Include "frame-unwind.h".
11622 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11623 list.
11624 (next_addr, uses_frame): Delete.
11625 (struct d10v_unwind_cache): Define.
11626 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11627 Use info instead of next_addr and uses_frame globals.
11628 (d10v_frame_init_saved_regs): Delete function.
11629 (d10v_init_extra_frame_info): Delete function.
11630 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11631 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11632 init_frame_pc or frame_saved_pc.
11633 (d10v_pop_frame): Delete function.
11634 (do_d10v_pop_frame): Delete function.
11635 (d10v_frame_chain): Delete function.
11636 (d10v_frame_chain_valid): Delete function.
11637 (d10v_frame_pc_unwind): New function.
11638 (d10v_frame_id_unwind): New function.
11639 (saved_regs_unwinder): New function.
11640 (d10v_frame_register_unwind): New function.
11641 (d10v_frame_pop): New function.
11642 (d10v_frame_unwind): New variable.
11643 (d10v_frame_p): New function.
11644 (d10v_frame_saved_pc): Delete function.
11645 * Makefile.in (d10v-tdep.o): Update dependencies.
11646
cad2e848
JB
116472003-01-30 J. Brobecker <brobecker@gnat.com>
11648
11649 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11650 causing some regressions due to a change in the default value
11651 for this macro.
11652
af34e669
DJ
116532003-01-29 Richard Henderson <rth@redhat.com>
11654 Elena Zannoni <ezannoni@redhat.com>
11655 Daniel Jacobowitz <drow@mvista.com>
11656
11657 Fix PR gdb/961.
8ffd9b1b 11658 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11659 variables.
11660 (RANGES_SECTION): New.
11661 (dwarf_ranges_buffer): New variable.
11662 (struct comp_unit_head): Add member "die".
11663 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11664 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11665 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11666 (dwarf2_locate_sections): Likewise.
11667 (dwarf2_build_psymtabs): Read .debug_ranges.
11668 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11669 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11670 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11671 Look for DW_AT_ranges and return the bounding box.
11672
baa93fa6
CF
116732003-01-29 Brian Ford <ford@vss.fsi.com>
11674
11675 * win32-nat.c (cygwin_pid): Removed as unused.
11676 (child_attach): Try fall back to Cygwin pid.
11677
c63f977f
JB
116782003-01-29 Jim Blandy <jimb@redhat.com>
11679
11680 * objfiles.h (struct objfile): Doc fix.
11681
d62d1979
AC
116822003-01-29 Andrew Cagney <ac131313@redhat.com>
11683
11684 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11685 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11686 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11687 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11688 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11689 (FRAME_SAVED_PC): Change to a function with predicate.
11690 * gdbarch.h, gdbarch.c: Re-generate.
11691
1ae18a04
AC
116922003-01-28 Andrew Cagney <ac131313@redhat.com>
11693
52287340
AC
11694 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11695
1ae18a04
AC
11696 * complaints.c (complain): Delete function.
11697 * complaints.h (struct deprecated_complaint): Delete definition.
11698 (complain): Delete declaration.
11699
f2c16bd6
KB
117002003-01-28 Kevin Buettner <kevinb@redhat.com>
11701
11702 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11703 dummy frames.
11704
a94dd1fd
AC
117052003-01-27 Andrew Cagney <ac131313@redhat.com>
11706
11707 * sentinel-frame.h, sentinel-frame.c: New files.
11708 * Makefile.in (frame.o): Update dependencies.
11709 (SFILES): Add sentinel-frame.c.
11710 (sentinel_frame_h): Define.
11711 (COMMON_OBS): Add sentinel-frame.o.
11712 (sentinel-frame.o): Specify dependencies.
11713 * frame.c: Include "sentinel-frame.h".
11714 (frame_register_unwind): Rewrite assuming that there is always a a
11715 ->next frame.
11716 (frame_register, generic_unwind_get_saved_register): Ditto.
11717 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11718 (create_sentinel_frame, unwind_to_current_frame): New functions.
11719 (get_current_frame): Rewrite using create_sentinel_frame and
11720 unwind_to_current_frame. When possible, always create a frame.
11721 (create_new_frame): Set next to the sentinel frame.
11722 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11723 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11724 ID cache when necessary.
11725 (frame_saved_regs_id_unwind): Use frame_relative_level.
11726 (deprecated_generic_get_saved_register): Use frame_relative_level,
11727 get_frame_saved_regs, get_frame_pc, get_frame_base and
11728 get_next_frame.
11729 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11730 frame_register.
11731
5378adc4
DJ
117322003-01-27 Daniel Jacobowitz <drow@mvista.com>
11733
11734 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11735
51ee2ddc
DJ
117362003-01-27 Daniel Jacobowitz <drow@mvista.com>
11737
11738 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11739 (maintenance_set_profile_cmd): Use error () instead of warning ().
11740
d9feb4e7
DJ
117412003-01-27 Daniel Jacobowitz <drow@mvista.com>
11742
11743 * configure.in: Check that -pg works if using --enable-profiling.
11744 Check for monstartup and _mcleanup regardless of --enable-profiling.
11745 * maint.c: Check for monstartup and _mcleanup before using them.
11746 * config.in: Regenerated.
11747 * configure: Regenerated.
11748
2d188dd3
NC
117492003-01-24 Nick Clifton <nickc@redhat.com>
11750
11751 * Add sh2e support:
11752
11753 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11754
11755 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11756 (sh2e_show_regs): New.
11757 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11758 * config/sh/tm-sh.h: Added sh2e to comments.
11759
cb3c37b2
JB
117602003-01-23 Jim Blandy <jimb@redhat.com>
11761
11762 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11763 symbols found)" message here; we haven't checked for a separate
11764 debug info file yet, so we don't know yet.
11765 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11766 we've looked everywhere. Also, there's no need to print a special
11767 message when we're loading the separate debug info file: the one
11768 symbol_file_add prints is fine.
11769
5b5d99cf
JB
117702003-01-23 Alexander Larsson <alexl@redhat.com>
11771 Jim Blandy <jimb@redhat.com>
11772
11773 Add support for executables whose debug info has been separated
11774 out into a separate file, leaving only a link behind.
11775 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11776 and separate_debug_objfile_backlink.
11777 (put_objfile_before): New declaration.
11778 * symfile.c: #include "filenames.h".
11779 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11780 debug info in a separate file, read that, too. Save the addrs
11781 argument, so we can use it again to read the separated debug info;
11782 syms_from_objfile modifies the table we pass it.
11783 (reread_symbols): After re-reading an objfile, call
11784 reread_separate_symbols to refresh its separate debug info
11785 objfile, if it has one.
11786 (reread_separate_symbols, find_separate_debug_file,
11787 get_debug_link_info, separate_debug_file_exists): New functions.
11788 (debug_file_directory): New global var.
11789 (_initialize_symfile): Initialize debug_file_directory, and
11790 provide the new `set debug-file-directory' command to let the user
11791 change it.
11792 * objfiles.c (free_objfile): If this objfile has its debug info in
11793 a separate objfile, free that one too. If this is itself a
11794 separate debug info objfile, clear our parent's backlink.
11795 (put_objfile_before): New function.
11796 * utils.c (gnu_debuglink_crc32): New function.
11797 * defs.h (gnu_debuglink_crc32): New declaration.
11798 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11799 * configure.in: Handle --with-separate-debug-dir config option.
11800 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11801 * acconfig.h (DEBUGDIR): New macro.
11802 * configure, aclocal.m4, config.in: Regenerated.
11803
7e8580c1
JB
118042003-01-22 Jim Blandy <jimb@redhat.com>
11805
7904e09f
JB
11806 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11807 like the old symbol_file_add, but taking new arguments: you can
11808 now pass in either a `struct section_addr_info' list to say where
11809 each section is loaded, or a `struct section_offsets' table. Pass
11810 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11811 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11812 with the appropriate quiescent values for the new arguments.
11813
7e8580c1
JB
11814 * symfile.c: #include "gdb_assert.h".
11815 (syms_from_objfile): Add the ability to pass in a section offset
11816 table directly, as an alternative to the section_addr_info table.
11817 Document arguments better.
11818 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11819 * symfile.h (syms_from_objfile): Update declaration.
11820 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11821 syms_from_objfile.
11822 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11823
d28f9cdf
DJ
118242003-01-22 Daniel Jacobowitz <drow@mvista.com>
11825
11826 Original patch by Tom Tromey <tromey@cygnus.com> and
11827 Jason Molenda <jmolenda@apple.com>.
11828 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11829 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11830 * NEWS: Mention profiling.
11831 * configure.in (--enable-gdbtk): Fix typo.
11832 (--enable-profiling): New. Set PROFILE_CFLAGS.
11833 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11834 Fill in function.
11835 (profiling_state): New variable.
11836 (mcleanup_wrapper): New function.
11837 (_initialize_maint): Remove NOTYET, fix call to
11838 add_setshow_boolean_cmd for "maint set profile".
11839 * configure: Regenerated.
11840
df21e465
MH
118412003-01-21 Martin M. Hunt <hunt@redhat.com>
11842
11843 * Makefile.in (install-gdbtk): Install PNG images too.
11844
73c1f219
AC
118452003-01-21 Andrew Cagney <ac131313@redhat.com>
11846
11847 * exec.c (text_start): Delete global variable.
11848 (exec_file_attach): Make text_start local to the function.
11849 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11850 * valops.c (hand_function_call): Delete code that handles
11851 BEFORE_TEXT_END and AFTER_TEXT_END.
11852 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11853 of CALL_DUMMY_LOCATION.
11854 * gdbarch.c: Regenerate.
11855 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11856 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11857 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11858 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11859 (text_end): Delete extern declaration.
11860
eb4f72c5
AC
118612003-01-21 Andrew Cagney <ac131313@redhat.com>
11862
11863 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11864 * blockframe.c (backtrace_below_main): Move to "frame.c".
11865 (frame_chain_valid): Delete check for backtrace_below_main.
11866 (_initialize_blockframe): Delete initialization, move ``set
11867 backtrace-below-main'' command to "frame.c".
11868 (do_flush_frames_sfunc): Delete function.
11869 * frame.c: Include "command.h" and "gdbcmd.h".
11870 (frame_type_from_pc): New function.
11871 (create_new_frame): Use frame_type_from_pc.
11872 (legacy_get_prev_frame): New function.
11873 (get_prev_frame): Rewrite. When an old style frame, call
11874 legacy_get_prev_frame. Otherwize, unwind the PC first.
11875 (_initialize_frame): Add ``set backtrace-below-main'' command.
11876 * Makefile.in (frame.o): Update dependencies.
11877
778ce8cc
AC
118782003-01-19 Andrew Cagney <ac131313@redhat.com>
11879
11880 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11881 DEPRECATED_REGISTERS_INFO.
11882
01c193c8
AC
118832003-01-19 Andrew Cagney <ac131313@redhat.com>
11884
11885 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11886 Maintainers'. Update `Various Maintainers'.
11887
dedc2a2b
AC
118882003-01-19 Andrew Cagney <ac131313@redhat.com>
11889
11890 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11891 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11892 Suppress actual parameters when `-'.
11893 * gdbarch.h, gdbarch.c: Regenerate.
11894
b7261c70
AC
118952003-01-19 Andrew Cagney <ac131313@redhat.com>
11896
11897 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11898 code handling dummy frames.
11899
dbe9fe58
AC
119002003-01-19 Andrew Cagney <ac131313@redhat.com>
11901
11902 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11903 (struct frame_unwind): Add field pop.
11904 * frame.h (frame_pop): Declare.
11905 * frame.c (frame_saved_regs_pop): New function.
11906 (trad_frame_unwinder): Add frame_saved_regs_pop.
11907 (frame_pop): New function.
11908 * dummy-frame.c (dummy_frame_pop): New function.
11909 (discard_innermost_dummy): New function.
11910 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11911 (dummy_frame_unwind): Add dummy_frame_pop.
11912 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11913 * valops.c (hand_function_call): Ditto.
11914 * stack.c (return_command): Ditto.
11915
570b8f7c
AC
119162003-01-18 Andrew Cagney <ac131313@redhat.com>
11917
11918 * cris-tdep.c: Fix function declaration indentation.
11919 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11920 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11921 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11922 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11923 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11924 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11925
119262003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11927
11928 * README (Unpacking and Installation -- quick overview):
11929 Warn against ".../gdb-5.3/gdb/configure".
11930
494cca16
AC
119312003-01-18 Andrew Cagney <ac131313@redhat.com>
11932
11933 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11934 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11935 (struct frame_unwind): Declare opaque.
11936 (dummy_frame_p): Declare function.
11937 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11938 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11939 * dummy-frame.c: Include "frame-unwind.h".
11940 (dummy_frame_p): New function.
11941 (dummy_frame_unwind): New variable.
11942 * frame.c: Include "frame-unwind.h".
11943 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11944 to use the new unwind field.
11945 (set_unwind_by_pc): Delete function.
11946 (create_new_frame, get_prev_frame): Set unwind field using
11947 frame_unwind_find_by_pc.
11948 (trad_frame_unwind, trad_frame_unwinder): New variables.
11949 * frame.h (trad_frame_unwind): Declare variable.
11950 (frame_id_unwind_ftype): Delete declaration.
11951 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11952 (struct frame_unwind): Declare opaque.
11953 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11954 register_unwind with a single unwind pointer.
11955 * frame-unwind.h, frame-unwind.c: New files.
11956 * Makefile.in (SFILES): Add frame-unwind.c.
11957 (frame_unwind_h): Define.
11958 (COMMON_OBS): Add frame-unwind.o.
11959 (frame-unwind.o): Specify dependencies.
11960 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11961
4efb68b1
AC
119622003-01-18 Andrew Cagney <ac131313@redhat.com>
11963
11964 * ada-valprint.c: Eliminate PTR.
11965 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11966 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11967 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11968 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11969 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11970 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11971 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11972
a84d24ee
AC
119732003-01-17 Andrew Cagney <ac131313@redhat.com>
11974
762f08a3
AC
11975 * main.c (captured_main): Don't use PTR.
11976 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11977 * gdbtypes.c (lookup_primitive_typename): Ditto.
11978 (lookup_struct_elt_type): Ditto.
11979 * f-valprint.c (info_common_command): Ditto.
11980 (list_all_visible_commons): Ditto.
11981 * jv-typeprint.c (java_type_print_base): Ditto.
11982
a84d24ee
AC
11983 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11984 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11985 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11986 i386-interix-nat.c and i386-interix-tdep.c. Rename
11987 m68klinux-nat.c and m68klinux-tdep.c. Rename
11988 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11989 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11990 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11991 * main.c (captured_main): Use xfree, not free.
11992
c170fb60
AC
119932003-01-16 Andrew Cagney <ac131313@redhat.com>
11994
11995 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11996 ID back using a parameter.
11997 * frame.c (frame_id_unwind): Update call.
11998 (frame_saved_regs_id_unwind): Update.
11999 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12000 * dummy-frame.h (struct frame_id): Add opaque declaration.
12001 (dummy_frame_id_unwind): Update declaration.
12002
867f3898
AC
120032003-01-15 Andrew Cagney <ac131313@redhat.com>
12004
12005 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12006
40622be8 120072003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 12008
40622be8 12009 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 12010
ae66c1fc
EZ
120112003-01-14 Elena Zannoni <ezannoni@redhat.com>
12012
997b089a 12013 Fix PR gdb/898
ae66c1fc
EZ
12014 * breakpoint.c (until_break_command): Add new argument. Use it to
12015 decide whether to stop only at the current frame or not.
12016 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 12017 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
12018 call.
12019 (advance_command): New function.
12020 (_initialize_infcmd): Update help string for 'until' command.
12021 Add new 'advance' command.
12022
a04257e6
DC
120232003-01-14 David Carlton <carlton@math.stanford.edu>
12024
12025 * linespec.c (decode_line_1): Normalize comments.
12026 (set_flags): Ditto.
12027 (locate_first_half): Ditto.
12028 (decode_compound): Ditto.
12029 (symtab_from_filename): Ditto.
12030 (decode_all_digits): Ditto.
12031 (decode_dollar): Ditto.
12032 (find_methods): Ditto.
12033 (find_toplevel_char): Ditto.
12034
1bac305b
AC
120352003-01-13 Andrew Cagney <ac131313@redhat.com>
12036
12037 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12038 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12039 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12040 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12041 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12042 * language.c, language.h, m32r-tdep.c: Update copyright.
12043 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12044 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12045 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12046 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12047 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12048 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12049
25caa7a8
EZ
120502003-01-13 Elena Zannoni <ezannoni@redhat.com>
12051
12052 * stabsread.h (process_later, resolve_cfront_continuation):
12053 Obsolete.
12054 Update copyright years.
12055 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12056 Update copyright year.
12057 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 12058 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
12059 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12060 Update copyright year.
12061 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12062 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12063 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12064 (parse_partial_symbols): Obsolete cfront support.
12065 * stabsread.c
12066 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12067 macros.
12068 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12069 read_cfront_baseclasses, read_cfront_member_functions,
12070 resolve_cfront_continuation,read_cfront_static_fields,
12071 copy_cfront_struct_fields): Obsolete functions.
12072 (define_symbol, read_one_struct_field): Obsolete cfront support.
12073 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12074 Update Copyright year.
12075
7789c6f5
EZ
120762003-01-13 Elena Zannoni <ezannoni@redhat.com>
12077
12078 * stack.c (print_frame_info, print_stack_frame_base_stub,
12079 print_stack_frame_base, show_and_print_stack_frame_stub,
12080 show_and_print_stack_frame, print_only_stack_frame_stub,
12081 print_only_stack_frame): Delete functions.
12082 (print_stack_frame_stub): Call print_frame_info instead of
12083 print_frame_info_base.
12084 (print_frame_info_base): Rename to print_frame_info.
12085 (backtrace_command_1): Call print_frame_info, instead of
12086 print_frame_info_base.
12087 (current_frame_command): Call print_stack_frame, instead of
12088 print_only_stack_frame.
12089 (frame_command): Call print_stack_frame, instead of
12090 show_and_print_stack_frame.
12091 (up_command): Ditto.
12092 (down_command): Ditto.
12093 * frame.h (print_only_stack_frame): Delete prototype.
12094 * infrun.c (normal_stop): Call print_stack_frame, instead of
12095 show_and_print_stack_frame.
12096 * thread.c (info_threads_command): Call print_stack_frame, instead
12097 of print_only_stack_frame.
12098
3f5a3016
AC
120992003-01-13 Andrew Cagney <ac131313@redhat.com>
12100
d99ba314
AC
12101 * README (Graphical interface to GDB): Update URL. Point at
12102 gdb/links/.
12103
3f5a3016
AC
12104 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12105 version match.
12106
083ae935
DJ
121072003-01-13 Daniel Jacobowitz <drow@mvista.com>
12108
12109 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12110 lines.
12111
5365276c
DJ
121122003-01-13 Daniel Jacobowitz <drow@mvista.com>
12113
12114 * thread-db.c (attach_thread): Prototype.
12115 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12116 thread information (ti), and valid flags (th_valid, ti_valid).
12117 (attach_thread): Move target_pid_to_str call to after the thread
12118 is added to GDB's list. Initialize the cache.
12119 (thread_get_info_callback, thread_db_map_id2thr)
12120 (thread_db_get_info): New functions.
12121 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12122 (thread_db_store_registers, thread_db_thread_alive)
12123 (thread_db_get_thread_local_address): Use them.
12124 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12125 of calling error() for threads in unknown state.
12126
12127 (clear_lwpid_callback): New function.
12128 (thread_db_resume): Use it to clear the cache.
12129
9fc30b6b
DJ
121302003-01-13 Daniel Jacobowitz <drow@mvista.com>
12131
12132 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12133 (resume_callback): Remove dead code.
12134
8f871025
AC
121352003-01-13 Andrew Cagney <ac131313@redhat.com>
12136
12137 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12138 predicate.
12139 * gdbarch.h, gdbarch.c: Regenerate.
12140 * stack.c (frame_info): Only initialize the saved registers when
12141 FRAME_INIT_SAVED_REGS_P.
12142 * frame.c (frame_saved_regs_register_unwind): Assert
12143 FRAME_INIT_SAVED_REGS_P.
12144 (deprecated_generic_get_saved_register): Ditto.
12145
3f565f1e
DJ
121462003-01-13 Daniel Jacobowitz <drow@mvista.com>
12147
12148 * source.c (openp): Squelch warning about "filename".
12149
072b1022
DJ
121502003-01-13 Daniel Jacobowitz <drow@mvista.com>
12151
12152 * source.c (openp): If the file does not exist don't necessarily
12153 search the path.
12154
973ccf8b
DJ
121552003-01-13 Daniel Jacobowitz <drow@mvista.com>
12156
12157 Fix PR gdb/872.
12158 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12159 (integer_types_same_name_p): New function.
12160 (rank_one_type): Use it.
12161 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12162
030292b7
DJ
121632003-01-13 Daniel Jacobowitz <drow@mvista.com>
12164
12165 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12166 variables.
12167 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12168 * configure.in: Add --with-sysroot.
12169 * configure: Regenerated.
12170 * main.c (gdb_sysroot): New variable.
12171 (captured_main): Initialize gdb_sysroot.
12172 * defs.h (gdb_sysroot): New extern declaration.
12173 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12174
afb5d334
MC
121752003-01-12 Michael Chastain <mec@shout.net>
12176
12177 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12178
751ceeb4
MC
121792003-01-12 Michael Chastain <mec@shout.net>
12180
12181 * top.c (print_gdb_version): Bump copyright year to 2003.
12182
94cd26f8
DC
121832003-01-12 David Carlton <carlton@bactrian.org>
12184
12185 * linespec.c (symtab_from_filename): Rename variable 's' to
12186 'file_symtab'.
12187
1ce79225
AC
121882003-01-12 Andrew Cagney <ac131313@redhat.com>
12189
12190 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12191 dummy frame.
12192 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12193
fa1fd571
AC
121942003-01-12 Andrew Cagney <ac131313@redhat.com>
12195
12196 * d10v-tdep.c: Include "gdb_assert.h".
12197 (d10v_store_return_value): Rewrite to match current interface.
12198 (d10v_extract_struct_value_address): Ditto.
12199 (d10v_extract_return_value): Ditto.
12200 (d10v_gdbarch_init): Set store_restore_value,
12201 extract_struct_value_address and extract_return_value.
12202
68b8d23e
JB
122032003-01-12 J. Brobecker <brobecker@gnat.com>
12204
12205 * hpread.c (set_namestring): New procedure replacing the
12206 SET_NAMESTRING macro.
12207 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12208 by calls to set_namestring.
12209
122102003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12211
12212 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12213 a compilation warning.
12214 (hpread_process_one_debug_symbol): Likewise.
12215
88d262ca
DC
122162003-01-10 David Carlton <carlton@math.stanford.edu>
12217
12218 * linespec.c (decode_line_1): Rename variable 's' to
12219 'file_symtab'.
12220 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12221 (decode_dollar): Ditto.
12222 (decode_variable): Ditto.
12223 (symbol_found): Ditto.
12224
86669319
MC
122252003-01-09 Michael Chastain <mec@shout.net>
12226
12227 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12228
616a9dc4
CV
122292003-01-07 Corinna Vinschen <vinschen@redhat.com>
12230
12231 * win32-nat.c (set_process_privilege): New function.
12232 (child_attach): Call set_process_privilege() to enable the
12233 SE_DEBUG_NAME user privilege if available in process token.
12234
3269bcfa
JB
122352003-01-10 J. Brobecker <brobecker@gnat.com>
12236
12237 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12238 compilation error in the previous revision.
12239
2b0ee454
DC
122402003-01-09 David Carlton <carlton@math.stanford.edu>
12241
12242 * linespec.c: Update copyright.
12243
b3ba1b44
DJ
122442003-01-09 Daniel Jacobowitz <drow@mvista.com>
12245
12246 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12247 than inferior_ptid.
12248 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12249
4ef3f3be
AC
122502003-01-09 Andrew Cagney <ac131313@redhat.com>
12251
479ab5a0
AC
12252 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12253 Update comments.
12254 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12255 (frame_saved_regs_zalloc): Update.
12256 (frame_saved_regs_register_unwind): Update.
12257 (create_new_frame): Update.
12258 (get_prev_frame): Update.
12259 (frame_extra_info_zalloc): Update.
12260 (deprecated_get_frame_saved_regs): Update.
12261 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12262 * cris-tdep.c: Update comment.
12263
bde58177
AC
12264 * somsolib.h: Fix function indentation.
12265 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12266 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12267 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12268 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12269 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12270
4ef3f3be
AC
12271 * infrun.c (follow_fork): Use ISO C definition.
12272 * expprint.c (print_subexp): Use xfree instead of free.
12273 * charset.c: Include "gdb_string.h" instead of <string.h>.
12274 (register_iconv_charsets): Use ISO C definition.
12275 (host_charset, target_charset): Ditto.
12276 * Makefile.in (charset.o): Update dependencies.
12277 (mi-cmd-env.o): Update dependencies.
12278
1c615f7a
AC
122792003-01-08 Andrew Cagney <cagney@redhat.com>
12280
12281 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12282 get_frame_base.
12283
c9a1dc08
AC
122842003-01-08 Andrew Cagney <ac131313@redhat.com>
12285
12286 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12287 build directories. Save edited gdb output in Mbuild.log. If a
12288 build fails, remove any final GDB executable.
12289
dbad9d94
AC
122902003-01-08 Andrew Cagney <ac131313@redhat.com>
12291
12292 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12293 replacing hex constants with function names and stripping leading
12294 file name directory prefixes.
12295
8d357cca
AC
122962003-01-08 Andrew Cagney <cagney@redhat.com>
12297
12298 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12299 get_frame_base.
12300
bca02a8a
DC
123012003-01-08 David Carlton <carlton@math.stanford.edu>
12302
12303 * linespec.c (decode_line_1): Move code into decode_variable.
12304 (decode_variable): New function.
12305
7f8ab3a0
AC
123062003-01-08 Andrew Cagney <ac131313@redhat.com>
12307
12308 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12309
7b5849cc
AC
123102003-01-08 Andrew Cagney <cagney@redhat.com>
12311
12312 * cris-tdep.c (cris_frame_init_saved_regs): Use
12313 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12314 saved_regs buffer.
12315 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12316 (sh64_nofp_frame_init_saved_regs): Ditto.
12317 (sh_fp_frame_init_saved_regs): Ditto.
12318 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12319 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12320 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12321 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12322
72a5efb3
DJ
123232003-01-08 Daniel Jacobowitz <drow@mvista.com>
12324
12325 * minsyms.c (lookup_minimal_symbol): Update comment.
12326 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12327 (lookup_minimal_symbol_solib_trampoline): Likewise.
12328
11c02a10
AC
123292003-01-08 Andrew Cagney <cagney@redhat.com>
12330
aab3ea25
AC
12331 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12332 frame_relative_level.
12333
da50a4b7
AC
12334 * alpha-tdep.c: Use get_frame_extra_info.
12335 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12336 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12337 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12338 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12339
11c02a10
AC
12340 * alpha-tdep.c: Use get_next_frame.
12341 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12342 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12343 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12344 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12345 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12346 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12347 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12348
1e2330ba
AC
123492003-01-07 Andrew Cagney <cagney@redhat.com>
12350
12351 * alpha-tdep.c: Use get_frame_base.
12352 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12353 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12354 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12355 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12356 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12357 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12358 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12359 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12360
2d75187b
AC
123612003-01-07 Andrew Cagney <cagney@redhat.com>
12362
12363 * frame.c (deprecated_get_frame_context): New function.
12364 (deprecated_set_frame_context): New function.
12365 * frame.h (deprecated_get_frame_context): Declare.
12366 (deprecated_set_frame_context): Declare.
12367 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12368 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12369
483d36b2
AC
123702003-01-07 Andrew Cagney <cagney@redhat.com>
12371
12372 * frame.c (deprecated_set_frame_next_hack): New function.
12373 (deprecated_set_frame_prev_hack): New function.
12374 * frame.h (deprecated_set_frame_next_hack): Declare.
12375 (deprecated_set_frame_prev_hack): Declare.
12376 * mcore-tdep.c (analyze_dummy_frame): Use
12377 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12378 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12379
14e91ac5
DC
123802003-01-07 David Carlton <carlton@math.stanford.edu>
12381
12382 * linespec.c (decode_line_1): Move code into decode_dollar.
12383 (decode_dollar): New function.
12384
b0c6b05c
AC
123852003-01-07 Andrew Cagney <cagney@redhat.com>
12386
12387 * arm-tdep.c (arm_init_extra_frame_info): Use
12388 deprecated_update_frame_base_hack.
12389 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12390 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12391 (fix_frame_pointer): Ditto.
12392 (mn10300_analyze_prologue): Ditto.
12393
a00a19e9
AC
123942003-01-07 Andrew Cagney <cagney@redhat.com>
12395
12396 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12397 extra_info using frame_extra_info_zalloc.
12398 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12399 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12400 (sh64_init_extra_frame_info): Ditto.
12401 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12402 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12403 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12404 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12405 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12406 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12407 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12408 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12409 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12410 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12411 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12412 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12413
12414 * mn10300-tdep.c (analyze_dummy_frame): Use
12415 deprecated_set_frame_extra_info_hack.
12416 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12417
1fb4c65b
JB
124182003-01-07 J. Brobecker <brobecker@gnat.com>
12419
12420 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12421 class is not scText. These do not define "real" procedures.
12422 (parse_partial_symbols): Likewise.
12423
9fe7d6bf
MS
124242003-01-06 Michael Snyder <msnyder@redhat.com>
12425
12426 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12427
f6c609c4
AC
124282003-01-06 Andrew Cagney <ac131313@redhat.com>
12429
12430 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12431 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12432 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12433 deprecated_frame_xmalloc_with_cleanup.
12434 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12435 deprecated_frame_xmalloc.
12436 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12437 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12438
d995ff4b
AC
124392003-01-06 Andrew Cagney <cagney@redhat.com>
12440
84dc46cb
AC
12441 * x86-64-linux-tdep.c: Include "osabi.h".
12442 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12443
d995ff4b
AC
12444 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12445
66140c26
AC
124462003-01-06 Andrew Cagney <cagney@redhat.com>
12447
12448 * MAINTAINERS (Target Instruction Set Architectures): Update
12449 arm-elf. Can be built with -Werror, has been multiarched.
12450
12451 * value.h (unpack_long): Make buffer parameter constant.
12452 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12453 * scm-lang.h (scm_parse): Ditto.
12454 * defs.h (extract_typed_address, extract_address): Ditto.
12455 (extract_long_unsigned_integer): Ditto.
12456 * inferior.h (unsigned_pointer_to_address): Ditto.
12457 (signed_pointer_to_address): Ditto.
12458 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12459 * gdbarch.h, gdbarch.c: Regenerate.
12460 * findvar.c (extract_long_unsigned_integer): Update.
12461 (extract_address): Update.
12462 (extract_typed_address): Update.
12463 (unsigned_pointer_to_address): Update.
12464 * values.c (unpack_long): Update.
12465 (unpack_double): Update.
12466 (unpack_pointer): Update.
12467 (unpack_field_as_long): Update.
12468 * d10v-tdep.c (d10v_pointer_to_address): Update.
12469 * avr-tdep.c (avr_pointer_to_address): Update.
12470 * scm-lang.c (scm_unpack): Update.
12471 * findvar.c (signed_pointer_to_address): Update.
12472
b089b3da
ML
124732003-01-06 Michal Ludvig <mludvig@suse.cz>
12474
8ffd9b1b 12475 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
12476 since it is in i386-tdep.c.
12477
aff87235
JB
124782003-01-06 J. Brobecker <brobecker@gnat.com>
12479
12480 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12481 failure introduced in the previous change.
12482
34f5e845
MC
124832003-01-05 Michael Chastain <mec@shout.net>
12484
12485 * README: Remove references to deleted remote-*.c files:
12486 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12487 remote-nrom.c, remote-os9k.c, remote-udi.c.
12488
28bcfd30
MK
124892003-01-05 Mark Kettenis <kettenis@gnu.org>
12490
12491 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12492 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12493 i386_get_longjmp_target.
12494
15a5b3ee
AC
124952003-01-05 Andrew Cagney <ac131313@redhat.com>
12496
12497 * arm-tdep.c (prologue_cache): Change to a pointer.
12498 (_initialize_arm_tdep): Allocate prologue_cache.
12499 (check_prologue_cache): Update.
12500 (save_prologue_cache): Update.
12501 (arm_gdbarch_init): Update.
12502
c263362b
DJ
125032003-01-04 Daniel Jacobowitz <drow@mvista.com>
12504
12505 * stabsread.c (update_method_name_from_physname): Call complaint()
12506 instead of error.
12507
51603483
DJ
125082003-01-04 Daniel Jacobowitz <drow@mvista.com>
12509
12510 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12511 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12512 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12513
12514 * blockframe.c: Include "gdbcmd.h" and "command.h".
12515 (backtrace_below_main): New variable.
12516 (file_frame_chain_valid, func_frame_chain_valid)
12517 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12518 (generic_func_frame_chain_valid): Remove functions.
12519 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12520 (_initialize_blockframe): New function.
12521 * Makefile.in (blockframe.o): Update dependencies.
12522 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12523 comment. Call frame_chain_valid ().
12524 * frame.h: Remove old prototypes. Add prototype for
12525 frame_chain_valid and update comments to match.
12526 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12527 Remove old comment.
12528 * gdbarch.h: Regenerated.
12529 * gdbarch.c: Regenerated.
12530
12531 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12532 set_gdbarch_frame_chain_valid.
12533 * avr-tdep.c (avr_gdbarch_init): Likewise.
12534 * cris-tdep.c (cris_gdbarch_init): Likewise.
12535 * frv-tdep.c (frv_gdbarch_init): Likewise.
12536 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12537 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12538 (i386_nw_init_abi): Likewise.
12539 (i386_gdbarch_init): Likewise.
12540 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12541 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12542 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12543 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12544 * mips-tdep.c (mips_gdbarch_init): Likewise.
12545 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12546 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12547 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12548 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12549 * s390-tdep.c (s390_gdbarch_init): Likewise.
12550 * sh-tdep.c (sh_gdbarch_init): Likewise.
12551 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12552 * v850-tdep.c (v850_gdbarch_init): Likewise.
12553 * vax-tdep.c (vax_gdbarch_init): Likewise.
12554 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12555
12556 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12557 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12558 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12559 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12560 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12561 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12562 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12563 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12564
b00a8037
DJ
125652002-01-04 Daniel Jacobowitz <drow@mvista.com>
12566
12567 * Makefile.in (acconfig_h): Remove incorrect macro.
12568 (config_h): Define.
12569 (osabi.o): Update dependencies.
12570 * configure.tgt: Set gdb_osabi based on target triplet.
12571 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12572 * configure: Regenerated.
12573 * config.in: Regenerated.
12574 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12575 (GDB_OSABI_DEFAULT): Define if not already defined.
12576 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12577 (set_osabi_string): New variables.
12578 (gdbarch_register_osabi): Add new OS ABI to
12579 gdb_osabi_available_names.
12580 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12581 (set_osabi, show_osabi): New functions.
12582 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12583
4be87837
DJ
125842003-01-04 Daniel Jacobowitz <drow@mvista.com>
12585
12586 * arch-utils.c (gdbarch_info_init): Set osabi to
12587 GDB_OSABI_UNINITIALIZED.
12588 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12589 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12590 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12591 * gdbarch.c: Regenerated.
12592 * gdbarch.h: Regenerated.
12593 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12594 there's no BFD.
12595 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12596 * osabi.h (enum gdb_osabi): Move to defs.h.
12597 (gdbarch_init_osabi): Update prototype.
12598 * defs.h (enum gdb_osabi): Moved here.
12599 * Makefile.in: Update dependencies.
12600
12601 * alpha-tdep.h: Don't include "osabi.h".
12602 (struct gdbarch_tdep): Remove osabi member.
12603 * alpha-tdep.c: Include "osabi.h".
12604 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12605 iterate over arches. Update call to gdbarch_init_osabi.
12606 (alpha_dump_tdep): Don't dump osabi.
12607 * alpha-linux-tdep.c: Include "osabi.h".
12608 * alpha-osf1-tdep.c: Include "osabi.h".
12609 * alphafbsd-tdep.c: Include "osabi.h".
12610 * alphanbsd-tdep.c: Include "osabi.h".
12611
12612 * arm-tdep.h: Don't include "osabi.h".
12613 (struct gdbarch_tdep): Remove osabi member.
12614 * arm-tdep.c: Include "osabi.h".
12615 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12616 iterate over arches. Update call to gdbarch_init_osabi.
12617 (arm_dump_tdep): Don't dump osabi.
12618 * arm-linux-tdep.c: Include "osabi.h".
12619 * armnbsd-tdep.c: Include "osabi.h".
12620
12621 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12622 Update call to gdbarch_init_osabi.
12623
12624 * i386-tdep.h: Don't include "osabi.h".
12625 (struct gdbarch_tdep): Remove osabi member.
12626 * i386-tdep.c: Include "osabi.h".
12627 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12628 iterate over arches. Update call to gdbarch_init_osabi.
12629 (i386_dump_tdep): Don't dump osabi.
12630 * i386-linux-tdep.c: Include "osabi.h".
12631 * i386-sol2-tdep.c: Include "osabi.h".
12632 * i386bsd-tdep.c: Include "osabi.h".
12633 * i386gnu-tdep.c: Include "osabi.h".
12634 * i386ly-tdep.c: Include "osabi.h".
12635 * i386nbsd-tdep.c: Include "osabi.h".
12636 * i386obsd-tdep.c: Include "osabi.h".
12637
12638 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12639 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12640 check osabi when iterating over arches. Update call to
12641 gdbarch_init_osabi.
12642 (mips_dump_tdep): Don't dump osabi.
12643
12644 * ns32k-tdep.h: Don't include "osabi.h".
12645 (struct gdbarch_tdep): Remove.
12646 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12647 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12648 allocate tdep. Update call to gdbarch_init_osabi.
12649 (ns32k_dump_tdep): Remove.
12650 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12651 * ns32knbsd-tdep.c: Include "osabi.h".
12652
12653 * ppc-tdep.h: Don't include "osabi.h".
12654 (struct gdbarch_tdep): Remove osabi member.
12655 * rs6000-tdep.c: Include "osabi.h".
12656 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12657 osabi when iterating over arches. Update call to
12658 gdbarch_init_osabi.
12659 (rs6000_dump_tdep): Don't dump osabi.
12660 * ppc-linux-tdep.c: Include "osabi.h".
12661 * ppcnbsd-tdep.c: Include "osabi.h".
12662
12663 * sh-tdep.h: Don't include "osabi.h".
12664 (struct gdbarch_tdep): Remove osabi member.
12665 * sh-tdep.c: Include "osabi.h".
12666 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12667 iterate over arches. Update call to gdbarch_init_osabi.
12668 (sh_dump_tdep): Don't dump osabi.
12669 * shnbsd-tdep.c: Include "osabi.h".
12670
12671 * sparc-tdep.c: Include "osabi.h".
12672 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12673 iterate over arches. Update call to gdbarch_init_osabi.
12674 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12675 tdep structure.
12676
12677 * vax-tdep.h: Don't include "osabi.h".
12678 (struct gdbarch_tdep): Remove.
12679 * vax-tdep.c: Include "osabi.h".
12680 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12681 iterate over arches. Don't allocate tdep. Update call
12682 to gdbarch_init_osabi.
12683 (vax_dump_tdep): Remove.
12684 (_initialize_vax_tdep): Update call to gdbarch_register.
12685
a881cf8e
DJ
126862003-01-04 Daniel Jacobowitz <drow@mvista.com>
12687
12688 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12689 entirely.
12690 (breakpoint_re_set_one): Don't fetch the value for a disabled
12691 watchpoint.
12692
1e698235
DJ
126932003-01-04 Daniel Jacobowitz <drow@mvista.com>
12694
12695 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12696 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12697 (COERCE_FLOAT_TO_DOUBLE): Remove.
12698 * gdbarch.c: Regenerate.
12699 * gdbarch.h: Regenerate.
12700 * Makefile.in: Remove value_h from gdbarch_h.
12701 * valops.c (coerce_float_to_double): New variable.
12702 (default_coerce_float_to_double): Remove.
12703 (standard_coerce_float_to_double): Remove.
12704 (value_arg_coerce): Use coerce_float_to_double.
12705 (_initialize_valops): Add "set coerce-float-to-double".
12706 * value.h (default_coerce_float_to_double): Remove prototype.
12707 (standard_coerce_float_to_double): Remove prototype.
12708
12709 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12710 prototyped.
12711 * mdebugread.c (parse_symbol): Likewise.
12712 * stabsread.c (define_symbol): Mark all functions as prototyped.
12713
12714 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12715 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12716 set_gdbarch_coerce_float_to_double.
12717 * arm-tdep.c (arm_gdbarch_init): Likewise.
12718 * frv-tdep.c (frv_gdbarch_init): Likewise.
12719 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12720 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12721 * mips-tdep.c (mips_gdbarch_init): Likewise.
12722 (mips_coerce_float_to_double): Remove.
12723 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12724 (rs6000_coerce_float_to_double): Remove.
12725 * s390-tdep.c (s390_gdbarch_init): Likewise.
12726 * sh-tdep.c (sh_gdbarch_init): Likewise.
12727 (sh_coerce_float_to_double): Remove.
12728 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12729 (sparc_coerce_float_to_double): Remove.
12730 * v850-tdep.c (v850_gdbarch_init): Likewise.
12731 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12732 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12733 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12734 (hppa_coerce_float_to_double): Remove prototype.
12735 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12736
f436a26a
DJ
127372003-01-04 Daniel Jacobowitz <drow@mvista.com>
12738
12739 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12740
248f8055
DJ
127412003-01-04 Daniel Jacobowitz <drow@mvista.com>
12742
12743 Suggested by Stewart Brown <sb24@avaya.com>:
12744 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12745 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12746 (c_type_print_varspec_suffix): Likewise.
12747
72cfdc76
MK
127482003-01-04 Mark Kettenis <kettenis@gnu.org>
12749
bfd260bb
MK
12750 * configure.in: Don't set and AC_SUBST SUBDIRS.
12751 * configure: Regenerated.
12752
72cfdc76
MK
12753 * configure.in: Remove code dealing with shared libraries.
12754 * Makefile.in: Remove HLDFLAGS and HLDENV.
12755 * configure: Regenerated.
12756
c8b8a898
AC
127572003-01-04 Andrew Cagney <ac131313@redhat.com>
12758
12759 * frame.c (deprecated_frame_xmalloc): New function.
12760 (deprecated_set_frame_saved_regs_hack): New function.
12761 (deprecated_set_frame_extra_info_hack): New function.
12762 * frame.h (deprecated_frame_xmalloc): Declare.
12763 (deprecated_set_frame_saved_regs_hack): Declare.
12764 (deprecated_set_frame_extra_info_hack): Declare.
12765
14abd0fb
MK
127662003-01-04 Mark Kettenis <kettenis@gnu.org>
12767
8ee53726
MK
12768 * configure.in: Move code that provides the --enable-gdbtk option
12769 right after the code that handles the --enable-tui option, and
12770 polish it somewhat.
12771 * configure: Regenerated.
12772
14abd0fb
MK
12773 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12774 AC_CHECK_FUNCS and remove the old check for pread64.
12775 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12776 * acconfig.h (_GNU_SOURCE): Add.
12777 (HAVE_PREAD64): Remove.
12778 * configure, aclocal.m4, config.in: Regenerated.
12779
b2fb4676
AC
127802003-01-03 Andrew Cagney <ac131313@redhat.com>
12781
12782 * alpha-tdep.c: Use get_frame_saved_regs.
12783 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12784 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12785 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12786 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12787 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12788
8dcde887
MK
127892003-01-03 Mark Kettenis <kettenis@gnu.org>
12790
12791 * configure.in: Remove all use of the SUBDIRS variable; add
12792 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12793 code providing the --enable-multi-ice option, and move it right in
12794 front of the code that checks whether gdbserver is supported.
12795 Polish that too.
12796 * configure: Regenerated.
12797 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12798 @SUBDIRS@.
12799
8ccd593b
AC
128002003-01-03 Andrew Cagney <cagney@redhat.com>
12801
12802 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12803 * avr-tdep.c, cris-tdep.c: Ditto.
12804 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12805 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12806
91151a06
MK
128072003-01-03 Mark Kettenis <kettenis@gnu.org>
12808
12809 * configure.in: Remove --enable-netrom option.
12810 * configure: Regenerated.
12811
8fe84d01
MK
128122003-01-03 Mark Kettenis <kettenis@gnu.org>
12813
12814 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12815 declaration for `struct re_pattern_buffer' instead.
12816 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12817
f0394be6
JB
128182003-01-03 J. Brobecker <brobecker@gnat.com>
12819
12820 * mdebugread.c (parse_symbol): Count until the stEnd matching
12821 the structure name.
12822
27e9bf90
MK
128232003-01-02 Mark Kettenis <kettenis@gnu.org>
12824
93d331ba
MK
12825 * configure.in: Remove --with-cpu option.
12826 subscripts. Remove evil changequotes here.
12827 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12828 * config.in, configure: Regenerated.
8ffd9b1b 12829
27e9bf90
MK
12830 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12831 * configure.in: Cleanup section that sources GDB and BFD configure
12832 subscripts. Remove evil changequotes here.
12833 * config.in, configure: Regenerated.
12834
50abf9e5
AC
128352003-01-02 Andrew Cagney <ac131313@redhat.com>
12836
12837 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12838 frame accessor methods.
12839 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12840 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12841 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12842 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12843 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12844 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12845 * z8k-tdep.c: Ditto.
8ffd9b1b 12846
287c1a40
MK
128472003-01-02 Mark Kettenis <kettenis@gnu.org>
12848
f5dbc56d
MK
12849 * configure.in: Remove UI_OUT configuration code.
12850 * ada-lang.c: Update assuming UI_OUT is always true.
12851 * Makefile.in (UIOUT_CFLAGS): Remove.
12852 * configure: Regenerated.
12853 * TODO: Remove blurb about elimination of -DUI_OUT.
12854
627af7ea
MK
12855 * configure.in: Move code that provides the --enable-gdbcli,
12856 --enable-gdbmi options right before the code that handles the
12857 --enable-tui option. Polish a bit.
12858 * configure: Regenerated.
12859
06825bd1
MK
12860 * configure.in: Rewrite check for GNU regex and the
12861 --without-included regex option, and move it into the "Checks for
12862 library functions" section. This makes us use the system regex
12863 again by default on systems with version 2 of the GNU C library.
12864 This was apparently broken.
12865 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12866 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12867 * config.in, configure: Regenerated.
12868
287c1a40
MK
12869 * configure.in: Move code that provides the --enable-tui option
12870 before the "Checks for libraries" section. Polish the code
12871 somewhat and set need_curses to yes if we build the TUI. Rewrite
12872 code that looks for a library providing termcap functionality to
12873 match more closely what's done in the Readline library, and move
12874 it into to the "Checks for libraries" section.
12875 * configure: Regenerated.
12876 * Makefile.in (TERMCAP): Remove variable.
12877 * config/i386/go32.mh (TERMCAP): Remove variable.
12878
684e56bf
AC
128792003-01-02 Andrew Cagney <ac131313@redhat.com>
12880
12881 * MAINTAINERS: Mention gdb_mbuild.sh.
12882 * gdb_mbuild.sh: Rewrite.
12883
e1ea1d75
MK
128842003-01-02 Mark Kettenis <kettenis@gnu.org>
12885
12886 * configure.in: Fix typo in last change.
12887 * config.in, configure: Regenerated.
12888
1b831c93
AC
128892003-01-02 Andrew Cagney <ac131313@redhat.com>
12890
12891 * valarith.c (value_binop): Delete obsolete code and comments.
12892 * configure.host: Ditto.
12893 * buildsym.h (make_blockvector): Ditto.
12894 * buildsym.c (make_blockvector): Ditto.
12895 * defs.h (enum language): Ditto.
12896 (chill_demangle): Ditto.
12897 * elfread.c (elf_symtab_read): Ditto.
12898 * dwarfread.c (CHILL_PRODUCER): Ditto.
12899 (set_cu_language): Ditto.
12900 (handle_producer): Ditto.
12901 * expprint.c (print_subexp): Ditto.
12902 * gdbtypes.c (chill_varying_type): Ditto.
12903 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12904 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12905 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12906 (chill_varying_type): Ditto.
12907 * language.h (_LANG_chill): Ditto.
12908 * language.c (binop_result_type, integral_type): Ditto.
12909 (character_type, string_type, structured_type): Ditto.
12910 (lang_bool_type, binop_type_check): Ditto.
12911 * stabsread.h (os9k_stabs): Ditto.
12912 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12913 (define_symbol, read_type, read_struct_fields): Ditto.
12914 (read_array_type, read_enum_type, read_huge_number): Ditto.
12915 (read_range_type, start_stabs): Ditto.
12916 * symfile.c (init_filename_language_table): Ditto.
12917 (add_psymbol_with_dem_name_to_list): Ditto.
12918 * symtab.c (symbol_init_language_specific): Ditto.
12919 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12920 * symtab.h (struct general_symbol_info): Ditto.
12921 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12922 * typeprint.c (typedef_print): Ditto.
12923 * utils.c (fprintf_symbol_filtered): Ditto.
12924 * valops.c (value_cast, search_struct_field, value_slice): Delete
12925 obsolete code.
12926 (varying_to_slice): Delete function.
12927 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12928 (varying_to_slice): Delete declaration.
12929 * MAINTAINERS: Update.
12930
8bb2c122
MK
129312003-01-02 Mark Kettenis <kettenis@gnu.org>
12932
97bf5e38
MK
12933 * configure.in: Reorganize "Checks for library functions section"
12934 a bit. Remove check for `btowc' and `isascii' functions.
12935 * configure: Regenerated.
12936
5ee754fc
MK
12937 * acconfig.h (_MSE_INT_H): Remove.
12938 * configure.in: Create "Checks for header files" section, and move
12939 appropriate tests there. Don't check for objlist.h, wchar.h,
12940 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12941 misdetection fix. Also add "Checks for types", "Checks for
12942 compiler characteristics" and "Checks for library functions"
12943 sections.
12944 * config.in, configure: Regenerated.
12945
8bb2c122
MK
12946 * configure.in: Create "Checks for programs" section, and move
12947 appropriate tests there.
12948
9a156167
MK
129492003-01-01 Mark Kettenis <kettenis@gnu.org>
12950
12951 * configure.in: Create "Checks for libraries" section, and move
12952 appropriate tests there. Cleanup check for wctype in libw. Use
12953 AC_SEARCH_LIBS to see whether we need libsocket.
12954 * configure: Regenerated.
12955
a80e2bcb 12956For older changes see ChangeLog-2002
c906108c
SS
12957\f
12958Local Variables:
12959mode: change-log
12960left-margin: 8
12961fill-column: 74
12962version-control: never
12963End:
This page took 1.021429 seconds and 4 git commands to generate.