2003-10-10 Michael Snyder <msnyder@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
74276724
MS
12003-10-10 Michael Snyder <msnyder@redhat.com>
2
3 * d10v-tdep.c: Fix typo in comment.
4
e754ae69
AC
52003-10-10 Andrew Cagney <cagney@redhat.com>
6
7 * rs6000-tdep.c (e500_store_return_value): Delete function.
8 (e500_extract_return_value): Delete function.
9 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
10 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
11 "ppc_sysv_abi_restore_return_value" where applicable.
12 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
13 (ppc_sysv_abi_extract_return_value): Declare.
14 (ppc_sysv_abi_broken_store_return_value): Declare.
15 (ppc_sysv_abi_broken_extract_return_value): Declare.
16 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
17 * ppc-sysv-tdep.c (return_value_convention): Move definition to
18 start of file.
19 (do_ppc_sysv_return_value): New function.
20 (ppc_sysv_abi_extract_return_value): New function.
21 (ppc_sysv_abi_store_return_value): New function.
22 (ppc_sysv_abi_broken_extract_return_value): New function.
23 (ppc_sysv_abi_broken_store_return_value): New function.
24 (ppc_sysv_abi_use_struct_convention): Call
25 do_ppc_sysv_return_value.
26
8d4ce20a
JB
272003-10-10 J. Brobecker <brobecker@gnat.com>
28
29 * blockframe.c (inside_main_func): No longer use symbol_lookup()
30 to lookup the main function symbol.
31
afce3d2a
CV
322003-10-10 Corinna Vinschen <vinschen@redhat.com>
33
34 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
35 types correctly.
36 (sh_push_dummy_call_fpu): Fix argument passing rules.
37 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
38 float types.
39 (sh3e_sh4_store_return_value): Ditto.
40
7fe958be
EZ
412003-10-10 Elena Zannoni <ezannoni@redhat.com>
42
43 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
44 comment.
45
3f997a97
CV
462003-10-10 Corinna Vinschen <vinschen@redhat.com>
47
48 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
49 more readable code. Accomodate passing of bitfields.
50
8be9034a
AC
512003-10-10 Andrew Cagney <cagney@redhat.com>
52
53 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
54 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
55 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
56 * ppc-sysv-tdep.c: Include "gdb_assert.h".
57 (ppc64_sysv_abi_push_dummy_call): New function.
58 (ppc64_sysv_abi_broken_push_dummy_call): New function.
59 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
60 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
61
85a453d5
KI
622003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
63
64 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
65 * README: Ditto.
66 * d10v-tdep.c: Ditto.
67 * h8300-tdep.c: Ditto.
68 * remote-e7000.c: Ditto.
69 * remote-hms.c: Ditto.
70 * ser-e7kpc.c: Ditto.
71 * sh-stub.c: Ditto.
72 * sh-tdep.c: Ditto.
73 * sh-tdep.h: Ditto.
74 * sh3-rom.c: Ditto.
75 * sh64-tdep.c: Ditto.
76 * top.c: Ditto.
77 * wince.c: Ditto.
78 * config/d10v/d10v.mt: Ditto.
79 * config/sh/embed.mt: Ditto.
80 * config/sh/linux.mt: Ditto.
81 * config/sh/tm-linux.h: Ditto.
82 * config/sh/tm-sh.h: Ditto.
83 * config/sh/wince.mt: Ditto.
84
221c12ff
AC
852003-10-09 Andrew Cagney <cagney@redhat.com>
86
87 * ppc-tdep.h (struct type): Declare opaque.
88 * x86-64-tdep.h (struct regcache): Declare opaque.
89 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
90 coding style.
91
ef5200c1
AC
922003-10-09 Andrew Cagney <cagney@redhat.com>
93
94 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
95 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
96 (SOFTWARE_SINGLE_STEP_P): Ditto.
97 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
98 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
99 (SOFTWARE_SINGLE_STEP_P): Ditto.
100 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
101 software_single_step to rs6000_software_single_step.
102
9644bbdd
AC
1032003-10-09 Andrew Cagney <cagney@redhat.com>
104
105 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
106
db72fa6b
MS
1072003-10-09 Michael Snyder <msnyder@redhat.com>
108
f3efb16c
MS
109 * frame.h: Fix typo in comment.
110 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
111 * d10v-tdep.c: Random whitespace/comment tweaks.
112
9a5cef92
EZ
1132003-10-09 Elena Zannoni <ezannoni@redhat.com>
114
115 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 116 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92
EZ
117 on stack.
118
119 Based on input by Stephen Clarke (stephen.clarke@superh.com):
120 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
121 in detail.
122
0f317a0c
DJ
1232003-10-09 Daniel Jacobowitz <drow@mvista.com>
124
125 * remote-mips.c (mips_initialize): Remove unneeded call to
126 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
127
bbab2f46
DJ
1282003-10-09 Daniel Jacobowitz <drow@mvista.com>
129
130 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
131 a memory pointer.
132
550950b8
JJ
1332003-10-08 Jeff Johnston <jjohnstn@redhat.com>
134
135 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
136 for any lwp we resume.
137 (running_callback): Add lwps that have pending status events
138 against them to be considered running.
139
15c69bc7
KI
1402003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
141
142 * m32r-tdep.c : Include "dis-asm.h".
143 * Makefile.in (m32r-tdep.o): Update dependencies.
144
51065942
JB
1452003-10-06 J. Brobecker <brobecker@gnat.com>
146
147 * completer.h (get_gdb_completer_word_break_characters): Delete.
148 * completer.c: include language.h.
149 (gdb_completer_word_break_characters): Delete.
150 (get_gdb_completer_word_break_characters): Delete.
151 (location_completer): Use the word break characters of the current
152 language.
153 (complete_line): Likewise.
154 (line_completion_function): Likewise.
155 (skip_quoted_chars): Likewise.
156 * Makefile.in (completer.o): Add dependency on language.h.
157 * top.c (init_main): Set the readline word break characters
158 to GDB's default word break characters.
159
6084f43a
JB
1602003-10-06 J. Brobecker <brobecker@gnat.com>
161
162 * language.h (language_defn): new field, la_word_break_characters.
163 * language.c (unknown_language_defn): Set new field to
164 default_word_break_characters.
165 (auto_language_defn): Likewise.
166 (local_language_defn): Likewise.
167 * ada-lang.c (ada_language_defn): Likewise.
168 * c-lang.c (c_language_defn): Likewise.
169 (cplus_language_defn): Likewise.
170 (asm_language_defn): Likewise.
171 (minimal_language_defn): Likewise.
172 * f-lang.c (f_language_defn): Likewise.
173 * jv-lang.c (java_language_defn): Likewise.
174 * m2-lang.c (m2_language_defn): Likewise.
175 * objc-lang.c (objc_language_defn): Likewise.
176 * p-lang.c (pascal_language_defn): Likewise.
177 * scm-lang.c (scm_language_defn): Likewise.
178
944fcfab
AC
1792003-10-06 Andrew Cagney <cagney@redhat.com>
180
181 * ppc-sysv-tdep.c: Re-indent.
182
9f0a5303
JB
1832003-10-06 J. Brobecker <brobecker@gnat.com>
184
185 * language.h (default_word_break_characters): Add prototype.
186 * language.c (default_word_break_characters): New function.
187
7270b6ed
AS
1882003-10-06 Andreas Schwab <schwab@suse.de>
189
190 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
191 with %eax.
192
a5d61f66
AC
1932003-10-06 Andrew Cagney <cagney@redhat.com>
194
195 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
196 "h8500-tdep.c".
197 (z8k-tdep.o): Delete custom build rule.
198
28a86f5c
AC
1992003-10-06 Andrew Cagney <cagney@redhat.com>
200
1bfd8a83
AC
201 * Makefile.in: Update all dependencies.
202
17144ef8
AC
203 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
204 No longer list PA as as obsolete candidate. List m32r as
205 broken instead of obsolete.
206
a5679ae5
AC
207 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
208 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
209 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
210 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
211 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
212 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
213 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
214 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
215 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
216 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
217 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
218 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
219 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
220 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
221 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
222 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
223 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
224 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
225 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
226 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
227 * config/z8k/z8k.mt: Ditto.
228
4a8269c0
AC
229 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
230 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
231 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
232 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
233 sparclite were removed.
234 * configure.host, configure.tgt: Remove corresponding tuples.
235
41989fcd
AC
236 * breakpoint.c, breakpoint.h: Remove obsolete code.
237 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
238 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
239 * stabsread.h, xcoffread.c: Ditto.
240
28a86f5c
AC
241 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
242 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
243 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
244 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
245
4efdaa0d
DL
2462003-10-06 David Lecomber <dsl@sources.redhat.com>
247
248 * f-valprint.c: Reformatting
249
ae53de43
MK
2502003-10-06 Mark Kettenis <kettenis@gnu.org>
251
a8bb57e7
MK
252 * x86-64-tdep.c: Remove duplicate comment.
253
ae53de43
MK
254 * x86-64-tdep.c (x86_64_store_return_value): Don't use
255 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
256 names for return values. This fixes a bug since we looked at %rbx
257 instead of %rdx.
258
473f17b0
MK
2592003-10-05 Mark Kettenis <kettenis@gnu.org>
260
2c261fae
MK
261 * x86-64-tdep.c: Include "regset.h".
262
473f17b0
MK
263 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
264 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
265 sizeof_fpregset.
266 * i386-tdep.c: Include "regset.h".
267 (i386_supply_gregset): New function.
268 (i386_supply_fpregset): New function.
269 (i386_gdbarch_init): Initialze register set-related members of
270 TDEP.
271 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
272 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
273
afd48b75
AC
2742003-10-03 Andrew Cagney <cagney@redhat.com>
275
276 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
277 set extract_return_value, store_return_value and
278 use_struct_convention to ppc64_sysv_abi_extract_return_value,
279 ppc64_sysv_abi_store_return_value and
280 ppc64_sysv_abi_use_struct_convention.
281 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
282 (ppc64_sysv_abi_store_return_value): Declare.
283 (ppc64_sysv_abi_use_struct_convention): Declare.
284 * ppc-sysv-tdep.c (enum return_value_convention): Define.
285 (ppc64_sysv_abi_extract_return_value): New function.
286 (ppc64_sysv_abi_store_return_value): New function.
287 (ppc64_sysv_abi_use_struct_convention): New function.
288 (ppc64_sysv_abi_return_value): New function.
289
9b540880
AC
2902003-10-03 Andrew Cagney <cagney@redhat.com>
291
292 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
293 convert a descriptor to a function when it's in the ".opd"
294 section.
295
8748518b
CV
2962003-10-03 Corinna Vinschen <vinschen@redhat.com>
297
298 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
299 reg_size to keep GCC silent.
300
0fd85043
CV
3012003-10-03 Corinna Vinschen <vinschen@redhat.com>
302
303 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
304 base for DW_EH_PE_textrel encodings.
305 (read_encoded_value): Add a DW_EH_PE_textrel case.
306 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
307 section.
308
37b517aa
MK
3092003-10-03 Mark Kettenis <kettenis@gnu.org>
310
311 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
312
12c266ea
AC
3132003-10-02 Andrew Cagney <cagney@redhat.com>
314
315 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
316 REGISTER_RAW_SIZE.
317 * gdbarch.h, gdbarch.c: Re-generate.
318 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
319 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
320 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
321 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
322 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
323 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
324 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
325 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
326 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
327 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
328 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
329 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
330 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
331 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
332 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
333 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
334
78ba4af6
JB
3352003-10-02 Jim Blandy <jimb@redhat.com>
336
337 * dwarf2read.c (struct die_info): Doc fix.
338
617daa0e
CV
3392003-10-02 Corinna Vinschen <vinschen@redhat.com>
340
341 * sh-tdep.c: Running thru gdb_indent.sh.
342
e5e33cd9
CV
3432003-10-02 Corinna Vinschen <vinschen@redhat.com>
344
345 * sh-tdep.c (sh_justify_value_in_reg): New function.
346 (sh_stack_allocsize): Ditto.
347 (flt_argreg_array): New array used for floating point argument
348 passing.
349 (sh_init_flt_argreg): New function.
350 (sh_next_flt_argreg): Ditto.
351 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
352 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
353 Fix argument passing strategy.
354 (sh_push_dummy_call_nofpu): Ditto.
355
5fe830e4
AC
3562003-10-01 Andrew Cagney <cagney@redhat.com>
357
358 * value.h (register_value_being_returned): Declare. Replace
359 "value_being_returned".
360 * infcall.c (call_function_by_hand): Use
361 register_value_being_returned.
362 * infcmd.c (print_return_value): Call
363 "register_value_being_returned", handle struct return locally.
364 * values.c (register_value_being_returned): New function. Replace
365 "value_being_returned".
366
3672003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
368
369 * linux-proc.c (linux_do_registers): New function.
370 (linux_make_note_section): Use linux_do_registers in case of
371 single threaded inferior programs.
372
64f395bf
AC
3732003-10-01 Andrew Cagney <cagney@redhat.com>
374
375 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
376 use STRUCT_ADDR. When not using "struct return convention", pass
377 "0" to "value_being_returned". Add FIXMEs.
378 * infcmd.c (print_return_value): Pass an explicit 0/1 to
379 value_being_returned. Add comments.
380 * values.c (value_being_returned): Add fixme.
381 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
382 (hppa_value_returned_from_stack): Add FIXME.
383
639d11d3
DC
3842003-09-30 David Carlton <carlton@kealia.com>
385
386 * dwarf2read.c (struct die_info): Add 'parent' field; replace
387 'has_children' and 'next' by 'child' and 'sibling'.
388 (read_comp_unit): Rework algorithm, breaking body into
389 read_die_and_children and read_die_and_siblings.
390 (read_die_and_children, read_die_and_siblings): New.
391 (read_full_die): Add 'has_children' argument; set it instead of
392 the die's 'has_children' field. Minor formatting cleanup.
393 (free_die_list): Use die->child and die->sibling instead of
394 die->next.
395 (dump_die_list): Ditto.
396 (sibling_die): Use die->sibling.
397 (psymtab_to_symtab_1): Use die's 'child' field in place of its
398 'has_children' and 'next' fields.
399 (process_die, read_file_scope, read_func_scope)
400 (read_lexical_block_scope, read_structure_scope)
401 (read_enumeration, read_array_type, read_common_block)
402 (read_namespace, read_subroutine_type, dump_die): Ditto.
403
5bffac25
AC
4042003-09-30 Andrew Cagney <cagney@redhat.com>
405
406 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
407 to 224, not 220.
408
f30992d4
AC
4092003-09-30 Andrew Cagney <cagney@redhat.com>
410
411 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
412 REGISTER_VIRTUAL_SIZE.
413 * gdbarch.h, gdbarch.c: Regenerate.
414 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
415 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
416 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
417
2e092625
AC
4182003-09-29 Andrew Cagney <cagney@redhat.com>
419
420 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
421 DEPRECATED_REGISTER_VIRTUAL_TYPE.
422 * gdbarch.h, gdbarch.c: Regenerate.
423 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
424 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
425
426 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
427 * remote-vxmips.c (vx_read_register): Ditto.
428 * remote-vx68.c (vx_read_register): Ditto.
429 * gnu-nat.c (inf_validate_procs): Ditto.
430
7a5dd6ee
JB
4312003-09-29 J. Brobecker <brobecker@gnat.com>
432
433 * infcall.c (call_function_by_hand): Fix build failure
434 introduced in the previous change to this file.
435
1fe43d45
AC
4362003-09-29 Andrew Cagney <cagney@redhat.com>
437
438 * NEWS: Mention Objective-C.
439
e28a332c
JG
4402003-09-29 Jerome Guitton <guitton@act-europe.fr>
441
442 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
443 test if the register has been saved on the stack.
444 (arm_scan_prologue_cache): When analysing the instruction
445 "str lr, [sp, #-4]", save the address where lr has been stored.
446
9ff63c35
AC
4472003-09-28 Andrew Cagney <cagney@redhat.com>
448
7f5f525d
AC
449 * frame.c (frame_read_unsigned_register): Delete function.
450 * frame.h (frame_read_unsigned_register): Delete declaration.
451 * sparc-tdep.c (sparc_init_extra_frame_info): Use
452 get_frame_register_unsigned.
453 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
454 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
455 * d10v-tdep.c (d10v_print_registers_info): Ditto.
456
457 * frame.h (frame_read_register): Delete declaration.
458 * frame.c (frame_read_register): Delete function.
459 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
460 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
461 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
462 * mips-tdep.c (mips_register_to_value): Ditto.
463 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
464 * d10v-tdep.c (d10v_print_registers_info): Ditto.
465
466 * frame.c (frame_read_signed_register): Delete function.
467 (frame_read_unsigned_register): Update comments.
468 * frame.h (frame_read_signed_register): Delete declaration.
469 * h8300-tdep.c (h8300_print_register): Use
470 get_frame_register_signed.
471 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
472
9ff63c35
AC
473 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
474 Rename VALUE_RETURNED_FROM_STACK.
475 * infcmd.c (print_return_value): Update.
476 * infcall.c (call_function_by_hand): Update.
477
41d041d6
MK
4782003-09-28 Mark Kettenis <kettenis@gnu.org>
479
480 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
481 regcache argument and reverse the order of the other two
482 arguments. Remove local regcache variable. Determine
483 architecture from REGCACHE. Update comments.
484 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
485 reverse the order of the other two arguments. Remove local
486 regcache variable. Determine architecture from REGCACHE. Update
487 comments.
488 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
489 prototypes. Update comments.
490 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
491 comment.
492 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
493 Update.
494 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
495 * i386-interix-nat.c (supply_fpregset): Update.
496 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
497 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
498 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
499 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
500 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
501 Update.
502 * i386obsd-tdep.c (fetch_core_registers): Update.
503 * i386v4-nat.c (supply_fpregset): Update.
504 * x86-64-linux-nat.c (supply_fpregset): Update.
505 * x86-64-linux-tdep.c (fetch_core_registers): Update.
506
1cb97e17
MK
5072003-09-27 Mark Kettenis <kettenis@gnu.org>
508
5716833c
MK
509 * i386-tdep.h: Put opaque declarations in alphabetical
510 order. Remove spurious whitespace.
511 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
512 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
513 * i386-tdep.c (MM0_REGNUM): Remove define.
514 (i386_mmx_regnum_p): Add gdbarch argument.
515 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
516 Rewrite using new macro definitions for FPU/SSE registers.
517 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
518 definitions from i387-tdep.h.
519 (i386_register_name): Update.
520 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
521 new macro definitions for FPU/SSE registers.
522 (i386_extract_return_value): Determine whether floating-point
523 registers are present by examining REGCACHE's architecture.
524 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
525 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
526 FPU/SSE registers.
527 (i386_register_type): Update.
528 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
529 definitions for FPU registers. Use REGCACHE's architecture to
530 determine the appropriate register numbers.
531 (i386_pseudo_register_read, i386_pseudo_register_write,
532 i386_register_reggroup_p): Update.
533 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
534 TDEP->mm0_regnum.
535 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
536 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
537 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
538 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
539 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
540 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
541 *' to `void *'.
542 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
543 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
544 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
545 definitions for FPU/SSE registers.
546 (FXSAVE_MXCSR_ADDR): New define.
547 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
548 TDEP->mm0_regnum.
549 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
550 (I387_ST0_REGNUM): Define.
551
41d35cb0
MK
552 * regcache.h (get_regcache_arch): New prototype.
553 * regcache.c (get_regcache_arch): New function.
554
54e74f72
MK
555 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
556 whitespace.
557
1cb97e17
MK
558 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
559 Initialize using ARRAY_SIZE.
560
0968aa8c
AC
5612003-09-27 Andrew Cagney <cagney@redhat.com>
562
563 * arch-utils.c (deprecated_init_frame_pc_default): Rename
564 "init_frame_pc_default".
565 * arch-utils.h (deprecated_init_frame_pc_default): Update.
566 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
567 * vax-tdep.c (vax_gdbarch_init): Update.
568 * v850-tdep.c (v850_gdbarch_init): Update.
569 * sh64-tdep.c (sh64_gdbarch_init): Update.
570 * s390-tdep.c (s390_gdbarch_init): Update.
571 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
572 * mcore-tdep.c (mcore_gdbarch_init): Update.
573 * h8300-tdep.c (h8300_gdbarch_init): Update.
574 * cris-tdep.c (cris_gdbarch_init): Update.
575 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
576
54c84734
MK
5772003-09-26 Mark Kettenis <kettenis@gnu.org>
578
579 * regset.h: New file.
580 * Makefile.in (regset_h): Add.
581
1b1d3794
AC
5822003-09-25 Andrew Cagney <cagney@redhat.com>
583
584 * frame.h (deprecated_frame_saved_regs): Rename
585 get_frame_saved_regs.
586 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
587 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
588 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
589 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
590 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
591
e6beb428
AC
5922003-09-25 Andrew Cagney <cagney@redhat.com>
593
594 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
595 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
596 and Java.
597 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
598 arm*-*-* do not use the new frame code.
599
710122da
DC
6002003-09-25 David Carlton <carlton@kealia.com>
601
602 * c-exp.y: Remove 'register' declarations.
603 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
604
79c2c32d
DC
6052003-09-25 David Carlton <carlton@kealia.com>
606
607 * c-exp.y: Include cp-support.h. Add qualified_type.
608 (yylex): Delete nested type hack; add comments.
609 * cp-namespace.c (cp_lookup_nested_type): New function.
610 * cp-support.h: Declare cp_lookup_nested_type.
611 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
612 instead of value_struct_elt_for_reference.
613 * valops.c: Include cp-support.h.
614 (value_aggregate_elt): New function.
615 (value_namespace_elt): Ditto.
616 (value_struct_elt_for_reference): Make static.
617 * value.h: Delete declaration of value_struct_elt_for_reference;
618 add declaration for value_aggregate_elt.
619 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
620 (valops.o): Ditto.
621
898c62f5
DJ
6222003-09-25 Daniel Jacobowitz <drow@mvista.com>
623
624 * stack.c: Include "reggroups.h".
625 (frame_info): Only display registers in all_reggroup.
626 * Makefile.in (stack.o): Update dependencies.
627
28cd8767
JG
6282003-09-25 Jerome Guitton <guitton@act-europe.fr>
629
630 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
631 "add ip, sp #n" in the prologue.
632 (arm_scan_prologue): Ditto.
633
a4ab2b5d
JG
6342003-09-25 Jerome Guitton <guitton@act-europe.fr>
635
636 * MAINTAINERS (write after approval): Add myself.
637
3f244638
AS
6382003-09-25 Andreas Schwab <schwab@suse.de>
639
640 * m68k-tdep.c: Include "dwarf2-frame.h".
641 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
642 * Makefile.in (m68k-tdep.o): Update dependencies.
643
1c0159e0
CV
6442003-09-25 Corinna Vinschen <vinschen@redhat.com>
645
646 * sh-tdep.c (struct frame_extra_info): Remove.
647 (struct sh_frame_cache): New structure.
648 (GET_SOURCE_REG): New macro extracting source register of an opcode.
649 (GET_TARGET_REG): Ditto but target register.
650 (GET_PUSHED_REG): Remove.
651 (IS_MOV_ARG_TO_REG): New macro.
652 (IS_MOV_ARG_TO_IND_R14): New macro.
653 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
654 (IS_MOVW_PCREL_TO_REG): New macro.
655 (IS_MOVL_PCREL_TO_REG): New macro.
656 (IS_SUB_REG_FROM_SP): New macro.
657 (IS_ARG_MOV): Remove.
658 (IS_MOV_TO_R14): Remove.
659 (IS_RESTORE_FP): New macro.
660 (IS_RTS): New macro.
661 (IS_LDS): New macro.
662 (IS_MOV_FP_SP): New macro.
663 (IS_ADD_REG_TO_FP): New macro.
664 (IS_ADD_IMM_FP): New macro.
665 (sh_skip_prologue_hard_way): Remove.
666 (sh_saved_pc_after_call): Remove.
667 (sh_frame_chain): Remove.
668 (sh_find_callers_reg): Remove.
669 (sh_nofp_frame_init_saved_regs): Remove.
670 (sh_fp_frame_init_saved_regs): Remove.
671 (sh_init_extra_frame_info): Remove.
672 (sh_analyze_prologue): New function.
673 (sh_skip_prologue): Remove deprecated code. Rely on new function
674 sh_analyze_prologue when after_prologue fails.
675 (sh_frame_saved_pc): Remove.
676 (sh_alloc_frame_cache): New function.
677 (sh_frame_cache): Ditto.
678 (sh_frame_prev_register): Ditto.
679 (sh_frame_this_id): Ditto.
680 (sh_frame_unwind): New structure defining the heuristic frame
681 sniffer interface.
682 (sh_frame_sniffer): New function.
683 (sh_unwind_sp): Ditto.
684 (sh_unwind_pc): Ditto.
685 (sh_unwind_dummy_id): Ditto.
686 (sh_frame_base_address): Ditto.
687 (sh_frame_base): New structure defining new frame base code.
688 (sh_in_function_epilogue_p): New function.
689 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
690 code and to call all new code instead. Initialize dwarf2 and
691 heuristic frame sniffer.
692
5f9769d1
PH
6932003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
694
695 * parser-defs.h (struct exp_descriptor): New definition, containing
696 language-specific info for printing, prefixifying, dumping, and
697 evaluating expressions.
698 (exp_descriptor_standard): Declare new variable.
699 (print_subexp): Make global and declare here (from expprint.c).
700 (dump_subexp): Ditto.
701 (dump_subexp_body_standard): Declare.
702 (operator_length_standard): Declare.
703 (op_name_standard): Declare.
704 (print_subexp): Declare.
705 (print_subexp_standard): Declare.
706
707 * language.h (struct language_defn): Add la_exp_desc field to hold
708 pointer to table for language-specific operators.
709 Remove evaluate_exp field, which is now in struct exp_descriptor.
710
711 * parse.c (operator_length): Move most code to new
712 operator_length_standard function. Use language-specific information.
713 (operator_length_standard): New function taking most code from
714 operator_length.
715 (exp_descriptor_standard): New constant.
716
717 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
718 and OP_EXTENDED_LAST.
719
720 * expprint.c (print_subexp): Use language-specific print_subexp.
721 Make global; remove static declaration.
722 Move most code to print_subexp_standard.
723 (print_subexp_standard): New function, containing code formerly in
724 print_subexp.
725 (op_name): Add expression to argument signature.
726 Use langauge-specific op_name.
727 Move most code to op_name_standard.
728 (op_name_standard): New function, containing code formerly in op_name.
729 (dump_subexp): Use new version of op_name function.
730 Use language-specific dump_subexp_body, and move most existing code to
731 dump_subexp_body_standard.
732 (dump_raw_expression): Use new op_name interface.
733 (dump_subexp_body): Move most code to dump_subexp_body_standard.
734 (dump_subexp_body_standard): New function, containing code formerly
735 in dump_subexp_body.
736
737 * language.c (unknown_language): Add default la_exp_desc field and
738 remove evaluate_exp field.
739 (auto_language): Ditto.
740 (local_language): Ditto.
741 * f-lang.c (f_language_defn): Ditto.
742 * c-lang.c (c_language_defn): Ditto.
743 (cplus_language_defn): Ditto.
744 (asm_language_defn): Ditto.
745 (minimal_language_defn): Ditto.
746 * p-lang.c (pascal_language_defn): Ditto.
747 * m2-lang.c (m2_language_defn): Ditto.
748 * objc-lang.c (objc_language_defn): Ditto.
749
750 * jv-lang.c (exp_descriptor_java): New variable, containing
751 Java-specific expression evaluator.
752 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
753 field.
754 * scm-lang.c (exp_descriptor_scm): New variable, containing
755 Scheme-specific expression evaluator.
756 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
757 field.
758 * objc-lang.c (print_object_command): Take evaluate_exp from the
759 la_exp_desc field.
760
761 * Makefile.in (eval.o): Add dependency on parser-defs.h.
762
763 * eval.c: Include parser-defs.h for the full declaration of
764 la_exp_desc's type.
765 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
766
24daaebc
PH
7672003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
768
769 * parser-defs.h (operator_length): Declare.
770
771 * parse.c (length_of_subexp): Use operator_length to get operator
772 lengths and arities for operators.
773 Move most code to new operator_length function.
774 (operator_length): New function absorbing most code from
775 length_of_subexp.
776 (prefixify_subexp): Remove large case and use operator_length instead.
777 (parse_exp_1): Use renamings:
778 dump_prefix_expression => dump_raw_expression and
779 dump_postfix_expression => dump_prefix_expression.
780
781 * expression.h (dump_prefix_expression): Rename to ...
782 (dump_raw_expression): New name.
783 (dump_postfix_expression): Rename to ...
784 (dump_prefix_expression): New name.
785
786 * expprint.c (dump_subexp): Make global. Add comment.
787 Move most existing code to dump_subexp_body.
788 (dump_subexp_body): New function.
789 (dump_prefix_expression): Rename to dump_raw_expression.
790 Remove attempt to print the expression via print_expression: it can't
791 work before the expression is prefixified.
792 (dump_raw_expression): Renamed from dump_prefix_expression.
793 (dump_postfix_expression): Rename to dump_prefix_expression, since
794 that's what it does.
795 Remove 'note' parameter, since this routine must be used on
796 prefixified expression.
797 (dump_prefix_expression): Renamed from dump_postfix_expression.
798
8c2957c4
JB
7992003-09-22 Jim Blandy <jimb@redhat.com>
800
801 * dwarf2read.c (read_array_type): When building the type for an
802 array of unspecified length, make sure to choose the upper bound
803 so that the array's total length comes out to be zero --- that's
804 how we represent such arrays.
805
592e3010
MC
8062003-09-22 Michael Chastain <mec@shout.net>
807
808 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
809
365c70b1
JJ
8102003-09-22 Jeff Johnston <jjohnstn@redhat.com>
811
812 * top.c (quit_force): Fix indirect call to quit_target so
813 a struct qt_args pointer is passed.
814
5d6eb653
AC
8152003-09-22 Andrew Cagney <cagney@redhat.com>
816
817 * arch-utils.h (init_frame_pc_noop): Delete declaration.
818 * arch-utils.c (init_frame_pc_noop): Delete function.
819 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
820 "init_frame_pc".
821 * mips-tdep.c (mips_gdbarch_init): Ditto.
822 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
823 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
824 declaration.
825 (DEPRECATED_INIT_FRAME_PC): Delete macro.
826 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
827 declaration.
828 (DEPRECATED_INIT_FRAME_PC): Delete macro.
829
b222a67f
AG
8302003-09-22 Anthony Green <green@redhat.com>
831
832 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
833 declaration.
834
d5b5ac79
AC
8352003-09-20 Andrew Cagney <cagney@redhat.com>
836
deafb061
AC
837 * breakpoint.c: Eliminate ARGSUSED.
838 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
839 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
840 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
841 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
842 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
843 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
844 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
845 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
846 * wince.c, remote-vx.c: Ditto.
847
d5b5ac79
AC
848 * cli/cli-script.c: Remove "register" attributes.
849 * config/pa/tm-hppa.h: Ditto.
850 * cli/cli-decode.c: Ditto.
851 * cli/cli-cmds.c: Ditto.
852
c6316faa
AC
8532003-09-19 Andrew Cagney <cagney@redhat.com>
854
855 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
856 DEPRECATED_NPC_REGNUM.
857 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
858
f4f99b11
CF
8592003-09-19 Christopher Faylor <cgf@redhat.com>
860
861 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
862
1708f284
JB
8632003-09-19 Jim Blandy <jimb@redhat.com>
864
865 * macrotab.c (macro_include): Use the correct comparison to find
866 the appropriate place for this inclusion in the list.
867
b9fbf434
AC
8682003-09-19 Andrew Cagney <cagney@redhat.com>
869
870 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
871 (DEPRECATED_HPUX_TEXT_END): Define.
872 (deprecated_hpux_text_end): Declare.
873 (struct target_ops): Declare opaque.
874 * hppah-nat.c (text_end): Make static.
875 (deprecated_hpux_text_end): New function.
876 * exec.c (text_end): Delete global variable.
877 (NEED_TEXT_START_END): Do not define.
878 (exec_file_attach): Replace code computing "text_end" code with
879 call to DEPRECATED_HPUX_TEXT_END.
880
5b03f266
AC
8812003-09-19 Andrew Cagney <cagney@redhat.com>
882
883 * utils.c (align_up, align_down): New functions.
884 * defs.h (align_up, align_down): Declare.
885 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
886 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
887 and "align_down".
888 (round_up, round_down): Delete functions.
889 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
890 "align_down".
891 (ROUND_DOWN, ROUND_UP): Delete macros.
892 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
893 * h8300-tdep.c: Replace "round_up" and "round_down" with
894 "align_up" and "align_down".
895 (round_up, round_down): Delete macros.
896 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
897 "align_down".
898 (ROUND_UP, ROUND_DOWN): Delete macros.
899
51db5742
JB
9002003-09-18 J. Brobecker <brobecker@gnat.com>
901
902 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
903 hard-coded constant. Use the proper machine name instead.
904
77949794
AC
9052003-09-17 Andrew Cagney <cagney@redhat.com>
906
907 * sparc-tdep.c (legacy_register_name): Delete function.
908 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
909 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
910 * infcmd.c (gdb_register_name): Delete variable.
911 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
912 REGISTER_NAME and "tm.h".
913 * gdbarch.h, gdbarch.c: Regenerate.
914 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
915 REGISTER_NAMES in comments.
916 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
917 * m68klinux-nat.c (regmap): Ditto.
918
b55c33cc
JB
9192003-09-17 Jim Blandy <jimb@redhat.com>
920
921 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
922
957e27ac
AC
9232003-09-17 Andrew Cagney <cagney@redhat.com>
924
925 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
926 (ppcnbsd_init_abi): Set "use_struct_convention" to
927 "ppcnbsd_use_struct_convention".
928
192cb3d4
MK
9292003-09-17 Mark Kettenis <kettenis@gnu.org>
930
931 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
932 * gdbarch.h, gdbarch.c: Regenerate.
933 (stabs_argument_has_addr): New architecture method.
934 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
935 * arch-utils.c: Include "buildsym.h".
936 (default_stabs_argument_has_addr): New function.
937 * stabsread.c (define_symbol): Use stabs_argument_has_addr
938 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
939
efe59759
AC
9402003-09-17 Andrew Cagney <cagney@redhat.com>
941
942 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
943 * gdbarch.h, gdbarch.c: Regenerate.
944 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
945 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
946 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
947 * sparcnbsd-tdep.c: Update.
948
62700349
AC
9492003-09-17 Andrew Cagney <cagney@redhat.com>
950
951 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
952 * gdbarch.h, gdbarch.c: Regenerate.
953 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
954 * d10v-tdep.c, frame.c: Update.
955 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
956 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
957 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
958 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
959 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
960 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
961 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
962 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
963 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
964 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
965 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
966 * config/pa/nm-hppah.h: Update.
967
b9ff3018
AC
9682003-09-16 Andrew Cagney <cagney@redhat.com>
969
970 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
971 "use_struct_convention" to "ppc_linux_use_struct_convention".
972 (ppc_linux_use_struct_convention): New function.
973 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
974 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
975 "rs6000_use_struct_convention".
976 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
977 declaration.
978 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
979 Delete function.
980
aa1ee363
AC
9812003-09-16 Andrew Cagney <cagney@redhat.com>
982
983 * buildsym.c: Remove more occurances of "register".
984 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
985 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
986 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
987 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
988 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
989 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
990 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
991 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
992
f2ea0907
CV
9932003-09-16 Corinna Vinschen <vinschen@redhat.com>
994
995 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
996 numbers to enumeration values.
997 * sh-tdep.c: Accomodate above change.
998 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
999 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1000 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1001 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1002 (IS_FPUSH): Rename from IS_FMOV.
1003 (sh_extract_struct_value_address): Remove useless comment.
1004 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1005 instead of own local values.
1006 (sh_dump_tdep): Remove.
1007 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1008 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1009
1c704f11
AC
10102003-09-15 Andrew Cagney <cagney@redhat.com>
1011
1012 * doublest.c (convert_floatformat_to_doublest): No longer need to
1013 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1014
ac79b88b
DJ
10152003-09-15 Daniel Jacobowitz <drow@mvista.com>
1016
1017 * values.c (unpack_double): Call floatformat_is_valid.
1018
1c671366
MK
10192003-09-15 Mark Kettenis <kettenis@gnu.org>
1020
de5227fb
MK
1021 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1022 ps_strings into a long.
1023
1c671366
MK
1024 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1025 _initialize_am64fbsd_nat.
1026
a604369a
KB
10272003-09-15 Kevin Buettner <kevinb@redhat.com>
1028
1029 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1030 associated with DW_AT_ranges attribute is out of bounds.
1031
b3cacbee
DL
10322003-09-15 David Lecomber <dsl@sources.redhat.com>
1033
1034 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1035
d0f37bb2
MC
10362003-09-14 Michael Chastain <mec@shout.net>
1037
1038 * config/m68k/nm-apollo68v.h: Delete.
1039 * config/m68k/xm-apollo68v.h: Delete.
1040
69517000
AC
10412003-09-14 Andrew Cagney <cagney@redhat.com>
1042
1043 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1044 * dcache.c: Update copyrights and descriptions.
1045 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1046
ef8b349d
AC
10472003-09-14 Andrew Cagney <cagney@redhat.com>
1048
1049 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1050 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1051
52f0bd74
AC
10522003-09-14 Andrew Cagney <cagney@redhat.com>
1053
1054 * alpha-nat.c: Remove some occurances of "register".
1055 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1056 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1057 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1058 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1059 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1060 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1061 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1062 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1063 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1064 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1065 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1066 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1067 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1068 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1069 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1070 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1071 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1072 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1073 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1074 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1075 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1076 * values.c, vax-tdep.c, xcoffread.c: Ditto.
1077
4a4b3fed
AC
10782003-09-13 Andrew Cagney <cagney@redhat.com>
1079
1080 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1081 * ppc-tdep.h (struct regcache): Declare opaque.
1082 * objfiles.h (struct objfile_data): Declare opaque.
1083 * cp-support.h (struct objfile): Declare opaque.
1084 * linux-nat.h (target_waitstatus): Declare opaque.
1085
2110b94f
MK
10862003-09-14 Mark Kettenis <kettenis@gnu.org>
1087
1c671366
MK
1088 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1089 (stabs_argument_has_addr): New architecture method.
1090 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1091 * arch-utils.c: Include "buildsym.h".
1092 (default_stabs_argument_has_addr): New function.
1093 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1094 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1095
2110b94f
MK
1096 * cris-tdep.c (cris_gdbarch_init): Set
1097 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1098 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1099 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1100 * mips-tdep.c (mips_gdbarch_init): Likewise.
1101 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1102 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1103
48436ce6
AC
11042003-09-13 Andrew Cagney <cagney@redhat.com>
1105
1106 * values.c (using_struct_return): Delete "function" and "funcaddr"
1107 parameters.
1108 * value.h (using_struct_return): Update declaration.
1109 * infcmd.c (finish_command_continuation): Update.
1110 (finish_command): Update.
1111 * infcall.c (call_function_by_hand): Update.
1112 * eval.c (evaluate_subexp_standard): Update.
1113
403d9909
CF
11142003-09-13 Christopher Faylor <cgf@redhat.com>
1115
1116 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1117 SSE registers since gdb will not operate correctly without this.
1118 Restore include file ordering munged in previous change.
1119 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1120
ebf7d56b
MK
11212003-09-13 Mark Kettenis <kettenis@gnu.org>
1122
8e823e25
MK
1123 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1124 REG_STRUCT_HAS_ADDR.
1125 * gdbarch.c, gdbarch.h: Updated.
1126 * infcall.c (call_function_by_hand): Update.
1127 * stabsread.c (define_symbol): Updated.
1128
ebf7d56b
MK
1129 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1130
d3f13f72
CF
11312003-09-12 Christopher Faylor <cgf@redhat.com>
1132
1133 * win32-nat.c: Reorganize so that defines used by target headers are
1134 actually defined by the system headers.
1135 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1136 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1137
14f75137
JB
11382003-09-12 Jim Blandy <jimb@redhat.com>
1139
d646061f
JB
1140 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1141 the file has no .data, .bss, or .rodata sections. Instead wait
1142 until we see a variable alleged to live in one of those sections.
1143
2a13f9bc
JB
1144 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1145 .bss section, presume that any variables we find live in the
1146 .rodata section.
1147
4f49b26b
JB
1148 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1149 offsets for global and static variables.
1150
14f75137
JB
1151 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1152 symbol types are, by definition, in the .data section, so it is
1153 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1154 If there is no .data section, there should be no N_DATA or N_DATA
1155 | N_EXT symbols.
1156
212c460c
MK
11572003-09-12 Mark Kettenis <kettenis@gnu.org>
1158
1159 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1160 (amd64fbsd_sigcontext_addr): Rewrite.
1161 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1162 with correct values.
1163 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1164 (amd64fbsd_init_abi): Fix typo.
1165
68856ea3
AC
11662003-09-12 Andrew Cagney <cagney@redhat.com>
1167
1168 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1169 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1170
627b3ba2
AC
11712003-09-12 Andrew Cagney <cagney@redhat.com>
1172
1173 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1174 "entry_file_highpc". Update comments.
1175 * defs.h (deprecated_inside_entry_file): Rename
1176 "inside_entry_file".
1177 * blockframe.c (deprecated_inside_entry_file): Rename
1178 "inside_entry_file".
1179 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1180 * vax-tdep.c (vax_frame_chain): Update.
1181 * sh64-tdep.c (sh64_frame_chain): Update.
1182 * sh-tdep.c (sh_frame_chain): Update.
1183 * rs6000-tdep.c (rs6000_frame_chain): Update.
1184 * ns32k-tdep.c (ns32k_frame_chain): Update.
1185 * mips-tdep.c (mips_frame_chain): Update.
1186 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1187 * m32r-tdep.c (m32r_frame_this_id): Update.
1188 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1189 * frv-tdep.c (frv_frame_this_id): Update.
1190 * d10v-tdep.c (d10v_frame_this_id): Update.
1191 * cris-tdep.c (cris_frame_chain): Update.
1192 * blockframe.c (legacy_frame_chain_valid): Update.
1193 * avr-tdep.c (avr_frame_this_id): Update.
1194 * arm-tdep.c (arm_prologue_this_id): Update.
1195 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1196 * objfiles.c (objfile_relocate): Update.
1197 * mipsread.c (mipscoff_symfile_read): Update.
1198 (mipscoff_symfile_read): Update.
1199 * mdebugread.c (parse_partial_symbols): Update.
1200 * dwarfread.c (read_file_scope): Update.
1201 * dwarf2read.c (read_file_scope): Update.
1202 * dbxread.c (read_dbx_symtab): Update.
1203 (read_dbx_symtab): Update.
1204 * coffread.c (complete_symtab): Update.
1205
b0abbc58
JJ
12062003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1207
1208 * top.c (quit_target): New static helper function.
1209 (quit_force): Moved code to quit_target(). Call quit_target()
1210 via catch_errors() to catch errors during quit.
1211
a1632d59
DC
12122003-09-11 David Carlton <carlton@kealia.com>
1213
1214 * buildsym.c (finish_block): Use allocate_block to allocate the
1215 block.
1216 * mdebugread.c (new_block): Add FIXME.
1217
5c4e30ca
DC
12182003-09-11 David Carlton <carlton@kealia.com>
1219
1220 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1221 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1222 (recursive_dump_type): Ditto.
1223 * printcmd.c (print_formatted): Ditto.
1224 * typeprint.c (print_type_scalar): Ditto.
1225 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1226 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1227 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1228 maint_cplus_cmd_list.
1229 * cp-support.c: Make maint_cplus_cmd_list extern.
1230 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1231 command.h.
1232 (lookup_symbol_file): Look in possible namespace blocks when
1233 appropriate.
1234 (initialize_namespace_symtab): New.
1235 (get_possible_namespace_block, free_namespace_block)
1236 (check_possible_namespace_symbols)
1237 (check_possible_namespace_symbols_loop)
1238 (check_one_possible_namespace_symbol)
1239 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1240 (_initialize_cp_namespace): Ditto.
1241 * block.h: Declare allocate_block.
1242 * block.c (allocate_block): New.
1243 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1244 allocate_block.
1245 * symfile.h: Update declaration of add_psymbol_to_list.
1246 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1247 question.
1248 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1249 scan_partial_symbols_call.
1250 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1251 helper functions.
1252 (add_partial_symbol): If necessary, scan mangled names for names
1253 of namespaces.
1254 (add_partial_namespace): Add NAMESPACE argument; generate partial
1255 symbols associated to namespaces.
1256 (add_partial_enumeration): Add NAMESPACE argument.
1257 (new_symbol): Allow namespace syms.
1258 (read_namespace): Generate namespace syms.
1259 * objfiles.h: Add opaque declaration of struct symtab.
1260 (struct objfile): Add cp_namespace_symtab member.
1261 * objfiles.c (allocate_objfile): Set
1262 objfile->cp_namespace_symtab.
1263 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1264 dictionary_h, command_h.
1265
33a7c2fc
AC
12662003-09-11 Andrew Cagney <cagney@redhat.com>
1267
1268 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1269 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1270 near the function's end.
1271 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1272 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1273 regcache_raw_write_signed to set SP_REGNUM.
1274
63cd24fe
EZ
12752003-09-11 Elena Zannoni <ezannoni@redhat.com>
1276
1277 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1278 orig_addrs is set up properly.
1279
f27dd7fd
AC
12802003-09-11 Andrew Cagney <cagney@redhat.com>
1281
1282 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1283 * gdbarch.h, gdbarch.c: Re-generate.
1284 * infcall.c (call_function_by_hand): Update.
1285 * hppa-tdep.c (hppa_push_arguments): Update.
1286 * ada-lang.c (place_on_stack): Update.
1287 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1288 * sparc-tdep.c (sparc_gdbarch_init): Update.
1289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1290 * hppa-tdep.c (hppa_gdbarch_init): Update.
1291 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1292 stack_align.
1293
f630a401
DJ
12942003-09-11 Daniel Jacobowitz <drow@mvista.com>
1295
1296 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1297 register do need a frame.
1298
0ddabb4c
AC
12992003-09-11 Andrew Cagney <cagney@redhat.com>
1300
1301 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1302 buildable since GDB 5.0.
1303 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1304 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1305 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1306 * irix4-nat.c: Delete file.
1307 * config/mips/irix4.mh: Delete file.
1308 * config/mips/irix3.mh: Delete file.
1309 * config/mips/irix3.mt: Delete file.
1310 * config/mips/tm-irix3.h: Delete file.
1311 * config/mips/nm-irix3.h: Delete file.
1312 * config/mips/xm-irix3.h: Delete file.
1313 * config/mips/nm-irix4.h: Delete file.
1314 * config/mips/xm-irix4.h: Delete file.
1315 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1316
fde2cceb
JB
13172003-09-10 J. Brobecker <brobecker@gnat.com>
1318
1319 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1320 * Makefile.in (hppa-tdep.o): Update dependencies.
1321
66f667f5
JW
13222003-09-10 James E Wilson <wilson@specifixinc.com>
1323
ef5fd69f
JW
1324 * MAINTAINERS: Change my e-mail address. Move to paper trail
1325 section.
66f667f5 1326
53e8aaea
KB
13272003-09-10 Kevin Buettner <kevinb@redhat.com>
1328
1329 * MAINTAINERS (frv): New ISA entry.
1330
dcc6aaff
KB
13312003-09-10 Kevin Buettner <kevinb@redhat.com>
1332
1333 * frv-tdep.c (dis-asm.h): Include.
1334 * Makefile.in (frv-tdep.o): Update dependencies.
1335
932644f0
JJ
13362003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1337
1338 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1339 Fix typo for high range of floating registers.
1340
91c24f0a
DC
13412003-09-09 David Carlton <carlton@kealia.com>
1342
1343 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1344 highpc initialization here out of scan_partial_symbols.
1345 (scan_partial_symbols): Restructure into a recursive version,
1346 calling add_partial_namespace and add_partial_enumeration when
1347 appropriate.
1348 (add_partial_namespace): New.
1349 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1350
c9263853
AC
13512003-09-09 Andrew Cagney <cagney@redhat.com>
1352
e56a0ecc
AC
1353 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1354 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1355 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1356 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1357
794a477a
AC
1358 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1359 (rs6000_push_dummy_call): Set the "TOC" register.
1360
c9263853
AC
1361 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1362 methods "max_register_raw_size", "max_register_virtual_size" or
1363 "register_virtual_size".
1364
afa7d0b2
ILT
13652003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1366
1367 * MAINTAINERS: Update my e-mail address.
1368
7a41266b
AC
13692003-09-09 Andrew Cagney <cagney@redhat.com>
1370
1371 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1372 (rs6000_push_dummy_call): Store the struct return address.
1373 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1374
77b2b6d4
AC
13752003-09-09 Andrew Cagney <cagney@redhat.com>
1376
1377 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1378 "ppc_sysv_abi_push_arguments".
1379 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1380 "ppc_sysv_abi_push_arguments".
1381 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1382 instead of "push_arguments".
1383 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1384
e8a7b686
AC
13852003-09-09 Andrew Cagney <cagney@redhat.com>
1386
1387 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1388 instead of CALL_DUMMY_ADDRESS.
1389
f86f5ca3
PH
13902003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1391
1392 * p-lang.c: Eliminate "register".
1393 * c-lang.c: Ditto.
1394 * expprint.c: Ditto.
1395 * f-lang.c: Ditto.
1396 * jv-lang.c: Ditto.
1397 * language.c: Ditto.
1398 * m2-lang.c: Ditto.
1399 * parse.c: Ditto.
1400 * scm-lang.c: Ditto.
1401 * objc-lang.c: Ditto.
1402
83ee270e
NC
14032003-09-09 Nick Clifton <nickc@redhat.com>
1404
1405 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1406
a89aa300
AC
14072003-09-04 Andrew Cagney <cagney@redhat.com>
1408
1409 * avr-tdep.c: Include "dis-asm.h".
1410 * cris-tdep.c: Include "dis-asm.h".
1411 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1412 instead of corresponding typedef.
1413 * h8300-tdep.c: Include "dis-asm.h".
1414 * ia64-tdep.c: Include "dis-asm.h".
1415 * i386-tdep.c: Include "dis-asm.h".
1416 (i386_print_insn): Use "struct disassemble_info" instead of
1417 corresponding typedef.
1418 * m68k-tdep.c: Include "dis-asm.h".
1419 * mcore-tdep.c: Include "dis-asm.h".
1420 * mips-tdep.c: Include "dis-asm.h".
1421 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1422 instead of corresponding typedef.
1423 * ns32k-tdep.c: Include "dis-asm.h".
1424 * s390-tdep.c: Include "dis-asm.h".
1425 * sparc-tdep.c: Include "dis-asm.h".
1426 * vax-tdep.c: Include "dis-asm.h".
1427 * v850-tdep.c: Include "dis-asm.h".
1428 * mn10300-tdep.c: Include "dis-asm.h".
1429 * rs6000-tdep.c: Include "dis-asm.h".
1430 * xstormy16-tdep.c: Include "dis-asm.h".
1431 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1432 print_insn_xstormy16.
1433 * Makefile.in (v850-tdep.o): Update dependencies.
1434 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1435 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1436 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1437 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1438 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1439 (gdbarch_h): Remove $(dis_asm_h).
1440 * disasm.c: Include "dis-asm.h".
1441 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1442 corresponding typedef.
1443 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1444 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1445 * gdbarch.sh: Do not include "dis-asm.h".
1446 (struct disassemble_info): Declare opaque.
1447 (TARGET_PRINT_INSN): Update declaration.
1448 * gdbarch.h, gdbarch.c: Re-generate.
1449
88a82a65
AC
14502003-09-08 Andrew Cagney <cagney@redhat.com>
1451
1452 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1453 CALL_DUMMY_ADDRESS, change to a predicate.
1454 * gdbarch.h, gdbarch.c: Re-generate.
1455 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1456 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1457 * infcall.c (call_function_by_hand): Ditto.
1458 * sparc-tdep.c (sparc_push_return_address): Ditto.
1459 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1460 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1461 CALL_DUMMY_ADDRESS with entry_point_address.
1462 * v850-tdep.c (v850_push_return_address): Ditto.
1463 * s390-tdep.c (s390_push_return_address): Ditto.
1464 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1465 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1466 * mcore-tdep.c (mcore_push_return_address): Ditto.
1467 * cris-tdep.c (cris_push_return_address): Ditto.
1468 * arm-tdep.c (arm_push_return_address): Ditto.
1469
3e2c4033
AC
14702003-09-08 Andrew Cagney <cagney@redhat.com>
1471
1472 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1473 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1474 and REG_UNMODIFIED to REG_SAME_VALUE.
1475 (execute_cfa_program): Update.
1476 (dwarf2_frame_cache): Update. Initialize table to
1477 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1478 location.
1479 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1480
39efb398
AC
14812003-09-08 Andrew Cagney <cagney@redhat.com>
1482
1483 * gnu-nat.c: Remove "inline" function attribute.
1484 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1485
f5cb5aca
KB
14862003-09-08 Kevin Buettner <kevinb@redhat.com>
1487
1488 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1489 target.
1490
1cb761c7
KB
14912003-09-08 Kevin Buettner <kevinb@redhat.com>
1492
1493 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1494 (frame_extra_info): Rename this struct to frv_unwind_cache.
1495 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1496 Add fields ``prev_sp'' and ``base''.
1497 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1498 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1499 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1500 Delete.
1501 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1502 Revise all callers. Fill in the unwind cache argument and make
1503 other adjustments to account for new frame mechanisms.
1504 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1505 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1506 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1507 (frv_frame_unwind, frv_frame_base): New structs.
1508 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1509 additional arguments expected by this method and adjust function
1510 body accordingly.
1511 (frv_gdbarch_init): Remove calls to the following functions:
1512 set_gdbarch_deprecated_init_frame_pc(),
1513 set_gdbarch_deprecated_saved_pc_after_call(),
1514 set_gdbarch_deprecated_frame_chain(),
1515 set_gdbarch_deprecated_frame_saved_pc(),
1516 set_gdbarch_deprecated_frame_init_saved_regs(),
1517 set_gdbarch_deprecated_push_arguments(),
1518 set_gdbarch_deprecated_push_return_address(),
1519 set_gdbarch_deprecated_pop_frame(),
1520 set_gdbarch_deprecated_call_dummy_words(),
1521 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1522 set_gdbarch_deprecated_init_extra_frame_info(),
1523 set_gdbarch_deprecated_dummy_write_sp(), and
1524 set_gdbarch_deprecated_pc_in_call_dummy().
1525 Add calls to the following functions:
1526 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1527 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1528 frame_base_set_default().
1529 * Makefile.in (frv-tdep.o): Update dependencies.
1530
68f6cf99
MK
15312003-09-09 Mark Kettenis <kettenis@gnu.org>
1532
1533 * dwarf2-frame.c (read_encoded_value): Add support for
1534 DW_EH_PE_aligned encoding.
1535
73b65bb0
DJ
15362003-09-08 Daniel Jacobowitz <drow@mvista.com>
1537
1538 * infrun.c (normal_stop): Don't print a message if the inferior
1539 has exited.
1540
7c8a5605
JB
15412003-09-08 Jim Blandy <jimb@redhat.com>
1542
1543 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1544 * dbxread.c: #include "gdb_assert.h".
1545 (read_dbx_symtab): If the objfile has no .data section, use the
1546 section index for the .bss section instead.
1547
7dd88986
DJ
15482003-09-08 Daniel Jacobowitz <drow@mvista.com>
1549
1550 * frame.c (deprecated_safe_get_selected_frame): New function.
1551 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1552 * findvar.c (read_var_value): Call it.
1553
55ff77ac
CV
15542003-09-08 Corinna Vinschen <vinschen@redhat.com>
1555
1556 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1557 (sh64-tdep.o): Add dependencies.
1558 * configure.tgt: Add FIXME to sh-*-linux*.
1559 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1560 (sh_gdbarch_init): Always set correct sh_show_regs function
1561 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1562 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1563 * sh64-tdep.c: New file, containing all sh64 related code from
1564 sh-tdep.c.
1565 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1566 * config/sh/linux.mt (TDEPFILES): Ditto.
1567 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1568 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1569 * config/sh/wince.mt (TDEPFILES): Ditto.
1570
bfb39158
DJ
15712003-09-07 Daniel Jacobowitz <drow@mvista.com>
1572
1573 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1574 (stop_wait_callback): Handle !lp->signalled also.
1575 (lin_lwp_has_pending, flush_callback): New functions.
1576 (lin_lwp_wait): Call flush_callback.
1577 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1578 (linux_proc_pending_signals): New function.
1579 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1580
9407de8e
DJ
15812003-09-07 Daniel Jacobowitz <drow@mvista.com>
1582
1583 From Nick Kelsey <nickk@ubicom.com>:
1584 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1585 when the stop PC is at the beginning of a function also.
1586
2ef47cd0
DJ
15872003-09-06 Daniel Jacobowitz <drow@mvista.com>
1588
1589 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1590 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1591
6f4492c8
MK
15922003-09-06 Mark Kettenis <kettenis@gnu.org>
1593
1594 * sol-thread.c: Include "gdb_string.h".
1595
d3420b2f
MK
15962003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1597
1598 * gcore.c: Reorder include files in alphabetical order. Include
1599 "gdb_assert.h". Various coding style fixes.
1600 (derive_stack_segment, derive_heap_segment): Replace check for
1601 non-null BOTTOM and TOP with gdb_assert.
1602 (derive_heap_segment): Replace check for successful creation of
1603 ZERO with gdb_assert.
1604 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1605
5220ea4c
AC
16062003-09-04 Andrew Cagney <cagney@redhat.com>
1607
1608 * thread-db.c (verbose_dlsym): New function.
1609 (thread_db_load): Use verbose_dlsym
1610 (thread_db_new_objfile): Print that libthread_db was loaded, and
1611 that thread debugging was enabled.
1612
6e8c2c06
AC
16132003-09-04 Andrew Cagney <cagney@redhat.com>
1614
1615 * configure.tgt: Add "mips64*-*-*" target. Delete
1616 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1617 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1618 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1619 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1620 mips*-sony-*, and mips64*-*-elf* targets.
1621 * config/mips/embedl.mt: Delete file.
1622 * config/mips/embedl64.mt: Delete file.
1623 * config/mips/mips.mt: Delete file.
1624 * config/mips/mips64.mt: Delete file.
1625 * config/mips/tm-embed.h: Delete file.
1626 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1627 * config/mips/embed64.mt: Delete out-of-date comment.
1628
3a3bc038
AC
16292003-09-04 Andrew Cagney <cagney@redhat.com>
1630
1631 * hppa-tdep.c (hppa_gdbarch_init): Set
1632 "have_nonsteppable_watchpoint".
1633 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1634 * mips-tdep.c (mips_dump_tdep): Do not print
1635 HAVE_NONSTEPPABLE_WATCHPOINT.
1636 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1637 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1638 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1639 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1640
a957e642
CV
16412003-09-04 Corinna Vinschen <vinschen@redhat.com>
1642
1643 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1644 unused code. Add comment.
1645
a6fbcf2f
CV
16462003-09-04 Corinna Vinschen <vinschen@redhat.com>
1647
1648 * breakpoint.c (watchpoint_check): Check for pc being in an
1649 epilogue if watchpoint frame couldn't be found.
1650
c14a44d5
AC
16512003-09-04 Andrew Cagney <cagney@redhat.com>
1652
1653 * Makefile.in: Re-generate all dependencies.
1654
f6c40618
AC
16552003-09-03 Andrew Cagney <cagney@redhat.com>
1656
1657 * arch-utils.h (legacy_print_insn): Delete declaration.
1658 * arch-utils.c (legacy_print_insn): Delete function.
1659 * disasm.c (deprecated_tm_print_insn_info): Delete.
1660 (_initialize_disasm): Delete function, contained code initializing
1661 deprecated_tm_print_insn_info.
1662 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1663 (deprecated_tm_print_insn_info): Delete.
1664 (TARGET_PRINT_INSN): Do not provide a default.
1665 * gdbarch.h, gdbarch.c: Re-generate.
1666
242e8be5
AC
16672003-09-03 Andrew Cagney <cagney@redhat.com>
1668
1669 * disasm.c (fprintf_disasm): New function.
1670 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1671 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1672 reverts 2003-08-14 change.
1673 (_initialize_disasm): Call "init_disassemble_info", instead of
1674 INIT_DISASSEMBLE_INFO_NO_ARCH.
1675
3ffc3dda
MS
16762003-09-03 Michael Snyder <msnyder@redhat.com>
1677
1678 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1679
52d16ba8
AC
16802003-09-03 Andrew Cagney <cagney@redhat.com>
1681
1682 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1683 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1684 * symfile.c (syms_from_objfile): Update.
1685 (reread_symbols): `Update
1686 * exec.c (exec_file_attach): Update.
1687 (exec_file_attach): Update.
1688 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1689 2003-08-29 change.
1690 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1691
eb5492fa
DJ
16922003-09-03 Daniel Jacobowitz <drow@mvista.com>
1693
1694 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1695 trad-frame.h.
1696 (arm_get_cache): Delete macro.
1697 (struct arm_prologue_cache): Update comments. Make saved_regs into
1698 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1699 to prev_sp.
1700 (thumb_scan_prologue): Update for cache changes. Don't call
1701 DEPRECATED_PC_IN_CALL_DUMMY.
1702 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1703 argument and use it in desperation search for our prologue. Do not
1704 search past the specified PC.
1705 (arm_make_prologue_cache): Simplify.
1706
1707 (arm_prologue_this_id, arm_prologue_prev_register)
1708 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1709 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1710 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1711 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1712 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1713
1714 (arm_frame_chain_valid, arm_find_callers_reg)
1715 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1716 (arm_pop_frame): Delete obsolete methods.
1717 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1718
1719 (arm_gdbarch_init): Update for new frame methods. Register prologue
1720 and sigtramp unwinders. Set the default frame base method.
1721
1722 * Makefile.in (arm-tdep.o): Update dependencies.
1723 * varobj.c (find_frame_addr_in_frame_chain): Call
1724 get_frame_base_address.
1725 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1726
24de872b
DJ
17272003-09-03 Daniel Jacobowitz <drow@mvista.com>
1728
1729 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1730 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1731 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1732 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1733 Take NEXT_FRAME and CACHE arguments. Call
1734 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1735 Set unwound_pc in CACHE instead of modifying the frame argument.
1736 Don't bother checking the frame type when looking for sigtramp
1737 frames.
1738 (arm_make_prologue_cache, arm_frame_chain)
1739 (arm_init_extra_frame_info): New functions.
1740
9b8d791a
DJ
17412003-09-03 Daniel Jacobowitz <drow@mvista.com>
1742
1743 * arm-tdep.c (arm_get_cache): Define.
1744 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1745 unwound_sp, unwound_pc, and saved_regs.
1746 (thumb_scan_prologue): Take a cache instead of the frame.
1747 (arm_scan_prologue): Likewise.
1748 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1749 instead of a temporary frame.
1750 (arm_init_extra_frame_info): Allocate and use a cache.
1751 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1752
7ee3275f
AC
17532003-09-03 Andrew Cagney <cagney@redhat.com>
1754
1755 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1756 * config/mips/wince.mt (TM_CLIBS): Ditto.
1757 * config/sh/wince.mt (TM_CLIBS): Ditto.
1758 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1759 * config/sparc/sp64.mt (CC): Delete.
1760
57b29be7
AC
17612003-09-03 Andrew Cagney <cagney@redhat.com>
1762
1763 * defs.h: Do not include "arch-utils.h".
1764 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1765 GDB_MULTI_ARCH_PURE.
1766 * configure.in (GDB_MULTI_ARCH): Do not define.
1767 * configure, config.in: Regenerate.
1768 * configure.tgt: Do not set variable "gdb_multi_arch".
1769 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1770 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1771 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1772 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1773 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1774 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1775 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1776 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1777 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1778 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1779 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1780 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1781 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1782 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1783 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1784 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1785 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1786 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1787
12e035e2
MC
17882003-08-30 Michael Chastain <mec@shout.net>
1789
1790 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1791 * config/m68k/nm-hp300hpux.h: Delete.
1792 * config/m68k/tm-hp300hpux.h: Delete.
1793 * config/m68k/xm-hp300hpux.h: Delete.
1794 * config/m68k/xm-hp300bsd.h: Delete.
1795 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1796 tm-hp300hpux.h, xm-hp300hpux.h.
1797 * somsolib.c: Remove comment about hp300 shared libraries.
1798
bda34dc2
MK
17992003-08-31 Mark Kettenis <kettenis@gnu.org>
1800
5bca7895
MK
1801 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1802 Only define PTRACE_GET_THREAD_AREA is not already defined.
1803 Various style fixes in code and comments and some additional
1804 spelling fixes in comments. Move after functions dealing with
1805 debug registers.
1806 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1807 Fix coding-style.
1808
bda34dc2
MK
1809 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1810 frame_unwind_register_unsigned instead of
1811 frame_unwind_unsigned_register.
1812
c890192f
MK
18132003-08-30 Mark Kettenis <kettenis@gnu.org>
1814
1815 * configure.in: Search for gethostbyname in libnsl.
1816 * configure: Regenerated.
1817
60fac5b8
MK
18182003-08-29 Mark Kettenis <kettenis@gnu.org>
1819
e294916c
MK
1820 * configure.in: Remove redundant AC_MSG_RESULT in check for
1821 uintptr_t in stdint.h.
1822 * configure: Regenerated.
1823
c40d267a
MK
1824 * amd64-nat.h (struct regcache): Add opaque declaration.
1825
60fac5b8
MK
1826 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1827 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1828 Change "register array" to "register cache" in comments.
1829 (x86_64_linux_gregset64_reg_offset): New variable.
1830 (GETREGS_SUPPLIES): Remove macro.
1831 (supply_gregset): Call amd64_supply_native_gregset instead of
1832 x86_64_linux_supply_gregset.
1833 (fill_gregset): Rename `regno' to `regnum'. Call
1834 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1835 (store_regs): Rename `regno' to `regnum'.
1836 (store_fpregs): Rename `regno' to `regnum'.
1837 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1838 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1839 Reorganize function a bit.
1840 (store_inferior_registers): Rename `regno' to `regnum'. Use
1841 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1842 Reorganize function a bit.
1843 (_initialize_x86_64_linux_nat): New function.
1844 * config/i386/x86-64linux.mh.
1845
546143b6
AC
18462003-08-29 Andrew Cagney <cagney@redhat.com>
1847
1848 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1849 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1850 (target_remove_watchpoint): Delete macro.
1851 (target_insert_watchpoint): Delete macro.
1852 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1853 (remote_mips_stopped_by_watchpoint): Delete declaration.
1854 (remote_mips_remove_watchpoint): Delete declaration.
1855 (remote_mips_set_watchpoint): Delete declaration.
1856 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1857 * remote-mips.c (_initialize_remote_mips): Set
1858 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1859 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1860 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1861 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1862 (mips_stopped_by_watchpoint): Rename
1863 remote_mips_stopped_by_watchpoint.
1864 (mips_can_hardware_watchpoint): Rename
1865 remote_mips_can_use_hardware_watchpoint, update function
1866 signature.
1867
7bace51b
MK
18682003-08-29 Mark Kettenis <kettenis@gnu.org>
1869
b0f5c6f2
MK
1870 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1871 USER_DS. We haven't given them a register number yet.
1872
2a6d284d
MK
1873 * amd64-nat.h: New file.
1874 * amd64-nat.c: New file.
1875 * amd64fbsd-nat.c: Include "amd64-nat.h".
1876 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1877 (amd64fbsd32_r_reg_offset): New variable.
1878 (supply_gregset): Simply call amd64_supply_native_gregset.
1879 (fill_gregset): Rename `regno' to `regnum'. Simply call
1880 amd64_collect_native_gregset.
1881 (fill_fpregset): Rename `regno' to `regnum'.
1882 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1883 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1884 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1885 `fpregset_t'. Call amd64_supply_native_gregset instead of
1886 supply_gregset. Call x86_64_supply_fxsave instead of
1887 supply_fpregset.
1888 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1889 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1890 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1891 `fpregset_t'. Call amd64_collect_native_gregset instead of
1892 fill_gregset. Call x86_64_collect_fxsave instead of
1893 fill_fpregset.
1894 (_initialize_am64fbsd_nat): Initialize
1895 amd64_native_gregset32_reg_offset and
1896 amd64_native_gregset64_reg_offset.
1897 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1898
a16d75cc
MK
1899 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1900 null pointer. Fix typo in comment.
1901
7bace51b
MK
1902 * regcache.c (supply_register): Reimplement to call
1903 regcache_raw_supply.
1904 (regcache_collect): Reimplement by calling regcache_raw_collect.
1905
9a661b68
MK
19062003-08-28 Mark Kettenis <kettenis@gnu.org>
1907
1908 * regcache.c (register_buffer): Consitify first argument.
1909 (regcache_raw_supply, regcache_raw_collect): New
1910 functions.
1911
e94cc8fa
DJ
19122003-08-28 Daniel Jacobowitz <drow@mvista.com>
1913
1914 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1915 by Nathan J. Williams.
1916
c64bd0ce
DJ
19172003-08-28 Daniel Jacobowitz <drow@mvista.com>
1918
1919 * lin-lwp.c (wait_lwp): New function, copied from
1920 stop_wait_callback. Clean up.
1921 (stop_wait_callback): Use wait_lwp.
1922
e5ab0dce
AC
19232003-08-28 Andrew Cagney <cagney@redhat.com>
1924
1925 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1926 flavour and disassembler options.
1927 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1928 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1929 deprecated_tm_print_insn_info.
1930
a788de9b
AC
19312003-08-27 Andrew Cagney <cagney@redhat.com>
1932
1933 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1934 Use target_read_memory.
1935 (s390_get_frame_info): Update. Do not reference
1936 deprecated_tm_print_insn_info.
1937 (s390_check_function_end, s390_is_sigreturn): Ditto.
1938
36482093
AC
19392003-08-27 Andrew Cagney <cagney@redhat.com>
1940
1941 * Makefile.in (cris-tdep.o): Update dependencies.
1942 * cris-tdep.c: Include "gdb_assert.h".
1943 (cris_gdbarch_init): Set print_insn.
1944 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1945 (cris_delayed_get_disassembler): Simplify, directly call the
1946 disassembler returned by cris_get_disassembler.
1947 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1948 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1949 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1950 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1951 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1952 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1953 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1954 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1955 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1956 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1957 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1958 (gdb_print_insn_sparc): Delete function.
1959 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1960 deprecated_tm_print_insn_info.
1961 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1962 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1963 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1964 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1965 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1966 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1967 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1968 (s390_gdbarch_init): Set print_insn.
1969
0285512f
AC
19702003-08-27 Andrew Cagney <cagney@redhat.com>
1971
1972 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1973 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1974 * infcall.c (call_function_by_hand): Convert the entry point
1975 address into a code address.
1976
cdcd5552
AC
19772003-08-27 Andrew Cagney <cagney@redhat.com>
1978
1979 * dsrec.c: Include "gdb_string.h".
1980 * Makefile.in (dsrec.o): Update dependencies.
1981
e85cddad
MC
19822003-08-27 Michael Chastain <mec@shout.net>
1983
1984 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1985
8bbfbb23
AC
19862003-08-27 Andrew Cagney <cagney@redhat.com>
1987
1988 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1989 (alpha_osf1_init_abi): Do not set call_dummy_address.
1990
ba058b66
DC
19912003-08-27 David Carlton <carlton@kealia.com>
1992
1993 From Randolph Chung <tausq@debian.org>:
1994 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1995 compiles with -Wformat-nonliteral -Werror.
1996
87f84c9d
JB
19972003-08-26 Jim Blandy <jimb@redhat.com>
1998
1999 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2000 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2001 bfd_lookup_symbol, since we only want symbols in code sections.
2002 (look_for_base): Pass zero as the SECT_FLAGS argument to
2003 bfd_lookup_symbol, since we're not concerned about which section
2004 the symbol is in.
2005
102d615a
JJ
20062003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2007
2008 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
2009 we are frameless or the return address register is already known.
2010
cc7ad3ea
AC
20112003-08-26 Andrew Cagney <cagney@redhat.com>
2012
2013 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2014 in size. Add comments.
2015
af8b88dd
JJ
20162003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2017
2018 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
2019 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
2020
e0a4f5a1
JM
20212003-08-26 Jason Merrill <jason@redhat.com>
2022
2023 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2024 case out of #ifdef MIPS block.
2025
4ae9ee8e
DJ
20262003-08-25 Daniel Jacobowitz <drow@mvista.com>
2027
2028 PR java/1322
2029 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2030 available before calling SECT_OFF_TEXT.
3c164570 2031 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 2032
004d836a
JJ
20332003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2034
2035 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
2036 bof, and nat0-nat127 as pseudo-registers.
2037 (ia64_frame_cache): New struct used to cache frame info.
2038 (ia64_register_reggroup_p): New routine used to override default
2039 register grouping so registers without names are still saved and
2040 restored.
2041 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
2042 pseudo values.
2043 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2044 (ia64_pseudo_register_write): New routine to write pseudo-registers.
2045 (ia64_alloc_frame_cache): New routine to create a new
2046 ia64_frame_cache.
2047 (examine_prologue): Change prototype to add next_frame pointer.
2048 Assume frameless until otherwise proven. Verify that the cfm for
2049 current frame matches the cfm that should occur for the prologues
2050 alloc insn and if equal, mark as not frameless. At end of routine,
2051 if not frameless, calculate registers for the previous frame and store
2052 in the cache, if a cache is provided.
2053 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2054 and pass 0 for next_frame.
2055 (ia64_store_return_value): Change to use convert_typed_floating()
2056 instead of calling ia64_convert_to_raw().
2057 (ia64_extract_return_value): Change to use convert_typed_floating()
2058 instead of calling ia64_convert_to_virtual().
2059 (ia64_frame_cache): New routine to support new frame model.
2060 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2061 (ia64_frame_sniffer): Ditto.
2062 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2063 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2064 (ia64_sigtramp_frame_prev_register): Ditto.
2065 (ia64_sigtramp_frame_sniffer): Ditto.
2066 (ia64_frame_base_address): Ditto.
2067 (ia64_extract_struct_value_address): Change to issue error message.
2068 (ia64_frame_align): New routine to align sp.
2069 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
2070 (ia64_push_arguments): Removed. Logic moved to
2071 ia64_push_dummy_call().
2072 (ia64_push_return_address): Ditto.
2073 (ia64_unwind_dummy_id): New function.
2074 (ia64_unwind_pc): Ditto.
2075 (ia64_convert_register_p): Ditto.
2076 (ia64_register_to_value): Ditto.
2077 (ia64_value_to_register): Ditto.
2078 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2079 (ia64_register_byte, ia64_register_raw_size): Ditto.
2080 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2081 (ia64_saved_pc_after_call): Ditto.
2082 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2083 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2084 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2085 (ia64_register_convert_to_raw): Ditto.
2086 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2087 (ia64_init_extra_frame_info): Ditto.
2088 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2089 (ia64_gdbarch_init): Remove registering of deprecated functions that
2090 are no longer used. Add registration of new gdbarch functions.
2091 Remove registering deprecated_write_sp. Replace
2092 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2093 Delete set_gdbarch_deprecated_register_convertible(),
2094 set_gdbarch_deprecated_register_convert_to_virtual(), and
2095 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2096 set_gdbarch_deprecated_register_size(),
2097 set_gdbarch_deprecated_register_bytes(),
2098 set_gdbarch_pcregnum(),
2099 set_gdbarch_deprecated_register_byte(),
2100 set_gdbarch_deprecated_register_raw_size(),
2101 set_gdbarch_deprecated_max_register_raw_size(),
2102 set_gdbarch_deprecated_register_virtual_size(),
2103 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2104 Replace set_gdbarch_deprecated_extract_return_value() with
2105 set_gdbarch_extract_return_value(). Remove calls to:
2106 set_gdbarch_deprecated_saved_pc_after_call();
2107 set_gdbarch_deprecated_frame_chain(),
2108 set_gdbarch_deprecated_frame_saved_pc(),
2109 set_gdbarch_deprecated_frame_init_saved_regs(),
2110 set_gdbarch_deprecated_get_saved_register(),
2111 set_gdbarch_deprecated_call_dummy_words(),
2112 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2113 set_gdbarch_deprecated_init_extra_frame_info(),
2114 set_gdbarch_deprecated_frame_args_address(),
2115 set_gdbarch_deprecated_frame_locals_address(),
2116 and set_gdbarch_deprecated_dummy_write_sp().
2117 Add set_gdbarch_convert_register_p(),
2118 set_gdbarch_register_to_value(),
2119 set_gdbarch_value_to_register(),
2120 set_gdbarch_push_dummy_call(),
2121 set_gdbarch_frame_align(),
2122 set_gdbarch_unwind_dummy_id(),
2123 set_gdbarch_unwind_pc(),
2124 frame_unwind_append_sniffer(),
2125 frame_unwind_append_sniffer(),
2126 and frame_base_set_default().
2127
aede7613
CD
21282003-08-25 Chris Demetriou <cgd@broadcom.com>
2129
2130 * configure.tgt: Document need for special "mipsisa64" handling.
2131 (mipsisa64*-*-linux64): Handle as target linux64.
2132 (mipsisa64*-*-*): Handle as target embed64.
2133
43c3a82e
MC
21342003-08-18 Michael Chastain <mec@shout.net>
2135
2136 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2137 objfile bug.
2138
6564f77d
MK
21392003-08-24 Mark Kettenis <kettenis@gnu.org>
2140
2de139ba
MK
2141 * i387-tdep.h: Update copyright date.
2142 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2143
6564f77d
MK
2144 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2145 CFLAGS games to reflect reality.
2146
42cf1509
AC
21472003-08-24 Andrew Cagney <cagney@redhat.com>
2148
2149 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2150 GDB_MULTI_ARCH is always non-zero.
2151 * osabi.c (_initialize_gdb_osabi): Ditto.
2152 (gdbarch_init_osabi): Ditto.
2153 * sparc-tdep.c: Ditto for #if code.
2154
0485f6ad
MK
21552003-08-23 Mark Kettenis <kettenis@gnu.org>
2156
2157 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2158 Update comments.
2159 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2160 comments.
2161 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2162 x86_64_supply_fxsave.
2163 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2164 x86_64_supply_fxsave.
2165 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2166 x86_64_supply_fxsave.
2167
c7716133
AJ
21682003-08-23 Andreas Jaeger <aj@suse.de>
2169
2170 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2171 i387_supply_fxsave.
2172
ed504bdf
MK
21732003-08-23 Mark Kettenis <kettenis@gnu.org>
2174
2175 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2176 i387_supply_register.
2177 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2178 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2179 i387_supply_fsave.
2180 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2181 i387_supply_fxsave.
2182 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2183 i387_supply_fsave.
2184 * i386bsd-nat.c (supply_fpregset): Adjust call to
2185 i387_supply_fsave.
2186 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2187 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2188 supply_fpregset.
2189 (store_inferior_registers): Remove extraneous whitespace. Call
2190 i387_fill_fsave instead of fill_fpregset.
2191 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2192 (supply_fpregset): Likewise.
2193 * i386v4-nat.c (supply_fpregset): Adjust call to
2194 i387_supply_fsave.
2195 * i386-interix-nat.c (supply_fpregset): Adjust call to
2196 i387_supply_fsave.
2197 * i386-linux-nat.c (supply_fpregset): Adjust call to
2198 i387_supply_fsave.
2199 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2200 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2201 i387supply_fsave and i387_supply_fxsave.
2202 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2203 Incorporate code from `i387_supply_register.
2204 (i387_supply_register): Remove.
2205 (i387_supply_fxsave): Add `regnum' argument.
2206 Update comments.
2207 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2208 prototype.
2209 (i387_supply_register): remove prototype.
2210 Update comments.
2211
4be5d520
MC
22122003-08-22 Michael Chastain <mec@shout.net>
2213
2214 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2215 Add lines for files in gdb/testsuite/gdb.cp/* that are
2216 still not 8.3 unique.
2217
7ed85d26
DJ
22182003-08-22 Daniel Jacobowitz <drow@mvista.com>
2219
2220 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2221 TYPE_VPTR_FIELDNO is valid.
2222
eb0d3137
MK
22232003-08-19 Mark Kettenis <kettenis@gnu.org>
2224
2225 * utils.c (set_width_command): Remove prototypes.
2226 (set_screen_size): New prototype.
2227 (init_page_info): Simplify by fetching the screen size from
2228 Readline. Call set_screen_size.
2229 (set_screen_size): New function.
2230 (set_width): Add missing whitespace in comment.
2231 (set_width_command): Call set_screen_size.
2232 (set_height_command): New function.
2233 (initialize_utils): Fix formatting. Make "set height" command
2234 call set_height_command. Remove redundant code that turns off
2235 pagination if output isn't a terminal. Remove redundant call to
2236 set_width_command.
2237
7e6d0ac8
MK
22382003-08-22 Mark Kettenis <kettenis@gnu.org>
2239
3567a8ea
MK
2240 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2241 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2242 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2243 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2244 `case' keyword.
2245 (sparc64_register_info): Give the reister with number
2246 SPARC64_STATE_REGNUM a name.
2247 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2248 %asi and %ccr.
2249 (sparc64_push_dummy_call): Take BIAS into account when checking
2250 stcak alignment.
2251 (sparc_software_single_step): Remove assertions that check whether
2252 NPC and NNPC were zero.
2253 (sparc_supply_rwindow): Make public. Merge functionality with
2254 sparc64_supply_rwindow.
2255 (sparc_fill_rwindow): Make public. Merge functionality with
2256 sparc64_fill_rwindow.
2257 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2258 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2259 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2260 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2261 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2262
7e6d0ac8
MK
2263 * reggroups.c: Add whitespace after declarations of local
2264 variables in functions.
2265
72e5f484
MC
22662003-08-21 Michael Chastain <mec@shout.net>
2267
2268 * gdbtypes.h: Change array bound type from an int to enum.
2269
435ac228
AC
22702003-08-21 Andrew Cagney <cagney@redhat.com>
2271
2272 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2273 * config/sparc/tm-sparc.h: Ditto.
2274 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2275 unconditionally.
2276 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2277
0d0e1a63
MK
22782003-07-13 Mark Kettenis <kettenis@gnu.org>
2279
2280 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2281 (register_objfile_data, set_objfile_data, objfile_data): New
2282 prototypes.
2283 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2284 prototypes.
2285 (allocate_objfile): Call objfile_alloc_data.
2286 (free_objfile): Call objfile_free_data.
2287 (struct objfile_data): New.
2288 (struct objfile_data_registration): New.
2289 (struct objfile_data_registry): New.
2290 (objfile_data_registry): New variable.
2291 (register_objfile_data): New function.
2292 (objfile_alloc_data, objfile_free_data): New functions.
2293 (set_objfile_data, objfile_data): New functions.
2294 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2295 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2296 (_initialize_dwarf2_frame): New function and prototype.
2297
d90cf509
AC
22982003-08-21 Andrew Cagney <cagney@redhat.com>
2299
2300 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2301 a specific architecture.
2302 * arch-utils.h (set_architecture_from_arch_mach): Delete
2303 declaration.
2304 (target_architecture_hook): Delete declaration.
2305 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2306 (default_float_format): Assume GDB_MULTI_ARCH.
2307 (default_double_format): Assume GDB_MULTI_ARCH.
2308 (set_endian_from_file): Delete function.
2309 (arch_ok): Delete function.
2310 (set_arch): Delete function.
2311 (set_architecture_from_arch_mach): Delete function.
2312 (set_architecture_from_file): Delete function.
2313 (set_architecture): Assume GDB_MULTI_ARCH.
2314 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2315
8b39fe56
MK
23162003-08-21 Mark Kettenis <kettenis@gnu.org>
2317
2318 Rewrite FreeBSD/sparc64 native configuration.
2319 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2320 * sparc64fbsd-nat.c: New file.
2321 * sparc64fbsd-tdep.c: New file.
2322 * sparc64-tdep.c sparc64-tdep.h: New files.
2323 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2324 sparc64fbsd-tdep.o): New dependencies.
2325 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2326 and sparc64fbsd-tdep.c.
2327 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2328 * config/sparc/fbsd.mh: Remove copyright notice.
2329 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2330 sparcbsd-nat.o.
2331 * config/sparc/fbsd.mt: Remove copyright notice.
2332 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2333 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2334 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2335 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2336 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2337 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2338 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2339 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2340 "sparc/tm-sp64.h".
2341 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2342 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2343
a7f19c79
MC
23442003-08-21 Michael Chastain <mec@shout.net>
2345
2346 * symtab.h: Add doco on the space critical structures and
2347 some measurements of space usage.
2348
da08ea5b
MS
23492003-08-21 Michael Snyder <msnyder@redhat.com>
2350
2351 * tracepoint.c (trace_dump_command): Trace break address
2352 is subject to DECR_PC_AFTER_BREAK.
2353 (set_traceframe_context): Make "trace_line" an int.
2354 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2355
6df2bf50
MS
23562003-08-20 Michael Snyder <msnyder@redhat.com>
2357
2358 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2359 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2360 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2361 argument passing.
2362 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2363 functions, replace sh_push_dummy_call.
2364 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2365
0955bbf0
MC
23662003-08-20 Michael Chastain <mec@shout.net>
2367
2368 * gdbtypes.h (struct main_type): Rearrange to save space.
2369
260a4188
MS
23702003-08-20 Michael Snyder <msnyder@redhat.com>
2371
2372 * trad-frame.c: Comment typo fix.
2373
8baa6f92
KB
23742003-08-20 Michael Snyder <msnyder@redhat.com>
2375 Kevin Buettner <kevinb@redhat.com>
2376
2377 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2378 (frv_frame_init_saved_regs): Add declaration.
2379 (frame_extra_info): Add new field ``saved_regs''.
2380 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2381 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2382 Update frame related code.
2383 (frv_extract_struct_value_address): Adjust formatting.
2384 * Makefile.in (frv-tdep.o): Update dependencies.
2385 * config/frv/tm-frv.h (target_insert_watchpoint)
2386 (target_remove_watchpoint, target_insert_hw_breakpoint)
2387 (target_remove_hw_breakpoint): Delete these macros.
2388 (remote_insert_watchpoint, remote_remove_watchpoint)
2389 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2390 these declarations.
2391
87193939
MC
23922003-08-20 Michael Chastain <mec@shout.net>
2393
2394 * defs.h (ENUM_BITFIELD): New macro.
2395 * symtab.h (ENUM_BITFIELD): Use it.
2396 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2397
062103ba
SA
23982003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2399
2400 * MAINTAINERS (write after approval): Add myself.
2401
8b148df9
AC
24022003-08-18 Andrew Cagney <cagney@redhat.com>
2403
2404 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2405 * gdbarch.h, gdbarch.c: Re-generate.
2406 * infcall.c (call_function_by_hand): Adjust the SP by
2407 frame_red_zone_size before allocating any stack space.
2408 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2409 * x86-64-tdep.c (x86_64_frame_align): New function.
2410 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2411
2412 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2413 Remove code adjusting SP so that it skips over the Red Zone.
2414
954a4db8
MK
24152003-08-18 Mark Kettenis <kettenis@gnu.org>
2416
2417 * NEWS (New native configurations): Mention FreeBSD/amd64.
2418
1a241548
AC
24192003-08-18 Andrew Cagney <cagney@redhat.com>
2420
2421 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2422 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2423 "m68k_frame_p".
2424 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2425
f82b2acd
MK
24262003-08-18 Mark Kettenis <kettenis@gnu.org>
2427
2428 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2429
4056d258
ML
24302003-08-18 Michal Ludvig <mludvig@suse.cz>
2431
2432 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2433 Define.
2434 * i386-linux-nat.c: Include "linux-nat.h".
2435 (child_post_startup_inferior): New function.
2436
99ab4326
MK
24372003-08-18 Mark Kettenis <kettenis@gnu.org>
2438
2439 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2440 at the start of a frameless function. This probably fixes PR
2441 backtrace/1338.
2442
c8d5f0d6
MC
24432003-08-17 Michael Chastain <mec@shout.net>
2444
2445 * symfile.c (find_sym_fns): Remove special case for apollo target.
2446
9016a515
DJ
24472003-08-17 Daniel Jacobowitz <drow@mvista.com>
2448
2449 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2450 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2451 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2452 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2453 (linux_supports_tracevforkdone): New function.
2454 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2455 TRACEVFORKDONE.
2456 (child_follow_fork): Handle vfork.
2457 (linux_handle_extended_wait): Likewise. Also handle exec.
2458 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2459 * NEWS: Mention fork tracing.
2460
c538c11c
DJ
24612003-08-17 Daniel Jacobowitz <drow@mvista.com>
2462
2463 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2464
4de4c07c
DJ
24652003-08-17 Daniel Jacobowitz <drow@mvista.com>
2466
2467 * Makefile.in (i386-linux-nat.o): Update dependencies.
2468 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2469 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2470 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2471 * i386-linux-nat.c: Include "linux-nat.h".
2472 (child_post_startup_inferior): New function.
2473 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2474 * infptrace.c (kill_inferior): Wrap in #ifdef.
2475 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2476 attaching to each LWP.
2477 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2478 (init_lin_lwp_ops): Fill in some more operations.
2479 * linux-nat.h (linux_enable_event_reporting)
2480 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2481 prototypes.
2482 * linux-nat.c (linux_enable_event_reporting): New function.
2483 (child_post_attach, linux_child_post_startup_inferior)
2484 (child_post_startup_inferior, child_follow_fork)
2485 (linux_handle_extended_wait, kill_inferior): New functions.
2486
7996bcec
AC
24872003-08-16 Andrew Cagney <cagney@redhat.com>
2488
2489 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2490 * gdbarch.h, gdbarch.c: Re-generate.
2491
3d48a7a0
MK
24922003-08-16 Mark Kettenis <kettenis@gnu.org>
2493
2494 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2495
7989c619
AC
24962003-08-16 Andrew Cagney <cagney@redhat.com>
2497
2498 * NEWS: Mention that "set prompt-escape-char" was deleted.
2499 * top.c (get_prompt_1): Delete function.
2500 (gdb_prompt_escape):
2501 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2502 prompt-escape-char" command.
2503 (MAX_PROMPT_SIZE): Delete macro.
2504 (get_prompt): Simplify, do not call get_prompt_1.
2505
07978cd8
AC
25062003-08-16 Andrew Cagney <cagney@redhat.com>
2507
2508 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2509 -Werror. -Wformat-nonliteral problems.
2510
3ff7cf9e
JB
25112003-08-15 J. Brobecker <brobecker@gnat.com>
2512
2513 Further multiarching work mostly for hppa64-*-hpux11:
2514 * hppa-tdep.h: New file.
2515 * hppa-tdep.c: #include hppa-tdep.c.
2516 (hppa32_num_regs): Renamed from hppa_num_regs.
2517 (hppa64_num_regs): New constant.
2518 (hppa64_call_dummy_breakpoint_offset): New constant.
2519 (hppa32_call_dummy_length): New constant.
2520 (hppa64_call_dummy_length): New constant.
2521 (hppa32_stack_align): Make name 32bit explicit.
2522 (hppa32_register_virtual_type): Likewise.
2523 (hppa32_extract_return_value): Likewise.
2524 (hppa32_use_struct_convention): Likewise.
2525 (hppa32_store_return_value): Likewise.
2526 (hppa64_register_virtual_type): New function.
2527 (hppa64_extract_return_value): New function.
2528 (hppa64_use_struct_convention): New function.
2529 (hppa64_store_return_value): New function.
2530 (hppa_frame_locals_address): Remove declaration, function does
2531 not exist anymore.
2532 (hppa_register_byte): Add support for PA64 ABI.
2533 (hppa_gdbarch_init): Add support for PA64 ABI.
2534 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2535 Make name 32bit explicit.
2536 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2537 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2538 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2539 (hppa64_hpux_frame_base_before_sigtramp): New function.
2540 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2541 * config/pa/tm-hppa64.h: Remove macros that are no longer
2542 necessary now that the gdbarch vector is properly setup.
2543 Transform some macros into function calls. Some minor cleanup.
2544 * config/pa/tm-hppah.h: Update function calls in macros
2545 following the function renaming in hppa-hpux-tdep.c.
2546 * Makefile.in (hppa_tdep_h): New variable.
2547 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2548
5d05ca6d
MS
25492003-08-14 Michael Snyder <msnyder@redhat.com>
2550
2551 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2552
37ba2569
JB
25532003-08-13 J. Brobecker <brobecker@gnat.com>
2554
2555 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2556 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2557 routine.
2558
aed7f26a
MS
25592003-08-13 Michael Snyder <msnyder@redhat.com>
2560
2561 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2562 (frv_saved_pc_after_call): Use deprecated ftype.
2563 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2564 (frv_remote_translate_xfer_address): Remove.
2565 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2566
752d4ac1
JB
25672003-08-13 J. Brobecker <brobecker@gnat.com>
2568
2569 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2570 initialization after the common gdbarch initialization, not before.
2571
1426ac1d
JB
25722003-08-13 J. Brobecker <brobecker@gnat.com>
2573
2574 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2575 (ADDR_BITS_REMOVE): Remove, redundant.
2576
b6fbdd1d
JB
25772003-08-13 J. Brobecker <brobecker@gnat.com>
2578
2579 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2580 gdbarch method to clear the 2 low bits of text addresses.
2581
44160db3
AC
25822003-08-12 Andrew Cagney <cagney@redhat.com>
2583
2584 * Makefile.in (dsrec.o): Update dependencies.
2585 * dsrec.c: Include "gdb_assert.h".
2586 (make_srec): Use snprintf instead of sprintf, use a literal format
2587 string.
2588
bcf7d3ca
AC
25892003-08-12 Andrew Cagney <cagney@redhat.com>
2590
2591 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2592 FRAME_OBSTACK_ZALLOC.
2593
49ed40de
KB
25942003-08-12 Kevin Buettner <kevinb@redhat.com>
2595
2596 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2597 SSE registers.
2598
b246147c
MK
25992003-08-10 Mark Kettenis <kettenis@gnu.org>
2600
2601 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2602 amd64fbsd_sc_reg_offset): Add extern declarations.
2603 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2604 declarations.
2605
d95fdc0d
BE
26062003-08-11 Ben Elliston <bje@wasabisystems.com>
2607
2608 * MAINTAINERS (write after approval): Update my mail address.
2609
cf6a0e73
AC
26102003-08-10 Andrew Cagney <cagney@redhat.com>
2611
2612 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2613
f837910f
MK
26142003-08-10 Mark Kettenis <kettenis@gnu.org>
2615
e2dbbd2d
MK
2616 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2617 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2618 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2619 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2620 i386bsd_sc_reg_offset): Add extern declarations.
2621 * i386obsd-nat.c: Include "i386-tdep.h"
2622 (_initialize_i386obsd_nat): Remove extern declarations.
2623 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2624 declarations.
2625 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2626 declarations.
2627
f837910f
MK
2628 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2629 instead of frame_read_register.
2630 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2631 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2632 SP_REGNUM.
2633 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2634 instead of frame_unwind_unsigned_register. Use
2635 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2636 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2637 instead of read_register. Use builtin_type_void_data_ptr instead
2638 of builtin_type_void_func_ptr when extracting the address of the
2639 jmp_buf.
2640 (i386_extract_return_value, i386_store_return_value,
2641 i386_pseudo_register_read, i386_pseudo_register_write): Use
2642 register_size instead REGISTER_RAW_SIZE.
2643
edcf254d
AC
26442003-08-10 Andrew Cagney <cagney@redhat.com>
2645
2646 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2647 sprintf. Make "name" constant.
2648
26604a34
MK
26492003-08-10 Mark Kettenis <kettenis@gnu.org>
2650
192285c6
MK
2651 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2652 instead of frame_read_register.
f837910f
MK
2653 (i387_print_float_info): Use get_frame_register and
2654 get_frame_register_unsigned instead of frame_register_read.
192285c6 2655
f0925262
MK
2656 * i386fbsd-nat.c: Include "i386-tdep.h".
2657 (child_resume): Make `eflags' an ULONGEST. Use
2658 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2659 instead of register_read and register_write.
2660
a144416f
MK
2661 * i386bsd-nat.c (fetch_inferior_registers,
2662 store_inferior_registers): Don't use && at the end of a line.
2663 (_initialize_i386bsd_nat): Fix typo.
2664
fec74868
MK
2665 * frame.c (_initialize_frame): Add missing backslash.
2666
87232496
MK
2667 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2668 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2669 and supply_register instead of manipulating the register buffer
2670 directly.
2671
c9b9de0b
MK
2672 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2673 * config/i386/nm-i386sol2.h
2674 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2675
26604a34
MK
2676 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2677 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2678 instructions that GCC likes to mingle into the prologue. Fixes
2679 gdb/1253 and gdb/1255.
2680
25d29d70
AC
26812003-08-09 Andrew Cagney <cagney@redhat.com>
2682
2683 Fix GDB PR cli/926.
2684 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2685 * command.h (add_setshow_uinteger_cmd): Declare.
2686 * frame.c (set_backtrace_cmd): New function.
2687 (show_backtrace_cmd): New function.
2688 * frame.c (_initialize_frame): Replace "set/show
2689 backtrace-below-main" with "set/show backtrace past-main". Add
2690 command "set/show backtrace limit".
2691 (backtrace_past_main): Rename "backtrace_below_main".
2692 (backtrace_limit): New variable.
2693 (get_prev_frame): Update. Check the backtrace_limit.
2694
9ebf4acf
AC
26952003-08-09 Andrew Cagney <cagney@redhat.com>
2696
2697 * defs.h (xstrprintf): Declare.
2698 * utils.c (xstrprintf): New function.
2699 * breakpoint.c (insert_breakpoints): Replace sprintf and
2700 non-literal format strings, with xstrprintf and cleanups.
2701 (delete_breakpoint,breakpoint_re_set): Ditto.
2702 (commands_command, insert_breakpoints): Ditto.
2703 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2704 (break_at_finish_command_1): Ditto.
2705
3771659b
AC
27062003-08-09 Andrew Cagney <cagney@redhat.com>
2707
2708 * MAINTAINERS (language support): List Adam Fedor as Objective C
2709 maintainer.
2710
b4263afa
JB
27112003-08-08 J. Brobecker <brobecker@gnat.com>
2712
2713 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2714 are now multiarched.
2715
d84defb1
JB
27162003-08-08 J. Brobecker <brobecker@gnat.com>
2717
2718 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2719 longer necessary now that hppa64 is partially multiarch'ed.
2720
f786f615
AC
27212003-08-08 Andrew Cagney <cagney@redhat.com>
2722
2723 * interps.c (interp_set): Check for a NULL "old_interp".
2724
c938e9b0
L
27252003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2726
2727 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2728 (install-only): Support DESTDIR.
2729 (uninstall): Likewise.
2730 (install-gdbtk): Likewise.
2731
9a146a11
EZ
27322003-08-08 Elena Zannoni <ezannoni@redhat.com>
2733
2734 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2735 contains something meaningful at all times.
2736
2737Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2738
62599e99 2739 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2740
56296155
BC
2741Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2742
62599e99 2743 * MAINTAINERS (write after approval): Added self.
56296155 2744
9710e734
AC
27452003-08-07 Andrew Cagney <cagney@redhat.com>
2746
2747 * inferior.h (AT_SYMBOL): Define.
2748 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2749 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2750 * mips-tdep.c (mips_call_dummy_address): Delete function.
2751 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2752 set call_dummy_address.
2753
98b3ab73
AC
27542003-08-07 Andrew Cagney <cagney@redhat.com>
2755
2756 * language.c (op_error): Delete function.
2757 (binop_type_check): Delete function.
2758 * language.h (type_op_error, range_op_error): Delete macros.
2759 (op_error): Delete declaration.
2760
2fcf52f0
AC
27612003-08-07 Andrew Cagney <cagney@redhat.com>
2762
2763 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2764
abd4220e 27652003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2766
abd4220e 2767 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2768 (x86_64_push_arguments): Skip the red zone.
abd4220e 2769
9dd5f34f
AC
27702003-08-05 Andrew Cagney <cagney@redhat.com>
2771
2772 * reggroups.c (reggroup_next): Check for the final entry.
2773
e5e78edc
AC
27742003-08-04 Andrew Cagney <cagney@redhat.com>
2775
ab4e3d93
AC
2776 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2777 * cli/cli-script.c (define_command): Call query directly, instead
2778 of passing it a buffer.
2779 * ocd.c (ocd_error): Pass error a constant format string.
2780 * remote-mips.c (mips_error): Use fputs_filtered.
2781
1062ca82
AC
2782 * solib-svr4.c (_initialize_svr4_solib): Update
2783 register_gdbarch_data call.
2784 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2785
fcc1c85c
AC
2786 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2787 (register_gdbarch_data): Delete "free" parameter. Update
2788 comments.
2789 * gdbarch.h, gdbarch.c: Re-generate.
2790 * reggroups.c (_initialize_reggroup): Update.
2791 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2792 * frame-base.c (_initialize_frame_base): Update.
2793 * frame-unwind.c (_initialize_frame_unwind): Update.
2794 * user-regs.c (_initialize_user_regs): Update.
2795 * remote.c (_initialize_remote): Update.
2796 * regcache.c (_initialize_regcache): Update.
2797
116f06ea
AC
2798 * regcache.c (xfree_regcache_descr): Delete function.
2799 (_initialize_regcache): Update call to register_gdbarch_data.
2800 (init_regcache_descr, init_legacy_regcache_descr): Use
2801 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2802
e5e78edc
AC
2803 * remote.c (free_remote_state): Delete function.
2804 (_initialize_remote): Update register_gdbarch_data.
2805 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2806 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2807
6c7d17ba
AC
28082003-08-04 Andrew Cagney <cagney@redhat.com>
2809
2810 * reggroups.c (struct reggroup_el): Define.
2811 (struct reggroups): Delete field "nr_group". Replace array
2812 "group" with a "first" to "last" linked list.
2813 (reggroups_init): Update. Allocate using gdbarch's obstack.
2814 (reggroups_free): Delete function.
2815 (add_group): Update. Add "el" parameter.
2816 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2817 (default_groups): Update.
2818 (reggroup_next): Replace reggroups.
2819 (reggroups_dump): Update.
2820 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2821 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2822 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2823
89b7795b
DJ
28242003-08-04 Daniel Jacobowitz <drow@mvista.com>
2825
2826 * Makefile.in (tui-interp.o): Update dependencies.
2827
306d9ac5
DC
28282003-08-04 David Carlton <carlton@kealia.com>
2829
2830 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2831 to internal_error call.
2832 * source.c (forward_search_command): Add "%s" format argument.
2833 (reverse_search_command): Ditto.
2834 * top.c (quit_confirm): Ditto.
2835 * cli/cli-setshow.c (do_setshow_command): Ditto.
2836 * cp-valprint.c (cp_print_class_method): Replace
2837 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2838 (cp_print_class_member): Ditto.
2839 * event-top.c (command_line_handler): Ditto.
2840 * linux-proc.c (linux_info_proc_cmd): Ditto.
2841 * p-typeprint.c (pascal_type_print_base): Ditto.
2842 * p-valprint.c (pascal_object_print_class_method): Ditto.
2843 (pascal_object_print_class_member): Ditto.
2844 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2845 * remote.c (remote_cisco_section_offsets): Ditto.
2846 * top.c (command_line_input): Ditto.
2847 * utils.c (vwarning,error_stream,quit): Ditto.
2848 * valprint.c (print_floating,print_binary_chars)
2849 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2850
57bfe177
AC
28512003-08-04 Andrew Cagney <cagney@redhat.com>
2852
2853 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2854
e546b999
AC
28552003-08-02 Andrew Cagney <cagney@redhat.com>
2856
2857 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2858 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2859 amd64fbsd-nat.c.
2860
91092ee5
AC
28612003-08-02 Andrew Cagney <cagney@redhat.com>
2862
2863 * Makefile.in: Update all dependencies and definitions.
2864
889f28e2
AF
28652003-08-02 Adam Fedor <fedor@gnu.org>
2866
2867 * linespec.c (is_objc_method_format): New function
2868 (decode_line_1, locate_first_half): Use it.
2869 Fixes PR objc/1298
2870
880bc914
AC
28712003-08-01 Andrew Cagney <cagney@redhat.com>
2872
2873 * NEWS: Mention that m32r is multi-arch.
2874 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2875 * configure.tgt: Recognize m32r-*-*.
2876 * config/m32r/tm-m32r.h: Delete file.
2877 * config/m32r/m32r.mt: New file.
2878 * m32r-rom.c (m32r_upload_command): Use hostent only when
2879 gethostname succeeds, in order to avoid a compilation
2880 warning.
2881 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2882 compiler warning.
2883
19f59343
MS
28842003-08-01 Michael Snyder <msnyder@redhat.com>
2885
2886 * sh-tdep.c (sh_frame_align): New gdbarch method.
2887 (sh_gdbarch_init): Set up frame_align method.
2888
4e7d7511
MS
28892003-07-31 Michael Snyder <msnyder@redhat.com>
2890
2891 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2892 which is already covered by the new frames infrastructure.
2893
63022984
AC
28942003-07-31 Andrew Cagney <cagney@redhat.com>
2895
2896 * user-regs.c (struct user_reg): Add "next" link.
2897 (struct user_regs): Replace "user" with "first" and "last" links.
2898 (append_user_reg): Add pre-allocated "reg" parameter.
2899 (builtin_user_regs): Provide initial value for "last".
2900 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2901 (user_regs_init): Allocate memory from the gdbarch obstack.
2902 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2903 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2904 linked list.
2905 (usernum_to_user_reg): New function.
2906 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2907 (value_of_user_reg): Use usernum_to_user_reg.
2908 (user_regs_free): Delete function.
2909 (_initialize_user_regs): Update register_gdbarch_data call.
2910
7cf6e574
DJ
29112003-07-31 Daniel Jacobowitz <drow@mvista.com>
2912
2913 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2914
c48a845b
MS
29152003-07-30 Michael Snyder <msnyder@redhat.com>
2916
4e7d7511 2917 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2918 * infcall.c (call_function_by_hand): Pass struct_addr to
2919 value_being_returned.
2920 * infcmd.c (print_return_value): Pass zero as struct_addr.
2921 * values.c (value_being_returned): If struct_addr is passed,
2922 use it instead of trying to recover it from the inferior.
2923
f0d8db19
KB
29242003-07-30 Kevin Buettner <kevinb@redhat.com>
2925
2926 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2927 the prologue analyzer won't need to attempt to extract the pc
2928 value from the woefully incomplete dummy frame.
2929 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2930 possible. Disable code which modifies the frame.
2931
e5c113a1
AC
29322003-07-28 Andrew Cagney <cagney@redhat.com>
2933
2934 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2935 to level 2.
2936 (annotate_breakpoints_table, annotate_record): Ditto.
2937 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2938 (annotate_field_name_end, annotate_field_value): Ditto.
2939 (annotate_field_end, annotate_frame_source_begin): Ditto.
2940 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2941 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2942 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2943 (annotate_frame_address_end, annotate_frame_address): Ditto.
2944 (annotate_frame_args, annotate_frame_end): Ditto.
2945 (annotate_frame_where, annotate_arg_begin): Ditto.
2946 (annotate_arg_name_end, annotate_arg_value): Ditto.
2947 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2948 (annotate_function_call, annotate_signal_name): Ditto.
2949 (annotate_signal_string, annotate_signal_name_end): Ditto.
2950 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2951 (annotate_value_begin, annotate_value_history_value): Ditto.
2952 (annotate_value_history_end, annotate_value_end): Ditto.
2953 (annotate_display_begin, annotate_display_number_end): Ditto.
2954 (annotate_display_format, annotate_display_expression): Ditto.
2955 (annotate_display_expression_end, annotate_display_value): Ditto.
2956 (annotate_display_end, annotate_array_section_begin): Ditto.
2957 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2958 (annotate_elt, annotate_array_section_end): Ditto.
2959
bb1db049
AC
29602003-07-28 Andrew Cagney <cagney@redhat.com>
2961
2962 * regcache.c (struct regcache_descr): Update comments on
2963 nr_raw_registers.
2964 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2965 sizeof_raw_register_valid_p.
2966 (init_regcache_descr): Set nr_raw_registers and
2967 sizeof_raw_register_valid_p before calling
2968 init_legacy_regcache_descr.
2969
20e6603c
AC
29702003-07-28 Andrew Cagney <cagney@redhat.com>
2971
2972 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2973 MOD NUM_REGS.
2974
db742940
DJ
29752003-07-28 Daniel Jacobowitz <drow@mvista.com>
2976
2977 * thread.c (info_threads_command): Use get_selected_frame ().
2978 Check that there is at least one non-sentinel frame.
2979
ce7f4371
SC
29802003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2981
2982 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2983 (m68hc11_pop_frame): Remove.
2984 (m68hc11_frame_saved_pc): Remove.
2985 (m68hc11_frame_chain): Remove.
2986 (m68hc11_frame_init_saved_regs): Remove.
2987 (m68hc11_init_extra_frame_info): Remove.
2988 (m68hc11_store_struct_return): Remove.
2989 (m68hc11_saved_pc_after_call): Remove.
2990
1ea653ae
SC
29912003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2992
2993 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2994 frame unwind information.
2995 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2996 and adapted for frame unwinding.
2997 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2998 (m68hc11_unwind_pc): New function.
2999 (m68hc11_frame_unwind_cache): New function to analyze frames.
3000 (m68hc11_frame_this_id): New function to create new frame struct.
3001 (m68hc11_frame_prev_register): New function to unwind a register from
3002 the frame.
3003 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3004 (m68hc11_frame_p): New function for the above.
3005 (m68hc11_frame_base_address): New function to return fp of frame.
3006 (m68hc11_frame_args_address): Update for frame.
3007 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3008 (m68hc11_unwind_sp): New function.
3009 (m68hc11_unwind_dummy_id): New function.
3010 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3011 calls.
3012
c8a7f6ac
SC
30132003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3014
3015 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3016 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3017 when we are beyond the current pc.
3018
3dc990bf
SC
30192003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3020
3021 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3022 from m68hc11_push_arguments.
3023 (m68hc11_push_arguments): Remove.
3024 (m68hc11_push_return_address): Remove.
3025 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3026 handlers; remove deprecated_extra_stack_alignment_needed.
3027
222e5d1d
AC
30282003-07-27 Andrew Cagney <cagney@redhat.com>
3029
3030 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3031 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3032 REAL_PC and not the pointer.
3033 * hppa-hpux-tdep.c: Include frame.h
3034
a7e9a47e
AC
30352003-07-27 Andrew Cagney <cagney@redhat.com>
3036
3037 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3038 GDB_MULTI_ACH_PARTIAL.
3039
7e3dd49e
AC
30402003-07-27 Andrew Cagney <cagney@redhat.com>
3041
3042 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3043 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3044 operator at start and not end of line.
3045 (decode_prologue): Ditto.
3046 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3047 frame_unwind_register_unsigned instead of
3048 frame_unwind_unsigned_register.
3049 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3050 read_register.
3051 (m32r_push_dummy_call): Use register_size instead of
3052 REGISTER_RAW_SIZE.
3053 (m32r_frame_sniffer): Replace m32r_frame_p.
3054 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3055 * m32r-rom.c (report_transfer_performance): Delete extern
3056 declaration.
3057 (m32r_load, m32r_upload_command): Use print_transfer_performance
3058 instead of report_transfer_performance.
3059 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3060 / add_show_from_set.
3061
0880807f
AC
30622003-07-26 Andrew Cagney <cagney@redhat.com>
3063
3064 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3065 store_return_value and extract_struct_value_address.
3066
64ae9269
DJ
30672003-07-26 Daniel Jacobowitz <drow@mvista.com>
3068
3069 PR c++/1267
3070 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3071 NULL, default to the section containing PC.
3072
e286caf2
SC
30732003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3074
3075 * NEWS: Mention "regs" deprecated for m68hc11 too.
3076
3077 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3078 (m68hc11_print_register): New function to print out one register.
3079 (m68hc11_print_registers_info): New function to print registers.
3080 (show_regs): Deprecate and use the above.
3081 (m68hc11_gdbarch_init): Install the print_registers_info.
3082
705b278b
JJ
30832003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3084
3085 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3086 that we have a SIGTRAP before returning non-zero.
3087
63cd4198
EZ
30882003-07-23 Michal Ludvig <mludvig@suse.cz>
3089 Elena Zannoni <ezannoni@redhat.com>
3090
3091 * linespec.c (decode_line_2): Avoid crash if
3092 find_function_start_sal() returns empty record.
3093
6926787d
AS
30942003-07-23 Andreas Schwab <schwab@suse.de>
3095
3096 * ia64-tdep.c (ia64_print_insn): New function.
3097 (ia64_gdbarch_init): Set print_insn to it.
3098 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3099 deprecated_tm_print_insn_info.
3100
708cc1b6
MS
31012003-07-22 Michael Snyder <msnyder@redhat.com>
3102
3103 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3104 handle 8-bit returns (long long).
3105 (h8300h_extract_return_value): Ditto.
3106 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3107
aebd7893
AC
31082003-07-22 Andrew Cagney <cagney@redhat.com>
3109
3110 * gdbarch.c Include "gdb_obstack.h".
3111 (struct gdbarch): Add an "obstack".
3112 (alloc_gdbarch_data): Allocate the gdbarch data using
3113 GDBARCH_OBSTACK_CALLOC.
3114 (free_gdbarch_data): Delete function.
3115 (gdbarch_obstack_zalloc): New function.
3116 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3117 Assert that the architecture is not initialized.
3118 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3119 vector from the obstack.
3120 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3121 architecture obstack.
3122 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3123 (set_gdbarch_data): Assert that the data is not initialized.
3124 (struct gdbarch_data): Delete member "free".
3125 (register_gdbarch_data): Do not initialize "free".
3126 * gdbarch.h, gdbarch.c: Re-generate.
3127
153721e6
AC
31282003-07-22 Andrew Cagney <cagney@redhat.com>
3129
3130 * configure.in (build_warnings): Add -Wformat-nonliteral.
3131 * configure: Re-generate.
3132
c193f044 31332003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
3134
3135 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 3136
c3228f12
EZ
31372003-07-22 Elena Zannoni <ezannoni@redhat.com>
3138
3139 * findvar.c (read_var_value): Remove case for thread local storage
3140 variables. It is now entirely handled by the dwarf2 location
3141 expression code.
3142 * printcmd.c (address_info): Ditto.
3143 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3144 enumeration value.
3145 (struct symbol): Remove objfile field, which was used by
3146 LOC_THREAD_LOCAL_STATIC only.
3147 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3148 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3149 usage of objfile pointer.
3150 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3151 thread local variables.
3152 Add include of objfiles.h.
3153 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3154 storage variables.
3155 * Makefile.in (dwarf2loc.o): Update dependencies.
3156
aef9bcd2
AC
31572003-07-22 Andrew Cagney <cagney@redhat.com>
3158
3159 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3160 get_frame_base.
3161 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3162 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3163 (struct value): Add opaque declaration.
3164 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3165
d95a8903
AC
31662003-07-21 Andrew Cagney <cagney@redhat.com>
3167
3168 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3169 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3170
4db73d49
SC
31712003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3172
3173 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3174 regcache_cooked_read_unsigned instead of read_register.
3175 (m68hc11_saved_pc_after_call): Likewise.
3176 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3177 instead of write_register.
3178 (m68hc11_register_type): New function.
3179 (m68hc11_register_virtual_type): Remove.
3180 (m68hc11_store_return_value): Convert to use the regcache.
3181 (m68hc11_extract_struct_value_address): Likewise.
3182 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3183 m68hc11_register_type; undeprecate store_return_value and
3184 extract_struct_value_address.
3185
ef2b8fcd
SC
31862003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3187
3188 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3189 and translate to use regcache.
3190 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3191
625b0b97
AC
31922003-07-18 Andrew Cagney <cagney@redhat.com>
3193
3194 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3195 * gdbarch.h, gdbarch.c: Re-generate.
3196 * i386-tdep.c (i386_gdbarch_init): Do not set
3197 DWARF2_BUILD_FRAME_INFO.
3198 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3199 unconditionally.
3200 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3201 DWARF2_BUILD_FRAME_INFO.
3202
22b0d388
AC
32032003-07-18 Andrew Cagney <cagney@redhat.com>
3204
3205 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3206 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3207
1ce5d6dd
AC
32082003-07-18 Andrew Cagney <cagney@redhat.com>
3209
3210 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3211 frame_unwind_address_in_block, instead of frame_pc_unwind.
3212 (dwarf2_frame_cache): Ditto.
3213
e6e5e94c
AC
32142003-07-18 Andrew Cagney <cagney@redhat.com>
3215
3216 * user-regs.h (struct gdbarch): Declare opaque.
3217 * ui-out.h (struct ui_file): Declare opaque.
3218 * dwarf2-frame.h (struct frame_info): Declare opaque.
3219
5483d879
KW
32202003-07-18 Kris Warkentin <kewarken@qnx.com>
3221
3222 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3223 #include "...".
3224 (procfs_meminfo): Change strerror to safe_strerror.
3225 (procfs_can_run): Remove K&R badness.
3226
278a7cf7
MS
32272003-07-17 Michael Snyder <msnyder@redhat.com>
3228
3229 * remote-sim.c: Comment typo fix.
3230
606e3b82
AC
32312003-07-17 Andrew Cagney <cagney@redhat.com>
3232
3233 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3234 configure.
3235 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3236 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3237 GDB_MULTI_ARCH_PARTIAL.
3238
c43af07c
EZ
32392003-07-17 Elena Zannoni <ezannoni@redhat.com>
3240
3241 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3242 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3243 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3244
3b85b0f1
TR
32452003-07-16 Theodore A. Roth <troth@openavr.org>
3246
3247 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3248 found.
3249 (avr_frame_unwind_cache): Don't unwind FP for main.
3250 Update a comment.
3251 Save the computed prev_sp.
3252 (avr_saved_regs_unwinder): Remove function.
3253 (avr_frame_prev_register): Use PC unwind logic from
3254 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3255
336d1bba
AC
32562003-07-16 Andrew Cagney <cagney@redhat.com>
3257
3258 * frame-base.h (frame_base_p_ftype): Delete definition.
3259 (frame_base_append_predicate): Delete declaration.
3260 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3261 (frame_unwind_append_predicate): Delete declaration.
3262 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3263 (append_predicate): Delete parameter "p".
3264 (frame_unwind_append_predicate): Delete function.
3265 (frame_unwind_append_sniffer): Update call to append_predicate.
3266 (frame_unwind_free): Delete function.
3267 (_initialize_frame_unwind): Pass NULL as "free" to
3268 register_gdbarch_data.
3269 (frame_unwind_init): Append the dummy_frame_sniffer.
3270 (frame_unwind_find_by_frame): Simplify.
3271 * frame-base.c (struct frame_base_table): Delete field "p".
3272 (append_predicate): Delete parameter "p".
3273 (frame_base_append_predicate): Delete function.
3274 (frame_base_append_sniffer): Update call to append_predicate.
3275 (frame_base_free): Delete function.
3276 (frame_base_find_by_frame): Simplify.
3277 (_initialize_frame_base): Pass NULL as "free" to
3278 register_gdbarch_data.
3279 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3280 (x86_64_sigtramp_frame_sniffer): Replace
3281 "x86_64_sigtramp_frame_p".
3282 (x86_64_init_abi): Set the frame unwind sniffers.
3283 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3284 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3285 (m68k_gdbarch_init): Set the frame unwind sniffers.
3286 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3287 "i386_sigtramp_frame_p".
3288 (i386_frame_sniffer): Replace "i386_frame_p".
3289 (i386_gdbarch_init): Set the frame unwind sniffers.
3290 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3291 (avr_gdbarch_init): Set the frame unwind sniffers.
3292 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3293 "alpha_sigtramp_frame_p"
3294 (alpha_heuristic_frame_sniffer): Replace
3295 "alpha_heuristic_frame_p".
3296 (alpha_gdbarch_init): Set the frame unwind sniffers.
3297 (alpha_dwarf2_init_abi): Ditto.
3298 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3299 "alpha_debug_frame_p".
3300 (alpha_mdebug_frame_base_sniffer): Replace
3301 "alpha_mdebug_frame_base_p".
3302 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3303 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3304 (d10v_gdbarch_init): Set the frame unwind sniffer.
3305 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3306 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3307 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3308 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3309 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3310 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3311
48db5a3c
CV
33122003-07-16 Michael Snyder <msnyder@redhat.com>
3313
3314 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3315 should go thru sh_dsp_register_sim_regno, else the dsp regs
3316 will not get the right values.
3317
33182003-07-16 Corinna Vinschen <vinschen@redhat.com>
3319
3320 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3321 deprecated_store_floating by call to store_typed_floating.
3322 (sh_sh4_register_convert_to_raw): Substitute call to
3323 deprecated_extract_floating by call to extract_typed_floating.
3324
33252003-07-16 Corinna Vinschen <vinschen@redhat.com>
3326
3327 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3328
33292003-07-16 Corinna Vinschen <vinschen@redhat.com>
3330
3331 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3332 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3333 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3334 as possible.
3335 (do_pseudo_register): Remove.
3336 (sh_push_dummy_code): New function.
3337 (sh64_store_struct_return): Rename from sh_store_struct_return.
3338 Only called for sh64 now.
3339 (sh_extract_struct_value_address): Regcache'ify.
3340 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3341 and accomodate new tasks.
3342 (sh64_push_return_address): Rename from sh_push_return_address.
3343 Only called for sh64 now.
3344 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3345 Regcache'ify.
3346 (sh3e_sh4_extract_return_value): Regcache'ify.
3347 (sh_default_store_return_value): Ditto.
3348 (sh3e_sh4_store_return_value): Ditto.
3349 (sh_default_register_byte): Remove.
3350 (sh_sh4_register_byte): Remove.
3351 (sh_default_register_raw_size): Remove.
3352 (sh_sh4_register_raw_size): Remove.
3353 (sh_register_virtual_size): Remove.
3354 (sh_sh3e_register_virtual_type): Remove.
3355 (sh_sh3e_register_type): New function.
3356 (sh_sh4_register_virtual_type): Remove.
3357 (sh_sh4_register_type): New function.
3358 (sh_default_register_virtual_type): Remove.
3359 (sh_default_register_type): New function.
3360 (do_fv_register_info): Add parameters to accomodate call from
3361 sh_print_registers_info.
3362 (do_dr_register_info): Ditto.
3363 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3364 Add parameters to accomodate call from sh_print_registers_info.
3365 (sh_do_fp_register): Ditto.
3366 (sh64_do_pseudo_register): Call do_dr_register_info,
3367 do_fv_register_info and sh_do_fp_register with default parameters.
3368 (sh_do_register): Add parameters to accomodate call from
3369 sh_print_registers_info.
3370 (sh_print_register): Ditto.
3371 (sh_print_registers_info): Rename from sh_do_registers_info.
3372 Add parameters to be used as gdbarch_print_registers_info
3373 implementation. Accomodate removed do_pseudo_register function
3374 pointer.
3375 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3376 function pointer. Call sh_print_register with default parameters.
3377 (sh64_do_registers_info): Call sh_print_registers_info instead of
3378 sh_do_registers_info.
3379 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3380 detection of deprecated vs. non-deprecated functionality.
3381 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3382 function pointer assignments by direct function calls.
3383
e8a89fe2
AC
33842003-07-15 Andrew Cagney <cagney@redhat.com>
3385
3386 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3387 (frame_register_unwind, create_new_frame): Ditto.
3388 (legacy_get_prev_frame, get_frame_type): Ditto.
3389 (get_frame_base_address): Use frame_base_find_by_frame.
3390 (get_frame_locals_address): Use frame_base_find_by_frame.
3391 (get_frame_args_address): Use frame_base_find_by_frame.
3392 * frame-base.h (frame_base_sniffer_ftype): Declare.
3393 (frame_base_append_sniffer): Declare.
3394 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3395 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3396 (frame_base_append_sniffer): New function.
3397 (frame_base_append_predicate): Add a NULL sniffer.
3398 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3399 (struct frame_base_table): Add "sniffer".
3400 (frame_base_free): Free the "sniffer" table.
3401 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3402 (frame_unwind_append_sniffer): Declare.
3403 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3404 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3405 (struct frame_unwind_table): Add "sniffer", delete "middle".
3406 (append_predicate): Add "sniffer" parameter, append the sniffer.
3407 (frame_unwind_init): Update append_predicate call.
3408 (frame_unwind_append_sniffer): New function.
3409 (frame_unwind_append_predicate): Update append_predicate call.
3410 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3411
0714963c
AC
34122003-07-15 Andrew Cagney <cagney@redhat.com>
3413
3414 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3415 before code inhibiting repeated unwind attempts. Add to
3416 commentary on that test's problems.
3417 * blockframe.c (inside_main_func): Look for "main" in the minimal
3418 symbol table.
3419 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3420 identical.
3421
d9170e22
AC
34222003-07-15 Andrew Cagney <cagney@redhat.com>
3423
3424 * complaints.c (struct explanation): Define.
3425 (struct complaints): Change type of "explanation" to "struct
3426 explanation".
3427 (symfile_explanations): Convert to a "struct explanation" table.
3428 (vcomplaint): Update.
3429
eba29c8c
ML
34302003-07-15 Michal Ludvig <mludvig@suse.cz>
3431
3432 * x86-64-linux-nat.c (regmap): Removed.
3433 (supply_gregset, fill_gregset): Call
3434 x86_64_linux_(fill,supply)_gregset functions.
3435 * x86-64-linux-tdep.c (USER_*): New defines.
3436 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3437 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3438 New functions.
3439 (fetch_core_registers): Ditto.
3440 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3441 * x86-64-linux-tdep.h: New file.
3442 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3443 and core-regset.o.
3444 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3445
68cc0bfb
MK
34462003-07-13 Mark Kettenis <kettenis@gnu.org>
3447
88a115f7
MK
3448 * x86-64-tdep.c (x86_64_store_return_value): Use
3449 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3450
68cc0bfb
MK
3451 * configure.host: Add x86_64-*-freebsd*.
3452 * configure.tgt: Add x86_64-*-freebsd*.
3453 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3454 * amd64fbsd-nat.c: New file.
3455 * amd64fbsd-tdep.c: New file.
3456 * config/i386/nm-fbsd64.h: New file.
3457 * config/i386/fbsd64.mh: New file.
3458 * config/i386/fbsd64.mt: New file.
3459
138e7be5
MK
34602003-07-11 Mark Kettenis <kettenis@gnu.org>
3461
3462 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3463 `sc_regs_offset' and `sc_fpregs_offset'.
3464 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3465 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3466 (alpha_sigtramp_register_address): Rewrite to use new members of
3467 `struct gdbarch_tdep'.
3468 (alpha_gdbarch_init): Initialize new members of struct
3469 gdbarch_tdep'.
3470 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3471 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3472 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3473 (alphafbsd_pc_in_sigtramp): Implement.
3474 (alphafbsd_sigtramp_offset): New function.
3475 (alphafbsd_sigcontext_addr): New function.
3476 (alphafbsd_init_abi): Initialize signal trampoline related members
3477 of `struct gdbarch_tdep'.
3478 (_initialize_alphafbsd_tdep): Add prototype.
3479
95303a68
TR
34802003-07-11 Theodore A. Roth <troth@openavr.org>
3481
ba292e4c
TR
3482 * Makefile.in (install-only): Quote sed expression when generating
3483 transformed_name.
95303a68 3484
6896c0c7
RH
34852003-07-11 Richard Henderson <rth@redhat.com>
3486
3487 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3488 * dwarf2-frame.c: Include complaints.h.
3489 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3490 variable initialization; return NULL on error.
3491 (decode_frame_entry): New.
3492
8edd5d01
AC
34932003-07-11 Andrew Cagney <cagney@redhat.com>
3494
c4a09524
AC
3495 * frame.h (frame_address_in_block): Delete declaration.
3496 * blockframe.c (frame_address_in_block): Delete function.
3497 (get_frame_block): Use get_frame_address_in_block.
3498 (block_innermost_frame): Ditto.
3499 * stack.c (print_frame, backtrace_command_1): Ditto.
3500
8edd5d01
AC
3501 * frame.h (get_frame_address_in_block): Declare.
3502 (frame_unwind_address_in_block): Declare.
3503 * frame.c (frame_unwind_address_in_block): New function.
3504 (get_frame_address_in_block): New function.
3505
f7968451
AC
35062003-07-10 Andrew Cagney <cagney@redhat.com>
3507
3508 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3509 pre-default. Note: re-generate has no effect.
3510
ae99b398
AC
35112003-07-10 Andrew Cagney <cagney@redhat.com>
3512
3513 * gdbarch.sh: When a variable, but not a function, compare against
3514 0. Fix problem in previous patch.
3515 * gdbarch.c: Re-generate.
3516
956ac328
AC
35172003-07-10 Andrew Cagney <cagney@redhat.com>
3518
3519 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3520 functions against NULL, not 0.
3521 * gdbarch.c: Re-generate.
3522
287c3240
FF
35232003-07-10 Fred Fish <fnf@ninemoons.com>
3524
3525 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3526 null string instead of a null pointer.
3527 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3528
32f63c4b
MS
35292003-07-09 Michael Snyder <msnyder@redhat.com>
3530
3531 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3532
402ecd56
MK
35332003-07-09 Mark Kettenis <kettenis@gnu.org>
3534
3535 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3536 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3537 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3538 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3539 * x86-64-tdep.c: ... from here.
3540
c481dac7
AS
35412003-07-09 Andreas Schwab <schwab@suse.de>
3542
3543 * m68k-tdep.h (enum struct_return): Define.
3544 (struct gdbarch_tdep): Add struct_return.
3545 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3546 bytes are padded to the right, not to the left. Pass struct value
3547 address in register %a1, not on stack.
3548 (m68k_use_struct_convention): New function.
3549 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3550 struct_return in tdep to pcc_struct_return.
3551 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3552 reg_struct_return.
3553
64176fa3
JB
35542003-07-09 Joel Brobecker <brobecker@gnat.com>
3555
3556 * somread.c (som_symfile_offsets): Fix compilation error.
3557
96a4ee76
AC
35582003-07-09 Andrew Cagney <cagney@redhat.com>
3559
3560 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3561 Add comments about the checks.
3562
1517c6d1
AC
35632003-07-08 Andrew Cagney <cagney@redhat.com>
3564
3565 * Makefile.in: Make dependency section headers consistent.
3566 (config_h): Move to $BUILD headers section.
3567 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3568 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3569 (ada-exp.tab.c): Move to YACC/LEX section.
3570 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3571 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3572
dc5dd1eb
KW
35732003-07-08 Kris Warkentin <kewarken@qnx.com>
3574
3575 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
3576 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3577 of strerror with safe_strerror, use ISO C function definitions,
3578 and replace instances of sprintf with snprintf.
dc5dd1eb 3579
612dde91
AC
35802003-07-07 Andrew Cagney <cagney@redhat.com>
3581
3582 * frame.c (get_prev_frame): Enable check for identical frames.
3583 Update comments. Update error messages.
3584
492c11d3
JB
35852003-07-07 Joel Brobecker <brobecker@gnat.com>
3586
3587 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3588
376a5a49
JB
35892003-07-07 Joel Brobecker <brobecker@gnat.com>
3590
3591 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3592 sort_symtab_syms, no longer necessary.
3593
22b4a9ad
JB
35942003-07-07 Joel Brobecker <brobecker@gnat.com>
3595
3596 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3597
5bbcb741
JB
35982003-07-07 Joel Brobecker <brobecker@gnat.com>
3599
3600 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3601 (mips_register_byte): Likewise.
3602
c139e7d9
DJ
36032003-07-07 Daniel Jacobowitz <drow@mvista.com>
3604
3605 * Makefile.in (sparc_tdep_h): New.
3606 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3607 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3608 * sparc-linux-nat.c: Include "sparc-tdep.h".
3609 * sparc-nat.c: Likewise.
3610 * sparc-tdep.c: Likewise.
3611 * sparc64nbsd-nat.c: Likewise.
3612 * sparcnbsd-nat.c: Likewise.
3613 * sparcnbsd-tdep.c: Likewise.
3614 * sparc-tdep.h: New file.
3615 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3616 and sparc_npc_regnum.
3617
fd8f87c5
DJ
36182003-07-07 Daniel Jacobowitz <drow@mvista.com>
3619
3620 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3621 (mips_linux_cannot_store_register): List supported instead of
3622 unsupported registers.
3623
13adf674
DJ
36242003-07-07 Daniel Jacobowitz <drow@mvista.com>
3625
3626 * disasm.c (dump_insns): Separate instructions from addresses.
3627
8de307e0
AS
36282003-07-07 Andreas Schwab <schwab@suse.de>
3629
3630 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3631 dependencies.
3632 * m68k-tdep.c (NUM_FREGS): Delete.
3633 (SIG_PC_FP_OFFSET): Delete.
3634 (TARGET_M68K): Delete.
3635 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3636 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3637 P_MOVEL_SP, P_MOVEML_SP): Define.
3638 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3639 P_TRAP): Delete.
3640 (m68k_register_raw_size): Delete.
3641 (m68k_register_virtual_size): Delete.
3642 (m68k_register_type): Renamed from m68k_register_virtual_type and
3643 add gdbarch argument.
3644 (m68k_store_struct_return): Delete.
3645 (m68k_deprecated_extract_return_value): Delete.
3646 (m68k_deprecated_extract_struct_value_address): Delete.
3647 (m68k_frame_chain): Delete.
3648 (m68k_frame_saved_pc): Delete.
3649 (m68k_fix_call_dummy): Delete.
3650 (m68k_push_dummy_frame): Delete.
3651 (m68k_pop_frame): Delete.
3652 (m68k_extract_return_value): New function.
3653 (m68k_store_return_value): Rewrite using regcache.
3654 (m68k_extract_struct_value_address): Rewrite using regcache.
3655 (m68k_push_dummy_call): New function.
3656 (struct m68k_frame_cache): Define.
3657 (m68k_alloc_frame_cache): New function.
3658 (m68k_analyze_frame_setup): New function.
3659 (m68k_analyze_register_saves): New function.
3660 (m68k_analyze_prologue): New function.
3661 (m68k_skip_prologue): Rewrite using above functions.
3662 (m68k_unwind_pc): New function.
3663 (m68k_frame_cache): New function.
3664 (m68k_frame_this_id): New function.
3665 (m68k_frame_prev_register): New function.
3666 (m68k_frame_unwind): New variable.
3667 (m68k_frame_p): New function.
3668 (m68k_sigtramp_frame_cache): New function.
3669 (m68k_sigtramp_frame_this_id): New function.
3670 (m68k_sigtramp_frame_prev_register): New function.
3671 (m68k_sigtramp_frame_unwind): New variable.
3672 (m68k_sigtramp_frame_p): New function.
3673 (m68k_frame_base_address): New function.
3674 (m68k_frame_base): New function.
3675 (m68k_unwind_dummy_id): New function.
3676 (fill_gregset): Use regcache_collect.
3677 (fill_fpregset): Likewise.
3678 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3679 defined.
3680 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3681 deprecated_init_frame_pc, deprecated_store_struct_return,
3682 deprecated_extract_return_value, deprecated_store_return_value,
3683 deprecated_frame_chain, deprecated_frame_saved_pc,
3684 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3685 deprecated_register_virtual_size,
3686 deprecated_max_register_raw_size,
3687 deprecated_max_register_virtual_size,
3688 deprecated_register_virtual_type, deprecated_register_size,
3689 deprecated_register_byte, deprecated_register_bytes,
3690 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3691 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3692 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3693 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3694 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3695 deprecated_push_dummy_frame, deprecated_pop_frame,
3696 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3697 only if SYSCALL_TRAP is defined. Set extract_return_value,
3698 store_return_value, extract_struct_value_address, register_type,
3699 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3700 predicates.
3701 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3702 M68K_MAX_REGISTER_SIZE): Define.
3703 (struct m68k_sigtramp_info): Define.
3704 (struct gdbarch_tdep): Add get_sigtramp_info.
3705 * m68klinux-nat.c (fetch_register): Use register_size instead of
3706 REGISTER_RAW_SIZE. Don't put assignment in if.
3707 (store_register): Likewise.
3708 (fetch_inferior_registers): Likewise.
3709 (store_inferior_registers): Likewise.
3710 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3711 (m68k_linux_frame_saved_pc): Delete.
3712 (m68k_linux_sigcontext_reg_offset,
3713 m68k_linux_ucontext_reg_offset): Define.
3714 (m68k_linux_get_sigtramp_info): New function.
3715 (m68k_linux_extract_return_value): Rewrite using regcache.
3716 (m68k_linux_store_return_value): Likewise.
3717 (m68k_linux_extract_struct_value_address): Likewise.
3718 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3719 Don't set deprecated_frame_saved_pc,
3720 deprecated_extract_return_value, deprecated_store_return_value,
3721 deprecated_extract_struct_value_address. Set
3722 extract_return_value, store_return_value,
3723 extract_struct_value_address.
3724
eb8bc282
AC
37252003-07-07 Andrew Cagney <cagney@redhat.com>
3726
3727 * expprint.c: Include "user-regs.h" instead of "frame.h".
3728 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3729 frame_map_regnum_to_name.
3730 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3731 (frame_map_name_to_regnum): Simplify, call
3732 user_reg_map_name_to_regnum.
3733 (frame_map_regnum_to_name): Simplify, call
3734 user_reg_map_regnum_to_name.
3735 (frame_register_unwind): Update.
3736 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3737 (_initialize_frame_reg): Call user_reg_add_builtin.
3738 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3739 (value_of_register): Use value_of_user_reg.
3740 * eval.c (evaluate_subexp_standard): Update.
3741 * parse.c (write_dollar_variable): Update.
3742 * d10v-tdep.c (d10v_print_registers_info): Update.
3743 * infcmd.c (registers_info): Update.
3744 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3745 (builtin_regs_h): Delete macro.
3746 (user_regs_h): Define.
3747 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3748 (builtin-regs.o): Delete target.
3749 (user-regs.o): Specify dependencies.
3750 (expprint.o): Update dependencies.
3751 (findvar.o): Update dependencies.
3752 (frame.o): Update dependencies.
3753 (std-regs.o): Update dependencies.
3754
9f476a01
CF
37552003-07-06 Christopher Faylor <cgf@redhat.com>
3756
3757 * win32-nat.c (solib_symbols_add): Use one variable for all section
3758 address stuff. Pass variable rather than address of variable to
3759 safe_symbol_file_add.
3760
a731b831
AS
37612003-07-06 Andreas Schwab <schwab@suse.de>
3762
3763 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3764
9f83329d
JB
37652003-07-04 Joel Brobecker <brobecker@gnat.com>
3766
3767 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3768
27e28cc5
KW
37692003-07-04 Kris Warkentin <kewarken@qnx.com>
3770
3771 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3772
37732003-07-04 Kris Warkentin <kewarken@qnx.com>
3774
3775 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3776 * config/i386/nto.mh: New file.
3777 * config/i386/nm-nto.h: New file.
3778 * configure.host: Add i[3456]86-*-nto*.
3779
100f2e98
JB
37802003-07-03 Joel Brobecker <brobecker@gnat.com>
3781
3782 * remote-vx.c (vx_add_symbols): Fix compilation error.
3783
e23457df
AC
37842003-07-03 Andrew Cagney <cagney@redhat.com>
3785
3786 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3787 * gdbarch.h, gdbarch.c: Re-generate.
3788 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3789 (legacy_register_name): Declare.
3790 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3791 (REGISTER_NAME): Define.
3792 * sparc-tdep.c (legacy_register_name): New function.
3793 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3794 (REGISTER_NAME): Define.
3795 (hppa64_register_name): Declare.
3796 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3797 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3798 (hppa64_register_name): New function.
3799 (hppa_register_name): New function.
3800 * arch-utils.c (legacy_register_name): Delete.
3801 * arch-utils.h (legacy_register_name): Delete.
3802
38caaeec
DJ
38032003-07-03 Daniel Jacobowitz <drow@mvista.com>
3804
3805 * cli/cli-interp.c (cli_interpreter_resume): Update the
3806 cli_uiout's stream to gdb_stdout.
3807
dadd712e
AC
38082003-07-03 Andrew Cagney <cagney@redhat.com>
3809
3810 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3811 predicate.
3812 * gdbarch.h, gdbarch.c: Re-generate.
3813 * regcache.c (init_regcache_descr): Use legacy code when either
3814 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3815
c7f1390e
DJ
38162003-07-02 Daniel Jacobowitz <drow@mvista.com>
3817
3818 * NEWS: Move "set logging" entry into GDB 6.0 section.
3819
4bc8c588
JB
38202003-07-02 Jim Blandy <jimb@redhat.com>
3821
a9dd42f1
JB
3822 * s390-tdep.c (struct frame_extra_info): new member:
3823 'stack_bought_valid'.
3824 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3825 initialize fextra_info->stack_bought.
3826 (s390_frameless_function_invocation): Don't trust the value of
3827 fextra_info_ptr->stack_bought unless
3828 fextra_info->stack_bought_valid is set.
3829
4bc8c588
JB
3830 New S390 prologue analyzer.
3831 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3832 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3833 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3834 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3835 compute_x_addr, s390_on_stack, s390_store,
3836 s390_get_signal_frame_info): New functions.
3837 (S390_NUM_SPILL_SLOTS): New macro.
3838 (s390_get_frame_info): Rewritten.
3839 (is_arg_reg): Deleted.
3840
3841 Break out the decoding of S/390 instructions into separate
3842 functions, to make it more legible, and easier to check
3843 against the spec.
3844 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3845 is_rx, is_rxe): New functions.
3846 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3847 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3848 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3849 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3850 enums for opcode values. (Is this an improvement?)
3851
fd13a04a
AC
38522003-07-02 Andrew Cagney <cagney@redhat.com>
3853
3854 * i386-tdep.c: Revert change committed as part of trad-frame code
3855 below.
3856
3f8091c1
DJ
38572003-07-02 Daniel Jacobowitz <drow@mvista.com>
3858
3859 * breakpoint.c (insert_catchpoint): Make static.
3860
8dd5115e
AS
38612003-07-02 Andreas Schwab <schwab@suse.de>
3862
3863 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3864 former ia64_push_arguments and ia64_push_return_address, and use
3865 regcache functions instead of read/write_register.
3866 (ia64_gdbarch_init): Set push_dummy_call instead of
3867 deprecated_push_arguments and deprecated_push_return_address.
3868
a2229c23
AJ
38692003-07-01 Andreas Jaeger <aj@suse.de>
3870
3871 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3872 before the call.
3873 Set %rax only to number of SSE registers used.
3874
3b3850e8
AC
38752003-07-01 Andrew Cagney <cagney@redhat.com>
3876
3877 * trad-frame.h: Update comments, a -1 .addr is reserved.
3878 (trad_frame_value_p, trad_frame_addr_p): Declare.
3879 (trad_frame_reg_p): Declare.
3880 (trad_frame_set_value): Rename trad_frame_register_value.
3881 (trad_frame_set_unknown): Declare.
3882 * trad-frame.c (trad_frame_realreg_p): New function.
3883 (trad_frame_addr_p, trad_frame_value_p): New function.
3884 (trad_frame_set_unknown): New function.
3885 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3886 (trad_frame_prev_register): Use trad_frame_realreg_p,
3887 trad_frame_addr_p and trad_frame_value_p.
3888 (trad_frame_set_value): Rename trad_frame_register_value.
3889 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3890 and trad_frame_set_value.
a2229c23 3891
4d819d0e
JB
38922003-06-30 Jim Blandy <jimb@redhat.com>
3893
3894 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3895 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3896 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3897 for 16 registers, and then 32 more bytes.
3898 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3899 New macros.
3900 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3901 Move up in the file, since it's now used by is_simple_arg.
3902 (is_simple_arg): Don't assume registers are four bytes long.
3903 Exclude all double arguments. Extended floats are not simple
3904 args.
3905 (is_power_of_two): New function.
3906 (pass_by_copy_ref): Call is_power_of_two, and check that the
3907 length fits in a register, rather than listing all the acceptable
3908 sizes. Extended floats are not passed by reference.
3909 (s390_push_arguments): Don't assume registers are four bytes long.
3910 Reserve an argument register to point to the buffer for structures
3911 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3912 S390_STACK_FRAME_OVERHEAD.
3913
1ad828f1
AS
39142003-06-30 Andreas Schwab <schwab@suse.de>
3915
3916 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3917 format error message.
3918
39b00981
JB
39192003-06-30 Joel Brobecker <brobecker@gnat.com>
3920
3921 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3922
b2a7f303
DC
39232003-06-30 David Carlton <carlton@kealia.com>
3924
3925 Band-aid for PR c++/1245.
3926 * Makefile.in (cp-support.o): Depend on complaints_h.
3927 * cp-support.c: Include complaints.h. Add declaration for
3928 find_last_component.
3929 (cp_find_first_component): Separate code into
3930 cp_find_first_component_aux.
3931 (cp_find_first_component_aux): Call demangled_name_complaint.
3932 (demangled_name_complaint): New.
3933
a257b5bb
AC
39342003-06-30 Andrew Cagney <cagney@redhat.com>
3935
3936 * remote.c (remote_write_bytes): Explicitly compute and then use
3937 the payload size. Update comments to reflect. Fixes problem of
3938 GDB not sending small packets as found by Fred Fish.
3939
0a2cfde4
AC
39402003-06-30 Andrew Cagney <cagney@redhat.com>
3941
3942 * remote.c (remote_async_wait): Fix -Wformat problem.
3943
3fcb8548
AC
39442003-06-29 Andrew Cagney <cagney@redhat.com>
3945
3946 * remote.c (remote_wait): Call error, and not warning, when the
3947 packet is corrupt.
3948 (remote_async_wait): Ditto.
3949
9f9970a3
DJ
39502003-06-29 Daniel Jacobowitz <drow@mvista.com>
3951
3952 * sparc-tdep.c (sparc_y_regnum): Make external again.
3953
83a8ccca
DJ
39542003-06-29 Daniel Jacobowitz <drow@mvista.com>
3955
3956 * cli/cli-logging.c (pop_output_files): Add void to function
3957 definition.
3958
d2cf594a
AC
39592003-06-29 Andrew Cagney <cagney@redhat.com>
3960
3961 * frame.c (frame_register_unwind): Use unsigned char when dumping
3962 the buffer contents.
3963
0fac0b41
DJ
39642003-06-28 Daniel Jacobowitz <drow@mvista.com>
3965
3966 * cli/cli-logging.c: New file.
3967 * cli-out.c (struct ui_out_data): Add original_stream.
3968 (cli_redirect): New function.
3969 (cli_ui_out_impl): Add cli_redirect.
3970 (cli_out_new): Initialize original_stream.
3971 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3972 (uo_redirect, ui_out_redirect): New.
3973 * ui-out.h (struct ui_out_impl): Add redirect member.
3974 (redirect_ftype): New.
3975 (ui_out_redirect): Add prototype.
3976 * Makefile.in: Add rules for cli-logging.c.
3977 * NEWS: Mention "set logging".
3978
88a07d7c
EZ
39792003-06-27 Elena Zannoni <ezannoni@redhat.com>
3980
3981 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3982
4eb58876
AC
39832003-06-27 Andrew Cagney <cagney@redhat.com>
3984
3985 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3986 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3987 * avr-tdep.c (avr_call_dummy_address): Delete function.
3988 (avr_gdbarch_init): Do not set call_dummy_address.
3989
1549f619
EZ
39902003-06-27 Elena Zannoni <ezannoni@redhat.com>
3991
3992 * symfile.c (syms_from_objfile): Move variables to inner block.
3993 Move the checks for the non-mainline case a bit earlier to avoid
3994 doing some useless computations.
3995
3cb3398d
EZ
39962003-06-27 Elena Zannoni <ezannoni@redhat.com>
3997
3998 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3999
3799ccc6
EZ
40002003-06-26 Elena Zannoni <ezannoni@redhat.com>
4001
4002 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4003 sections.
4004
ce1f6491
MC
40052003-06-26 Michael Chastain <mec@shout.net>
4006
4007 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4008 gdb/testsuite/gdb.c++/pr-1210.exp.
4009
d958dfd0
AC
40102003-06-26 Andrew Cagney <cagney@redhat.com>
4011
4012 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4013 altivec_expression.h and altivec_registers.h.
4014
d31431ed
AC
40152003-06-26 Andrew Cagney <cagney@redhat.com>
4016
4017 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4018 info->mach when MIPS16. Patch suggested by Fred Fish.
4019
714b1282
AC
40202003-06-26 Andrew Cagney <cagney@redhat.com>
4021
4022 * utils.c (internal_vproblem): Print the problem to a reason
4023 buffer and then pass to query. Make the msg variable more local.
4024
42efa47a
AC
40252003-06-26 Andrew Cagney <cagney@redhat.com>
4026
4027 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4028 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4029 * gdbarch.h, gdbarch.c: Re-generate.
4030 * frame-base.c (default_frame_args_address): Update. Use
4031 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4032 not available.
4033 (default_frame_locals_address): Ditto for
4034 DEPRECATED_FRAME_LOCALS_ADDRESS.
4035 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4036 (vax_frame_num_args): Update.
4037 (vax_gdbarch_init): Update.
4038 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4039 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4040 * mcore-tdep.c (mcore_gdbarch_init): Update.
4041 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4042 * ia64-tdep.c (ia64_gdbarch_init): Update.
4043 * symtab.h (address_class): Update comments.
4044 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4045 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4046 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4047 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4048 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4049 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4050 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4051 * alpha-mdebug-tdep.c: Update.
4052 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4053
8ffd9b1b
AJ
40542003-06-26 Andreas Jaeger <aj@suse.de>
4055
4056 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4057 of SSE registers so that varargs functions work. Rework handling
4058 of passing arguments on the stack.
4059 (x86_64_store_return_value): Return double and float values in SSE
4060 register.
4061
e8ac10a6
MC
40622003-06-24 Michael Chastain <mec@shout.net>
4063
4064 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4065 the "constructor breakpoints ignored" bug.
4066
986af8e6
DC
40672003-06-25 David Carlton <carlton@kealia.com>
4068
4069 * MAINTAINERS: Update e-mail address.
4070
d64558a5
JB
40712003-06-24 Jim Blandy <jimb@redhat.com>
4072
e538d2d7
JB
4073 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4074
02631ec0
JB
4075 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4076 function.
4077 (ppc_linux_init_abi): Register it as the
4078 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4079
e716d87a
JB
4080 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4081 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4082 method.
4083
d64558a5
JB
4084 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4085 (ppc64_standard_linkage_target): Use it.
4086
449a5da4
AC
40872003-06-23 Andrew Cagney <cagney@redhat.com>
4088
4089 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4090 for 0 "int0" and 4 "int32" sized registers.
4091 * gdbtypes.c (builtin_type_int0): Define.
4092 (build_gdbtypes): Initialize builtin_type_int0.
4093 * gdbtypes.h (builtin_type_int0): Declare.
4094
b2a02dda
SC
40952003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4096
4097 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4098 as characters are unsigned.
4099
fba3138e
DJ
41002003-06-22 Daniel Jacobowitz <drow@mvista.com>
4101
4102 PR gdb/1179
4103 * dwarfread.c (struct_type): Skip static fields without crashing.
4104
f6c8180b
AC
41052003-06-22 Andrew Cagney <cagney@redhat.com>
4106
4107 GDB 6.0 branch created.
f2c06f52
AC
4108 * README: Update.
4109 * PROBLEMS: Update. Empty.
4110 * NEWS: Update.
f6c8180b 4111
ae822768
DJ
41122003-06-22 Daniel Jacobowitz <drow@mvista.com>
4113
4114 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4115 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4116
261de166
AC
41172003-06-22 Andrew Cagney <cagney@redhat.com>
4118
4119 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4120 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4121 Velikov.
4122
30e94205
DJ
41232003-06-22 Daniel Jacobowitz <drow@mvista.com>
4124
4125 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4126 compilers.
4127
9e14d721
DJ
41282003-06-21 Daniel Jacobowitz <drow@mvista.com>
4129
4130 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4131 argument of val_print.
4132 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4133 to the address argument of baseclass_offset or target_read_memory.
4134 Do add it to the argument of cp_print_value_fields.
4135
a4b8ebc8
AC
41362003-06-21 Andrew Cagney <cagney@redhat.com>
4137
4138 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4139 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4140 instead of 0..NUM_REGS.
4141 (mips_register_reggroup_p): New function.
4142 (mips_pseudo_register_write): New function.
4143 (mips_pseudo_register_read): New function.
4144 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4145 based on the register's type.
4146 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4147 cooked.
4148 (mips_get_saved_register): Simplify. Assert that REGNO is a
4149 pseudo / cooked.
4150 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4151 (mips_register_type): Replace mips_register_virtual_type. Map
4152 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4153 when available.
4154 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4155 that the register is cooked / virtual.
4156 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4157 Only get the extra info when needed.
4158 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4159 (mips32_heuristic_proc_desc): Fetch the cooked register.
4160 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4161 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4162 (mips_print_register): Use gdbarch_register_type, instead of
4163 REGISTER_VIRTUAL_TYPE.
4164 (print_gp_register_row): Use gdbarch_register_type, instead of
4165 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4166 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4167 Print the pseudo / cooked registers.
4168 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4169 Print the pseudo / cooked registers.
4170 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4171 REG_NUM is pseudo / cooked.
4172 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4173 (mips_n32n64_xfer_return_value): Ditto.
4174 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4175 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4176 (mips_register_sim_regno): New function.
4177 (mips_gdbarch_init): Set deprecated_register_byte,
4178 register_group_p, pseudo_register_write, pseudo_register_read,
4179 register_sim_regno, and num_pseudo_regs. Set register_type,
4180 instead of register_virtual_type.
4181 * Makefile.in (mips-tdep.o): Update dependencies.
4182 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4183 REGISTER_VIRTUAL_TYPE.
4184 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4185 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4186 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4187 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4188 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4189
325ed089
DJ
41902003-06-21 Daniel Jacobowitz <drow@mvista.com>
4191
4192 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4193 * cli/cli-cmds.c: Include "gdb_vfork.h".
4194 (shell_escape): Use vfork.
4195
f0e7d0e8
AC
41962003-06-21 Andrew Cagney <cagney@redhat.com>
4197
c57bb9fa
AC
4198 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4199 32 bit floating-point register saves.
4200
6e51443a
AC
4201 * frame.h (deprecated_unwind_get_saved_register): Delete.
4202 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4203 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4204 and deprecated_get_next_frame_hack instead of
4205 deprecated_unwind_get_saved_register.
4206
ed183c7c
AC
4207 * mips-tdep.c (mips_dump_tdep): Do not print
4208 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4209
f0e7d0e8
AC
4210 * frame.c (get_frame_register): New function.
4211 (frame_unwind_register_signed): New function.
4212 (get_frame_register_signed): New function.
4213 (frame_unwind_register_unsigned): New function.
4214 (get_frame_register_unsigned): New function.
4215 * frame.h: Add comments on naming schema.
4216 (get_frame_register, frame_unwind_register_signed): Declare.
4217 (get_frame_register_signed, get_frame_register_signed): Declare.
4218 (frame_unwind_register_unsigned): Declare.
4219 (get_frame_register_unsigned): Declare.
4220
2224d941
TR
42212003-06-20 Theodore A. Roth <troth@openavr.org>
4222
4223 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4224
8619218d
TR
42252003-06-20 Theodore A. Roth <troth@openavr.org>
4226
4227 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4228 (avr_read_sp): Ditto.
4229
0b1b50c0
DJ
42302003-06-20 Daniel Jacobowitz <drow@mvista.com>
4231
4232 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4233 * config/arm/nm-linux.h: Likewise.
4234 * config/arm/tm-linux.h: Likewise.
4235 * config/ia64/nm-linux.h: Likewise.
4236 * config/ia64/tm-ia64.h: Likewise.
4237 * config/s390/tm-linux.h: Likewise.
4238 * config/s390/tm-s390.h: Likewise.
4239 * s390-nat.c: Likewise.
4240 * s390-tdep.c: Likewise.
4241
4242 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4243 * config/ia64/linux.mt: Likewise.
4244 * config/m68k/linux.mh: Likewise.
4245 * config/mips/linux.mt: Likewise.
4246 * config/powerpc/linux.mh: Likewise.
4247 * config/sh/linux.mt: Likewise.
4248
c8c18e65
KW
42492003-06-19 Kris Warkentin <kewarken@qnx.com>
4250
4251 * solib.c (solib_open): Change tests for whether to search
4252 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4253 comments.
4254
dcccef2e
TR
42552003-06-19 Theodore A. Roth <troth@openavr.org>
4256
4257 * avr-tdep.c (avr_frame_address): Delete function.
4258 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4259 set_gdbarch_frame_args_address.
4260
5861a190
AC
42612003-06-19 Andrew Cagney <cagney@redhat.com>
4262
4263 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4264 (REGISTER_CONVERT_FROM_TYPE): Delete.
4265 (mips_register_convert_to_type): Delete declaration.
4266 (mips_register_convert_from_type): Delete declaration.
4267 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4268 kernel/.
4269
0274a8ce
MS
42702003-06-19 Michael Snyder <msnyder@redhat.com>
4271
4272 * linux-nat.h: New file.
4273 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 4274 * lin-lwp.c: Include linux-nat.h.
0274a8ce 4275 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 4276 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
4277 (linux_make_note_section): Iterate over lwps instead of threads.
4278 (linux_do_thread_registers): Use lwp instead of merged pid.
4279 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 4280 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
4281 Add dependency on linux_nat_h.
4282
adf5f719
TR
42832003-06-19 Theodore A. Roth <troth@openavr.org>
4284
4285 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4286
6766a268
DJ
42872003-06-19 Daniel Jacobowitz <drow@mvista.com>
4288
4289 * varobj.c (get_type, get_target_type): Use check_typedef.
4290
1171114a
DJ
42912003-06-19 Daniel Jacobowitz <drow@mvista.com>
4292
4293 * breakpoint.c (insert_catchpoint): Call internal_error.
4294
adcf68a2
TR
42952003-06-19 Theodore A. Roth <troth@openavr.org>
4296
4297 * avr-tdep.c (avr_push_dummy_code): Delete function.
4298 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4299
ea67f13b
DJ
43002003-06-19 Daniel Jacobowitz <drow@mvista.com>
4301
4302 * arch-utils.c (default_prepare_to_proceed): Remove.
4303 (generic_prepare_to_proceed): Remove.
4304 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4305 (generic_prepare_to_proceed): Remove prototype.
4306 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4307 * gdbarch.c: Regenerate.
4308 * gdbarch.h: Regenerate.
4309 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4310 * hppah-nat.c (hppa_switched_threads): Remove.
4311 * infrun.c (prepare_to_proceed): New static function, copied from
4312 generic_prepare_to_proceed. Remove select_it argument.
4313 (proceed): Call prepare_to_proceed.
4314 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4315 variables.
4316 (ptrace_wait): Don't set the removed variables.
4317 (hppa_switched_threads): Remove.
4318 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4319 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4320 (lin_lwp_prepare_to_proceed): Remove prototype.
4321 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4322 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4323
4add8633
TR
43242003-06-18 Theodore A. Roth <troth@openavr.org>
4325
4326 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4327 trad-frame.h.
4328 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4329 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4330 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4331 (AVR_PROLOGUE_*): Enumerate prologue types.
4332 (struct frame_extra_info): Remove.
4333 (struct avr_unwind_cache): Define.
4334 (avr_write_sp): Delete function.
4335 (avr_read_fp): Ditto.
4336 (avr_init_extra_frame_info): Ditto.
4337 (avr_pop_frame): Ditto.
4338 (avr_frame_saved_pc): Ditto.
4339 (avr_saved_pc_after_call): Ditto.
4340 (avr_push_return_address): Ditto.
4341 (avr_frame_chain): Ditto.
4342 (avr_store_struct_return): Ditto.
4343 (avr_push_arguments): Ditto.
4344 (avr_scan_prologue): Update comments. Changed to set up the info for
4345 cache unwinding. Now returns end of prologue PC.
4346 (avr_skip_prologue): Better handling of functions lacking a prologue
4347 by using avr_scan_prologue.
4348 (avr_scan_arg_moves): New function.
4349 (avr_saved_regs_unwinder): Ditto.
4350 (avr_frame_unwind_cache): Ditto.
4351 (avr_unwind_pc): Ditto.
4352 (avr_frame_this_id): Ditto.
4353 (avr_frame_prev_register): Ditto.
4354 (avr_frame_p): Ditto.
4355 (avr_frame_base_address ): Ditto.
4356 (avr_unwind_dummy_id): Ditto.
4357 (avr_push_dummy_code): Ditto.
4358 (push_stack_item): Ditto.
4359 (pop_stack_item): Ditto.
4360 (avr_push_dummy_call): Ditto.
4361 (struct stack_item): Define.
4362 (avr_frame_unwind): Declare structure.
4363 (avr_frame_base): Ditto.
4364 (avr_gdbarch_init): Remove calls to
4365 set_gdbarch_deprecated_init_frame_pc,
4366 set_gdbarch_deprecated_target_read_fp,
4367 set_gdbarch_deprecated_dummy_write_sp,
4368 set_gdbarch_deprecated_fp_regnum,
4369 set_gdbarch_deprecated_push_arguments,
4370 set_gdbarch_deprecated_push_return_address,
4371 set_gdbarch_deprecated_pop_frame,
4372 set_gdbarch_deprecated_store_struct_return,
4373 set_gdbarch_deprecated_frame_init_saved_regs,
4374 set_gdbarch_deprecated_init_extra_frame_info,
4375 set_gdbarch_deprecated_frame_chain,
4376 set_gdbarch_deprecated_frame_saved_pc,
4377 set_gdbarch_deprecated_saved_pc_after_call.
4378 Add calls to set_gdbarch_push_dummy_call,
4379 set_gdbarch_push_dummy_code,
4380 frame_unwind_append_predicate,
4381 frame_base_set_default,
4382 set_gdbarch_unwind_dummy_id,
4383 set_gdbarch_unwind_pc.
4384 Wrap a long line.
4385
7be04a68
MS
43862003-06-18 Corinna Vinschen <vinschen@redhat.com>
4387
4388 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4389 registers for H8/300S.
4390 (h8300_print_registers_info): Ditto.
8ffd9b1b 4391 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4392
ae087d01
DJ
43932003-06-18 Daniel Jacobowitz <drow@mvista.com>
4394
4395 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4396 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4397 (lin_lwp_wait): Likewise. Update comments.
4398 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4399 (pull_pid_from_list, linux_record_stopped_pid): New.
4400
07d8f827
SC
44012003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4402
4403 * ada-lang.c (scan_discrim_bound): Name first argument.
4404 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4405 declared by ALL_BLOCK_SYMBOLS.
4406
7cb47b14
SC
44072003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4408
4409 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4410 ("regcache.h"): Include it.
4411 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4412
6ad8ae5c
DJ
44132003-06-17 Daniel Jacobowitz <drow@mvista.com>
4414
4415 * NEWS: Mention gdbserver detach change and "disconnect" command.
4416 * infcmd.c (disconnect_command): New function.
4417 (_initialize_infcmd): Add ``disconnect'' command.
4418 * remote.c (remote_async_detach): Delete.
4419 (remote_detach): Merge remote_async_detach.
4420 (remote_disconnect): New.
4421 (init_remote_ops): Set to_disconnect.
4422 (init_remote_cisco_ops): Likewise.
4423 (init_remote_async_ops): Likewise. Use remote_detach.
4424 * target.c (cleanup_target): Default to_disconnect.
4425 (update_current_target): Inherit to_disconnect.
4426 (target_disconnect, debug_to_disconnect): New functions.
4427 (setup_target_debug): Set to_disconnect.
4428 * target.h (struct target_ops): Add to_disconnect.
4429 (target_disconnect): Add prototype.
4430
687595f9
DJ
44312003-06-17 Daniel Jacobowitz <drow@mvista.com>
4432
4433 * breakpoint.c (insert_catchpoint): New function.
4434 (insert_breakpoints): Use catch_exceptions to call
4435 insert_catchpoint. Disable catchpoints if they fail to insert.
4436
29239a8f
DJ
44372003-06-17 Daniel Jacobowitz <drow@mvista.com>
4438
4439 * symfile.c (reread_symbols): Clear sym_private.
4440
2cdf3c63
AC
44412003-06-17 Andrew Cagney <cagney@redhat.com>
4442
4443 * trad-frame.h (struct frame_info): Add opaque declaration.
4444 * remote-fileio.h (struct cmd_list_element): Add opaque
4445 declaration.
4446 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4447 comments.
4448
cf0e1e0d
DJ
44492003-06-17 Daniel Jacobowitz <drow@mvista.com>
4450
4451 * remote.c (remote_prepare_to_store): Replace call to
4452 deprecated_read_register_bytes with multiple regcache_raw_read
4453 calls.
4454
192cdb19
KW
44552003-06-17 Kris Warkentin <kewarken@qnx.com>
4456
4457 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4458 (nto_find_and_open_solib): Likewise.
4459 (nto_init_solib_absolute_prefix): Likewise.
4460 (_initialize_nto_tdep): Fix indentation.
4461
89929b45
KW
44622003-06-17 Kris Warkentin <kewarken@qnx.com>
4463
4464 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4465
46019f27
KW
44662003-06-17 Kris Warkentin <kewarken@qnx.com>
4467
4468 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4469
1a38736e
JB
44702003-06-17 Jim Blandy <jimb@redhat.com>
4471
4472 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4473
3605c34a
TR
44742003-06-16 Theodore A. Roth <troth@openavr.org>
4475
4476 * avr-tdep.c (avr_extract_return_value): New function.
4477 (avr_gdbarch_init): Set extract_return_value method.
4478
870b3035
AC
44792003-06-16 Andrew Cagney <cagney@redhat.com>
4480
4481 * frame.h (deprecated_get_next_frame_hack): Declare.
4482 * frame.c (legacy_saved_regs_prev_register): Only require
4483 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4484 there are always saved regs.
4485 (deprecated_generic_get_saved_register): Do not require
4486 DEPRECATED_FRAME_INIT_SAVED_REGS.
4487 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4488 use frame ID unwind instead.
4489 (deprecated_get_next_frame_hack): New function.
4490
63d47a7d
CV
44912003-06-16 Corinna Vinschen <vinschen@redhat.com>
4492
4493 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4494 (h8300_push_dummy_call): ...this function. Some minor optimization.
4495 (h8300_push_return_address): Remove.
4496 (h8300_gdbarch_init): Remove calls to
4497 set_gdbarch_deprecated_dummy_write_sp,
4498 set_gdbarch_deprecated_push_arguments and
4499 set_gdbarch_deprecated_push_return_address.
4500 Add call to set_gdbarch_push_dummy_call.
4501
4bb1dc5e
CV
45022003-06-16 Corinna Vinschen <vinschen@redhat.com>
4503
4504 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4505 (E_PSEUDO_EXR_REGNUM): Ditto.
4506 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 4507 registers into safe registers.
4bb1dc5e
CV
4508 (h8300_skip_prologue): Check for stm instruction to push registers
4509 used for register variables onto stack.
4510 (gdb_print_insn_h8300): Remove.
4511 (h8300_examine_prologue): Add a comment.
4512 (h8300_register_name): Take pseudo registers into account.
4513 (h8300s_register_name): Ditto.
4514 (h8300sx_register_name): Ditto.
4515 (h8300_print_register): Ditto.
4516 (h8300_print_registers_info): Define "nice" printing order.
4517 (h8300_saved_pc_after_call): Take pseudo registers into account.
4518 (h8300_register_type): Ditto. Return type used for remote connection
4519 when requesting real CCR or EXR register, return actual type when
4520 requesting pseudo CCR or EXR.
4521 (h8300_pseudo_register_read): New function.
4522 (h8300_pseudo_register_write): Ditto.
4523 (h8300_dbg_reg_to_regnum): Ditto.
4524 (h8300s_dbg_reg_to_regnum): Ditto.
4525 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4526 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4527 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4528 set_gdbarch_print_insn architecture dependent.
4529 Call set_gdbarch_pseudo_register_read and
4530 set_gdbarch_pseudo_register_write.
4531 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4532
a59fe496
AC
45332003-06-16 Andrew Cagney <cagney@redhat.com>
4534
4535 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4536 * gdbarch.h, gdbarch.c: Re-generate.
4537 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4538 * s390-tdep.c (s390_gdbarch_init): Update.
4539 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4540 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4541 * mips-tdep.c (mips_gdbarch_init): Update.
4542 * mcore-tdep.c (mcore_gdbarch_init): Update.
4543 * cris-tdep.c (cris_gdbarch_init): Update.
4544 * infcall.c (call_function_by_hand): Update.
4545 * ia64-tdep.c (ia64_push_arguments): Update comment.
4546 * frame.c (legacy_get_prev_frame): Do not assume
4547 SAVE_DUMMY_FRAME_TOS_P.
4548 * dummy-frame.c (find_dummy_frame): Update comment.
4549
6f4e5a41
AC
45502003-06-16 Andrew Cagney <cagney@redhat.com>
4551
4552 * regcache.c (do_cooked_read): Do not use register_valid_p.
4553
72fab697
TR
45542003-06-15 Theodore A. Roth <troth@openavr.org>
4555
4556 * avr-tdep.c (avr_register_type): Remove a blank line.
4557 (avr_scan_prologue): Correct some comments.
4558
e3d8b004
TR
45592003-06-15 Theodore A. Roth <troth@openavr.org>
4560
4561 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4562 prologue types.
8ffd9b1b 4563 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
4564 option.
4565 Add code to scan -mcall-prologues for mega devices.
4566
866b76ea
TR
45672003-06-15 Theodore A. Roth <troth@openavr.org>
4568
4569 * avr-tdep.c (avr_register_byte): Delete function.
4570 (avr_register_raw_size): Delete function.
4571 (avr_register_virtual_size): Delete function.
4572 (avr_register_virtual_type): Delete function.
4573 (avr_register_type): New function.
4574 (avr_address_to_pointer): Remove unused code.
4575 (avr_read_fp): Need to read FP as two separate bytes due to change to
4576 avr_register_type() usage.
4577 (avr_gdbarch_init): Don't set deprecated_register_size.
4578 Don't set deprecated_register_bytes.
4579 Don't set deprecated_register_byte.
4580 Don't set deprecated_register_raw_size.
4581 Don't set deprecated_max_register_raw_size.
4582 Don't set deprecated_register_virtual_size.
4583 Don't set deprecated_max_register_virtual_size.
4584 Don't set deprecated_register_virtual_type.
4585 Set register_type method.
4586
3993f6b1
DJ
45872003-06-15 Daniel Jacobowitz <drow@mvista.com>
4588
4589 * Makefile.in (linux-nat.o): Add rule.
4590 * linux-nat.c: New file.
4591 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4592 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4593 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4594 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4595 * config/arm/linux.mh (NATDEPFILES): Likewise.
4596 * config/i386/linux.mh (NATDEPFILES): Likewise.
4597 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4598 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4599 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4600 * config/mips/linux.mh (NATDEPFILES): Likewise.
4601 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4602 * config/s390/s390.mh (NATDEPFILES): Likewise.
4603 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4604
786a90bb
MK
46052003-06-15 Mark Kettenis <kettenis@gnu.org>
4606
4607 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4608 replace out-of-date comment.
4609
3bd3f01e
AC
46102003-06-15 Andrew Cagney <cagney@redhat.com>
4611
4612 * rdi-share/host.h (Fail): Change to a varargs function.
4613 * remote-rdi.c (Fail): Update.
8ffd9b1b 4614
de5b9bb9
MK
46152003-06-15 Mark Kettenis <kettenis@gnu.org>
4616
4617 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4618 (i386_convert_register_p, i386_register_to_value,
4619 i386_register_from_value): Handle types longer than 8 bytes.
4620
d532c08f
MK
46212003-06-15 Mark Kettenis <kettenis@gnu.org>
4622
4623 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4624 Move floating-point code to new function in i387-tdep.c.
4625 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4626 New functions containing code moved here from i386-tdep.c.
4627 * i387-tdep.h: Add opaque declaration for `struct type'.
4628 (i387_register_to_value, i387_value_to_register): New prototypes.
4629 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4630 (x86_64_init_abi): Set convert_register_p, register_to_value and
4631 value_to_register here.
8ffd9b1b 4632
42c466d7
AC
46332003-06-14 Andrew Cagney <cagney@redhat.com>
4634
4635 * mips-tdep.c (mips_register_to_value): Make static.
4636 (mips_value_to_register): Make static.
4637 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4638 * ia64-tdep.c (ia64_register_raw_size): Make static.
4639 (ia64_register_virtual_size): Make static.
4640 (ia64_register_byte): Make static.
4641 * i387-tdep.c: Include "i387-tdep.h".
4642 (print_387_control_word): Delete function.
4643 (print_387_status_word): Delete function.
4644 (print_387_status_bits): Delete function.
4645 (print_387_control_bits): Delete function.
4646 * Makefile.in (i387-tdep.o): Update dependencies.
4647 * rdi-share/host.h (Fail): Declare.
4648 * remote-rdi.c (Fail): Update to match declaration.
4649
2a9cda49
AC
46502003-06-14 Andrew Cagney <cagney@redhat.com>
4651
4652 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4653 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4654 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4655 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4656 * README: Delete reference to remote-array.
4657 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4658 (remote-array.o): Delete target.
4659 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4660 * remote-array.c: Delete file.
4661
ff2e87ac
AC
46622003-06-14 Andrew Cagney <cagney@redhat.com>
4663 Mark Kettenis <kettenis@gnu.org>
4664
4665 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4666 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4667 parameter with "frame".
4668 * gdbarch.h, gdbarch.c: Re-generate.
4669 * frame.h (put_frame_register): Declare.
4670 * frame.c (put_frame_register): New function.
4671 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4672 (legacy_register_to_value): Rewrite, use "frame" to get the
4673 register value.
4674 (legacy_value_to_register): Rewrite, use "frame" to find the
4675 register's location before storing.
4676 * arch-utils.h (legacy_convert_register_p): Update.
4677 (legacy_register_to_value, legacy_value_to_register): Update.
4678 * findvar.c (value_from_register): Rewrite, eliminate use of
4679 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4680 "frame" to REGISTER_TO_VALUE.
4681 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4682 lval_reg_frame_relative + lval_register branch of the switch. Do
4683 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4684 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4685 I386_EDI_REGNUM): New defines.
4686 (i386_next_regnum, i386_convert_register_p,
4687 i386_register_to_value, i386_value_to_register): New functions.
4688 (i386_register_convertible, i386_register_convert_to_virtual,
4689 i386_convert_to_raw): Remove functions.
4690 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4691 value_to_register instead of register_convertible,
4692 register_convert_to_virtual and register_convert_to_raw.
4693 * mips-tdep.c (mips_convert_register_p): New function.
4694 (mips_value_to_register): Replace mips_register_convert_from_type.
4695 (mips_register_to_value): Replace mips_register_convert_to_type.
4696 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4697 register_to_value.
4698 * alpha-tdep.c (alpha_convert_register_p): Update.
4699 (alpha_value_to_register): Update, store the register.
4700 (alpha_register_to_value): Update, fetch the register.
4701
98be1e77
TR
47022003-06-14 Theodore A. Roth <troth@openavr.org>
4703
4704 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4705 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4706 Don't set deprecated_call_dummy_words.
4707 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4708 Don't set remote_translate_xfer_address.
4709 (avr_io_reg_read_command): Remove commented out debug printf.
4710 Wrap a long line.
4711
57bc6122
TR
47122003-06-14 Theodore A. Roth <troth@openavr.org>
4713
4714 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4715 causes gdb to seg fault.
4716
eb01fc62
DJ
47172003-06-14 Daniel Jacobowitz <drow@mvista.com>
4718
4719 * sparc-nat.c (fetch_inferior_registers): Correct
4720 a reference to "registers".
4721
3b3e6bee
DJ
47222003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4723
4724 * Makefile.in (exc_request_U_h): Define
4725 (exc_request_S_h): Likewise.
4726 (msg_reply_S_h): Likewise.
4727 (msg_U_h): Likewise.
4728 (notify_S_h): Likewise.
4729 (process_reply_S_h): Likewise.
4730 (gnu-nat.o): Depend on gdb_obstack_h
4731 * gnu-nat.c: Include "gdb_obstack.h".
4732
b8de8283
AC
47332003-06-13 Andrew Cagney <cagney@redhat.com>
4734
4735 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4736 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4737
f3be58bc
AC
47382003-06-13 Andrew Cagney <cagney@redhat.com>
4739
4740 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4741 when deprecated REGISTER macros can be deleted.
4742 * gdbarch.h, gdbarch.c: Re-generate.
4743
4c0122c8
JB
47442003-06-13 Jim Blandy <jimb@redhat.com>
4745
4746 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4747 Linux entry point symbols for _dl_debug_state, too.
4748
3e210248
AC
47492003-06-13 Andrew Cagney <cagney@redhat.com>
4750
4751 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4752 available, do not use the FP register, and always save the TOS.
4753 * dummy-frame.c (dummy_frame_this_id): Do not assert
4754 SAVE_DUMMY_FRAME_TOS.
4755 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4756 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4757 (i386_push_dummy_call): Add 8 to the returned SP.
4758 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4759 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4760 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4761 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4762 (x86_64_push_dummy_call): Return "sp + 16".
4763 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4764 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4765 save_dummy_frame_tos.
4766
0b65af49
JB
47672003-06-13 Jim Blandy <jimb@redhat.com>
4768
4769 * frv-tdep.c (frv_use_struct_convention): Delete static
4770 declaration for function deleted in my change of 2003-06-12.
4771
4ea2465e
TR
47722003-06-13 Theodore A. Roth <troth@openavr.org>
4773
4774 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4775 (avr_pointer_to_address): Shift code addrs left 1 bit.
4776 (avr_convert_from_func_ptr_addr): Delete function since operation is
4777 better handled by avr_address_to_pointer and avr_pointer_to_address.
4778 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4779
1581182a
MK
47802003-06-13 Mark Kettenis <kettenis@gnu.org>
4781
4782 From Kelley Cook <kelleycook@wideopenwest.com>:
4783 * configure.host: Accept i[34567]86 variants.
4784 * configure.tgt: Likewise.
4785 * nlm/configure.in: Likewise.
4786 * nlm/configure: Regenerated.
4787
7aa1783e
RE
47882003-06-13 Richard Earnshaw <rearnsha@arm.com>
4789
4790 * arm-tdep.c (solib-svr4.h): Dont' include it.
4791 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4792 * arm-linux-tdep.c: ... here. Make static.
4793 (arm_linux_init_abi): Register it.
4794 (solib-svr4.h): Include it.
4795 * Makefile.in: Update dependencies.
4796 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4797 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4798
0261a0d0
CV
47992003-06-13 Corinna Vinschen <vinschen@redhat.com>
4800
4801 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4802 indicate registers used for return values.
4803 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4804 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4805 members.
4806 (h8300_init_extra_frame_info): Ditto.
4807 (h8300_frame_locals_address): Removed.
4808 (h8300_frame_args_address): Removed.
4809 (h8300_extract_return_value): Use new regcache structure. Only care
4810 for 16 bit CPUs.
4811 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4812 (h8300_store_return_value): Use new regcache structure. Only care
4813 for 16 bit CPUs.
4814 (h8300h_store_return_value): Same function for 32 bit CPUs.
4815 (h8300_store_struct_return): Removed.
4816 (h8300_extract_struct_value_address): Use new regcache structure.
4817 (h8300h_extract_struct_value_address): Removed.
4818 (h8300_push_dummy_code): New function.
4819 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4820 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4821 set_gdbarch_store_return_value architecture dependent.
4822 Call set_gdbarch_push_dummy_code and
4823 set_gdbarch_extract_struct_value_address.
4824 Remove calls to set_gdbarch_frame_args_address,
4825 set_gdbarch_frame_locals_address,
4826 set_gdbarch_deprecated_store_struct_return,
4827 set_gdbarch_deprecated_extract_return_value,
4828 set_gdbarch_deprecated_extract_struct_value_address,
4829 set_gdbarch_deprecated_call_dummy_words and
4830 set_gdbarch_deprecated_sizeof_call_dummy_words.
4831
055c394a
CV
48322003-06-13 Corinna Vinschen <vinschen@redhat.com>
4833
4834 * h8300-tdep.c (h8300_register_byte): Remove.
4835 (h8300h_register_byte): Remove.
4836 (h8300_register_virtual_type): Remove. Substitute by...
4837 (h8300_register_type): New function.
4838 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4839 (h8300h_extract_struct_value_address): Ditto.
4840 (h8300_gdbarch_init): Drop calls to
4841 set_gdbarch_deprecated_register_byte and
4842 set_gdbarch_deprecated_register_virtual_type.
4843 Add call to set_gdbarch_register_type.
4844
9c04cab7
AC
48452003-06-13 Andrew Cagney <cagney@redhat.com>
4846
4847 * gdbarch.sh: Update comments on registers.
4848 (deprecated_register_byte): Rename register_byte.
4849 (deprecated_register_raw_size): Rename register_raw_size.
4850 (deprecated_register_virtual_size): Rename register_virtual_size.
4851 (deprecated_register_virtual_type): Rename register_virtual_type.
4852 * gdbarch.h, gdbarch.c: Re-generate.
4853 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4854 * vax-tdep.c (vax_gdbarch_init): Update.
4855 * v850-tdep.c (v850_gdbarch_init): Update.
4856 * sparc-tdep.c (sparc_gdbarch_init): Update.
4857 * sh-tdep.c (sh_gdbarch_init): Update.
4858 * s390-tdep.c (s390_gdbarch_init): Update.
4859 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4860 * ns32k-tdep.c: Update.
4861 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4862 * mips-tdep.c (mips_gdbarch_init): Update.
4863 * mcore-tdep.c (mcore_gdbarch_init): Update.
4864 * m68k-tdep.c (m68k_gdbarch_init): Update.
4865 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4866 * ia64-tdep.c (ia64_gdbarch_init): Update.
4867 * hppa-tdep.c (hppa_gdbarch_init): Update.
4868 * h8300-tdep.c (h8300_gdbarch_init): Update.
4869 * frv-tdep.c (frv_gdbarch_init): Update.
4870 * cris-tdep.c (cris_gdbarch_init): Update.
4871 * avr-tdep.c (avr_gdbarch_init): Update.
4872 * alpha-tdep.c (alpha_gdbarch_init): Update.
4873 * arm-tdep.c (arm_gdbarch_init): Update.
4874
b060cbea
AC
48752003-06-13 Andrew Cagney <cagney@redhat.com>
4876
4877 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4878 mips_o32_use_struct_convention with always_use_struct_convention.
4879
0fc9922a
DC
48802003-06-12 David Carlton <carlton@kealia.com>
4881
4882 * cp-namespace.c (cp_set_block_scope): Comment out
4883 processing_has_namespace_info branch.
4884
1fd35568
JB
48852003-06-12 Jim Blandy <jimb@redhat.com>
4886
f470a70a
JB
4887 Recognize and skip 64-bit PowerPC Linux linkage functions.
4888 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4889 insn_pattern, insns_match_pattern, d_field, ds_field): New
4890 functions, macros, and types for working with PPC instructions.
4891 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4892 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4893 ppc64_skip_trampoline_code): New functions, variables, and macros
4894 for recognizing and skipping linkage functions.
4895 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4896 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4897
49ff75ad
JB
4898 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4899 register offsets for both the 32- and 64-bit interfaces.
4900
bd918c83
JB
4901 Actually finish the job started by my change of 2003-05-29.
4902 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4903 other #definition of this.
4904 (ppc_linux_skip_trampoline_code): Remove declaration.
4905 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4906 static.
4907 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4908 method for GDBARCH.
4909
4910 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4911 'long' on ppc64-*-linux*.
4912
f8c59253
JB
4913 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4914 isn't #defined, assume the register doesn't exist: act as if
4915 tdep->ppc_mq_regnum were -1.
4916
8fbb30b1
JB
4917 * configure.host, configure.tgt: Add entries for
4918 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4919 powerpc/linux.mt.
4920 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4921 New files.
4922
1fd35568
JB
4923 * arch-utils.c (always_use_struct_convention): New function.
4924 * arch-utils.h (always_use_struct_convention): New prototype.
4925 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4926 (alpha_gdbarch_init): Register always_use_struct_convention,
4927 instead of alpha_use_struct_convention.
4928 * cris-tdep.c (cris_use_struct_convention): Delete.
4929 (cris_gdbarch_init): Register always_use_struct_convention,
4930 instead of cris_use_struct_convention.
4931 * frv-tdep.c (frv_use_struct_convention): Delete.
4932 (frv_gdbarch_init): Register always_use_struct_convention,
4933 instead of frv_use_struct_convention.
4934 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4935 (h8300_gdbarch_init): Register always_use_struct_convention,
4936 instead of h8300_use_struct_convention.
e3305dd9 4937 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4938 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4939 instead of mips_o32_use_struct_convention.
4940
e14e6e9c
AC
49412003-06-12 Andrew Cagney <cagney@redhat.com>
4942
4943 * wince.c: Include "mips-tdep.h".
4944 * mips-tdep.h (mips_next_pc): Declare.
4945 * mcore-tdep.c: Make more local functions static.
4946 * Makefile.in (wince.o): Update dependencies.
4947
2335f48e
DC
49482003-06-12 David Carlton <carlton@kealia.com>
4949
4950 * symtab.c (lookup_symbol_aux_minsyms): Replace
4951 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4952 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4953 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4954 SYMBOL_NATURAL_NAME.
4955
f70a7d61
AS
49562003-06-12 Andreas Schwab <schwab@suse.de>
4957
4958 * Makefile.in (tuiDisassem.o): Update dependencies.
4959
b6429628
DC
49602003-06-12 David Carlton <carlton@bactrian.org>
4961
4962 * symtab.h: Delete declaration of make_symbol_overload_list.
4963 Add declaration of lookup_partial_symbol.
4964 * symtab.c (remove_params): Move to cp-support.c.
4965 (overload_list_add_symbol, make_symbol_overload_list)
4966 (sym_return_val_size, sym_return_val_index): Ditto.
4967 (lookup_partial_symbol): Make extern.
4968 * cp-support.h: Add declaration of make_symbol_overload_list.
4969 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4970 symtab.h, and block.h.
4971 (remove_params): Move here from symtab.c.
4972 (overload_list_add_symbol, make_symbol_overload_list)
4973 (sym_return_val_size, sym_return_val_index): Ditto.
4974 * valops.c: Include cp-support.h.
4975 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4976 frame_h, and block_h.
4977 (valops.o): Depend on cp_support_h.
4978
084edea5
CV
49792003-06-12 Corinna Vinschen <vinschen@redhat.com>
4980
4981 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4982 substitute by NUM_REGS throughout.
4983 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4984 (h8300s_register_name): New function for H8S registers.
4985 (h8300sx_register_name): Ditto for H8SX registers.
4986 (h8300_print_register): Revise register printing, avoid depending
4987 on 32 bit long.
0261a0d0 4988 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4989 (h8300h_register_byte): New function for any other architecture.
4990 (h8300_register_raw_size): Remove.
4991 (h8300_register_virtual_type): Revise to return actually useful
4992 type.
4993 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4994 (h8300h_extract_struct_value_address): New function for any other
4995 architecture.
4996 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4997 set_gdbarch_register_name, set_gdbarch_register_byte,
4998 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4999 Remove calls to set_gdbarch_deprecated_register_size,
5000 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5001 set_gdbarch_deprecated_max_register_raw_size,
5002 set_gdbarch_register_virtual_size and
5003 set_gdbarch_deprecated_max_register_virtual_size entirely.
5004 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5005 set_gdbarch_long_double_bit.
5006
06194148
JJ
50072003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5008
8ffd9b1b
AJ
5009 * doublest.c (convert_doublest_to_floatformat): When dealing
5010 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
5011 processing a full 32 bits of mantissa.
5012
de4f826b
DC
50132003-06-11 David Carlton <carlton@bactrian.org>
5014
5015 * dictionary.h: New.
5016 * dictionary.c: New.
5017 * block.h: Add opaque declaration for struct dictionary.
5018 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5019 'sym' members.
5020 (BLOCK_DICT): New macro.
5021 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5022 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5023 BLOCK_SHOULD_SORT.
5024 (ALL_BLOCK_SYMBOLS): Update definition.
5025 * Makefile.in (SFILES): Add dictionary.c.
5026 (dictionary_h): New.
5027 (COMMON_OBS): Add dictionary.o.
5028 (dictionary.o): New.
5029 (ada-lang.o): Depend on dictionary_h.
5030 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5031 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5032 (mi-cmd-stack.o): Ditto.
5033 (gdbtk-cmds.o): Update dependencies.
5034 (gdbtk-stack.o): Ditto.
5035 * ada-lang.c: Include dictionary.h.
5036 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5037 (fill_in_ada_prototype, debug_print_block): Ditto.
5038 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5039 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5040 'is_sorted'.
5041 * mdebugread.c: Include dictionary.h.
5042 (struct parse_stack): Delete 'maxsyms' member.
5043 (parse_symbol): Update calls to new_block. Delete calls to
5044 shrink_block. Use dictionary methods.
5045 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5046 Update calls to new_symtab. Don't maintain maxsyms data.
5047 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5048 (add_symbol): Just call dict_add_symbol.
5049 (new_symtab): Delete 'maxsyms' argument.
5050 (new_symtab): Update calls to new_block.
5051 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5052 (shrink_block): Delete function.
5053 (fixup_sigtramp): Update call to new_block. Add symbol via
5054 dict_add_symbol.
5055 * jv-lang.c: Include dictionary.h.
5056 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5057 appropriately. Set class_symtab->free_func. Make sure the
5058 blockvector is big enough to hold two blocks.
5059 (add_class_symtab_symbol): Use dictionary methods.
5060 (free_class_block): New function.
5061 (type_from_class): Replace explicit iteration by
5062 ALL_BLOCK_SYMBOLS.
5063 * symtab.h (struct symtab): Replace 'free_ptr' method by
5064 'free_func'.
5065 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5066 sort_symtab_syms.
5067 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5068 sort_symtab_syms.
5069 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5070 Include dictionary.h.
5071 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5072 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5073 sort_symtab_syms.
5074 * objfiles.c: Include dictionary.h.
5075 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5076 * buildsym.c: Include dictionary.h.
5077 (finish_block): Use dictionary methods.
5078 (end_symtab): Set free_func to NULL, not free_ptr.
5079 * tracepoint.c: Include dictionary.h.
5080 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5081 (scope_info): Ditto.
5082 * stack.c: Include dictionary.h.
5083 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5084 (print_block_frame_labels, print_frame_arg_vars)
5085 (print_frame_args): Ditto.
5086 * symmisc.c (free_symtab_block): Use dictionary methods.
5087 (dump_symtab): Ditto.
5088 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5089 Include dictionary.h.
5090 * symfile.h: Delete declarations of sort_block_syms,
5091 sort_symtab_syms.
5092 * symfile.c (sort_block_syms): Delete.
5093 (sort_symtab_syms): Delete.
5094 * symtab.c: Include dictionary.h.
5095 (lookup_block_symbol): Use dictionary iterators.
5096 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5097 (search_symbols, make_symbol_completion_list): Ditto.
5098 (make_symbol_overload_list): Ditto.
5099 * valops.c (value_of_local): Use dict_empty.
5100 Include dictionary.h.
5101
a31f978c
JB
51022003-06-11 J. Brobecker <brobecker@gnat.com>
5103
5104 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5105
526e70c0
DC
51062003-06-11 David Carlton <carlton@bactrian.org>
5107
5108 * block.h (BLOCK_SHOULD_SORT): Delete.
5109 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5110 blocks.
5111 * ada-lang.c (ada_add_block_symbols): Ditto.
5112 * symfile.c (sort_block_syms): Delete.
5113 (sort_symtab_syms): Ditto.
5114 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5115 declarations.
5116 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5117 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5118 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5119 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5120 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5121 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5122 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5123
33c08150
JJ
51242003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5125
8ffd9b1b 5126 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
5127 bits to 128.
5128
781a750d
AC
51292003-06-11 Andrew Cagney <cagney@redhat.com>
5130
5131 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5132 REGISTER_CONVERTIBLE.
5133 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5134 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5135 * gdbarch.h, gdbarch.c: Re-generate.
5136 * arch-utils.h (deprecated_register_convertible_not): Rename
5137 generic_register_convertible_not.
5138 * arch-utils.c (deprecated_register_convertible_not): Rename
5139 generic_register_convertible.
5140 (legacy_convert_register_p, legacy_register_to_value): Update.
5141 * sh-tdep.c (sh64_push_arguments): Update.
5142 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5143 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5144 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5145 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5146 * arch-utils.c (legacy_value_to_register): Update.
5147 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5148 (rs6000_register_convert_to_raw): Make parameter "from" const.
5149 * mips-tdep.c (mips_gdbarch_init): Update.
5150 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5151 * infcmd.c (default_print_registers_info): Update.
5152 * ia64-tdep.c (ia64_gdbarch_init): Update.
5153 (ia64_register_convert_to_raw): Make parameter "from" const.
5154 * i386-tdep.c (i386_gdbarch_init): Update.
5155 (i386_register_convert_to_raw): Update.
5156
cd90e54f
AC
51572003-06-11 Andrew Cagney <cagney@redhat.com>
5158
5159 * remote-fileio.c: Include "remote-fileio.h".
5160 * Makefile.in (remote-fileio.o): Update dependencies.
5161 (remote_fileio_h): Fix typo.
5162
a78f21af
AC
51632003-06-11 Andrew Cagney <cagney@redhat.com>
5164
5165 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5166 (xstormy16_save_dummy_frame_tos): Make static.
5167 (_initialize_xstormy16_tdep): Add declaration.
5168 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5169 * v850-tdep.c: Make local functions static.
5170 (_initialize_v850_tdep): Add declaration.
5171 * sparc-tdep.c: Make local functions static.
5172 (_initialize_sparc_tdep): Add declaration.
5173 * sh-tdep.c: Make local functions static.
5174 (_initialize_sh_tdep): Add declaration.
5175 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5176 * s390-tdep.c: Make local functions static.
5177 (_initialize_s390_tdep): Add declaration.
5178 * dbxread.c (find_stab_function_addr): Make static.
5179 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5180 * ocd.c (_initialize_remote_ocd): Add declaration.
5181 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5182 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5183 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5184 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5185 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5186 * remote-array.c (_initialize_array): Add declaration.
5187 (_initialize_remote_monitors): Add declaration.
5188 * remote-mips.c: Make local functions static.
5189 (_initialize_remote_mips): Add declaration.
5190 * mcore-tdep.c: Make all local functions static.
5191 (_initialize_mcore_tdep): Add declaration.
5192 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5193 * abug-rom.c (_initialize_abug_rom): Add declaration.
5194 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5195 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5196 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5197 * remote-est.c (_initialize_est): Add declaration.
5198 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5199 (m68hc11_call_dummy_address): Make static.
5200 * ia64-tdep.c: Make local functions static.
5201 (_initialize_ia64_tdep): Add declaration.
5202 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5203 * monitor.c (monitor_wait_filter): Make static.
5204 (_initialize_remote_monitors): Add declaration.
5205 * remote-hms.c (_initialize_remote_hms): Add declaration.
5206 * remote-e7000.c (fetch_regs_from_dump): Make static.
5207 (expect_n): Make static.
5208 (_initialize_remote_e7000): Add declaration.
5209 * ser-e7kpc.c: Always include "defs.h".
5210 (_initialize_ser_e7000pc): Add declaration.
5211 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5212 * cris-tdep.c: Make all but one function static.
5213 (_initialize_cris_tdep): Add declaration.
5214 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5215 * solib.c (update_solib_list): Make static.
5216 (_initialize_solib): Add declaration.
5217 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5218 (_initialize_avr_tdep): Add declaration.
5219 * remote-rdi.c (voiddummy): Make static.
5220 (_initialize_remote_rdi): Add declaration.
5221 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5222 * remote-rdp.c (send_rdp): Make static.
5223 (_initialize_remote_rdp): Add declaration.
5224 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5225
cbcdb1f5
CV
52262003-06-11 Corinna Vinschen <vinschen@redhat.com>
5227
5228 * remote-fileio.c: Make ari happy.
5229
a191ea8d
JB
52302003-06-10 J. Brobecker <brobecker@gnat.com>
5231
5232 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5233 fetching the trailing bytes of the buffer we are about to write.
5234
0ef75e11
AC
52352003-06-10 Andrew Cagney <cagney@redhat.com>
5236
5237 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5238 * Makefile.in (remote-fileio.o): Update dependencies.
5239 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5240 include <setjmp.h>, or <sys/types.h> conditional on USG.
5241 (remote_fio_jmp_buf): Delete global variable.
5242
449092f6 52432003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 5244 Martin M. Hunt <hunt@redhat.com>
449092f6 5245
559fa028
AC
5246 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5247 (SFILES): Add remote-fileio.c.
5248 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5249 dependencies for building remote.o.
449092f6
CV
5250 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5251 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 5252 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
5253 static storage class.
5254 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5255 'F' packet.
5256 (_initialize_remote): Call initialize_remote_fileio().
5257 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
5258 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5259 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5260 (captured_main): Initialize new ui_files.
5261 * ui-file.c: Add read and fgets input functions.
5262 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5263 (null_file_read): New function.
5264 (ui_file_read): New function.
5265 (set_ui_file_read): New function.
5266 (stdio_file_read): New function.
5267 * ui-file.h: New type ui_file_read_ftype.
5268 (set_ui_file_read): Declare.
5269 (ui_file_read): Declare.
5270
248de703
AC
52712003-06-09 Andrew Cagney <cagney@redhat.com>
5272
5273 * frame.h (deprecated_unwind_get_saved_register): Rename
5274 generic_unwind_get_saved_register, update comments.
5275 * mips-tdep.c (mips_get_saved_register): Update.
5276 * frame.c (deprecated_unwind_get_saved_register): Update.
5277
0ed8aa57
AC
52782003-06-09 Andrew Cagney <cagney@redhat.com>
5279
5280 * vax-tdep.c (vax_frame_locals_address): Delete function.
5281 (vax_gdbarch_init): Do not set frame_locals_address.
5282 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5283 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5284 * s390-tdep.c (s390_frame_args_address): Delete function.
5285 (s390_gdbarch_init): Do not set frame_args_address or
5286 frame_locals_address.
5287 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5288 (ns32k_gdbarch_init): Do not set frame_locals_address.
5289 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5290 (hppa_frame_locals_address): Delete function.
5291 (hppa_gdbarch_init): Do not set frame_args_address, or
5292 frame_locals_address.
5293 * arm-tdep.c (arm_frame_args_address): Delete.
5294 (arm_frame_locals_address): Delete.
5295 (arm_gdbarch_init): Do not set frame_args_address, or
5296 frame_locals_address.
5297
983a287a
AC
52982003-06-09 Andrew Cagney <cagney@redhat.com>
5299
5300 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5301 * gdbarch.h, gdbarch.c: Re-generate.
5302 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5303 * arch-utils.c (frame_num_args_unknown): Delete function.
5304 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5305 (frame_info): Use FRAME_NUM_ARGS_P.
5306 * arm-tdep.c (arm_frame_num_args): Delete function.
5307 (arm_gdbarch_init): Do not set frame_num_args.
5308 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5309 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5310 (hppa_gdbarch_init): Do not set frame_num_args.
5311 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5312 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5313 frame_num_args to default frame_num_args_unknown.
5314 * v850-tdep.c (v850_gdbarch_init): Ditto.
5315 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5316 * sh-tdep.c (sh_gdbarch_init): Ditto.
5317 * s390-tdep.c (s390_gdbarch_init): Ditto.
5318 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5319 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5320 * mips-tdep.c (mips_gdbarch_init): Ditto.
5321 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5322 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5323 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5324 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5325 * i386-tdep.c (i386_gdbarch_init): Ditto.
5326 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5327 * frv-tdep.c (frv_gdbarch_init): Ditto.
5328 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5329 * cris-tdep.c (cris_gdbarch_init): Ditto.
5330 * avr-tdep.c (avr_gdbarch_init): Ditto.
5331 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5332
8d3b0994
AC
53332003-06-09 Andrew Cagney <cagney@redhat.com>
5334
5335 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5336 (print_frame_args): Moved to "stack.c".
5337 * stack.c: Include "gdb_assert.h".
5338 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5339 (print_frame_args): Moved from "printcmd.c".
5340 * frame.h (print_frame_args): Delete declaration.
5341 * Makefile.in (stack.o): Update dependencies.
5342
25e3a86b
AC
53432003-06-08 Andrew Cagney <cagney@redhat.com>
5344
5345 * frame.c (get_prev_frame): Remove reference to
5346 frame_args_address_correct in comments.
5347 * frame-base.c (default_frame_args_address): Delete code
5348 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5349 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5350 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5351 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5352 (vax_frame_args_address_correct): Delete declaration.
5353
a9e5fdc2
AC
53542003-06-08 Andrew Cagney <cagney@redhat.com>
5355
5356 * gdbarch.sh (UNWIND_SP): Add.
5357 * gdbarch.h, gdbarch.c: Re-generate.
5358 * frame.c (frame_sp_unwind): New function.
5359 (get_frame_sp): New function.
5360 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5361 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5362 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5363 value.
5364 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5365 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5366
8983bd83
AC
53672003-06-08 Andrew Cagney <cagney@redhat.com>
5368
7fec2c59
AC
5369 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5370 REMOTE_BREAKPOINT.
5371 * remote.c: Update.
5372 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5373 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5374 * config/m68k/tm-sun3.h: Update.
5375 * config/m68k/tm-m68klynx.h: Update.
5376 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5377
8983bd83
AC
5378 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5379 trad_frame". Update comments.
5380 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5381 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5382 (trad_frame_register_value, trad_frame_prev_register): Update.
5383
b9362cc7
AC
53842003-06-08 Andrew Cagney <cagney@redhat.com>
5385
5386 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5387 from GCC's acinclude.m4.
5388 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5389 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5390 * main.c (error_init): Delete declaration.
5391 * defs.h (error_init): Declare.
5392 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5393 (rs6000_convert_from_func_ptr_addr): Make static.
5394 (_initialize_rs6000_tdep): Add declaration.
5395 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5396 (show_commands, set_verbose, show_history): Delete declaration.
5397 * top.h (set_verbose): Add declaration.
5398 (show_history, set_history, show_commands): Add declaration.
5399 (do_restore_instream_cleanup): Add declaration.
5400 * objc-lang.c (specialcmp): Make static.
5401 (print_object_command): Make static.
5402 (find_objc_msgsend): Make static.
5403 (find_objc_msgcall_submethod_helper): Make static.
5404 (find_objc_msgcall_submethod): Make static.
5405 (_initialize_objc_language): Add declaration.
5406 (find_implementation_from_class): Make static.
5407 (find_implementation): Make static.
5408 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5409 * objc-lang.h (lookup_struct_typedef): Add declaration.
5410 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5411 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5412 (do_restore_user_call_depth): Make static.
5413 (do_restore_instream_cleanup): Delete declaration.
5414 (dont_repeat): Delete declaration.
5415 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5416 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5417 * reggroups.c (_initialize_reggroup): Add declaration.
5418 * cp-support.c (_initialize_cp_support): Add declaration.
5419 * cp-abi.c (_initialize_cp_abi): Add declaration.
5420 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5421 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5422 (_initialize_gnu_v3_abi): Add declaration.
5423 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5424 (_initialize_gnu_v2_abi): Add declaration.
5425 * frame-base.c (_initialize_frame_base): Add declaration.
5426 * doublest.c (floatformat_from_length): Make static.
5427 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5428 * frame.c (create_sentinel_frame): Make static.
5429 (_initialize_frame): Add declaration.
5430 * top.c (do_catch_errors): Make static.
5431 (gdb_rl_operate_and_get_next_completion): Make static.
5432 * typeprint.c: Include "typeprint.h".
5433 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5434 (sentinel_frame_this_id): Make static.
5435 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5436 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5437 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5438 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5439 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5440 * maint.c (maintenance_print_architecture): Make static.
5441 * signals/signals.c (_initialize_signals): Add declaration.
5442 * std-regs.c (_initialize_frame_reg): Add declaration.
5443 * jv-exp.y (push_variable): ISO C definition.
5444 (push_qualified_expression_name): Ditto.
5445 * memattr.c (_initialize_mem): Add declaration.
5446 * remote.c (remote_check_watch_resources): Make static.
5447 (remote_stopped_by_watchpoint): Make static.
5448 (remote_stopped_data_address): Make static.
5449 * d10v-tdep.c (nr_dmap_regs): Make static.
5450 (a0_regnum): Make static.
5451 (d10v_frame_unwind_cache): Make static.
5452 (d10v_frame_p): Make static.
5453 * osabi.c (show_osabi): Make static.
5454 (_initialize_gdb_osabi): Add extern declaration.
5455 * gdbtypes.c (make_qualified_type): Make static.
5456 (safe_parse_type): Make static.
5457 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5458 * macrotab.c (macro_bcache_free): Make static.
5459 * interps.c (interp_set_quiet): Make static.
5460 (interpreter_exec_cmd): Make static.
5461 * stack.h (select_frame_command): New file.
5462 * stack.c: Include "stack.h".
5463 (select_frame_command_wrapper): Delete function.
5464 (select_frame_command): Make global.
5465 * infcall.c: Include "infcall.h".
5466 * linespec.c: Include "linespec.h".
5467 * symfile.c (sections_overlap): Make static.
5468 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5469 * charset.c (_initialize_charset): Add missing prototype.
5470 * regcache.c (init_legacy_regcache_descr): Make static.
5471 (do_regcache_xfree): Make static.
5472 (regcache_xfer_part): Make static.
5473 (_initialize_regcache): Add missing prototype.
5474 * breakpoint.c (parse_breakpoint_sals): Make static.
5475 (breakpoint_sals_to_pc): Make static.
5476 * interps.h (clear_interpreter_hooks): ISO C declaration.
5477 * Makefile.in (stack_h): Define.
5478 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5479 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5480
a0f267c7
AC
54812003-06-08 Andrew Cagney <cagney@redhat.com>
5482
5483 * Makefile.in (d10v-tdep.o): Update dependencies.
5484 (SFILES): Add trad-frame.c.
5485 (trad_frame_h): Define.
5486 (COMMON_OBS): Add trad-frame.o.
5487 (trad-frame.o): Specify dependencies.
5488 * d10v-tdep.c: Include "trad-frame.h".
5489 (saved_regs_unwinder): Delete function.
5490 (d10v_frame_prev_register): Use trad_frame_prev_register.
5491 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5492 trad_frame", delete "regs" and "prev_sp".
5493 (prologue_find_regs): Use trad-frame.
5494 * trad-frame.h, trad-frame.c: New files.
5495
4538b4f4
MK
54962003-06-08 Mark Kettenis <kettenis@gnu.org>
5497
5498 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5499
a0273b2f
AF
55002003-06-07 Adam Fedor <fedor@gnu.org>
5501
5502 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5503 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5504 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5505 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 5506 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
5507 Use it.
5508
3a6c3343
AC
55092003-06-07 Andrew Cagney <cagney@redhat.com>
5510
5511 * symfile.h: Re-indent, clean up comments.
5512
b46e02f6
AC
55132003-06-07 Andrew Cagney <cagney@redhat.com>
5514
5515 * inferior.h (deprecated_write_sp): Replace
5516 generic_target_write_sp.
5517 * regcache.c (deprecated_write_sp): Replace
5518 generic_target_write_sp.
5519 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5520 * vax-tdep.c (vax_gdbarch_init): Update.
5521 * v850-tdep.c (v850_gdbarch_init): Update.
5522 * sparc-tdep.c (sparc_gdbarch_init): Update.
5523 * sh-tdep.c (sh_gdbarch_init): Update.
5524 * s390-tdep.c (s390_gdbarch_init): Update.
5525 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5526 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5527 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5528 * mcore-tdep.c (mcore_gdbarch_init): Update.
5529 * m68k-tdep.c (m68k_gdbarch_init): Update.
5530 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5531 * ia64-tdep.c (ia64_gdbarch_init): Update.
5532 * h8300-tdep.c (h8300_gdbarch_init): Update.
5533 * frv-tdep.c (frv_gdbarch_init): Update.
5534 * cris-tdep.c (cris_gdbarch_init): Update.
5535 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5536
a42e117c
AC
55372003-06-07 Andrew Cagney <cagney@redhat.com>
5538
5539 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5540 Assert that PC_REGNUM is valid.
5541 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5542
bd1ce8ba
AC
55432003-06-07 Andrew Cagney <cagney@redhat.com>
5544
5545 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5546 * gdbarch.h, gdbarch.c: Regenerate.
5547 * mn10300-tdep.c: Include "gdb_assert.h".
5548 (mn10300_read_fp): New function.
5549 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5550 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5551 * ia64-tdep.c: Include "gdb_assert.h".
5552 (ia64_read_fp): New function.
5553 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5554 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5555 * regcache.c (generic_target_read_sp): Delete function.
5556 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5557 * inferior.h (generic_target_read_sp): Delete declaration.
5558 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5559 generic_target_read_sp.
5560 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5561 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5562 * sh-tdep.c (sh_gdbarch_init): Ditto.
5563 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5564 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5565
ec5cbaec
AC
55662003-06-07 Andrew Cagney <cagney@redhat.com>
5567
5568 * gdbarch.sh: Comment each field of startup_gdbarch.
5569 * gdbarch.h, gdbarch.c: Re-generate.
5570
cde9ea48
AC
55712003-06-07 Andrew Cagney <cagney@redhat.com>
5572
5573 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5574 * gdbarch.h, gdbarch.c: Re-generate.
5575 * regcache.c: Update comments on read_pc et.al.
5576 (generic_target_read_pc): Delete function.
5577 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5578 * inferior.h (generic_target_read_pc): Delete declaration.
5579 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5580 generic_target_read_pc.
5581 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5582 * sh-tdep.c (sh_gdbarch_init): Ditto.
5583 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5584 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5585
9a90a780
AC
55862003-06-07 Andrew Cagney <cagney@redhat.com>
5587
5588 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5589 "index" with "special_local_sect". Use strcmp instead of STREQ.
5590 Append period to coments.
5591
a39a16c4
MM
55922003-06-06 Mark Mitchell <mark@codesourcery.com>
5593
5594 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5595 (elfstab_offset_sections): Likewise.
5596 * gdb-stabs.h (stab_section_info): Likewise.
5597 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5598 * objfiles.c (objfile_relocate): Likewise.
5599 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5600 * remote.c (get_offsets): Likewise.
5601 (remote_cisco_objfile_relocate): Likewise.
5602 * somread.c (som_symfile_offsets): Likewise.
5603 * symfile.c (alloc_section_addr_info): New function.
5604 (build_section_addr_info_from_section_tab): Use it.
5605 (free_section_addr_info): Adjust.
5606 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5607 (syms_from_objfile): Allocate local_addr dynamically.
5608 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5609 dynamically.
5610 (add_symbol_file_command): Allocate sect_opts dynamically.
5611 (reread_symbols): Avoid use of SECT_OFF_MAX.
5612 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5613 (alloc_section_addr_info): Declare it.
5614 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5615 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5616 dynamically.
5617 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 5618
20c6c2f8
AC
56192003-06-06 Andrew Cagney <cagney@redhat.com>
5620
5621 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5622 (d10v_frame_unwind_cache): Do not set "return_pc".
5623
884a26c8
MS
56242003-06-06 Michael Snyder <msnyder@redhat.com>
5625
5626 * h8300-tdep.c: Make tidy (long lines).
5627
088ce440
ML
56282003-06-06 Michal Ludvig <mludvig@suse.cz>
5629
8ffd9b1b 5630 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
5631 to regcache_collect().
5632
7d773d96
JB
56332003-06-05 J. Brobecker <brobecker@gnat.com>
5634
5635 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5636 pc_in_sigtramp multiarch method.
5637 (hppa_hpux_som_init_abi): Use it.
5638 (hppa_hpux_elf_init_abi): Likewise.
5639 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5640 macro has been multiarched.
5641 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5642 macro here, as hppa64 isn't multiarched yet.
5643
1df6926e
AC
56442003-06-05 Andrew Cagney <cagney@redhat.com>
5645
5646 * Makefile.in (value_h): Add $(frame_h).
5647 * value.h: Include "frame.h".
5648 (struct value): Replace "frame_addr" with "frame_id".
5649 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5650 * values.c (allocate_value): Use VALUE_FRAME_ID.
5651 (value_copy): Use VALUE_FRAME_ID.
5652 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5653 * valops.c (value_assign): Update. Use frame_find_by_id.
5654
6b53acc6
ML
56552003-06-05 Michal Ludvig <mludvig@suse.cz>
5656
5657 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5658 in each pass.
5659
4d9850d3
JJ
56602003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5661
5662 * thread-db.c (check_event): For create/death event breakpoints,
5663 loop through all messages to ensure that we read the message
5664 corresponding to the breakpoint we are at.
5665
8efca6ba
MS
56662003-06-04 Michael Snyder <msnyder@redhat.com>
5667
5668 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5669
0912c7f2
MK
56702003-06-04 Mark Kettenis <kettenis@gnu.org>
5671
5672 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5673 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5674 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5675 when handling .eh_frame sections.
5676
4e370325
JB
56772003-06-04 J. Brobecker <brobecker@gnat.com>
5678
5679 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5680 prepare_to_proceed procedure instead of the hppa-specific one.
5681 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5682
b757528f 56832003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5684
b757528f
JJ
5685 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5686 * config.in: Regenerated.
5687 * configure.in: Add test for syscall function and check for
5688 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5689 * configure: Regenerated.
5690 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5691 <sys/syscall.h>.
5692 (kill_lwp): New function that uses tkill syscall or
5693 uses kill, depending on whether threading model is nptl or not.
5694 All callers of kill() changed to use kill_lwp().
5695 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5696 see if all threads have already exited in the nptl model.
5697 (stop_and_resume_callback): New callback function used by the
5698 lin_lwp_wait thread exit handling code.
5699 (stop_wait_callback): Check for threads already having exited and
5700 delete such threads fromt the lwp list when discovered.
5701 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5702
b757528f
JJ
5703 Roland McGrath <roland@redhat.com>
5704 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5705 nptl libthread_db.
5706
087779b1
RH
57072003-06-03 Richard Henderson <rth@redhat.com>
5708
b21fd293
RH
5709 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5710 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5711 (alpha_sigtramp_frame_prev_register): Likewise.
5712 (alpha_heuristic_frame_prev_register): Likewise.
5713 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5714
8ffd9b1b 5715 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5716 alpha-specific register id names.
5717 (alpha_mdebug_frame_unwind_cache): Likewise.
5718 (alpha_mdebug_frame_prev_register): Likewise.
5719
baa490c4
RH
57202003-06-03 Richard Henderson <rth@redhat.com>
5721
5722 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5723 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5724 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5725 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5726 unwind routines.
5727 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5728 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5729 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5730
5731 * alpha-linux-tdep.c: Remove unnecessary includes.
5732 * Makefile.in (alpha-linux-tdep.o): Update.
5733
57342003-06-03 Richard Henderson <rth@redhat.com>
5735
5736 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5737 (alphabsd_fill_fpreg): Likewise.
5738
f534e522
JB
57392003-06-03 J. Brobecker <brobecker@gnat.com>
5740
5741 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5742 references to struct frame_info fields by calls to the equivalent
5743 accessors. Necessary now that frame_info is opaque.
5744
4035536b
JB
57452003-06-03 J. Brobecker <brobecker@gnat.com>
5746
5747 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5748 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5749 structure, field no longer exists.
5750
0bd79c5c
JB
57512003-06-03 J. Brobecker <brobecker@gnat.com>
5752
5753 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5754 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5755
37bb6d9f
JB
57562003-06-03 J. Brobecker <brobecker@gnat.com>
5757
5758 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5759 references to struct frame_info fields by calls to the equivalent
5760 accessors. Necessary now that frame_info is opaque.
5761
852ee05c
JB
57622003-06-03 J. Brobecker <brobecker@gnat.com>
5763
5764 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5765 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5766 structure, field no longer exists.
5767
7d58c67d
TR
57682003-06-03 Theodore A. Roth <troth@openavr.org>
5769
8ffd9b1b 5770 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5771 accumulation of the size of all registers instead of blindly using
5772 DEPRECATED_REGISTER_BYTES.
5773
0a48e7e8
MS
57742003-06-03 Michael Snyder <msnyder@redhat.com>
5775
5776 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5777 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5778 for h8300sx.
5779
9798ab0d
JB
57802003-06-03 J. Brobecker <brobecker@gnat.com>
5781
5782 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5783 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5784
00b037e2
AC
57852003-06-03 Andrew Cagney <cagney@redhat.com>
5786
5787 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5788 (sparc_convert_to_raw): Delete function.
5789 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5790 register_convert_to_virtual.
5791
043b2f77
JJ
57922003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5793
5794 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5795 layer if not dealing with a statically-linked threaded program.
5796
f43caff8
KW
57972003-06-03 Kris Warkentin <kewarken@qnx.com>
5798
5799 * solib.c (solib_open): Update comment to reflect actual search order.
5800
ae1e7417
AC
58012003-06-03 Andrew Cagney <cagney@redhat.com>
5802
5803 * frame.c (get_frame_memory_signed): New function.
5804 (get_frame_memory, get_frame_memory_unsigned): New function.
5805 (get_frame_arch): New function.
5806 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5807 (get_frame_memory, get_frame_unsigned_memory): Declare.
5808 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5809 get_frame_memory_unsigned and get_frame_arch.
5810 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5811
cb123844
RG
58122003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5813
5814 * MAINTAINERS (write after approval): Add myself.
5815
1bb792e9
JB
58162003-06-03 Jim Blandy <jimb@redhat.com>
5817
5818 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5819 elements of gregset_t are 64 bits each, but access registers
5820 are still 32 bits, so they're packed two per gregset_t
5821 element. Unpack/pack them properly.
5822
aee8d8ba
DC
58232003-06-02 David Carlton <carlton@bactrian.org>
5824
5825 * linespec.c (find_methods): Break out code into
5826 add_matching_methods and add_constructors.
5827 (add_matching_methods): New.
5828 (add_constructors): Ditto.
5829
bf7488d2
AC
58302003-06-02 Andrew Cagney <cagney@redhat.com>
5831
bf7488d2
AC
5832 * sparc-tdep.c (sparc_print_registers): Delete call to
5833 REGISTER_CONVERTIBLE.
5834 (sparc_gdbarch_init): Do not set register_convertible.
5835 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5836 * frv-tdep.c (frv_gdbarch_init): Ditto.
5837 * cris-tdep.c (cris_gdbarch_init): Ditto.
5838
adedef68
EZ
58392003-06-02 Elena Zannoni <ezannoni@redhat.com>
5840
8ffd9b1b 5841 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5842 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5843 (syms_from_objfile): Ditto.
5844
650fcc91
AS
58452003-06-03 Andreas Schwab <schwab@suse.de>
5846
5847 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5848 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5849
df4a182b
RH
58502003-06-02 Richard Henderson <rth@redhat.com>
5851
5852 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5853 a member of all_reggroup.
5854
c483c494
RH
58552003-06-02 Richard Henderson <rth@redhat.com>
5856
5857 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5858 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5859 (alpha_lds, alpha_sts): New.
5860 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5861 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5862 restructure and fail for type sizes other than 4 or 8.
5863 (alpha_value_to_register): Similarly.
5864 (alpha_extract_return_value): Use alpha_sts.
5865 (alpha_store_return_value): Use alpha_lds.
5866 (alpha_gdbarch_init): Update hooks.
5867
b38b6be2
RH
58682003-06-02 Richard Henderson <rth@redhat.com>
5869
5870 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5871 regnum identifiers.
5872 (alpha_sigtramp_register_address): Likewise.
5873
98a8e1e5
RH
58742003-06-02 Richard Henderson <rth@redhat.com>
5875
5876 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5877 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5878 * alpha-tdep.h: Declare them.
5879
5880 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5881 Remove zerobuf. Don't error on UNIQUE.
5882 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5883 (ALPHA_REGSET_UNIQUE): Provide default.
5884 (supply_gregset): Use alpha_supply_int_regs.
5885 (fill_gregset): Use alpha_fill_int_regs.
5886 (supply_fpregset): Use alpha_supply_fp_regs.
5887 (fill_fpregset): Use alpha_fill_fp_regs.
5888 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5889 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5890 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5891 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5892 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5893 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5894
67dfac52
RH
58952003-06-02 Richard Henderson <rth@redhat.com>
5896
f75d70cc
RH
5897 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5898
67dfac52
RH
5899 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5900 (alpha_store_return_value): Likewise.
5901
0cf566ec
DC
59022003-06-02 David Carlton <carlton@math.stanford.edu>
5903
5904 * block.c (contained_in): Add 'const' to arguments.
5905 (block_function): Ditto.
5906 * block.h: Update declarations for block_function and
5907 contained_in.
5908
cdef89d0
DC
59092003-06-02 David Carlton <carlton@math.stanford.edu>
5910
5911 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5912 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5913 * p-valprint.c (pascal_val_print): Ditto.
5914 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5915
72667056
RH
59162003-06-02 Richard Henderson <rth@redhat.com>
5917
98a8e1e5
RH
5918 * alpha-tdep.c (alpha_push_dummy_call): Use
5919 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5920
8ffd9b1b 5921 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5922 sign-extension of 32-bit values.
5923 (alpha_store_return_value): Similarly.
0ede8eca 5924
98a8e1e5
RH
5925 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5926 (alpha_extract_return_value): Likewise.
5927 (alpha_store_return_value): Likewise.
7b5e1cb3 5928
98a8e1e5
RH
5929 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5930 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5931
98a8e1e5
RH
5932 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5933 (alpha_extract_struct_value_address): Likewise.
5934 (alpha_store_return_value): Likewise.
5935 (alpha_store_struct_return): Remove.
5936 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5937
98a8e1e5
RH
5938 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5939 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5940 macros where appropriate.
5941 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5942 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5943
98a8e1e5
RH
5944 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5945 for SP, GP; void_func_ptr for PC; non-language-specific types
5946 for all others.
5947 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5948
6dd77b81
RH
59492003-06-02 Richard Henderson <rth@redhat.com>
5950
5951 * top.h (lim_at_start): Declare.
5952 * main.c (captured_main): Set it.
5953 * top.c (lim_at_start): Define.
5954 (command_loop): Use it instead of &environ.
5955 * event-top.c (command_handler): Likewise.
5956
f4dbdb54
JT
59572003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5958
5959 * mipsnbsd-tdep.c: Update copyright years.
5960 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5961
8f285956
RH
59622003-06-01 Richard Henderson <rth@redhat.com>
5963
98a8e1e5
RH
5964 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5965 (alpha-linux-tdep.o): Update dependencies.
5966 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5967 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5968
615967cb
RH
59692003-06-01 Richard Henderson <rth@redhat.com>
5970
98a8e1e5
RH
5971 * alpha-tdep.c (alpha_register_reggroup_p): New.
5972 (alpha_gdbarch_init): Register it.
615967cb 5973
b59661bd
AC
59742003-06-02 Andrew Cagney <cagney@redhat.com>
5975
5976 * dwarfread.c: Eliminate "register"
5977 (decode_die_type): Eliminate assignment within "if".
5978 (struct_type, decode_array_element_type): Ditto.
5979 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5980 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5981 (decode_modified_type, completedieinfo): Ditto.
5982 * block.c: Eliminate "register".
5983 (blockvector_for_pc_sect): Eliminate assignment within "if".
5984 * cp-support.h (struct symbol): Opaque declaration.
5985 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5986
5ef165c2
RH
59872003-06-01 Richard Henderson <rth@redhat.com>
5988
98a8e1e5
RH
5989 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5990 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5991
143985b7
AF
59922003-06-01 Adam Fedor <fedor@gnu.org>
5993
5994 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5995 * gdbarch.[ch]: Regenerate.
5996 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5997 (hppa_gdbarch_init): Set it in the gdbarch vector.
5998 * i386-tdep.c (i386_fetch_pointer_argument): New
5999 (i386_gdbarch_init): Set it into gdbarch.
6000 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6001 (rs6000_gdbarch_init): Set it in gdbarch.
6002 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6003 (sparc_gdbarch_init): Set it in gdbarch.
6004
ae0167b9
AC
60052003-06-01 Andrew Cagney <cagney@redhat.com>
6006
7c0b4a20
AC
6007 * defs.h (extract_address): Delete declaration.
6008 * findvar.c (extract_address): Delete function.
6009 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6010 extract_address with the inline equivalent,
6011 extract_unsigned_integer.
6012 (xstormy16_extract_struct_value_address): Ditto.
6013 (xstormy16_pointer_to_address): Ditto.
6014 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6015 * v850-tdep.c (v850_push_arguments): Ditto.
6016 (v850_extract_return_value): Ditto.
6017 (v850_extract_struct_value_address): Ditto.
6018 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6019 (sparcnbsd_get_longjmp_target_64): Ditto.
6020 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6021 (get_longjmp_target): Ditto.
6022 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6023 (sh64_extract_struct_value_address): Ditto.
6024 (sh_push_arguments): Ditto.
6025 (sh64_push_arguments): Ditto.
6026 * remote-vxsparc.c (vx_read_register): Ditto.
6027 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6028 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6029 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6030 * mipsv4-nat.c (get_longjmp_target): Ditto.
6031 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6032 * mips-nat.c (get_longjmp_target): Ditto.
6033 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6034 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6035 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6036 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6037 * irix5-nat.c (get_longjmp_target): Ditto.
6038 * irix4-nat.c (get_longjmp_target): Ditto.
6039 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6040 (ia64_push_arguments): Ditto.
6041 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6042 * h8300-tdep.c (h8300_push_arguments): Ditto.
6043 (h8300_store_return_value): Ditto.
6044 (h8300_extract_struct_value_address): Ditto.
6045 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6046 (frv_push_arguments): Ditto.
6047 * avr-tdep.c (avr_pointer_to_address): Ditto.
6048 (avr_push_arguments): Ditto.
6049 * arm-tdep.c (arm_push_dummy_call): Ditto.
6050 (arm_get_longjmp_target): Ditto.
6051 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6052 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6053 (alpha_get_longjmp_target): Ditto.
6054
ae0167b9
AC
6055 * solib-irix.c (extract_mips_address): Inline extract_address,
6056 replacing it with extract_signed_integer.
6057 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6058 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6059 (first_link_map_member, open_symbol_file_object): Ditto.
6060 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6061 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6062 (LM_NEXT, LM_NAME): Ditto.
6063
44d88583
RH
60642003-06-01 Richard Henderson <rth@redhat.com>
6065
98a8e1e5
RH
6066 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6067 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6068 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6069 (alpha_cannot_store_register): Likewise.
6070 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6071 * alpha-nat.c (supply_gregset): Likewise.
6072 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 6073
310e9b6a
AC
60742003-06-01 Andrew Cagney <cagney@redhat.com>
6075
6076 * infcall.c (call_function_by_hand): Update comment on
6077 DEPRECATED_DUMMY_WRITE_SP.
6078
6079 * mips-tdep.c (mips_gdbarch_init): Do not set
6080 deprecated_dummy_write_sp.
6081 (mips_eabi_push_dummy_call): Set the SP register.
6082 (mips_o64_push_dummy_call): Set the SP register.
6083 (mips_o32_push_dummy_call): Set the SP register.
6084 (mips_n32n64_push_dummy_call): Set the SP register.
6085
5ab84872
RH
60862003-06-01 Richard Henderson <rth@redhat.com>
6087
98a8e1e5
RH
6088 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6089 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6090 (supply_gregset): Likewise.
6091 * alpha-tdep.c (alpha_store_return_value): Likewise.
6092 (alpha_get_longjmp_target): Likewise.
6093 (alpha_register_name): Constify array.
6094 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6095 deprecated_register_size, deprecated_register_bytes,
6096 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6097 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6098 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 6099
09cc52fd
RH
61002003-06-01 Richard Henderson <rth@redhat.com>
6101
6102 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6103 from arg_reg_buffer to regcache to avoid double conversion.
6104
c7f16359
MK
61052003-06-01 Mark Kettenis <kettenis@gnu.org>
6106
6107 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6108 SP_REGNUM.
6109 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6110 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6111
7131cb6e
RH
61122003-06-01 Richard Henderson <rth@redhat.com>
6113
98a8e1e5
RH
6114 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6115 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 6116
f3e0f90b
RH
61172003-06-01 Richard Henderson <rth@redhat.com>
6118
98a8e1e5
RH
6119 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6120 not overlapping PC_REGNUM.
f3e0f90b 6121
c88e30c0
RH
61222003-06-01 Richard Henderson <rth@redhat.com>
6123
98a8e1e5
RH
6124 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6125 alpha_push_arguments. Don't dump argument register data to
6126 the target stack. Fix float and 128-bit long double semantics.
6127 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6128 (alpha_fix_call_dummy): Remove.
6129 (alpha_call_dummy_words): Remove.
6130 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 6131
f1a559ae
RH
61322003-06-01 Richard Henderson <rth@redhat.com>
6133
6134 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6135
5e045346
AC
61362003-06-01 Andrew Cagney <cagney@redhat.com>
6137
95404a3e
AC
6138 * mips-tdep.c (is_mips16_addr): New function.
6139 (make_mips16_addr, unmake_mips16_addr): New functions.
6140 (pc_is_mips16, mips_fetch_instruction): Use.
6141 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6142 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6143 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6144 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6145 TARGET_MIPS.
6146 * config/mips/tm-mips.h: Update copyright.
6147 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6148 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6149 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6150 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6151 (TM_PRINT_INSN_MACH): Delete.
6152 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6153
5e045346
AC
6154 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6155 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6156 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6157 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6158 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6159 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6160 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6161 mips*-*-riscos* and mips*-*-sysv* onto mips.
6162 * config/mips/mips64.mt: New file.
6163 * config/mips/mips.mt: New file.
6164 * config/mips/littlemips.mt: Delete file.
6165 * config/mips/decstation.mt: Delete file.
6166 * config/mips/vr4300el.mt: Delete file.
6167 * config/mips/vr5000el.mt: Delete file.
6168 * config/mips/vr5000.mt: Delete file.
6169 * config/mips/vr4100.mt: Delete file.
6170 * config/mips/vr4xxxel.mt: Delete file.
6171 * config/mips/vr4300.mt: Delete file.
6172 * config/mips/vr4xxx.mt: Delete file.
6173 * config/mips/bigmips.mt: Delete file.
6174 * config/mips/bigmips64.mt: Delete file.
6175 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6176 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6177 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6178 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6179 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6180 "tm-bigmips.h".
6181 * config/mips/tm-irix3.h: Ditto.
6182 * config/mips/tm-mipsv4.h: Ditto.
6183 * config/mips/tm-embed.h: Ditto.
6184 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6185 "tm-bigmips64.h".
6186 * config/mips/tm-vr5000el.h: Delete file.
6187 * config/mips/tm-tx39l.h: Delete file.
6188 * config/mips/tm-vr4300el.h: Delete file.
6189 * config/mips/tm-vr4xxxel.h: Delete file.
6190 * config/mips/tm-vr4300.h: Delete file.
6191 * config/mips/tm-vr4100.h: Delete file.
6192 * config/mips/tm-vr4xxx.h: Delete file.
6193 * config/mips/tm-vr5000.h: Delete file.
6194 * config/mips/tm-embedl64.h: Delete file.
6195 * config/mips/tm-embedl.h: Delete file.
6196 * config/mips/tm-embed64.h: Delete file.
6197 * config/mips/tm-bigmips64.h: Delete file.
6198 * config/mips/tm-bigmips.h: Delete file.
6199
2473a4a9
MK
62002003-06-01 Mark Kettenis <kettenis@gnu.org>
6201
97a5b208
MK
6202 Fix gdb/1216.
6203 * shnbsd-nat.c: Include "sh-tdep.h".
6204
2473a4a9
MK
6205 From Richard Henderson <rth@redhat.com>:
6206 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6207
e0f7ec59
AC
62082003-05-31 Andrew Cagney <cagney@redhat.com>
6209
6210 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6211 forward declaration.
6212 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6213 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6214 (mips_find_saved_regs): Use set_reg_offset.
6215 (mips_frame_init_saved_regs): Delete function.
6216 (mips_pop_frame): Call mips_find_saved_regs instead of
6217 DEPRECATED_FRAME_INIT_SAVED_REGS.
6218
68dcc709
AC
62192003-05-31 Andrew Cagney <cagney@redhat.com>
6220
6221 * mips-tdep.c (mips_gdbarch_init): Do not set
6222 deprecated_max_register_raw_size, register_virtual_size, and
6223 deprecated_max_register_virtual_size.
6224
cfc14b3a
MK
62252003-05-31 Mark Kettenis <kettenis@gnu.org>
6226
6405b0a6
MK
6227 * i386-tdep.c: Include "dwarf2-frame.h".
6228 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6229 * Makefile.in (i386-tdep.o): Update dependencies.
6230
cfc14b3a
MK
6231 * dwarf2-frame.c, dwarf2-frame.h: New files.
6232 * Makefile.in (SFILES): Add dwarf2-frame.c.
6233 (dwarf2_frame_h): Define.
6234 (COMMON_OBS): Add dwarf2-frame.o.
6235 (dwarf2-frame.o): Add dependencies.
6236
6a2751d2
AJ
62372003-05-31 Andreas Jaeger <aj@suse.de>
6238
6239 * x86-64-linux-nat.c: Fix comment.
6240
1c3545ae
MK
62412003-05-31 Mark Kettenis <kettenis@gnu.org>
6242
10f93086
MK
6243 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6244 function signature.
6245
1c3545ae
MK
6246 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6247 have a sigcontext_addr handler.
6248 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6249 sigcontext_addr handler.
6250
e11c53d2
AC
62512003-05-31 Andrew Cagney <cagney@redhat.com>
6252
6253 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6254 (print_fp_register_row): Replace do_fp_register_row.
6255 (mips_print_fp_register): Add "file" and "frame" parameters.
6256 (mips_print_register): Add "file" and "frame" parameters.
6257 (mips_print_registers_info): Replace mips_do_registers_info.
6258 (mips_gdbarch_init): Set print_registers_info instead of
6259 deprecated_do_registers_info.
6260 (mips_read_fp_register_single): Add "frame" parameter.
6261 (mips_read_fp_register_double): Add "frame" parameter.
6262
a3386186
MK
62632003-05-31 Mark Kettenis <kettenis@gnu.org>
6264
70913449
MK
6265 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6266 Fixes a bug where GDB would print the wrong register names for
6267 targets without SSE.
6268
2b5e0749
MK
6269 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6270 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6271 registers.
6272
6273 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6274 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6275 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6276 TDEP->sc_sp_offset.
6277
a3386186
MK
6278 From Michal Ludvig <mludvig@suse.cz>:
6279 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6280 and `sc_num_regs'.
6281 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6282 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6283 I386_ST0_REGNUM): Move here from...
6284 * i386-tdep.c: ... here.
6285 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6286 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6287 registers if possible.
6288 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6289 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6290 Remove variables.
6291 (i386bsd_sc_reg_offset): New variable.
6292 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6293 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6294 TDEP->sc_sp_offset.
6295 (i386fbsd_sc_reg_offset): New variable.
6296 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6297 TDEP->sc_num_regs.
6298 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6299 variables.
6300 (i386fbsd4_sc_reg_offset): New variable.
6301 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6302 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6303 TDEP->sc_sp_offset.
6304 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6305 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6306 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6307 Remove variables.
6308 (i386nbsd_sc_reg_offset): New variable.
6309 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6310 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6311 TDEP->sc_sp_offset.
6312 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6313 Remove variables.
6314 (i386obsd_sc_reg_offset): New variable.
6315 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6316 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6317 TDEP->sc_sp_offset.
6318 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6319 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6320 for frame pointer offset in `struct sigcontext'.
6321
25ab4790
AC
63222003-05-31 Andrew Cagney <cagney@redhat.com>
6323
6324 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6325 architecture methods call_dummy_words, sizeof_call_dummy_words,
6326 push_return_address, store_struct_return, and fix_call_dummy. Set
6327 push_dummy_call instead of deprecated_push_arguments.
6328 (mips_store_struct_return): Delete function.
6329 (mips_fix_call_dummy): Delete function.
6330 (mips_push_return_address): Delete function.
6331 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6332 RA_REGNUM and T9_REGNUM.
6333 (mips_n32n64_push_dummy_call): Ditto for
6334 mips_n32n64_push_arguments.
6335 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6336 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6337
6a65450a
AC
63382003-05-31 Andrew Cagney <cagney@redhat.com>
6339
6340 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6341 "dummy_addr" to "bp_addr".
6342 * infcall.c (call_function_by_hand): Pass "funaddr" to
6343 gdbarch_push_dummy_call.
6344 * gdbarch.h, gdbarch.c: Re-generate.
6345 * i386-tdep.c (i386_push_dummy_call): Update.
6346 * arm-tdep.c (arm_push_dummy_call): Update.
6347 * d10v-tdep.c (d10v_push_dummy_call): Update.
6348
c4f35dd8
MK
63492003-05-31 Mark Kettenis <kettenis@gnu.org>
6350
6351 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6352 variable declarations.
6353 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6354 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6355 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6356 x86_64_init_frame_pc, x86_64_init_frame_pc,
6357 x86_64_function_has_prologue): Remove prototypes.
6358 (X86_64_NUM_GREGS): New define.
6359 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6360 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6361 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6362 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6363 XMM1_REGNUM): Remove defines.
6364 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6365 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6366 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6367 X86_64_XMM1_REGNUM): New defines.
6368 (struct x86_64_register_info): Renamed from `struct
6369 register_info'. Remove `size' member.
6370 (x86_64_register_info_table): Remove variable.
6371 (x86_64_register_info): New variable.
6372 (X86_64_NUM_REGS): New define.
6373 (X86_64_NUM_GREGS): Remove define.
6374 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6375 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6376 Remove variables.
6377 (x86_54_dwarf2_reg_to_regnum): Remove function.
6378 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6379 (x86_64_dwarf_reg_to_regnum): New function.
6380 (x86_64_register_name): Rewrite.
6381 (x86_64_register_raw_size): Remove function.
6382 (x86_64_register_byte_table): Remove variable.
6383 (x86_64_register_byte): Remove function.
6384 (x86_64_register_virtual_type): Remove function.
6385 (x86_64_register_type): New function.
6386 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6387 x86_64_register_convert_to_raw): Remove functions.
6388 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6389 (x86_64_use_struct_convention): Make static. Adjust for renamed
6390 defines.
6391 (x86_64_frame_init_saved_regs): Remove function.
6392 (x86_64_push_arguments): Make static. Change to accept a regcache
6393 as argument.
6394 (x86_64_store_return_value, x86_64_extract_return_value): Make
6395 static. Rewrite based on i386 counterparts.
6396 (x86_64_push_dummy_call): New function.
6397 (X86_64_NUM_SAVED_REGS): New define.
6398 (x86_64_register_number): Remove function.
6399 (x86_64_store_struct_return): Remove function.
6400 (x86_64_frameless_function_invocation,
6401 x86_64_function_has_prologue): Remove functions.
6402 (PROLOG_BUFSIZE): Remove define.
6403 (struct x86_64_frame_cache): New structure.
6404 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6405 x86_64_frame_cache, x86_64_frame_this_id,
6406 x86_64_frame_prev_register, x86_64_frame_p,
6407 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6408 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6409 functions.
6410 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6411 variables.
6412 (x86_64_skip_prologue): Rewrite in terms of
6413 x86_64_analyze_prologue.
6414 (x86_64_frame_base_address): New function.
6415 (x86_64_frame_base): New variable.
6416 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6417 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6418 set deprecated_fp_regnum, deprecated_register_size,
6419 deprecated_register_bytes, register_raw_size, register_byte,
6420 register_virtual_type, register_convertiable,
6421 register_convert_to_virtual, convert_to_raw,
6422 deprecated_get_saved_register, deprecated_target_read_fp,
6423 deprecated_push_arguments, deprecated_push_return_address,
6424 deprecated_pop_frame, deprecated_store_struct_return,
6425 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6426 frameless_function_invocation, deprecated_frame_saved_pc,
6427 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6428 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6429 deprecated_init_frame_pc and virtual_frame_pointer. Call
6430 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6431 and x86_64_frame_p. Call frame_base_set_default to register
6432 x86_64_frame_base.
6433 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6434 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6435 (_initialize_x86_64_tdep): Remove function.
6436 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6437 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6438 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6439 define.
6440 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6441 (x86_64_linux_sigcontext_addr): Rewrite.
6442 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6443 x86_64_linux_frame_saved_pc): Remove functions.
6444 (x86_64_linux_pc_in_sigtramp): Renamed from
6445 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6446 trampoline.
6447 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6448 Remove_functions.
6449 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6450 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6451 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6452 (x86_64_regmap): Rename to regmap.
6453 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6454 x86_64_num_gregs.
6455 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6456 x86_64_regmap.
6457 (x86_64_fxsave_offset): Remove function.
6458 (supply_fpregset): Simply call x86_64_supply_fxsave.
6459 (fill_fpregset): Simply call x86_64_fill_fxsave.
6460 (fetch_inferior_registers, store_inferior_registers): Avoid
6461 asignment in if-statement.
6462 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6463 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6464 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6465 (fetch_core_registers): Remove function.
6466 (linux_elf_core_fns): Remove.
6467 (offsetoff): Don't define.
6468 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6469 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6470 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6471 add core-regset.o.
6472 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6473 protection against multiple includes instead of NM_X86_64_h. Add
6474 various comments. Include "config/nm-linux.h". Don't include
6475 <signal.h>.
6476 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6477 GET_THREAD_SIGNALS): Remove defines.
6478 (x86_64_register_u_addr, kernel_u_size,
6479 lin_thread_get_thread_signals): Remove prototypes.
6480 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6481 [HAVE_LINK_H]: Don't include "solib.h".
6482 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6483 * config/i386/tm-x86-64linux.h: Fix comments.
6484 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6485 x86-64-tdep.o): Update dependencies.
6486
c25083af
AC
64872003-05-30 Andrew Cagney <cagney@redhat.com>
6488
c8f55a7b
AC
6489 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6490 Change parameter type to a "struct regcache *".
6491
c25083af
AC
6492 * gdbarch.sh: Regardless of the multi-arch level, always define
6493 the macro when not already defined.
6494 * gdbarch.h, gdbarch.c: Re-generate.
6495
fbe586ae
RH
64962003-05-30 Richard Henderson <rth@redhat.com>
6497
6498 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6499 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6500 (alpha_mdebug_frame_this_id): Likewise.
6501 (alpha_mdebug_frame_prev_register): Likewise.
6502 (alpha_mdebug_frame_base_address): Likewise.
6503 (alpha_mdebug_frame_locals_address): Likewise.
6504 (alpha_mdebug_frame_args_address): Likewise.
6505 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6506 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6507 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6508 loop increment.
6509 (alpha_heuristic_frame_this_id): Make static.
6510 (alpha_heuristic_frame_prev_register): Likewise.
6511 (alpha_heuristic_frame_base_address): Likewise.
6512 * alpha-tdep.h: Update.
6513
acd5c798
MK
65142003-05-30 Mark Kettenis <kettenis@gnu.org>
6515
6516 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6517 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6518 defenitions.
6519 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6520 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6521 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6522 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6523 I386_ST0_REGNUM): New defines.
6524 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6525 codestream_get): Remove define.
6526 (codestream_next_addr, condestream_addr, condestream_buf,
6527 codestream_off, codestream_cnt): Remove variables.
6528 (codestream_fill, codestream_seek, codestream_read): Remove
6529 functions.
6530 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6531 functionality.
6532 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6533 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6534 i386_frame_saved_pc, i386_saved_pc_after_call,
6535 i386_frame_num_args, i386_frame_init_saved_regs,
6536 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6537 i386_push_arguments): Remove functions.
6538 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6539 functionality. Use i386_analyze_prologue instead of
6540 i386_get_frame_setup.
6541 (I386_NUM_SAVED_REGS): New define.
6542 (struct i386_frame_cache): New structure.
6543 (i386_alloc_frame_cache, i386_analyze_struct_return,
6544 i386_skip_probe, i386_analyze_frame_setup,
6545 i386_analyze_register_saves, i386_analyze_prologue,
6546 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6547 i386_frame_prev_register, i386_sigtramp_frame_cache,
6548 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6549 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6550 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6551 New functions.
6552 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6553 New variables.
6554 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6555 I386_EAX_REGNUM and I386_EDX_REGNUM.
6556 (i386_extract_return_value, i386_store_return_value): Use
6557 I386_ST0_REGNUM where appropriate.
6558 (i386_extract_struct_value_address): Rewrite to use extract_address.
6559 (i386_svr4_pc_in_sigtramp): Add comment.
6560 (i386_svr4_sigcontext_addr): Rewrite.
6561 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6562 TDEP->sc_sp_offset.
6563 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6564 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6565 of new defines. Set push_dummy_call, don't set
6566 deprecated_push_arguments, deprecated_push_return_address,
6567 deprecated_pop_frame. Don't set parm_boundary. Don't set
6568 deprecated_frame_chain, deprecated_frame_saved_pc,
6569 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6570 save_dummy_frame_tos, unwind_pc. Call
6571 frame_unwind_append_predicate and frame_base_set_default. Don't
6572 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6573 Don't set frameless_function_invocation. Don't set
6574 deprecated_register_bytes, deprecated_register_size,
6575 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6576 * i386-linux-tdep.c: Fix formatting in some comments.
6577 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6578 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6579 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6580 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6581 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6582 redundant parentheses.
6583 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6584 (i386_linux_sigcontext_addr): Use it. Rewrite.
6585 (find_minsym_and_objfile): Change name of second argument.
6586 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6587 changed. Use frame_pc_unwind instead of
6588 DEPRECATED_SAVED_PC_AFTER_CALL.
6589 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6590 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6591 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6592 unwinder.
6593 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6594 "dummy-frame.h".
6595 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6596 (_initialize_i386_cygwin_tdep): New prototype.
6597 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6598 deprecated_frame_chain_valid.
6599 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6600 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6601 Rely on the SVR4 defaults.
6602 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6603 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6604
c89b70f1
AC
66052003-05-30 Andrew Cagney <cagney@redhat.com>
6606
6607 * infcall.c (call_function_by_hand): Always call
6608 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6609
85b32d22
RH
66102003-05-30 Richard Henderson <rth@redhat.com>
6611
c89b70f1
AC
6612 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6613 increment.
85b32d22 6614
bfe51b1e
JB
66152003-05-29 Jim Blandy <jimb@redhat.com>
6616
6617 Use gdbarch methods for solib stuff on PowerPC Linux.
6618 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6619 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6620 show through.
6621 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6622 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6623 giving the same effect as the #definitions above.
6624
1abf022c
AF
66252003-05-29 Adam Fedor <fedor@gnu.org>
6626
6627 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6628 (find_implementation_from_class): Replace it with the standard
6629 case i.e. do nothing.
6630
d2427a71
RH
66312003-05-29 Richard Henderson <rth@redhat.com>
6632
6633 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6634 (alpha_linux_sigtramp_offset): Use it. Make static.
6635 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6636 update for new frame model.
6637 * alpha-mdebug-tdep.c: New file.
6638 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6639 (alpha_osf1_init_abi): Install it.
6640 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6641 (linked_proc_desc_table): Remove.
6642 (alpha_frame_past_sigtramp_frame): Remove.
6643 (alpha_dynamic_sigtramp_offset): Remove.
6644 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6645 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6646 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6647 (push_sigtramp_desc): Remove.
6648 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6649 (alpha_cannot_store_register): Likewise.
6650 (alpha_sigcontext_addr): Remove.
6651 (alpha_find_saved_regs): Remove.
6652 (alpha_frame_init_saved_regs): Remove.
6653 (alpha_init_frame_pc_first): Remove.
6654 (read_next_frame_reg): Remove.
6655 (alpha_frame_saved_pc): Remove.
6656 (alpha_saved_pc_after_call): Remove.
6657 (temp_proc_desc, temp_saved_regs): Remove.
6658 (alpha_about_to_return): Remove.
6659 (cached_proc_desc): Remove.
6660 (alpha_frame_chain): Remove.
6661 (alpha_print_extra_frame_info): Remove.
6662 (alpha_init_extra_frame_info): Remove.
6663 (alpha_frame_locals_address): Remove.
6664 (alpha_frame_args_address): Remove.
6665 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6666 (alpha_push_dummy_frame): Remove.
6667 (alpha_pop_frame): Remove.
6668 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6669 (alpha_read_insn): New.
6670 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6671 for different insn encodings.
6672 (alpha_in_lenient_prologue): Remove.
6673 (struct alpha_sigtramp_unwind_cache): New.
6674 (alpha_sigtramp_frame_unwind_cache): New.
6675 (alpha_sigtramp_register_address): New.
6676 (alpha_sigtramp_frame_this_id): New.
6677 (alpha_sigtramp_frame_prev_register): New.
6678 (alpha_sigtramp_frame_unwind): New.
6679 (alpha_sigtramp_frame_p): New.
6680 (struct alpha_heuristic_unwind_cache): New.
6681 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6682 don't count nop insns that occur between functions.
6683 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6684 heuristic_proc_desc, but without the mdebug wrapping.
6685 (alpha_heuristic_frame_this_id): New.
6686 (alpha_heuristic_frame_prev_register): New.
6687 (alpha_heuristic_frame_unwind): New.
6688 (alpha_heuristic_frame_p): New.
6689 (alpha_heuristic_frame_base_address): New.
6690 (alpha_heuristic_frame_base): New.
6691 (alpha_unwind_dummy_id): New.
6692 (alpha_unwind_pc): New.
6693 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6694 frame related deprecated initializations; install replacements.
6695 (alpha_dump_tdep): Remove.
6696 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6697 (alpha_read_insn, alpha_after_prologue,
6698 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6699 alpha_heuristic_frame_prev_register,
6700 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6701 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6702 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6703 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6704
93ec1121
AC
67052003-05-29 Andrew Cagney <cagney@redhat.com>
6706
6707 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6708 dependant on the availability of ASSERT_FUNCTION.
6709 (ASSERT_FUNCTION): Do not define when there is no function name.
6710
98f08d3d
KB
67112003-05-29 Kevin Buettner <kevinb@redhat.com>
6712
6713 From Jimi X <jimix@watson.ibm.com>:
6714 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6715
0897f59b
JB
67162003-05-28 Jim Blandy <jimb@redhat.com>
6717
6718 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6719 argument to ptrace to int; the system headers should give it the
6720 right type, and pointers don't fit in ints on powerpc64-*-*.
6721
14898363
L
67222003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6723
6724 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6725 DW_TAG_catch_block.
6726
a7a48797
EZ
67272003-05-26 Elena Zannoni <ezannoni@redhat.com>
6728
6729 * stabsread.c (dbx_lookup_type): Make static.
6730 (read_type): Ditto.
6731 (add_undefined_type): Ditto.
6732 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6733 not export.
6734
f5479e9c
EZ
67352003-05-26 Elena Zannoni <ezannoni@redhat.com>
6736
6737 * hpread.c (hpread_has_name): Make static.
6738 (hpread_psymtab_to_symtab): Ditto.
6739 (file_exists): Ditto.
6740 (hpread_call_pxdb): Ditto.
6741 (hpread_pxdb_needed): Ditto.
6742 (hpread_quick_traverse): Ditto.
6743 (hpread_get_header): Ditto.
6744 (hpread_get_lntt): Ditto.
6745 (hpread_get_slt): Ditto.
6746 (class_of): Ditto.
6747
eb2e12d7
AS
67482003-05-25 Andreas Schwab <schwab@suse.de>
6749
78bf922a
AS
6750 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6751 stack_align and deprecated_extra_stack_alignment_needed.
6752 (m68k_stack_align): Delete.
6753
eb2e12d7
AS
6754 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6755 (m68k_register_virtual_size): Likewise.
6756 (altos_skip_prologue): Remove obsolete function.
6757 (isi_frame_num_args): Likewise.
6758 (news_frame_num_args): Likewise.
6759 (m68k_fix_call_dummy): Make static.
6760 (m68k_push_dummy_frame): Likewise.
6761 (m68k_pop_frame): Likewise.
6762 (m68k_skip_prologue): Likewise.
6763 (m68k_frame_init_saved_regs): Likewise.
6764 (m68k_saved_pc_after_call): Likewise.
6765 (m68k_get_longjmp_target): Make multi-arch.
6766 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6767 structure. Register m68k_get_longjmp_target if enabled.
6768 * m68k-tdep.h (struct gdbarch_tdep): Define.
6769 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6770
6771 * Makefile.in (config.status): Also depend on configure.tgt
6772 and configure.host.
6773 (m68klinux-tdep.o): Update dependencies.
6774 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6775 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6776 (M68K_LINUX_JB_PC): Define.
6777 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6778 and take additional parameter.
6779 (m68k_linux_sigtramp_saved_pc): Update.
6780 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6781 m68k_linux_pc_in_sigtramp, in_plt_section,
6782 find_solib_trampoline_target.
6783 * config/m68k/tm-linux.h: Don't include any tm headers.
6784 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6785 (JB_ELEMENT_SIZE): Likewise.
6786 (JB_PC): Likewise.
6787 (GET_LONGJMP_TARGET): Likewise.
6788 (IN_SIGTRAMP): Likewise.
6789 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6790
eb2c22dc
MK
67912003-05-25 Mark Kettenis <kettenis@gnu.org>
6792
6793 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6794 (sparc32_push_arguments): Re-implement by calling
6795 sparc32_do_push_arguments.
6796
44b7b84e
MK
67972003-05-25 Mark Kettenis <kettenis@gnu.org>
6798
6799 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6800 SPARC_O1_REGNUM): New defines.
6801 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6802 (sparc32_store_return_value): New function.
6803 (sparc_extract_struct_value_address): Rewrite to operate on a
6804 regcache.
6805 (sparc_gdbarch_init): Don't set
6806 deprecated_extract_struct_value_address. Set
6807 extract_struct_value_address instead. Don't set
6808 deprecated_extract_return_value and deprecated_store_return_value
6809 for 32-bit targets. Set extract_return_value and
6810 store_return_value instead.
6811 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6812 DEPRECTAED_EXTRACT_RETURN_VALUE,
6813 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6814 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6815 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6816 (sparc_store_return_value): Remove prototype.
6817 (sparc32_store_return_value): New prototype.
6818 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6819 Adjust prototypes.
6820
f6ad61e3
MK
68212003-05-24 Mark Kettenis <kettenis@gnu.org>
6822
6823 * sparcnbsd-tdep.c: Include "gdb_string.h".
6824
b276f1bb
AC
68252003-05-23 Andrew Cagney <cagney@redhat.com>
6826
6827 * p-valprint.c (pascal_val_print): Replace extract_address with
6828 the inline equivalent extract_unsigned_integer.
6829 * jv-valprint.c (java_value_print): Ditto.
6830 * ada-valprint.c (ada_val_print_1): Ditto.
6831 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6832
e76c5fcc
TR
68332003-05-23 Theodore A. Roth <troth@openavr.org>
6834
6835 * blockframe.c (frameless_look_for_prologue): Remove unused
6836 after_prologue variable.
6837
2cdd89cb
MK
68382003-05-23 Mark Kettenis <kettenis@gnu.org>
6839
6840 * blockframe.c (get_pc_function_start): Rewrite to avoid
6841 asignments in if-statements.
6842
182d43bc
EZ
68432003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6844
6845 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6846 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6847 files, don't relocate absolute symbols (and do use mst_abs).
6848
e8f3fcdd
AC
68492003-05-23 Andrew Cagney <cagney@redhat.com>
6850
6851 * objc-lang.c: Include "gdb_assert.h".
6852 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6853 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6854 (gdb_check, gdb_check_fatal): Delete functions.
6855 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6856 gdb_assert.
6857 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6858 * Makefile.in (objc-lang.o): Update dependencies.
6859
3c23e6fb
ILT
68602003-05-22 Ian Lance Taylor <ian@airs.com>
6861
6862 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6863 with fprintf_filtered, not fprintf_unfiltered.
6864
af1342ab
AC
68652003-05-22 Andrew Cagney <cagney@redhat.com>
6866
6867 * stack.c (frame_info): Inline extract_address, replacing it with
6868 extract_unsigned_integer.
6869 * findvar.c (unsigned_pointer_to_address): Ditto.
6870 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6871 * dwarf2expr.c (dwarf2_read_address): Ditto.
6872 * frame.c (frame_pc_unwind): Update comment.
6873 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6874
47e242ec
JJ
68752003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6876
6877 * infptrace.c (detach): Call print_sys_errmsg rather than
6878 perror_with_name to issue warning message when errno is non-zero
6879 after calling ptrace detach.
6880
e2ac8128
JB
68812003-05-21 J. Brobecker <brobecker@gnat.com>
6882
6883 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6884 macro definitions from here...
6885 * hppa-tdep.c: ...to there.
6886
92b3541e
KB
68872003-05-20 Kevin Buettner <kevinb@redhat.com>
6888
6889 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6890 register_ptrace_addr(). Fix all callers.
6891
55809acb
AS
68922003-05-21 Andreas Schwab <schwab@suse.de>
6893
6894 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6895 dependencies.
6896 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6897 end.
6898 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6899 (_initialize_m68k_linux_tdep): New function.
6900 (m68k_linux_frame_saved_pc): Make static.
6901 (m68k_linux_extract_return_value): Likewise.
6902 (m68k_linux_store_return_value): Likewise.
6903 (m68k_linux_extract_struct_value_address): Likewise.
6904 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6905 Remove.
6906 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6907 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6908 (DEPRECATED_FRAME_SAVED_PC): Remove.
6909
0fbc10f7
KW
69102003-05-20 Kris Warkentin <kewarken@qnx.com>
6911
6912 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6913 regset numbering rather than our own.
6914
58da2eb2
DC
69152003-05-19 David Carlton <carlton@bactrian.org>
6916
6917 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6918
1fcb5155
DC
69192003-05-19 David Carlton <carlton@bactrian.org>
6920
6921 Partial fix for PR c++/827.
6922 * cp-support.h: Include symtab.h.
6923 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6924 * cp-namespace.c: Update contributors.
6925 (cp_lookup_symbol_nonlocal): New.
6926 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6927 (lookup_symbol_file): Ditto.
6928 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6929 * block.h: Declare block_scope, block_using, block_global_block.
6930 * block.c (block_scope): New.
6931 (block_using, block_global_block): Ditto.
6932 * Makefile.in (cp_support_h): Depend on symtab_h.
6933 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6934
5f9a71c3
DC
69352003-05-19 David Carlton <carlton@bactrian.org>
6936
6937 * language.h (struct language_defn): Add 'la_value_of_this'
6938 and 'la_lookup_symbol_nonlocal' members.
6939 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6940 lookup_symbol_static, lookup_symbol_global,
6941 lookup_symbol_aux_block.
6942 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6943 if we should search fields of this and how to do static/global
6944 lookup.
6945 (lookup_symbol_aux_block): Make extern.
6946 (basic_lookup_symbol_nonlocal): New.
6947 (lookup_symbol_static, lookup_symbol_global): Ditto.
6948 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6949 'la_lookup_symbol_nonlocal' members.
6950 * c-lang.c (c_language_defn, cplus_language_defn)
6951 (asm_language_defn, minimal_language_defn): Ditto.
6952 * jv-lang.c (java_language_defn): Ditto.
6953 * language.c (unknown_language_defn, auto_language_defn)
6954 (local_language_defn): Ditto.
6955 * m2-lang.c (m2_language_defn): Ditto.
6956 * objc-lang.c (objc_language_defn): Ditto.
6957 * scm-lang.c (scm_language_defn): Ditto.
6958 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6959 * p-lang.c (pascal_language_defn): Ditto for both.
6960 * Makefile.in (f-lang.o): Depend on value_h.
6961 (p-lang.o): Ditto.
6962
89a9d1b1
DC
69632003-05-19 David Carlton <carlton@bactrian.org>
6964
6965 * block.h: Declare block_static_block.
6966 * block.c (block_static_block): New.
6967 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6968 lookup_symbol_aux_local, calling block_static_block instead.
6969 (lookup_symbol_aux_local): Delete 'static_block' argument.
6970
eed3f8ab
DC
69712003-05-19 David Carlton <carlton@bactrian.org>
6972
6973 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6974
a09d8bda
ML
69752003-05-19 Michal Ludvig <mludvig@suse.cz>
6976
6977 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6978 register numbers mapping.
6979
69636828
AF
69802003-05-18 Adam Fedor <fedor@gnu.org>
6981
6982 * symtab.c (completion_list_objc_symbol): New function.
6983 (make_symbol_completion_list): Use it to add ObjC symbols
6984 when looking though the list.
6985 (language_search_unquoted_string): New function.
6986 (make_file_symbol_completion_list): Use it.
6987
55baeb84
AS
69882003-05-18 Andreas Schwab <schwab@suse.de>
6989
d0b45d99
AS
6990 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6991 dependencies.
6992 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6993 as m68k_linux_extract_return_value.
6994 (DEPRECATED_STORE_RETURN_VALUE): Define as
6995 m68k_linux_store_return_value.
6996 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6997 m68k_linux_extract_struct_value_address.
6998 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6999 get_next_frame, get_frame_base, get_frame_pc.
7000 (m68k_linux_frame_saved_pc): Use get_frame_base.
7001 (m68k_linux_extract_return_value): New function.
7002 (m68k_linux_store_return_value): New function.
7003 (m68k_linux_extract_struct_value_address): New function.
7004 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7005
55baeb84
AS
7006 * c-exp.y (typebase): Remove duplicate occurence of
7007 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 7008 of lookup_signed_typename.
55baeb84 7009
b6b08ebf
MK
70102003-05-18 Mark Kettenis <kettenis@gnu.org>
7011
7012 * dwarf2loc.c (find_location_expression): Change type of second
7013 argument to `size_t *'.
7014 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7015 for size variable.
7016
5ad1c190
DC
70172003-05-18 David Carlton <carlton@bactrian.org>
7018
7019 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7020 'linkage_name'. Add comment.
7021 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7022 'linkage_name'.
7023 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7024 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7025 (lookup_block_symbol): Ditto.
7026
b8b527c5
AC
70272003-05-16 Andrew Cagney <cagney@redhat.com>
7028
7029 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7030 * gdbarch.h, gdbarch.c: Re-generate.
7031 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7032 * TODO (REGISTER_BYTES): Delete reference.
7033 * alpha-tdep.c (alpha_gdbarch_init): Update.
7034 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7035 * x86-64-tdep.c (x86_64_init_abi): Update.
7036 * vax-tdep.c (vax_gdbarch_init): Update.
7037 * v850-tdep.c (v850_gdbarch_init): Update.
7038 * sparc-tdep.c (sparc_gdbarch_init): Update.
7039 * sh-tdep.c (sh_gdbarch_init): Update.
7040 * s390-tdep.c (s390_gdbarch_init): Update.
7041 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7042 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7043 (ns32k_gdbarch_init_32382): Update.
7044 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7045 * mcore-tdep.c (mcore_gdbarch_init): Update.
7046 * m68k-tdep.c (m68k_gdbarch_init): Update.
7047 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7048 * ia64-tdep.c (ia64_gdbarch_init): Update.
7049 * i386-tdep.c (i386_gdbarch_init): Update.
7050 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7051 * hppa-tdep.c (hppa_gdbarch_init): Update.
7052 * h8300-tdep.c (h8300_gdbarch_init): Update.
7053 * frv-tdep.c (frv_gdbarch_init): Update.
7054 * cris-tdep.c (cris_gdbarch_init): Update.
7055 * avr-tdep.c (avr_gdbarch_init): Update.
7056 * arm-tdep.c (arm_gdbarch_init): Update.
7057 * sparc-tdep.c (sparc_pop_frame): Update.
7058 * rs6000-tdep.c (rs6000_pop_frame): Update.
7059 * remote.c (init_remote_state): Update.
7060 (remote_prepare_to_store): Update.
7061 * remote-vx.c (vx_prepare_to_store): Update.
7062 * remote-sds.c (sds_fetch_registers): Update.
7063 (sds_prepare_to_store): Update.
7064 * remote-array.c: Update.
7065 * regcache.c (init_legacy_regcache_descr): Update.
7066 (init_regcache_descr): Update.
7067 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7068 (mips_o64_extract_return_value): Update.
7069 * irix5-nat.c (fetch_core_registers): Update.
7070 * irix4-nat.c (fetch_core_registers): Update.
7071 * i386-tdep.h: Update.
7072 * hppa-tdep.c (pa_do_registers_info): Update.
7073 (pa_do_strcat_registers_info): Update.
7074 * cris-tdep.c (cris_register_bytes_ok): Update.
7075 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7076 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7077 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7078 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7079 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7080 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7081 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7082 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7083 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7084 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7085 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7086 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7087 (REGISTER_BYTES_OK): Update.
7088 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7089 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7090
ee2842e2
ILT
70912003-05-16 Ian Lance Taylor <ian@airs.com>
7092
7093 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7094 (vax_print_insn, print_insn_arg): Remove static functions.
7095 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7096 print_insn_vax from opcodes library.
7097 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7098
973177d3
AC
70992003-05-15 Andrew Cagney <cagney@redhat.com>
7100
aaab4dba
AC
7101 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7102 * target.h (memory_breakpoint_from_pc): Delete declaration.
7103 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7104 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7105 * monitor.c (monitor_insert_breakpoint): Use
7106 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7107 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7108 * gdbarch.h, gdbarch.c: Re-generate.
7109 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7110 (sparc_gdbarch_init): Set breakpoint_from_pc to
7111 sparc_breakpoint_from_pc.
7112 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7113 (BREAKPOINT_FROM_PC): Define.
7114 (sparc_breakpoint_from_pc): Declare.
7115 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7116 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7117 (BREAKPOINT_FROM_PC): Define.
7118 (BREAKPOINT): Delete macro.
7119 * target.h: Update comment.
7120 * s390-tdep.c (s390_gdbarch_init): Update comments.
7121 * remote.c: Update comments.
7122 * remote-mips.c: Update comments.
7123 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7124 * mem-break.c: Update comment.
7125 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7126 (ia64_memory_insert_breakpoint): Update.
7127 * config/sparc/tm-sparc.h: Update comment.
7128 * config/pa/tm-hppa64.h: Update comment.
7129 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7130 (rs6000_breakpoint_from_pc): Update.
7131 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7132 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7133 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7134 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7135 (mips_breakpoint_from_pc): Update.
7136 (mips_dump_tdep): Update.
7137
e06963ff
AC
7138 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7139 * minsyms.c (lookup_minimal_symbol): Inline
7140 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7141
973177d3
AC
7142 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7143 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7144 * p-lang.c (pascal_printstr): Ditto.
7145 * objc-lang.c (objc_printstr): Ditto.
7146 * m2-lang.c (m2_printstr): Ditto.
7147 * jv-valprint.c (java_print_value_fields): Ditto.
7148 * f-lang.c (f_printstr): Ditto.
7149 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7150 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7151 for repeat_count_threshold.
7152 * Makefile.in (cp-valprint.o): Update dependencies.
7153
5ea2bd7f 71542003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7155
5ea2bd7f
JJ
7156 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7157 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
7158 they start with mov r2,r12. Support skipping over indirect stores
7159 of the input registers. Upon hitting a non-nop branch instruction
7160 or predicated instruction, bail out by setting lim_pc to the current
7161 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
7162 beyond our calculated value and we have trust_limit set,
7163 use the lim_pc value.
7164
cc8c88f3
AC
71652003-05-15 Andrew Cagney <cagney@redhat.com>
7166
7167 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7168 generic_find_dummy_frame.
7169 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7170 (deprecated_generic_find_dummy_frame): Update.
7171 (deprecated_read_register_dummy): Update.
7172 * frame.c (deprecated_generic_get_saved_register): Update.
7173
909cd28e
TR
71742003-05-15 Theodore A. Roth <troth@openavr.org>
7175
7176 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7177 (avr_gdbarch_init): Set breakpoint_from_pc method.
7178
b923b08d
AC
71792003-05-15 Andrew Cagney <cagney@redhat.com>
7180
7181 * regcache.c (build_regcache): Set deprecated_register_valid
7182 directly.
7183 (deprecated_grub_regcache_for_register_valid): Delete function.
7184 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7185 declaration.
7186
ae2f03ac 71872003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
7188
7189 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
7190 * symtab.c (lookup_symbol_aux): Delete calls to
7191 lookup_symbol_aux_minsyms.
7192 (lookup_symbol_aux_minsyms): Comment out function and
7193 prototype. Delete lookup by mangled name.
ae2f03ac 7194
18ec9831
KB
71952003-05-14 Kevin Buettner <kevinb@redhat.com>
7196
7197 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7198 correctly indicate an empty stack and ``stack_allocated'' to the
7199 indicate the number of elements initially allocated.
7200 (dwarf_expr_grow_stack): Simplify method for computing new
7201 stack size. Don't loop infinitely if ``stack_len'' is zero.
7202 (execute_stack_op): Move ``ctx->in_reg'' initialization
7203 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7204 be used in conjuction with DW_OP_piece. Revise error message
7205 accordingly.
7206
de18ac1f
TR
72072003-05-14 Theodore A. Roth <troth@openavr.org>
7208
7209 * MAINTAINERS: Update my email address.
7210 * avr-tdep.c: Ditto.
7211
176620f1
EZ
72122003-05-14 Elena Zannoni <ezannoni@redhat.com>
7213
7214 * symtab.h (enum domain_enum): Rename from namespace_enum.
7215 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7216 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7217 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7218 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7219 TYPES_NAMESPACE, METHODS_NAMESPACE.
7220 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7221 (struct symbol, struct partial_symbol): Rename field
7222 'namespace_enum namespace' to 'domain_enum domain'.
7223 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7224 Delete old define kludge for namespace.
7225
7226 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7227 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7228 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7229 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7230 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7231 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7232 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7233 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7234 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7235 occurrences of the above.
7236
b7f31508
ILT
72372003-05-14 Ian Lance Taylor <ian@airs.com>
7238
7239 * Makefile.in (install-only): Use $(SHELL) when running
7240 mkinstalldirs.
7241
2fdbdd39
ILT
72422003-05-13 Ian Lance Taylor <ian@airs.com>
7243
a208d82c
ILT
7244 * MAINTAINERS (write after approval): Add myself.
7245
2fdbdd39
ILT
7246 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7247 second and third arguments.
7248 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7249 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7250
fbd9dcd3
AC
72512003-05-13 Andrew Cagney <cagney@redhat.com>
7252
7253 * defs.h (store_address): Delete declaration.
7254 findvar.c (store_address): Delete function.
7255 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7256 store_unsigned_integer.
7257 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7258 * v850-tdep.c (v850_push_arguments): Ditto.
7259 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7260 * sh-tdep.c (sh64_get_saved_register): Ditto.
7261 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7262 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7263 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7264 (mips_get_saved_register): Ditto.
7265 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7266 (find_func_descr, ia64_push_arguments): Ditto.
7267 * i386-tdep.c (i386_push_arguments): Ditto.
7268 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7269 * frv-tdep.c (frv_push_arguments): Ditto.
7270 * frame.c (legacy_saved_regs_prev_register): Ditto.
7271 (deprecated_generic_get_saved_register): Ditto.
7272 * findvar.c (unsigned_address_to_pointer): Ditto.
7273 * dwarf2read.c (dwarf2_const_value): Ditto.
7274 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7275 * alpha-tdep.c (alpha_push_arguments): Ditto.
7276
6760f9e6
JB
72772003-05-12 J. Brobecker <brobecker@gnat.com>
7278
7279 * NEWS: Mention that the hppa-hpux port has been partially
7280 multiarched (32bit ABIT only, so far).
7281
30e221b4
AC
72822003-05-11 Andrew Cagney <cagney@redhat.com>
7283
7284 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7285 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7286 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7287 sim/testsuite/sim/arm/misaligned2.ms, and
7288 sim/testsuite/sim/arm/misaligned3.ms.
7289 * disasm.h (struct ui_file): Add opaque struct declaration.
7290 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7291 * frame.h (struct ui_file): Ditto.
7292
dea7f9ba
MK
72932003-05-11 Mark Kettenis <kettenis@gnu.org>
7294
7295 * value.h: Pretty print.
7296
01986c48
MK
72972003-05-10 Mark Kettenis <kettenis@gnu.org>
7298
7299 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7300
123a958e
AC
73012003-05-08 Andrew Cagney <cagney@redhat.com>
7302
7303 * regcache.h (max_register_size): Delete declaration.
7304 * regcache.c (max_register_size): Delete function.
7305 (struct regcache_descr): Delete field "max_register_size".
7306 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7307 registers fit in MAX_REGISTER_SIZE.
7308 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7309 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7310 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7311 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7312 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7313 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7314 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7315 * dve3900-rom.c, hppa-tdep.c: Ditto.
7316
eb294659
DC
73172003-05-08 David Carlton <carlton@math.stanford.edu>
7318
7319 * valops.c (push_word): Fix typo.
7320
d9d9c31f
AC
73212003-05-08 Andrew Cagney <cagney@redhat.com>
7322
7323 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7324 * gdbarch.h: Re-generate.
7325 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7326 (legacy_max_register_raw_size): Delete declaration.
7327 * regcache.c (legacy_max_register_raw_size): Delete function.
7328 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7329 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7330 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7331 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7332 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7333 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7334 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7335 * findvar.c, dwarf2cfi.c: Ditto.
7336
22540ece
AC
73372003-05-08 Andrew Cagney <cagney@redhat.com>
7338
7339 * mips-tdep.c (read_signed_register): New function, moved to here
7340 from "regcache.c".
7341 (read_signed_register_pid): Ditto.
7342 * regcache.c (read_signed_register_pid): Delete function, moved to
7343 "mips-tdep.c".
7344 (read_signed_register): Ditto.
7345 * regcache.h (read_signed_register): Delete declaration.
7346 (read_signed_register_pid): Delete declaration.
7347
0c92afe8
AC
73482003-05-08 Andrew Cagney <cagney@redhat.com>
7349
7350 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7351 * gdbarch.h: Re-generate.
7352 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7353 (legacy_max_register_virtual_size): Delete declaration.
7354 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7355 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7356 * tracepoint.c (memrange_sortmerge): Ditto.
7357 * sparc-tdep.c (sparc_print_registers): Ditto.
7358 * regcache.c (legacy_max_register_virtual_size): Delete function.
7359
6037b830
JB
73602002-05-08 J. Brobecker <brobecker@gnat.com>
7361
7362 * fork-child.c (escape_bang_in_quoted_argument): New function.
7363 (fork_inferior): Escape '!' characters in quoted arguments
7364 only when needed.
7365
5d62c8b1
JB
73662003-05-08 J. Brobecker <brobecker@gnat.com>
7367
7368 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7369 the language of the CU is not currently supported by GDB.
7370
20a0e81d
JB
73712003-05-08 J. Brobecker <brobecker@gnat.com>
7372
7373 * defs.h (language): Add language_minimal enum value.
7374 * c-lang.c (minimal_language_defn): New language definition.
7375 (_initialize_c_language): Add the new minimal language to the list
7376 of languages known to GDB.
7377
710ee10a
KB
73782003-05-08 Kevin Buettner <kevinb@redhat.com>
7379
7380 * frame.c (get_frame_type): Don't attempt to lazily initialize
7381 frame's unwinder for legacy frames.
7382
1750fa04
AC
73832003-05-07 Andrew Cagney <cagney@redhat.com>
7384
7385 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7386 and "regcache" parameters.
7387 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7388
ddf9f258 73892003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7390
7391 * dwarf2read.c (dwarf_decode_lines): Only use output of
7392 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7393 the current address.
7394
87767c29
AC
73952003-05-07 Andrew Cagney <cagney@redhat.com>
7396
7397 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7398 code.
7399
5e7b2f39
JB
74002003-05-07 Jim Blandy <jimb@redhat.com>
7401
7402 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7403 'maint info symtabs' and 'maint info psymtabs'.
7404 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7405 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7406 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7407 Declarations updated.
7408 * maint.c (maintenance_list_command): Delete.
7409 (_initialize_maint_cmds): Update calls to add_cmd.
7410 * gdbcmd.h (maintenancelistlist): Delete declaration.
7411 * cli/cli-cmds.c (maintenancelistlist): Delete.
7412 (init_cmd_lists): Don't initialize it.
7413 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7414
f6684c31
AC
74152003-05-07 Andrew Cagney <cagney@redhat.com>
7416
7417 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7418 "regcache".
7419 (d10v_print_registers_info): Update.
7420 (d10v_dmap_register, d10v_imap_register): Delete functions.
7421 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7422 and "imap_register".
7423 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7424 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7425 * arch-utils.c (generic_remote_translate_xfer_address): Add
7426 "regcache" and "gdbarch" parameters.
7427 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7428 parameter. Change class to multi-arch.
7429 * gdbarch.h, gdbarch.c: Re-generate.
7430 * remote.c (remote_xfer_memory): Use
7431 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7432
e4846b08
JJ
74332003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7434
7435 * infrun.c (prev_pc): Move declaration ahead of proceed().
7436 (proceed): Refresh prev_pc value before resuming.
7437 (stop_stepping): Remove code to refresh prev_pc.
7438
6b71b8ac
KW
74392003-05-06 Kris Warkentin <kewarken@qnx.com>
7440
7441 * nto-tdep.c: Removed stray comment.
7442
47979a4b
KW
74432003-05-06 Kris Warkentin <kewarken@qnx.com>
7444
7445 * i386-nto-tdep.c: Fix old K&R function definitions.
7446 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7447 Also change add_show_from_set() call to add_setshow_cmd().
7448 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7449
00905d52
AC
74502003-05-05 Andrew Cagney <cagney@redhat.com>
7451
7452 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7453 (fprint_dummy_frames): New function.
7454 (maintenance_print_dummy_frames): New function.
7455 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7456 * frame.c (fprint_frame_id): Make global.
7457 * frame.h (fprint_frame_id): Declare.
7458 * Makefile.in (dummy-frame.o): Update dependencies.
7459
b1e29e33
AC
74602003-05-05 Andrew Cagney <cagney@redhat.com>
7461
7462 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7463 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7464 SIZEOF_CALL_DUMMY_WORDS.
7465 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7466 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7467 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7468 CALL_DUMMY_BREAKPOINT_OFFSET.
7469 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7470 CALL_DUMMY_START_OFFSET.
7471 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7472 * gdbarch.h, gdbarch.c: Re-generate.
7473 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7474 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7475 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7476 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7477 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7478 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7479 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7480 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7481 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7482 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7483 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7484 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7485 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7486 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7487 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7488
74892003-05-05 Kris Warkentin <kewarken@qnx.com>
7490
7491 * configure.tgt: Add i[3456]86-*-nto*.
7492 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7493 * nto-tdep.c: New file. Neutrino target support routines.
7494 * nto-tdep.h: New file. Neutrino target header.
7495 * config/tm-qnxnto.h: New file.
7496 * config/i386/i386nto.mt: New file.
7497 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 7498
0ce3d317
AC
74992003-05-04 Andrew Cagney <cagney@redhat.com>
7500
7501 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7502 (load_infrun_state): Ditto.
7503 (struct thread_info): Drop "prev_func_name" field.
7504 * thread.c (load_infrun_state): Update.
7505 (save_infrun_state): Update.
7506 * infrun.c (prev_func_name): Delete variable.
7507 (init_wait_for_inferior): Do not clear prev_func_name.
7508 (stop_stepping, keep_going, context_switch): Do not swap
7509 prev_func_name.
7510 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7511 instead of PC_IN_SIGTRAMP.
7512
46654a5b
AC
75132003-05-04 Andrew Cagney <cagney@redhat.com>
7514
7515 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7516 REGISTER_BYTE with register_offset_hack.
7517 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7518 that REGISTER_BYTE is consistent with the regcache.
7519 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7520 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 7521
14b08c1b
MK
75222003-05-04 Mark Kettenis <kettenis@gnu.org>
7523
04c8243f
MK
7524 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7525 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7526
14b08c1b
MK
7527 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7528
c7a11e01
JB
75292003-05-03 J. Brobecker <brobecker@gnat.com>
7530
7531 From Thierry Schneider <tpschneider1@yahoo.com>
7532 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7533 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7534 (mi-cmd-symbol.o): Add rule.
7535
7043d8dc
AC
75362003-05-03 Andrew Cagney <cagney@redhat.com>
7537
7538 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7539 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7540 * gdbarch.h, gdbarch.c: Re-generate.
7541 * d10v-tdep.c (d10v_push_dummy_code): New function.
7542 (d10v_gdbarch_init): Set push_dummy_code.
7543 * infcall.c (legacy_push_dummy_code): New function.
7544 (generic_push_dummy_code): New function.
7545 (push_dummy_code): New function.
7546 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7547 instead of dummy_addr, to push_dummy_call. Move call to
7548 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7549 switch.
7550 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7551
92bf2b80
AC
75522003-05-03 Andrew Cagney <cagney@redhat.com>
7553
7554 * disasm.h (print_insn): Declare.
7555 * disasm.c (init_gdb_disassemble_info): New function.
7556 (gdb_disassembly): Call init_gdb_disassemble_info.
7557 (gdb_print_insn): New function.
7558 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7559 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7560 * mcore-tdep.c: Include "disasm.h"
7561 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7562 * d10v-tdep.c: Include "disasm.h".
7563 (display_trace): Call gdb_print_insn, instead of print_insn.
7564 (print_insn): Delete function.
7565 * printcmd.c: Include "disasm.h".
7566 (print_insn): Delete function.
7567 (print_formatted): Call gdb_print_insn, instead of print_insn.
7568 * Makefile.in (printcmd.o): Update dependencies.
7569 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 7570
27d94c49
AC
75712003-05-02 Andrew Cagney <cagney@redhat.com>
7572
82de1e5b
AC
7573 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7574 PC_REGNUM, re-indent.
7575 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7576 PC_REGNUM isn't set.
7577
27d94c49
AC
7578 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7579 * gdbarch.h, gdbarch.c: Re-generate.
7580 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7581 register_virtual_size, pc_regnum, or register_bytes.
7582 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7583 (d10v_register_type): Use D10V_PC_REGNUM.
7584 (d10v_print_registers_info, d10v_read_pc): Ditto.
7585 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7586 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7587
a9c0dc7f
DC
75882003-05-02 David Carlton <carlton@bactrian.org>
7589
7590 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7591 the name with mstrsave.
7592
e33d66ec
EZ
75932003-05-02 Elena Zannoni <ezannoni@redhat.com>
7594
7595 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7596 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7597 (host_charset_name, target_charset_name): New vars for use by
7598 set/show commands.
7599 (host_charset_enum, target_charset_enum): New enums for set/show
7600 commands.
7601 (set_charset_sfunc, set_host_charset_sfunc,
7602 set_target_charset_sfunc): New functions.
7603 (set_host_charset, set_target_charset): Make static.
7604 (list_charsets, set_host_charset_command,
7605 set_target_charset_command): Delete functions.
7606 (show_charset_command): Rewrite as....
7607 (show_charset): Hook this up with the set/show command mechanism.
7608 (_initialize_charset): Change names of charsets to match the
7609 set/show enums. Use host_charset_name and target_charset_name.
7610 Use set/show mechanism for charset, host-charset, target-charset
7611 commands. Do not make 'show host-charset' and 'show
7612 target-charset' be aliases of 'show charset'.
7613
7614 * charset.h (set_host_charset, set_target_charset): Don't export,
7615 they are not used outside the file.
7616
2b6fd0d8
AC
76172003-05-01 Andrew Cagney <cagney@redhat.com>
7618
7619 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7620 (gdb_disassembly): Make "di" non static, always initialize and
7621 cleanup. Always use dis_asm_read_memory.
7622 (gdb_dis_asm_read_memory): Delete function.
7623
6ae2f580
AC
76242003-05-01 Andrew Cagney <cagney@redhat.com>
7625
7626 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7627 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7628
810ecf9f
AC
76292003-04-30 Andrew Cagney <cagney@redhat.com>
7630
7631 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7632 "tm_print_insn_info".
7633 (TARGET_PRINT_INSN_INFO): Delete macro.
7634 (dis_asm_read_memory): Delete function declaration.
7635 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7636 (tm_print_insn_info): Delete variable definition.
7637 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7638 * gdbarch.h, gdbarch.c: Re-generate.
7639 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7640 "deprecated_tm_print_insn_info".
7641 * mcore-tdep.c (mcore_dump_insn): Ditto.
7642 * mips-tdep.c (mips_gdbarch_init): Ditto.
7643 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7644 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7645 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7646 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7647 instead of TARGET_PRINT_INSN_INFO, add comment.
7648 * s390-tdep.c (s390_get_frame_info): Instead of
7649 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7650 (s390_check_function_end, s390_is_sigreturn): Ditto.
7651 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7652 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7653 * disasm.c: Include "gdbcore.h".
7654 (_initialize_disasm): New function, initialize
7655 "deprecated_tm_print_insn_info".
7656 (deprecated_tm_print_insn_info): New variable.
7657 (dis_asm_read_memory): Moved from "corefile.c", made static.
7658 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7659 * Makefile.in (disasm.o): Update dependencies.
7660
07020390
AC
76612003-04-30 Andrew Cagney <cagney@redhat.com>
7662
7663 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7664
a9fa03de
AF
76652003-04-29 Adam Fedor <fedor@gnu.org>
7666
7667 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7668 * infcall.c (find_function_addr): Make non-static.
7669 * infcall.h (find_function_addr): Declare.
7670 * Makefile.in (eval.o): Update dependencies.
7671
1bae87b9
AF
76722003-04-28 Adam Fedor <fedor@gnu.org>
7673
7674 * symtab.c (symbol_find_demangled_name): Check for and demangle
7675 ObjC symbols.
7676 (symbol_init_demangled_name): Init for language_objc as well.
7677
0ba6dca9
AC
76782003-04-28 Andrew Cagney <cagney@redhat.com>
7679
7680 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7681 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7682 * gdbarch.h, gdbarch.c: Re-generate.
7683 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7684 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7685 * inferior.h (deprecated_read_fp): Rename read_fp.
7686 (generic_target_read_fp): Delete declaration.
7687 * regcache.c (generic_target_read_fp): Delete function.
7688 (deprecated_read_fp): Replace read_fp, use
7689 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7690 * d10v-tdep.c (d10v_read_fp): Delete function.
7691 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7692
7693 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7694 deprecated_target_read_fp to generic_target_read_fp.
7695 * sh-tdep.c (sh_gdbarch_init): Ditto.
7696 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7697 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7698 * frv-tdep.c (frv_gdbarch_init): Ditto.
7699
7700 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7701 deprecated_fp_regnum.
7702 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7703 * vax-tdep.c (vax_gdbarch_init): Ditto.
7704 * v850-tdep.c (v850_gdbarch_init): Ditto.
7705 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7706 * sh-tdep.c (sh_gdbarch_init): Ditto.
7707 * s390-tdep.c (s390_gdbarch_init): Ditto.
7708 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7709 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7710 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7711 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7712 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7713 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7714 * i386-tdep.c (i386_gdbarch_init): Ditto.
7715 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7716 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7717 * frv-tdep.c (frv_gdbarch_init): Ditto.
7718 * cris-tdep.c (cris_gdbarch_init): Ditto.
7719 * avr-tdep.c (avr_gdbarch_init): Ditto.
7720 * arm-tdep.c (arm_gdbarch_init): Ditto.
7721 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7722
7723 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7724 * v850-tdep.c (v850_gdbarch_init): Ditto.
7725 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7726 * sh-tdep.c (sh_gdbarch_init): Ditto.
7727 * s390-tdep.c (s390_gdbarch_init): Ditto.
7728 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7729 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7730 * mips-tdep.c (mips_gdbarch_init): Ditto.
7731 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7732 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7733 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7734 * frv-tdep.c (frv_gdbarch_init): Ditto.
7735 * avr-tdep.c (avr_gdbarch_init): Ditto.
7736 * arm-tdep.c (arm_gdbarch_init): Ditto.
7737
7738 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7739 DEPRECATED_FP_REGNUM.
7740 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7741 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7742 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7743 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7744 (sparc32_register_virtual_type): Ditto.
7745 * sh-tdep.c (sh64_frame_chain): Ditto.
7746 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7747 (sh_nofp_frame_init_saved_regs): Ditto.
7748 (sh64_nofp_frame_init_saved_regs): Ditto.
7749 (sh_fp_frame_init_saved_regs): Ditto.
7750 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7751 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7752 * procfs.c (procfs_fetch_registers): Ditto.
7753 (procfs_store_registers): Ditto.
7754 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7755 (store_inferior_registers, fetch_core_registers): Ditto.
7756 (fetch_kcore_registers, clear_regs): Ditto.
7757 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7758 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7759 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7760 * nlm/i386.c (do_status): Ditto.
7761 * mipsv4-nat.c (supply_gregset): Ditto.
7762 * mips-tdep.c: Ditto for comments.
7763 * mips-nat.c (fetch_inferior_registers): Ditto.
7764 (store_inferior_registers, fetch_core_registers): Ditto.
7765 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7766 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7767 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7768 (i386_do_pop_frame, i386_register_type): Ditto.
7769 * hppa-tdep.c (hppa_frame_chain): Ditto.
7770 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7771 (hppa_pop_frame, hppa_read_fp): Ditto.
7772 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7773 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7774 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7775 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7776 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7777 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7778 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7779 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7780 * blockframe.c: Ditto for comments.
7781 * arch-utils.h: Ditto for comments.
7782 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7783 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7784 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7785 * alpha-tdep.h: Ditto for comments.
7786 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7787 (alpha_cannot_store_register): Ditto.
7788 (alpha_push_dummy_frame): Ditto.
7789 * alpha-nat.c (supply_gregset): Ditto.
7790
7791 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7792 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7793 * config/sparc/tm-sparc.h: Update comment.
7794
7795 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7796 deprecated_read_fp instead of TARGET_READ_FP.
7797 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7798 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7799 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7800 deprecated_read_fp instead of read_fp.
7801 * s390-tdep.c (s390_push_arguments): Ditto.
7802 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7803 * frame.h: Ditto in comments.
7804 * frame.c (legacy_get_prev_frame): Ditto.
7805 * dummy-frame.c (dummy_frame_this_id): Ditto.
7806 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7807
d7a27068
AC
78082003-04-28 Andrew Cagney <cagney@redhat.com>
7809
7810 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7811 * gdbarch.h, gdbarch.c: Re-generate.
7812 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7813 * vax-tdep.c (_initialize_vax_tdep): Update.
7814 * v850-tdep.c (_initialize_v850_tdep): Update.
7815 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7816 * s390-tdep.c (_initialize_s390_tdep): Update.
7817 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7818 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7819 * mips-tdep.c (_initialize_mips_tdep): Update.
7820 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7821 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7822 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7823 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7824 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7825 * frv-tdep.c (_initialize_frv_tdep): Update.
7826 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7827 (_initialize_cris_tdep): Update.
7828 * arch-utils.c (legacy_print_insn): Update.
7829 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7830
d2630e69
AF
78312003-04-26 Adam Fedor <fedor@gnu.org>
7832
7833 * linespec.c (decode_objc): New function to decode ObjC calls
7834 (decode_line_1): Check for ObjC calls (using decode_objc)
7835 * Makefile (linespec.o): Update dependencies.
7836
3086aeae
DJ
78372003-04-26 Daniel Jacobowitz <drow@mvista.com>
7838
7839 * breakpoint.h (struct breakpoint_ops): New.
7840 (struct breakpoint): Add ops member.
7841
7842 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7843 (mention): Use new breakpoint ops member.
7844 (set_raw_breakpoint): Initialize ops field to NULL.
7845 (print_exception_catchpoint, print_one_exception_catchpoint)
7846 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7847 (gnu_v3_exception_catchpoint_ops): New.
7848 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7849
1fbec6c3
AF
78502003-04-25 Adam Fedor <fedor@gnu.org>
7851
7852 * Makefile.in (COMMON_OBS): Add objc-lang.o
7853
0ef21242
AC
78542003-04-25 Andrew Cagney <cagney@redhat.com>
7855
7856 * d10v-tdep.c (print_insn): Delete function.
7857 (display_trace): Use TARGET_PRINT_INSN.
7858 (_initialize_d10v_tdep): Do not set tm_print_insn.
7859 (d10v_gdbarch_init): Set print_insn.
7860
f75493ed
AC
78612003-04-25 Andrew Cagney <cagney@redhat.com>
7862
7863 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7864 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7865 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7866 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7867 (nr_dmap_regs, a0_regnum): ... new functions.
7868 (d10v_print_registers_info): Use a0_regnum, use register_size.
7869 (d10v_register_byte): Delete function.
7870 (d10v_register_raw_size): Delete function.
7871 (d10v_register_type): Use a0_regnum.
7872 (d10v_print_registers_info): Use a0_regnum.
7873 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7874 (d10v_gdbarch_init): Do not set register_byte or
7875 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7876 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7877 extract_address.
7878 (trace_command): Use XCALLOC.
7879 (print_insn): Delete reference to tm_print_insn.
7880 (saved_regs_unwinder): Use store_unsigned_integer instead of
7881 store_address.
7882 * frame.h (FRAME_OBSTACK_CALLOC): Define
7883
2202b100
DC
78842003-04-25 David Carlton <carlton@bactrian.org>
7885
7886 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7887
4e45ca2e
AF
78882003-04-24 Adam Fedor <fedor@gnu.org>
7889
7890 * objc-lang.c: Include "valprint.h"
7891 * Makefile.in (objc-lang.o): Update dependencies.
7892
93de3e7f
AF
78932003-04-24 Adam Fedor <fedor@gnu.org>
7894
8ffd9b1b 7895 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7896 architecture dependant compilation and mark as unimplemented
7897 (until they get put in the gdbarch vector).
7898
0f20eeea
DC
78992003-04-23 David Carlton <carlton@bactrian.org>
7900
7901 * cp-support.c (cp_find_first_component): Accept 'operator' in
7902 more locations.
7903
74cfe982
AC
79042003-04-23 Andrew Cagney <cagney@redhat.com>
7905
7906 * infcall.c (call_function_by_hand): Eliminate redundant
7907 indentation. Move "saved_async" and "old_cleanups" to where they
7908 are needed.
8ffd9b1b 7909
52557533
AC
79102003-04-23 Andrew Cagney <cagney@redhat.com>
7911
7912 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7913 and "buffer". Move the "name" code to where it is needed.
7914
158775de
AC
79152003-04-23 Andrew Cagney <cagney@redhat.com>
7916
7917 * infcall.c (call_function_by_hand): Move variables "start_sp",
7918 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7919 code to ON_STACK switch branch.
8ffd9b1b 7920
ebc7896c
AC
79212003-04-23 Andrew Cagney <cagney@redhat.com>
7922
7923 * infcall.c (call_function_by_hand): Make declaration of "i",
7924 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7925 lint.
7926
d727590f
AC
79272003-04-23 Andrew Cagney <cagney@redhat.com>
7928
7929 * infcall.c (call_function_by_hand): Delete variable
7930 "n_method_args". Localize "param_type"'s declaration to the loop
7931 that it is used. Reinstate code assigning to said variable -
7932 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7933 Rationalize code using "param_type".
7934
d585e13a
AC
79352003-04-22 Andrew Cagney <cagney@redhat.com>
7936
7937 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7938 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7939 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7940 to DEPRECATED_PUSH_RETURN_ADDRESS.
7941
051caad9
KB
79422003-04-22 Kevin Buettner <kevinb@redhat.com>
7943
7944 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7945 on the DWARF2 register number prior to fetching a register.
7946
77296879
JB
79472003-04-22 J. Brobecker <brobecker@gnat.com>
7948
7949 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7950 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7951 this macro was always set to 0.
77296879
JB
7952 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7953 considering the fact that this macro was always set to 0.
7954 * hppa-tdep.h (hppa_store_return_value): Likewise.
7955 (hppa_extract_return_value): Likewise.
7956
4252f1df
JB
79572003-04-22 J. Brobecker <brobecker@gnat.com>
7958
7959 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7960 the hppa-pro target only.
7961
14604c6b
JB
79622003-04-21 J. Brobecker <brobecker@gnat.com>
7963
7964 Ongoing multi-arch conversion effort for HP/UX:
7965 * config/pa/tm-hppa.h: Move all macro that are no longer
7966 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7967 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7968
77eb01d1
JB
79692003-04-21 J. Brobecker <brobecker@gnat.com>
7970
7971 * config/pa/tm-hppa.h: Obsolete a section that was only used
7972 for hppa-pro.
7973
61995b3b
JB
79742003-04-21 J. Brobecker <brobecker@gnat.com>
7975
7976 Ongoing multi-arch conversion for HP/UX.
7977 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7978 if already defined (allows hppa64 to stay non-multiarched for now).
7979 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7980
4aa79dcc
AC
79812003-04-21 Andrew Cagney <cagney@redhat.com>
7982
7983 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7984
0f751ff2
AC
79852003-04-21 Andrew Cagney <cagney@redhat.com>
7986
7987 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7988 "i386_num_mmx_regs".
7989
04714b91
AC
79902003-04-21 Andrew Cagney <cagney@redhat.com>
7991
7992 * infcall.c: New file.
7993 * infcall.h: New file.
7994 * valarith.c: Include "infcall.h".
7995 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7996 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7997 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7998 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7999 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8000 (SFILES): Add "infcall.c"
8001 (COMMON_OBS): Add "infcall.o".
8002 (infcall.o): Specify dependencies.
8003 * value.h (call_function_by_hand): Delete declaration.
8004 * inferior.h (run_stack_dummy): Delete declaration.
8005 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8006 (run_stack_dummy): Move to "infcall.c", merged into
8007 call_function_by_hand.
8008 * valops.c (call_function_by_hand): Moved to "infcall.c".
8009 (find_function_addr, value_arg_coerce): Ditto.
8010 (unwindonsignal_p, coerce_float_to_double): Ditto.
8011 (_initialize_valops): Move "set/show coerce-float-to-double", and
8012 "set/show unwindonsignal" commands to "infcall.c".
8013 * v850-tdep.c, target.h: Update comments.
8014 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8015 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8016 (sh64_init_extra_frame_info): Update comments.
8017 * mn10300-tdep.c: Update comments.
8018 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8019 * config/sparc/tm-sparc.h: Update comments.
8020 * breakpoint.h: Update comments.
8021 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8022 * arm-tdep.c: Update comment.
8023
f9d3c2a8
MK
80242003-04-19 Mark Kettenis <kettenis@gnu.org>
8025
c40e1eab
MK
8026 * i386-tdep.c (i386_num_register_names): New variable.
8027 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8028 (MM0_REGNUM): Remove redundant parentheses in define.
8029 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8030 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8031 i386_mxcsr_regnum_p): Remove redundant parentheses.
8032 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 8033
94ea66b3
MK
8034 * i386-tdep.c (i386_extract_return_value,
8035 i386_store_return_value): Correct check for availability of
8036 floating-point registers.
8037
54299a1d
MK
8038 * i386-tdep.c (i386_frame_num_args): Remove function.
8039 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8040
c86c27af
MK
8041 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8042 mmx_regnum_to_fp_regnum. Adjust all callers.
8043
f9d3c2a8
MK
8044 * i386-tdep.c (i386_get_longjmp_target): Use
8045 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8046 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8047 extract_address.
8048
94ba74a9
MK
80492003-04-19 Mark Kettenis <kettenis@gnu.org>
8050
8051 * core-regset.c: Update comments to reflect reality. Re-order
8052 includes.
8053 (fetch_core_registers): Use switch instead of if. Remove
8054 redundant prototype.
8055
4074e13c
JB
80562003-04-18 Jim Blandy <jimb@redhat.com>
8057
8058 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 8059 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 8060
e3ab4aba
RH
80612003-04-17 Richard Henderson <rth@redhat.com>
8062
8063 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8064
627bf7c1
EZ
80652003-04-17 Michael Snyder <msnyder@redhat.com>
8066 Karen Bennet <bennet@redhat.com>
8067
8068 Committed by Elena Zannoni <ezannoni@redhat.com>
8069 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 8070
514621a9
EZ
80712003-04-17 Elena Zannoni <ezannoni@redhat.com>
8072
8073 * values.c (value_being_returned): Don't fetch the return
fbe586ae 8074 value if the return type is void.
514621a9 8075
b4acd559
JJ
80762003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8077
8078 * thread-db.c: Reindented.
8ffd9b1b 8079
530b167e 80802003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8081
8082 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8083 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
8084 as types.
8085
0a48e7e8
MS
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8ffd9b1b 8109
ab9fe00e
KB
81102003-04-16 Kevin Buettner <kevinb@redhat.com>
8111
610a3745 8112 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
8113 the size of ``long double'' to 16, instead of 8.
8114
e64a344c
MK
81152003-04-16 Mark Kettenis <kettenis@gnu.org>
8116
8117 * i386-linux-nat.c: Add some whitespace to make things more
8118 readable.
8119 (fetch_register, store_register, fetch_inferior_registers,
8120 store_inferior_registers): Get rid of assignment in if-statement.
8121 (store_register): Fix typo in error message.
8122
25d41031
AC
81232003-04-16 Andrew Cagney <cagney@redhat.com>
8124
8125 * utils.c (xmmalloc): Always allocate something, matches
8126 libiberty/xmalloc's semantics.
8127 (xmrealloc, xmcalloc): Ditto.
8128
c50901fd
AC
81292003-04-16 Andrew Cagney <cagney@redhat.com>
8130
8131 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8132 update comments.
8133 (get_frame_type): Initialize unwind and type when needed.
8134 (get_frame_id, frame_register_unwind): Ditto.
8135
f81824a9
AC
81362003-04-16 Andrew Cagney <cagney@redhat.com>
8137
8138 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8139 obsolete.
8140 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8141 * sparcl-stub.c: Obsolete file.
8142 * config/sparc/tm-sparclet.h: Obsolete file.
8143 * sparclet-stub.c: Obsolete file.
8144 * sparclet-rom.c: Obsolete file.
8145 * sparcl-tdep.c: Obsolete file.
8146 * config/sparc/tm-sparclite.h: Obsolete file.
8147 * config/sparc/sparclite.mt: Obsolete file.
8148 * config/sparc/sparclet.mt: Obsolete file.
8149 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8150 sparc86x-*-* obsolete.
8151
9219021c
DC
81522003-04-15 David Carlton <carlton@math.stanford.edu>
8153
8154 * Makefile.in (SFILES): Add cp-namespace.c.
8155 (COMMON_OBS): Add cp-namespace.o.
8156 (block.o): Depend on gdb_obstack_h and cp_support_h.
8157 (buildsym.o): Depend on cp_support_h.
8158 (cp-namespace.o): New.
8159 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8160 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8161 (dwarf2read.o): Depend on cp_support_h.
8162 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8163 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8164 processing_current_namespace.
8165 (read_namespace): Update processing_current_namespace; check for
8166 anonymous namespaces.
8167 (dwarf2_name): New function.
8168 (dwarf2_extension): Ditto.
8169 * cp-support.h: Update copyright, contributors.
8170 Add inclusion guards.
8171 Add opaque declaration for structs obstack, block, symbol.
8172 (struct using_direct): New struct.
8173 Add declarations for cp_find_first_component,
8174 cp_entire_prefix_len, processing_has_namespace_info,
8175 processing_current_namespace, cp_is_anonymous,
8176 cp_add_using_directive, cp_initialize_namespace,
8177 cp_finalize_namespace, cp_set_block_scope,
8178 cp_scan_for_anonymous_namespaces.
8179 * cp-namespace.c: New file.
8180 * cp-support.c: Update copyright.
8181 Include ctype.h, gdb_assert.h, gdbcmd.h.
8182 New variable maint_cplus_cmd_list.
8183 (cp_find_first_component): New function.
8184 (cp_entire_prefix_len, maint_cplus_command)
8185 (first_component_command, _initialize_cp_support): Ditto.
8186 * buildsym.c: Include cp-support.h.
8187 New variable using_list.
8188 (add_symbol_to_list): Check for anonymous namespaces.
8189 (finish_block): Set block's scope.
8190 (start_symtab): Initialize C++ namespace support.
8191 (end_symtab): Finalize C++ namespace support.
8192 * block.h: Add opaque declarations for structs
8193 block_namespace_info, using_direct, and obstack.
8194 Add declarations for block_set_scope and block_set_using.
8195 (struct block): Add 'language_specific' member.
8196 (BLOCK_NAMESPACE): New macro.
8197 * block.c: Include gdb_obstack.h and cp-support.h.
8198 (struct block_namespace_info): New struct.
8199 (block_set_scope): New function.
8200 (block_set_using, block_initialize_namespace): Ditto.
8201
d5a921c9
KB
82022003-04-14 Kevin Buettner <kevinb@redhat.com>
8203
8204 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8205 (locate_base): Return early if there aren't any link map offsets.
8206 (svr4_solib_create_inferior_hook): Warn if shared library support
8207 is unavailable.
8208
d2a52b27
DC
82092003-04-14 David Carlton <carlton@math.stanford.edu>
8210
8211 * symtab.c (symbol_set_names): Add prefix when storing Java names
8212 in hash table. Fix for PR java/1039.
8213
980cae7a
DC
82142003-04-14 David Carlton <carlton@math.stanford.edu>
8215
8216 * symtab.c (symbol_set_names): Rename 'name' arg to
8217 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8218 * symtab.h: Change 'name' argument in declaration of
8219 symbol_set_names to 'linkage_name'.
8220 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8221
e227b13c
AC
82222003-04-14 Andrew Cagney <cagney@redhat.com>
8223
8224 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8225 return the fully sign-extended register value.
8226 (get_frame_pointer): Ditto.
8227 (mips_pop_frame): Initialize "proc_desc" after checking for a
8228 dummy frame.
8229
36712a20
AC
82302003-04-14 Andrew Cagney <cagney@redhat.com>
8231
8232 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8233 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8234 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8235 (mips_push_register): Delete function.
8236 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8237 PUSH_FP_REGNUM.
8238
44ea7b70
JB
82392003-04-14 Jim Blandy <jimb@redhat.com>
8240
8241 * symmisc.c: #include "gdb_regex.h".
8242 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8243 functions.
8244 * maint.c (maintenance_list_command): New function.
8245 (_initialize_maint_cmds): Register the above as commands.
8246 * symtab.h (maintenance_list_symtabs,
8247 maintenance_list_psymtabs): New declarations.
8248 * cli/cli-cmds.c (maintenancelistlist): New variable.
8249 (init_cmd_lists): Initialize it.
8250 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8251 * gdbcmd.h (maintenancelistlist): New declaration.
8252 * Makefile.in (symmisc.o): Update dependencies.
8253
2d0c7962
EZ
82542003-04-14 Elena Zannoni <ezannoni@redhat.com>
8255
8256 * s390-nat.c: Include asm/types.h for addr_t.
8257
1947a811
CV
82582003-04-14 Corinna Vinschen <vinschen@redhat.com>
8259
8260 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8261 actually incoming type.
8262
adb616d7
AC
82632003-04-13 Andrew Cagney <cagney@redhat.com>
8264
8265 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8266 get_next_frame and get_frame_saved_regs.
8267
9b5e151c
AC
82682003-04-13 Andrew Cagney <cagney@redhat.com>
8269
8270 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8271 of gdbarch_num_regs.
8272
ef6e7e13
AC
82732003-04-13 Andrew Cagney <cagney@redhat.com>
8274
8275 * frame.h: Mention what replaced what in "struct frame_info".
8276 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8277 deprecated_update_frame_base_hack and
8278 deprecated_update_frame_pc_hack.
8279 * hppa-tdep.c: Ditto.
8280
61fbb938
DJ
82812003-04-13 Daniel Jacobowitz <drow@mvista.com>
8282
8283 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8284 to read_reg and update its comment. Remove regnum member.
8285 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8286 Don't call read_reg when setting in_reg. Call read_reg to get
8287 the frame base if it's in a register. Return the register number
8288 on the stack instead of in the context. Remove extra arguments
8289 to read_reg.
8290 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8291 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8292 the register number on the expression stack.
8293 (needs_frame_read_reg): Remove extra arguments.
8294
0d53c4c4
DJ
82952003-04-13 Daniel Jacobowitz <drow@mvista.com>
8296
8297 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8298 made non-static.
8299 (execute_stack_op): All callers updated.
8300 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8301 * dwarf2loc.c (find_location_expression): New function.
8302 (dwarf_expr_frame_base): Call it.
8303 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8304 (dwarf2_tracepoint_var_ref): New function, broken out from
8305 locexpr_tracepoint_var_ref.
8306 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8307 Make static.
8308 (loclist_read_variable, loclist_read_needs_frame): New functions.
8309 (loclist_describe_location, loclist_tracepoint_var_ref): New
8310 functions.
8311 (dwarf2_loclist_funcs): New struct location_funcs.
8312 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8313 (struct dwarf2_locexpr_baton): Add comments.
8314 (dwarf2_loclist_funcs): New extern.
8315 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8316 base_address and base_known.
8317 (dwarf_loc_buffer): New variable.
8318 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8319 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8320 (dwarf2_has_info): Initialize dwarf_loc_offset.
8321 (dwarf2_build_psymtabs): Read in .debug_loc.
8322 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8323 DWARF_LOC_SIZE.
8324 (psymtab_to_symtab_1): Likewise. Move base address calculation
8325 here, from...
8326 (dwarf2_get_pc_bounds): ... here. Use the base address from
8327 cu_header.
8328 (dwarf2_symbol_mark_computed): Handle location lists.
8329
6aca59a3
DJ
83302003-04-13 Daniel Jacobowitz <drow@mvista.com>
8331
8332 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8333 if the linkage name demangled successfully.
8334
aca1fcd0
MK
83352003-04-13 Mark Kettenis <kettenis@gnu.org>
8336
97095916
MK
8337 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8338 disassmbly_flavour): Removed.
8339
aca1fcd0
MK
8340 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8341
562a961f
MK
83422003-04-13 Mark Kettenis <kettenis@gnu.org>
8343
8344 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8345
bd013d54
AC
83462003-04-12 Andrew Cagney <cagney@redhat.com>
8347
8348 * frame.h (struct frame_info): Move definition from here ...
8349 * frame.c (struct frame_info): ... to here.
8350
167ef8b1
AC
83512003-04-12 Andrew Cagney <cagney@redhat.com>
8352
8353 * gdbthread.h (save_infrun_state): Delete parameter
8354 "prev_func_start".
8355 (struct thread_info): Delete field "prev_func_start".
8356 (load_infrun_state): Ditto.
8357 * thread.c (load_infrun_state, save_infrun_state): Update.
8358 * infrun.c (prev_func_start): Delete variable.
8359 (context_switch, init_wait_for_inferior): Update.
8360 (stop_stepping, keep_going): Update.
8361
da3331ec
AC
83622003-04-12 Andrew Cagney <cagney@redhat.com>
8363
8364 * gdbarch.sh: Add missing opaque declarations.
8365 * gdbarch.h: Regnerate.
8366 * symtab.h: Add missing opaque declarations.
8367 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8368 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8369 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8370 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8371 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8372 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8373 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8374 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8375 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8376 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8377 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8378 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8379 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8380
18adea3f
AC
83812003-04-11 Andrew Cagney <cagney@redhat.com>
8382
8383 * frame.c (get_frame_id): Return this frame's "id".
8384 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8385 function start.
8386 (legacy_saved_regs_this_id): Replace function body with
8387 internal-error.
8388 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8389 FRAME_OBSTACK_ZALLOC.
8390 (create_new_frame): Mark the frame ID as valid.
8391
2252e863
AO
83922003-04-11 Alexandre Oliva <aoliva@redhat.com>
8393
8394 * Makefile.in (libbfd_h): Added missing setting.
8395 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8396 according to the selected ABI.
8397
a8245ab8
JJ
83982003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8399
8400 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8401
6913c89a
AC
84022003-04-11 Andrew Cagney <cagney@redhat.com>
8403
8404 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8405 SAVED_PC_AFTER_CALL.
8406 * gdbarch.h, gdbarch.c: Regenerate.
8407 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8408 * x86-64-tdep.c (x86_64_init_abi): Update.
8409 * vax-tdep.c (vax_gdbarch_init): Update.
8410 * v850-tdep.c (v850_gdbarch_init): Update.
8411 * sparc-tdep.c (sparc_gdbarch_init): Update.
8412 * sh-tdep.c (sh_gdbarch_init): Update.
8413 * s390-tdep.c (s390_gdbarch_init): Update.
8414 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8415 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8416 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8417 * mips-tdep.c (mips_gdbarch_init): Update.
8418 * mcore-tdep.c (mcore_gdbarch_init): Update.
8419 * m68k-tdep.c (m68k_gdbarch_init): Update.
8420 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8421 * ia64-tdep.c (ia64_gdbarch_init): Update.
8422 (ia64_saved_pc_after_call): Update declaration.
8423 * i386ly-tdep.c (i386lynx_init_abi): Update.
8424 * i386-tdep.c (i386_gdbarch_init): Update.
8425 * hppa-tdep.c (hppa_gdbarch_init): Update.
8426 * h8300-tdep.c (h8300_gdbarch_init): Update.
8427 * frv-tdep.c (frv_gdbarch_init): Update.
8428 * cris-tdep.c (cris_gdbarch_init): Update.
8429 * avr-tdep.c (avr_gdbarch_init): Update.
8430 * arm-tdep.c (arm_gdbarch_init): Update.
8431 * alpha-tdep.c (alpha_gdbarch_init): Update.
8432 * ns32knbsd-nat.c (frame_num_args): Update.
8433 * ns32k-tdep.c (umax_frame_num_args): Update.
8434 * mips-tdep.c (mips_init_frame_pc_first): Update.
8435 * infrun.c (step_over_function): Update.
8436 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8437 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8438 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8439 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8440 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8441 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8442 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8443 * arch-utils.c (init_frame_pc_default): Update.
8444 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8445 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8446 declaration.
8ffd9b1b 8447
38edeab8
AC
84482003-04-11 Andrew Cagney <cagney@redhat.com>
8449
8450 * i387-tdep.c: Update copyright.
8451 (i387_to_double): Delete function.
8452 (double_to_i387): Delete function.
8453
81f8a206
AC
84542003-04-10 Andrew Cagney <cagney@redhat.com>
8455
8456 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8457 frame's function's address. Simplify.
8458 (d10v_frame_unwind_cache): Check that the frame's function is
8459 non-zero.
8460
6e691f7a
JB
84612003-04-10 Jim Blandy <jimb@redhat.com>
8462
8463 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8464 call to set_gdbarch_deprecated_push_arguments.
8465
7f78e237
AC
84662003-04-10 Andrew Cagney <cagney@redhat.com>
8467
8468 * frame.c (fprint_frame_id): New function.
8469 (fprint_frame_type, fprint_frame): New function.
8470 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8471 (create_sentinel_frame, get_frame_id): Ditto.
8472 (frame_id_p, frame_id_eq): Ditto.
8473 (frame_id_inner, create_new_frame): Ditto.
8474 (legacy_get_prev_frame, get_prev_frame): Ditto.
8475 (deprecated_update_frame_pc_hack): Ditto.
8476 (frame_register_unwind): Ditto.
8477 (deprecated_update_frame_base_hack): Ditto.
8478
f870b49b
CV
84792003-04-10 Corinna Vinschen <vinschen@redhat.com>
8480
8481 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8482 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8483 frame_chain function.
8484 * Makefile.in: Add dependencies due to above change.
8485
7c86889b
CV
84862003-04-10 Corinna Vinschen <vinschen@redhat.com>
8487
8488 * blockframe.c (legacy_frame_chain_valid): Move call to
8489 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8490 inside_entry_file.
8491
d0a55772
AC
84922003-04-09 Andrew Cagney <cagney@redhat.com>
8493
8494 * frame.h (struct frame_id): Replace "pc" and "base" with
8495 "stack_addr" and "code_addr". Update comments.
8496 (frame_id_build): Update parameter names and comment.
8497 (struct frame_info): Replace "id_p" and "id" with "this_id".
8498 * dummy-frame.c (dummy_frame_this_id): Update.
8499 * breakpoint.c (print_one_breakpoint): Update.
8500 * frame.c (get_frame_id): Update.
8501 (get_frame_base, frame_id_build): Update.
8502 (create_sentinel_frame, legacy_get_prev_frame): Update.
8503 (deprecated_update_frame_base_hack): Update.
8504 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8505 (frame_id_inner): Ditto.
8506
ac16bf07
AC
85072003-04-09 Andrew Cagney <cagney@redhat.com>
8508
8509 * defs.h (gdb_print_host_address): Make "addr" parameter a
8510 pointer constant.
8511 * utils.c (gdb_print_host_address): Update.
8512
366cfc9e
KB
85132003-04-09 Kevin Buettner <kevinb@redhat.com>
8514
8515 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8516 register number for R0 is 0.
8517
cd983b5c
JB
85182003-04-09 J. Brobecker <brobecker@gnat.com>
8519
8520 * frame.h (struct gdbarch): Add opaque structure definition
8521 to avoid a compilation warning on LynxOS 4.0.
8522
d1340264
AC
85232003-04-09 Andrew Cagney <cagney@redhat.com>
8524
8525 * frame.h (struct frame_info): Delete field "pc". Replace
8526 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8527 structure.
8528 * frame.c (frame_pc_unwind): Update.
8529 (create_sentinel_frame): Do not set "pc".
8530 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8531 (get_frame_pc): Call frame_pc_unwind.
8532 (deprecated_update_frame_pc_hack): Update.
8533 (create_new_frame): Use "pc" not "->pc".
8534
90a6fffb
AC
85352003-04-09 Andrew Cagney <cagney@redhat.com>
8536
8537 * frame.c (get_frame_id): Eliminate code updating "frame".
8538 (legacy_get_prev_frame): Ditto.
8539 (get_frame_base): Return id.base directly.
8540 (deprecated_update_frame_base_hack): Update "id.base".
8541 * frame.h (struct frame_info): Delete field "frame".
8542
2fbce691
AC
85432003-04-09 Andrew Cagney <cagney@redhat.com>
8544
8545 * NEWS: Mention that the "Sequent family" is obsolete.
8546 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8547 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8548 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8549 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8550 * config/i386/tm-ptx4.h: Obsolete file.
8551 * config/i386/tm-ptx.h: Obsolete file.
8552 * symm-tdep.c: Obsolete file.
8553 * config/i386/symmetry.mt: Obsolete file.
8554 * config/i386/tm-symmetry.h: Obsolete file.
8555 * symm-nat.c: Obsolete file.
8556 * config/i386/nm-symmetry.h: Obsolete file.
8557 * config/i386/xm-symmetry.h: Obsolete file.
8558 * config/i386/symmetry.mh: Obsolete file.
8559 * config/i386/nm-ptx4.h: Obsolete file.
8560 * config/i386/ptx4.mh: Obsolete file.
8561 * config/i386/ptx.mt: Obsolete file.
8562 * config/i386/ptx.mh: Obsolete file.
8563 * config/i386/xm-ptx4.h: Obsolete file.
8564 * config/i386/xm-ptx.h: Obsolete file.
8565
78c43945
AC
85662003-04-09 Andrew Cagney <cagney@redhat.com>
8567
8568 Obsolete mips*-*-mach3*.
8569 * NEWS: Mention that mips*-*-mach3* is obsolete.
8570 * m3-nat.c: Obsolete file.
8571 * config/nm-m3.h: Obsolete file.
8572 * config/mips/tm-mipsm3.h: Obsolete file.
8573 * config/mips/mipsm3.mt: Obsolete file.
8574 * config/mips/mipsm3.mh: Obsolete file.
8575 * config/mips/xm-mipsm3.h: Obsolete file.
8576 * mipsm3-nat.c: Obsolete file.
8577 * configure.host: Obsolete mips-dec-mach3*.
8578 * configure.tgt: Obsolete mips*-*-mach3*.
8579
f1908289
AC
85802003-04-09 Andrew Cagney <cagney@redhat.com>
8581
8582 * doublest.h: Update copyright.
8583 (deprecated_store_floating, deprecated_extract_floating): Rename
8584 store_floating and extract_floating. Update comments.
8585 * doublest.c: Update copyright.
8586 (extract_floating_by_length): Replace extract_floating.
8587 (store_floating_by_length): Replace store_floating.
8588 (deprecated_extract_floating): New function.
8589 (deprecated_store_floating): New function.
8590 (extract_typed_floating): Call extract_floating_by_length.
8591 (store_typed_floating): Call store_floating_by_length.
8592 * x86-64-tdep.c (x86_64_store_return_value): Update.
8593 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8594 (sh64_extract_return_value): Update.
8595 (sh_sh4_register_convert_to_virtual): Update.
8596 (sh_sh64_register_convert_to_virtual): Update.
8597 (sh_sh4_register_convert_to_raw): Update.
8598 (sh_sh64_register_convert_to_raw): Update.
8599 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8600 (rs6000_register_convert_to_raw): Update.
8601 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8602 (ia64_register_convert_to_raw): Update.
8603 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8604 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8605 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8606 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8607 (alpha_register_convert_to_raw): Update.
8608
4443bd83
AC
86092003-04-08 Andrew Cagney <cagney@redhat.com>
8610
8611 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8612 * gdbarch.h, gdbarch.c: Re-generate.
8613 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8614 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8615 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8616 conditionally, use frame_pc_unwind as an alternative. Add
8617 comments.
8618 * arch-utils.c (init_frame_pc_default): Only call
8619 SAVED_PC_AFTER_CALL when available.
8620
c0236d92
EZ
86212003-04-08 Elena Zannoni <ezannoni@redhat.com>
8622
fbe586ae 8623 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8624 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8625 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8626 (start_remote): Ditto.
8627 (handle_inferior_event): Ditto.
8628 (save_inferior_status): Ditto.
8629 (restore_inferior_status): Ditto.
8630 * infcmd.c (attach_command): Ditto.
8631 * fork-child.c (startup_inferior): Ditto.
fbe586ae 8632 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8633 * alpha-tdep.c (heuristic_proc_start): Ditto.
8634 * mips-tdep.c (heuristic_proc_start): Ditto.
8635 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8636 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8637 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8638 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8639 * remote-vx.c (vx_create_inferior): Ditto.
8640
86412003-04-08 Elena Zannoni <ezannoni@redhat.com>
8642
8643 * infrun.c (stop_soon_quietly): Make it an enum, to better
8644 override the default behavior of handle_inferior_event.
8645 (clear_proceed_status): Update uses of stop_soon_quietly to
8646 reflect that it is now an enum.
8647 (start_remote): Ditto.
8648 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8649 is set to handle the new GNU/Linux kernel behavior for
8650 attach/sigstop. Update uses of stop_soon_quietly.
8651 * inferior.h (enum stop_kind): New enum.
8652 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8653 Reset normal handle_inferior_event behavior, afterwards.
8654 * fork-child.c (startup_inferior): Update.
8655 * alpha-tdep.c (heuristic_proc_start): Update.
8656 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8657 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8658 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8659 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8660 * remote-vx.c (vx_create_inferior): Update.
8661 * mips-tdep.c (heuristic_proc_start): Update.
8662
1211bce3
EZ
86632003-04-07 Elena Zannoni <ezannoni@redhat.com>
8664
8665 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8666 be freed more than once, causing wild memory corruptions.
1211bce3 8667 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8668 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8669 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8670 with the "core" target.
1211bce3 8671
f0ef6b29
KB
86722003-04-07 Kevin Buettner <kevinb@redhat.com>
8673
8674 * mips-tdep.c (mips_print_fp_register): New function, created from
8675 do_fp_register_row(). Registers are now (also) printed as hex.
8676 Only one register is printed per row.
8677 (mips_print_register, do_fp_register_row): Print floating point
8678 registers with mips_print_fp_register().
8679
8cf71652
AC
86802003-04-06 Andrew Cagney <cagney@redhat.com>
8681
5e488a7b
AC
8682 * valprint.h (inspect_it): Add extern declaration.
8683 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8684 (selectors_info, classes_info): Ditto.
8685 (find_objc_msgcall): Fix indentation.
8686 (objc_printstr): Delete extern declarations.
8687
8cf71652
AC
8688 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8689
e6ba3bc9
AC
86902003-04-06 Andrew Cagney <cagney@redhat.com>
8691
8692 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8693 Update comment.
8694 * frame.c (legacy_saved_regs_this_id): Update.
8695 (legacy_get_prev_frame): Update.
8696 * xstormy16-tdep.c: Update comment.
8697 * sparc-tdep.c (sparc_frame_chain): Update comment.
8698 * blockframe.c (legacy_frame_chain_valid): Update.
8699
55e1d7e7
AC
87002003-04-06 Andrew Cagney <cagney@redhat.com>
8701
996179ee
AC
8702 * valprint.c (val_print_type_code_int): Delete #ifdef
8703 PRINT_TYPELESS_INTEGER code.
8704
55e1d7e7
AC
8705 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8706 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8707 multi-arch definition.
8708 * gdbarch.h: Re-generate.
8709
43bd9a9e
AC
87102003-04-05 Andrew Cagney <cagney@redhat.com>
8711
8712 Eliminate FRAME_FIND_SAVED_REGS.
8713 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8714 Change FSR parameter to a pointer.
8715 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8716 Assume FSR parameter is a pointer.
8717 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8718 Make fsr a pointer.
8719 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8720 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8721 saved_regs a pointer.
8722 (hppa_frame_saved_pc): Ditto.
8723 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8724 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8725 pointer.
8726 (restore_pc_queue): Make fsr a pointer.
8727 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8728 (hppa_frame_chain): Make saved_regs a pointer, call
8729 hppa_frame_init_saved_regs.
8730 * sparc-tdep.c: Include "gdb_assert.h".
8731 (sparc_frame_find_saved_regs): Replace internal_error with
8732 gdb_assert.
8733 * remote-vxsparc.c (vx_read_register): Delete reference to
8734 FRAME_FIND_SAVED_REGS.
8735 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8736 * gdbarch.h: Regenerate.
8737 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8738 (deprecated_get_frame_saved_regs): Delete declaration.
8739 (struct frame_saved_regs): Delete definition.
8740 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8741 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8742 (hppa_frame_find_saved_regs): Delete declaration.
8743 (FRAME_FIND_SAVED_REGS): Delete macro.
8744 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8745 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8746 FRAME_FIND_SAVED_REGS in comment.
8747
be41e9f4
AC
87482003-04-05 Andrew Cagney <cagney@redhat.com>
8749
8750 * frame.c (frame_func_unwind, get_frame_func): New functions.
8751 * frame.h (get_frame_func, frame_func_unwind): Declare.
8752 (struct frame_info): Add field "prev_func" for caching the
8753 previous frame's function address.
8754 * arm-tdep.c (arm_frameless_function_invocation): Combine
8755 get_pc_function_start and get_frame_pc into get_frame_func.
8756 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8757 (sh64_nofp_frame_init_saved_regs): Ditto.
8758 * s390-tdep.c (s390_function_start): Ditto.
8759 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8760 (rs6000_frameless_function_invocation): Ditto.
8761 (rs6000_frame_saved_pc): Ditto.
8762 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8763 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8764 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8765 (i386_frame_init_saved_regs): Ditto.
8766 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8767 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8768 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8769 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8770 * blockframe.c (frameless_look_for_prologue): Ditto.
8771
a01dd7cc
AC
87722003-04-05 Andrew Cagney <cagney@redhat.com>
8773
8774 * frame.c (legacy_get_prev_frame): Link prev to next at the
8775 function start. Update comments.
8776
5e5592e6
AC
87772003-04-05 Andrew Cagney <cagney@redhat.com>
8778
8779 * frame.c (get_frame_id): Update comment.
8780 (legacy_get_prev_frame): Update comment.
8781 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8782 * gdbarch.h: Regenerate.
8783 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8784 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8785
6fba5002
AC
87862003-04-05 Andrew Cagney <cagney@redhat.com>
8787
8788 * stack.c (print_frame_info): Use get_frame_pc.
8789
7df05f2b
AC
87902003-04-04 Andrew Cagney <cagney@redhat.com>
8791
8792 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8793 the frame's type from the unwinder.
8794 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8795 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8796 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8797 (get_frame_base_address): Use get_frame_type.
8798 (get_frame_locals_address, get_frame_args_address): Ditto.
8799 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8800 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8801 (struct frame_info): Add comment explaining why the frame contains
8802 a "type" field.
8803 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8804 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8805 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8806 NORMAL_FRAME.
8807 * frame-unwind.h: Include "frame.h".
8808 (struct frame_unwind): Add "type" field.
8809 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8810
11889732
AC
88112003-04-04 Andrew Cagney <cagney@redhat.com>
8812
8813 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8814 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8815 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8816 get_frame_base.
8817 (d10v_unwind_dummy_id): Use frame_id_build.
8818 * frame.c (find_frame_sal): Use get_frame_pc.
8819 (create_new_frame): Use deprecated_update_frame_pc_hack and
8820 deprecated_update_frame_base_hack.
8821 (create_sentinel_frame): Add comment about ->pc going away.
8822 (get_prev_frame): Add comment about ->pc going away.
8823 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8824 frame_id_build, deprecated_update_frame_pc_hack and
8825 deprecated_update_frame_base_hack.
8826 (select_frame): Use get_frame_pc.
8827 (legacy_saved_regs_this_id): Use frame_id_build.
8828
50c46a0d
EZ
88292003-04-04 Elena Zannoni <ezannoni@redhat.com>
8830
fbe586ae
RH
8831 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8832 signed integer case.
8833 (classify_argument): Handle enumerations and references.
50c46a0d 8834
50bbdbd9
AC
88352003-04-04 Andrew Cagney <cagney@redhat.com>
8836
8837 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8838 ID to NULL.
8839
36018d2e
AF
88402003-04-01 Adam Fedor <fedor@gnu.org>
8841
8842 * gdb/objc-lang.c (selectors_info): Replace calls to
8843 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8844 SYMBOL_NATURAL_NAME.
8845 (classes_info, find_methods): Likewise.
8846
35cec841
KB
88472003-04-03 Kevin Buettner <kevinb@redhat.com>
8848
8849 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8850 ``mach'' to the value determined by bfd_default_set_arch_mach().
8851
43136899
BR
88522003-04-02 Bob Rossi <bob_rossi@cox.net>
8853
8854 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8855 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8856 (mi-cmd-file.o): Update dependencies.
8857
040b99fd
KB
88582003-04-01 Kevin Buettner <kevinb@redhat.com>
8859
8860 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8861 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8862
9a3d7dfd
AF
88632003-04-01 Adam Fedor <fedor@gnu.org>
8864
8865 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8866 * language.h (struct language_defn): Add la_demangle.
8867 (language_demangle): Declare.
8868 * language.c (language_demangle): New function.
8869 (unk_lang_demangle): Likewise.
8870 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8871 Add ukn_lang_demangle.
9a3d7dfd 8872 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8873 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8874 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8875 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8876 * jv-lang.c (java_demangle): New function
8877 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8878 * objc-lang.c (objc_demangle): Add options argument
8879 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8880 * maint.c (maintenance_demangle): Replace switch with
8881 call to language_demangle.
8882 * utils.c (fprintf_symbol_filtered): Likewise.
8883
5e074003
AC
88842003-04-01 Andrew Cagney <cagney@redhat.com>
8885
8886 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8887 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8888 PRINT_TYPELESS_INTEGER.
8889 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8890 PUSH_RETURN_ADDRESS.
8891
270cb5d6
AC
88922003-04-01 Andrew Cagney <cagney@redhat.com>
8893
8894 * Makefile.in (d10v-tdep.o): Update dependencies.
8895 * d10v-tdep.c: Include "frame-base.h".
8896 (d10v_frame_unwind): Make constant.
8897 (d10v_frame_base_address): New function.
8898 (d10v_frame_base): New variable.
8899 (d10v_gdbarch_init): Set frame_base default.
8900 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8901 comment for base.
8902 (d10v_frame_unwind_cache): Set and use "prev_sp".
8903 (d10v_frame_this_id): Use the previous frame's inner most stack
8904 address and this frame's func address for the frame ID. Use
8905 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8906
6bfb3e36
AC
89072003-04-01 Andrew Cagney <cagney@redhat.com>
8908
8909 * frame.h (get_frame_locals_address, get_frame_args_address):
8910 Refer to the base address, instead of the address of the first
8911 local or parameter.
8ffd9b1b 8912
da62e633
AC
89132003-04-01 Andrew Cagney <cagney@redhat.com>
8914
8915 Add frame debug info addresses:
8916 * frame-base.c: New file.
8917 * frame-base.h: New file.
8918 * frame.h (struct frame_base): Add opaque declaration.
8919 (get_frame_base): Update comment.
8920 (get_frame_base_address): Declare.
8921 (get_frame_locals_address): Declare.
8922 (get_frame_args_address): Declare.
8923 (struct frame_info): Add "base" and "base_cache". Update
8924 comments on the unwinder.
8925 * frame.c: Include "frame-base.h".
8926 (get_frame_locals_address): New function.
8927 (get_frame_base_address): New function.
8928 (get_frame_args_address): New function.
8929 * findvar.c (read_var_value): Use get_frame_locals_address and
8930 get_frame_args_address.
8931 * stack.c (frame_info): Use get_frame_locals_address and
8932 get_frame_args_address.
8933 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8934 moved to "frame-base.c".
8935 * printcmd.c (print_frame_nameless_args): Ditto.
8936 * symtab.h (address_class): Update comments.
8937 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8938 get_frame_base_address.
8939 * dwarf2expr.c (execute_stack_op): Ditto.
8940 * Makefile.in (frame_base_h): Define.
8941 (frame.o): Update dependencies.
8942 (frame-base.o): Add dependencies.
8943 (SFILES): Add frame-base.c.
8944 (COMMON_OBS): Add frame-base.o.
8945
3d30e9c2
AC
89462003-04-01 Andrew Cagney <cagney@redhat.com>
8947
8948 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8949 CALL_DUMMY_LENGTH): Ditto.
8950 * gdbarch.c: Re-generate.
8951 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8952 (CALL_DUMMY_LENGTH): Delete macro.
8953 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8954 * arm-tdep.c (arm_gdbarch_init): Ditto.
8955 * avr-tdep.c (avr_gdbarch_init): Ditto.
8956 * cris-tdep.c (cris_gdbarch_init): Ditto.
8957 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8958 * frv-tdep.c (frv_gdbarch_init): Ditto.
8959 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8960 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8961 * i386-tdep.c (i386_gdbarch_init): Ditto.
8962 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8963 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8964 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8965 * mips-tdep.c (mips_gdbarch_init): Ditto.
8966 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8967 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8968 * s390-tdep.c (s390_gdbarch_init): Ditto.
8969 * sh-tdep.c (sh_gdbarch_init): Ditto.
8970 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8971 * v850-tdep.c (v850_gdbarch_init): Ditto.
8972 * vax-tdep.c (vax_gdbarch_init): Ditto.
8973 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8974
ce0c7262
CV
89752003-04-01 Corinna Vinschen <vinschen@redhat.com>
8976
8977 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8978
73dd234f
AC
89792003-04-01 Andrew Cagney <cagney@redhat.com>
8980
8981 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8982 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8983 * gdbarch.h, gdbarch.c: Re-generate.
8984 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8985 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8986 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8987 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8988 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8989 * infcmd.c (run_stack_dummy): Simplify assuming
8990 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8991 * infrun.c (handle_inferior_event): Ditto.
8992 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8993 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8994 * arm-tdep.c (arm_gdbarch_init): Ditto.
8995 * avr-tdep.c (avr_gdbarch_init): Ditto.
8996 * cris-tdep.c (cris_gdbarch_init): Ditto.
8997 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8998 * frv-tdep.c (frv_gdbarch_init): Ditto.
8999 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9000 * i386-tdep.c (i386_gdbarch_init): Ditto.
9001 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9002 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9003 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9004 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9005 * mips-tdep.c (mips_gdbarch_init): Ditto.
9006 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9007 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9008 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9009 * s390-tdep.c (s390_gdbarch_init): Ditto.
9010 * sh-tdep.c (sh_gdbarch_init): Ditto.
9011 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9012 * v850-tdep.c (v850_gdbarch_init): Ditto.
9013 * vax-tdep.c (vax_gdbarch_init): Ditto.
9014 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9015
97606a13
DJ
90162003-04-01 Daniel Jacobowitz <drow@mvista.com>
9017
9018 * symfile.c (symfile_relocate_debug_section): Update call to
9019 bfd_simple_get_relocated_section_contents.
9020
e8ab51f7
AC
90212003-03-31 Andrew Cagney <cagney@redhat.com>
9022
9023 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9024 * gdbarch.h, gdbarch.c: Regenerate.
9025 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9026 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9027 available.
9028 * frame.h (generic_fix_call_dummy): Delete declaration.
9029 * dummy-frame.h: Update comment.
9030 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9031 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9032 fix_call_dummy.
9033 * sh-tdep.c (sh_gdbarch_init): Ditto.
9034 * s390-tdep.c (s390_gdbarch_init): Ditto.
9035 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9036 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9037 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9038 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9039 * i386-tdep.c (i386_gdbarch_init): Ditto.
9040 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9041 * frv-tdep.c (frv_gdbarch_init): Ditto.
9042 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9043 * cris-tdep.c (cris_gdbarch_init): Ditto.
9044 * avr-tdep.c (avr_gdbarch_init): Ditto.
9045 * arm-tdep.c (arm_gdbarch_init): Ditto.
9046
018d1b48
JB
90472003-03-31 J. Brobecker <brobecker@gnat.com>
9048
9049 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9050 (INIT_FRAME_AP): Likewise.
9051 (EXTRA_FRAME_INFO): Likewise.
9052
e9a2674e
AC
90532003-03-31 Andrew Cagney <cagney@redhat.com>
9054
9055 * gdbarch.sh: Include "symfile.h".
9056 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9057 * gdbarch.h, gdbarch.c: Re-generate.
9058 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9059 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9060 call_dummy_address, the default is at entry_point_address.
9061 * v850-tdep.c (v850_gdbarch_init): Ditto.
9062 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9063 * sh-tdep.c (sh_gdbarch_init): Ditto.
9064 * s390-tdep.c (s390_gdbarch_init): Ditto.
9065 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9066 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9067 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9068 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9069 * i386-tdep.c (i386_gdbarch_init): Ditto.
9070 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9071 * frv-tdep.c (frv_gdbarch_init): Ditto.
9072 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9073 * cris-tdep.c (cris_gdbarch_init): Ditto.
9074 * arm-tdep.c (arm_gdbarch_init): Ditto.
9075
e8a8712a
AC
90762003-03-31 Andrew Cagney <cagney@redhat.com>
9077
9078 * gdbarch.sh (CALL_DUMMY_P): Delete.
9079 * gdbarch.h, gdbarch.c: Re-generate.
9080 * inferior.h (CALL_DUMMY_P): Delete macro.
9081 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9082 * vax-tdep.c (vax_gdbarch_init): Update.
9083 * v850-tdep.c (v850_gdbarch_init): Update.
9084 * sparc-tdep.c (sparc_gdbarch_init): Update.
9085 * sh-tdep.c (sh_gdbarch_init): Update.
9086 * s390-tdep.c (s390_gdbarch_init): Update.
9087 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9088 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9089 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9090 * mips-tdep.c (mips_gdbarch_init): Update.
9091 * mcore-tdep.c (mcore_gdbarch_init): Update.
9092 * m68k-tdep.c (m68k_gdbarch_init): Update.
9093 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9094 * ia64-tdep.c (ia64_gdbarch_init): Update.
9095 * i386-tdep.c (i386_gdbarch_init): Update.
9096 * h8300-tdep.c (h8300_gdbarch_init): Update.
9097 * frv-tdep.c (frv_gdbarch_init): Update.
9098 * d10v-tdep.c (d10v_gdbarch_init): Update.
9099 * cris-tdep.c (cris_gdbarch_init): Update.
9100 * breakpoint.c (deprecated_frame_in_dummy): Update.
9101 * avr-tdep.c (avr_gdbarch_init): Update.
9102 * alpha-tdep.c (alpha_gdbarch_init): Update.
9103 * arm-tdep.c (arm_gdbarch_init): Update.
9104 * dummy-frame.c (dummy_frame_this_id): Update comments.
9105 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9106 * frame.c (legacy_get_prev_frame): Ditto.
9107 * valops.c (call_function_by_hand): Delete function.
9108 (hand_function_call): Rename to call_function_by_hand
9109
ed234cf8
AC
91102003-03-30 Andrew Cagney <cagney@redhat.com>
9111
9112 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 9113 * value.h (struct value): Update comment.
ed234cf8 9114
06c77151
AC
91152003-03-30 Andrew Cagney <cagney@redhat.com>
9116
6c2b5168
AC
9117 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9118 D10V_FP_REGNUM.
9119 (d10v_gdbarch_init): Do not set fp_regnum.
9120
06c77151
AC
9121 * frame.c (get_frame_base): Force ID initialization.
9122 (get_prev_frame): Move computation of the frame ID from here ...
9123 (get_frame_id): ... to here.
9124 (legacy_get_prev_frame): Mark the frame ID as valid.
9125 * frame.h (struct frame_info): Add field "id_p".
9126
97a1a11c
MK
91272003-03-30 Mark Kettenis <kettenis@gnu.org>
9128
9129 * i386-tdep.c (i386_store_struct_return): Removed.
9130 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9131
6c0e89ed
AC
91322003-03-30 Andrew Cagney <cagney@redhat.com>
9133
9134 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9135 * gdbarch.h, gdbarch.c: Regenerate.
9136 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9137 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9138 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9139 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9140 * i386-tdep.c (i386_gdbarch_init): Ditto.
9141 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9142 * cris-tdep.c (cris_gdbarch_init): Ditto.
9143 * vax-tdep.c (vax_gdbarch_init): Ditto.
9144 * s390-tdep.c (s390_gdbarch_init): Ditto.
9145 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9146 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9147 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9148 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9149 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9150 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9151 * sparc-tdep.c (sparc_gdbarch_init): Update.
9152 * sh-tdep.c (sh_gdbarch_init): Update.
9153 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9154 * mips-tdep.c (mips_gdbarch_init): Update.
9155 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9156 * ia64-tdep.c (ia64_gdbarch_init): Update.
9157 * frv-tdep.c (frv_gdbarch_init): Update.
9158 * avr-tdep.c (avr_gdbarch_init): Update.
9159 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9160 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9161 instead of when push_dummy_call is not available.
8ffd9b1b 9162
f7dd6af2
AC
91632003-03-30 Andrew Cagney <cagney@redhat.com>
9164
9165 * infttrace.c: Include "gdbthread.h".
9166 (parent_attach_all): Fix function signature.
9167 (call_ptrace): Update call.
9168 * Makefile.in (infttrace.o): Update dependencies.
9169
28f617b3
AC
91702003-03-30 Andrew Cagney <cagney@redhat.com>
9171
9172 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9173 PUSH_RETURN_ADDRESS.
9174 * gdbarch.h, gdbarch.c: Regenerate.
9175 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9176 * x86-64-tdep.c (x86_64_init_abi): Update.
9177 * v850-tdep.c (v850_gdbarch_init): Update.
9178 * sparc-tdep.c (sparc_gdbarch_init): Update.
9179 * sh-tdep.c (sh_gdbarch_init): Update.
9180 * s390-tdep.c (s390_gdbarch_init): Update.
9181 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9182 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9183 * mips-tdep.c (mips_gdbarch_init): Update.
9184 * mcore-tdep.c (mcore_gdbarch_init): Update.
9185 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9186 * ia64-tdep.c (ia64_gdbarch_init): Update.
9187 * i386-tdep.c (i386_gdbarch_init): Update.
9188 * h8300-tdep.c (h8300_gdbarch_init): Update.
9189 * frv-tdep.c (frv_gdbarch_init): Update.
9190 * cris-tdep.c (cris_gdbarch_init): Update.
9191 * avr-tdep.c (avr_gdbarch_init): Update.
9192 * arm-tdep.c (arm_gdbarch_init): Update.
9193 * valops.c (hand_function_call): Update.
9194
4d628cd7
AC
91952003-03-29 Andrew Cagney <cagney@redhat.com>
9196
9197 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9198 sizeof_call_dummy_words.
9199 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9200 define.
9201 * gdbarch.h: Regenerate.
8ffd9b1b 9202
65e82032
AC
92032003-03-29 Andrew Cagney <cagney@redhat.com>
9204
9205 * infttrace.h: New file.
9206 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9207 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9208 (hpread_read_doc_function_type): Detect an initialized type1.
9209 (hpread_quick_traverse): Initialize mod_name_string.
9210 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9211 (som_solib_get_solib_by_pc): Declare.
9212 (so_lib_thread_start_addr): Declare.
9213 (no_shared_libraries): Declare.
9214 * somread.c (init_import_symbols): Make static. Add forward
9215 declaration.
9216 * config/pa/nm-hppah.h: Include "infttrace.h" for
9217 parent_attach_all.
9218 (hppa_insert_hw_watchpoint): Declare.
9219 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9220 * hppah-nat.c: Include "gdb_string.h".
9221 (parent_attach_all): Delete extern declaration, moved to
9222 "infttrace.h".
9223 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9224 int.
9225 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9226 * Makefile.in (infttrace_h): Define.
9227 (hpread.o): Update dependencies.
9228 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9229 * hppa-hpux-tdep.c: Include "gdb_string.h".
9230 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9231 * infrun.c (handle_inferior_event): Always initialize
9232 stepped_after_stopped_by_watchpoint. Add default and remove
9233 fallthrough in switch statement.
9234 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9235 parameter to int.
9236 (hppa_remove_hw_watchpoint): Ditto.
9237
2c3bbe77
AC
92382003-03-29 Andrew Cagney <cagney@redhat.com>
9239
9240 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9241 offset.
9242
2dd604e7
RE
92432003-03-29 Richard Earnshaw <rearnsha@arm.com>
9244
9245 * arm-tdep.c (arm_push_arguments): Delete.
9246 (struct stack_item): New type.
9247 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9248 (arm_store_struct_return): Delte.
9249 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9250 arm_push_arguments or arm_store_struct_return.
9251
e8933a55
AC
92522003-03-28 Andrew Cagney <cagney@redhat.com>
9253
9254 * Makefile.in (d10v-tdep.o): Update dependencies.
9255 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9256 * d10v-tdep.c: Include "remote.h".
9257 (target_resume_hook): Delete extern declaration.
9258 (target_wait_loop_hook): Ditto.
9259 (tdisassemble_command): Eliminate assignment in "if" conditional.
9260 (d10v_ts2_register_sim_regno): Eliminate call to
9261 legacy_register_sim_regno.
9262 (d10v_ts3_register_sim_regno): Ditto.
9263
6949171e
JJ
92642003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9265
9266 * thread.c: Reindented.
9267 * lin-lwp.c: Ditto.
9268 * linux-proc.c: Ditto.
9269
98c7071f
BR
92702003-03-28 Bob Rossi <bob_rossi@cox.net>
9271
fbe586ae 9272 * MAINTAINERS (write after approval): Add myself.
98c7071f 9273
5edc9ca6
TR
92742003-03-27 Theodore A. Roth <troth@openavr.org>
9275
9276 * objc-exp.y: Add missing semi-colons.
9277
378bfd1b
AC
92782003-03-27 Andrew Cagney <cagney@redhat.com>
9279
9280 * regcache.c (write_sp): Delete function and references.
9281 * inferior.h (write_sp): Delete declaration.
9282 * valops.c (hand_function_call): Replace write_sp with
9283 TARGET_WRITE_SP.
9284 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9285 (sparc_pop_frame): Ditto.
8ffd9b1b 9286
56056df7
AC
92872003-03-27 Andrew Cagney <cagney@redhat.com>
9288
9289 * NEWS: Mention removal of support for hppa*-*-bsd* and
9290 hppa*-*-osf* natives, and hppa*-*-pro* target.
9291 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9292 * config/pa/xm-pa.h: Obsolete file.
9293 * config/pa/xm-hppab.h: Obsolete file.
9294 * config/pa/nm-hppab.h: Obsolete file.
9295 * config/pa/tm-hppab.h: Obsolete file.
9296 * config/pa/tm-hppao.h: Obsolete file.
9297 * config/pa/nm-hppao.h: Obsolete file.
9298 * config/pa/tm-pro.h: Obsolete file.
9299 * config/pa/hppaosf.mt: Obsolete file.
9300 * config/pa/hppaosf.mh: Obsolete file.
9301 * config/pa/hppapro.mt: Obsolete file.
9302 * config/pa/hppabsd.mt: Obsolete file.
9303 * config/pa/hppabsd.mh: Obsolete file.
9304 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9305 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9306 hppa*-*-osf*.
9307
5873a88d
AC
93082003-03-27 Andrew Cagney <cagney@redhat.com>
9309
9310 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9311 push_arguments. Don't set push_return_address or write_sp.
9312 (d10v_push_dummy_call): Replace d10v_push_arguments.
9313 (d10v_push_return_address, d10v_write_sp): Delete function,
9314 handled by push_dummy_call.
9315
b81774d8
AC
93162003-03-26 Andrew Cagney <cagney@redhat.com>
9317
9318 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9319 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9320 regcache and dummy_addr parameters.
9321 * gdbarch.h, gdbarch.c: Re-generate.
9322 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9323 available; assume it will handle stack alignment and return
9324 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9325 legacy_push_arguments.
9326 (legacy_push_arguments): Rename default_push_arguments.
9327 * value.h (legacy_push_arguments): Rename default_push_arguments.
9328 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9329 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9330 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9331 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9332 * config/i386/tm-symmetry.h: Update.
9333 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9334 * x86-64-tdep.c (x86_64_init_abi): Update.
9335 * v850-tdep.c (v850_gdbarch_init): Update.
9336 * sparc-tdep.c (sparc_gdbarch_init): Update.
9337 * sh-tdep.c (sh_gdbarch_init): Update.
9338 * s390-tdep.c (s390_gdbarch_init): Update.
9339 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9340 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9341 * mips-tdep.c (mips_gdbarch_init): Update.
9342 * mcore-tdep.c (mcore_gdbarch_init): Update.
9343 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9344 * ia64-tdep.c (ia64_gdbarch_init): Update.
9345 * i386-tdep.c (i386_gdbarch_init): Update.
9346 * hppa-tdep.c (hppa_gdbarch_init): Update.
9347 * h8300-tdep.c (h8300_gdbarch_init): Update.
9348 * frv-tdep.c (frv_gdbarch_init): Update.
9349 * d10v-tdep.c (d10v_gdbarch_init): Update.
9350 * cris-tdep.c (cris_gdbarch_init): Update.
9351 * avr-tdep.c (avr_gdbarch_init): Update.
9352 * arm-tdep.c (arm_gdbarch_init): Update.
9353 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9354 * alpha-tdep.c (alpha_gdbarch_init): Update.
9355
f541410f
DJ
93562003-03-26 Daniel Jacobowitz <drow@mvista.com>
9357
9358 * signals/signals.c (do_target_signal_to_host): Correct realtime
9359 signal range test.
9360
69f567ae
DJ
93612003-03-26 Daniel Jacobowitz <drow@mvista.com>
9362
9363 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9364 (struct sal_chain, map_catch_names): Remove.
9365 (catch_exception_command_1): Don't call
9366 handle_gnu_4_16_catch_command.
9367
d5d14a5a
DJ
93682003-03-26 Daniel Jacobowitz <drow@mvista.com>
9369
9370 From Mark Dettinger <dettinge@de.ibm.com>:
9371 * dwarf2cfi.c (read_2u): Increment pointer by two.
9372
bdd73e22
DJ
93732003-03-26 Daniel Jacobowitz <drow@mvista.com>
9374
9375 * signals/signals.c: Fix typos in last change.
9376
960cb555
DJ
93772003-03-26 Daniel Jacobowitz <drow@mvista.com>
9378
9379 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9380 not already defined. Use __SIGRTMIN if available.
9381 (target_signal_from_host): Remove SIGRTMIN block.
9382 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9383 the signal is within the realtime range.
9384
f636b87d
AF
93852003-03-25 Adam Fedor <fedor@gnu.org>
9386
9387 * Makefile.in (infrun.o): Add $(language_h)
9388 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9389 for language specific trampolines.
9390 * language.h (struct language_defn): Add skip_trampoline.
9391 (skip_language_trampoline): Declare.
9392 * language.c (unk_lang_trampoline, skip_language_trampoline):
9393 New functions.
9394 (unknown_language_defn, auto_language_defn, local_language_defn):
9395 Add ukn_lang_trampoline.
9396 * ada-lang.c (ada_language_defn): Add NULL for language
9397 specific skip_trampoline.
9398 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9399 scm-lang.c: Likewise.
9400 * objc-lang.c (objc_skip_trampoline): New function.
9401 (objc_language_defn): Add objc_skip_trampoline.
9402
28f617b3 94032003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9404
9405 * frame.c (get_prev_frame): Delay validating a frame's ID -
9406 non-NULL, didn't go backwards - until an attempt to unwind it to
9407 the previous frame.
9408
f933a9c5
AC
94092003-03-25 Andrew Cagney <cagney@redhat.com>
9410
9411 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9412 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9413 * gdbarch.h, gdbarch.c: Re-generate.
9414 * config/sparc/tm-sparc.h
9415 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9416 * sparc-tdep.c (sparc_gdbarch_init): Set
9417 deprecated_extra_stack_alignment_needed.
9418 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9419 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9420 extra_stack_alignment_needed.
9421 * v850-tdep.c (v850_gdbarch_init): Ditto.
9422 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9423 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9424 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9425 * cris-tdep.c (cris_gdbarch_init): Ditto.
9426 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9427 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9428
4183d812
AC
94292003-03-25 Andrew Cagney <cagney@redhat.com>
9430
9431 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9432 STORE_STRUCT_RETURN.
9433 * gdbarch.h, gdbarch.c: Regenerate.
9434 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9435 (d10v_push_arguments): Set the struct return register.
9436 (d10v_gdbarch_init): Update.
9437 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9438 * x86-64-tdep.c (x86_64_init_abi): Update.
9439 * vax-tdep.c (vax_gdbarch_init): Update.
9440 * v850-tdep.c (v850_gdbarch_init): Update.
9441 * sparc-tdep.c (sparc_gdbarch_init): Update.
9442 * sh-tdep.c (sh_gdbarch_init): Update.
9443 * s390-tdep.c (s390_gdbarch_init): Update.
9444 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9445 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9446 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9447 * mips-tdep.c (mips_gdbarch_init): Update.
9448 * mcore-tdep.c (mcore_gdbarch_init): Update.
9449 * m68k-tdep.c (m68k_gdbarch_init): Update.
9450 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9451 * ia64-tdep.c (ia64_gdbarch_init): Update.
9452 * i386-tdep.c (i386_gdbarch_init): Update.
9453 * hppa-tdep.c (hppa_gdbarch_init): Update.
9454 * h8300-tdep.c (h8300_gdbarch_init): Update.
9455 * frv-tdep.c (frv_gdbarch_init): Update.
9456 * cris-tdep.c (cris_gdbarch_init): Update.
9457 * avr-tdep.c (avr_gdbarch_init): Update.
9458 * arm-tdep.c (arm_gdbarch_init): Update.
9459 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9460
1bf6d5cc
AC
94612003-03-25 Andrew Cagney <cagney@redhat.com>
9462
9463 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9464 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9465 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9466 * gdbarch.h, gdbarch.c: Regenerate.
9467 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9468 call_dummy_stack_adjust_p.
9469 * vax-tdep.c (vax_gdbarch_init): Ditto.
9470 * v850-tdep.c (v850_gdbarch_init): Ditto.
9471 * sh-tdep.c (sh_gdbarch_init): Ditto.
9472 * s390-tdep.c (s390_gdbarch_init): Ditto.
9473 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9474 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9475 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9476 * mips-tdep.c (mips_gdbarch_init): Ditto.
9477 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9478 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9479 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9480 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9481 * i386-tdep.c (i386_gdbarch_init): Ditto.
9482 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9483 * frv-tdep.c (frv_gdbarch_init): Ditto.
9484 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9485 * cris-tdep.c (cris_gdbarch_init): Ditto.
9486 * avr-tdep.c (avr_gdbarch_init): Ditto.
9487 * arm-tdep.c (arm_gdbarch_init): Ditto.
9488 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9489 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9490 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9491 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9492 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9493 call_dummy_stack_adjust_p.
9494 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9495 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9496 * sparc-tdep.c (sparc32_push_arguments): Update.
9497 * valops.c (hand_function_call): Update.
9498
71c08af0
CV
94992003-03-25 Corinna Vinschen <vinschen@redhat.com>
9500
9501 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9502 set_gdbarch_char_signed.
9503
30757f90
RE
95042003-03-25 Richard Earnshaw <rearnsha@arm.com>
9505
9506 PR cli/548
9507 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9508
03d48a7d
RE
95092003-03-25 Richard Earnshaw <rearnsha@arm.com>
9510
9511 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9512 (_initialize_arm_tdep): Don't set tm_print_insn.
9513
2cf6873c
AF
95142003-03-24 Adam Fedor <fedor@gnu.org>
9515
9516 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9517 * objc-lang.h: Add multiple inclusion protection.
9518 (start_msglist, add_msglist, end_msglist): Additional declarations.
9519
17c0759e
RE
95202003-03-24 Richard Earnshaw <rearnsha@arm.com>
9521
9522 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9523 value was renamed to ARM_FLOAT_SOFT_FPA.
9524
618ce49f
AC
95252003-03-23 Andrew Cagney <cagney@redhat.com>
9526
9527 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9528 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9529 * gdbarch.h, gdbarch.c: Regenerate.
9530 * valops.c (hand_function_call): Update.
9531 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9532 * frame.c (legacy_saved_regs_this_id): Update.
9533 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9534 * dummy-frame.h: Update.
9535 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9536 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9537 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9538 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9539 * config/m68k/tm-sun3.h: Update.
9540 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9541 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9542 * x86-64-tdep.c (x86_64_init_abi): Update.
9543 * vax-tdep.c (vax_gdbarch_init): Update.
9544 * v850-tdep.c (v850_gdbarch_init): Update.
9545 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9546 * sh-tdep.c (sh_gdbarch_init): Update.
9547 * s390-tdep.c (s390_gdbarch_init): Update.
9548 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9549 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9550 (frame_get_saved_regs): Update.
9551 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9552 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9553 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9554 * mips-tdep.c (mips_gdbarch_init): Update.
9555 * mcore-tdep.c (mcore_gdbarch_init): Update.
9556 * m68k-tdep.c (m68k_gdbarch_init): Update.
9557 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9558 * ia64-tdep.c (ia64_gdbarch_init): Update.
9559 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9560 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9561 (i386_interix_back_one_frame): Update.
9562 * hppa-tdep.c (hppa_gdbarch_init): Update.
9563 (hppa_init_extra_frame_info): Update.
9564 * h8300-tdep.c (h8300_gdbarch_init): Update.
9565 * frv-tdep.c (frv_gdbarch_init): Update.
9566 * cris-tdep.c (cris_gdbarch_init): Update.
9567 * avr-tdep.c (avr_gdbarch_init): Update.
9568 * arm-tdep.c (arm_gdbarch_init): Update.
9569 * alpha-tdep.c (alpha_gdbarch_init): Update.
9570
fd50bc42
RE
95712003-03-22 Richard Earnshaw <rearnsha@arm.com>
9572
9573 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9574 (arm_get_fp_model): Declare.
9575 * arm-tdep.c (fp_model_strings): New string array.
9576 (arm_fp_model, current_fp_model): New variables.
9577 (arm_get_fp_model): New function.
9578 (arm_set_fp): New function.
9579 (set_fp_model_sfunc): New function.
9580 (show_fp_model): New function.
9581 (_initialize_arm_tdep): Add new command to set/show the FPU.
9582 (arm_extract_return_value): Use arm_get_fp_model.
9583 (arm_store_return_value): Likewise.
9584 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9585 to initialize the floating-point data types.
9586 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9587 model is FPA.
9588
26304000
RE
95892003-03-22 Richard Earnshaw <rearnsha@arm.com>
9590
9591 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9592 the current setting of each value.
9593 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 9594 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
9595 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9596 commands and add new version as subcommands of "set/show arm".
9597
afd7eef0
RE
95982003-03-22 Richard Earnshaw <rearnsha@arm.com>
9599
9600 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9601 (set_arm_command, show_arm_command): New functions.
9602 (_initialize_arm_tdep): Add them.
9603 (num_disassembly_options): Renamed from num_flavor_options.
9604 (valid_disassembly_styles): Renamed from valid_flavors.
9605 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 9606 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
9607 set_disassembly_flavor_sfunc.
9608 (set_disassembly_style): Renamed from set_disassembly_flavor.
9609 (arm_othernames): Updated.
9610 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9611 command. Add "set/show arm disassembly" commands. Deprecate
9612 "othernames" command.
9613
299a7944
RE
96142003-03-22 Richard Earnshaw <rearnsha@arm.com>
9615
9616 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9617 (arm-tdep.o): Depend on elf_arm_h.
9618
c1dac9e6
RE
96192003-03-22 Richard Earnshaw <rearnsha@arm.com>
9620
9621 * Makefile.in (coff_internal_h): Define.
9622 (arm-tdep.o): Update dependencies.
9623
2702d96c
RE
96242003-03-22 Richard Earnshaw <rearnsha@arm.com>
9625
9626 * arm-tdep.c (prologue_cache): Delete.
9627 (check_prologue_cache, save_prologue_cache): Delete.
9628 (arm_scan_prologue): Don't check or update the prologue_cache.
9629 (arm_gdb_arch_init): Don't initialize it.
9630 (_initialize_arm_tdep): Likewise.
9631
27d5d74b
SC
96322003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9633
9634 * MAINTAINERS (tui): Maintainer of tui code.
9635
1762d96d
CV
96362003-03-21 Corinna Vinschen <vinschen@redhat.com>
9637
9638 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9639 (i386-cygwin-tdep.o): Add dependencies.
9640 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9641 * i386-cygwin-tdep.c: New file.
9642 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9643 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9644
4c2e2391
AC
96452003-03-20 Andrew Cagney <cagney@redhat.com>
9646
f20d38b7
AC
9647 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9648 (handle_inferior_event): Remove code calling
9649 DYNAMIC_TRAMPOLINE_NEXTPC.
9650
0022b738
AC
9651 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9652 already has a full path.
9653
864dbc90
AC
9654 * main.c (gdb_main): Return 1.
9655 (captured_main): Call error to report an invalid interpreter.
9656
4c2e2391
AC
9657 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9658 * alpha-osf1-tdep.c: Include "gdb_string.h".
9659
5ef7553b
JB
96602003-03-19 J. Brobecker <brobecker@gnat.com>
9661
9662 Continuing work to convert the hppa targets to multiarch partial.
9663
9664 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9665 method, now that hppa_push_dummy_frame has a conformant prototype.
9666 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9667 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9668 for the switch to multiarch partial.
9669
7bde8967
KB
96702003-03-19 Kevin Buettner <kevinb@redhat.com>
9671
9672 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9673 when iss is issNull.
9674
b006a9e9
KB
96752003-03-18 Kevin Buettner <kevinb@redhat.com>
9676
9677 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9678 NUM_REGS bounds check.
9679
5e2e9765
KB
96802003-03-18 Kevin Buettner <kevinb@redhat.com>
9681
9682 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9683 * mips-tdep.c (gdb_assert.h): Include.
9684 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9685 (mips_register_name): Handle integer registers explicitly. Add
9686 bounds checking.
9687 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9688 (mips_lsi33k_reg_names): Don't list integer registers; they're
9689 handled by mips_register_name() now.
9690 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9691 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9692 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9693 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9694 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9695
a2867626
AC
96962003-03-18 Andrew Cagney <cagney@redhat.com>
9697
9698 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9699 a void pointer.
9700 * gdbtypes.h (print_scalar_formatted): Update declaration.
9701 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9702
06600e06
JB
97032003-03-18 J. Brobecker <brobecker@gnat.com>
9704
9705 * infrun.c (observer.h): Add #include.
9706 (normal_stop): Add call to observer_notify_normal_stop.
9707 * Makefile.in (infrun.o): Add dependency on observer.h.
9708
7daf4f5b
JB
97092003-03-18 J. Brobecker <brobecker@gnat.com>
9710
9711 Continuing work to convert the hppa targets to multiarch partial.
9712 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9713 parameter. Reformat comment.
9714 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9715 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9716 to match new profile.
9717
3371ccc0
JB
97182003-03-18 J. Brobecker <brobecker@gnat.com>
9719
9720 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9721 appear to be working in any case.
9722
4fbe891e
JB
97232003-03-18 J. Brobecker <brobecker@gnat.com>
9724
9725 * observer.c (observer_test_first_observer): New static variable.
9726 (observer_test_second_observer): Likewise.
9727 (observer_test_third_observer): Likewise.
9728 (observer_test_first_notification_function): New static function.
9729 (observer_test_second_notification_function): Likewise.
9730 (observer_test_third_notification_function): Likewise.
9731
a7ff40e7
JB
97322003-03-17 J. Brobecker <brobecker@gnat.com>
9733
9734 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9735 * somsolib.c (gdb_assert.h): Likewise.
9736 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9737 (somsolib.o): Likewise.
9738
26ca4152
AC
97392003-03-17 Andrew Cagney <cagney@redhat.com>
9740
9741 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9742 BFD. Simplify setting of di.endian.
9743
0a613259
AC
97442003-03-17 Andrew Cagney <cagney@redhat.com>
9745
9746 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9747 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9748
9749 From Elena Zannoni <ezannoni@redhat.com>
9750 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9751 vector and floating-point parameters.
9752 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9753 convention.
9754 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9755
1132738f
FN
97562003-03-17 Fernando Nasser <fnasser@redhat.com>
9757
9758 * MAINTAINERS: Remove my name from several maintainership roles.
9759
6dc42492
AC
97602003-03-17 Andrew Cagney <cagney@redhat.com>
9761
9762 Fix frame off-by-one bug.
9763 * frame-unwind.h (frame_this_id_ftype): Replace
9764 frame_unwind_id_ftype.
9765 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9766 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9767 with "prev_register".
9768 * frame-unwind.c (frame_unwind_find_by_pc): Return
9769 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9770 comment.
9771 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9772 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9773 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9774 (dummy_frame_unwind): Update.
9775 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9776 sentinel_frame_register_unwind.
9777 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9778 (sentinel_frame_unwinder): Update.
9779 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9780 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9781 * frame.c (create_sentinel_frame): Update. Initialize
9782 "prologue_cache" instead of "unwind_cache".
9783 (frame_register_unwind): Call this frame's prev_register with the
9784 next frame and this frame's prologue cache.
9785 (get_prev_frame): Simplify. Always call prev frame's this_id with
9786 this frame and prev frame's prologue cache. Document that this
9787 call is shifted one to the left when compared to the
9788 frame_register_unwind call.
9789 (legacy_saved_regs_prev_register): Replace
9790 frame_saved_regs_register_unwind.
9791 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9792 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9793 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9794 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9795 (d10v_frame_unwind): Update.
9796 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9797 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9798 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9799 "saved_regs" with "this_saved_regs".
9800
efd710d6
AC
98012003-03-16 Andrew Cagney <cagney@redhat.com>
9802
9803 * frame.c (frame_pop): Don't call target_store_registers. Fix
9804 problem reported by Mark Kettenis.
9805
4e259f09
MK
98062003-03-16 Mark Kettenis <kettenis@gnu.org>
9807
9808 * i386-tdep.c (i386_register_type): Renamed from
9809 i386_register_virtual_type. Adjust function signature.
9810 (i386_gdbarch_init): Set register_type instead of
9811 deprecated_max_register_raw_size,
9812 deprecated_max_register_virtual_size and register_virtual_type.
9813
055bb976
AC
98142003-03-14 Andrew Cagney <cagney@redhat.com>
9815
9816 * frame.c (get_prev_frame): When a legacy frame, always call
9817 legacy_get_prev_frame. Simplify unwind code using assumption that
9818 the unwinder is new.
9819 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9820 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9821 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9822
ac2adee5
AC
98232003-03-14 Andrew Cagney <cagney@redhat.com>
9824
9825 * frame.c (get_saved_register): Delete function.
9826 * frame.h (get_saved_register): Delete declaration.
9827 * xstormy16-tdep.c: Update comment.
9828 * regcache.h: Update comments.
9829 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9830 get_saved_register and extract_address, use
9831 frame_read_unsigned_register.
9832 (sparc_frame_saved_pc): Ditto.
9833 (sparc_get_saved_register): Instead of get_saved_register, use
9834 frame_register.
9835 (sparc_pop_frame): Ditto.
9836 * findvar.c: Update comments.
9837 (value_of_register): Call frame_register instead of
9838 get_saved_register.
9839 (value_from_register): Ditto.
9840 * config/sparc/tm-sparc.h: Update comment.
9841 * breakpoint.c: Update comment.
9842
129c1cd6
AC
98432003-03-14 Andrew Cagney <cagney@redhat.com>
9844
9845 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9846 GET_SAVED_REGISTER.
9847 * gdbarch.h, gdbarch.c: Re-generate.
9848 * frame.h: Update comments.
9849 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9850 * x86-64-tdep.c (x86_64_init_abi): Update.
9851 * sparc-tdep.c (sparc_gdbarch_init): Update.
9852 * sh-tdep.c (sh_gdbarch_init): Update.
9853 * mips-tdep.c (mips_gdbarch_init): Update.
9854 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9855 * cris-tdep.c (cris_gdbarch_init): Update.
9856 * ia64-tdep.c (ia64_gdbarch_init): Update.
9857 * frame.c (frame_register): Update.
9858 (get_saved_register): Update.
9859 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9860
749b82f6
AC
98612003-03-13 Andrew Cagney <cagney@redhat.com>
9862
9863 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9864 * gdbarch.h, gdbarch.c: Regenerate.
9865 * valops.c (hand_function_call): Update comment.
9866 * stack.c (return_command): Update comment.
9867 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9868 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9869 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9870 * x86-64-tdep.c (x86_64_init_abi): Update.
9871 * vax-tdep.c (vax_gdbarch_init): Update.
9872 * v850-tdep.c (v850_gdbarch_init): Update.
9873 * sparc-tdep.c (sparc_gdbarch_init): Update.
9874 * sh-tdep.c (sh_gdbarch_init): Update.
9875 * s390-tdep.c (s390_gdbarch_init): Update.
9876 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9877 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9878 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9879 * mips-tdep.c (mips_gdbarch_init): Update.
9880 * mcore-tdep.c (mcore_gdbarch_init): Update.
9881 * m68k-tdep.c (m68k_gdbarch_init): Update.
9882 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9883 * ia64-tdep.c (ia64_gdbarch_init): Update.
9884 * i386-tdep.c (i386_gdbarch_init): Update.
9885 * hppa-tdep.c (hppa_gdbarch_init): Update.
9886 * h8300-tdep.c (h8300_gdbarch_init): Update.
9887 * frv-tdep.c (frv_gdbarch_init): Update.
9888 * cris-tdep.c (cris_gdbarch_init): Update.
9889 * avr-tdep.c (avr_gdbarch_init): Update.
9890 * arm-tdep.c (arm_gdbarch_init): Update.
9891 * alpha-tdep.c (alpha_gdbarch_init): Update.
9892
1594fa56
AC
98932003-03-13 Andrew Cagney <cagney@redhat.com>
9894
9895 * frame.c (legacy_frame_p): New function.
9896 (get_prev_frame): Use legacy_frame_p.
9897 * frame.h (legacy_frame_p): Declare.
9898
7717fda3
V
98992003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9900
fbe586ae 9901 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9902 listing corrected.
9903
0c67cbe9
V
99042003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9905
fbe586ae 9906 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9907
03febf99
AC
99082003-03-12 Andrew Cagney <cagney@redhat.com>
9909
9910 * frame.c (get_prev_frame): Rename the frame parameter to
9911 "this_frame".
9912 (get_next_frame, legacy_get_prev_frame): Ditto.
9913
0a1e1ca1
AC
99142003-03-12 Andrew Cagney <cagney@redhat.com>
9915
9916 * frame.c (get_current_frame): Check target_has_registers before
9917 checking target_has_stack.
9918 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9919 instead of deprecated_selected_frame.
9920 * findvar.c (value_of_register): Pass "frame", not
9921 deprecated_selected_frame, to value_of_builtin_reg.
9922
a66a9c23
AC
99232003-03-12 Andrew Cagney <cagney@redhat.com>
9924
9925 * regcache.c (regcache_cooked_write_signed): New function.
9926 (regcache_cooked_write_unsigned): New function.
9927 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9928 (regcache_cooked_read_signed): Fix regnum in range assertion.
9929 * regcache.h (regcache_cooked_write_signed): Declare.
9930 (regcache_cooked_write_unsigned): Declare.
9931
8bedc050
AC
99322003-03-12 Andrew Cagney <cagney@redhat.com>
9933
9934 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9935 * gdbarch.h, gdbarch.c: Re-generate.
9936 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9937 * x86-64-tdep.h: Update.
9938 * x86-64-tdep.c (x86_64_init_abi): Update.
9939 * v850-tdep.c (v850_gdbarch_init): Update.
9940 * sparc-tdep.c (sparc_gdbarch_init): Update.
9941 * sh-tdep.c (sh_gdbarch_init): Update.
9942 * s390-tdep.c (s390_gdbarch_init): Update.
9943 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9944 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9945 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9946 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9947 * mips-tdep.c (mips_gdbarch_init): Update.
9948 * mcore-tdep.c (mcore_gdbarch_init): Update.
9949 * m68k-tdep.c (m68k_gdbarch_init): Update.
9950 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9951 * ia64-tdep.c (ia64_gdbarch_init): Update.
9952 * i386-tdep.c (i386_gdbarch_init): Update.
9953 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9954 * hppa-tdep.c (hppa_gdbarch_init): Update.
9955 * h8300-tdep.c (h8300_gdbarch_init): Update.
9956 * frv-tdep.c (frv_gdbarch_init): Update.
9957 * cris-tdep.c (cris_gdbarch_init): Update.
9958 * avr-tdep.c (avr_gdbarch_init): Update.
9959 * arm-tdep.c (arm_gdbarch_init): Update.
9960 * alpha-tdep.c (alpha_gdbarch_init): Update.
9961 * sh-tdep.c (sh_init_extra_frame_info): Update.
9962 (sh64_init_extra_frame_info): Update.
9963 * ns32knbsd-nat.c (frame_num_args): Update.
9964 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9965 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9966 (xstormy16_frame_chain_valid): Update.
9967 * vax-tdep.c (vax_saved_pc_after_call): Update.
9968 * v850-tdep.c (v850_frame_chain): Update.
9969 (v850_pop_frame): Update.
9970 (v850_init_extra_frame_info): Update.
9971 * sparc-tdep.c (setup_arbitrary_frame): Update.
9972 * ns32k-tdep.c (umax_frame_num_args): Update.
9973 * s390-tdep.c (s390_pop_frame_regular): Update.
9974 * mn10300-tdep.c (mn10300_frame_chain): Update.
9975 (mn10300_pop_frame_regular): Update.
9976 (mn10300_init_extra_frame_info): Update.
9977 * mips-tdep.c (mips_init_frame_pc_first): Update.
9978 (mips_frame_chain): Update.
9979 (mips_pop_frame): Update.
9980 * mcore-tdep.c (mcore_frame_chain): Update.
9981 (mcore_pop_frame): Update.
9982 (mcore_init_extra_frame_info): Update.
9983 * arch-utils.c (init_frame_pc_default): Update.
9984 * m68k-tdep.c (isi_frame_num_args): Update.
9985 (delta68_frame_num_args): Update.
9986 (news_frame_num_args): Update.
9987 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9988 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9989 (alpha_frame_chain): Update.
9990 (alpha_pop_frame): Update.
9991 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9992 (hppa_init_extra_frame_info): Update.
9993 (hppa_frame_chain): Update.
9994 (hppa_frame_chain_valid): Update.
9995 * cris-tdep.c (cris_init_extra_frame_info): Update.
9996 * avr-tdep.c (avr_init_extra_frame_info): Update.
9997 * arm-tdep.c (arm_frame_chain_valid): Update.
9998 (arm_init_extra_frame_info): Update.
9999 (arm_pop_frame): Update.
10000 * frame.c (frame_pc_unwind): Update.
10001 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10002 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10003 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10004 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10005 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10006 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10007
7a25a7c1
AC
100082003-03-12 Andrew Cagney <cagney@redhat.com>
10009
10010 Eliminate the need for POP_FRAME.
10011 * frame.c (do_frame_unwind_register): New function.
10012 (frame_pop): When no POP_FRAME, pop the frame using register
10013 unwind and a scratch regcache.
10014 (frame_saved_regs_pop): Delete function.
10015 (trad_frame_unwinder): Update.
10016 * d10v-tdep.c (d10v_frame_pop): Delete function.
10017 (d10v_frame_unwind): Update.
10018 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10019 (sentinel_frame_unwinder): Update.
10020 * dummy-frame.c (dummy_frame_pop): Delete function.
10021 (dummy_frame_unwind): Update.
10022 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10023 (struct frame_unwind): Update.
10024
2f38ef89
KB
100252003-03-11 Kevin Buettner <kevinb@redhat.com>
10026
10027 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10028 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10029 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10030 Do range checks on register number obtained from debugging info.
10031 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10032 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10033 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10034 mapping function.
10035 (do_fp_register_row): Fix typo which caused double type to be
10036 used when attempting to unpack a float.
10037
552f4abf
JB
100382003-03-11 J. Brobecker <brobecker@gnat.com>
10039
10040 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10041
e0d2ae16
AC
100422003-03-11 Andrew Cagney <cagney@redhat.com>
10043
10044 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10045 frame. Problem found by Corinna Vinschen.
10046
ddbfdd06
PM
100472003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10048
10049 * doublest.c (floatformat_from_length): Accept also
10050 the real size of 'long double' type.
10051
088b2ddc 100522003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 10053
088b2ddc 10054 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
10055 * breakpoint.c (bpstat_copy): Copy the command lines as well
10056 as the old value, to match what is freed in bpstat_clear.
10057
f56f77c1
DC
100582003-03-10 David Carlton <carlton@math.stanford.edu>
10059
10060 * minsyms.c (add_minsym_to_hash_table): Replace
10061 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10062 (compare_minimal_symbols, compact_minimal_symbols)
10063 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10064 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10065 of DEPRECATED_SYMBOL_MATCHES_NAME.
10066 (lookup_minimal_symbol_solib_trampoline): Ditto.
10067
5602984a
AC
100682003-03-10 Andrew Cagney <cagney@redhat.com>
10069
10070 * regcache.h (regcache_cooked_read_ftype): Define.
10071 (regcache_save, regcache_restore): Add a cooked_read parameter.
10072 * regcache.c (regcache_save, regcache_restore): Update.
10073 (do_cooked_read): New function.
10074 (regcache_cpy): Pass do_cooked_read to regcache_save and
10075 regcache_restore.
10076
8bedc050
AC
100772003-03-10 Andrew Cagney <cagney@redhat.com>
10078
10079 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10080 * gdbarch.h, gdbarch.c: Re-generate.
10081 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10082 * x86-64-tdep.h: Update.
10083 * x86-64-tdep.c (x86_64_init_abi): Update.
10084 * v850-tdep.c (v850_gdbarch_init): Update.
10085 * sparc-tdep.c (sparc_gdbarch_init): Update.
10086 * sh-tdep.c (sh_gdbarch_init): Update.
10087 * s390-tdep.c (s390_gdbarch_init): Update.
10088 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10089 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10090 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10091 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10092 * mips-tdep.c (mips_gdbarch_init): Update.
10093 * mcore-tdep.c (mcore_gdbarch_init): Update.
10094 * m68k-tdep.c (m68k_gdbarch_init): Update.
10095 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10096 * ia64-tdep.c (ia64_gdbarch_init): Update.
10097 * i386-tdep.c (i386_gdbarch_init): Update.
10098 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10099 * hppa-tdep.c (hppa_gdbarch_init): Update.
10100 * h8300-tdep.c (h8300_gdbarch_init): Update.
10101 * frv-tdep.c (frv_gdbarch_init): Update.
10102 * cris-tdep.c (cris_gdbarch_init): Update.
10103 * avr-tdep.c (avr_gdbarch_init): Update.
10104 * arm-tdep.c (arm_gdbarch_init): Update.
10105 * alpha-tdep.c (alpha_gdbarch_init): Update.
10106 * sh-tdep.c (sh_init_extra_frame_info): Update.
10107 (sh64_init_extra_frame_info): Update.
10108 * ns32knbsd-nat.c (frame_num_args): Update.
10109 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10110 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10111 (xstormy16_frame_chain_valid): Update.
10112 * vax-tdep.c (vax_saved_pc_after_call): Update.
10113 * v850-tdep.c (v850_frame_chain): Update.
10114 (v850_pop_frame): Update.
10115 (v850_init_extra_frame_info): Update.
10116 * sparc-tdep.c (setup_arbitrary_frame): Update.
10117 * ns32k-tdep.c (umax_frame_num_args): Update.
10118 * s390-tdep.c (s390_pop_frame_regular): Update.
10119 * mn10300-tdep.c (mn10300_frame_chain): Update.
10120 (mn10300_pop_frame_regular): Update.
10121 (mn10300_init_extra_frame_info): Update.
10122 * mips-tdep.c (mips_init_frame_pc_first): Update.
10123 (mips_frame_chain): Update.
10124 (mips_pop_frame): Update.
10125 * mcore-tdep.c (mcore_frame_chain): Update.
10126 (mcore_pop_frame): Update.
10127 (mcore_init_extra_frame_info): Update.
10128 * arch-utils.c (init_frame_pc_default): Update.
10129 * m68k-tdep.c (isi_frame_num_args): Update.
10130 (delta68_frame_num_args): Update.
10131 (news_frame_num_args): Update.
10132 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10133 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10134 (alpha_frame_chain): Update.
10135 (alpha_pop_frame): Update.
10136 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10137 (hppa_init_extra_frame_info): Update.
10138 (hppa_frame_chain): Update.
10139 (hppa_frame_chain_valid): Update.
10140 * cris-tdep.c (cris_init_extra_frame_info): Update.
10141 * avr-tdep.c (avr_init_extra_frame_info): Update.
10142 * arm-tdep.c (arm_frame_chain_valid): Update.
10143 (arm_init_extra_frame_info): Update.
10144 (arm_pop_frame): Update.
10145 * frame.c (frame_pc_unwind): Update.
10146 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10147 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10148 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10149 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10150 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10151 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10152
12cc2063
AC
101532003-03-10 Andrew Cagney <cagney@redhat.com>
10154
10155 * gdbarch.sh (gdbarch_unwind_pc): New method.
10156 * gdbarch.h, gdbarch.c: Regenerate.
10157 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10158 but use read_pc and FRAME_SAVED_PC as fall backs.
10159 (frame_saved_regs_pc_unwind): Delete function.
10160 (trad_frame_unwinder): Update.
10161 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10162 (struct frame_unwind): Update.
10163 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10164 (dummy_frame_unwind): Update.
10165 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10166 (sentinel_frame_unwinder): Update.
10167 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10168 (d10v_frame_unwind): Update.
10169 (d10v_unwind_pc): New function.
10170 (d10v_gdbarch_init): Set unwind_pc.
10171
ef840a37
AC
101722003-03-10 Andrew Cagney <cagney@redhat.com>
10173
a2ce2e56
AC
10174 * gdbarch.h: Re-generate.
10175
ef840a37
AC
10176 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10177 PC.
10178 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10179 the PC register.
10180
08f3424b
MK
101812003-03-08 Mark Kettenis <kettenis@gnu.org>
10182
10183 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10184
1248ede2
AC
101852003-03-08 Andrew Cagney <cagney@redhat.com>
10186
10187 * cli-out.c: Update copyright.
10188 (cli_out_data): Define typedef. Use instead of ui_out_data.
10189
f49bacc8
AC
101902003-03-08 Andrew Cagney <cagney@redhat.com>
10191
10192 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10193 the result.
10194
9b05f993
AC
101952003-03-07 Andrew Cagney <cagney@redhat.com>
10196
10197 * gdbarch.sh: Don't generate two macro definitions when an
10198 undefined macro taking no arguments.
10199 * gdbarch.h: Regenerate.
8ffd9b1b 10200
166f4c7b
ML
102012002-03-07 Michal Ludvig <mludvig@suse.cz>
10202
10203 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10204 (x86_64_unwind_dummy_id): New functions.
10205 (x86_64_init_abi): Register these two new functions.
10206
6d686a84
ML
102072003-03-07 Michal Ludvig <mludvig@suse.cz>
10208
10209 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 10210 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
10211 separate function.
10212 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10213
6314f104
AC
102142003-03-05 Andrew Cagney <cagney@redhat.com>
10215
10216 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10217 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10218 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10219 to use unwind_dummy_id when a dummy frame.
10220 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10221 predicate.
10222 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 10223
ceea5145
AC
102242003-03-05 Andrew Cagney <cagney@redhat.com>
10225
10226 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10227 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10228 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10229 values.
10230
0d843116
AC
102312003-03-05 Andrew Cagney <cagney@redhat.com>
10232
10233 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10234 (struct d10v_unwind_cache): Delete field "frameless". Replace
10235 "next_addr" with "sp_offset". Add "r11_offset".
10236 (d10v_frame_unwind_cache): Update.
10237 (prologue_find_regs): Update. When "mv r11, sp", save the
10238 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10239 RN was saved in r11_offset.
10240
b2579786
AC
102412003-03-05 Andrew Cagney <cagney@redhat.com>
10242
10243 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10244 cached PC value in the next frame.
10245
218e5956
AC
102462003-03-05 Andrew Cagney <cagney@redhat.com>
10247
10248 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10249 "id_unwind_cache" with "id".
10250 (frame_id_unwind): Delete declaration.
10251 * frame.c (frame_id_unwind): Delete function.
10252 (get_prev_frame): Call the frame id unwind method directly. Store
10253 the returned next frame's ID value in NEXT_FRAME. Note that there
10254 is a problem with the wrong unwind ID being called with the wrong
10255 unwind cache.
10256
ed363b1b
DJ
102572003-03-05 Daniel Jacobowitz <drow@mvista.com>
10258
10259 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10260
fe1f4a5e
DJ
102612003-03-05 James Ingham <jingham@apple.com>
10262 Daniel Jacobowitz <drow@mvista.com>
10263
10264 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10265 (auto_cp_abi): New variable.
10266 (current_cp_abi, num_cp_abis): Make static.
10267 (CP_ABI_MAX): Define.
10268 (cp_abis): Turn into an array.
10269 (value_virtual_fn_field): Fix formatting.
10270 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10271 takes a pointer.
10272 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10273 (list_cp_abis, _initialize_cp_abi): New functions.
10274 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10275 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10276 switch_to_cp_abi. Update prototype for register_cp_abi.
10277 * Makefile.in (cp-abi.o): Update dependencies.
10278 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10279 instead of switch_to_cp_abi.
10280 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10281 register_cp_abi.
10282 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10283 register_cp_abi.
10284 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10285
e4adbba9
DJ
102862003-03-05 Daniel Jacobowitz <drow@mvista.com>
10287
10288 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10289 * dwarf2loc.c: Include "regcache.h".
10290 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10291 register_size.
10292 * Makefile.in (dwarf2loc.o): Update dependencies.
10293
91ccbfc1
TR
102942003-03-04 Theodore A. Roth <troth@openavr.org>
10295
10296 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10297 number of io registers reported by remote target is not a multiple of
10298 step.
10299
3d4e8fd2
DC
103002003-03-04 David Carlton <carlton@math.stanford.edu>
10301
10302 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10303 (lookup_symbol_aux_psymtabs): Update call to
10304 lookup_partial_symbol.
10305 (lookup_transparent_type, find_main_psymtab)
10306 (make_symbol_overload_list): Ditto.
10307
ed42d87b
KH
103082003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10309
10310 * MAINTAINERS (Write after approval): Update my email address.
10311
a0ed5532
AC
103122003-03-03 Andrew Cagney <cagney@redhat.com>
10313
10314 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10315 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10316 predicate. Replace MAX_REGISTER_RAW_SIZE.
10317 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10318 MAX_REGISTER_VIRTUAL_SIZE.
10319 * regcache.c (legacy_max_register_raw_size): New function.
10320 (legacy_max_register_virtual_size): New function.
10321 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10322 (MAX_REGISTER_RAW_SIZE): Define.
10323 (legacy_max_register_raw_size): Declare.
10324 (legacy_max_register_virtual_size): Declare.
10325 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10326 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10327 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10328 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10329 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10330 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10331 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10332 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10333 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10334 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10335 * vax-tdep.c (vax_gdbarch_init): Update.
10336 * v850-tdep.c (v850_gdbarch_init): Update.
10337 * sparc-tdep.c (sparc_gdbarch_init): Update.
10338 * sh-tdep.c (sh_gdbarch_init): Update.
10339 * s390-tdep.c (s390_gdbarch_init): Update.
10340 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10341 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10342 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10343 * mips-tdep.c (mips_gdbarch_init): Update.
10344 * mcore-tdep.c (mcore_gdbarch_init): Update.
10345 * m68k-tdep.c (m68k_gdbarch_init): Update.
10346 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10347 * ia64-tdep.c (ia64_gdbarch_init): Update.
10348 * i386-tdep.c (i386_gdbarch_init): Update.
10349 * hppa-tdep.c (hppa_gdbarch_init): Update.
10350 * h8300-tdep.c (h8300_gdbarch_init): Update.
10351 * frv-tdep.c (frv_gdbarch_init): Update.
10352 * cris-tdep.c (cris_gdbarch_init): Update.
10353 * avr-tdep.c (avr_gdbarch_init): Update.
10354 * arm-tdep.c (arm_gdbarch_init): Update.
10355 * alpha-tdep.c (alpha_gdbarch_init): Update.
10356 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10357 max_register_raw_size or max_register_virtual_size.
10358
8e437497
DC
103592003-03-03 David Carlton <carlton@math.stanford.edu>
10360
10361 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10362 SYMBOL_MATCHES_NAME, add comment.
10363 (SYMBOL_MATCHES_NATURAL_NAME): New.
10364 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10365 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10366 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10367 * symtab.c (lookup_partial_symbol): Use
10368 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10369 unhelpful comment.
10370 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10371 SYMBOL_MATCHES_NAME.
10372 Fix for PR c++/33.
10373
25120b0d
DC
103742003-03-03 David Carlton <carlton@math.stanford.edu>
10375
10376 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10377 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10378 by regexp matching against SYMBOL_NATURAL_NAME.
10379
78a11fb4
DC
103802003-03-03 David Carlton <carlton@math.stanford.edu>
10381
10382 * linespec.c (find_method): Extract code into collect_methods.
10383 (collect_methods): New.
10384
645dd519
MK
103852003-03-02 Mark Kettenis <kettenis@gnu.org>
10386
b4700d91
MK
10387 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10388 get_frame_base.
10389
645dd519
MK
10390 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10391 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10392
0aa7e1aa
SC
103932003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10394
8ffd9b1b 10395 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10396 and not regnum when summing the size of all registers up to regnum.
10397
f30ee0bc
AC
103982003-03-01 Andrew Cagney <cagney@redhat.com>
10399
10400 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10401 FRAME_INIT_SAVED_REGS.
10402 * gdbarch.h, gdbarch.c: Regenerate.
10403 * stack.c (frame_info): Update.
10404 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10405 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10406 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10407 * ns32k-tdep.c (ns32k_pop_frame): Update.
10408 * mips-tdep.c (mips_pop_frame): Update.
10409 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10410 * ia64-tdep.c (ia64_frame_chain): Update.
10411 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10412 (ia64_frameless_function_invocation): Update.
10413 (ia64_init_extra_frame_info): Update.
10414 (ia64_pop_frame_regular): Update.
10415 * frame.h (struct frame_info): Update comment.
10416 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10417 * frame.c (frame_saved_regs_register_unwind): Update.
10418 (frame_saved_regs_register_unwind): Update.
10419 (deprecated_generic_get_saved_register): Update.
10420 * cris-tdep.c: Update comment.
10421 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10422 Rename macro.
10423 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10424 * x86-64-tdep.c (x86_64_init_abi): Update.
10425 * vax-tdep.c (vax_gdbarch_init): Update.
10426 * v850-tdep.c (v850_gdbarch_init): Update.
10427 * sparc-tdep.c (sparc_gdbarch_init): Update.
10428 * sh-tdep.c (sh_gdbarch_init): Update.
10429 * s390-tdep.c (s390_gdbarch_init): Update.
10430 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10431 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10432 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10433 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10434 * mips-tdep.c (mips_gdbarch_init): Update.
10435 * mcore-tdep.c (mcore_gdbarch_init): Update.
10436 * m68k-tdep.c (m68k_gdbarch_init): Update.
10437 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10438 * ia64-tdep.c (ia64_gdbarch_init): Update.
10439 * i386-tdep.c (i386_gdbarch_init): Update.
10440 * frv-tdep.c (frv_gdbarch_init): Update.
10441 * avr-tdep.c (avr_gdbarch_init): Update.
10442 * arm-tdep.c (arm_gdbarch_init): Update.
10443 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10444
42fa7c0f
AC
104452003-03-01 Andrew Cagney <cagney@redhat.com>
10446
10447 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10448 option enum and switch. When no windows, set the interpreter to
10449 INTERP_CONSOLE.
8ffd9b1b 10450
49c7e338
AC
104512003-03-01 Andrew Cagney <cagney@redhat.com>
10452
10453 * main.c (captured_main): Replace magic option characters with an
10454 enum.
10455
e9582e71
AC
104562003-03-01 Andrew Cagney <cagney@redhat.com>
10457
10458 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10459 INIT_EXTRA_FRAME_INFO.
10460 * gdbarch.h, gdbarch.c: Regenerate.
10461 * arm-tdep.c: Update comments.
10462 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10463 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10464 * frame.h, avr-tdep.c: Ditto.
10465 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10466 (create_new_frame, legacy_get_prev_frame): Ditto.
10467 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10468 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10469 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10470 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10471 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10472 * v850-tdep.c (v850_gdbarch_init): Ditto.
10473 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10474 * sh-tdep.c (sh_gdbarch_init): Ditto.
10475 * s390-tdep.c (s390_gdbarch_init): Ditto.
10476 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10477 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10478 * mips-tdep.c (mips_gdbarch_init): Ditto.
10479 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10480 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10481 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10482 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10483 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10484 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10485 * frv-tdep.c (frv_gdbarch_init): Ditto.
10486 * cris-tdep.c (cris_gdbarch_init): Ditto.
10487 * avr-tdep.c (avr_gdbarch_init): Ditto.
10488 * arm-tdep.c (arm_gdbarch_init): Ditto.
10489 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10490 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10491
35cac7cf
AC
104922003-03-01 Andrew Cagney <cagney@redhat.com>
10493
10494 * gdbarch.sh (register_type): New function with predicate.
10495 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10496 * gdbarch.h, gdbarch.c: Re-generate.
10497 * arch-utils.c (generic_register_byte): Use generic_register_size.
10498 (generic_register_size): When available, use
10499 gdbarch_register_type.
10500 * regcache.c (init_regcache_descr): When available, initialize the
10501 register type array using gdbarch_register_type. If the
10502 architecture supplies gdbarch_register_type, do not use the legacy
10503 regcache layout.
10504 * d10v-tdep.c (d10v_register_type): Replace
10505 d10v_register_virtual_type.
10506 (d10v_gdbarch_init): Set register_type instead of
10507 register_virtual_type.
10508
7b83296f
AC
105092003-03-01 Andrew Cagney <cagney@redhat.com>
10510
10511 * Makefile.in (ax-gdb.o): Update dependencies.
10512 * ax-gdb.c: Include "regcache.h".
10513 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10514 * findvar.c (value_of_register): Ditto.
10515 * infcmd.c (default_print_registers_info): Ditto.
10516
eadc1c87
MK
105172003-03-01 Mark Kettenis <kettenis@gnu.org>
10518
10519 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10520 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10521
14143612
MK
105222003-03-01 Mark Kettenis <kettenis@gnu.org>
10523
10524 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10525 of STREQ.
10526
a55cc764
DJ
105272003-02-28 Daniel Jacobowitz <drow@mvista.com>
10528
10529 * Makefile.in (dwarf2loc.o): Update dependencies.
10530 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10531 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10532 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10533 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10534 (locexpr_tracepoint_var_ref): New function.
10535 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10536
08a617da
AC
105372003-02-28 Andrew Cagney <cagney@redhat.com>
10538
10539 * regcache.c (register_size): New function.
10540 * regcache.h (register_size): Declare
10541 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10542 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10543
4224873a
DC
105442003-02-28 David Carlton <carlton@math.stanford.edu>
10545
10546 * linespec.c (decode_compound): Extract code into find_method.
10547 (find_method): New.
10548
ccdc5d7f
JB
105492003-02-28 J. Brobecker <brobecker@gnat.com>
10550
10551 * Makefile.in: Add rules to build and link in observer.o.
10552
974e8ced
JB
105532003-02-27 J. Brobecker <brobecker@gnat.com>
10554
10555 * observer.c: Minor comments edits.
10556
7a28f973
JB
105572003-02-27 J. Brobecker <brobecker@gnat.com>
10558
10559 * observer.h, observer.c: New file.
10560
27cddce2
AC
105612003-02-27 Andrew Cagney <cagney@redhat.com>
10562
10563 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10564
b94a41a1
SC
105652003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10566
10567 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10568 (M6812_OP_STS_EXT): Likewise.
10569 (m6811_prologue): Use the above to recognize prologue.
10570 (m6812_prologue): Likewise.
10571
c8be8951
DC
105722003-02-27 David Carlton <carlton@math.stanford.edu>
10573
10574 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10575 SYMBOL_PRINT_NAME.
10576 (compare_psymbols): Ditto.
10577 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10578
d05bb1fc
MS
105792003-02-27 Michael Snyder <msnyder@redhat.com>
10580
4e845cd3
MS
10581 * f-lang.c (build_fortran_types): New function.
10582 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
10583 * doublest.c (extract_floating): Fix warning text.
10584
f3824013
AC
105852003-02-27 Andrew Cagney <cagney@redhat.com>
10586
10587 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10588 predicate. Replaces PUSH_DUMMY_FRAME.
10589 * gdbarch.h, gdbarch.c: Regnerate.
10590 * valops.c (hand_function_call): Update. Call
10591 generic_push_dummy_frame directly.
10592 * vax-tdep.c (vax_gdbarch_init): Update.
10593 * sparc-tdep.c (sparc_gdbarch_init): Update.
10594 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10595 * m68k-tdep.c (m68k_gdbarch_init): Update.
10596 * hppa-tdep.c (hppa_gdbarch_init): Update.
10597 * alpha-tdep.c (alpha_gdbarch_init): Update.
10598 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10599 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10600 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10601 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10602 push_dummy_frame to generic_push_dummy_frame.
10603 * v850-tdep.c (v850_gdbarch_init): Ditto.
10604 * sh-tdep.c (sh_gdbarch_init): Ditto.
10605 * s390-tdep.c (s390_gdbarch_init): Ditto.
10606 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10607 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10608 * mips-tdep.c (mips_gdbarch_init): Ditto.
10609 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10610 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10611 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10612 * i386-tdep.c (i386_gdbarch_init): Ditto.
10613 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10614 * frv-tdep.c (frv_gdbarch_init): Ditto.
10615 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10616 * cris-tdep.c (cris_gdbarch_init): Ditto.
10617 * avr-tdep.c (avr_gdbarch_init): Ditto.
10618 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 10619
ad188201
KB
106202003-02-26 Kevin Buettner <kevinb@redhat.com>
10621
10622 * mips-tdep.c (show_mips_abi): New function.
10623 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10624 command ``show mips abi''.
10625
6b37567a 106262003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 10627
6b37567a 10628 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 10629 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
10630 more sline entries have been seen for the function.
10631
d3e0a5bf
MC
106322003-02-26 Michael Chastain <mec@shout.net>
10633
10634 * configure: Regenerate with autoconf 000227.
10635
18972eea
MC
106362003-02-26 Michael Chastain <mec@shout.net>
10637
10638 Close PR build/660.
10639 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10640 for old libc5/glibc.
10641 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10642
0bbde931
KW
106432003-02-26 Kris Warkentin <kewarken@qnx.com>
10644
10645 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10646 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10647
27ca5dad
MC
106482003-02-26 Michael Chastain <mec@shout.net>
10649
10650 * configure.in: New variable HAVE_UINTPTR_T.
10651 * configure, config.in: Regenerated.
10652
6f88d630
DJ
106532003-02-26 Daniel Jacobowitz <drow@mvista.com>
10654
10655 Fix PR build/1097.
10656 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10657
b14185ce
AC
106582003-02-25 Andrew Cagney <cagney@redhat.com>
10659
10660 * frame.c (get_prev_frame): Add comment on check for
10661 inside_entry_func. Only check for inside_entry_file when not a
10662 dummy and not a sentinel. Check that the new frame is not inner
10663 to the old frame.
10664
ac2bd0a9
AC
106652003-02-25 Andrew Cagney <cagney@redhat.com>
10666
10667 * frame.c (frame_debug): New variable.
10668 (_initialize_frame): Add "set/show debug frame" command.
10669 (get_prev_frame): When frame_debug, print reason why unwind
10670 failed.
10671
b18a0fd2
MC
106722003-02-25 Michael Chastain <mec@shout.net>
10673
10674 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10675 to avoid uintptr_t definition problems.
10676
22abf04a
DC
106772003-02-25 David Carlton <carlton@math.stanford.edu>
10678
10679 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10680 (SYMBOL_LINKAGE_NAME): Ditto.
10681 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10682 SYMBOL_LINKAGE_NAME.
10683 (struct general_symbol_info): Expand comment.
10684 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10685 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10686 (SYMBOL_MATCHES_REGEXP): Ditto.
10687 * symtab.c (symbol_natural_name): New function.
10688 * objfiles.h: Replace all uses of SYMBOL_NAME by
10689 DEPRECATED_SYMBOL_NAME.
10690 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10691 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10692 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10693 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10694 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10695 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10696 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10697 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10698 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10699 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10700 * ada-exp.y: Ditto.
10701 * ada-exp.y: Update copyright.
10702 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10703 * cp-valprint.c: Ditto.
10704
1a5848f6
JJ
107052003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10706
10707 * infptrace.c (detach): Do not flag error if ptrace detach fails
10708 and errno is set to ESRCH.
10709
7343d46a
AC
107102003-02-24 Andrew Cagney <cagney@redhat.com>
10711
10712 * infptrace.c (udot_info): Change type of udot_off to long. Use
10713 paddr when printing udot_off's value.
10714
49fa1dc2
DC
107152003-02-24 David Carlton <carlton@math.stanford.edu>
10716
10717 * symtab.c (make_symbol_overload_list): Only read in partial
10718 symtabs containing a matching partial symbol.
10719
0fe19209
DC
107202003-02-24 David Carlton <carlton@math.stanford.edu>
10721
10722 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10723 do the comparison, not strcmp.
10724 * symfile.c (compare_psymbols): Ditto.
10725 * defs.h: Declare strcmp_iw_ordered.
10726 * utils.c (strcmp_iw_ordered): New function.
10727
8e3ee7b5
JB
107282003-02-24 Jim Blandy <jimb@redhat.com>
10729
10730 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10731 support, shared libs): Remove my name from here, to better reflect
10732 reality.
10733
7df1a324
KW
107342003-02-24 Kris Warkentin <kewarken@qnx.com>
10735
10736 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10737 (target_ops): Add to_have_continuable_watchpoint.
10738 * target.c (update_current_target): Add INHERIT line for
10739 to_have_continuable_watchpoint.
10740 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10741 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10742 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10743 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10744
d1c76907
EZ
107452003-02-24 Elena Zannoni <ezannoni@redhat.com>
10746
10747 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10748 maintainership.
10749
2610b0bf
KW
107502003-02-24 Kris Warkentin <kewarken@qnx.com>
10751
f46169db
KW
10752 * solib.c (solib_open): Call target defined search function after
10753 failing with solib-search-path.
10754 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10755 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10756
9a3c34fe
KW
107572003-02-24 Kris Warkentin <kewarken@qnx.com>
10758
f46169db 10759 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10760
2417dd25
SC
107612003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10762
10763 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10764
b631436b
SC
107652003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10766
10767 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10768 (m68hc11_add_reggroups): New function.
10769 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10770 (m68hc11_gdbarch_init): Install the reggroups.
10771 (_initialize_m68hc11_tdep): Initialize them.
10772
0aa8c1e4
JW
107732003-02-21 James E Wilson <wilson@tuliptree.org>
10774
10775 * MAINTAINERS: Update my email address.
10776
50ceaba5
DC
107772003-02-21 David Carlton <carlton@math.stanford.edu>
10778
10779 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10780
4c2df51b
DJ
107812003-02-21 Daniel Jacobowitz <drow@mvista.com>
10782
10783 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10784 * symtab.h: Add opaque declarations of struct axs_value and
10785 struct agent_expr.
10786 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10787 (struct location_funcs): New type.
10788 (struct symbol): Add "loc" to aux_value.
10789 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10790 * dwarf2read.c: Include "dwarf2expr.h".
10791 (dwarf2_symbol_mark_computed): New function.
10792 (read_func_scope): Use it.
10793 (var_decode_location): New function.
10794 (new_symbol): Use it.
10795 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10796
10797 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10798 (dwarf2expr_h, dwarf2loc_h): New variables.
10799 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10800 (dwarf2expr.o, dwarf2loc.o): New rules.
10801 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10802 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10803 LOC_COMPUTED_ARG.
10804 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10805 * m2-exp.y (yylex): Likewise.
10806 * printcmd.c (address_info, print_frame_args): Likewise.
10807 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10808 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10809 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10810 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10811 * symtab.c (lookup_block_symbol): Likewise.
10812
5784d15e
AF
108132003-02-20 Adam Fedor <fedor@gnu.org>
10814
10815 * symtab.h: Remove objc_specific struct
10816 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10817 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10818 Have language_objc use cplus_specific struct.
10819
d4cad8db
TT
108202003-02-20 Tom Tromey <tromey@redhat.com>
10821
10822 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10823 TYPE_NAME, when printing a String value. PR java/1075.
10824
2f9a90b4
AF
108252003-02-20 Adam Fedor <fedor@gnu.org>
10826
d38074a8 10827 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 10828 * objc-lang.c (find_methods): Make static.
2f9a90b4 10829
6f17862b
CF
108302003-02-20 Christopher Faylor <cgf@redhat.com>
10831
10832 * win32-nat.c (get_image_name): Check return value from
10833 ReadProcessMemory.
10834 (child_xfer_memory): Ditto.
10835
715d1656
AO
108362003-02-20 Alexandre Oliva <aoliva@redhat.com>
10837
10838 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10839 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10840 '${exec_prefix}' (in addition to the expansion thereof) as
10841 relocatable.
10842 * configure: Rebuilt.
10843
b1262a02
DC
108442003-02-20 David Carlton <carlton@math.stanford.edu>
10845
10846 * symtab.c (search_symbols): Revert the search_symbols part of my
10847 2002-12-23 patch. Add comment.
10848
7134143f
DJ
108492002-02-20 Daniel Jacobowitz <drow@mvista.com>
10850
10851 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10852 * dbxread.c (elfstab_build_psymtabs): Don't call
10853 install_minimal_symbols.
10854 (stabsect_build_psymtabs): Likewise.
10855 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10856 earlier.
10857 * somread.c (som_symfile_read): Call install_minimal_symbols
10858 and do_cleanups earlier.
10859 * nlmread.c (nlm_symfile_read): Likewise.
10860 * mdebugread.c (elfmdebug_build_psymtabs): Call
10861 install_minimal_symbols and make appropriate cleanups.
10862
cf466558
KB
108632003-02-20 Kevin Buettner <kevinb@redhat.com>
10864
10865 * solib.c (reload_shared_libraries): New function.
10866 (_initialize_solib): Add callbacks for ``set solib-search-path''
10867 and ``set solib-absolute-prefix''.
10868
de5ad195
DC
108692003-02-20 David Carlton <carlton@math.stanford.edu>
10870
10871 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10872 expand comment.
10873 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10874 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10875 * ada-typeprint.c (ada_typedef_print): Ditto.
10876 * ax-gdb.c (gen_var_ref): Ditto.
10877 * breakpoint.c (print_one_breakpoint): Ditto.
10878 * buildsym.c (finish_block): Ditto.
10879 * c-valprint.c (c_val_print): Ditto.
10880 * expprint.c (print_subexp): Ditto.
10881 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10882 * infcmd.c (jump_command): Ditto.
10883 * linespec.c (decode_line_2, decode_compound): Ditto.
10884 * maint.c (maintenance_translate_address): Ditto.
10885 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10886 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10887 Ditto.
8ffd9b1b
AJ
10888 * p-valprint.c (pascal_val_print): Ditto.
10889 * stabsread.c (define_symbol): Ditto.
de5ad195 10890 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10891 (print_frame_arg_vars, return_command): Ditto.
10892 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10893 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10894 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10895 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10896 (rbreak_command): Ditto.
10897 * tracepoint.c (tracepoints_info): Ditto.
10898 * typeprint.c (typedef_print): Ditto.
10899 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10900 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10901 * ada-typeprint.c: Update Copyright.
10902 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10903 * tracepoint.c, cli/cli-cmds.c: Ditto.
10904
f796e4be
KB
109052003-02-20 Kevin Buettner <kevinb@redhat.com>
10906
10907 * frame.c (generic_unwind_get_saved_register): Make non-static.
10908 * frame.h (generic_unwind_get_saved_register): Declare.
10909 * mips-tdep.c (read_next_frame_reg): Fetch register from
10910 current regcache when frame is NULL.
10911 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10912 that must be NULL.
10913 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10914 instead of frame_register_unwind().
10915
836cc9f4
AC
109162003-02-20 Andrew Cagney <ac131313@redhat.com>
10917
10918 * remote-sim.c (gdbsim_insert_breakpoint)
10919 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10920 code.
10921
501eef12
AC
109222003-02-20 Andrew Cagney <ac131313@redhat.com>
10923
10924 * remote.c (_initialize_remote): Add commands "set/show remote
10925 hardware-watchpoint-limit" and "set/show remote
10926 hardware-breakpoint-limit".
10927 (remote_hw_watchpoint_limit): Initialize to -1.
10928 (remote_hw_breakpoint_limit): Ditto.
10929 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10930
1b6bc7e0
CF
109312003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10932
10933 * coff-pe-read.c: New file - support reading of minimal symbols from a
10934 portable executable using the export table.
10935 * coff-pe-read.h: New file.
10936 * coffread.c: Include coff-pe-read.h.
10937 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10938 debugging symbols found.
10939 * Makefile.in (SFILES): Add coff-pe-read.o.
10940 (coff_pe_read_h): Define.
10941 (COMMON_OBS): Add coff-pe-read.o.
10942 (coffread.o): Add coff_pe_read_h dependency.
10943 (coff-pe-read.o): New target.
10944
fe898f56
DC
109452003-02-19 David Carlton <carlton@math.stanford.edu>
10946
10947 * Makefile.in (SFILES): Add block.c.
10948 (block_h): New.
10949 (COMMON_OBS): Add block.o.
10950 (block.o): New.
10951 (x86-64-tdep.o): Add $(block_h).
10952 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10953 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10954 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10955 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10956 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10957 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10958 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10959 * value.h: Add opaque declaration for struct block.
10960 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10961 * ada-lang.h: Ditto.
10962 * x86-64-tdep.c: #include "block.h"
10963 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10964 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10965 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10966 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10967 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10968 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10969 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10970 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10971 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10972 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10973 * symtab.c (block_function): Ditto.
10974 (contained_in): Ditto.
10975 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10976 block.h. Add opaque declaration for struct block.
10977 * symtab.h: Move block_function and contained_in declarations to
10978 block.h. Add opaque declarations for struct block, struct
10979 blockvector.
10980 (struct block): Move to block.h.
10981 (struct blockvector): Ditto.
10982 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10983 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10984 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10985 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10986 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10987 Ditto.
10988 * block.c: New file.
10989 * block.h: New file.
10990
173345b5
TR
109912003-02-19 Theodore A. Roth <troth@openavr.org>
10992
10993 * avr-tdep.c (avr_extract_return_value): Remove function.
10994 (avr_store_return_value): Remove function.
10995 (avr_extract_struct_value_address): Remove function.
10996 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10997
338ef23d
AC
109982003-02-19 Andrew Cagney <ac131313@redhat.com>
10999
11000 * rs6000-tdep.c: Include "gdb_assert.h".
11001 (registers_e500): Add "acc" and "spefscr".
11002 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11003 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11004 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11005 really is "r0".
11006 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11007
5412f5f3
KS
110082003-02-18 Keith Seitz <keiths@redhat.com>
11009
11010 * Makefile.in: Add gdbtk-interps.c.
11011
881324eb
KB
110122003-02-18 Kevin Buettner <kevinb@redhat.com>
11013
11014 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11015 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11016
6a2f5abf
AC
110172003-02-18 Andrew Cagney <cagney@redhat.com>
11018
11019 * symtab.h (struct objfile): Add opaque declaration.
11020
54c7009d
EZ
110212003-02-18 Elena Zannoni <ezannoni@redhat.com>
11022
11023 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
11024 * dbxread.c (process_one_symbol): Use last_function_start rather
11025 than function_start_offset to find the real beginning of the
11026 current function. The latter is just the text section offset on
11027 some systems, the former is always the real function start.
54c7009d 11028
7ee6d7eb
AC
110292003-02-17 Andrew Cagney <cagney@redhat.com>
11030
11031 * configure.in: Revert ${target} != ${host}.
11032
2846da9b
AC
110332003-02-17 Andrew Cagney <ac131313@redhat.com>
11034
11035 * configure.in (Makefile): Use the test ${target} != ${host},
11036 instead of the absence of the "nm.h" file, to determine of the
11037 configuration non-native.
11038 * configure: Regenerate.
8ffd9b1b 11039
3b27aeea
EZ
110402003-02-14 Elena Zannoni <ezannoni@redhat.com>
11041
fbe586ae 11042 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
11043
11044 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11045 conditionalize tui_active test.
11046 (lookup_cmd_1): Ditto.
11047
b0b1c2c0
MK
110482003-02-14 Mark Kettenis <kettenis@gnu.org>
11049
11050 * configure.in: Add check for _etext.
11051 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11052 available.
11053 * config.in, configure: regenerated.
11054
8f05cde5
DJ
110552003-02-14 Daniel Jacobowitz <drow@mvista.com>
11056
11057 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11058
021e7609
AC
110592003-02-14 Andrew Cagney <ac131313@redhat.com>
11060
11061 * main.c (tui_version): Delete variable.
11062 (captured_main): When --tui, set interpreter_p to "tui" instead of
11063 enabling tui_version.
11064 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11065 tui_version.
11066 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11067 * cli/cli-cmds.c (disassemble_command): Ditto.
11068 * defs.h (tui_version): Delete declaration.
11069 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11070 (tui-interp.o): Add rules.
11071 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11072
e325dcec
CF
110732003-02-14 Christopher Faylor <cgf@redhat.com>
11074
36ffb041 11075 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
11076 just-loaded dll.
11077
c4f90d87
JM
110782003-02-12 Jason Molenda (jmolenda@apple.com)
11079
fbe586ae
RH
11080 * symmisc.c (print_objfile_statistics): Include information about
11081 the number of psymtabs and symtabs in each object file.
c4f90d87 11082
e46e5ccd
KS
110832003-02-13 Keith R Seitz <keiths@redhat.com>
11084
11085 * main.h (struct captured_main_args): Add interpreter_p.
11086 * main.c (captured_main): Initialize interpreter_p from context.
11087 * gdb.c (main): Set interpreter_p argument.
11088 * Makefile.in (gdb.o): Add dependency for interps.h.
11089
fe97fe9c
AC
110902003-02-12 Andrew Cagney <ac131313@redhat.com>
11091
11092 * event-top.c (cli_command_loop): Delete declaration.
11093 (_initialize_event_loop): Delete function setting event_loop_hook.
11094 * event-top.h (cli_command_loop): Declare. Update copyright.
11095 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11096 * interps.c (current_interp_command_loop): When event_loop_p, call
11097 cli_command_loop.
11098
1cdac4ef
AC
110992003-02-12 Andrew Cagney <ac131313@redhat.com>
11100
11101 * interps.h (interp_command_loop_ftype): Change return type to
11102 void.
11103
48037ead
ML
111042003-02-12 Michal Ludvig <mludvig@suse.cz>
11105
11106 * x86-64-tdep.c (x86_64_extract_return_value)
11107 (x86_64_store_return_value): Use regcache instead of regbuf.
11108 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11109 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11110
033afc63
AC
111112003-02-11 Andrew Cagney <ac131313@redhat.com>
11112
11113 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11114 * aclocal.m4: Regenerate.
11115 * configure: Regenerate.
11116
11117 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11118 TCL_LD_SEARCH_FLAGS.
11119
40d02bca
ML
111202003-02-10 Michal Ludvig <mludvig@suse.cz>
11121
11122 * dwarf2cfi.c: Reindented.
11123
11308a41
AC
111242003-02-09 Andrew Cagney <ac131313@redhat.com>
11125
11126 * interps.c (clear_interpreter_hooks): Convert function definition
11127 to ISO C.
11128
e1c1c0f6
DC
111292003-02-07 David Carlton <carlton@math.stanford.edu>
11130
11131 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11132
ab5d3da6
KB
111332003-02-07 Kevin Buettner <kevinb@redhat.com>
11134
11135 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11136 (struct type): ...to here.
11137 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11138 field.
11139 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11140 (replace_type): Set length on all type variants for a given type.
11141
b8a92b82
AC
111422003-02-07 Andrew Cagney <ac131313@redhat.com>
11143
11144 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11145 <sys/stat.h>.
11146 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 11147
5cb316ef
AC
111482003-02-06 Andrew Cagney <ac131313@redhat.com>
11149
2555fe1a
AC
11150 * Makefile.in (symm-nat.o): Update dependencies.
11151 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11152 (lynx-nat.o, ia64-linux-nat.): Ditto.
11153 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11154 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11155 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11156
44270758
AC
11157 * Makefile.in (inflow_h): Define.
11158 (procfs.o, inflow.o, procfs.o): Update dependencies.
11159 * inftarg.c (child_stop): Delete extern declaration of
11160 inferior_process_group. Include "inflow.h".
11161 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11162 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11163 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11164 (our_process_group, inferior_process_group): Extern declarations.
11165
df8f7274
AC
11166 * procfs.c: Include "gdb_assert.h".
11167
5cb316ef
AC
11168 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11169 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11170 * jv-typeprint.c (java_type_print_base): Ditto.
11171 * typeprint.c (typedef_print): Eliminate STREQ.
11172 * cli/cli-script.c (define_command, define_command): Ditto.
11173 * main.c (captured_main): Ditto.
11174 * values.c (lookup_internalvar): Ditto.
11175 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11176 within `if' conditional.
11177 * linespec.c (decode_line_2): Ditto.
11178 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11179 (bfd_openw_with_cleanup): Ditto.
11180
2a28ccea
MK
111812003-02-07 Mark Kettenis <kettenis@gnu.org>
11182
11183 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11184 legacy_extract_return_value and store_return_value to
11185 legacy_return_value.
11186
786b8124
CF
111872003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11188
11189 * win32-nat.c (get_relocated_section_addrs): New function. Find
11190 section load addresses for symbol handling in relocated DLLs.
11191 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11192
b871e4ec
FF
111932003-02-05 Fred Fish <fnf@intrinsity.com>
11194
11195 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11196 '=' and '!='.
11197 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11198 with '&' and '=='.
11199 (angel_RDI_info): Ditto.
11200 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11201 with '&' and '!='.
11202 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 11203
4389a95a 112042003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
11205 Keith Seitz <keiths@redhat.com>
11206 Elena Zannoni <ezannoni@redhat.com>
11207 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
11208
11209 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11210 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11211 (SUBDIR_MI_OBS): Add "mi-interp.o".
11212 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11213 (SFILES): Add "interps.c".
11214 (COMMON_OBS): Add "interps.o".
11215 (interps_h, mi_main_h): Define.
11216 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11217 (mi-main.o, main.o, event-top.o): Update dependencies.
11218 * cli/cli-interp.c: New file.
11219 * interps.h, interps.c: New files.
11220 * top.c: (gdb_init): Don't install the default interpreter, handed
11221 by captured_main.
11222 * main.c: Include "interps.h".
11223 (interpreter_p): Note that it should malloc'ed.
11224 (captured_command_loop): Call current_interp_command_loop.
11225 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11226 xfree and xstrdup when updating interpreter_p. Install the
11227 default interpreter. Add hack to stop mi1's copyright notice
11228 being encoded.
11229 * event-top.h (gdb_setup_readline): Declare.
11230 (gdb_disable_readline): Declare.
11231 * event-top.c: Include "interps.h".
11232 (display_gdb_prompt): Call current_interp_display_prompt_p.
11233 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11234 gdb_stdlog, and gdb_stdtarg.
11235 (_initialize_event_loop): Don't call gdb_setup_readline.
11236 * cli-out.c (cli_out_set_stream): New function.
11237 * cli-out.h (cli_out_set_stream): Declare.
11238
ff3b5810
MK
112392003-02-06 Mark Kettenis <kettenis@gnu.org>
11240
11241 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11242 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11243 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11244 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11245 config/i386/i386v42mp.mt: Removed.
11246
5b729aa5
MK
112472003-02-05 Mark Kettenis <kettenis@gnu.org>
11248
11249 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11250 GDB_OSABI_SOLARIS.
11251
8cc15142
MC
112522003-02-05 Michael Chastain <mec@shout.net>
11253
11254 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11255 2.12.1 and earlier versions.
11256
5aa5d4b9
AC
112572003-02-05 Andrew Cagney <ac131313@redhat.com>
11258
11259 Remove orphaned hosts, targets and files.
11260 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11261 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11262 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11263 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11264 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11265 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11266 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11267 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11268 * config/sparc/tm-sp64sim.h: Delete.
11269 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11270 hosts.
11271 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11272 mips*-dec-mach3* targets.
11273
b68767c1
MC
112742003-02-04 Michael Chastain <mec@shout.net>
11275
11276 * NEWS: Fix typo: sepcifying -> specifying.
11277
5ae7ca1d
MC
112782003-02-04 Michael Chastain <mec@shout.net>
11279
11280 * dwarfread.c: Add documentation on the state of dwarf-1,
11281 looking towards obsoletion.
11282
d08a4280
MC
112832003-02-03 Michael Chastain <mec@shout.net>
11284
11285 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11286 gdb/testsuite/gdb.c++/pr-1023.exp.
11287
e9be73e4
AC
112882003-02-04 Andrew Cagney <ac131313@redhat.com>
11289
11290 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11291 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11292
11293 * utils.c (init_page_info): Delete reference to MPW in comments.
11294 * main.c (captured_main): Delete #ifdef MPW.
11295
05d57f6f
AC
112962003-02-04 Andrew Cagney <ac131313@redhat.com>
11297
8ffd9b1b 11298 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11299 * monitor.c (monitor_expect): Obsolete reference to m32r.
11300 * configure.tgt: Mark m32r-*-elf* as obsolete.
11301 * MAINTAINERS: Mark m32k as obsolete.
11302 * m32r-rom.c: Obsolete file.
11303 * config/m32r/m32r.mt: Obsolete file.
11304 * config/m32r/tm-m32r.h: Obsolete file.
11305 * m32r-stub.c: Obsolete file.
11306 * m32r-tdep.c: Obsolete file.
11307
8b0e5691
AC
113082003-02-04 Andrew Cagney <ac131313@redhat.com>
11309
11310 * NEWS: Mention that the z8k-zilog-none is obsolete.
11311 * MAINTAINERS: Mark z8k as obsolete.
11312 * configure.tgt: Obsolete the z8k-*-coff* target.
11313 * config/z8k/z8k.mt: Obsolete file.
11314 * config/z8k/tm-z8k.h: Obsolete file.
11315 * z8k-tdep.c: Obsolete file.
11316
67f16606
AC
113172003-02-04 Andrew Cagney <ac131313@redhat.com>
11318
11319 * NEWS: Mention that the mn10200-elf is obsolete.
11320 * configure.tgt: Obsolete mn10200-*-* target.
11321 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11322 mention that the mn10200 is obsolete.
11323 * breakpoint.h: Ditto.
11324 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11325 * config/mn10200/mn10200.mt: Obsolete file.
11326 * config/mn10200/tm-mn10200.h: Obsolete file.
11327 * mn10200-tdep.c: Obsolete file.
11328
fd2299bd
AC
113292003-02-04 Andrew Cagney <ac131313@redhat.com>
11330
11331 * MAINTAINERS: Mark h8500 as obsolete.
11332 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11333 * findvar.c (value_from_register): Ditto.
11334 * h8500-tdep.c: Mark file as obsolete.
11335 * config/h8500/h8500.mt: Ditto.
11336 * config/h8500/tm-h8500.h: Ditto.
11337 * NEWS: Mention that h8500 is obsolete.
11338
eb9a305d
DC
113392003-02-04 David Carlton <carlton@math.stanford.edu>
11340
11341 * objfiles.c (allocate_objfile): Always set name. Add comment at
11342 start of function.
11343 * jv-lang.c (get_dynamics_objfile): Add comment.
11344
406fc7fb
DC
113452003-02-04 David Carlton <carlton@math.stanford.edu>
11346
11347 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11348 * printcmd.c (build_address_symbolic): Replace uses of
11349 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11350 SYMBOL_NAME, and asm_demangle.
11351 Update copyright.
11352
93d91629
DC
113532003-02-04 David Carlton <carlton@math.stanford.edu>
11354
11355 * linespec.c (decode_compound): Extract code into
11356 lookup_prefix_sym.
11357 (lookup_prefix_sym): New function.
11358
1c5cb38e
DC
113592003-02-04 David Carlton <carlton@math.stanford.edu>
11360
11361 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11362 FLOAT_COERCION_BADNESS.
11363 * gdbtypes.c (rank_one_type): Replace all uses of
11364 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11365
0cf824c9
JB
113662003-02-04 Jim Blandy <jimb@redhat.com>
11367
11368 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11369 section, let dwarf_macinfo_section point to it, not
11370 dwarf_loc_section.
11371
a2d356b0
DJ
113722003-02-04 Daniel Jacobowitz <drow@mvista.com>
11373
11374 Pointed out by Anton Blanchard <anton@samba.org>.
11375 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11376 (ppc_linux_at_sigtramp_return_path): Use it.
11377
2de7ced7
DJ
113782003-02-04 Daniel Jacobowitz <drow@mvista.com>
11379
11380 * defs.h (streq): Add prototype.
11381 * utils.c (streq): New function.
11382
11383 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11384 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11385 * mdebugread.c (new_symbol): Likewise.
11386 * stabsread.c (define_symbol): Likewise.
11387 * coffread.c (process_coff_symbol): Likewise.
11388 * dwarfread.c (new_symbol): Likewise.
11389
11390 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11391 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11392 here.
11393 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11394 SYMBOL_INIT_DEMANGLED_NAME.
11395 * objfiles.c: Include "hashtab.h".
11396 (allocate_objfile): Call htab_set_functions_ex for the
11397 demangled_names_hash.
11398 (free_objfile): Call htab_delete for the demangled_names_hash.
11399 * objfiles.h (struct htab): Add declaration.
11400 (struct objfile): Add demangled_names_hash.
11401 * symfile.c: Include "hashtab.h".
11402 (reread_symbols): Call htab_delete for the demangled_names_hash.
11403 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11404 SYMBOL_NAME in the bcache.
11405 * symtab.c: Include "hashtab.h". Update comments.
11406 (create_demangled_names_hash, symbol_set_names): New functions.
11407 (symbol_find_demangled_name): New function, broken out from
11408 symbol_init_demangled_names.
11409 (symbol_init_demangled_names): Use it.
11410 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11411 (SYMBOL_SET_NAMES): New macro.
11412 (symbol_set_names): Add prototype.
11413
15831452
JB
114142003-02-03 Jim Blandy <jimb@redhat.com>
11415
11416 Use a single, consistent representation for an empty minimal
11417 symbol table in an objfile.
11418 * objfiles.c (terminate_minimal_symbol_table): New function.
11419 (allocate_objfile): Call it.
11420 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11421 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11422 non-NULL.
15831452
JB
11423 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11424 objfile has minimal symbols, compare minimal_symbol_count to zero,
11425 instead of comparing msymbols with NULL.
11426 * objfiles.c (have_minimal_symbols): Same.
11427 * solib-sunos.c (solib_add_common_symbols): Call
11428 terminate_minimal_symbol_table.
11429 * symfile.c (reread_symbols): Same.
8ffd9b1b 11430
ffc65945
KB
114312003-02-03 Kevin Buettner <kevinb@redhat.com>
11432
11433 * s390-tdep.c (s390_address_class_type_flags)
11434 (s390_address_class_type_flags_to_name)
11435 (s390_address_class_name_to_type_flags): New functions.
11436 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11437 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11438
f211c6d4
MS
114392003-02-03 Michael Snyder <msnyder@redhat.com>
11440
11441 * arm-tdep.c: Fix spell-o in comment.
11442
659b0389
ML
114432003-02-03 Michal Ludvig <mludvig@suse.cz>
11444
11445 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11446 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11447 error messages to contain BFD filename.
659b0389 11448
3b31d625
EZ
114492003-02-02 Elena Zannoni <ezannoni@redhat.com>
11450
997b089a 11451 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11452 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11453 (do_mixed_source_and_assembly): Use
11454 make_cleanup_ui_out_tuple_begin_end and
11455 make_cleanup_ui_out_tuple_begin_end.
11456 (do_mixed_source_and_assembly): Ditto.
11457 * thread.c (do_captured_list_thread_ids): Ditto.
11458 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11459 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11460 ui_out_tuple_end): Delete prototypes.
11461 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11462 ui_out_list_end, ui_out_tuple_end): Delete.
11463
11464 From Kevin Buettner <kevinb@redhat.com>:
11465 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
11466 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11467 (do_cleanup_table_end): New functions.
11468 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11469 Use cleanups to invoke_ui_out_tuple_end().
11470 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
11471 * cli/cli-setshow.c (cmd_show_list): Use
11472 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 11473
5b181d62
AC
114742003-02-02 Andrew Cagney <ac131313@redhat.com>
11475
11476 * frame.c (frame_unwind_register): New function.
11477 (frame_unwind_unsigned_register): Use.
11478 (frame_unwind_signed_register): Use.
11479 (frame_read_register): New function.
11480 * frame.h (frame_unwind_register): Declare.
11481 (frame_read_register): Declare.
11482
11483 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11484 and frame_unwind_register instead of read_memory, write_register
11485 and deprecated_write_register_bytes.
11486
5f601589
AC
114872003-02-02 Andrew Cagney <ac131313@redhat.com>
11488
11489 * frame.h: Note that namelen can be negative.
11490 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11491 NAME's length.
11492
11493 * NEWS: Mention that the d10v's `regs' command is deprecated.
11494 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11495 (d10v_print_registers_info): New function.
11496 (show_regs): Call d10v_print_registers_info.
11497 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11498
6a3fe0a4
MK
114992003-02-02 Mark Kettenis <kettenis@gnu.org>
11500
11501 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11502 lost in the previous patch.
11503
075559bc
AC
115042003-02-01 Andrew Cagney <ac131313@redhat.com>
11505
11506 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
11507 * stack.c (print_frame_info_base): Output complete FRAME tuple
11508 for synthesized frames.
075559bc 11509
6789195b
AC
115102003-02-02 Andrew Cagney <ac131313@redhat.com>
11511
11512 * mips-nat.c (zerobuf): Delete.
11513 (fetch_inferior_registers): Alloc local zerobuf.
11514 (fetch_core_registers): Alloc local zerobuf.
11515 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11516 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11517 * thread-db.c (thread_db_store_registers): Ditto.
11518 * sh-tdep.c (sh_do_register): Ditto.
11519 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11520 * remote-sim.c (gdbsim_store_register): Ditto.
11521 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11522 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11523 * monitor.c (monitor_supply_register): Ditto.
11524 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11525 * mips-nat.c (fetch_inferior_registers): Ditto.
11526 * m68klinux-nat.c (fetch_register): Ditto.
11527 * lynx-nat.c (fetch_inferior_registers): Ditto.
11528 (fetch_inferior_registers): Ditto.
11529 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11530 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11531 (hpux_thread_store_registers): Ditto.
11532 * hppah-nat.c (fetch_register): Ditto.
11533 * hppab-nat.c (fetch_register): Ditto.
11534 * hppa-tdep.c (pa_register_look_aside): Ditto.
11535 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11536 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11537
e669114a
AC
115382003-02-01 Andrew Cagney <ac131313@redhat.com>
11539
11540 * gdbarch.sh: Explictly specify all method levels. When a
11541 variable with an empty level, provide a non-multi-arch default.
11542 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11543 * gdbarch.h: Re-generate.
11544 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11545 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11546
9a043c1d
AC
115472003-02-01 Andrew Cagney <ac131313@redhat.com>
11548
11549 * defs.h (host_pointer_to_address): Delete declaration.
11550 (address_to_host_pointer): Delete declaration.
11551 * utils.c (host_pointer_to_address): Delete function.
11552 (address_to_host_pointer): Delete function.
11553 * procfs.c (procfs_address_to_host_pointer): New function.
11554 * procfs.c (proc_set_watchpoint): Use.
11555 (procfs_can_use_hw_breakpoint): Update comments.
11556 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11557 (som_solib_add): Use.
11558 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11559 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 11560
7ca9f392
AC
115612003-02-01 Andrew Cagney <ac131313@redhat.com>
11562
94bbfd30
AC
11563 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11564 strlen d_name.
11565
7ca9f392
AC
11566 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11567 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11568 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11569 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11570 (define_symbol): Update.
11571 * symfile.c (generic_load): Remove references to nindy.
11572 * symtab.c: Remove references to nindy.
11573
31a85ea2
AC
115742003-02-01 Andrew Cagney <ac131313@redhat.com>
11575
11576 * infcmd.c (print_float_info): Delete code conditional on
11577 FLOAT_INFO.
11578 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11579 * config/m68k/nm-apollo68b.h: Ditto.
11580 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11581 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11582 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11583
f6e85fc8
MK
115842003-02-01 Mark Kettenis <kettenis@gnu.org>
11585
6015b6a0
MK
11586 * config/i386/tm-i386os9k.h: Removed.
11587
f7a30bdf
MK
11588 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11589 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11590 they're identical to i[3456]86-*-sysv* now.
11591 * config/i386/i386v32.mh: Removed.
11592 * config/i386/xm-i386v32.h: Removed.
11593 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11594
28d52111
MK
11595 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11596
4d3f6bce
MK
11597 * config/i386/i386dgux.mh: Removed.
11598 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11599
f6e85fc8
MK
11600 * configure.in: Fix typo.
11601 * configure: Regenerated.
11602
53955967
DC
116032003-01-31 David Carlton <carlton@math.stanford.edu>
11604
11605 * dwarf2read.c (dwarf2_locate_sections): Set
11606 dwarf_ranges_section.
11607
b1364885
AC
116082003-01-31 Andrew Cagney <ac131313@redhat.com>
11609
8dbb1c65
AC
11610 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11611 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 11612
8731e58e
AC
11613 * utils.c: Re-indent.
11614
b1364885
AC
11615 * config/djgpp/fnchange.lst: Delete nindy files.
11616 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11617 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11618 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11619 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11620 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11621 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11622 * Makefile.in (init.c): Remove nindy references.
11623 (saber_gdb): Delete rule.
11624 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11625 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11626 and a68v-nat.c.
11627 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11628 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11629 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11630 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11631 nindy-share/stop.h.
11632 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11633 * saber.suppress: Delete file.
11634
086df311
DJ
116352003-01-31 Daniel Jacobowitz <drow@mvista.com>
11636
11637 * dbxread.c (stabs_data): New static variable.
11638 (fill_symbuf): Support an in-memory buffer for stabs data.
11639 (stabs_seek): New function.
11640 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11641 (read_ofile_symtab): Use stabs_seek.
11642 (elfstab_build_psymtabs): Take an asection* instead of
11643 an offset and size. Relocate the stabs data if necessary.
11644 Save the section* for dbx_psymtab_to_symtab.
11645 * dwarf2read.c: Add section variables for each debug section.
11646 (dwarf2_locate_sections): Fill them in.
11647 (dwarf2_read_section): Take an asection* argument.
11648 Relocate the section contents if necessary.
11649 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11650 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11651 it to dwarf2_read_section.
11652 (dwarf2_build_frame_info): Update callers.
11653 * elfread.c (elf_symfile_read): Update call to
11654 elfstab_build_psymtabs.
11655 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11656 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11657 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11658 * symfile.c (symfile_dummy_outputs): New function.
11659 (symfile_relocate_debug_section): New function.
11660 * symfile.h (symfile_relocate_debug_section): Add prototype.
11661
87d1b352
RH
116622003-01-31 Richard Henderson <rth@redhat.com>
11663
11664 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11665 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11666 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11667 * alpha-tdep.c (alpha_register_name): Add "unique".
11668 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11669 (ALPHA_UNIQUE_REGNUM): New.
11670 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11671
c48861fb
AC
116722003-01-31 Andrew Cagney <ac131313@redhat.com>
11673
11674 * README: Remove reference to Ericsson 1800 monitor.
11675 * Makefile.in (remote-es.o): Delete rule.
11676 (ALLDEPFILES): Delete remote-es.c.
11677 * remote-es.c: Delete file.
11678 * config/m68k/es1800.mt: Delete file.
11679 * config/djgpp/fnchange.lst: Update.
11680 * configure.tgt: Delete m68*-ericsson-* target.
11681
d764a824
AF
116822003-01-31 Adam Fedor <fedor@gnu.org>
11683
11684 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11685 Remove duplicate/shadowing variable of same name.
11686
fe36c4f4
JB
116872003-01-30 Jim Blandy <jimb@redhat.com>
11688
11689 * symfile.c (find_separate_debug_file): Assert that the objfile's
11690 directory name we compute ends with a slash, and then assume that
11691 that's so everywhere we use it.
11692
cb741690
DJ
116932003-01-30 Daniel Jacobowitz <drow@mvista.com>
11694
11695 * valops.c (value_assign): Flush frame cache after stores to memory
11696 also.
11697
96ee5227
AC
116982003-01-30 Andrew Cagney <ac131313@redhat.com>
11699
11700 * Makefile.in (mon960-rom.o): Delete rule.
11701 * mon960-rom.c: Delete file.
11702
7f6104a9
AC
117032003-01-30 Andrew Cagney <ac131313@redhat.com>
11704
11705 * d10v-tdep.c: Include "frame-unwind.h".
11706 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11707 list.
11708 (next_addr, uses_frame): Delete.
11709 (struct d10v_unwind_cache): Define.
11710 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11711 Use info instead of next_addr and uses_frame globals.
11712 (d10v_frame_init_saved_regs): Delete function.
11713 (d10v_init_extra_frame_info): Delete function.
11714 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11715 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11716 init_frame_pc or frame_saved_pc.
11717 (d10v_pop_frame): Delete function.
11718 (do_d10v_pop_frame): Delete function.
11719 (d10v_frame_chain): Delete function.
11720 (d10v_frame_chain_valid): Delete function.
11721 (d10v_frame_pc_unwind): New function.
11722 (d10v_frame_id_unwind): New function.
11723 (saved_regs_unwinder): New function.
11724 (d10v_frame_register_unwind): New function.
11725 (d10v_frame_pop): New function.
11726 (d10v_frame_unwind): New variable.
11727 (d10v_frame_p): New function.
11728 (d10v_frame_saved_pc): Delete function.
11729 * Makefile.in (d10v-tdep.o): Update dependencies.
11730
cad2e848
JB
117312003-01-30 J. Brobecker <brobecker@gnat.com>
11732
11733 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11734 causing some regressions due to a change in the default value
11735 for this macro.
11736
af34e669
DJ
117372003-01-29 Richard Henderson <rth@redhat.com>
11738 Elena Zannoni <ezannoni@redhat.com>
11739 Daniel Jacobowitz <drow@mvista.com>
11740
11741 Fix PR gdb/961.
8ffd9b1b 11742 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11743 variables.
11744 (RANGES_SECTION): New.
11745 (dwarf_ranges_buffer): New variable.
11746 (struct comp_unit_head): Add member "die".
11747 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11748 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11749 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11750 (dwarf2_locate_sections): Likewise.
11751 (dwarf2_build_psymtabs): Read .debug_ranges.
11752 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11753 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11754 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11755 Look for DW_AT_ranges and return the bounding box.
11756
baa93fa6
CF
117572003-01-29 Brian Ford <ford@vss.fsi.com>
11758
11759 * win32-nat.c (cygwin_pid): Removed as unused.
11760 (child_attach): Try fall back to Cygwin pid.
11761
c63f977f
JB
117622003-01-29 Jim Blandy <jimb@redhat.com>
11763
11764 * objfiles.h (struct objfile): Doc fix.
11765
d62d1979
AC
117662003-01-29 Andrew Cagney <ac131313@redhat.com>
11767
11768 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11769 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11770 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11771 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11772 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11773 (FRAME_SAVED_PC): Change to a function with predicate.
11774 * gdbarch.h, gdbarch.c: Re-generate.
11775
1ae18a04
AC
117762003-01-28 Andrew Cagney <ac131313@redhat.com>
11777
52287340
AC
11778 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11779
1ae18a04
AC
11780 * complaints.c (complain): Delete function.
11781 * complaints.h (struct deprecated_complaint): Delete definition.
11782 (complain): Delete declaration.
11783
f2c16bd6
KB
117842003-01-28 Kevin Buettner <kevinb@redhat.com>
11785
11786 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11787 dummy frames.
11788
a94dd1fd
AC
117892003-01-27 Andrew Cagney <ac131313@redhat.com>
11790
11791 * sentinel-frame.h, sentinel-frame.c: New files.
11792 * Makefile.in (frame.o): Update dependencies.
11793 (SFILES): Add sentinel-frame.c.
11794 (sentinel_frame_h): Define.
11795 (COMMON_OBS): Add sentinel-frame.o.
11796 (sentinel-frame.o): Specify dependencies.
11797 * frame.c: Include "sentinel-frame.h".
11798 (frame_register_unwind): Rewrite assuming that there is always a a
11799 ->next frame.
11800 (frame_register, generic_unwind_get_saved_register): Ditto.
11801 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11802 (create_sentinel_frame, unwind_to_current_frame): New functions.
11803 (get_current_frame): Rewrite using create_sentinel_frame and
11804 unwind_to_current_frame. When possible, always create a frame.
11805 (create_new_frame): Set next to the sentinel frame.
11806 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11807 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11808 ID cache when necessary.
11809 (frame_saved_regs_id_unwind): Use frame_relative_level.
11810 (deprecated_generic_get_saved_register): Use frame_relative_level,
11811 get_frame_saved_regs, get_frame_pc, get_frame_base and
11812 get_next_frame.
11813 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11814 frame_register.
11815
5378adc4
DJ
118162003-01-27 Daniel Jacobowitz <drow@mvista.com>
11817
11818 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11819
51ee2ddc
DJ
118202003-01-27 Daniel Jacobowitz <drow@mvista.com>
11821
11822 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11823 (maintenance_set_profile_cmd): Use error () instead of warning ().
11824
d9feb4e7
DJ
118252003-01-27 Daniel Jacobowitz <drow@mvista.com>
11826
11827 * configure.in: Check that -pg works if using --enable-profiling.
11828 Check for monstartup and _mcleanup regardless of --enable-profiling.
11829 * maint.c: Check for monstartup and _mcleanup before using them.
11830 * config.in: Regenerated.
11831 * configure: Regenerated.
11832
2d188dd3
NC
118332003-01-24 Nick Clifton <nickc@redhat.com>
11834
11835 * Add sh2e support:
11836
11837 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11838
11839 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11840 (sh2e_show_regs): New.
11841 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11842 * config/sh/tm-sh.h: Added sh2e to comments.
11843
cb3c37b2
JB
118442003-01-23 Jim Blandy <jimb@redhat.com>
11845
11846 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11847 symbols found)" message here; we haven't checked for a separate
11848 debug info file yet, so we don't know yet.
11849 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11850 we've looked everywhere. Also, there's no need to print a special
11851 message when we're loading the separate debug info file: the one
11852 symbol_file_add prints is fine.
11853
5b5d99cf
JB
118542003-01-23 Alexander Larsson <alexl@redhat.com>
11855 Jim Blandy <jimb@redhat.com>
11856
11857 Add support for executables whose debug info has been separated
11858 out into a separate file, leaving only a link behind.
11859 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11860 and separate_debug_objfile_backlink.
11861 (put_objfile_before): New declaration.
11862 * symfile.c: #include "filenames.h".
11863 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11864 debug info in a separate file, read that, too. Save the addrs
11865 argument, so we can use it again to read the separated debug info;
11866 syms_from_objfile modifies the table we pass it.
11867 (reread_symbols): After re-reading an objfile, call
11868 reread_separate_symbols to refresh its separate debug info
11869 objfile, if it has one.
11870 (reread_separate_symbols, find_separate_debug_file,
11871 get_debug_link_info, separate_debug_file_exists): New functions.
11872 (debug_file_directory): New global var.
11873 (_initialize_symfile): Initialize debug_file_directory, and
11874 provide the new `set debug-file-directory' command to let the user
11875 change it.
11876 * objfiles.c (free_objfile): If this objfile has its debug info in
11877 a separate objfile, free that one too. If this is itself a
11878 separate debug info objfile, clear our parent's backlink.
11879 (put_objfile_before): New function.
11880 * utils.c (gnu_debuglink_crc32): New function.
11881 * defs.h (gnu_debuglink_crc32): New declaration.
11882 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11883 * configure.in: Handle --with-separate-debug-dir config option.
11884 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11885 * acconfig.h (DEBUGDIR): New macro.
11886 * configure, aclocal.m4, config.in: Regenerated.
11887
7e8580c1
JB
118882003-01-22 Jim Blandy <jimb@redhat.com>
11889
7904e09f
JB
11890 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11891 like the old symbol_file_add, but taking new arguments: you can
11892 now pass in either a `struct section_addr_info' list to say where
11893 each section is loaded, or a `struct section_offsets' table. Pass
11894 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11895 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11896 with the appropriate quiescent values for the new arguments.
11897
7e8580c1
JB
11898 * symfile.c: #include "gdb_assert.h".
11899 (syms_from_objfile): Add the ability to pass in a section offset
11900 table directly, as an alternative to the section_addr_info table.
11901 Document arguments better.
11902 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11903 * symfile.h (syms_from_objfile): Update declaration.
11904 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11905 syms_from_objfile.
11906 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11907
d28f9cdf
DJ
119082003-01-22 Daniel Jacobowitz <drow@mvista.com>
11909
11910 Original patch by Tom Tromey <tromey@cygnus.com> and
11911 Jason Molenda <jmolenda@apple.com>.
11912 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11913 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11914 * NEWS: Mention profiling.
11915 * configure.in (--enable-gdbtk): Fix typo.
11916 (--enable-profiling): New. Set PROFILE_CFLAGS.
11917 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11918 Fill in function.
11919 (profiling_state): New variable.
11920 (mcleanup_wrapper): New function.
11921 (_initialize_maint): Remove NOTYET, fix call to
11922 add_setshow_boolean_cmd for "maint set profile".
11923 * configure: Regenerated.
11924
df21e465
MH
119252003-01-21 Martin M. Hunt <hunt@redhat.com>
11926
11927 * Makefile.in (install-gdbtk): Install PNG images too.
11928
73c1f219
AC
119292003-01-21 Andrew Cagney <ac131313@redhat.com>
11930
11931 * exec.c (text_start): Delete global variable.
11932 (exec_file_attach): Make text_start local to the function.
11933 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11934 * valops.c (hand_function_call): Delete code that handles
11935 BEFORE_TEXT_END and AFTER_TEXT_END.
11936 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11937 of CALL_DUMMY_LOCATION.
11938 * gdbarch.c: Regenerate.
11939 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11940 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11941 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11942 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11943 (text_end): Delete extern declaration.
11944
eb4f72c5
AC
119452003-01-21 Andrew Cagney <ac131313@redhat.com>
11946
11947 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11948 * blockframe.c (backtrace_below_main): Move to "frame.c".
11949 (frame_chain_valid): Delete check for backtrace_below_main.
11950 (_initialize_blockframe): Delete initialization, move ``set
11951 backtrace-below-main'' command to "frame.c".
11952 (do_flush_frames_sfunc): Delete function.
11953 * frame.c: Include "command.h" and "gdbcmd.h".
11954 (frame_type_from_pc): New function.
11955 (create_new_frame): Use frame_type_from_pc.
11956 (legacy_get_prev_frame): New function.
11957 (get_prev_frame): Rewrite. When an old style frame, call
11958 legacy_get_prev_frame. Otherwize, unwind the PC first.
11959 (_initialize_frame): Add ``set backtrace-below-main'' command.
11960 * Makefile.in (frame.o): Update dependencies.
11961
778ce8cc
AC
119622003-01-19 Andrew Cagney <ac131313@redhat.com>
11963
11964 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11965 DEPRECATED_REGISTERS_INFO.
11966
01c193c8
AC
119672003-01-19 Andrew Cagney <ac131313@redhat.com>
11968
11969 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11970 Maintainers'. Update `Various Maintainers'.
11971
dedc2a2b
AC
119722003-01-19 Andrew Cagney <ac131313@redhat.com>
11973
11974 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11975 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11976 Suppress actual parameters when `-'.
11977 * gdbarch.h, gdbarch.c: Regenerate.
11978
b7261c70
AC
119792003-01-19 Andrew Cagney <ac131313@redhat.com>
11980
11981 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11982 code handling dummy frames.
11983
dbe9fe58
AC
119842003-01-19 Andrew Cagney <ac131313@redhat.com>
11985
11986 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11987 (struct frame_unwind): Add field pop.
11988 * frame.h (frame_pop): Declare.
11989 * frame.c (frame_saved_regs_pop): New function.
11990 (trad_frame_unwinder): Add frame_saved_regs_pop.
11991 (frame_pop): New function.
11992 * dummy-frame.c (dummy_frame_pop): New function.
11993 (discard_innermost_dummy): New function.
11994 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11995 (dummy_frame_unwind): Add dummy_frame_pop.
11996 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11997 * valops.c (hand_function_call): Ditto.
11998 * stack.c (return_command): Ditto.
11999
570b8f7c
AC
120002003-01-18 Andrew Cagney <ac131313@redhat.com>
12001
12002 * cris-tdep.c: Fix function declaration indentation.
12003 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12004 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12005 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12006 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12007 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12008 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12009
120102003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
12011
12012 * README (Unpacking and Installation -- quick overview):
12013 Warn against ".../gdb-5.3/gdb/configure".
12014
494cca16
AC
120152003-01-18 Andrew Cagney <ac131313@redhat.com>
12016
12017 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12018 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12019 (struct frame_unwind): Declare opaque.
12020 (dummy_frame_p): Declare function.
12021 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12022 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12023 * dummy-frame.c: Include "frame-unwind.h".
12024 (dummy_frame_p): New function.
12025 (dummy_frame_unwind): New variable.
12026 * frame.c: Include "frame-unwind.h".
12027 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12028 to use the new unwind field.
12029 (set_unwind_by_pc): Delete function.
12030 (create_new_frame, get_prev_frame): Set unwind field using
12031 frame_unwind_find_by_pc.
12032 (trad_frame_unwind, trad_frame_unwinder): New variables.
12033 * frame.h (trad_frame_unwind): Declare variable.
12034 (frame_id_unwind_ftype): Delete declaration.
12035 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12036 (struct frame_unwind): Declare opaque.
12037 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12038 register_unwind with a single unwind pointer.
12039 * frame-unwind.h, frame-unwind.c: New files.
12040 * Makefile.in (SFILES): Add frame-unwind.c.
12041 (frame_unwind_h): Define.
12042 (COMMON_OBS): Add frame-unwind.o.
12043 (frame-unwind.o): Specify dependencies.
12044 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 12045
4efb68b1
AC
120462003-01-18 Andrew Cagney <ac131313@redhat.com>
12047
12048 * ada-valprint.c: Eliminate PTR.
12049 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12050 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12051 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12052 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12053 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12054 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12055 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 12056
a84d24ee
AC
120572003-01-17 Andrew Cagney <ac131313@redhat.com>
12058
762f08a3
AC
12059 * main.c (captured_main): Don't use PTR.
12060 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12061 * gdbtypes.c (lookup_primitive_typename): Ditto.
12062 (lookup_struct_elt_type): Ditto.
12063 * f-valprint.c (info_common_command): Ditto.
12064 (list_all_visible_commons): Ditto.
12065 * jv-typeprint.c (java_type_print_base): Ditto.
12066
a84d24ee
AC
12067 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12068 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12069 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12070 i386-interix-nat.c and i386-interix-tdep.c. Rename
12071 m68klinux-nat.c and m68klinux-tdep.c. Rename
12072 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12073 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12074 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12075 * main.c (captured_main): Use xfree, not free.
12076
c170fb60
AC
120772003-01-16 Andrew Cagney <ac131313@redhat.com>
12078
12079 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12080 ID back using a parameter.
12081 * frame.c (frame_id_unwind): Update call.
12082 (frame_saved_regs_id_unwind): Update.
12083 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12084 * dummy-frame.h (struct frame_id): Add opaque declaration.
12085 (dummy_frame_id_unwind): Update declaration.
12086
867f3898
AC
120872003-01-15 Andrew Cagney <ac131313@redhat.com>
12088
12089 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12090
40622be8 120912003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 12092
40622be8 12093 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 12094
ae66c1fc
EZ
120952003-01-14 Elena Zannoni <ezannoni@redhat.com>
12096
997b089a 12097 Fix PR gdb/898
ae66c1fc
EZ
12098 * breakpoint.c (until_break_command): Add new argument. Use it to
12099 decide whether to stop only at the current frame or not.
12100 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 12101 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
12102 call.
12103 (advance_command): New function.
12104 (_initialize_infcmd): Update help string for 'until' command.
12105 Add new 'advance' command.
12106
a04257e6
DC
121072003-01-14 David Carlton <carlton@math.stanford.edu>
12108
12109 * linespec.c (decode_line_1): Normalize comments.
12110 (set_flags): Ditto.
12111 (locate_first_half): Ditto.
12112 (decode_compound): Ditto.
12113 (symtab_from_filename): Ditto.
12114 (decode_all_digits): Ditto.
12115 (decode_dollar): Ditto.
12116 (find_methods): Ditto.
12117 (find_toplevel_char): Ditto.
12118
1bac305b
AC
121192003-01-13 Andrew Cagney <ac131313@redhat.com>
12120
12121 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12122 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12123 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12124 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12125 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12126 * language.c, language.h, m32r-tdep.c: Update copyright.
12127 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12128 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12129 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12130 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12131 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12132 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12133
25caa7a8
EZ
121342003-01-13 Elena Zannoni <ezannoni@redhat.com>
12135
12136 * stabsread.h (process_later, resolve_cfront_continuation):
12137 Obsolete.
12138 Update copyright years.
12139 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12140 Update copyright year.
12141 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 12142 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
12143 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12144 Update copyright year.
12145 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12146 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12147 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12148 (parse_partial_symbols): Obsolete cfront support.
12149 * stabsread.c
12150 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12151 macros.
12152 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12153 read_cfront_baseclasses, read_cfront_member_functions,
12154 resolve_cfront_continuation,read_cfront_static_fields,
12155 copy_cfront_struct_fields): Obsolete functions.
12156 (define_symbol, read_one_struct_field): Obsolete cfront support.
12157 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12158 Update Copyright year.
12159
7789c6f5
EZ
121602003-01-13 Elena Zannoni <ezannoni@redhat.com>
12161
12162 * stack.c (print_frame_info, print_stack_frame_base_stub,
12163 print_stack_frame_base, show_and_print_stack_frame_stub,
12164 show_and_print_stack_frame, print_only_stack_frame_stub,
12165 print_only_stack_frame): Delete functions.
12166 (print_stack_frame_stub): Call print_frame_info instead of
12167 print_frame_info_base.
12168 (print_frame_info_base): Rename to print_frame_info.
12169 (backtrace_command_1): Call print_frame_info, instead of
12170 print_frame_info_base.
12171 (current_frame_command): Call print_stack_frame, instead of
12172 print_only_stack_frame.
12173 (frame_command): Call print_stack_frame, instead of
12174 show_and_print_stack_frame.
12175 (up_command): Ditto.
12176 (down_command): Ditto.
12177 * frame.h (print_only_stack_frame): Delete prototype.
12178 * infrun.c (normal_stop): Call print_stack_frame, instead of
12179 show_and_print_stack_frame.
12180 * thread.c (info_threads_command): Call print_stack_frame, instead
12181 of print_only_stack_frame.
12182
3f5a3016
AC
121832003-01-13 Andrew Cagney <ac131313@redhat.com>
12184
d99ba314
AC
12185 * README (Graphical interface to GDB): Update URL. Point at
12186 gdb/links/.
12187
3f5a3016
AC
12188 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12189 version match.
12190
083ae935
DJ
121912003-01-13 Daniel Jacobowitz <drow@mvista.com>
12192
12193 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12194 lines.
12195
5365276c
DJ
121962003-01-13 Daniel Jacobowitz <drow@mvista.com>
12197
12198 * thread-db.c (attach_thread): Prototype.
12199 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12200 thread information (ti), and valid flags (th_valid, ti_valid).
12201 (attach_thread): Move target_pid_to_str call to after the thread
12202 is added to GDB's list. Initialize the cache.
12203 (thread_get_info_callback, thread_db_map_id2thr)
12204 (thread_db_get_info): New functions.
12205 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12206 (thread_db_store_registers, thread_db_thread_alive)
12207 (thread_db_get_thread_local_address): Use them.
12208 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12209 of calling error() for threads in unknown state.
12210
12211 (clear_lwpid_callback): New function.
12212 (thread_db_resume): Use it to clear the cache.
12213
9fc30b6b
DJ
122142003-01-13 Daniel Jacobowitz <drow@mvista.com>
12215
12216 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12217 (resume_callback): Remove dead code.
12218
8f871025
AC
122192003-01-13 Andrew Cagney <ac131313@redhat.com>
12220
12221 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12222 predicate.
12223 * gdbarch.h, gdbarch.c: Regenerate.
12224 * stack.c (frame_info): Only initialize the saved registers when
12225 FRAME_INIT_SAVED_REGS_P.
12226 * frame.c (frame_saved_regs_register_unwind): Assert
12227 FRAME_INIT_SAVED_REGS_P.
12228 (deprecated_generic_get_saved_register): Ditto.
12229
3f565f1e
DJ
122302003-01-13 Daniel Jacobowitz <drow@mvista.com>
12231
12232 * source.c (openp): Squelch warning about "filename".
12233
072b1022
DJ
122342003-01-13 Daniel Jacobowitz <drow@mvista.com>
12235
12236 * source.c (openp): If the file does not exist don't necessarily
12237 search the path.
12238
973ccf8b
DJ
122392003-01-13 Daniel Jacobowitz <drow@mvista.com>
12240
12241 Fix PR gdb/872.
12242 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12243 (integer_types_same_name_p): New function.
12244 (rank_one_type): Use it.
12245 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12246
030292b7
DJ
122472003-01-13 Daniel Jacobowitz <drow@mvista.com>
12248
12249 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12250 variables.
12251 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12252 * configure.in: Add --with-sysroot.
12253 * configure: Regenerated.
12254 * main.c (gdb_sysroot): New variable.
12255 (captured_main): Initialize gdb_sysroot.
12256 * defs.h (gdb_sysroot): New extern declaration.
12257 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12258
afb5d334
MC
122592003-01-12 Michael Chastain <mec@shout.net>
12260
12261 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12262
751ceeb4
MC
122632003-01-12 Michael Chastain <mec@shout.net>
12264
12265 * top.c (print_gdb_version): Bump copyright year to 2003.
12266
94cd26f8
DC
122672003-01-12 David Carlton <carlton@bactrian.org>
12268
12269 * linespec.c (symtab_from_filename): Rename variable 's' to
12270 'file_symtab'.
12271
1ce79225
AC
122722003-01-12 Andrew Cagney <ac131313@redhat.com>
12273
12274 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12275 dummy frame.
12276 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12277
fa1fd571
AC
122782003-01-12 Andrew Cagney <ac131313@redhat.com>
12279
12280 * d10v-tdep.c: Include "gdb_assert.h".
12281 (d10v_store_return_value): Rewrite to match current interface.
12282 (d10v_extract_struct_value_address): Ditto.
12283 (d10v_extract_return_value): Ditto.
12284 (d10v_gdbarch_init): Set store_restore_value,
12285 extract_struct_value_address and extract_return_value.
12286
68b8d23e
JB
122872003-01-12 J. Brobecker <brobecker@gnat.com>
12288
12289 * hpread.c (set_namestring): New procedure replacing the
12290 SET_NAMESTRING macro.
12291 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12292 by calls to set_namestring.
12293
122942003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12295
12296 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12297 a compilation warning.
12298 (hpread_process_one_debug_symbol): Likewise.
12299
88d262ca
DC
123002003-01-10 David Carlton <carlton@math.stanford.edu>
12301
12302 * linespec.c (decode_line_1): Rename variable 's' to
12303 'file_symtab'.
12304 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12305 (decode_dollar): Ditto.
12306 (decode_variable): Ditto.
12307 (symbol_found): Ditto.
12308
86669319
MC
123092003-01-09 Michael Chastain <mec@shout.net>
12310
12311 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12312
616a9dc4
CV
123132003-01-07 Corinna Vinschen <vinschen@redhat.com>
12314
12315 * win32-nat.c (set_process_privilege): New function.
12316 (child_attach): Call set_process_privilege() to enable the
12317 SE_DEBUG_NAME user privilege if available in process token.
12318
3269bcfa
JB
123192003-01-10 J. Brobecker <brobecker@gnat.com>
12320
12321 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12322 compilation error in the previous revision.
12323
2b0ee454
DC
123242003-01-09 David Carlton <carlton@math.stanford.edu>
12325
12326 * linespec.c: Update copyright.
12327
b3ba1b44
DJ
123282003-01-09 Daniel Jacobowitz <drow@mvista.com>
12329
12330 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12331 than inferior_ptid.
12332 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12333
4ef3f3be
AC
123342003-01-09 Andrew Cagney <ac131313@redhat.com>
12335
479ab5a0
AC
12336 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12337 Update comments.
12338 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12339 (frame_saved_regs_zalloc): Update.
12340 (frame_saved_regs_register_unwind): Update.
12341 (create_new_frame): Update.
12342 (get_prev_frame): Update.
12343 (frame_extra_info_zalloc): Update.
12344 (deprecated_get_frame_saved_regs): Update.
12345 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12346 * cris-tdep.c: Update comment.
12347
bde58177
AC
12348 * somsolib.h: Fix function indentation.
12349 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12350 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12351 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12352 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12353 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12354
4ef3f3be
AC
12355 * infrun.c (follow_fork): Use ISO C definition.
12356 * expprint.c (print_subexp): Use xfree instead of free.
12357 * charset.c: Include "gdb_string.h" instead of <string.h>.
12358 (register_iconv_charsets): Use ISO C definition.
12359 (host_charset, target_charset): Ditto.
12360 * Makefile.in (charset.o): Update dependencies.
12361 (mi-cmd-env.o): Update dependencies.
12362
1c615f7a
AC
123632003-01-08 Andrew Cagney <cagney@redhat.com>
12364
12365 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12366 get_frame_base.
12367
c9a1dc08
AC
123682003-01-08 Andrew Cagney <ac131313@redhat.com>
12369
12370 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12371 build directories. Save edited gdb output in Mbuild.log. If a
12372 build fails, remove any final GDB executable.
12373
dbad9d94
AC
123742003-01-08 Andrew Cagney <ac131313@redhat.com>
12375
12376 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12377 replacing hex constants with function names and stripping leading
12378 file name directory prefixes.
12379
8d357cca
AC
123802003-01-08 Andrew Cagney <cagney@redhat.com>
12381
12382 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12383 get_frame_base.
12384
bca02a8a
DC
123852003-01-08 David Carlton <carlton@math.stanford.edu>
12386
12387 * linespec.c (decode_line_1): Move code into decode_variable.
12388 (decode_variable): New function.
12389
7f8ab3a0
AC
123902003-01-08 Andrew Cagney <ac131313@redhat.com>
12391
12392 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12393
7b5849cc
AC
123942003-01-08 Andrew Cagney <cagney@redhat.com>
12395
12396 * cris-tdep.c (cris_frame_init_saved_regs): Use
12397 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12398 saved_regs buffer.
12399 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12400 (sh64_nofp_frame_init_saved_regs): Ditto.
12401 (sh_fp_frame_init_saved_regs): Ditto.
12402 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12403 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12404 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12405 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12406
72a5efb3
DJ
124072003-01-08 Daniel Jacobowitz <drow@mvista.com>
12408
12409 * minsyms.c (lookup_minimal_symbol): Update comment.
12410 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12411 (lookup_minimal_symbol_solib_trampoline): Likewise.
12412
11c02a10
AC
124132003-01-08 Andrew Cagney <cagney@redhat.com>
12414
aab3ea25
AC
12415 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12416 frame_relative_level.
12417
da50a4b7
AC
12418 * alpha-tdep.c: Use get_frame_extra_info.
12419 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12420 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12421 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12422 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12423
11c02a10
AC
12424 * alpha-tdep.c: Use get_next_frame.
12425 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12426 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12427 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12428 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12429 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12430 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12431 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12432
1e2330ba
AC
124332003-01-07 Andrew Cagney <cagney@redhat.com>
12434
12435 * alpha-tdep.c: Use get_frame_base.
12436 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12437 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12438 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12439 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12440 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12441 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12442 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12443 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12444
2d75187b
AC
124452003-01-07 Andrew Cagney <cagney@redhat.com>
12446
12447 * frame.c (deprecated_get_frame_context): New function.
12448 (deprecated_set_frame_context): New function.
12449 * frame.h (deprecated_get_frame_context): Declare.
12450 (deprecated_set_frame_context): Declare.
12451 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12452 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12453
483d36b2
AC
124542003-01-07 Andrew Cagney <cagney@redhat.com>
12455
12456 * frame.c (deprecated_set_frame_next_hack): New function.
12457 (deprecated_set_frame_prev_hack): New function.
12458 * frame.h (deprecated_set_frame_next_hack): Declare.
12459 (deprecated_set_frame_prev_hack): Declare.
12460 * mcore-tdep.c (analyze_dummy_frame): Use
12461 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12462 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12463
14e91ac5
DC
124642003-01-07 David Carlton <carlton@math.stanford.edu>
12465
12466 * linespec.c (decode_line_1): Move code into decode_dollar.
12467 (decode_dollar): New function.
12468
b0c6b05c
AC
124692003-01-07 Andrew Cagney <cagney@redhat.com>
12470
12471 * arm-tdep.c (arm_init_extra_frame_info): Use
12472 deprecated_update_frame_base_hack.
12473 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12474 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12475 (fix_frame_pointer): Ditto.
12476 (mn10300_analyze_prologue): Ditto.
12477
a00a19e9
AC
124782003-01-07 Andrew Cagney <cagney@redhat.com>
12479
12480 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12481 extra_info using frame_extra_info_zalloc.
12482 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12483 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12484 (sh64_init_extra_frame_info): Ditto.
12485 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12486 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12487 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12488 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12489 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12490 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12491 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12492 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12493 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12494 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12495 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12496 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12497
12498 * mn10300-tdep.c (analyze_dummy_frame): Use
12499 deprecated_set_frame_extra_info_hack.
12500 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12501
1fb4c65b
JB
125022003-01-07 J. Brobecker <brobecker@gnat.com>
12503
12504 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12505 class is not scText. These do not define "real" procedures.
12506 (parse_partial_symbols): Likewise.
12507
9fe7d6bf
MS
125082003-01-06 Michael Snyder <msnyder@redhat.com>
12509
12510 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12511
f6c609c4
AC
125122003-01-06 Andrew Cagney <ac131313@redhat.com>
12513
12514 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12515 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12516 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12517 deprecated_frame_xmalloc_with_cleanup.
12518 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12519 deprecated_frame_xmalloc.
12520 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12521 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12522
d995ff4b
AC
125232003-01-06 Andrew Cagney <cagney@redhat.com>
12524
84dc46cb
AC
12525 * x86-64-linux-tdep.c: Include "osabi.h".
12526 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12527
d995ff4b
AC
12528 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12529
66140c26
AC
125302003-01-06 Andrew Cagney <cagney@redhat.com>
12531
12532 * MAINTAINERS (Target Instruction Set Architectures): Update
12533 arm-elf. Can be built with -Werror, has been multiarched.
12534
12535 * value.h (unpack_long): Make buffer parameter constant.
12536 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12537 * scm-lang.h (scm_parse): Ditto.
12538 * defs.h (extract_typed_address, extract_address): Ditto.
12539 (extract_long_unsigned_integer): Ditto.
12540 * inferior.h (unsigned_pointer_to_address): Ditto.
12541 (signed_pointer_to_address): Ditto.
12542 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12543 * gdbarch.h, gdbarch.c: Regenerate.
12544 * findvar.c (extract_long_unsigned_integer): Update.
12545 (extract_address): Update.
12546 (extract_typed_address): Update.
12547 (unsigned_pointer_to_address): Update.
12548 * values.c (unpack_long): Update.
12549 (unpack_double): Update.
12550 (unpack_pointer): Update.
12551 (unpack_field_as_long): Update.
12552 * d10v-tdep.c (d10v_pointer_to_address): Update.
12553 * avr-tdep.c (avr_pointer_to_address): Update.
12554 * scm-lang.c (scm_unpack): Update.
12555 * findvar.c (signed_pointer_to_address): Update.
12556
b089b3da
ML
125572003-01-06 Michal Ludvig <mludvig@suse.cz>
12558
8ffd9b1b 12559 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
12560 since it is in i386-tdep.c.
12561
aff87235
JB
125622003-01-06 J. Brobecker <brobecker@gnat.com>
12563
12564 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12565 failure introduced in the previous change.
12566
34f5e845
MC
125672003-01-05 Michael Chastain <mec@shout.net>
12568
12569 * README: Remove references to deleted remote-*.c files:
12570 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12571 remote-nrom.c, remote-os9k.c, remote-udi.c.
12572
28bcfd30
MK
125732003-01-05 Mark Kettenis <kettenis@gnu.org>
12574
12575 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12576 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12577 i386_get_longjmp_target.
12578
15a5b3ee
AC
125792003-01-05 Andrew Cagney <ac131313@redhat.com>
12580
12581 * arm-tdep.c (prologue_cache): Change to a pointer.
12582 (_initialize_arm_tdep): Allocate prologue_cache.
12583 (check_prologue_cache): Update.
12584 (save_prologue_cache): Update.
12585 (arm_gdbarch_init): Update.
12586
c263362b
DJ
125872003-01-04 Daniel Jacobowitz <drow@mvista.com>
12588
12589 * stabsread.c (update_method_name_from_physname): Call complaint()
12590 instead of error.
12591
51603483
DJ
125922003-01-04 Daniel Jacobowitz <drow@mvista.com>
12593
12594 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12595 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12596 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12597
12598 * blockframe.c: Include "gdbcmd.h" and "command.h".
12599 (backtrace_below_main): New variable.
12600 (file_frame_chain_valid, func_frame_chain_valid)
12601 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12602 (generic_func_frame_chain_valid): Remove functions.
12603 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12604 (_initialize_blockframe): New function.
12605 * Makefile.in (blockframe.o): Update dependencies.
12606 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12607 comment. Call frame_chain_valid ().
12608 * frame.h: Remove old prototypes. Add prototype for
12609 frame_chain_valid and update comments to match.
12610 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12611 Remove old comment.
12612 * gdbarch.h: Regenerated.
12613 * gdbarch.c: Regenerated.
12614
12615 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12616 set_gdbarch_frame_chain_valid.
12617 * avr-tdep.c (avr_gdbarch_init): Likewise.
12618 * cris-tdep.c (cris_gdbarch_init): Likewise.
12619 * frv-tdep.c (frv_gdbarch_init): Likewise.
12620 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12621 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12622 (i386_nw_init_abi): Likewise.
12623 (i386_gdbarch_init): Likewise.
12624 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12625 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12626 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12627 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12628 * mips-tdep.c (mips_gdbarch_init): Likewise.
12629 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12630 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12631 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12632 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12633 * s390-tdep.c (s390_gdbarch_init): Likewise.
12634 * sh-tdep.c (sh_gdbarch_init): Likewise.
12635 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12636 * v850-tdep.c (v850_gdbarch_init): Likewise.
12637 * vax-tdep.c (vax_gdbarch_init): Likewise.
12638 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12639
12640 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12641 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12642 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12643 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12644 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12645 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12646 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12647 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12648
b00a8037
DJ
126492002-01-04 Daniel Jacobowitz <drow@mvista.com>
12650
12651 * Makefile.in (acconfig_h): Remove incorrect macro.
12652 (config_h): Define.
12653 (osabi.o): Update dependencies.
12654 * configure.tgt: Set gdb_osabi based on target triplet.
12655 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12656 * configure: Regenerated.
12657 * config.in: Regenerated.
12658 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12659 (GDB_OSABI_DEFAULT): Define if not already defined.
12660 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12661 (set_osabi_string): New variables.
12662 (gdbarch_register_osabi): Add new OS ABI to
12663 gdb_osabi_available_names.
12664 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12665 (set_osabi, show_osabi): New functions.
12666 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12667
4be87837
DJ
126682003-01-04 Daniel Jacobowitz <drow@mvista.com>
12669
12670 * arch-utils.c (gdbarch_info_init): Set osabi to
12671 GDB_OSABI_UNINITIALIZED.
12672 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12673 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12674 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12675 * gdbarch.c: Regenerated.
12676 * gdbarch.h: Regenerated.
12677 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12678 there's no BFD.
12679 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12680 * osabi.h (enum gdb_osabi): Move to defs.h.
12681 (gdbarch_init_osabi): Update prototype.
12682 * defs.h (enum gdb_osabi): Moved here.
12683 * Makefile.in: Update dependencies.
12684
12685 * alpha-tdep.h: Don't include "osabi.h".
12686 (struct gdbarch_tdep): Remove osabi member.
12687 * alpha-tdep.c: Include "osabi.h".
12688 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12689 iterate over arches. Update call to gdbarch_init_osabi.
12690 (alpha_dump_tdep): Don't dump osabi.
12691 * alpha-linux-tdep.c: Include "osabi.h".
12692 * alpha-osf1-tdep.c: Include "osabi.h".
12693 * alphafbsd-tdep.c: Include "osabi.h".
12694 * alphanbsd-tdep.c: Include "osabi.h".
12695
12696 * arm-tdep.h: Don't include "osabi.h".
12697 (struct gdbarch_tdep): Remove osabi member.
12698 * arm-tdep.c: Include "osabi.h".
12699 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12700 iterate over arches. Update call to gdbarch_init_osabi.
12701 (arm_dump_tdep): Don't dump osabi.
12702 * arm-linux-tdep.c: Include "osabi.h".
12703 * armnbsd-tdep.c: Include "osabi.h".
12704
12705 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12706 Update call to gdbarch_init_osabi.
12707
12708 * i386-tdep.h: Don't include "osabi.h".
12709 (struct gdbarch_tdep): Remove osabi member.
12710 * i386-tdep.c: Include "osabi.h".
12711 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12712 iterate over arches. Update call to gdbarch_init_osabi.
12713 (i386_dump_tdep): Don't dump osabi.
12714 * i386-linux-tdep.c: Include "osabi.h".
12715 * i386-sol2-tdep.c: Include "osabi.h".
12716 * i386bsd-tdep.c: Include "osabi.h".
12717 * i386gnu-tdep.c: Include "osabi.h".
12718 * i386ly-tdep.c: Include "osabi.h".
12719 * i386nbsd-tdep.c: Include "osabi.h".
12720 * i386obsd-tdep.c: Include "osabi.h".
12721
12722 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12723 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12724 check osabi when iterating over arches. Update call to
12725 gdbarch_init_osabi.
12726 (mips_dump_tdep): Don't dump osabi.
12727
12728 * ns32k-tdep.h: Don't include "osabi.h".
12729 (struct gdbarch_tdep): Remove.
12730 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12731 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12732 allocate tdep. Update call to gdbarch_init_osabi.
12733 (ns32k_dump_tdep): Remove.
12734 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12735 * ns32knbsd-tdep.c: Include "osabi.h".
12736
12737 * ppc-tdep.h: Don't include "osabi.h".
12738 (struct gdbarch_tdep): Remove osabi member.
12739 * rs6000-tdep.c: Include "osabi.h".
12740 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12741 osabi when iterating over arches. Update call to
12742 gdbarch_init_osabi.
12743 (rs6000_dump_tdep): Don't dump osabi.
12744 * ppc-linux-tdep.c: Include "osabi.h".
12745 * ppcnbsd-tdep.c: Include "osabi.h".
12746
12747 * sh-tdep.h: Don't include "osabi.h".
12748 (struct gdbarch_tdep): Remove osabi member.
12749 * sh-tdep.c: Include "osabi.h".
12750 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12751 iterate over arches. Update call to gdbarch_init_osabi.
12752 (sh_dump_tdep): Don't dump osabi.
12753 * shnbsd-tdep.c: Include "osabi.h".
12754
12755 * sparc-tdep.c: Include "osabi.h".
12756 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12757 iterate over arches. Update call to gdbarch_init_osabi.
12758 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12759 tdep structure.
12760
12761 * vax-tdep.h: Don't include "osabi.h".
12762 (struct gdbarch_tdep): Remove.
12763 * vax-tdep.c: Include "osabi.h".
12764 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12765 iterate over arches. Don't allocate tdep. Update call
12766 to gdbarch_init_osabi.
12767 (vax_dump_tdep): Remove.
12768 (_initialize_vax_tdep): Update call to gdbarch_register.
12769
a881cf8e
DJ
127702003-01-04 Daniel Jacobowitz <drow@mvista.com>
12771
12772 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12773 entirely.
12774 (breakpoint_re_set_one): Don't fetch the value for a disabled
12775 watchpoint.
12776
1e698235
DJ
127772003-01-04 Daniel Jacobowitz <drow@mvista.com>
12778
12779 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12780 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12781 (COERCE_FLOAT_TO_DOUBLE): Remove.
12782 * gdbarch.c: Regenerate.
12783 * gdbarch.h: Regenerate.
12784 * Makefile.in: Remove value_h from gdbarch_h.
12785 * valops.c (coerce_float_to_double): New variable.
12786 (default_coerce_float_to_double): Remove.
12787 (standard_coerce_float_to_double): Remove.
12788 (value_arg_coerce): Use coerce_float_to_double.
12789 (_initialize_valops): Add "set coerce-float-to-double".
12790 * value.h (default_coerce_float_to_double): Remove prototype.
12791 (standard_coerce_float_to_double): Remove prototype.
12792
12793 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12794 prototyped.
12795 * mdebugread.c (parse_symbol): Likewise.
12796 * stabsread.c (define_symbol): Mark all functions as prototyped.
12797
12798 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12799 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12800 set_gdbarch_coerce_float_to_double.
12801 * arm-tdep.c (arm_gdbarch_init): Likewise.
12802 * frv-tdep.c (frv_gdbarch_init): Likewise.
12803 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12804 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12805 * mips-tdep.c (mips_gdbarch_init): Likewise.
12806 (mips_coerce_float_to_double): Remove.
12807 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12808 (rs6000_coerce_float_to_double): Remove.
12809 * s390-tdep.c (s390_gdbarch_init): Likewise.
12810 * sh-tdep.c (sh_gdbarch_init): Likewise.
12811 (sh_coerce_float_to_double): Remove.
12812 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12813 (sparc_coerce_float_to_double): Remove.
12814 * v850-tdep.c (v850_gdbarch_init): Likewise.
12815 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12816 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12817 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12818 (hppa_coerce_float_to_double): Remove prototype.
12819 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12820
f436a26a
DJ
128212003-01-04 Daniel Jacobowitz <drow@mvista.com>
12822
12823 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12824
248f8055
DJ
128252003-01-04 Daniel Jacobowitz <drow@mvista.com>
12826
12827 Suggested by Stewart Brown <sb24@avaya.com>:
12828 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12829 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12830 (c_type_print_varspec_suffix): Likewise.
12831
72cfdc76
MK
128322003-01-04 Mark Kettenis <kettenis@gnu.org>
12833
bfd260bb
MK
12834 * configure.in: Don't set and AC_SUBST SUBDIRS.
12835 * configure: Regenerated.
12836
72cfdc76
MK
12837 * configure.in: Remove code dealing with shared libraries.
12838 * Makefile.in: Remove HLDFLAGS and HLDENV.
12839 * configure: Regenerated.
12840
c8b8a898
AC
128412003-01-04 Andrew Cagney <ac131313@redhat.com>
12842
12843 * frame.c (deprecated_frame_xmalloc): New function.
12844 (deprecated_set_frame_saved_regs_hack): New function.
12845 (deprecated_set_frame_extra_info_hack): New function.
12846 * frame.h (deprecated_frame_xmalloc): Declare.
12847 (deprecated_set_frame_saved_regs_hack): Declare.
12848 (deprecated_set_frame_extra_info_hack): Declare.
12849
14abd0fb
MK
128502003-01-04 Mark Kettenis <kettenis@gnu.org>
12851
8ee53726
MK
12852 * configure.in: Move code that provides the --enable-gdbtk option
12853 right after the code that handles the --enable-tui option, and
12854 polish it somewhat.
12855 * configure: Regenerated.
12856
14abd0fb
MK
12857 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12858 AC_CHECK_FUNCS and remove the old check for pread64.
12859 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12860 * acconfig.h (_GNU_SOURCE): Add.
12861 (HAVE_PREAD64): Remove.
12862 * configure, aclocal.m4, config.in: Regenerated.
12863
b2fb4676
AC
128642003-01-03 Andrew Cagney <ac131313@redhat.com>
12865
12866 * alpha-tdep.c: Use get_frame_saved_regs.
12867 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12868 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12869 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12870 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12871 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12872
8dcde887
MK
128732003-01-03 Mark Kettenis <kettenis@gnu.org>
12874
12875 * configure.in: Remove all use of the SUBDIRS variable; add
12876 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12877 code providing the --enable-multi-ice option, and move it right in
12878 front of the code that checks whether gdbserver is supported.
12879 Polish that too.
12880 * configure: Regenerated.
12881 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12882 @SUBDIRS@.
12883
8ccd593b
AC
128842003-01-03 Andrew Cagney <cagney@redhat.com>
12885
12886 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12887 * avr-tdep.c, cris-tdep.c: Ditto.
12888 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12889 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12890
91151a06
MK
128912003-01-03 Mark Kettenis <kettenis@gnu.org>
12892
12893 * configure.in: Remove --enable-netrom option.
12894 * configure: Regenerated.
12895
8fe84d01
MK
128962003-01-03 Mark Kettenis <kettenis@gnu.org>
12897
12898 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12899 declaration for `struct re_pattern_buffer' instead.
12900 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12901
f0394be6
JB
129022003-01-03 J. Brobecker <brobecker@gnat.com>
12903
12904 * mdebugread.c (parse_symbol): Count until the stEnd matching
12905 the structure name.
12906
27e9bf90
MK
129072003-01-02 Mark Kettenis <kettenis@gnu.org>
12908
93d331ba
MK
12909 * configure.in: Remove --with-cpu option.
12910 subscripts. Remove evil changequotes here.
12911 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12912 * config.in, configure: Regenerated.
8ffd9b1b 12913
27e9bf90
MK
12914 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12915 * configure.in: Cleanup section that sources GDB and BFD configure
12916 subscripts. Remove evil changequotes here.
12917 * config.in, configure: Regenerated.
12918
50abf9e5
AC
129192003-01-02 Andrew Cagney <ac131313@redhat.com>
12920
12921 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12922 frame accessor methods.
12923 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12924 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12925 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12926 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12927 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12928 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12929 * z8k-tdep.c: Ditto.
8ffd9b1b 12930
287c1a40
MK
129312003-01-02 Mark Kettenis <kettenis@gnu.org>
12932
f5dbc56d
MK
12933 * configure.in: Remove UI_OUT configuration code.
12934 * ada-lang.c: Update assuming UI_OUT is always true.
12935 * Makefile.in (UIOUT_CFLAGS): Remove.
12936 * configure: Regenerated.
12937 * TODO: Remove blurb about elimination of -DUI_OUT.
12938
627af7ea
MK
12939 * configure.in: Move code that provides the --enable-gdbcli,
12940 --enable-gdbmi options right before the code that handles the
12941 --enable-tui option. Polish a bit.
12942 * configure: Regenerated.
12943
06825bd1
MK
12944 * configure.in: Rewrite check for GNU regex and the
12945 --without-included regex option, and move it into the "Checks for
12946 library functions" section. This makes us use the system regex
12947 again by default on systems with version 2 of the GNU C library.
12948 This was apparently broken.
12949 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12950 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12951 * config.in, configure: Regenerated.
12952
287c1a40
MK
12953 * configure.in: Move code that provides the --enable-tui option
12954 before the "Checks for libraries" section. Polish the code
12955 somewhat and set need_curses to yes if we build the TUI. Rewrite
12956 code that looks for a library providing termcap functionality to
12957 match more closely what's done in the Readline library, and move
12958 it into to the "Checks for libraries" section.
12959 * configure: Regenerated.
12960 * Makefile.in (TERMCAP): Remove variable.
12961 * config/i386/go32.mh (TERMCAP): Remove variable.
12962
684e56bf
AC
129632003-01-02 Andrew Cagney <ac131313@redhat.com>
12964
12965 * MAINTAINERS: Mention gdb_mbuild.sh.
12966 * gdb_mbuild.sh: Rewrite.
12967
e1ea1d75
MK
129682003-01-02 Mark Kettenis <kettenis@gnu.org>
12969
12970 * configure.in: Fix typo in last change.
12971 * config.in, configure: Regenerated.
12972
1b831c93
AC
129732003-01-02 Andrew Cagney <ac131313@redhat.com>
12974
12975 * valarith.c (value_binop): Delete obsolete code and comments.
12976 * configure.host: Ditto.
12977 * buildsym.h (make_blockvector): Ditto.
12978 * buildsym.c (make_blockvector): Ditto.
12979 * defs.h (enum language): Ditto.
12980 (chill_demangle): Ditto.
12981 * elfread.c (elf_symtab_read): Ditto.
12982 * dwarfread.c (CHILL_PRODUCER): Ditto.
12983 (set_cu_language): Ditto.
12984 (handle_producer): Ditto.
12985 * expprint.c (print_subexp): Ditto.
12986 * gdbtypes.c (chill_varying_type): Ditto.
12987 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12988 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12989 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12990 (chill_varying_type): Ditto.
12991 * language.h (_LANG_chill): Ditto.
12992 * language.c (binop_result_type, integral_type): Ditto.
12993 (character_type, string_type, structured_type): Ditto.
12994 (lang_bool_type, binop_type_check): Ditto.
12995 * stabsread.h (os9k_stabs): Ditto.
12996 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12997 (define_symbol, read_type, read_struct_fields): Ditto.
12998 (read_array_type, read_enum_type, read_huge_number): Ditto.
12999 (read_range_type, start_stabs): Ditto.
13000 * symfile.c (init_filename_language_table): Ditto.
13001 (add_psymbol_with_dem_name_to_list): Ditto.
13002 * symtab.c (symbol_init_language_specific): Ditto.
13003 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13004 * symtab.h (struct general_symbol_info): Ditto.
13005 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13006 * typeprint.c (typedef_print): Ditto.
13007 * utils.c (fprintf_symbol_filtered): Ditto.
13008 * valops.c (value_cast, search_struct_field, value_slice): Delete
13009 obsolete code.
13010 (varying_to_slice): Delete function.
13011 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13012 (varying_to_slice): Delete declaration.
13013 * MAINTAINERS: Update.
13014
8bb2c122
MK
130152003-01-02 Mark Kettenis <kettenis@gnu.org>
13016
97bf5e38
MK
13017 * configure.in: Reorganize "Checks for library functions section"
13018 a bit. Remove check for `btowc' and `isascii' functions.
13019 * configure: Regenerated.
13020
5ee754fc
MK
13021 * acconfig.h (_MSE_INT_H): Remove.
13022 * configure.in: Create "Checks for header files" section, and move
13023 appropriate tests there. Don't check for objlist.h, wchar.h,
13024 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13025 misdetection fix. Also add "Checks for types", "Checks for
13026 compiler characteristics" and "Checks for library functions"
13027 sections.
13028 * config.in, configure: Regenerated.
13029
8bb2c122
MK
13030 * configure.in: Create "Checks for programs" section, and move
13031 appropriate tests there.
13032
9a156167
MK
130332003-01-01 Mark Kettenis <kettenis@gnu.org>
13034
13035 * configure.in: Create "Checks for libraries" section, and move
13036 appropriate tests there. Cleanup check for wctype in libw. Use
13037 AC_SEARCH_LIBS to see whether we need libsocket.
13038 * configure: Regenerated.
13039
a80e2bcb 13040For older changes see ChangeLog-2002
c906108c
SS
13041\f
13042Local Variables:
13043mode: change-log
13044left-margin: 8
13045fill-column: 74
13046version-control: never
13047End:
This page took 1.111924 seconds and 4 git commands to generate.