2003-10-10 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e754ae69
AC
12003-10-10 Andrew Cagney <cagney@redhat.com>
2
3 * rs6000-tdep.c (e500_store_return_value): Delete function.
4 (e500_extract_return_value): Delete function.
5 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
6 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
7 "ppc_sysv_abi_restore_return_value" where applicable.
8 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
9 (ppc_sysv_abi_extract_return_value): Declare.
10 (ppc_sysv_abi_broken_store_return_value): Declare.
11 (ppc_sysv_abi_broken_extract_return_value): Declare.
12 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
13 * ppc-sysv-tdep.c (return_value_convention): Move definition to
14 start of file.
15 (do_ppc_sysv_return_value): New function.
16 (ppc_sysv_abi_extract_return_value): New function.
17 (ppc_sysv_abi_store_return_value): New function.
18 (ppc_sysv_abi_broken_extract_return_value): New function.
19 (ppc_sysv_abi_broken_store_return_value): New function.
20 (ppc_sysv_abi_use_struct_convention): Call
21 do_ppc_sysv_return_value.
22
8d4ce20a
JB
232003-10-10 J. Brobecker <brobecker@gnat.com>
24
25 * blockframe.c (inside_main_func): No longer use symbol_lookup()
26 to lookup the main function symbol.
27
afce3d2a
CV
282003-10-10 Corinna Vinschen <vinschen@redhat.com>
29
30 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
31 types correctly.
32 (sh_push_dummy_call_fpu): Fix argument passing rules.
33 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
34 float types.
35 (sh3e_sh4_store_return_value): Ditto.
36
7fe958be
EZ
372003-10-10 Elena Zannoni <ezannoni@redhat.com>
38
39 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
40 comment.
41
3f997a97
CV
422003-10-10 Corinna Vinschen <vinschen@redhat.com>
43
44 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
45 more readable code. Accomodate passing of bitfields.
46
8be9034a
AC
472003-10-10 Andrew Cagney <cagney@redhat.com>
48
49 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
50 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
51 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
52 * ppc-sysv-tdep.c: Include "gdb_assert.h".
53 (ppc64_sysv_abi_push_dummy_call): New function.
54 (ppc64_sysv_abi_broken_push_dummy_call): New function.
55 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
56 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
57
85a453d5
KI
582003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
59
60 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
61 * README: Ditto.
62 * d10v-tdep.c: Ditto.
63 * h8300-tdep.c: Ditto.
64 * remote-e7000.c: Ditto.
65 * remote-hms.c: Ditto.
66 * ser-e7kpc.c: Ditto.
67 * sh-stub.c: Ditto.
68 * sh-tdep.c: Ditto.
69 * sh-tdep.h: Ditto.
70 * sh3-rom.c: Ditto.
71 * sh64-tdep.c: Ditto.
72 * top.c: Ditto.
73 * wince.c: Ditto.
74 * config/d10v/d10v.mt: Ditto.
75 * config/sh/embed.mt: Ditto.
76 * config/sh/linux.mt: Ditto.
77 * config/sh/tm-linux.h: Ditto.
78 * config/sh/tm-sh.h: Ditto.
79 * config/sh/wince.mt: Ditto.
80
221c12ff
AC
812003-10-09 Andrew Cagney <cagney@redhat.com>
82
83 * ppc-tdep.h (struct type): Declare opaque.
84 * x86-64-tdep.h (struct regcache): Declare opaque.
85 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
86 coding style.
87
ef5200c1
AC
882003-10-09 Andrew Cagney <cagney@redhat.com>
89
90 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
91 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
92 (SOFTWARE_SINGLE_STEP_P): Ditto.
93 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
94 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
95 (SOFTWARE_SINGLE_STEP_P): Ditto.
96 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
97 software_single_step to rs6000_software_single_step.
98
9644bbdd
AC
992003-10-09 Andrew Cagney <cagney@redhat.com>
100
101 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
102
db72fa6b
MS
1032003-10-09 Michael Snyder <msnyder@redhat.com>
104
f3efb16c
MS
105 * frame.h: Fix typo in comment.
106 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
107 * d10v-tdep.c: Random whitespace/comment tweaks.
108
9a5cef92
EZ
1092003-10-09 Elena Zannoni <ezannoni@redhat.com>
110
111 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 112 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92
EZ
113 on stack.
114
115 Based on input by Stephen Clarke (stephen.clarke@superh.com):
116 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
117 in detail.
118
0f317a0c
DJ
1192003-10-09 Daniel Jacobowitz <drow@mvista.com>
120
121 * remote-mips.c (mips_initialize): Remove unneeded call to
122 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
123
bbab2f46
DJ
1242003-10-09 Daniel Jacobowitz <drow@mvista.com>
125
126 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
127 a memory pointer.
128
550950b8
JJ
1292003-10-08 Jeff Johnston <jjohnstn@redhat.com>
130
131 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
132 for any lwp we resume.
133 (running_callback): Add lwps that have pending status events
134 against them to be considered running.
135
15c69bc7
KI
1362003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
137
138 * m32r-tdep.c : Include "dis-asm.h".
139 * Makefile.in (m32r-tdep.o): Update dependencies.
140
51065942
JB
1412003-10-06 J. Brobecker <brobecker@gnat.com>
142
143 * completer.h (get_gdb_completer_word_break_characters): Delete.
144 * completer.c: include language.h.
145 (gdb_completer_word_break_characters): Delete.
146 (get_gdb_completer_word_break_characters): Delete.
147 (location_completer): Use the word break characters of the current
148 language.
149 (complete_line): Likewise.
150 (line_completion_function): Likewise.
151 (skip_quoted_chars): Likewise.
152 * Makefile.in (completer.o): Add dependency on language.h.
153 * top.c (init_main): Set the readline word break characters
154 to GDB's default word break characters.
155
6084f43a
JB
1562003-10-06 J. Brobecker <brobecker@gnat.com>
157
158 * language.h (language_defn): new field, la_word_break_characters.
159 * language.c (unknown_language_defn): Set new field to
160 default_word_break_characters.
161 (auto_language_defn): Likewise.
162 (local_language_defn): Likewise.
163 * ada-lang.c (ada_language_defn): Likewise.
164 * c-lang.c (c_language_defn): Likewise.
165 (cplus_language_defn): Likewise.
166 (asm_language_defn): Likewise.
167 (minimal_language_defn): Likewise.
168 * f-lang.c (f_language_defn): Likewise.
169 * jv-lang.c (java_language_defn): Likewise.
170 * m2-lang.c (m2_language_defn): Likewise.
171 * objc-lang.c (objc_language_defn): Likewise.
172 * p-lang.c (pascal_language_defn): Likewise.
173 * scm-lang.c (scm_language_defn): Likewise.
174
944fcfab
AC
1752003-10-06 Andrew Cagney <cagney@redhat.com>
176
177 * ppc-sysv-tdep.c: Re-indent.
178
9f0a5303
JB
1792003-10-06 J. Brobecker <brobecker@gnat.com>
180
181 * language.h (default_word_break_characters): Add prototype.
182 * language.c (default_word_break_characters): New function.
183
7270b6ed
AS
1842003-10-06 Andreas Schwab <schwab@suse.de>
185
186 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
187 with %eax.
188
a5d61f66
AC
1892003-10-06 Andrew Cagney <cagney@redhat.com>
190
191 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
192 "h8500-tdep.c".
193 (z8k-tdep.o): Delete custom build rule.
194
28a86f5c
AC
1952003-10-06 Andrew Cagney <cagney@redhat.com>
196
1bfd8a83
AC
197 * Makefile.in: Update all dependencies.
198
17144ef8
AC
199 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
200 No longer list PA as as obsolete candidate. List m32r as
201 broken instead of obsolete.
202
a5679ae5
AC
203 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
204 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
205 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
206 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
207 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
208 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
209 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
210 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
211 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
212 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
213 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
214 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
215 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
216 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
217 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
218 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
219 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
220 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
221 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
222 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
223 * config/z8k/z8k.mt: Ditto.
224
4a8269c0
AC
225 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
226 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
227 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
228 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
229 sparclite were removed.
230 * configure.host, configure.tgt: Remove corresponding tuples.
231
41989fcd
AC
232 * breakpoint.c, breakpoint.h: Remove obsolete code.
233 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
234 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
235 * stabsread.h, xcoffread.c: Ditto.
236
28a86f5c
AC
237 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
238 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
239 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
240 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
241
4efdaa0d
DL
2422003-10-06 David Lecomber <dsl@sources.redhat.com>
243
244 * f-valprint.c: Reformatting
245
ae53de43
MK
2462003-10-06 Mark Kettenis <kettenis@gnu.org>
247
a8bb57e7
MK
248 * x86-64-tdep.c: Remove duplicate comment.
249
ae53de43
MK
250 * x86-64-tdep.c (x86_64_store_return_value): Don't use
251 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
252 names for return values. This fixes a bug since we looked at %rbx
253 instead of %rdx.
254
473f17b0
MK
2552003-10-05 Mark Kettenis <kettenis@gnu.org>
256
2c261fae
MK
257 * x86-64-tdep.c: Include "regset.h".
258
473f17b0
MK
259 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
260 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
261 sizeof_fpregset.
262 * i386-tdep.c: Include "regset.h".
263 (i386_supply_gregset): New function.
264 (i386_supply_fpregset): New function.
265 (i386_gdbarch_init): Initialze register set-related members of
266 TDEP.
267 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
268 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
269
afd48b75
AC
2702003-10-03 Andrew Cagney <cagney@redhat.com>
271
272 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
273 set extract_return_value, store_return_value and
274 use_struct_convention to ppc64_sysv_abi_extract_return_value,
275 ppc64_sysv_abi_store_return_value and
276 ppc64_sysv_abi_use_struct_convention.
277 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
278 (ppc64_sysv_abi_store_return_value): Declare.
279 (ppc64_sysv_abi_use_struct_convention): Declare.
280 * ppc-sysv-tdep.c (enum return_value_convention): Define.
281 (ppc64_sysv_abi_extract_return_value): New function.
282 (ppc64_sysv_abi_store_return_value): New function.
283 (ppc64_sysv_abi_use_struct_convention): New function.
284 (ppc64_sysv_abi_return_value): New function.
285
9b540880
AC
2862003-10-03 Andrew Cagney <cagney@redhat.com>
287
288 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
289 convert a descriptor to a function when it's in the ".opd"
290 section.
291
8748518b
CV
2922003-10-03 Corinna Vinschen <vinschen@redhat.com>
293
294 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
295 reg_size to keep GCC silent.
296
0fd85043
CV
2972003-10-03 Corinna Vinschen <vinschen@redhat.com>
298
299 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
300 base for DW_EH_PE_textrel encodings.
301 (read_encoded_value): Add a DW_EH_PE_textrel case.
302 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
303 section.
304
37b517aa
MK
3052003-10-03 Mark Kettenis <kettenis@gnu.org>
306
307 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
308
12c266ea
AC
3092003-10-02 Andrew Cagney <cagney@redhat.com>
310
311 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
312 REGISTER_RAW_SIZE.
313 * gdbarch.h, gdbarch.c: Re-generate.
314 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
315 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
316 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
317 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
318 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
319 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
320 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
321 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
322 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
323 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
324 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
325 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
326 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
327 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
328 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
329 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
330
78ba4af6
JB
3312003-10-02 Jim Blandy <jimb@redhat.com>
332
333 * dwarf2read.c (struct die_info): Doc fix.
334
617daa0e
CV
3352003-10-02 Corinna Vinschen <vinschen@redhat.com>
336
337 * sh-tdep.c: Running thru gdb_indent.sh.
338
e5e33cd9
CV
3392003-10-02 Corinna Vinschen <vinschen@redhat.com>
340
341 * sh-tdep.c (sh_justify_value_in_reg): New function.
342 (sh_stack_allocsize): Ditto.
343 (flt_argreg_array): New array used for floating point argument
344 passing.
345 (sh_init_flt_argreg): New function.
346 (sh_next_flt_argreg): Ditto.
347 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
348 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
349 Fix argument passing strategy.
350 (sh_push_dummy_call_nofpu): Ditto.
351
5fe830e4
AC
3522003-10-01 Andrew Cagney <cagney@redhat.com>
353
354 * value.h (register_value_being_returned): Declare. Replace
355 "value_being_returned".
356 * infcall.c (call_function_by_hand): Use
357 register_value_being_returned.
358 * infcmd.c (print_return_value): Call
359 "register_value_being_returned", handle struct return locally.
360 * values.c (register_value_being_returned): New function. Replace
361 "value_being_returned".
362
3632003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
364
365 * linux-proc.c (linux_do_registers): New function.
366 (linux_make_note_section): Use linux_do_registers in case of
367 single threaded inferior programs.
368
64f395bf
AC
3692003-10-01 Andrew Cagney <cagney@redhat.com>
370
371 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
372 use STRUCT_ADDR. When not using "struct return convention", pass
373 "0" to "value_being_returned". Add FIXMEs.
374 * infcmd.c (print_return_value): Pass an explicit 0/1 to
375 value_being_returned. Add comments.
376 * values.c (value_being_returned): Add fixme.
377 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
378 (hppa_value_returned_from_stack): Add FIXME.
379
639d11d3
DC
3802003-09-30 David Carlton <carlton@kealia.com>
381
382 * dwarf2read.c (struct die_info): Add 'parent' field; replace
383 'has_children' and 'next' by 'child' and 'sibling'.
384 (read_comp_unit): Rework algorithm, breaking body into
385 read_die_and_children and read_die_and_siblings.
386 (read_die_and_children, read_die_and_siblings): New.
387 (read_full_die): Add 'has_children' argument; set it instead of
388 the die's 'has_children' field. Minor formatting cleanup.
389 (free_die_list): Use die->child and die->sibling instead of
390 die->next.
391 (dump_die_list): Ditto.
392 (sibling_die): Use die->sibling.
393 (psymtab_to_symtab_1): Use die's 'child' field in place of its
394 'has_children' and 'next' fields.
395 (process_die, read_file_scope, read_func_scope)
396 (read_lexical_block_scope, read_structure_scope)
397 (read_enumeration, read_array_type, read_common_block)
398 (read_namespace, read_subroutine_type, dump_die): Ditto.
399
5bffac25
AC
4002003-09-30 Andrew Cagney <cagney@redhat.com>
401
402 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
403 to 224, not 220.
404
f30992d4
AC
4052003-09-30 Andrew Cagney <cagney@redhat.com>
406
407 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
408 REGISTER_VIRTUAL_SIZE.
409 * gdbarch.h, gdbarch.c: Regenerate.
410 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
411 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
412 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
413
2e092625
AC
4142003-09-29 Andrew Cagney <cagney@redhat.com>
415
416 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
417 DEPRECATED_REGISTER_VIRTUAL_TYPE.
418 * gdbarch.h, gdbarch.c: Regenerate.
419 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
420 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
421
422 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
423 * remote-vxmips.c (vx_read_register): Ditto.
424 * remote-vx68.c (vx_read_register): Ditto.
425 * gnu-nat.c (inf_validate_procs): Ditto.
426
7a5dd6ee
JB
4272003-09-29 J. Brobecker <brobecker@gnat.com>
428
429 * infcall.c (call_function_by_hand): Fix build failure
430 introduced in the previous change to this file.
431
1fe43d45
AC
4322003-09-29 Andrew Cagney <cagney@redhat.com>
433
434 * NEWS: Mention Objective-C.
435
e28a332c
JG
4362003-09-29 Jerome Guitton <guitton@act-europe.fr>
437
438 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
439 test if the register has been saved on the stack.
440 (arm_scan_prologue_cache): When analysing the instruction
441 "str lr, [sp, #-4]", save the address where lr has been stored.
442
9ff63c35
AC
4432003-09-28 Andrew Cagney <cagney@redhat.com>
444
7f5f525d
AC
445 * frame.c (frame_read_unsigned_register): Delete function.
446 * frame.h (frame_read_unsigned_register): Delete declaration.
447 * sparc-tdep.c (sparc_init_extra_frame_info): Use
448 get_frame_register_unsigned.
449 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
450 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
451 * d10v-tdep.c (d10v_print_registers_info): Ditto.
452
453 * frame.h (frame_read_register): Delete declaration.
454 * frame.c (frame_read_register): Delete function.
455 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
456 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
457 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
458 * mips-tdep.c (mips_register_to_value): Ditto.
459 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
460 * d10v-tdep.c (d10v_print_registers_info): Ditto.
461
462 * frame.c (frame_read_signed_register): Delete function.
463 (frame_read_unsigned_register): Update comments.
464 * frame.h (frame_read_signed_register): Delete declaration.
465 * h8300-tdep.c (h8300_print_register): Use
466 get_frame_register_signed.
467 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
468
9ff63c35
AC
469 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
470 Rename VALUE_RETURNED_FROM_STACK.
471 * infcmd.c (print_return_value): Update.
472 * infcall.c (call_function_by_hand): Update.
473
41d041d6
MK
4742003-09-28 Mark Kettenis <kettenis@gnu.org>
475
476 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
477 regcache argument and reverse the order of the other two
478 arguments. Remove local regcache variable. Determine
479 architecture from REGCACHE. Update comments.
480 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
481 reverse the order of the other two arguments. Remove local
482 regcache variable. Determine architecture from REGCACHE. Update
483 comments.
484 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
485 prototypes. Update comments.
486 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
487 comment.
488 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
489 Update.
490 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
491 * i386-interix-nat.c (supply_fpregset): Update.
492 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
493 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
494 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
495 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
496 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
497 Update.
498 * i386obsd-tdep.c (fetch_core_registers): Update.
499 * i386v4-nat.c (supply_fpregset): Update.
500 * x86-64-linux-nat.c (supply_fpregset): Update.
501 * x86-64-linux-tdep.c (fetch_core_registers): Update.
502
1cb97e17
MK
5032003-09-27 Mark Kettenis <kettenis@gnu.org>
504
5716833c
MK
505 * i386-tdep.h: Put opaque declarations in alphabetical
506 order. Remove spurious whitespace.
507 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
508 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
509 * i386-tdep.c (MM0_REGNUM): Remove define.
510 (i386_mmx_regnum_p): Add gdbarch argument.
511 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
512 Rewrite using new macro definitions for FPU/SSE registers.
513 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
514 definitions from i387-tdep.h.
515 (i386_register_name): Update.
516 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
517 new macro definitions for FPU/SSE registers.
518 (i386_extract_return_value): Determine whether floating-point
519 registers are present by examining REGCACHE's architecture.
520 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
521 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
522 FPU/SSE registers.
523 (i386_register_type): Update.
524 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
525 definitions for FPU registers. Use REGCACHE's architecture to
526 determine the appropriate register numbers.
527 (i386_pseudo_register_read, i386_pseudo_register_write,
528 i386_register_reggroup_p): Update.
529 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
530 TDEP->mm0_regnum.
531 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
532 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
533 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
534 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
535 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
536 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
537 *' to `void *'.
538 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
539 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
540 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
541 definitions for FPU/SSE registers.
542 (FXSAVE_MXCSR_ADDR): New define.
543 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
544 TDEP->mm0_regnum.
545 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
546 (I387_ST0_REGNUM): Define.
547
41d35cb0
MK
548 * regcache.h (get_regcache_arch): New prototype.
549 * regcache.c (get_regcache_arch): New function.
550
54e74f72
MK
551 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
552 whitespace.
553
1cb97e17
MK
554 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
555 Initialize using ARRAY_SIZE.
556
0968aa8c
AC
5572003-09-27 Andrew Cagney <cagney@redhat.com>
558
559 * arch-utils.c (deprecated_init_frame_pc_default): Rename
560 "init_frame_pc_default".
561 * arch-utils.h (deprecated_init_frame_pc_default): Update.
562 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
563 * vax-tdep.c (vax_gdbarch_init): Update.
564 * v850-tdep.c (v850_gdbarch_init): Update.
565 * sh64-tdep.c (sh64_gdbarch_init): Update.
566 * s390-tdep.c (s390_gdbarch_init): Update.
567 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
568 * mcore-tdep.c (mcore_gdbarch_init): Update.
569 * h8300-tdep.c (h8300_gdbarch_init): Update.
570 * cris-tdep.c (cris_gdbarch_init): Update.
571 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
572
54c84734
MK
5732003-09-26 Mark Kettenis <kettenis@gnu.org>
574
575 * regset.h: New file.
576 * Makefile.in (regset_h): Add.
577
1b1d3794
AC
5782003-09-25 Andrew Cagney <cagney@redhat.com>
579
580 * frame.h (deprecated_frame_saved_regs): Rename
581 get_frame_saved_regs.
582 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
583 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
584 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
585 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
586 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
587
e6beb428
AC
5882003-09-25 Andrew Cagney <cagney@redhat.com>
589
590 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
591 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
592 and Java.
593 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
594 arm*-*-* do not use the new frame code.
595
710122da
DC
5962003-09-25 David Carlton <carlton@kealia.com>
597
598 * c-exp.y: Remove 'register' declarations.
599 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
600
79c2c32d
DC
6012003-09-25 David Carlton <carlton@kealia.com>
602
603 * c-exp.y: Include cp-support.h. Add qualified_type.
604 (yylex): Delete nested type hack; add comments.
605 * cp-namespace.c (cp_lookup_nested_type): New function.
606 * cp-support.h: Declare cp_lookup_nested_type.
607 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
608 instead of value_struct_elt_for_reference.
609 * valops.c: Include cp-support.h.
610 (value_aggregate_elt): New function.
611 (value_namespace_elt): Ditto.
612 (value_struct_elt_for_reference): Make static.
613 * value.h: Delete declaration of value_struct_elt_for_reference;
614 add declaration for value_aggregate_elt.
615 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
616 (valops.o): Ditto.
617
898c62f5
DJ
6182003-09-25 Daniel Jacobowitz <drow@mvista.com>
619
620 * stack.c: Include "reggroups.h".
621 (frame_info): Only display registers in all_reggroup.
622 * Makefile.in (stack.o): Update dependencies.
623
28cd8767
JG
6242003-09-25 Jerome Guitton <guitton@act-europe.fr>
625
626 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
627 "add ip, sp #n" in the prologue.
628 (arm_scan_prologue): Ditto.
629
a4ab2b5d
JG
6302003-09-25 Jerome Guitton <guitton@act-europe.fr>
631
632 * MAINTAINERS (write after approval): Add myself.
633
3f244638
AS
6342003-09-25 Andreas Schwab <schwab@suse.de>
635
636 * m68k-tdep.c: Include "dwarf2-frame.h".
637 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
638 * Makefile.in (m68k-tdep.o): Update dependencies.
639
1c0159e0
CV
6402003-09-25 Corinna Vinschen <vinschen@redhat.com>
641
642 * sh-tdep.c (struct frame_extra_info): Remove.
643 (struct sh_frame_cache): New structure.
644 (GET_SOURCE_REG): New macro extracting source register of an opcode.
645 (GET_TARGET_REG): Ditto but target register.
646 (GET_PUSHED_REG): Remove.
647 (IS_MOV_ARG_TO_REG): New macro.
648 (IS_MOV_ARG_TO_IND_R14): New macro.
649 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
650 (IS_MOVW_PCREL_TO_REG): New macro.
651 (IS_MOVL_PCREL_TO_REG): New macro.
652 (IS_SUB_REG_FROM_SP): New macro.
653 (IS_ARG_MOV): Remove.
654 (IS_MOV_TO_R14): Remove.
655 (IS_RESTORE_FP): New macro.
656 (IS_RTS): New macro.
657 (IS_LDS): New macro.
658 (IS_MOV_FP_SP): New macro.
659 (IS_ADD_REG_TO_FP): New macro.
660 (IS_ADD_IMM_FP): New macro.
661 (sh_skip_prologue_hard_way): Remove.
662 (sh_saved_pc_after_call): Remove.
663 (sh_frame_chain): Remove.
664 (sh_find_callers_reg): Remove.
665 (sh_nofp_frame_init_saved_regs): Remove.
666 (sh_fp_frame_init_saved_regs): Remove.
667 (sh_init_extra_frame_info): Remove.
668 (sh_analyze_prologue): New function.
669 (sh_skip_prologue): Remove deprecated code. Rely on new function
670 sh_analyze_prologue when after_prologue fails.
671 (sh_frame_saved_pc): Remove.
672 (sh_alloc_frame_cache): New function.
673 (sh_frame_cache): Ditto.
674 (sh_frame_prev_register): Ditto.
675 (sh_frame_this_id): Ditto.
676 (sh_frame_unwind): New structure defining the heuristic frame
677 sniffer interface.
678 (sh_frame_sniffer): New function.
679 (sh_unwind_sp): Ditto.
680 (sh_unwind_pc): Ditto.
681 (sh_unwind_dummy_id): Ditto.
682 (sh_frame_base_address): Ditto.
683 (sh_frame_base): New structure defining new frame base code.
684 (sh_in_function_epilogue_p): New function.
685 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
686 code and to call all new code instead. Initialize dwarf2 and
687 heuristic frame sniffer.
688
5f9769d1
PH
6892003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
690
691 * parser-defs.h (struct exp_descriptor): New definition, containing
692 language-specific info for printing, prefixifying, dumping, and
693 evaluating expressions.
694 (exp_descriptor_standard): Declare new variable.
695 (print_subexp): Make global and declare here (from expprint.c).
696 (dump_subexp): Ditto.
697 (dump_subexp_body_standard): Declare.
698 (operator_length_standard): Declare.
699 (op_name_standard): Declare.
700 (print_subexp): Declare.
701 (print_subexp_standard): Declare.
702
703 * language.h (struct language_defn): Add la_exp_desc field to hold
704 pointer to table for language-specific operators.
705 Remove evaluate_exp field, which is now in struct exp_descriptor.
706
707 * parse.c (operator_length): Move most code to new
708 operator_length_standard function. Use language-specific information.
709 (operator_length_standard): New function taking most code from
710 operator_length.
711 (exp_descriptor_standard): New constant.
712
713 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
714 and OP_EXTENDED_LAST.
715
716 * expprint.c (print_subexp): Use language-specific print_subexp.
717 Make global; remove static declaration.
718 Move most code to print_subexp_standard.
719 (print_subexp_standard): New function, containing code formerly in
720 print_subexp.
721 (op_name): Add expression to argument signature.
722 Use langauge-specific op_name.
723 Move most code to op_name_standard.
724 (op_name_standard): New function, containing code formerly in op_name.
725 (dump_subexp): Use new version of op_name function.
726 Use language-specific dump_subexp_body, and move most existing code to
727 dump_subexp_body_standard.
728 (dump_raw_expression): Use new op_name interface.
729 (dump_subexp_body): Move most code to dump_subexp_body_standard.
730 (dump_subexp_body_standard): New function, containing code formerly
731 in dump_subexp_body.
732
733 * language.c (unknown_language): Add default la_exp_desc field and
734 remove evaluate_exp field.
735 (auto_language): Ditto.
736 (local_language): Ditto.
737 * f-lang.c (f_language_defn): Ditto.
738 * c-lang.c (c_language_defn): Ditto.
739 (cplus_language_defn): Ditto.
740 (asm_language_defn): Ditto.
741 (minimal_language_defn): Ditto.
742 * p-lang.c (pascal_language_defn): Ditto.
743 * m2-lang.c (m2_language_defn): Ditto.
744 * objc-lang.c (objc_language_defn): Ditto.
745
746 * jv-lang.c (exp_descriptor_java): New variable, containing
747 Java-specific expression evaluator.
748 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
749 field.
750 * scm-lang.c (exp_descriptor_scm): New variable, containing
751 Scheme-specific expression evaluator.
752 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
753 field.
754 * objc-lang.c (print_object_command): Take evaluate_exp from the
755 la_exp_desc field.
756
757 * Makefile.in (eval.o): Add dependency on parser-defs.h.
758
759 * eval.c: Include parser-defs.h for the full declaration of
760 la_exp_desc's type.
761 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
762
24daaebc
PH
7632003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
764
765 * parser-defs.h (operator_length): Declare.
766
767 * parse.c (length_of_subexp): Use operator_length to get operator
768 lengths and arities for operators.
769 Move most code to new operator_length function.
770 (operator_length): New function absorbing most code from
771 length_of_subexp.
772 (prefixify_subexp): Remove large case and use operator_length instead.
773 (parse_exp_1): Use renamings:
774 dump_prefix_expression => dump_raw_expression and
775 dump_postfix_expression => dump_prefix_expression.
776
777 * expression.h (dump_prefix_expression): Rename to ...
778 (dump_raw_expression): New name.
779 (dump_postfix_expression): Rename to ...
780 (dump_prefix_expression): New name.
781
782 * expprint.c (dump_subexp): Make global. Add comment.
783 Move most existing code to dump_subexp_body.
784 (dump_subexp_body): New function.
785 (dump_prefix_expression): Rename to dump_raw_expression.
786 Remove attempt to print the expression via print_expression: it can't
787 work before the expression is prefixified.
788 (dump_raw_expression): Renamed from dump_prefix_expression.
789 (dump_postfix_expression): Rename to dump_prefix_expression, since
790 that's what it does.
791 Remove 'note' parameter, since this routine must be used on
792 prefixified expression.
793 (dump_prefix_expression): Renamed from dump_postfix_expression.
794
8c2957c4
JB
7952003-09-22 Jim Blandy <jimb@redhat.com>
796
797 * dwarf2read.c (read_array_type): When building the type for an
798 array of unspecified length, make sure to choose the upper bound
799 so that the array's total length comes out to be zero --- that's
800 how we represent such arrays.
801
592e3010
MC
8022003-09-22 Michael Chastain <mec@shout.net>
803
804 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
805
365c70b1
JJ
8062003-09-22 Jeff Johnston <jjohnstn@redhat.com>
807
808 * top.c (quit_force): Fix indirect call to quit_target so
809 a struct qt_args pointer is passed.
810
5d6eb653
AC
8112003-09-22 Andrew Cagney <cagney@redhat.com>
812
813 * arch-utils.h (init_frame_pc_noop): Delete declaration.
814 * arch-utils.c (init_frame_pc_noop): Delete function.
815 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
816 "init_frame_pc".
817 * mips-tdep.c (mips_gdbarch_init): Ditto.
818 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
819 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
820 declaration.
821 (DEPRECATED_INIT_FRAME_PC): Delete macro.
822 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
823 declaration.
824 (DEPRECATED_INIT_FRAME_PC): Delete macro.
825
b222a67f
AG
8262003-09-22 Anthony Green <green@redhat.com>
827
828 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
829 declaration.
830
d5b5ac79
AC
8312003-09-20 Andrew Cagney <cagney@redhat.com>
832
deafb061
AC
833 * breakpoint.c: Eliminate ARGSUSED.
834 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
835 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
836 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
837 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
838 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
839 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
840 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
841 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
842 * wince.c, remote-vx.c: Ditto.
843
d5b5ac79
AC
844 * cli/cli-script.c: Remove "register" attributes.
845 * config/pa/tm-hppa.h: Ditto.
846 * cli/cli-decode.c: Ditto.
847 * cli/cli-cmds.c: Ditto.
848
c6316faa
AC
8492003-09-19 Andrew Cagney <cagney@redhat.com>
850
851 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
852 DEPRECATED_NPC_REGNUM.
853 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
854
f4f99b11
CF
8552003-09-19 Christopher Faylor <cgf@redhat.com>
856
857 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
858
1708f284
JB
8592003-09-19 Jim Blandy <jimb@redhat.com>
860
861 * macrotab.c (macro_include): Use the correct comparison to find
862 the appropriate place for this inclusion in the list.
863
b9fbf434
AC
8642003-09-19 Andrew Cagney <cagney@redhat.com>
865
866 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
867 (DEPRECATED_HPUX_TEXT_END): Define.
868 (deprecated_hpux_text_end): Declare.
869 (struct target_ops): Declare opaque.
870 * hppah-nat.c (text_end): Make static.
871 (deprecated_hpux_text_end): New function.
872 * exec.c (text_end): Delete global variable.
873 (NEED_TEXT_START_END): Do not define.
874 (exec_file_attach): Replace code computing "text_end" code with
875 call to DEPRECATED_HPUX_TEXT_END.
876
5b03f266
AC
8772003-09-19 Andrew Cagney <cagney@redhat.com>
878
879 * utils.c (align_up, align_down): New functions.
880 * defs.h (align_up, align_down): Declare.
881 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
882 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
883 and "align_down".
884 (round_up, round_down): Delete functions.
885 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
886 "align_down".
887 (ROUND_DOWN, ROUND_UP): Delete macros.
888 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
889 * h8300-tdep.c: Replace "round_up" and "round_down" with
890 "align_up" and "align_down".
891 (round_up, round_down): Delete macros.
892 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
893 "align_down".
894 (ROUND_UP, ROUND_DOWN): Delete macros.
895
51db5742
JB
8962003-09-18 J. Brobecker <brobecker@gnat.com>
897
898 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
899 hard-coded constant. Use the proper machine name instead.
900
77949794
AC
9012003-09-17 Andrew Cagney <cagney@redhat.com>
902
903 * sparc-tdep.c (legacy_register_name): Delete function.
904 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
905 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
906 * infcmd.c (gdb_register_name): Delete variable.
907 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
908 REGISTER_NAME and "tm.h".
909 * gdbarch.h, gdbarch.c: Regenerate.
910 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
911 REGISTER_NAMES in comments.
912 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
913 * m68klinux-nat.c (regmap): Ditto.
914
b55c33cc
JB
9152003-09-17 Jim Blandy <jimb@redhat.com>
916
917 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
918
957e27ac
AC
9192003-09-17 Andrew Cagney <cagney@redhat.com>
920
921 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
922 (ppcnbsd_init_abi): Set "use_struct_convention" to
923 "ppcnbsd_use_struct_convention".
924
192cb3d4
MK
9252003-09-17 Mark Kettenis <kettenis@gnu.org>
926
927 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
928 * gdbarch.h, gdbarch.c: Regenerate.
929 (stabs_argument_has_addr): New architecture method.
930 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
931 * arch-utils.c: Include "buildsym.h".
932 (default_stabs_argument_has_addr): New function.
933 * stabsread.c (define_symbol): Use stabs_argument_has_addr
934 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
935
efe59759
AC
9362003-09-17 Andrew Cagney <cagney@redhat.com>
937
938 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
939 * gdbarch.h, gdbarch.c: Regenerate.
940 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
941 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
942 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
943 * sparcnbsd-tdep.c: Update.
944
62700349
AC
9452003-09-17 Andrew Cagney <cagney@redhat.com>
946
947 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
948 * gdbarch.h, gdbarch.c: Regenerate.
949 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
950 * d10v-tdep.c, frame.c: Update.
951 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
952 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
953 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
954 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
955 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
956 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
957 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
958 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
959 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
960 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
961 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
962 * config/pa/nm-hppah.h: Update.
963
b9ff3018
AC
9642003-09-16 Andrew Cagney <cagney@redhat.com>
965
966 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
967 "use_struct_convention" to "ppc_linux_use_struct_convention".
968 (ppc_linux_use_struct_convention): New function.
969 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
970 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
971 "rs6000_use_struct_convention".
972 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
973 declaration.
974 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
975 Delete function.
976
aa1ee363
AC
9772003-09-16 Andrew Cagney <cagney@redhat.com>
978
979 * buildsym.c: Remove more occurances of "register".
980 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
981 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
982 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
983 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
984 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
985 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
986 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
987 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
988
f2ea0907
CV
9892003-09-16 Corinna Vinschen <vinschen@redhat.com>
990
991 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
992 numbers to enumeration values.
993 * sh-tdep.c: Accomodate above change.
994 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
995 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
996 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
997 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
998 (IS_FPUSH): Rename from IS_FMOV.
999 (sh_extract_struct_value_address): Remove useless comment.
1000 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1001 instead of own local values.
1002 (sh_dump_tdep): Remove.
1003 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1004 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1005
1c704f11
AC
10062003-09-15 Andrew Cagney <cagney@redhat.com>
1007
1008 * doublest.c (convert_floatformat_to_doublest): No longer need to
1009 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1010
ac79b88b
DJ
10112003-09-15 Daniel Jacobowitz <drow@mvista.com>
1012
1013 * values.c (unpack_double): Call floatformat_is_valid.
1014
1c671366
MK
10152003-09-15 Mark Kettenis <kettenis@gnu.org>
1016
de5227fb
MK
1017 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1018 ps_strings into a long.
1019
1c671366
MK
1020 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1021 _initialize_am64fbsd_nat.
1022
a604369a
KB
10232003-09-15 Kevin Buettner <kevinb@redhat.com>
1024
1025 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1026 associated with DW_AT_ranges attribute is out of bounds.
1027
b3cacbee
DL
10282003-09-15 David Lecomber <dsl@sources.redhat.com>
1029
1030 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1031
d0f37bb2
MC
10322003-09-14 Michael Chastain <mec@shout.net>
1033
1034 * config/m68k/nm-apollo68v.h: Delete.
1035 * config/m68k/xm-apollo68v.h: Delete.
1036
69517000
AC
10372003-09-14 Andrew Cagney <cagney@redhat.com>
1038
1039 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1040 * dcache.c: Update copyrights and descriptions.
1041 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1042
ef8b349d
AC
10432003-09-14 Andrew Cagney <cagney@redhat.com>
1044
1045 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1046 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1047
52f0bd74
AC
10482003-09-14 Andrew Cagney <cagney@redhat.com>
1049
1050 * alpha-nat.c: Remove some occurances of "register".
1051 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1052 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1053 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1054 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1055 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1056 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1057 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1058 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1059 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1060 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1061 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1062 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1063 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1064 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1065 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1066 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1067 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1068 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1069 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1070 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1071 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1072 * values.c, vax-tdep.c, xcoffread.c: Ditto.
1073
4a4b3fed
AC
10742003-09-13 Andrew Cagney <cagney@redhat.com>
1075
1076 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1077 * ppc-tdep.h (struct regcache): Declare opaque.
1078 * objfiles.h (struct objfile_data): Declare opaque.
1079 * cp-support.h (struct objfile): Declare opaque.
1080 * linux-nat.h (target_waitstatus): Declare opaque.
1081
2110b94f
MK
10822003-09-14 Mark Kettenis <kettenis@gnu.org>
1083
1c671366
MK
1084 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1085 (stabs_argument_has_addr): New architecture method.
1086 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1087 * arch-utils.c: Include "buildsym.h".
1088 (default_stabs_argument_has_addr): New function.
1089 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1090 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1091
2110b94f
MK
1092 * cris-tdep.c (cris_gdbarch_init): Set
1093 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1094 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1095 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1096 * mips-tdep.c (mips_gdbarch_init): Likewise.
1097 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1098 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1099
48436ce6
AC
11002003-09-13 Andrew Cagney <cagney@redhat.com>
1101
1102 * values.c (using_struct_return): Delete "function" and "funcaddr"
1103 parameters.
1104 * value.h (using_struct_return): Update declaration.
1105 * infcmd.c (finish_command_continuation): Update.
1106 (finish_command): Update.
1107 * infcall.c (call_function_by_hand): Update.
1108 * eval.c (evaluate_subexp_standard): Update.
1109
403d9909
CF
11102003-09-13 Christopher Faylor <cgf@redhat.com>
1111
1112 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1113 SSE registers since gdb will not operate correctly without this.
1114 Restore include file ordering munged in previous change.
1115 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1116
ebf7d56b
MK
11172003-09-13 Mark Kettenis <kettenis@gnu.org>
1118
8e823e25
MK
1119 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1120 REG_STRUCT_HAS_ADDR.
1121 * gdbarch.c, gdbarch.h: Updated.
1122 * infcall.c (call_function_by_hand): Update.
1123 * stabsread.c (define_symbol): Updated.
1124
ebf7d56b
MK
1125 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1126
d3f13f72
CF
11272003-09-12 Christopher Faylor <cgf@redhat.com>
1128
1129 * win32-nat.c: Reorganize so that defines used by target headers are
1130 actually defined by the system headers.
1131 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1132 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1133
14f75137
JB
11342003-09-12 Jim Blandy <jimb@redhat.com>
1135
d646061f
JB
1136 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1137 the file has no .data, .bss, or .rodata sections. Instead wait
1138 until we see a variable alleged to live in one of those sections.
1139
2a13f9bc
JB
1140 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1141 .bss section, presume that any variables we find live in the
1142 .rodata section.
1143
4f49b26b
JB
1144 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1145 offsets for global and static variables.
1146
14f75137
JB
1147 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1148 symbol types are, by definition, in the .data section, so it is
1149 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1150 If there is no .data section, there should be no N_DATA or N_DATA
1151 | N_EXT symbols.
1152
212c460c
MK
11532003-09-12 Mark Kettenis <kettenis@gnu.org>
1154
1155 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1156 (amd64fbsd_sigcontext_addr): Rewrite.
1157 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1158 with correct values.
1159 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1160 (amd64fbsd_init_abi): Fix typo.
1161
68856ea3
AC
11622003-09-12 Andrew Cagney <cagney@redhat.com>
1163
1164 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1165 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1166
627b3ba2
AC
11672003-09-12 Andrew Cagney <cagney@redhat.com>
1168
1169 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1170 "entry_file_highpc". Update comments.
1171 * defs.h (deprecated_inside_entry_file): Rename
1172 "inside_entry_file".
1173 * blockframe.c (deprecated_inside_entry_file): Rename
1174 "inside_entry_file".
1175 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1176 * vax-tdep.c (vax_frame_chain): Update.
1177 * sh64-tdep.c (sh64_frame_chain): Update.
1178 * sh-tdep.c (sh_frame_chain): Update.
1179 * rs6000-tdep.c (rs6000_frame_chain): Update.
1180 * ns32k-tdep.c (ns32k_frame_chain): Update.
1181 * mips-tdep.c (mips_frame_chain): Update.
1182 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1183 * m32r-tdep.c (m32r_frame_this_id): Update.
1184 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1185 * frv-tdep.c (frv_frame_this_id): Update.
1186 * d10v-tdep.c (d10v_frame_this_id): Update.
1187 * cris-tdep.c (cris_frame_chain): Update.
1188 * blockframe.c (legacy_frame_chain_valid): Update.
1189 * avr-tdep.c (avr_frame_this_id): Update.
1190 * arm-tdep.c (arm_prologue_this_id): Update.
1191 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1192 * objfiles.c (objfile_relocate): Update.
1193 * mipsread.c (mipscoff_symfile_read): Update.
1194 (mipscoff_symfile_read): Update.
1195 * mdebugread.c (parse_partial_symbols): Update.
1196 * dwarfread.c (read_file_scope): Update.
1197 * dwarf2read.c (read_file_scope): Update.
1198 * dbxread.c (read_dbx_symtab): Update.
1199 (read_dbx_symtab): Update.
1200 * coffread.c (complete_symtab): Update.
1201
b0abbc58
JJ
12022003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1203
1204 * top.c (quit_target): New static helper function.
1205 (quit_force): Moved code to quit_target(). Call quit_target()
1206 via catch_errors() to catch errors during quit.
1207
a1632d59
DC
12082003-09-11 David Carlton <carlton@kealia.com>
1209
1210 * buildsym.c (finish_block): Use allocate_block to allocate the
1211 block.
1212 * mdebugread.c (new_block): Add FIXME.
1213
5c4e30ca
DC
12142003-09-11 David Carlton <carlton@kealia.com>
1215
1216 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1217 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1218 (recursive_dump_type): Ditto.
1219 * printcmd.c (print_formatted): Ditto.
1220 * typeprint.c (print_type_scalar): Ditto.
1221 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1222 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1223 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1224 maint_cplus_cmd_list.
1225 * cp-support.c: Make maint_cplus_cmd_list extern.
1226 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1227 command.h.
1228 (lookup_symbol_file): Look in possible namespace blocks when
1229 appropriate.
1230 (initialize_namespace_symtab): New.
1231 (get_possible_namespace_block, free_namespace_block)
1232 (check_possible_namespace_symbols)
1233 (check_possible_namespace_symbols_loop)
1234 (check_one_possible_namespace_symbol)
1235 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1236 (_initialize_cp_namespace): Ditto.
1237 * block.h: Declare allocate_block.
1238 * block.c (allocate_block): New.
1239 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1240 allocate_block.
1241 * symfile.h: Update declaration of add_psymbol_to_list.
1242 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1243 question.
1244 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1245 scan_partial_symbols_call.
1246 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1247 helper functions.
1248 (add_partial_symbol): If necessary, scan mangled names for names
1249 of namespaces.
1250 (add_partial_namespace): Add NAMESPACE argument; generate partial
1251 symbols associated to namespaces.
1252 (add_partial_enumeration): Add NAMESPACE argument.
1253 (new_symbol): Allow namespace syms.
1254 (read_namespace): Generate namespace syms.
1255 * objfiles.h: Add opaque declaration of struct symtab.
1256 (struct objfile): Add cp_namespace_symtab member.
1257 * objfiles.c (allocate_objfile): Set
1258 objfile->cp_namespace_symtab.
1259 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1260 dictionary_h, command_h.
1261
33a7c2fc
AC
12622003-09-11 Andrew Cagney <cagney@redhat.com>
1263
1264 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1265 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1266 near the function's end.
1267 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1268 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1269 regcache_raw_write_signed to set SP_REGNUM.
1270
63cd24fe
EZ
12712003-09-11 Elena Zannoni <ezannoni@redhat.com>
1272
1273 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1274 orig_addrs is set up properly.
1275
f27dd7fd
AC
12762003-09-11 Andrew Cagney <cagney@redhat.com>
1277
1278 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1279 * gdbarch.h, gdbarch.c: Re-generate.
1280 * infcall.c (call_function_by_hand): Update.
1281 * hppa-tdep.c (hppa_push_arguments): Update.
1282 * ada-lang.c (place_on_stack): Update.
1283 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1284 * sparc-tdep.c (sparc_gdbarch_init): Update.
1285 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1286 * hppa-tdep.c (hppa_gdbarch_init): Update.
1287 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1288 stack_align.
1289
f630a401
DJ
12902003-09-11 Daniel Jacobowitz <drow@mvista.com>
1291
1292 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1293 register do need a frame.
1294
0ddabb4c
AC
12952003-09-11 Andrew Cagney <cagney@redhat.com>
1296
1297 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1298 buildable since GDB 5.0.
1299 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1300 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1301 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1302 * irix4-nat.c: Delete file.
1303 * config/mips/irix4.mh: Delete file.
1304 * config/mips/irix3.mh: Delete file.
1305 * config/mips/irix3.mt: Delete file.
1306 * config/mips/tm-irix3.h: Delete file.
1307 * config/mips/nm-irix3.h: Delete file.
1308 * config/mips/xm-irix3.h: Delete file.
1309 * config/mips/nm-irix4.h: Delete file.
1310 * config/mips/xm-irix4.h: Delete file.
1311 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1312
fde2cceb
JB
13132003-09-10 J. Brobecker <brobecker@gnat.com>
1314
1315 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1316 * Makefile.in (hppa-tdep.o): Update dependencies.
1317
66f667f5
JW
13182003-09-10 James E Wilson <wilson@specifixinc.com>
1319
ef5fd69f
JW
1320 * MAINTAINERS: Change my e-mail address. Move to paper trail
1321 section.
66f667f5 1322
53e8aaea
KB
13232003-09-10 Kevin Buettner <kevinb@redhat.com>
1324
1325 * MAINTAINERS (frv): New ISA entry.
1326
dcc6aaff
KB
13272003-09-10 Kevin Buettner <kevinb@redhat.com>
1328
1329 * frv-tdep.c (dis-asm.h): Include.
1330 * Makefile.in (frv-tdep.o): Update dependencies.
1331
932644f0
JJ
13322003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1333
1334 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1335 Fix typo for high range of floating registers.
1336
91c24f0a
DC
13372003-09-09 David Carlton <carlton@kealia.com>
1338
1339 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1340 highpc initialization here out of scan_partial_symbols.
1341 (scan_partial_symbols): Restructure into a recursive version,
1342 calling add_partial_namespace and add_partial_enumeration when
1343 appropriate.
1344 (add_partial_namespace): New.
1345 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1346
c9263853
AC
13472003-09-09 Andrew Cagney <cagney@redhat.com>
1348
e56a0ecc
AC
1349 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1350 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1351 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1352 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1353
794a477a
AC
1354 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1355 (rs6000_push_dummy_call): Set the "TOC" register.
1356
c9263853
AC
1357 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1358 methods "max_register_raw_size", "max_register_virtual_size" or
1359 "register_virtual_size".
1360
afa7d0b2
ILT
13612003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1362
1363 * MAINTAINERS: Update my e-mail address.
1364
7a41266b
AC
13652003-09-09 Andrew Cagney <cagney@redhat.com>
1366
1367 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1368 (rs6000_push_dummy_call): Store the struct return address.
1369 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1370
77b2b6d4
AC
13712003-09-09 Andrew Cagney <cagney@redhat.com>
1372
1373 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1374 "ppc_sysv_abi_push_arguments".
1375 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1376 "ppc_sysv_abi_push_arguments".
1377 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1378 instead of "push_arguments".
1379 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1380
e8a7b686
AC
13812003-09-09 Andrew Cagney <cagney@redhat.com>
1382
1383 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1384 instead of CALL_DUMMY_ADDRESS.
1385
f86f5ca3
PH
13862003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1387
1388 * p-lang.c: Eliminate "register".
1389 * c-lang.c: Ditto.
1390 * expprint.c: Ditto.
1391 * f-lang.c: Ditto.
1392 * jv-lang.c: Ditto.
1393 * language.c: Ditto.
1394 * m2-lang.c: Ditto.
1395 * parse.c: Ditto.
1396 * scm-lang.c: Ditto.
1397 * objc-lang.c: Ditto.
1398
83ee270e
NC
13992003-09-09 Nick Clifton <nickc@redhat.com>
1400
1401 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1402
a89aa300
AC
14032003-09-04 Andrew Cagney <cagney@redhat.com>
1404
1405 * avr-tdep.c: Include "dis-asm.h".
1406 * cris-tdep.c: Include "dis-asm.h".
1407 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1408 instead of corresponding typedef.
1409 * h8300-tdep.c: Include "dis-asm.h".
1410 * ia64-tdep.c: Include "dis-asm.h".
1411 * i386-tdep.c: Include "dis-asm.h".
1412 (i386_print_insn): Use "struct disassemble_info" instead of
1413 corresponding typedef.
1414 * m68k-tdep.c: Include "dis-asm.h".
1415 * mcore-tdep.c: Include "dis-asm.h".
1416 * mips-tdep.c: Include "dis-asm.h".
1417 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1418 instead of corresponding typedef.
1419 * ns32k-tdep.c: Include "dis-asm.h".
1420 * s390-tdep.c: Include "dis-asm.h".
1421 * sparc-tdep.c: Include "dis-asm.h".
1422 * vax-tdep.c: Include "dis-asm.h".
1423 * v850-tdep.c: Include "dis-asm.h".
1424 * mn10300-tdep.c: Include "dis-asm.h".
1425 * rs6000-tdep.c: Include "dis-asm.h".
1426 * xstormy16-tdep.c: Include "dis-asm.h".
1427 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1428 print_insn_xstormy16.
1429 * Makefile.in (v850-tdep.o): Update dependencies.
1430 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1431 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1432 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1433 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1434 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1435 (gdbarch_h): Remove $(dis_asm_h).
1436 * disasm.c: Include "dis-asm.h".
1437 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1438 corresponding typedef.
1439 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1440 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1441 * gdbarch.sh: Do not include "dis-asm.h".
1442 (struct disassemble_info): Declare opaque.
1443 (TARGET_PRINT_INSN): Update declaration.
1444 * gdbarch.h, gdbarch.c: Re-generate.
1445
88a82a65
AC
14462003-09-08 Andrew Cagney <cagney@redhat.com>
1447
1448 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1449 CALL_DUMMY_ADDRESS, change to a predicate.
1450 * gdbarch.h, gdbarch.c: Re-generate.
1451 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1452 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1453 * infcall.c (call_function_by_hand): Ditto.
1454 * sparc-tdep.c (sparc_push_return_address): Ditto.
1455 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1456 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1457 CALL_DUMMY_ADDRESS with entry_point_address.
1458 * v850-tdep.c (v850_push_return_address): Ditto.
1459 * s390-tdep.c (s390_push_return_address): Ditto.
1460 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1461 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1462 * mcore-tdep.c (mcore_push_return_address): Ditto.
1463 * cris-tdep.c (cris_push_return_address): Ditto.
1464 * arm-tdep.c (arm_push_return_address): Ditto.
1465
3e2c4033
AC
14662003-09-08 Andrew Cagney <cagney@redhat.com>
1467
1468 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1469 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1470 and REG_UNMODIFIED to REG_SAME_VALUE.
1471 (execute_cfa_program): Update.
1472 (dwarf2_frame_cache): Update. Initialize table to
1473 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1474 location.
1475 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1476
39efb398
AC
14772003-09-08 Andrew Cagney <cagney@redhat.com>
1478
1479 * gnu-nat.c: Remove "inline" function attribute.
1480 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1481
f5cb5aca
KB
14822003-09-08 Kevin Buettner <kevinb@redhat.com>
1483
1484 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1485 target.
1486
1cb761c7
KB
14872003-09-08 Kevin Buettner <kevinb@redhat.com>
1488
1489 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1490 (frame_extra_info): Rename this struct to frv_unwind_cache.
1491 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1492 Add fields ``prev_sp'' and ``base''.
1493 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1494 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1495 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1496 Delete.
1497 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1498 Revise all callers. Fill in the unwind cache argument and make
1499 other adjustments to account for new frame mechanisms.
1500 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1501 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1502 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1503 (frv_frame_unwind, frv_frame_base): New structs.
1504 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1505 additional arguments expected by this method and adjust function
1506 body accordingly.
1507 (frv_gdbarch_init): Remove calls to the following functions:
1508 set_gdbarch_deprecated_init_frame_pc(),
1509 set_gdbarch_deprecated_saved_pc_after_call(),
1510 set_gdbarch_deprecated_frame_chain(),
1511 set_gdbarch_deprecated_frame_saved_pc(),
1512 set_gdbarch_deprecated_frame_init_saved_regs(),
1513 set_gdbarch_deprecated_push_arguments(),
1514 set_gdbarch_deprecated_push_return_address(),
1515 set_gdbarch_deprecated_pop_frame(),
1516 set_gdbarch_deprecated_call_dummy_words(),
1517 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1518 set_gdbarch_deprecated_init_extra_frame_info(),
1519 set_gdbarch_deprecated_dummy_write_sp(), and
1520 set_gdbarch_deprecated_pc_in_call_dummy().
1521 Add calls to the following functions:
1522 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1523 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1524 frame_base_set_default().
1525 * Makefile.in (frv-tdep.o): Update dependencies.
1526
68f6cf99
MK
15272003-09-09 Mark Kettenis <kettenis@gnu.org>
1528
1529 * dwarf2-frame.c (read_encoded_value): Add support for
1530 DW_EH_PE_aligned encoding.
1531
73b65bb0
DJ
15322003-09-08 Daniel Jacobowitz <drow@mvista.com>
1533
1534 * infrun.c (normal_stop): Don't print a message if the inferior
1535 has exited.
1536
7c8a5605
JB
15372003-09-08 Jim Blandy <jimb@redhat.com>
1538
1539 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1540 * dbxread.c: #include "gdb_assert.h".
1541 (read_dbx_symtab): If the objfile has no .data section, use the
1542 section index for the .bss section instead.
1543
7dd88986
DJ
15442003-09-08 Daniel Jacobowitz <drow@mvista.com>
1545
1546 * frame.c (deprecated_safe_get_selected_frame): New function.
1547 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1548 * findvar.c (read_var_value): Call it.
1549
55ff77ac
CV
15502003-09-08 Corinna Vinschen <vinschen@redhat.com>
1551
1552 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1553 (sh64-tdep.o): Add dependencies.
1554 * configure.tgt: Add FIXME to sh-*-linux*.
1555 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1556 (sh_gdbarch_init): Always set correct sh_show_regs function
1557 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1558 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1559 * sh64-tdep.c: New file, containing all sh64 related code from
1560 sh-tdep.c.
1561 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1562 * config/sh/linux.mt (TDEPFILES): Ditto.
1563 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1564 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1565 * config/sh/wince.mt (TDEPFILES): Ditto.
1566
bfb39158
DJ
15672003-09-07 Daniel Jacobowitz <drow@mvista.com>
1568
1569 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1570 (stop_wait_callback): Handle !lp->signalled also.
1571 (lin_lwp_has_pending, flush_callback): New functions.
1572 (lin_lwp_wait): Call flush_callback.
1573 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1574 (linux_proc_pending_signals): New function.
1575 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1576
9407de8e
DJ
15772003-09-07 Daniel Jacobowitz <drow@mvista.com>
1578
1579 From Nick Kelsey <nickk@ubicom.com>:
1580 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1581 when the stop PC is at the beginning of a function also.
1582
2ef47cd0
DJ
15832003-09-06 Daniel Jacobowitz <drow@mvista.com>
1584
1585 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1586 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1587
6f4492c8
MK
15882003-09-06 Mark Kettenis <kettenis@gnu.org>
1589
1590 * sol-thread.c: Include "gdb_string.h".
1591
d3420b2f
MK
15922003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1593
1594 * gcore.c: Reorder include files in alphabetical order. Include
1595 "gdb_assert.h". Various coding style fixes.
1596 (derive_stack_segment, derive_heap_segment): Replace check for
1597 non-null BOTTOM and TOP with gdb_assert.
1598 (derive_heap_segment): Replace check for successful creation of
1599 ZERO with gdb_assert.
1600 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1601
5220ea4c
AC
16022003-09-04 Andrew Cagney <cagney@redhat.com>
1603
1604 * thread-db.c (verbose_dlsym): New function.
1605 (thread_db_load): Use verbose_dlsym
1606 (thread_db_new_objfile): Print that libthread_db was loaded, and
1607 that thread debugging was enabled.
1608
6e8c2c06
AC
16092003-09-04 Andrew Cagney <cagney@redhat.com>
1610
1611 * configure.tgt: Add "mips64*-*-*" target. Delete
1612 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1613 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1614 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1615 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1616 mips*-sony-*, and mips64*-*-elf* targets.
1617 * config/mips/embedl.mt: Delete file.
1618 * config/mips/embedl64.mt: Delete file.
1619 * config/mips/mips.mt: Delete file.
1620 * config/mips/mips64.mt: Delete file.
1621 * config/mips/tm-embed.h: Delete file.
1622 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1623 * config/mips/embed64.mt: Delete out-of-date comment.
1624
3a3bc038
AC
16252003-09-04 Andrew Cagney <cagney@redhat.com>
1626
1627 * hppa-tdep.c (hppa_gdbarch_init): Set
1628 "have_nonsteppable_watchpoint".
1629 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1630 * mips-tdep.c (mips_dump_tdep): Do not print
1631 HAVE_NONSTEPPABLE_WATCHPOINT.
1632 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1633 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1634 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1635 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1636
a957e642
CV
16372003-09-04 Corinna Vinschen <vinschen@redhat.com>
1638
1639 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1640 unused code. Add comment.
1641
a6fbcf2f
CV
16422003-09-04 Corinna Vinschen <vinschen@redhat.com>
1643
1644 * breakpoint.c (watchpoint_check): Check for pc being in an
1645 epilogue if watchpoint frame couldn't be found.
1646
c14a44d5
AC
16472003-09-04 Andrew Cagney <cagney@redhat.com>
1648
1649 * Makefile.in: Re-generate all dependencies.
1650
f6c40618
AC
16512003-09-03 Andrew Cagney <cagney@redhat.com>
1652
1653 * arch-utils.h (legacy_print_insn): Delete declaration.
1654 * arch-utils.c (legacy_print_insn): Delete function.
1655 * disasm.c (deprecated_tm_print_insn_info): Delete.
1656 (_initialize_disasm): Delete function, contained code initializing
1657 deprecated_tm_print_insn_info.
1658 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1659 (deprecated_tm_print_insn_info): Delete.
1660 (TARGET_PRINT_INSN): Do not provide a default.
1661 * gdbarch.h, gdbarch.c: Re-generate.
1662
242e8be5
AC
16632003-09-03 Andrew Cagney <cagney@redhat.com>
1664
1665 * disasm.c (fprintf_disasm): New function.
1666 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1667 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1668 reverts 2003-08-14 change.
1669 (_initialize_disasm): Call "init_disassemble_info", instead of
1670 INIT_DISASSEMBLE_INFO_NO_ARCH.
1671
3ffc3dda
MS
16722003-09-03 Michael Snyder <msnyder@redhat.com>
1673
1674 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1675
52d16ba8
AC
16762003-09-03 Andrew Cagney <cagney@redhat.com>
1677
1678 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1679 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1680 * symfile.c (syms_from_objfile): Update.
1681 (reread_symbols): `Update
1682 * exec.c (exec_file_attach): Update.
1683 (exec_file_attach): Update.
1684 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1685 2003-08-29 change.
1686 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1687
eb5492fa
DJ
16882003-09-03 Daniel Jacobowitz <drow@mvista.com>
1689
1690 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1691 trad-frame.h.
1692 (arm_get_cache): Delete macro.
1693 (struct arm_prologue_cache): Update comments. Make saved_regs into
1694 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1695 to prev_sp.
1696 (thumb_scan_prologue): Update for cache changes. Don't call
1697 DEPRECATED_PC_IN_CALL_DUMMY.
1698 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1699 argument and use it in desperation search for our prologue. Do not
1700 search past the specified PC.
1701 (arm_make_prologue_cache): Simplify.
1702
1703 (arm_prologue_this_id, arm_prologue_prev_register)
1704 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1705 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1706 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1707 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1708 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1709
1710 (arm_frame_chain_valid, arm_find_callers_reg)
1711 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1712 (arm_pop_frame): Delete obsolete methods.
1713 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1714
1715 (arm_gdbarch_init): Update for new frame methods. Register prologue
1716 and sigtramp unwinders. Set the default frame base method.
1717
1718 * Makefile.in (arm-tdep.o): Update dependencies.
1719 * varobj.c (find_frame_addr_in_frame_chain): Call
1720 get_frame_base_address.
1721 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1722
24de872b
DJ
17232003-09-03 Daniel Jacobowitz <drow@mvista.com>
1724
1725 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1726 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1727 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1728 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1729 Take NEXT_FRAME and CACHE arguments. Call
1730 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1731 Set unwound_pc in CACHE instead of modifying the frame argument.
1732 Don't bother checking the frame type when looking for sigtramp
1733 frames.
1734 (arm_make_prologue_cache, arm_frame_chain)
1735 (arm_init_extra_frame_info): New functions.
1736
9b8d791a
DJ
17372003-09-03 Daniel Jacobowitz <drow@mvista.com>
1738
1739 * arm-tdep.c (arm_get_cache): Define.
1740 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1741 unwound_sp, unwound_pc, and saved_regs.
1742 (thumb_scan_prologue): Take a cache instead of the frame.
1743 (arm_scan_prologue): Likewise.
1744 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1745 instead of a temporary frame.
1746 (arm_init_extra_frame_info): Allocate and use a cache.
1747 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1748
7ee3275f
AC
17492003-09-03 Andrew Cagney <cagney@redhat.com>
1750
1751 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1752 * config/mips/wince.mt (TM_CLIBS): Ditto.
1753 * config/sh/wince.mt (TM_CLIBS): Ditto.
1754 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1755 * config/sparc/sp64.mt (CC): Delete.
1756
57b29be7
AC
17572003-09-03 Andrew Cagney <cagney@redhat.com>
1758
1759 * defs.h: Do not include "arch-utils.h".
1760 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1761 GDB_MULTI_ARCH_PURE.
1762 * configure.in (GDB_MULTI_ARCH): Do not define.
1763 * configure, config.in: Regenerate.
1764 * configure.tgt: Do not set variable "gdb_multi_arch".
1765 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1766 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1767 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1768 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1769 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1770 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1771 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1772 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1773 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1774 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1775 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1776 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1777 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1778 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1779 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1780 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1781 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1782 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1783
12e035e2
MC
17842003-08-30 Michael Chastain <mec@shout.net>
1785
1786 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1787 * config/m68k/nm-hp300hpux.h: Delete.
1788 * config/m68k/tm-hp300hpux.h: Delete.
1789 * config/m68k/xm-hp300hpux.h: Delete.
1790 * config/m68k/xm-hp300bsd.h: Delete.
1791 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1792 tm-hp300hpux.h, xm-hp300hpux.h.
1793 * somsolib.c: Remove comment about hp300 shared libraries.
1794
bda34dc2
MK
17952003-08-31 Mark Kettenis <kettenis@gnu.org>
1796
5bca7895
MK
1797 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1798 Only define PTRACE_GET_THREAD_AREA is not already defined.
1799 Various style fixes in code and comments and some additional
1800 spelling fixes in comments. Move after functions dealing with
1801 debug registers.
1802 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1803 Fix coding-style.
1804
bda34dc2
MK
1805 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1806 frame_unwind_register_unsigned instead of
1807 frame_unwind_unsigned_register.
1808
c890192f
MK
18092003-08-30 Mark Kettenis <kettenis@gnu.org>
1810
1811 * configure.in: Search for gethostbyname in libnsl.
1812 * configure: Regenerated.
1813
60fac5b8
MK
18142003-08-29 Mark Kettenis <kettenis@gnu.org>
1815
e294916c
MK
1816 * configure.in: Remove redundant AC_MSG_RESULT in check for
1817 uintptr_t in stdint.h.
1818 * configure: Regenerated.
1819
c40d267a
MK
1820 * amd64-nat.h (struct regcache): Add opaque declaration.
1821
60fac5b8
MK
1822 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1823 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1824 Change "register array" to "register cache" in comments.
1825 (x86_64_linux_gregset64_reg_offset): New variable.
1826 (GETREGS_SUPPLIES): Remove macro.
1827 (supply_gregset): Call amd64_supply_native_gregset instead of
1828 x86_64_linux_supply_gregset.
1829 (fill_gregset): Rename `regno' to `regnum'. Call
1830 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1831 (store_regs): Rename `regno' to `regnum'.
1832 (store_fpregs): Rename `regno' to `regnum'.
1833 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1834 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1835 Reorganize function a bit.
1836 (store_inferior_registers): Rename `regno' to `regnum'. Use
1837 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1838 Reorganize function a bit.
1839 (_initialize_x86_64_linux_nat): New function.
1840 * config/i386/x86-64linux.mh.
1841
546143b6
AC
18422003-08-29 Andrew Cagney <cagney@redhat.com>
1843
1844 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1845 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1846 (target_remove_watchpoint): Delete macro.
1847 (target_insert_watchpoint): Delete macro.
1848 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1849 (remote_mips_stopped_by_watchpoint): Delete declaration.
1850 (remote_mips_remove_watchpoint): Delete declaration.
1851 (remote_mips_set_watchpoint): Delete declaration.
1852 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1853 * remote-mips.c (_initialize_remote_mips): Set
1854 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1855 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1856 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1857 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1858 (mips_stopped_by_watchpoint): Rename
1859 remote_mips_stopped_by_watchpoint.
1860 (mips_can_hardware_watchpoint): Rename
1861 remote_mips_can_use_hardware_watchpoint, update function
1862 signature.
1863
7bace51b
MK
18642003-08-29 Mark Kettenis <kettenis@gnu.org>
1865
b0f5c6f2
MK
1866 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1867 USER_DS. We haven't given them a register number yet.
1868
2a6d284d
MK
1869 * amd64-nat.h: New file.
1870 * amd64-nat.c: New file.
1871 * amd64fbsd-nat.c: Include "amd64-nat.h".
1872 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1873 (amd64fbsd32_r_reg_offset): New variable.
1874 (supply_gregset): Simply call amd64_supply_native_gregset.
1875 (fill_gregset): Rename `regno' to `regnum'. Simply call
1876 amd64_collect_native_gregset.
1877 (fill_fpregset): Rename `regno' to `regnum'.
1878 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1879 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1880 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1881 `fpregset_t'. Call amd64_supply_native_gregset instead of
1882 supply_gregset. Call x86_64_supply_fxsave instead of
1883 supply_fpregset.
1884 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1885 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1886 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1887 `fpregset_t'. Call amd64_collect_native_gregset instead of
1888 fill_gregset. Call x86_64_collect_fxsave instead of
1889 fill_fpregset.
1890 (_initialize_am64fbsd_nat): Initialize
1891 amd64_native_gregset32_reg_offset and
1892 amd64_native_gregset64_reg_offset.
1893 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1894
a16d75cc
MK
1895 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1896 null pointer. Fix typo in comment.
1897
7bace51b
MK
1898 * regcache.c (supply_register): Reimplement to call
1899 regcache_raw_supply.
1900 (regcache_collect): Reimplement by calling regcache_raw_collect.
1901
9a661b68
MK
19022003-08-28 Mark Kettenis <kettenis@gnu.org>
1903
1904 * regcache.c (register_buffer): Consitify first argument.
1905 (regcache_raw_supply, regcache_raw_collect): New
1906 functions.
1907
e94cc8fa
DJ
19082003-08-28 Daniel Jacobowitz <drow@mvista.com>
1909
1910 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1911 by Nathan J. Williams.
1912
c64bd0ce
DJ
19132003-08-28 Daniel Jacobowitz <drow@mvista.com>
1914
1915 * lin-lwp.c (wait_lwp): New function, copied from
1916 stop_wait_callback. Clean up.
1917 (stop_wait_callback): Use wait_lwp.
1918
e5ab0dce
AC
19192003-08-28 Andrew Cagney <cagney@redhat.com>
1920
1921 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1922 flavour and disassembler options.
1923 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1924 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1925 deprecated_tm_print_insn_info.
1926
a788de9b
AC
19272003-08-27 Andrew Cagney <cagney@redhat.com>
1928
1929 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1930 Use target_read_memory.
1931 (s390_get_frame_info): Update. Do not reference
1932 deprecated_tm_print_insn_info.
1933 (s390_check_function_end, s390_is_sigreturn): Ditto.
1934
36482093
AC
19352003-08-27 Andrew Cagney <cagney@redhat.com>
1936
1937 * Makefile.in (cris-tdep.o): Update dependencies.
1938 * cris-tdep.c: Include "gdb_assert.h".
1939 (cris_gdbarch_init): Set print_insn.
1940 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1941 (cris_delayed_get_disassembler): Simplify, directly call the
1942 disassembler returned by cris_get_disassembler.
1943 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1944 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1945 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1946 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1947 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1948 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1949 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1950 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1951 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1952 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1953 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1954 (gdb_print_insn_sparc): Delete function.
1955 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1956 deprecated_tm_print_insn_info.
1957 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1958 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1959 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1960 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1961 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1962 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1963 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1964 (s390_gdbarch_init): Set print_insn.
1965
0285512f
AC
19662003-08-27 Andrew Cagney <cagney@redhat.com>
1967
1968 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1969 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1970 * infcall.c (call_function_by_hand): Convert the entry point
1971 address into a code address.
1972
cdcd5552
AC
19732003-08-27 Andrew Cagney <cagney@redhat.com>
1974
1975 * dsrec.c: Include "gdb_string.h".
1976 * Makefile.in (dsrec.o): Update dependencies.
1977
e85cddad
MC
19782003-08-27 Michael Chastain <mec@shout.net>
1979
1980 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1981
8bbfbb23
AC
19822003-08-27 Andrew Cagney <cagney@redhat.com>
1983
1984 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1985 (alpha_osf1_init_abi): Do not set call_dummy_address.
1986
ba058b66
DC
19872003-08-27 David Carlton <carlton@kealia.com>
1988
1989 From Randolph Chung <tausq@debian.org>:
1990 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1991 compiles with -Wformat-nonliteral -Werror.
1992
87f84c9d
JB
19932003-08-26 Jim Blandy <jimb@redhat.com>
1994
1995 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1996 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1997 bfd_lookup_symbol, since we only want symbols in code sections.
1998 (look_for_base): Pass zero as the SECT_FLAGS argument to
1999 bfd_lookup_symbol, since we're not concerned about which section
2000 the symbol is in.
2001
102d615a
JJ
20022003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2003
2004 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
2005 we are frameless or the return address register is already known.
2006
cc7ad3ea
AC
20072003-08-26 Andrew Cagney <cagney@redhat.com>
2008
2009 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2010 in size. Add comments.
2011
af8b88dd
JJ
20122003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2013
2014 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
2015 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
2016
e0a4f5a1
JM
20172003-08-26 Jason Merrill <jason@redhat.com>
2018
2019 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2020 case out of #ifdef MIPS block.
2021
4ae9ee8e
DJ
20222003-08-25 Daniel Jacobowitz <drow@mvista.com>
2023
2024 PR java/1322
2025 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2026 available before calling SECT_OFF_TEXT.
3c164570 2027 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 2028
004d836a
JJ
20292003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2030
2031 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
2032 bof, and nat0-nat127 as pseudo-registers.
2033 (ia64_frame_cache): New struct used to cache frame info.
2034 (ia64_register_reggroup_p): New routine used to override default
2035 register grouping so registers without names are still saved and
2036 restored.
2037 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
2038 pseudo values.
2039 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2040 (ia64_pseudo_register_write): New routine to write pseudo-registers.
2041 (ia64_alloc_frame_cache): New routine to create a new
2042 ia64_frame_cache.
2043 (examine_prologue): Change prototype to add next_frame pointer.
2044 Assume frameless until otherwise proven. Verify that the cfm for
2045 current frame matches the cfm that should occur for the prologues
2046 alloc insn and if equal, mark as not frameless. At end of routine,
2047 if not frameless, calculate registers for the previous frame and store
2048 in the cache, if a cache is provided.
2049 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2050 and pass 0 for next_frame.
2051 (ia64_store_return_value): Change to use convert_typed_floating()
2052 instead of calling ia64_convert_to_raw().
2053 (ia64_extract_return_value): Change to use convert_typed_floating()
2054 instead of calling ia64_convert_to_virtual().
2055 (ia64_frame_cache): New routine to support new frame model.
2056 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2057 (ia64_frame_sniffer): Ditto.
2058 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2059 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2060 (ia64_sigtramp_frame_prev_register): Ditto.
2061 (ia64_sigtramp_frame_sniffer): Ditto.
2062 (ia64_frame_base_address): Ditto.
2063 (ia64_extract_struct_value_address): Change to issue error message.
2064 (ia64_frame_align): New routine to align sp.
2065 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
2066 (ia64_push_arguments): Removed. Logic moved to
2067 ia64_push_dummy_call().
2068 (ia64_push_return_address): Ditto.
2069 (ia64_unwind_dummy_id): New function.
2070 (ia64_unwind_pc): Ditto.
2071 (ia64_convert_register_p): Ditto.
2072 (ia64_register_to_value): Ditto.
2073 (ia64_value_to_register): Ditto.
2074 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2075 (ia64_register_byte, ia64_register_raw_size): Ditto.
2076 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2077 (ia64_saved_pc_after_call): Ditto.
2078 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2079 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2080 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2081 (ia64_register_convert_to_raw): Ditto.
2082 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2083 (ia64_init_extra_frame_info): Ditto.
2084 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2085 (ia64_gdbarch_init): Remove registering of deprecated functions that
2086 are no longer used. Add registration of new gdbarch functions.
2087 Remove registering deprecated_write_sp. Replace
2088 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2089 Delete set_gdbarch_deprecated_register_convertible(),
2090 set_gdbarch_deprecated_register_convert_to_virtual(), and
2091 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2092 set_gdbarch_deprecated_register_size(),
2093 set_gdbarch_deprecated_register_bytes(),
2094 set_gdbarch_pcregnum(),
2095 set_gdbarch_deprecated_register_byte(),
2096 set_gdbarch_deprecated_register_raw_size(),
2097 set_gdbarch_deprecated_max_register_raw_size(),
2098 set_gdbarch_deprecated_register_virtual_size(),
2099 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2100 Replace set_gdbarch_deprecated_extract_return_value() with
2101 set_gdbarch_extract_return_value(). Remove calls to:
2102 set_gdbarch_deprecated_saved_pc_after_call();
2103 set_gdbarch_deprecated_frame_chain(),
2104 set_gdbarch_deprecated_frame_saved_pc(),
2105 set_gdbarch_deprecated_frame_init_saved_regs(),
2106 set_gdbarch_deprecated_get_saved_register(),
2107 set_gdbarch_deprecated_call_dummy_words(),
2108 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2109 set_gdbarch_deprecated_init_extra_frame_info(),
2110 set_gdbarch_deprecated_frame_args_address(),
2111 set_gdbarch_deprecated_frame_locals_address(),
2112 and set_gdbarch_deprecated_dummy_write_sp().
2113 Add set_gdbarch_convert_register_p(),
2114 set_gdbarch_register_to_value(),
2115 set_gdbarch_value_to_register(),
2116 set_gdbarch_push_dummy_call(),
2117 set_gdbarch_frame_align(),
2118 set_gdbarch_unwind_dummy_id(),
2119 set_gdbarch_unwind_pc(),
2120 frame_unwind_append_sniffer(),
2121 frame_unwind_append_sniffer(),
2122 and frame_base_set_default().
2123
aede7613
CD
21242003-08-25 Chris Demetriou <cgd@broadcom.com>
2125
2126 * configure.tgt: Document need for special "mipsisa64" handling.
2127 (mipsisa64*-*-linux64): Handle as target linux64.
2128 (mipsisa64*-*-*): Handle as target embed64.
2129
43c3a82e
MC
21302003-08-18 Michael Chastain <mec@shout.net>
2131
2132 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2133 objfile bug.
2134
6564f77d
MK
21352003-08-24 Mark Kettenis <kettenis@gnu.org>
2136
2de139ba
MK
2137 * i387-tdep.h: Update copyright date.
2138 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2139
6564f77d
MK
2140 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2141 CFLAGS games to reflect reality.
2142
42cf1509
AC
21432003-08-24 Andrew Cagney <cagney@redhat.com>
2144
2145 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2146 GDB_MULTI_ARCH is always non-zero.
2147 * osabi.c (_initialize_gdb_osabi): Ditto.
2148 (gdbarch_init_osabi): Ditto.
2149 * sparc-tdep.c: Ditto for #if code.
2150
0485f6ad
MK
21512003-08-23 Mark Kettenis <kettenis@gnu.org>
2152
2153 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2154 Update comments.
2155 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2156 comments.
2157 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2158 x86_64_supply_fxsave.
2159 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2160 x86_64_supply_fxsave.
2161 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2162 x86_64_supply_fxsave.
2163
c7716133
AJ
21642003-08-23 Andreas Jaeger <aj@suse.de>
2165
2166 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2167 i387_supply_fxsave.
2168
ed504bdf
MK
21692003-08-23 Mark Kettenis <kettenis@gnu.org>
2170
2171 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2172 i387_supply_register.
2173 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2174 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2175 i387_supply_fsave.
2176 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2177 i387_supply_fxsave.
2178 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2179 i387_supply_fsave.
2180 * i386bsd-nat.c (supply_fpregset): Adjust call to
2181 i387_supply_fsave.
2182 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2183 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2184 supply_fpregset.
2185 (store_inferior_registers): Remove extraneous whitespace. Call
2186 i387_fill_fsave instead of fill_fpregset.
2187 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2188 (supply_fpregset): Likewise.
2189 * i386v4-nat.c (supply_fpregset): Adjust call to
2190 i387_supply_fsave.
2191 * i386-interix-nat.c (supply_fpregset): Adjust call to
2192 i387_supply_fsave.
2193 * i386-linux-nat.c (supply_fpregset): Adjust call to
2194 i387_supply_fsave.
2195 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2196 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2197 i387supply_fsave and i387_supply_fxsave.
2198 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2199 Incorporate code from `i387_supply_register.
2200 (i387_supply_register): Remove.
2201 (i387_supply_fxsave): Add `regnum' argument.
2202 Update comments.
2203 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2204 prototype.
2205 (i387_supply_register): remove prototype.
2206 Update comments.
2207
4be5d520
MC
22082003-08-22 Michael Chastain <mec@shout.net>
2209
2210 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2211 Add lines for files in gdb/testsuite/gdb.cp/* that are
2212 still not 8.3 unique.
2213
7ed85d26
DJ
22142003-08-22 Daniel Jacobowitz <drow@mvista.com>
2215
2216 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2217 TYPE_VPTR_FIELDNO is valid.
2218
eb0d3137
MK
22192003-08-19 Mark Kettenis <kettenis@gnu.org>
2220
2221 * utils.c (set_width_command): Remove prototypes.
2222 (set_screen_size): New prototype.
2223 (init_page_info): Simplify by fetching the screen size from
2224 Readline. Call set_screen_size.
2225 (set_screen_size): New function.
2226 (set_width): Add missing whitespace in comment.
2227 (set_width_command): Call set_screen_size.
2228 (set_height_command): New function.
2229 (initialize_utils): Fix formatting. Make "set height" command
2230 call set_height_command. Remove redundant code that turns off
2231 pagination if output isn't a terminal. Remove redundant call to
2232 set_width_command.
2233
7e6d0ac8
MK
22342003-08-22 Mark Kettenis <kettenis@gnu.org>
2235
3567a8ea
MK
2236 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2237 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2238 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2239 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2240 `case' keyword.
2241 (sparc64_register_info): Give the reister with number
2242 SPARC64_STATE_REGNUM a name.
2243 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2244 %asi and %ccr.
2245 (sparc64_push_dummy_call): Take BIAS into account when checking
2246 stcak alignment.
2247 (sparc_software_single_step): Remove assertions that check whether
2248 NPC and NNPC were zero.
2249 (sparc_supply_rwindow): Make public. Merge functionality with
2250 sparc64_supply_rwindow.
2251 (sparc_fill_rwindow): Make public. Merge functionality with
2252 sparc64_fill_rwindow.
2253 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2254 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2255 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2256 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2257 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2258
7e6d0ac8
MK
2259 * reggroups.c: Add whitespace after declarations of local
2260 variables in functions.
2261
72e5f484
MC
22622003-08-21 Michael Chastain <mec@shout.net>
2263
2264 * gdbtypes.h: Change array bound type from an int to enum.
2265
435ac228
AC
22662003-08-21 Andrew Cagney <cagney@redhat.com>
2267
2268 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2269 * config/sparc/tm-sparc.h: Ditto.
2270 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2271 unconditionally.
2272 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2273
0d0e1a63
MK
22742003-07-13 Mark Kettenis <kettenis@gnu.org>
2275
2276 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2277 (register_objfile_data, set_objfile_data, objfile_data): New
2278 prototypes.
2279 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2280 prototypes.
2281 (allocate_objfile): Call objfile_alloc_data.
2282 (free_objfile): Call objfile_free_data.
2283 (struct objfile_data): New.
2284 (struct objfile_data_registration): New.
2285 (struct objfile_data_registry): New.
2286 (objfile_data_registry): New variable.
2287 (register_objfile_data): New function.
2288 (objfile_alloc_data, objfile_free_data): New functions.
2289 (set_objfile_data, objfile_data): New functions.
2290 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2291 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2292 (_initialize_dwarf2_frame): New function and prototype.
2293
d90cf509
AC
22942003-08-21 Andrew Cagney <cagney@redhat.com>
2295
2296 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2297 a specific architecture.
2298 * arch-utils.h (set_architecture_from_arch_mach): Delete
2299 declaration.
2300 (target_architecture_hook): Delete declaration.
2301 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2302 (default_float_format): Assume GDB_MULTI_ARCH.
2303 (default_double_format): Assume GDB_MULTI_ARCH.
2304 (set_endian_from_file): Delete function.
2305 (arch_ok): Delete function.
2306 (set_arch): Delete function.
2307 (set_architecture_from_arch_mach): Delete function.
2308 (set_architecture_from_file): Delete function.
2309 (set_architecture): Assume GDB_MULTI_ARCH.
2310 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2311
8b39fe56
MK
23122003-08-21 Mark Kettenis <kettenis@gnu.org>
2313
2314 Rewrite FreeBSD/sparc64 native configuration.
2315 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2316 * sparc64fbsd-nat.c: New file.
2317 * sparc64fbsd-tdep.c: New file.
2318 * sparc64-tdep.c sparc64-tdep.h: New files.
2319 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2320 sparc64fbsd-tdep.o): New dependencies.
2321 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2322 and sparc64fbsd-tdep.c.
2323 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2324 * config/sparc/fbsd.mh: Remove copyright notice.
2325 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2326 sparcbsd-nat.o.
2327 * config/sparc/fbsd.mt: Remove copyright notice.
2328 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2329 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2330 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2331 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2332 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2333 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2334 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2335 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2336 "sparc/tm-sp64.h".
2337 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2338 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2339
a7f19c79
MC
23402003-08-21 Michael Chastain <mec@shout.net>
2341
2342 * symtab.h: Add doco on the space critical structures and
2343 some measurements of space usage.
2344
da08ea5b
MS
23452003-08-21 Michael Snyder <msnyder@redhat.com>
2346
2347 * tracepoint.c (trace_dump_command): Trace break address
2348 is subject to DECR_PC_AFTER_BREAK.
2349 (set_traceframe_context): Make "trace_line" an int.
2350 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2351
6df2bf50
MS
23522003-08-20 Michael Snyder <msnyder@redhat.com>
2353
2354 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2355 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2356 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2357 argument passing.
2358 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2359 functions, replace sh_push_dummy_call.
2360 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2361
0955bbf0
MC
23622003-08-20 Michael Chastain <mec@shout.net>
2363
2364 * gdbtypes.h (struct main_type): Rearrange to save space.
2365
260a4188
MS
23662003-08-20 Michael Snyder <msnyder@redhat.com>
2367
2368 * trad-frame.c: Comment typo fix.
2369
8baa6f92
KB
23702003-08-20 Michael Snyder <msnyder@redhat.com>
2371 Kevin Buettner <kevinb@redhat.com>
2372
2373 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2374 (frv_frame_init_saved_regs): Add declaration.
2375 (frame_extra_info): Add new field ``saved_regs''.
2376 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2377 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2378 Update frame related code.
2379 (frv_extract_struct_value_address): Adjust formatting.
2380 * Makefile.in (frv-tdep.o): Update dependencies.
2381 * config/frv/tm-frv.h (target_insert_watchpoint)
2382 (target_remove_watchpoint, target_insert_hw_breakpoint)
2383 (target_remove_hw_breakpoint): Delete these macros.
2384 (remote_insert_watchpoint, remote_remove_watchpoint)
2385 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2386 these declarations.
2387
87193939
MC
23882003-08-20 Michael Chastain <mec@shout.net>
2389
2390 * defs.h (ENUM_BITFIELD): New macro.
2391 * symtab.h (ENUM_BITFIELD): Use it.
2392 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2393
062103ba
SA
23942003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2395
2396 * MAINTAINERS (write after approval): Add myself.
2397
8b148df9
AC
23982003-08-18 Andrew Cagney <cagney@redhat.com>
2399
2400 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2401 * gdbarch.h, gdbarch.c: Re-generate.
2402 * infcall.c (call_function_by_hand): Adjust the SP by
2403 frame_red_zone_size before allocating any stack space.
2404 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2405 * x86-64-tdep.c (x86_64_frame_align): New function.
2406 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2407
2408 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2409 Remove code adjusting SP so that it skips over the Red Zone.
2410
954a4db8
MK
24112003-08-18 Mark Kettenis <kettenis@gnu.org>
2412
2413 * NEWS (New native configurations): Mention FreeBSD/amd64.
2414
1a241548
AC
24152003-08-18 Andrew Cagney <cagney@redhat.com>
2416
2417 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2418 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2419 "m68k_frame_p".
2420 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2421
f82b2acd
MK
24222003-08-18 Mark Kettenis <kettenis@gnu.org>
2423
2424 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2425
4056d258
ML
24262003-08-18 Michal Ludvig <mludvig@suse.cz>
2427
2428 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2429 Define.
2430 * i386-linux-nat.c: Include "linux-nat.h".
2431 (child_post_startup_inferior): New function.
2432
99ab4326
MK
24332003-08-18 Mark Kettenis <kettenis@gnu.org>
2434
2435 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2436 at the start of a frameless function. This probably fixes PR
2437 backtrace/1338.
2438
c8d5f0d6
MC
24392003-08-17 Michael Chastain <mec@shout.net>
2440
2441 * symfile.c (find_sym_fns): Remove special case for apollo target.
2442
9016a515
DJ
24432003-08-17 Daniel Jacobowitz <drow@mvista.com>
2444
2445 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2446 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2447 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2448 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2449 (linux_supports_tracevforkdone): New function.
2450 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2451 TRACEVFORKDONE.
2452 (child_follow_fork): Handle vfork.
2453 (linux_handle_extended_wait): Likewise. Also handle exec.
2454 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2455 * NEWS: Mention fork tracing.
2456
c538c11c
DJ
24572003-08-17 Daniel Jacobowitz <drow@mvista.com>
2458
2459 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2460
4de4c07c
DJ
24612003-08-17 Daniel Jacobowitz <drow@mvista.com>
2462
2463 * Makefile.in (i386-linux-nat.o): Update dependencies.
2464 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2465 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2466 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2467 * i386-linux-nat.c: Include "linux-nat.h".
2468 (child_post_startup_inferior): New function.
2469 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2470 * infptrace.c (kill_inferior): Wrap in #ifdef.
2471 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2472 attaching to each LWP.
2473 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2474 (init_lin_lwp_ops): Fill in some more operations.
2475 * linux-nat.h (linux_enable_event_reporting)
2476 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2477 prototypes.
2478 * linux-nat.c (linux_enable_event_reporting): New function.
2479 (child_post_attach, linux_child_post_startup_inferior)
2480 (child_post_startup_inferior, child_follow_fork)
2481 (linux_handle_extended_wait, kill_inferior): New functions.
2482
7996bcec
AC
24832003-08-16 Andrew Cagney <cagney@redhat.com>
2484
2485 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2486 * gdbarch.h, gdbarch.c: Re-generate.
2487
3d48a7a0
MK
24882003-08-16 Mark Kettenis <kettenis@gnu.org>
2489
2490 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2491
7989c619
AC
24922003-08-16 Andrew Cagney <cagney@redhat.com>
2493
2494 * NEWS: Mention that "set prompt-escape-char" was deleted.
2495 * top.c (get_prompt_1): Delete function.
2496 (gdb_prompt_escape):
2497 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2498 prompt-escape-char" command.
2499 (MAX_PROMPT_SIZE): Delete macro.
2500 (get_prompt): Simplify, do not call get_prompt_1.
2501
07978cd8
AC
25022003-08-16 Andrew Cagney <cagney@redhat.com>
2503
2504 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2505 -Werror. -Wformat-nonliteral problems.
2506
3ff7cf9e
JB
25072003-08-15 J. Brobecker <brobecker@gnat.com>
2508
2509 Further multiarching work mostly for hppa64-*-hpux11:
2510 * hppa-tdep.h: New file.
2511 * hppa-tdep.c: #include hppa-tdep.c.
2512 (hppa32_num_regs): Renamed from hppa_num_regs.
2513 (hppa64_num_regs): New constant.
2514 (hppa64_call_dummy_breakpoint_offset): New constant.
2515 (hppa32_call_dummy_length): New constant.
2516 (hppa64_call_dummy_length): New constant.
2517 (hppa32_stack_align): Make name 32bit explicit.
2518 (hppa32_register_virtual_type): Likewise.
2519 (hppa32_extract_return_value): Likewise.
2520 (hppa32_use_struct_convention): Likewise.
2521 (hppa32_store_return_value): Likewise.
2522 (hppa64_register_virtual_type): New function.
2523 (hppa64_extract_return_value): New function.
2524 (hppa64_use_struct_convention): New function.
2525 (hppa64_store_return_value): New function.
2526 (hppa_frame_locals_address): Remove declaration, function does
2527 not exist anymore.
2528 (hppa_register_byte): Add support for PA64 ABI.
2529 (hppa_gdbarch_init): Add support for PA64 ABI.
2530 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2531 Make name 32bit explicit.
2532 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2533 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2534 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2535 (hppa64_hpux_frame_base_before_sigtramp): New function.
2536 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2537 * config/pa/tm-hppa64.h: Remove macros that are no longer
2538 necessary now that the gdbarch vector is properly setup.
2539 Transform some macros into function calls. Some minor cleanup.
2540 * config/pa/tm-hppah.h: Update function calls in macros
2541 following the function renaming in hppa-hpux-tdep.c.
2542 * Makefile.in (hppa_tdep_h): New variable.
2543 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2544
5d05ca6d
MS
25452003-08-14 Michael Snyder <msnyder@redhat.com>
2546
2547 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2548
37ba2569
JB
25492003-08-13 J. Brobecker <brobecker@gnat.com>
2550
2551 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2552 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2553 routine.
2554
aed7f26a
MS
25552003-08-13 Michael Snyder <msnyder@redhat.com>
2556
2557 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2558 (frv_saved_pc_after_call): Use deprecated ftype.
2559 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2560 (frv_remote_translate_xfer_address): Remove.
2561 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2562
752d4ac1
JB
25632003-08-13 J. Brobecker <brobecker@gnat.com>
2564
2565 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2566 initialization after the common gdbarch initialization, not before.
2567
1426ac1d
JB
25682003-08-13 J. Brobecker <brobecker@gnat.com>
2569
2570 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2571 (ADDR_BITS_REMOVE): Remove, redundant.
2572
b6fbdd1d
JB
25732003-08-13 J. Brobecker <brobecker@gnat.com>
2574
2575 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2576 gdbarch method to clear the 2 low bits of text addresses.
2577
44160db3
AC
25782003-08-12 Andrew Cagney <cagney@redhat.com>
2579
2580 * Makefile.in (dsrec.o): Update dependencies.
2581 * dsrec.c: Include "gdb_assert.h".
2582 (make_srec): Use snprintf instead of sprintf, use a literal format
2583 string.
2584
bcf7d3ca
AC
25852003-08-12 Andrew Cagney <cagney@redhat.com>
2586
2587 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2588 FRAME_OBSTACK_ZALLOC.
2589
49ed40de
KB
25902003-08-12 Kevin Buettner <kevinb@redhat.com>
2591
2592 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2593 SSE registers.
2594
b246147c
MK
25952003-08-10 Mark Kettenis <kettenis@gnu.org>
2596
2597 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2598 amd64fbsd_sc_reg_offset): Add extern declarations.
2599 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2600 declarations.
2601
d95fdc0d
BE
26022003-08-11 Ben Elliston <bje@wasabisystems.com>
2603
2604 * MAINTAINERS (write after approval): Update my mail address.
2605
cf6a0e73
AC
26062003-08-10 Andrew Cagney <cagney@redhat.com>
2607
2608 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2609
f837910f
MK
26102003-08-10 Mark Kettenis <kettenis@gnu.org>
2611
e2dbbd2d
MK
2612 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2613 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2614 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2615 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2616 i386bsd_sc_reg_offset): Add extern declarations.
2617 * i386obsd-nat.c: Include "i386-tdep.h"
2618 (_initialize_i386obsd_nat): Remove extern declarations.
2619 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2620 declarations.
2621 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2622 declarations.
2623
f837910f
MK
2624 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2625 instead of frame_read_register.
2626 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2627 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2628 SP_REGNUM.
2629 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2630 instead of frame_unwind_unsigned_register. Use
2631 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2632 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2633 instead of read_register. Use builtin_type_void_data_ptr instead
2634 of builtin_type_void_func_ptr when extracting the address of the
2635 jmp_buf.
2636 (i386_extract_return_value, i386_store_return_value,
2637 i386_pseudo_register_read, i386_pseudo_register_write): Use
2638 register_size instead REGISTER_RAW_SIZE.
2639
edcf254d
AC
26402003-08-10 Andrew Cagney <cagney@redhat.com>
2641
2642 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2643 sprintf. Make "name" constant.
2644
26604a34
MK
26452003-08-10 Mark Kettenis <kettenis@gnu.org>
2646
192285c6
MK
2647 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2648 instead of frame_read_register.
f837910f
MK
2649 (i387_print_float_info): Use get_frame_register and
2650 get_frame_register_unsigned instead of frame_register_read.
192285c6 2651
f0925262
MK
2652 * i386fbsd-nat.c: Include "i386-tdep.h".
2653 (child_resume): Make `eflags' an ULONGEST. Use
2654 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2655 instead of register_read and register_write.
2656
a144416f
MK
2657 * i386bsd-nat.c (fetch_inferior_registers,
2658 store_inferior_registers): Don't use && at the end of a line.
2659 (_initialize_i386bsd_nat): Fix typo.
2660
fec74868
MK
2661 * frame.c (_initialize_frame): Add missing backslash.
2662
87232496
MK
2663 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2664 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2665 and supply_register instead of manipulating the register buffer
2666 directly.
2667
c9b9de0b
MK
2668 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2669 * config/i386/nm-i386sol2.h
2670 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2671
26604a34
MK
2672 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2673 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2674 instructions that GCC likes to mingle into the prologue. Fixes
2675 gdb/1253 and gdb/1255.
2676
25d29d70
AC
26772003-08-09 Andrew Cagney <cagney@redhat.com>
2678
2679 Fix GDB PR cli/926.
2680 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2681 * command.h (add_setshow_uinteger_cmd): Declare.
2682 * frame.c (set_backtrace_cmd): New function.
2683 (show_backtrace_cmd): New function.
2684 * frame.c (_initialize_frame): Replace "set/show
2685 backtrace-below-main" with "set/show backtrace past-main". Add
2686 command "set/show backtrace limit".
2687 (backtrace_past_main): Rename "backtrace_below_main".
2688 (backtrace_limit): New variable.
2689 (get_prev_frame): Update. Check the backtrace_limit.
2690
9ebf4acf
AC
26912003-08-09 Andrew Cagney <cagney@redhat.com>
2692
2693 * defs.h (xstrprintf): Declare.
2694 * utils.c (xstrprintf): New function.
2695 * breakpoint.c (insert_breakpoints): Replace sprintf and
2696 non-literal format strings, with xstrprintf and cleanups.
2697 (delete_breakpoint,breakpoint_re_set): Ditto.
2698 (commands_command, insert_breakpoints): Ditto.
2699 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2700 (break_at_finish_command_1): Ditto.
2701
3771659b
AC
27022003-08-09 Andrew Cagney <cagney@redhat.com>
2703
2704 * MAINTAINERS (language support): List Adam Fedor as Objective C
2705 maintainer.
2706
b4263afa
JB
27072003-08-08 J. Brobecker <brobecker@gnat.com>
2708
2709 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2710 are now multiarched.
2711
d84defb1
JB
27122003-08-08 J. Brobecker <brobecker@gnat.com>
2713
2714 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2715 longer necessary now that hppa64 is partially multiarch'ed.
2716
f786f615
AC
27172003-08-08 Andrew Cagney <cagney@redhat.com>
2718
2719 * interps.c (interp_set): Check for a NULL "old_interp".
2720
c938e9b0
L
27212003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2722
2723 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2724 (install-only): Support DESTDIR.
2725 (uninstall): Likewise.
2726 (install-gdbtk): Likewise.
2727
9a146a11
EZ
27282003-08-08 Elena Zannoni <ezannoni@redhat.com>
2729
2730 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2731 contains something meaningful at all times.
2732
2733Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2734
62599e99 2735 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2736
56296155
BC
2737Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2738
62599e99 2739 * MAINTAINERS (write after approval): Added self.
56296155 2740
9710e734
AC
27412003-08-07 Andrew Cagney <cagney@redhat.com>
2742
2743 * inferior.h (AT_SYMBOL): Define.
2744 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2745 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2746 * mips-tdep.c (mips_call_dummy_address): Delete function.
2747 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2748 set call_dummy_address.
2749
98b3ab73
AC
27502003-08-07 Andrew Cagney <cagney@redhat.com>
2751
2752 * language.c (op_error): Delete function.
2753 (binop_type_check): Delete function.
2754 * language.h (type_op_error, range_op_error): Delete macros.
2755 (op_error): Delete declaration.
2756
2fcf52f0
AC
27572003-08-07 Andrew Cagney <cagney@redhat.com>
2758
2759 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2760
abd4220e 27612003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2762
abd4220e 2763 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2764 (x86_64_push_arguments): Skip the red zone.
abd4220e 2765
9dd5f34f
AC
27662003-08-05 Andrew Cagney <cagney@redhat.com>
2767
2768 * reggroups.c (reggroup_next): Check for the final entry.
2769
e5e78edc
AC
27702003-08-04 Andrew Cagney <cagney@redhat.com>
2771
ab4e3d93
AC
2772 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2773 * cli/cli-script.c (define_command): Call query directly, instead
2774 of passing it a buffer.
2775 * ocd.c (ocd_error): Pass error a constant format string.
2776 * remote-mips.c (mips_error): Use fputs_filtered.
2777
1062ca82
AC
2778 * solib-svr4.c (_initialize_svr4_solib): Update
2779 register_gdbarch_data call.
2780 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2781
fcc1c85c
AC
2782 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2783 (register_gdbarch_data): Delete "free" parameter. Update
2784 comments.
2785 * gdbarch.h, gdbarch.c: Re-generate.
2786 * reggroups.c (_initialize_reggroup): Update.
2787 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2788 * frame-base.c (_initialize_frame_base): Update.
2789 * frame-unwind.c (_initialize_frame_unwind): Update.
2790 * user-regs.c (_initialize_user_regs): Update.
2791 * remote.c (_initialize_remote): Update.
2792 * regcache.c (_initialize_regcache): Update.
2793
116f06ea
AC
2794 * regcache.c (xfree_regcache_descr): Delete function.
2795 (_initialize_regcache): Update call to register_gdbarch_data.
2796 (init_regcache_descr, init_legacy_regcache_descr): Use
2797 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2798
e5e78edc
AC
2799 * remote.c (free_remote_state): Delete function.
2800 (_initialize_remote): Update register_gdbarch_data.
2801 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2802 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2803
6c7d17ba
AC
28042003-08-04 Andrew Cagney <cagney@redhat.com>
2805
2806 * reggroups.c (struct reggroup_el): Define.
2807 (struct reggroups): Delete field "nr_group". Replace array
2808 "group" with a "first" to "last" linked list.
2809 (reggroups_init): Update. Allocate using gdbarch's obstack.
2810 (reggroups_free): Delete function.
2811 (add_group): Update. Add "el" parameter.
2812 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2813 (default_groups): Update.
2814 (reggroup_next): Replace reggroups.
2815 (reggroups_dump): Update.
2816 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2817 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2818 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2819
89b7795b
DJ
28202003-08-04 Daniel Jacobowitz <drow@mvista.com>
2821
2822 * Makefile.in (tui-interp.o): Update dependencies.
2823
306d9ac5
DC
28242003-08-04 David Carlton <carlton@kealia.com>
2825
2826 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2827 to internal_error call.
2828 * source.c (forward_search_command): Add "%s" format argument.
2829 (reverse_search_command): Ditto.
2830 * top.c (quit_confirm): Ditto.
2831 * cli/cli-setshow.c (do_setshow_command): Ditto.
2832 * cp-valprint.c (cp_print_class_method): Replace
2833 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2834 (cp_print_class_member): Ditto.
2835 * event-top.c (command_line_handler): Ditto.
2836 * linux-proc.c (linux_info_proc_cmd): Ditto.
2837 * p-typeprint.c (pascal_type_print_base): Ditto.
2838 * p-valprint.c (pascal_object_print_class_method): Ditto.
2839 (pascal_object_print_class_member): Ditto.
2840 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2841 * remote.c (remote_cisco_section_offsets): Ditto.
2842 * top.c (command_line_input): Ditto.
2843 * utils.c (vwarning,error_stream,quit): Ditto.
2844 * valprint.c (print_floating,print_binary_chars)
2845 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2846
57bfe177
AC
28472003-08-04 Andrew Cagney <cagney@redhat.com>
2848
2849 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2850
e546b999
AC
28512003-08-02 Andrew Cagney <cagney@redhat.com>
2852
2853 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2854 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2855 amd64fbsd-nat.c.
2856
91092ee5
AC
28572003-08-02 Andrew Cagney <cagney@redhat.com>
2858
2859 * Makefile.in: Update all dependencies and definitions.
2860
889f28e2
AF
28612003-08-02 Adam Fedor <fedor@gnu.org>
2862
2863 * linespec.c (is_objc_method_format): New function
2864 (decode_line_1, locate_first_half): Use it.
2865 Fixes PR objc/1298
2866
880bc914
AC
28672003-08-01 Andrew Cagney <cagney@redhat.com>
2868
2869 * NEWS: Mention that m32r is multi-arch.
2870 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2871 * configure.tgt: Recognize m32r-*-*.
2872 * config/m32r/tm-m32r.h: Delete file.
2873 * config/m32r/m32r.mt: New file.
2874 * m32r-rom.c (m32r_upload_command): Use hostent only when
2875 gethostname succeeds, in order to avoid a compilation
2876 warning.
2877 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2878 compiler warning.
2879
19f59343
MS
28802003-08-01 Michael Snyder <msnyder@redhat.com>
2881
2882 * sh-tdep.c (sh_frame_align): New gdbarch method.
2883 (sh_gdbarch_init): Set up frame_align method.
2884
4e7d7511
MS
28852003-07-31 Michael Snyder <msnyder@redhat.com>
2886
2887 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2888 which is already covered by the new frames infrastructure.
2889
63022984
AC
28902003-07-31 Andrew Cagney <cagney@redhat.com>
2891
2892 * user-regs.c (struct user_reg): Add "next" link.
2893 (struct user_regs): Replace "user" with "first" and "last" links.
2894 (append_user_reg): Add pre-allocated "reg" parameter.
2895 (builtin_user_regs): Provide initial value for "last".
2896 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2897 (user_regs_init): Allocate memory from the gdbarch obstack.
2898 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2899 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2900 linked list.
2901 (usernum_to_user_reg): New function.
2902 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2903 (value_of_user_reg): Use usernum_to_user_reg.
2904 (user_regs_free): Delete function.
2905 (_initialize_user_regs): Update register_gdbarch_data call.
2906
7cf6e574
DJ
29072003-07-31 Daniel Jacobowitz <drow@mvista.com>
2908
2909 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2910
c48a845b
MS
29112003-07-30 Michael Snyder <msnyder@redhat.com>
2912
4e7d7511 2913 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2914 * infcall.c (call_function_by_hand): Pass struct_addr to
2915 value_being_returned.
2916 * infcmd.c (print_return_value): Pass zero as struct_addr.
2917 * values.c (value_being_returned): If struct_addr is passed,
2918 use it instead of trying to recover it from the inferior.
2919
f0d8db19
KB
29202003-07-30 Kevin Buettner <kevinb@redhat.com>
2921
2922 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2923 the prologue analyzer won't need to attempt to extract the pc
2924 value from the woefully incomplete dummy frame.
2925 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2926 possible. Disable code which modifies the frame.
2927
e5c113a1
AC
29282003-07-28 Andrew Cagney <cagney@redhat.com>
2929
2930 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2931 to level 2.
2932 (annotate_breakpoints_table, annotate_record): Ditto.
2933 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2934 (annotate_field_name_end, annotate_field_value): Ditto.
2935 (annotate_field_end, annotate_frame_source_begin): Ditto.
2936 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2937 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2938 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2939 (annotate_frame_address_end, annotate_frame_address): Ditto.
2940 (annotate_frame_args, annotate_frame_end): Ditto.
2941 (annotate_frame_where, annotate_arg_begin): Ditto.
2942 (annotate_arg_name_end, annotate_arg_value): Ditto.
2943 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2944 (annotate_function_call, annotate_signal_name): Ditto.
2945 (annotate_signal_string, annotate_signal_name_end): Ditto.
2946 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2947 (annotate_value_begin, annotate_value_history_value): Ditto.
2948 (annotate_value_history_end, annotate_value_end): Ditto.
2949 (annotate_display_begin, annotate_display_number_end): Ditto.
2950 (annotate_display_format, annotate_display_expression): Ditto.
2951 (annotate_display_expression_end, annotate_display_value): Ditto.
2952 (annotate_display_end, annotate_array_section_begin): Ditto.
2953 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2954 (annotate_elt, annotate_array_section_end): Ditto.
2955
bb1db049
AC
29562003-07-28 Andrew Cagney <cagney@redhat.com>
2957
2958 * regcache.c (struct regcache_descr): Update comments on
2959 nr_raw_registers.
2960 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2961 sizeof_raw_register_valid_p.
2962 (init_regcache_descr): Set nr_raw_registers and
2963 sizeof_raw_register_valid_p before calling
2964 init_legacy_regcache_descr.
2965
20e6603c
AC
29662003-07-28 Andrew Cagney <cagney@redhat.com>
2967
2968 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2969 MOD NUM_REGS.
2970
db742940
DJ
29712003-07-28 Daniel Jacobowitz <drow@mvista.com>
2972
2973 * thread.c (info_threads_command): Use get_selected_frame ().
2974 Check that there is at least one non-sentinel frame.
2975
ce7f4371
SC
29762003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2977
2978 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2979 (m68hc11_pop_frame): Remove.
2980 (m68hc11_frame_saved_pc): Remove.
2981 (m68hc11_frame_chain): Remove.
2982 (m68hc11_frame_init_saved_regs): Remove.
2983 (m68hc11_init_extra_frame_info): Remove.
2984 (m68hc11_store_struct_return): Remove.
2985 (m68hc11_saved_pc_after_call): Remove.
2986
1ea653ae
SC
29872003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2988
2989 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2990 frame unwind information.
2991 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2992 and adapted for frame unwinding.
2993 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2994 (m68hc11_unwind_pc): New function.
2995 (m68hc11_frame_unwind_cache): New function to analyze frames.
2996 (m68hc11_frame_this_id): New function to create new frame struct.
2997 (m68hc11_frame_prev_register): New function to unwind a register from
2998 the frame.
2999 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3000 (m68hc11_frame_p): New function for the above.
3001 (m68hc11_frame_base_address): New function to return fp of frame.
3002 (m68hc11_frame_args_address): Update for frame.
3003 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3004 (m68hc11_unwind_sp): New function.
3005 (m68hc11_unwind_dummy_id): New function.
3006 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3007 calls.
3008
c8a7f6ac
SC
30092003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3010
3011 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3012 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3013 when we are beyond the current pc.
3014
3dc990bf
SC
30152003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3016
3017 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3018 from m68hc11_push_arguments.
3019 (m68hc11_push_arguments): Remove.
3020 (m68hc11_push_return_address): Remove.
3021 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3022 handlers; remove deprecated_extra_stack_alignment_needed.
3023
222e5d1d
AC
30242003-07-27 Andrew Cagney <cagney@redhat.com>
3025
3026 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3027 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3028 REAL_PC and not the pointer.
3029 * hppa-hpux-tdep.c: Include frame.h
3030
a7e9a47e
AC
30312003-07-27 Andrew Cagney <cagney@redhat.com>
3032
3033 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3034 GDB_MULTI_ACH_PARTIAL.
3035
7e3dd49e
AC
30362003-07-27 Andrew Cagney <cagney@redhat.com>
3037
3038 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3039 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3040 operator at start and not end of line.
3041 (decode_prologue): Ditto.
3042 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3043 frame_unwind_register_unsigned instead of
3044 frame_unwind_unsigned_register.
3045 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3046 read_register.
3047 (m32r_push_dummy_call): Use register_size instead of
3048 REGISTER_RAW_SIZE.
3049 (m32r_frame_sniffer): Replace m32r_frame_p.
3050 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3051 * m32r-rom.c (report_transfer_performance): Delete extern
3052 declaration.
3053 (m32r_load, m32r_upload_command): Use print_transfer_performance
3054 instead of report_transfer_performance.
3055 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3056 / add_show_from_set.
3057
0880807f
AC
30582003-07-26 Andrew Cagney <cagney@redhat.com>
3059
3060 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3061 store_return_value and extract_struct_value_address.
3062
64ae9269
DJ
30632003-07-26 Daniel Jacobowitz <drow@mvista.com>
3064
3065 PR c++/1267
3066 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3067 NULL, default to the section containing PC.
3068
e286caf2
SC
30692003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3070
3071 * NEWS: Mention "regs" deprecated for m68hc11 too.
3072
3073 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3074 (m68hc11_print_register): New function to print out one register.
3075 (m68hc11_print_registers_info): New function to print registers.
3076 (show_regs): Deprecate and use the above.
3077 (m68hc11_gdbarch_init): Install the print_registers_info.
3078
705b278b
JJ
30792003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3080
3081 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3082 that we have a SIGTRAP before returning non-zero.
3083
63cd4198
EZ
30842003-07-23 Michal Ludvig <mludvig@suse.cz>
3085 Elena Zannoni <ezannoni@redhat.com>
3086
3087 * linespec.c (decode_line_2): Avoid crash if
3088 find_function_start_sal() returns empty record.
3089
6926787d
AS
30902003-07-23 Andreas Schwab <schwab@suse.de>
3091
3092 * ia64-tdep.c (ia64_print_insn): New function.
3093 (ia64_gdbarch_init): Set print_insn to it.
3094 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3095 deprecated_tm_print_insn_info.
3096
708cc1b6
MS
30972003-07-22 Michael Snyder <msnyder@redhat.com>
3098
3099 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3100 handle 8-bit returns (long long).
3101 (h8300h_extract_return_value): Ditto.
3102 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3103
aebd7893
AC
31042003-07-22 Andrew Cagney <cagney@redhat.com>
3105
3106 * gdbarch.c Include "gdb_obstack.h".
3107 (struct gdbarch): Add an "obstack".
3108 (alloc_gdbarch_data): Allocate the gdbarch data using
3109 GDBARCH_OBSTACK_CALLOC.
3110 (free_gdbarch_data): Delete function.
3111 (gdbarch_obstack_zalloc): New function.
3112 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3113 Assert that the architecture is not initialized.
3114 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3115 vector from the obstack.
3116 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3117 architecture obstack.
3118 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3119 (set_gdbarch_data): Assert that the data is not initialized.
3120 (struct gdbarch_data): Delete member "free".
3121 (register_gdbarch_data): Do not initialize "free".
3122 * gdbarch.h, gdbarch.c: Re-generate.
3123
153721e6
AC
31242003-07-22 Andrew Cagney <cagney@redhat.com>
3125
3126 * configure.in (build_warnings): Add -Wformat-nonliteral.
3127 * configure: Re-generate.
3128
c193f044 31292003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
3130
3131 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 3132
c3228f12
EZ
31332003-07-22 Elena Zannoni <ezannoni@redhat.com>
3134
3135 * findvar.c (read_var_value): Remove case for thread local storage
3136 variables. It is now entirely handled by the dwarf2 location
3137 expression code.
3138 * printcmd.c (address_info): Ditto.
3139 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3140 enumeration value.
3141 (struct symbol): Remove objfile field, which was used by
3142 LOC_THREAD_LOCAL_STATIC only.
3143 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3144 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3145 usage of objfile pointer.
3146 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3147 thread local variables.
3148 Add include of objfiles.h.
3149 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3150 storage variables.
3151 * Makefile.in (dwarf2loc.o): Update dependencies.
3152
aef9bcd2
AC
31532003-07-22 Andrew Cagney <cagney@redhat.com>
3154
3155 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3156 get_frame_base.
3157 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3158 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3159 (struct value): Add opaque declaration.
3160 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3161
d95a8903
AC
31622003-07-21 Andrew Cagney <cagney@redhat.com>
3163
3164 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3165 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3166
4db73d49
SC
31672003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3168
3169 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3170 regcache_cooked_read_unsigned instead of read_register.
3171 (m68hc11_saved_pc_after_call): Likewise.
3172 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3173 instead of write_register.
3174 (m68hc11_register_type): New function.
3175 (m68hc11_register_virtual_type): Remove.
3176 (m68hc11_store_return_value): Convert to use the regcache.
3177 (m68hc11_extract_struct_value_address): Likewise.
3178 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3179 m68hc11_register_type; undeprecate store_return_value and
3180 extract_struct_value_address.
3181
ef2b8fcd
SC
31822003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3183
3184 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3185 and translate to use regcache.
3186 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3187
625b0b97
AC
31882003-07-18 Andrew Cagney <cagney@redhat.com>
3189
3190 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3191 * gdbarch.h, gdbarch.c: Re-generate.
3192 * i386-tdep.c (i386_gdbarch_init): Do not set
3193 DWARF2_BUILD_FRAME_INFO.
3194 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3195 unconditionally.
3196 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3197 DWARF2_BUILD_FRAME_INFO.
3198
22b0d388
AC
31992003-07-18 Andrew Cagney <cagney@redhat.com>
3200
3201 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3202 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3203
1ce5d6dd
AC
32042003-07-18 Andrew Cagney <cagney@redhat.com>
3205
3206 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3207 frame_unwind_address_in_block, instead of frame_pc_unwind.
3208 (dwarf2_frame_cache): Ditto.
3209
e6e5e94c
AC
32102003-07-18 Andrew Cagney <cagney@redhat.com>
3211
3212 * user-regs.h (struct gdbarch): Declare opaque.
3213 * ui-out.h (struct ui_file): Declare opaque.
3214 * dwarf2-frame.h (struct frame_info): Declare opaque.
3215
5483d879
KW
32162003-07-18 Kris Warkentin <kewarken@qnx.com>
3217
3218 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3219 #include "...".
3220 (procfs_meminfo): Change strerror to safe_strerror.
3221 (procfs_can_run): Remove K&R badness.
3222
278a7cf7
MS
32232003-07-17 Michael Snyder <msnyder@redhat.com>
3224
3225 * remote-sim.c: Comment typo fix.
3226
606e3b82
AC
32272003-07-17 Andrew Cagney <cagney@redhat.com>
3228
3229 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3230 configure.
3231 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3232 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3233 GDB_MULTI_ARCH_PARTIAL.
3234
c43af07c
EZ
32352003-07-17 Elena Zannoni <ezannoni@redhat.com>
3236
3237 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3238 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3239 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3240
3b85b0f1
TR
32412003-07-16 Theodore A. Roth <troth@openavr.org>
3242
3243 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3244 found.
3245 (avr_frame_unwind_cache): Don't unwind FP for main.
3246 Update a comment.
3247 Save the computed prev_sp.
3248 (avr_saved_regs_unwinder): Remove function.
3249 (avr_frame_prev_register): Use PC unwind logic from
3250 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3251
336d1bba
AC
32522003-07-16 Andrew Cagney <cagney@redhat.com>
3253
3254 * frame-base.h (frame_base_p_ftype): Delete definition.
3255 (frame_base_append_predicate): Delete declaration.
3256 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3257 (frame_unwind_append_predicate): Delete declaration.
3258 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3259 (append_predicate): Delete parameter "p".
3260 (frame_unwind_append_predicate): Delete function.
3261 (frame_unwind_append_sniffer): Update call to append_predicate.
3262 (frame_unwind_free): Delete function.
3263 (_initialize_frame_unwind): Pass NULL as "free" to
3264 register_gdbarch_data.
3265 (frame_unwind_init): Append the dummy_frame_sniffer.
3266 (frame_unwind_find_by_frame): Simplify.
3267 * frame-base.c (struct frame_base_table): Delete field "p".
3268 (append_predicate): Delete parameter "p".
3269 (frame_base_append_predicate): Delete function.
3270 (frame_base_append_sniffer): Update call to append_predicate.
3271 (frame_base_free): Delete function.
3272 (frame_base_find_by_frame): Simplify.
3273 (_initialize_frame_base): Pass NULL as "free" to
3274 register_gdbarch_data.
3275 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3276 (x86_64_sigtramp_frame_sniffer): Replace
3277 "x86_64_sigtramp_frame_p".
3278 (x86_64_init_abi): Set the frame unwind sniffers.
3279 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3280 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3281 (m68k_gdbarch_init): Set the frame unwind sniffers.
3282 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3283 "i386_sigtramp_frame_p".
3284 (i386_frame_sniffer): Replace "i386_frame_p".
3285 (i386_gdbarch_init): Set the frame unwind sniffers.
3286 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3287 (avr_gdbarch_init): Set the frame unwind sniffers.
3288 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3289 "alpha_sigtramp_frame_p"
3290 (alpha_heuristic_frame_sniffer): Replace
3291 "alpha_heuristic_frame_p".
3292 (alpha_gdbarch_init): Set the frame unwind sniffers.
3293 (alpha_dwarf2_init_abi): Ditto.
3294 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3295 "alpha_debug_frame_p".
3296 (alpha_mdebug_frame_base_sniffer): Replace
3297 "alpha_mdebug_frame_base_p".
3298 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3299 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3300 (d10v_gdbarch_init): Set the frame unwind sniffer.
3301 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3302 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3303 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3304 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3305 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3306 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3307
48db5a3c
CV
33082003-07-16 Michael Snyder <msnyder@redhat.com>
3309
3310 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3311 should go thru sh_dsp_register_sim_regno, else the dsp regs
3312 will not get the right values.
3313
33142003-07-16 Corinna Vinschen <vinschen@redhat.com>
3315
3316 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3317 deprecated_store_floating by call to store_typed_floating.
3318 (sh_sh4_register_convert_to_raw): Substitute call to
3319 deprecated_extract_floating by call to extract_typed_floating.
3320
33212003-07-16 Corinna Vinschen <vinschen@redhat.com>
3322
3323 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3324
33252003-07-16 Corinna Vinschen <vinschen@redhat.com>
3326
3327 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3328 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3329 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3330 as possible.
3331 (do_pseudo_register): Remove.
3332 (sh_push_dummy_code): New function.
3333 (sh64_store_struct_return): Rename from sh_store_struct_return.
3334 Only called for sh64 now.
3335 (sh_extract_struct_value_address): Regcache'ify.
3336 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3337 and accomodate new tasks.
3338 (sh64_push_return_address): Rename from sh_push_return_address.
3339 Only called for sh64 now.
3340 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3341 Regcache'ify.
3342 (sh3e_sh4_extract_return_value): Regcache'ify.
3343 (sh_default_store_return_value): Ditto.
3344 (sh3e_sh4_store_return_value): Ditto.
3345 (sh_default_register_byte): Remove.
3346 (sh_sh4_register_byte): Remove.
3347 (sh_default_register_raw_size): Remove.
3348 (sh_sh4_register_raw_size): Remove.
3349 (sh_register_virtual_size): Remove.
3350 (sh_sh3e_register_virtual_type): Remove.
3351 (sh_sh3e_register_type): New function.
3352 (sh_sh4_register_virtual_type): Remove.
3353 (sh_sh4_register_type): New function.
3354 (sh_default_register_virtual_type): Remove.
3355 (sh_default_register_type): New function.
3356 (do_fv_register_info): Add parameters to accomodate call from
3357 sh_print_registers_info.
3358 (do_dr_register_info): Ditto.
3359 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3360 Add parameters to accomodate call from sh_print_registers_info.
3361 (sh_do_fp_register): Ditto.
3362 (sh64_do_pseudo_register): Call do_dr_register_info,
3363 do_fv_register_info and sh_do_fp_register with default parameters.
3364 (sh_do_register): Add parameters to accomodate call from
3365 sh_print_registers_info.
3366 (sh_print_register): Ditto.
3367 (sh_print_registers_info): Rename from sh_do_registers_info.
3368 Add parameters to be used as gdbarch_print_registers_info
3369 implementation. Accomodate removed do_pseudo_register function
3370 pointer.
3371 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3372 function pointer. Call sh_print_register with default parameters.
3373 (sh64_do_registers_info): Call sh_print_registers_info instead of
3374 sh_do_registers_info.
3375 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3376 detection of deprecated vs. non-deprecated functionality.
3377 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3378 function pointer assignments by direct function calls.
3379
e8a89fe2
AC
33802003-07-15 Andrew Cagney <cagney@redhat.com>
3381
3382 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3383 (frame_register_unwind, create_new_frame): Ditto.
3384 (legacy_get_prev_frame, get_frame_type): Ditto.
3385 (get_frame_base_address): Use frame_base_find_by_frame.
3386 (get_frame_locals_address): Use frame_base_find_by_frame.
3387 (get_frame_args_address): Use frame_base_find_by_frame.
3388 * frame-base.h (frame_base_sniffer_ftype): Declare.
3389 (frame_base_append_sniffer): Declare.
3390 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3391 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3392 (frame_base_append_sniffer): New function.
3393 (frame_base_append_predicate): Add a NULL sniffer.
3394 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3395 (struct frame_base_table): Add "sniffer".
3396 (frame_base_free): Free the "sniffer" table.
3397 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3398 (frame_unwind_append_sniffer): Declare.
3399 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3400 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3401 (struct frame_unwind_table): Add "sniffer", delete "middle".
3402 (append_predicate): Add "sniffer" parameter, append the sniffer.
3403 (frame_unwind_init): Update append_predicate call.
3404 (frame_unwind_append_sniffer): New function.
3405 (frame_unwind_append_predicate): Update append_predicate call.
3406 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3407
0714963c
AC
34082003-07-15 Andrew Cagney <cagney@redhat.com>
3409
3410 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3411 before code inhibiting repeated unwind attempts. Add to
3412 commentary on that test's problems.
3413 * blockframe.c (inside_main_func): Look for "main" in the minimal
3414 symbol table.
3415 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3416 identical.
3417
d9170e22
AC
34182003-07-15 Andrew Cagney <cagney@redhat.com>
3419
3420 * complaints.c (struct explanation): Define.
3421 (struct complaints): Change type of "explanation" to "struct
3422 explanation".
3423 (symfile_explanations): Convert to a "struct explanation" table.
3424 (vcomplaint): Update.
3425
eba29c8c
ML
34262003-07-15 Michal Ludvig <mludvig@suse.cz>
3427
3428 * x86-64-linux-nat.c (regmap): Removed.
3429 (supply_gregset, fill_gregset): Call
3430 x86_64_linux_(fill,supply)_gregset functions.
3431 * x86-64-linux-tdep.c (USER_*): New defines.
3432 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3433 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3434 New functions.
3435 (fetch_core_registers): Ditto.
3436 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3437 * x86-64-linux-tdep.h: New file.
3438 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3439 and core-regset.o.
3440 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3441
68cc0bfb
MK
34422003-07-13 Mark Kettenis <kettenis@gnu.org>
3443
88a115f7
MK
3444 * x86-64-tdep.c (x86_64_store_return_value): Use
3445 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3446
68cc0bfb
MK
3447 * configure.host: Add x86_64-*-freebsd*.
3448 * configure.tgt: Add x86_64-*-freebsd*.
3449 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3450 * amd64fbsd-nat.c: New file.
3451 * amd64fbsd-tdep.c: New file.
3452 * config/i386/nm-fbsd64.h: New file.
3453 * config/i386/fbsd64.mh: New file.
3454 * config/i386/fbsd64.mt: New file.
3455
138e7be5
MK
34562003-07-11 Mark Kettenis <kettenis@gnu.org>
3457
3458 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3459 `sc_regs_offset' and `sc_fpregs_offset'.
3460 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3461 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3462 (alpha_sigtramp_register_address): Rewrite to use new members of
3463 `struct gdbarch_tdep'.
3464 (alpha_gdbarch_init): Initialize new members of struct
3465 gdbarch_tdep'.
3466 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3467 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3468 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3469 (alphafbsd_pc_in_sigtramp): Implement.
3470 (alphafbsd_sigtramp_offset): New function.
3471 (alphafbsd_sigcontext_addr): New function.
3472 (alphafbsd_init_abi): Initialize signal trampoline related members
3473 of `struct gdbarch_tdep'.
3474 (_initialize_alphafbsd_tdep): Add prototype.
3475
95303a68
TR
34762003-07-11 Theodore A. Roth <troth@openavr.org>
3477
ba292e4c
TR
3478 * Makefile.in (install-only): Quote sed expression when generating
3479 transformed_name.
95303a68 3480
6896c0c7
RH
34812003-07-11 Richard Henderson <rth@redhat.com>
3482
3483 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3484 * dwarf2-frame.c: Include complaints.h.
3485 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3486 variable initialization; return NULL on error.
3487 (decode_frame_entry): New.
3488
8edd5d01
AC
34892003-07-11 Andrew Cagney <cagney@redhat.com>
3490
c4a09524
AC
3491 * frame.h (frame_address_in_block): Delete declaration.
3492 * blockframe.c (frame_address_in_block): Delete function.
3493 (get_frame_block): Use get_frame_address_in_block.
3494 (block_innermost_frame): Ditto.
3495 * stack.c (print_frame, backtrace_command_1): Ditto.
3496
8edd5d01
AC
3497 * frame.h (get_frame_address_in_block): Declare.
3498 (frame_unwind_address_in_block): Declare.
3499 * frame.c (frame_unwind_address_in_block): New function.
3500 (get_frame_address_in_block): New function.
3501
f7968451
AC
35022003-07-10 Andrew Cagney <cagney@redhat.com>
3503
3504 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3505 pre-default. Note: re-generate has no effect.
3506
ae99b398
AC
35072003-07-10 Andrew Cagney <cagney@redhat.com>
3508
3509 * gdbarch.sh: When a variable, but not a function, compare against
3510 0. Fix problem in previous patch.
3511 * gdbarch.c: Re-generate.
3512
956ac328
AC
35132003-07-10 Andrew Cagney <cagney@redhat.com>
3514
3515 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3516 functions against NULL, not 0.
3517 * gdbarch.c: Re-generate.
3518
287c3240
FF
35192003-07-10 Fred Fish <fnf@ninemoons.com>
3520
3521 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3522 null string instead of a null pointer.
3523 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3524
32f63c4b
MS
35252003-07-09 Michael Snyder <msnyder@redhat.com>
3526
3527 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3528
402ecd56
MK
35292003-07-09 Mark Kettenis <kettenis@gnu.org>
3530
3531 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3532 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3533 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3534 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3535 * x86-64-tdep.c: ... from here.
3536
c481dac7
AS
35372003-07-09 Andreas Schwab <schwab@suse.de>
3538
3539 * m68k-tdep.h (enum struct_return): Define.
3540 (struct gdbarch_tdep): Add struct_return.
3541 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3542 bytes are padded to the right, not to the left. Pass struct value
3543 address in register %a1, not on stack.
3544 (m68k_use_struct_convention): New function.
3545 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3546 struct_return in tdep to pcc_struct_return.
3547 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3548 reg_struct_return.
3549
64176fa3
JB
35502003-07-09 Joel Brobecker <brobecker@gnat.com>
3551
3552 * somread.c (som_symfile_offsets): Fix compilation error.
3553
96a4ee76
AC
35542003-07-09 Andrew Cagney <cagney@redhat.com>
3555
3556 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3557 Add comments about the checks.
3558
1517c6d1
AC
35592003-07-08 Andrew Cagney <cagney@redhat.com>
3560
3561 * Makefile.in: Make dependency section headers consistent.
3562 (config_h): Move to $BUILD headers section.
3563 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3564 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3565 (ada-exp.tab.c): Move to YACC/LEX section.
3566 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3567 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3568
dc5dd1eb
KW
35692003-07-08 Kris Warkentin <kewarken@qnx.com>
3570
3571 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
3572 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3573 of strerror with safe_strerror, use ISO C function definitions,
3574 and replace instances of sprintf with snprintf.
dc5dd1eb 3575
612dde91
AC
35762003-07-07 Andrew Cagney <cagney@redhat.com>
3577
3578 * frame.c (get_prev_frame): Enable check for identical frames.
3579 Update comments. Update error messages.
3580
492c11d3
JB
35812003-07-07 Joel Brobecker <brobecker@gnat.com>
3582
3583 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3584
376a5a49
JB
35852003-07-07 Joel Brobecker <brobecker@gnat.com>
3586
3587 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3588 sort_symtab_syms, no longer necessary.
3589
22b4a9ad
JB
35902003-07-07 Joel Brobecker <brobecker@gnat.com>
3591
3592 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3593
5bbcb741
JB
35942003-07-07 Joel Brobecker <brobecker@gnat.com>
3595
3596 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3597 (mips_register_byte): Likewise.
3598
c139e7d9
DJ
35992003-07-07 Daniel Jacobowitz <drow@mvista.com>
3600
3601 * Makefile.in (sparc_tdep_h): New.
3602 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3603 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3604 * sparc-linux-nat.c: Include "sparc-tdep.h".
3605 * sparc-nat.c: Likewise.
3606 * sparc-tdep.c: Likewise.
3607 * sparc64nbsd-nat.c: Likewise.
3608 * sparcnbsd-nat.c: Likewise.
3609 * sparcnbsd-tdep.c: Likewise.
3610 * sparc-tdep.h: New file.
3611 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3612 and sparc_npc_regnum.
3613
fd8f87c5
DJ
36142003-07-07 Daniel Jacobowitz <drow@mvista.com>
3615
3616 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3617 (mips_linux_cannot_store_register): List supported instead of
3618 unsupported registers.
3619
13adf674
DJ
36202003-07-07 Daniel Jacobowitz <drow@mvista.com>
3621
3622 * disasm.c (dump_insns): Separate instructions from addresses.
3623
8de307e0
AS
36242003-07-07 Andreas Schwab <schwab@suse.de>
3625
3626 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3627 dependencies.
3628 * m68k-tdep.c (NUM_FREGS): Delete.
3629 (SIG_PC_FP_OFFSET): Delete.
3630 (TARGET_M68K): Delete.
3631 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3632 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3633 P_MOVEL_SP, P_MOVEML_SP): Define.
3634 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3635 P_TRAP): Delete.
3636 (m68k_register_raw_size): Delete.
3637 (m68k_register_virtual_size): Delete.
3638 (m68k_register_type): Renamed from m68k_register_virtual_type and
3639 add gdbarch argument.
3640 (m68k_store_struct_return): Delete.
3641 (m68k_deprecated_extract_return_value): Delete.
3642 (m68k_deprecated_extract_struct_value_address): Delete.
3643 (m68k_frame_chain): Delete.
3644 (m68k_frame_saved_pc): Delete.
3645 (m68k_fix_call_dummy): Delete.
3646 (m68k_push_dummy_frame): Delete.
3647 (m68k_pop_frame): Delete.
3648 (m68k_extract_return_value): New function.
3649 (m68k_store_return_value): Rewrite using regcache.
3650 (m68k_extract_struct_value_address): Rewrite using regcache.
3651 (m68k_push_dummy_call): New function.
3652 (struct m68k_frame_cache): Define.
3653 (m68k_alloc_frame_cache): New function.
3654 (m68k_analyze_frame_setup): New function.
3655 (m68k_analyze_register_saves): New function.
3656 (m68k_analyze_prologue): New function.
3657 (m68k_skip_prologue): Rewrite using above functions.
3658 (m68k_unwind_pc): New function.
3659 (m68k_frame_cache): New function.
3660 (m68k_frame_this_id): New function.
3661 (m68k_frame_prev_register): New function.
3662 (m68k_frame_unwind): New variable.
3663 (m68k_frame_p): New function.
3664 (m68k_sigtramp_frame_cache): New function.
3665 (m68k_sigtramp_frame_this_id): New function.
3666 (m68k_sigtramp_frame_prev_register): New function.
3667 (m68k_sigtramp_frame_unwind): New variable.
3668 (m68k_sigtramp_frame_p): New function.
3669 (m68k_frame_base_address): New function.
3670 (m68k_frame_base): New function.
3671 (m68k_unwind_dummy_id): New function.
3672 (fill_gregset): Use regcache_collect.
3673 (fill_fpregset): Likewise.
3674 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3675 defined.
3676 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3677 deprecated_init_frame_pc, deprecated_store_struct_return,
3678 deprecated_extract_return_value, deprecated_store_return_value,
3679 deprecated_frame_chain, deprecated_frame_saved_pc,
3680 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3681 deprecated_register_virtual_size,
3682 deprecated_max_register_raw_size,
3683 deprecated_max_register_virtual_size,
3684 deprecated_register_virtual_type, deprecated_register_size,
3685 deprecated_register_byte, deprecated_register_bytes,
3686 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3687 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3688 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3689 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3690 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3691 deprecated_push_dummy_frame, deprecated_pop_frame,
3692 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3693 only if SYSCALL_TRAP is defined. Set extract_return_value,
3694 store_return_value, extract_struct_value_address, register_type,
3695 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3696 predicates.
3697 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3698 M68K_MAX_REGISTER_SIZE): Define.
3699 (struct m68k_sigtramp_info): Define.
3700 (struct gdbarch_tdep): Add get_sigtramp_info.
3701 * m68klinux-nat.c (fetch_register): Use register_size instead of
3702 REGISTER_RAW_SIZE. Don't put assignment in if.
3703 (store_register): Likewise.
3704 (fetch_inferior_registers): Likewise.
3705 (store_inferior_registers): Likewise.
3706 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3707 (m68k_linux_frame_saved_pc): Delete.
3708 (m68k_linux_sigcontext_reg_offset,
3709 m68k_linux_ucontext_reg_offset): Define.
3710 (m68k_linux_get_sigtramp_info): New function.
3711 (m68k_linux_extract_return_value): Rewrite using regcache.
3712 (m68k_linux_store_return_value): Likewise.
3713 (m68k_linux_extract_struct_value_address): Likewise.
3714 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3715 Don't set deprecated_frame_saved_pc,
3716 deprecated_extract_return_value, deprecated_store_return_value,
3717 deprecated_extract_struct_value_address. Set
3718 extract_return_value, store_return_value,
3719 extract_struct_value_address.
3720
eb8bc282
AC
37212003-07-07 Andrew Cagney <cagney@redhat.com>
3722
3723 * expprint.c: Include "user-regs.h" instead of "frame.h".
3724 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3725 frame_map_regnum_to_name.
3726 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3727 (frame_map_name_to_regnum): Simplify, call
3728 user_reg_map_name_to_regnum.
3729 (frame_map_regnum_to_name): Simplify, call
3730 user_reg_map_regnum_to_name.
3731 (frame_register_unwind): Update.
3732 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3733 (_initialize_frame_reg): Call user_reg_add_builtin.
3734 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3735 (value_of_register): Use value_of_user_reg.
3736 * eval.c (evaluate_subexp_standard): Update.
3737 * parse.c (write_dollar_variable): Update.
3738 * d10v-tdep.c (d10v_print_registers_info): Update.
3739 * infcmd.c (registers_info): Update.
3740 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3741 (builtin_regs_h): Delete macro.
3742 (user_regs_h): Define.
3743 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3744 (builtin-regs.o): Delete target.
3745 (user-regs.o): Specify dependencies.
3746 (expprint.o): Update dependencies.
3747 (findvar.o): Update dependencies.
3748 (frame.o): Update dependencies.
3749 (std-regs.o): Update dependencies.
3750
9f476a01
CF
37512003-07-06 Christopher Faylor <cgf@redhat.com>
3752
3753 * win32-nat.c (solib_symbols_add): Use one variable for all section
3754 address stuff. Pass variable rather than address of variable to
3755 safe_symbol_file_add.
3756
a731b831
AS
37572003-07-06 Andreas Schwab <schwab@suse.de>
3758
3759 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3760
9f83329d
JB
37612003-07-04 Joel Brobecker <brobecker@gnat.com>
3762
3763 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3764
27e28cc5
KW
37652003-07-04 Kris Warkentin <kewarken@qnx.com>
3766
3767 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3768
37692003-07-04 Kris Warkentin <kewarken@qnx.com>
3770
3771 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3772 * config/i386/nto.mh: New file.
3773 * config/i386/nm-nto.h: New file.
3774 * configure.host: Add i[3456]86-*-nto*.
3775
100f2e98
JB
37762003-07-03 Joel Brobecker <brobecker@gnat.com>
3777
3778 * remote-vx.c (vx_add_symbols): Fix compilation error.
3779
e23457df
AC
37802003-07-03 Andrew Cagney <cagney@redhat.com>
3781
3782 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3783 * gdbarch.h, gdbarch.c: Re-generate.
3784 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3785 (legacy_register_name): Declare.
3786 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3787 (REGISTER_NAME): Define.
3788 * sparc-tdep.c (legacy_register_name): New function.
3789 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3790 (REGISTER_NAME): Define.
3791 (hppa64_register_name): Declare.
3792 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3793 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3794 (hppa64_register_name): New function.
3795 (hppa_register_name): New function.
3796 * arch-utils.c (legacy_register_name): Delete.
3797 * arch-utils.h (legacy_register_name): Delete.
3798
38caaeec
DJ
37992003-07-03 Daniel Jacobowitz <drow@mvista.com>
3800
3801 * cli/cli-interp.c (cli_interpreter_resume): Update the
3802 cli_uiout's stream to gdb_stdout.
3803
dadd712e
AC
38042003-07-03 Andrew Cagney <cagney@redhat.com>
3805
3806 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3807 predicate.
3808 * gdbarch.h, gdbarch.c: Re-generate.
3809 * regcache.c (init_regcache_descr): Use legacy code when either
3810 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3811
c7f1390e
DJ
38122003-07-02 Daniel Jacobowitz <drow@mvista.com>
3813
3814 * NEWS: Move "set logging" entry into GDB 6.0 section.
3815
4bc8c588
JB
38162003-07-02 Jim Blandy <jimb@redhat.com>
3817
a9dd42f1
JB
3818 * s390-tdep.c (struct frame_extra_info): new member:
3819 'stack_bought_valid'.
3820 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3821 initialize fextra_info->stack_bought.
3822 (s390_frameless_function_invocation): Don't trust the value of
3823 fextra_info_ptr->stack_bought unless
3824 fextra_info->stack_bought_valid is set.
3825
4bc8c588
JB
3826 New S390 prologue analyzer.
3827 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3828 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3829 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3830 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3831 compute_x_addr, s390_on_stack, s390_store,
3832 s390_get_signal_frame_info): New functions.
3833 (S390_NUM_SPILL_SLOTS): New macro.
3834 (s390_get_frame_info): Rewritten.
3835 (is_arg_reg): Deleted.
3836
3837 Break out the decoding of S/390 instructions into separate
3838 functions, to make it more legible, and easier to check
3839 against the spec.
3840 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3841 is_rx, is_rxe): New functions.
3842 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3843 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3844 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3845 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3846 enums for opcode values. (Is this an improvement?)
3847
fd13a04a
AC
38482003-07-02 Andrew Cagney <cagney@redhat.com>
3849
3850 * i386-tdep.c: Revert change committed as part of trad-frame code
3851 below.
3852
3f8091c1
DJ
38532003-07-02 Daniel Jacobowitz <drow@mvista.com>
3854
3855 * breakpoint.c (insert_catchpoint): Make static.
3856
8dd5115e
AS
38572003-07-02 Andreas Schwab <schwab@suse.de>
3858
3859 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3860 former ia64_push_arguments and ia64_push_return_address, and use
3861 regcache functions instead of read/write_register.
3862 (ia64_gdbarch_init): Set push_dummy_call instead of
3863 deprecated_push_arguments and deprecated_push_return_address.
3864
a2229c23
AJ
38652003-07-01 Andreas Jaeger <aj@suse.de>
3866
3867 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3868 before the call.
3869 Set %rax only to number of SSE registers used.
3870
3b3850e8
AC
38712003-07-01 Andrew Cagney <cagney@redhat.com>
3872
3873 * trad-frame.h: Update comments, a -1 .addr is reserved.
3874 (trad_frame_value_p, trad_frame_addr_p): Declare.
3875 (trad_frame_reg_p): Declare.
3876 (trad_frame_set_value): Rename trad_frame_register_value.
3877 (trad_frame_set_unknown): Declare.
3878 * trad-frame.c (trad_frame_realreg_p): New function.
3879 (trad_frame_addr_p, trad_frame_value_p): New function.
3880 (trad_frame_set_unknown): New function.
3881 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3882 (trad_frame_prev_register): Use trad_frame_realreg_p,
3883 trad_frame_addr_p and trad_frame_value_p.
3884 (trad_frame_set_value): Rename trad_frame_register_value.
3885 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3886 and trad_frame_set_value.
a2229c23 3887
4d819d0e
JB
38882003-06-30 Jim Blandy <jimb@redhat.com>
3889
3890 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3891 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3892 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3893 for 16 registers, and then 32 more bytes.
3894 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3895 New macros.
3896 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3897 Move up in the file, since it's now used by is_simple_arg.
3898 (is_simple_arg): Don't assume registers are four bytes long.
3899 Exclude all double arguments. Extended floats are not simple
3900 args.
3901 (is_power_of_two): New function.
3902 (pass_by_copy_ref): Call is_power_of_two, and check that the
3903 length fits in a register, rather than listing all the acceptable
3904 sizes. Extended floats are not passed by reference.
3905 (s390_push_arguments): Don't assume registers are four bytes long.
3906 Reserve an argument register to point to the buffer for structures
3907 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3908 S390_STACK_FRAME_OVERHEAD.
3909
1ad828f1
AS
39102003-06-30 Andreas Schwab <schwab@suse.de>
3911
3912 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3913 format error message.
3914
39b00981
JB
39152003-06-30 Joel Brobecker <brobecker@gnat.com>
3916
3917 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3918
b2a7f303
DC
39192003-06-30 David Carlton <carlton@kealia.com>
3920
3921 Band-aid for PR c++/1245.
3922 * Makefile.in (cp-support.o): Depend on complaints_h.
3923 * cp-support.c: Include complaints.h. Add declaration for
3924 find_last_component.
3925 (cp_find_first_component): Separate code into
3926 cp_find_first_component_aux.
3927 (cp_find_first_component_aux): Call demangled_name_complaint.
3928 (demangled_name_complaint): New.
3929
a257b5bb
AC
39302003-06-30 Andrew Cagney <cagney@redhat.com>
3931
3932 * remote.c (remote_write_bytes): Explicitly compute and then use
3933 the payload size. Update comments to reflect. Fixes problem of
3934 GDB not sending small packets as found by Fred Fish.
3935
0a2cfde4
AC
39362003-06-30 Andrew Cagney <cagney@redhat.com>
3937
3938 * remote.c (remote_async_wait): Fix -Wformat problem.
3939
3fcb8548
AC
39402003-06-29 Andrew Cagney <cagney@redhat.com>
3941
3942 * remote.c (remote_wait): Call error, and not warning, when the
3943 packet is corrupt.
3944 (remote_async_wait): Ditto.
3945
9f9970a3
DJ
39462003-06-29 Daniel Jacobowitz <drow@mvista.com>
3947
3948 * sparc-tdep.c (sparc_y_regnum): Make external again.
3949
83a8ccca
DJ
39502003-06-29 Daniel Jacobowitz <drow@mvista.com>
3951
3952 * cli/cli-logging.c (pop_output_files): Add void to function
3953 definition.
3954
d2cf594a
AC
39552003-06-29 Andrew Cagney <cagney@redhat.com>
3956
3957 * frame.c (frame_register_unwind): Use unsigned char when dumping
3958 the buffer contents.
3959
0fac0b41
DJ
39602003-06-28 Daniel Jacobowitz <drow@mvista.com>
3961
3962 * cli/cli-logging.c: New file.
3963 * cli-out.c (struct ui_out_data): Add original_stream.
3964 (cli_redirect): New function.
3965 (cli_ui_out_impl): Add cli_redirect.
3966 (cli_out_new): Initialize original_stream.
3967 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3968 (uo_redirect, ui_out_redirect): New.
3969 * ui-out.h (struct ui_out_impl): Add redirect member.
3970 (redirect_ftype): New.
3971 (ui_out_redirect): Add prototype.
3972 * Makefile.in: Add rules for cli-logging.c.
3973 * NEWS: Mention "set logging".
3974
88a07d7c
EZ
39752003-06-27 Elena Zannoni <ezannoni@redhat.com>
3976
3977 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3978
4eb58876
AC
39792003-06-27 Andrew Cagney <cagney@redhat.com>
3980
3981 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3982 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3983 * avr-tdep.c (avr_call_dummy_address): Delete function.
3984 (avr_gdbarch_init): Do not set call_dummy_address.
3985
1549f619
EZ
39862003-06-27 Elena Zannoni <ezannoni@redhat.com>
3987
3988 * symfile.c (syms_from_objfile): Move variables to inner block.
3989 Move the checks for the non-mainline case a bit earlier to avoid
3990 doing some useless computations.
3991
3cb3398d
EZ
39922003-06-27 Elena Zannoni <ezannoni@redhat.com>
3993
3994 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3995
3799ccc6
EZ
39962003-06-26 Elena Zannoni <ezannoni@redhat.com>
3997
3998 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3999 sections.
4000
ce1f6491
MC
40012003-06-26 Michael Chastain <mec@shout.net>
4002
4003 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4004 gdb/testsuite/gdb.c++/pr-1210.exp.
4005
d958dfd0
AC
40062003-06-26 Andrew Cagney <cagney@redhat.com>
4007
4008 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4009 altivec_expression.h and altivec_registers.h.
4010
d31431ed
AC
40112003-06-26 Andrew Cagney <cagney@redhat.com>
4012
4013 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4014 info->mach when MIPS16. Patch suggested by Fred Fish.
4015
714b1282
AC
40162003-06-26 Andrew Cagney <cagney@redhat.com>
4017
4018 * utils.c (internal_vproblem): Print the problem to a reason
4019 buffer and then pass to query. Make the msg variable more local.
4020
42efa47a
AC
40212003-06-26 Andrew Cagney <cagney@redhat.com>
4022
4023 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4024 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4025 * gdbarch.h, gdbarch.c: Re-generate.
4026 * frame-base.c (default_frame_args_address): Update. Use
4027 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4028 not available.
4029 (default_frame_locals_address): Ditto for
4030 DEPRECATED_FRAME_LOCALS_ADDRESS.
4031 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4032 (vax_frame_num_args): Update.
4033 (vax_gdbarch_init): Update.
4034 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4035 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4036 * mcore-tdep.c (mcore_gdbarch_init): Update.
4037 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4038 * ia64-tdep.c (ia64_gdbarch_init): Update.
4039 * symtab.h (address_class): Update comments.
4040 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4041 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4042 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4043 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4044 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4045 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4046 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4047 * alpha-mdebug-tdep.c: Update.
4048 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4049
8ffd9b1b
AJ
40502003-06-26 Andreas Jaeger <aj@suse.de>
4051
4052 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4053 of SSE registers so that varargs functions work. Rework handling
4054 of passing arguments on the stack.
4055 (x86_64_store_return_value): Return double and float values in SSE
4056 register.
4057
e8ac10a6
MC
40582003-06-24 Michael Chastain <mec@shout.net>
4059
4060 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4061 the "constructor breakpoints ignored" bug.
4062
986af8e6
DC
40632003-06-25 David Carlton <carlton@kealia.com>
4064
4065 * MAINTAINERS: Update e-mail address.
4066
d64558a5
JB
40672003-06-24 Jim Blandy <jimb@redhat.com>
4068
e538d2d7
JB
4069 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4070
02631ec0
JB
4071 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4072 function.
4073 (ppc_linux_init_abi): Register it as the
4074 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4075
e716d87a
JB
4076 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4077 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4078 method.
4079
d64558a5
JB
4080 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4081 (ppc64_standard_linkage_target): Use it.
4082
449a5da4
AC
40832003-06-23 Andrew Cagney <cagney@redhat.com>
4084
4085 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4086 for 0 "int0" and 4 "int32" sized registers.
4087 * gdbtypes.c (builtin_type_int0): Define.
4088 (build_gdbtypes): Initialize builtin_type_int0.
4089 * gdbtypes.h (builtin_type_int0): Declare.
4090
b2a02dda
SC
40912003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4092
4093 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4094 as characters are unsigned.
4095
fba3138e
DJ
40962003-06-22 Daniel Jacobowitz <drow@mvista.com>
4097
4098 PR gdb/1179
4099 * dwarfread.c (struct_type): Skip static fields without crashing.
4100
f6c8180b
AC
41012003-06-22 Andrew Cagney <cagney@redhat.com>
4102
4103 GDB 6.0 branch created.
f2c06f52
AC
4104 * README: Update.
4105 * PROBLEMS: Update. Empty.
4106 * NEWS: Update.
f6c8180b 4107
ae822768
DJ
41082003-06-22 Daniel Jacobowitz <drow@mvista.com>
4109
4110 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4111 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4112
261de166
AC
41132003-06-22 Andrew Cagney <cagney@redhat.com>
4114
4115 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4116 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4117 Velikov.
4118
30e94205
DJ
41192003-06-22 Daniel Jacobowitz <drow@mvista.com>
4120
4121 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4122 compilers.
4123
9e14d721
DJ
41242003-06-21 Daniel Jacobowitz <drow@mvista.com>
4125
4126 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4127 argument of val_print.
4128 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4129 to the address argument of baseclass_offset or target_read_memory.
4130 Do add it to the argument of cp_print_value_fields.
4131
a4b8ebc8
AC
41322003-06-21 Andrew Cagney <cagney@redhat.com>
4133
4134 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4135 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4136 instead of 0..NUM_REGS.
4137 (mips_register_reggroup_p): New function.
4138 (mips_pseudo_register_write): New function.
4139 (mips_pseudo_register_read): New function.
4140 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4141 based on the register's type.
4142 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4143 cooked.
4144 (mips_get_saved_register): Simplify. Assert that REGNO is a
4145 pseudo / cooked.
4146 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4147 (mips_register_type): Replace mips_register_virtual_type. Map
4148 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4149 when available.
4150 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4151 that the register is cooked / virtual.
4152 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4153 Only get the extra info when needed.
4154 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4155 (mips32_heuristic_proc_desc): Fetch the cooked register.
4156 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4157 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4158 (mips_print_register): Use gdbarch_register_type, instead of
4159 REGISTER_VIRTUAL_TYPE.
4160 (print_gp_register_row): Use gdbarch_register_type, instead of
4161 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4162 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4163 Print the pseudo / cooked registers.
4164 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4165 Print the pseudo / cooked registers.
4166 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4167 REG_NUM is pseudo / cooked.
4168 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4169 (mips_n32n64_xfer_return_value): Ditto.
4170 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4171 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4172 (mips_register_sim_regno): New function.
4173 (mips_gdbarch_init): Set deprecated_register_byte,
4174 register_group_p, pseudo_register_write, pseudo_register_read,
4175 register_sim_regno, and num_pseudo_regs. Set register_type,
4176 instead of register_virtual_type.
4177 * Makefile.in (mips-tdep.o): Update dependencies.
4178 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4179 REGISTER_VIRTUAL_TYPE.
4180 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4181 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4182 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4183 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4184 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4185
325ed089
DJ
41862003-06-21 Daniel Jacobowitz <drow@mvista.com>
4187
4188 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4189 * cli/cli-cmds.c: Include "gdb_vfork.h".
4190 (shell_escape): Use vfork.
4191
f0e7d0e8
AC
41922003-06-21 Andrew Cagney <cagney@redhat.com>
4193
c57bb9fa
AC
4194 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4195 32 bit floating-point register saves.
4196
6e51443a
AC
4197 * frame.h (deprecated_unwind_get_saved_register): Delete.
4198 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4199 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4200 and deprecated_get_next_frame_hack instead of
4201 deprecated_unwind_get_saved_register.
4202
ed183c7c
AC
4203 * mips-tdep.c (mips_dump_tdep): Do not print
4204 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4205
f0e7d0e8
AC
4206 * frame.c (get_frame_register): New function.
4207 (frame_unwind_register_signed): New function.
4208 (get_frame_register_signed): New function.
4209 (frame_unwind_register_unsigned): New function.
4210 (get_frame_register_unsigned): New function.
4211 * frame.h: Add comments on naming schema.
4212 (get_frame_register, frame_unwind_register_signed): Declare.
4213 (get_frame_register_signed, get_frame_register_signed): Declare.
4214 (frame_unwind_register_unsigned): Declare.
4215 (get_frame_register_unsigned): Declare.
4216
2224d941
TR
42172003-06-20 Theodore A. Roth <troth@openavr.org>
4218
4219 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4220
8619218d
TR
42212003-06-20 Theodore A. Roth <troth@openavr.org>
4222
4223 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4224 (avr_read_sp): Ditto.
4225
0b1b50c0
DJ
42262003-06-20 Daniel Jacobowitz <drow@mvista.com>
4227
4228 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4229 * config/arm/nm-linux.h: Likewise.
4230 * config/arm/tm-linux.h: Likewise.
4231 * config/ia64/nm-linux.h: Likewise.
4232 * config/ia64/tm-ia64.h: Likewise.
4233 * config/s390/tm-linux.h: Likewise.
4234 * config/s390/tm-s390.h: Likewise.
4235 * s390-nat.c: Likewise.
4236 * s390-tdep.c: Likewise.
4237
4238 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4239 * config/ia64/linux.mt: Likewise.
4240 * config/m68k/linux.mh: Likewise.
4241 * config/mips/linux.mt: Likewise.
4242 * config/powerpc/linux.mh: Likewise.
4243 * config/sh/linux.mt: Likewise.
4244
c8c18e65
KW
42452003-06-19 Kris Warkentin <kewarken@qnx.com>
4246
4247 * solib.c (solib_open): Change tests for whether to search
4248 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4249 comments.
4250
dcccef2e
TR
42512003-06-19 Theodore A. Roth <troth@openavr.org>
4252
4253 * avr-tdep.c (avr_frame_address): Delete function.
4254 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4255 set_gdbarch_frame_args_address.
4256
5861a190
AC
42572003-06-19 Andrew Cagney <cagney@redhat.com>
4258
4259 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4260 (REGISTER_CONVERT_FROM_TYPE): Delete.
4261 (mips_register_convert_to_type): Delete declaration.
4262 (mips_register_convert_from_type): Delete declaration.
4263 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4264 kernel/.
4265
0274a8ce
MS
42662003-06-19 Michael Snyder <msnyder@redhat.com>
4267
4268 * linux-nat.h: New file.
4269 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 4270 * lin-lwp.c: Include linux-nat.h.
0274a8ce 4271 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 4272 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
4273 (linux_make_note_section): Iterate over lwps instead of threads.
4274 (linux_do_thread_registers): Use lwp instead of merged pid.
4275 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 4276 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
4277 Add dependency on linux_nat_h.
4278
adf5f719
TR
42792003-06-19 Theodore A. Roth <troth@openavr.org>
4280
4281 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4282
6766a268
DJ
42832003-06-19 Daniel Jacobowitz <drow@mvista.com>
4284
4285 * varobj.c (get_type, get_target_type): Use check_typedef.
4286
1171114a
DJ
42872003-06-19 Daniel Jacobowitz <drow@mvista.com>
4288
4289 * breakpoint.c (insert_catchpoint): Call internal_error.
4290
adcf68a2
TR
42912003-06-19 Theodore A. Roth <troth@openavr.org>
4292
4293 * avr-tdep.c (avr_push_dummy_code): Delete function.
4294 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4295
ea67f13b
DJ
42962003-06-19 Daniel Jacobowitz <drow@mvista.com>
4297
4298 * arch-utils.c (default_prepare_to_proceed): Remove.
4299 (generic_prepare_to_proceed): Remove.
4300 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4301 (generic_prepare_to_proceed): Remove prototype.
4302 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4303 * gdbarch.c: Regenerate.
4304 * gdbarch.h: Regenerate.
4305 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4306 * hppah-nat.c (hppa_switched_threads): Remove.
4307 * infrun.c (prepare_to_proceed): New static function, copied from
4308 generic_prepare_to_proceed. Remove select_it argument.
4309 (proceed): Call prepare_to_proceed.
4310 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4311 variables.
4312 (ptrace_wait): Don't set the removed variables.
4313 (hppa_switched_threads): Remove.
4314 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4315 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4316 (lin_lwp_prepare_to_proceed): Remove prototype.
4317 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4318 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4319
4add8633
TR
43202003-06-18 Theodore A. Roth <troth@openavr.org>
4321
4322 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4323 trad-frame.h.
4324 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4325 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4326 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4327 (AVR_PROLOGUE_*): Enumerate prologue types.
4328 (struct frame_extra_info): Remove.
4329 (struct avr_unwind_cache): Define.
4330 (avr_write_sp): Delete function.
4331 (avr_read_fp): Ditto.
4332 (avr_init_extra_frame_info): Ditto.
4333 (avr_pop_frame): Ditto.
4334 (avr_frame_saved_pc): Ditto.
4335 (avr_saved_pc_after_call): Ditto.
4336 (avr_push_return_address): Ditto.
4337 (avr_frame_chain): Ditto.
4338 (avr_store_struct_return): Ditto.
4339 (avr_push_arguments): Ditto.
4340 (avr_scan_prologue): Update comments. Changed to set up the info for
4341 cache unwinding. Now returns end of prologue PC.
4342 (avr_skip_prologue): Better handling of functions lacking a prologue
4343 by using avr_scan_prologue.
4344 (avr_scan_arg_moves): New function.
4345 (avr_saved_regs_unwinder): Ditto.
4346 (avr_frame_unwind_cache): Ditto.
4347 (avr_unwind_pc): Ditto.
4348 (avr_frame_this_id): Ditto.
4349 (avr_frame_prev_register): Ditto.
4350 (avr_frame_p): Ditto.
4351 (avr_frame_base_address ): Ditto.
4352 (avr_unwind_dummy_id): Ditto.
4353 (avr_push_dummy_code): Ditto.
4354 (push_stack_item): Ditto.
4355 (pop_stack_item): Ditto.
4356 (avr_push_dummy_call): Ditto.
4357 (struct stack_item): Define.
4358 (avr_frame_unwind): Declare structure.
4359 (avr_frame_base): Ditto.
4360 (avr_gdbarch_init): Remove calls to
4361 set_gdbarch_deprecated_init_frame_pc,
4362 set_gdbarch_deprecated_target_read_fp,
4363 set_gdbarch_deprecated_dummy_write_sp,
4364 set_gdbarch_deprecated_fp_regnum,
4365 set_gdbarch_deprecated_push_arguments,
4366 set_gdbarch_deprecated_push_return_address,
4367 set_gdbarch_deprecated_pop_frame,
4368 set_gdbarch_deprecated_store_struct_return,
4369 set_gdbarch_deprecated_frame_init_saved_regs,
4370 set_gdbarch_deprecated_init_extra_frame_info,
4371 set_gdbarch_deprecated_frame_chain,
4372 set_gdbarch_deprecated_frame_saved_pc,
4373 set_gdbarch_deprecated_saved_pc_after_call.
4374 Add calls to set_gdbarch_push_dummy_call,
4375 set_gdbarch_push_dummy_code,
4376 frame_unwind_append_predicate,
4377 frame_base_set_default,
4378 set_gdbarch_unwind_dummy_id,
4379 set_gdbarch_unwind_pc.
4380 Wrap a long line.
4381
7be04a68
MS
43822003-06-18 Corinna Vinschen <vinschen@redhat.com>
4383
4384 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4385 registers for H8/300S.
4386 (h8300_print_registers_info): Ditto.
8ffd9b1b 4387 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4388
ae087d01
DJ
43892003-06-18 Daniel Jacobowitz <drow@mvista.com>
4390
4391 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4392 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4393 (lin_lwp_wait): Likewise. Update comments.
4394 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4395 (pull_pid_from_list, linux_record_stopped_pid): New.
4396
07d8f827
SC
43972003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4398
4399 * ada-lang.c (scan_discrim_bound): Name first argument.
4400 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4401 declared by ALL_BLOCK_SYMBOLS.
4402
7cb47b14
SC
44032003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4404
4405 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4406 ("regcache.h"): Include it.
4407 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4408
6ad8ae5c
DJ
44092003-06-17 Daniel Jacobowitz <drow@mvista.com>
4410
4411 * NEWS: Mention gdbserver detach change and "disconnect" command.
4412 * infcmd.c (disconnect_command): New function.
4413 (_initialize_infcmd): Add ``disconnect'' command.
4414 * remote.c (remote_async_detach): Delete.
4415 (remote_detach): Merge remote_async_detach.
4416 (remote_disconnect): New.
4417 (init_remote_ops): Set to_disconnect.
4418 (init_remote_cisco_ops): Likewise.
4419 (init_remote_async_ops): Likewise. Use remote_detach.
4420 * target.c (cleanup_target): Default to_disconnect.
4421 (update_current_target): Inherit to_disconnect.
4422 (target_disconnect, debug_to_disconnect): New functions.
4423 (setup_target_debug): Set to_disconnect.
4424 * target.h (struct target_ops): Add to_disconnect.
4425 (target_disconnect): Add prototype.
4426
687595f9
DJ
44272003-06-17 Daniel Jacobowitz <drow@mvista.com>
4428
4429 * breakpoint.c (insert_catchpoint): New function.
4430 (insert_breakpoints): Use catch_exceptions to call
4431 insert_catchpoint. Disable catchpoints if they fail to insert.
4432
29239a8f
DJ
44332003-06-17 Daniel Jacobowitz <drow@mvista.com>
4434
4435 * symfile.c (reread_symbols): Clear sym_private.
4436
2cdf3c63
AC
44372003-06-17 Andrew Cagney <cagney@redhat.com>
4438
4439 * trad-frame.h (struct frame_info): Add opaque declaration.
4440 * remote-fileio.h (struct cmd_list_element): Add opaque
4441 declaration.
4442 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4443 comments.
4444
cf0e1e0d
DJ
44452003-06-17 Daniel Jacobowitz <drow@mvista.com>
4446
4447 * remote.c (remote_prepare_to_store): Replace call to
4448 deprecated_read_register_bytes with multiple regcache_raw_read
4449 calls.
4450
192cdb19
KW
44512003-06-17 Kris Warkentin <kewarken@qnx.com>
4452
4453 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4454 (nto_find_and_open_solib): Likewise.
4455 (nto_init_solib_absolute_prefix): Likewise.
4456 (_initialize_nto_tdep): Fix indentation.
4457
89929b45
KW
44582003-06-17 Kris Warkentin <kewarken@qnx.com>
4459
4460 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4461
46019f27
KW
44622003-06-17 Kris Warkentin <kewarken@qnx.com>
4463
4464 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4465
1a38736e
JB
44662003-06-17 Jim Blandy <jimb@redhat.com>
4467
4468 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4469
3605c34a
TR
44702003-06-16 Theodore A. Roth <troth@openavr.org>
4471
4472 * avr-tdep.c (avr_extract_return_value): New function.
4473 (avr_gdbarch_init): Set extract_return_value method.
4474
870b3035
AC
44752003-06-16 Andrew Cagney <cagney@redhat.com>
4476
4477 * frame.h (deprecated_get_next_frame_hack): Declare.
4478 * frame.c (legacy_saved_regs_prev_register): Only require
4479 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4480 there are always saved regs.
4481 (deprecated_generic_get_saved_register): Do not require
4482 DEPRECATED_FRAME_INIT_SAVED_REGS.
4483 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4484 use frame ID unwind instead.
4485 (deprecated_get_next_frame_hack): New function.
4486
63d47a7d
CV
44872003-06-16 Corinna Vinschen <vinschen@redhat.com>
4488
4489 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4490 (h8300_push_dummy_call): ...this function. Some minor optimization.
4491 (h8300_push_return_address): Remove.
4492 (h8300_gdbarch_init): Remove calls to
4493 set_gdbarch_deprecated_dummy_write_sp,
4494 set_gdbarch_deprecated_push_arguments and
4495 set_gdbarch_deprecated_push_return_address.
4496 Add call to set_gdbarch_push_dummy_call.
4497
4bb1dc5e
CV
44982003-06-16 Corinna Vinschen <vinschen@redhat.com>
4499
4500 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4501 (E_PSEUDO_EXR_REGNUM): Ditto.
4502 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 4503 registers into safe registers.
4bb1dc5e
CV
4504 (h8300_skip_prologue): Check for stm instruction to push registers
4505 used for register variables onto stack.
4506 (gdb_print_insn_h8300): Remove.
4507 (h8300_examine_prologue): Add a comment.
4508 (h8300_register_name): Take pseudo registers into account.
4509 (h8300s_register_name): Ditto.
4510 (h8300sx_register_name): Ditto.
4511 (h8300_print_register): Ditto.
4512 (h8300_print_registers_info): Define "nice" printing order.
4513 (h8300_saved_pc_after_call): Take pseudo registers into account.
4514 (h8300_register_type): Ditto. Return type used for remote connection
4515 when requesting real CCR or EXR register, return actual type when
4516 requesting pseudo CCR or EXR.
4517 (h8300_pseudo_register_read): New function.
4518 (h8300_pseudo_register_write): Ditto.
4519 (h8300_dbg_reg_to_regnum): Ditto.
4520 (h8300s_dbg_reg_to_regnum): Ditto.
4521 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4522 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4523 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4524 set_gdbarch_print_insn architecture dependent.
4525 Call set_gdbarch_pseudo_register_read and
4526 set_gdbarch_pseudo_register_write.
4527 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4528
a59fe496
AC
45292003-06-16 Andrew Cagney <cagney@redhat.com>
4530
4531 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4532 * gdbarch.h, gdbarch.c: Re-generate.
4533 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4534 * s390-tdep.c (s390_gdbarch_init): Update.
4535 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4536 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4537 * mips-tdep.c (mips_gdbarch_init): Update.
4538 * mcore-tdep.c (mcore_gdbarch_init): Update.
4539 * cris-tdep.c (cris_gdbarch_init): Update.
4540 * infcall.c (call_function_by_hand): Update.
4541 * ia64-tdep.c (ia64_push_arguments): Update comment.
4542 * frame.c (legacy_get_prev_frame): Do not assume
4543 SAVE_DUMMY_FRAME_TOS_P.
4544 * dummy-frame.c (find_dummy_frame): Update comment.
4545
6f4e5a41
AC
45462003-06-16 Andrew Cagney <cagney@redhat.com>
4547
4548 * regcache.c (do_cooked_read): Do not use register_valid_p.
4549
72fab697
TR
45502003-06-15 Theodore A. Roth <troth@openavr.org>
4551
4552 * avr-tdep.c (avr_register_type): Remove a blank line.
4553 (avr_scan_prologue): Correct some comments.
4554
e3d8b004
TR
45552003-06-15 Theodore A. Roth <troth@openavr.org>
4556
4557 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4558 prologue types.
8ffd9b1b 4559 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
4560 option.
4561 Add code to scan -mcall-prologues for mega devices.
4562
866b76ea
TR
45632003-06-15 Theodore A. Roth <troth@openavr.org>
4564
4565 * avr-tdep.c (avr_register_byte): Delete function.
4566 (avr_register_raw_size): Delete function.
4567 (avr_register_virtual_size): Delete function.
4568 (avr_register_virtual_type): Delete function.
4569 (avr_register_type): New function.
4570 (avr_address_to_pointer): Remove unused code.
4571 (avr_read_fp): Need to read FP as two separate bytes due to change to
4572 avr_register_type() usage.
4573 (avr_gdbarch_init): Don't set deprecated_register_size.
4574 Don't set deprecated_register_bytes.
4575 Don't set deprecated_register_byte.
4576 Don't set deprecated_register_raw_size.
4577 Don't set deprecated_max_register_raw_size.
4578 Don't set deprecated_register_virtual_size.
4579 Don't set deprecated_max_register_virtual_size.
4580 Don't set deprecated_register_virtual_type.
4581 Set register_type method.
4582
3993f6b1
DJ
45832003-06-15 Daniel Jacobowitz <drow@mvista.com>
4584
4585 * Makefile.in (linux-nat.o): Add rule.
4586 * linux-nat.c: New file.
4587 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4588 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4589 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4590 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4591 * config/arm/linux.mh (NATDEPFILES): Likewise.
4592 * config/i386/linux.mh (NATDEPFILES): Likewise.
4593 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4594 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4595 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4596 * config/mips/linux.mh (NATDEPFILES): Likewise.
4597 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4598 * config/s390/s390.mh (NATDEPFILES): Likewise.
4599 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4600
786a90bb
MK
46012003-06-15 Mark Kettenis <kettenis@gnu.org>
4602
4603 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4604 replace out-of-date comment.
4605
3bd3f01e
AC
46062003-06-15 Andrew Cagney <cagney@redhat.com>
4607
4608 * rdi-share/host.h (Fail): Change to a varargs function.
4609 * remote-rdi.c (Fail): Update.
8ffd9b1b 4610
de5b9bb9
MK
46112003-06-15 Mark Kettenis <kettenis@gnu.org>
4612
4613 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4614 (i386_convert_register_p, i386_register_to_value,
4615 i386_register_from_value): Handle types longer than 8 bytes.
4616
d532c08f
MK
46172003-06-15 Mark Kettenis <kettenis@gnu.org>
4618
4619 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4620 Move floating-point code to new function in i387-tdep.c.
4621 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4622 New functions containing code moved here from i386-tdep.c.
4623 * i387-tdep.h: Add opaque declaration for `struct type'.
4624 (i387_register_to_value, i387_value_to_register): New prototypes.
4625 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4626 (x86_64_init_abi): Set convert_register_p, register_to_value and
4627 value_to_register here.
8ffd9b1b 4628
42c466d7
AC
46292003-06-14 Andrew Cagney <cagney@redhat.com>
4630
4631 * mips-tdep.c (mips_register_to_value): Make static.
4632 (mips_value_to_register): Make static.
4633 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4634 * ia64-tdep.c (ia64_register_raw_size): Make static.
4635 (ia64_register_virtual_size): Make static.
4636 (ia64_register_byte): Make static.
4637 * i387-tdep.c: Include "i387-tdep.h".
4638 (print_387_control_word): Delete function.
4639 (print_387_status_word): Delete function.
4640 (print_387_status_bits): Delete function.
4641 (print_387_control_bits): Delete function.
4642 * Makefile.in (i387-tdep.o): Update dependencies.
4643 * rdi-share/host.h (Fail): Declare.
4644 * remote-rdi.c (Fail): Update to match declaration.
4645
2a9cda49
AC
46462003-06-14 Andrew Cagney <cagney@redhat.com>
4647
4648 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4649 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4650 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4651 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4652 * README: Delete reference to remote-array.
4653 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4654 (remote-array.o): Delete target.
4655 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4656 * remote-array.c: Delete file.
4657
ff2e87ac
AC
46582003-06-14 Andrew Cagney <cagney@redhat.com>
4659 Mark Kettenis <kettenis@gnu.org>
4660
4661 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4662 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4663 parameter with "frame".
4664 * gdbarch.h, gdbarch.c: Re-generate.
4665 * frame.h (put_frame_register): Declare.
4666 * frame.c (put_frame_register): New function.
4667 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4668 (legacy_register_to_value): Rewrite, use "frame" to get the
4669 register value.
4670 (legacy_value_to_register): Rewrite, use "frame" to find the
4671 register's location before storing.
4672 * arch-utils.h (legacy_convert_register_p): Update.
4673 (legacy_register_to_value, legacy_value_to_register): Update.
4674 * findvar.c (value_from_register): Rewrite, eliminate use of
4675 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4676 "frame" to REGISTER_TO_VALUE.
4677 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4678 lval_reg_frame_relative + lval_register branch of the switch. Do
4679 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4680 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4681 I386_EDI_REGNUM): New defines.
4682 (i386_next_regnum, i386_convert_register_p,
4683 i386_register_to_value, i386_value_to_register): New functions.
4684 (i386_register_convertible, i386_register_convert_to_virtual,
4685 i386_convert_to_raw): Remove functions.
4686 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4687 value_to_register instead of register_convertible,
4688 register_convert_to_virtual and register_convert_to_raw.
4689 * mips-tdep.c (mips_convert_register_p): New function.
4690 (mips_value_to_register): Replace mips_register_convert_from_type.
4691 (mips_register_to_value): Replace mips_register_convert_to_type.
4692 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4693 register_to_value.
4694 * alpha-tdep.c (alpha_convert_register_p): Update.
4695 (alpha_value_to_register): Update, store the register.
4696 (alpha_register_to_value): Update, fetch the register.
4697
98be1e77
TR
46982003-06-14 Theodore A. Roth <troth@openavr.org>
4699
4700 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4701 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4702 Don't set deprecated_call_dummy_words.
4703 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4704 Don't set remote_translate_xfer_address.
4705 (avr_io_reg_read_command): Remove commented out debug printf.
4706 Wrap a long line.
4707
57bc6122
TR
47082003-06-14 Theodore A. Roth <troth@openavr.org>
4709
4710 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4711 causes gdb to seg fault.
4712
eb01fc62
DJ
47132003-06-14 Daniel Jacobowitz <drow@mvista.com>
4714
4715 * sparc-nat.c (fetch_inferior_registers): Correct
4716 a reference to "registers".
4717
3b3e6bee
DJ
47182003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4719
4720 * Makefile.in (exc_request_U_h): Define
4721 (exc_request_S_h): Likewise.
4722 (msg_reply_S_h): Likewise.
4723 (msg_U_h): Likewise.
4724 (notify_S_h): Likewise.
4725 (process_reply_S_h): Likewise.
4726 (gnu-nat.o): Depend on gdb_obstack_h
4727 * gnu-nat.c: Include "gdb_obstack.h".
4728
b8de8283
AC
47292003-06-13 Andrew Cagney <cagney@redhat.com>
4730
4731 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4732 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4733
f3be58bc
AC
47342003-06-13 Andrew Cagney <cagney@redhat.com>
4735
4736 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4737 when deprecated REGISTER macros can be deleted.
4738 * gdbarch.h, gdbarch.c: Re-generate.
4739
4c0122c8
JB
47402003-06-13 Jim Blandy <jimb@redhat.com>
4741
4742 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4743 Linux entry point symbols for _dl_debug_state, too.
4744
3e210248
AC
47452003-06-13 Andrew Cagney <cagney@redhat.com>
4746
4747 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4748 available, do not use the FP register, and always save the TOS.
4749 * dummy-frame.c (dummy_frame_this_id): Do not assert
4750 SAVE_DUMMY_FRAME_TOS.
4751 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4752 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4753 (i386_push_dummy_call): Add 8 to the returned SP.
4754 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4755 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4756 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4757 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4758 (x86_64_push_dummy_call): Return "sp + 16".
4759 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4760 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4761 save_dummy_frame_tos.
4762
0b65af49
JB
47632003-06-13 Jim Blandy <jimb@redhat.com>
4764
4765 * frv-tdep.c (frv_use_struct_convention): Delete static
4766 declaration for function deleted in my change of 2003-06-12.
4767
4ea2465e
TR
47682003-06-13 Theodore A. Roth <troth@openavr.org>
4769
4770 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4771 (avr_pointer_to_address): Shift code addrs left 1 bit.
4772 (avr_convert_from_func_ptr_addr): Delete function since operation is
4773 better handled by avr_address_to_pointer and avr_pointer_to_address.
4774 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4775
1581182a
MK
47762003-06-13 Mark Kettenis <kettenis@gnu.org>
4777
4778 From Kelley Cook <kelleycook@wideopenwest.com>:
4779 * configure.host: Accept i[34567]86 variants.
4780 * configure.tgt: Likewise.
4781 * nlm/configure.in: Likewise.
4782 * nlm/configure: Regenerated.
4783
7aa1783e
RE
47842003-06-13 Richard Earnshaw <rearnsha@arm.com>
4785
4786 * arm-tdep.c (solib-svr4.h): Dont' include it.
4787 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4788 * arm-linux-tdep.c: ... here. Make static.
4789 (arm_linux_init_abi): Register it.
4790 (solib-svr4.h): Include it.
4791 * Makefile.in: Update dependencies.
4792 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4793 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4794
0261a0d0
CV
47952003-06-13 Corinna Vinschen <vinschen@redhat.com>
4796
4797 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4798 indicate registers used for return values.
4799 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4800 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4801 members.
4802 (h8300_init_extra_frame_info): Ditto.
4803 (h8300_frame_locals_address): Removed.
4804 (h8300_frame_args_address): Removed.
4805 (h8300_extract_return_value): Use new regcache structure. Only care
4806 for 16 bit CPUs.
4807 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4808 (h8300_store_return_value): Use new regcache structure. Only care
4809 for 16 bit CPUs.
4810 (h8300h_store_return_value): Same function for 32 bit CPUs.
4811 (h8300_store_struct_return): Removed.
4812 (h8300_extract_struct_value_address): Use new regcache structure.
4813 (h8300h_extract_struct_value_address): Removed.
4814 (h8300_push_dummy_code): New function.
4815 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4816 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4817 set_gdbarch_store_return_value architecture dependent.
4818 Call set_gdbarch_push_dummy_code and
4819 set_gdbarch_extract_struct_value_address.
4820 Remove calls to set_gdbarch_frame_args_address,
4821 set_gdbarch_frame_locals_address,
4822 set_gdbarch_deprecated_store_struct_return,
4823 set_gdbarch_deprecated_extract_return_value,
4824 set_gdbarch_deprecated_extract_struct_value_address,
4825 set_gdbarch_deprecated_call_dummy_words and
4826 set_gdbarch_deprecated_sizeof_call_dummy_words.
4827
055c394a
CV
48282003-06-13 Corinna Vinschen <vinschen@redhat.com>
4829
4830 * h8300-tdep.c (h8300_register_byte): Remove.
4831 (h8300h_register_byte): Remove.
4832 (h8300_register_virtual_type): Remove. Substitute by...
4833 (h8300_register_type): New function.
4834 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4835 (h8300h_extract_struct_value_address): Ditto.
4836 (h8300_gdbarch_init): Drop calls to
4837 set_gdbarch_deprecated_register_byte and
4838 set_gdbarch_deprecated_register_virtual_type.
4839 Add call to set_gdbarch_register_type.
4840
9c04cab7
AC
48412003-06-13 Andrew Cagney <cagney@redhat.com>
4842
4843 * gdbarch.sh: Update comments on registers.
4844 (deprecated_register_byte): Rename register_byte.
4845 (deprecated_register_raw_size): Rename register_raw_size.
4846 (deprecated_register_virtual_size): Rename register_virtual_size.
4847 (deprecated_register_virtual_type): Rename register_virtual_type.
4848 * gdbarch.h, gdbarch.c: Re-generate.
4849 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4850 * vax-tdep.c (vax_gdbarch_init): Update.
4851 * v850-tdep.c (v850_gdbarch_init): Update.
4852 * sparc-tdep.c (sparc_gdbarch_init): Update.
4853 * sh-tdep.c (sh_gdbarch_init): Update.
4854 * s390-tdep.c (s390_gdbarch_init): Update.
4855 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4856 * ns32k-tdep.c: Update.
4857 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4858 * mips-tdep.c (mips_gdbarch_init): Update.
4859 * mcore-tdep.c (mcore_gdbarch_init): Update.
4860 * m68k-tdep.c (m68k_gdbarch_init): Update.
4861 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4862 * ia64-tdep.c (ia64_gdbarch_init): Update.
4863 * hppa-tdep.c (hppa_gdbarch_init): Update.
4864 * h8300-tdep.c (h8300_gdbarch_init): Update.
4865 * frv-tdep.c (frv_gdbarch_init): Update.
4866 * cris-tdep.c (cris_gdbarch_init): Update.
4867 * avr-tdep.c (avr_gdbarch_init): Update.
4868 * alpha-tdep.c (alpha_gdbarch_init): Update.
4869 * arm-tdep.c (arm_gdbarch_init): Update.
4870
b060cbea
AC
48712003-06-13 Andrew Cagney <cagney@redhat.com>
4872
4873 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4874 mips_o32_use_struct_convention with always_use_struct_convention.
4875
0fc9922a
DC
48762003-06-12 David Carlton <carlton@kealia.com>
4877
4878 * cp-namespace.c (cp_set_block_scope): Comment out
4879 processing_has_namespace_info branch.
4880
1fd35568
JB
48812003-06-12 Jim Blandy <jimb@redhat.com>
4882
f470a70a
JB
4883 Recognize and skip 64-bit PowerPC Linux linkage functions.
4884 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4885 insn_pattern, insns_match_pattern, d_field, ds_field): New
4886 functions, macros, and types for working with PPC instructions.
4887 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4888 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4889 ppc64_skip_trampoline_code): New functions, variables, and macros
4890 for recognizing and skipping linkage functions.
4891 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4892 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4893
49ff75ad
JB
4894 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4895 register offsets for both the 32- and 64-bit interfaces.
4896
bd918c83
JB
4897 Actually finish the job started by my change of 2003-05-29.
4898 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4899 other #definition of this.
4900 (ppc_linux_skip_trampoline_code): Remove declaration.
4901 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4902 static.
4903 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4904 method for GDBARCH.
4905
4906 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4907 'long' on ppc64-*-linux*.
4908
f8c59253
JB
4909 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4910 isn't #defined, assume the register doesn't exist: act as if
4911 tdep->ppc_mq_regnum were -1.
4912
8fbb30b1
JB
4913 * configure.host, configure.tgt: Add entries for
4914 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4915 powerpc/linux.mt.
4916 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4917 New files.
4918
1fd35568
JB
4919 * arch-utils.c (always_use_struct_convention): New function.
4920 * arch-utils.h (always_use_struct_convention): New prototype.
4921 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4922 (alpha_gdbarch_init): Register always_use_struct_convention,
4923 instead of alpha_use_struct_convention.
4924 * cris-tdep.c (cris_use_struct_convention): Delete.
4925 (cris_gdbarch_init): Register always_use_struct_convention,
4926 instead of cris_use_struct_convention.
4927 * frv-tdep.c (frv_use_struct_convention): Delete.
4928 (frv_gdbarch_init): Register always_use_struct_convention,
4929 instead of frv_use_struct_convention.
4930 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4931 (h8300_gdbarch_init): Register always_use_struct_convention,
4932 instead of h8300_use_struct_convention.
e3305dd9 4933 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4934 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4935 instead of mips_o32_use_struct_convention.
4936
e14e6e9c
AC
49372003-06-12 Andrew Cagney <cagney@redhat.com>
4938
4939 * wince.c: Include "mips-tdep.h".
4940 * mips-tdep.h (mips_next_pc): Declare.
4941 * mcore-tdep.c: Make more local functions static.
4942 * Makefile.in (wince.o): Update dependencies.
4943
2335f48e
DC
49442003-06-12 David Carlton <carlton@kealia.com>
4945
4946 * symtab.c (lookup_symbol_aux_minsyms): Replace
4947 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4948 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4949 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4950 SYMBOL_NATURAL_NAME.
4951
f70a7d61
AS
49522003-06-12 Andreas Schwab <schwab@suse.de>
4953
4954 * Makefile.in (tuiDisassem.o): Update dependencies.
4955
b6429628
DC
49562003-06-12 David Carlton <carlton@bactrian.org>
4957
4958 * symtab.h: Delete declaration of make_symbol_overload_list.
4959 Add declaration of lookup_partial_symbol.
4960 * symtab.c (remove_params): Move to cp-support.c.
4961 (overload_list_add_symbol, make_symbol_overload_list)
4962 (sym_return_val_size, sym_return_val_index): Ditto.
4963 (lookup_partial_symbol): Make extern.
4964 * cp-support.h: Add declaration of make_symbol_overload_list.
4965 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4966 symtab.h, and block.h.
4967 (remove_params): Move here from symtab.c.
4968 (overload_list_add_symbol, make_symbol_overload_list)
4969 (sym_return_val_size, sym_return_val_index): Ditto.
4970 * valops.c: Include cp-support.h.
4971 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4972 frame_h, and block_h.
4973 (valops.o): Depend on cp_support_h.
4974
084edea5
CV
49752003-06-12 Corinna Vinschen <vinschen@redhat.com>
4976
4977 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4978 substitute by NUM_REGS throughout.
4979 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4980 (h8300s_register_name): New function for H8S registers.
4981 (h8300sx_register_name): Ditto for H8SX registers.
4982 (h8300_print_register): Revise register printing, avoid depending
4983 on 32 bit long.
0261a0d0 4984 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4985 (h8300h_register_byte): New function for any other architecture.
4986 (h8300_register_raw_size): Remove.
4987 (h8300_register_virtual_type): Revise to return actually useful
4988 type.
4989 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4990 (h8300h_extract_struct_value_address): New function for any other
4991 architecture.
4992 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4993 set_gdbarch_register_name, set_gdbarch_register_byte,
4994 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4995 Remove calls to set_gdbarch_deprecated_register_size,
4996 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4997 set_gdbarch_deprecated_max_register_raw_size,
4998 set_gdbarch_register_virtual_size and
4999 set_gdbarch_deprecated_max_register_virtual_size entirely.
5000 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5001 set_gdbarch_long_double_bit.
5002
06194148
JJ
50032003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5004
8ffd9b1b
AJ
5005 * doublest.c (convert_doublest_to_floatformat): When dealing
5006 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
5007 processing a full 32 bits of mantissa.
5008
de4f826b
DC
50092003-06-11 David Carlton <carlton@bactrian.org>
5010
5011 * dictionary.h: New.
5012 * dictionary.c: New.
5013 * block.h: Add opaque declaration for struct dictionary.
5014 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5015 'sym' members.
5016 (BLOCK_DICT): New macro.
5017 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5018 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5019 BLOCK_SHOULD_SORT.
5020 (ALL_BLOCK_SYMBOLS): Update definition.
5021 * Makefile.in (SFILES): Add dictionary.c.
5022 (dictionary_h): New.
5023 (COMMON_OBS): Add dictionary.o.
5024 (dictionary.o): New.
5025 (ada-lang.o): Depend on dictionary_h.
5026 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5027 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5028 (mi-cmd-stack.o): Ditto.
5029 (gdbtk-cmds.o): Update dependencies.
5030 (gdbtk-stack.o): Ditto.
5031 * ada-lang.c: Include dictionary.h.
5032 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5033 (fill_in_ada_prototype, debug_print_block): Ditto.
5034 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5035 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5036 'is_sorted'.
5037 * mdebugread.c: Include dictionary.h.
5038 (struct parse_stack): Delete 'maxsyms' member.
5039 (parse_symbol): Update calls to new_block. Delete calls to
5040 shrink_block. Use dictionary methods.
5041 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5042 Update calls to new_symtab. Don't maintain maxsyms data.
5043 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5044 (add_symbol): Just call dict_add_symbol.
5045 (new_symtab): Delete 'maxsyms' argument.
5046 (new_symtab): Update calls to new_block.
5047 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5048 (shrink_block): Delete function.
5049 (fixup_sigtramp): Update call to new_block. Add symbol via
5050 dict_add_symbol.
5051 * jv-lang.c: Include dictionary.h.
5052 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5053 appropriately. Set class_symtab->free_func. Make sure the
5054 blockvector is big enough to hold two blocks.
5055 (add_class_symtab_symbol): Use dictionary methods.
5056 (free_class_block): New function.
5057 (type_from_class): Replace explicit iteration by
5058 ALL_BLOCK_SYMBOLS.
5059 * symtab.h (struct symtab): Replace 'free_ptr' method by
5060 'free_func'.
5061 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5062 sort_symtab_syms.
5063 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5064 sort_symtab_syms.
5065 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5066 Include dictionary.h.
5067 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5068 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5069 sort_symtab_syms.
5070 * objfiles.c: Include dictionary.h.
5071 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5072 * buildsym.c: Include dictionary.h.
5073 (finish_block): Use dictionary methods.
5074 (end_symtab): Set free_func to NULL, not free_ptr.
5075 * tracepoint.c: Include dictionary.h.
5076 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5077 (scope_info): Ditto.
5078 * stack.c: Include dictionary.h.
5079 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5080 (print_block_frame_labels, print_frame_arg_vars)
5081 (print_frame_args): Ditto.
5082 * symmisc.c (free_symtab_block): Use dictionary methods.
5083 (dump_symtab): Ditto.
5084 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5085 Include dictionary.h.
5086 * symfile.h: Delete declarations of sort_block_syms,
5087 sort_symtab_syms.
5088 * symfile.c (sort_block_syms): Delete.
5089 (sort_symtab_syms): Delete.
5090 * symtab.c: Include dictionary.h.
5091 (lookup_block_symbol): Use dictionary iterators.
5092 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5093 (search_symbols, make_symbol_completion_list): Ditto.
5094 (make_symbol_overload_list): Ditto.
5095 * valops.c (value_of_local): Use dict_empty.
5096 Include dictionary.h.
5097
a31f978c
JB
50982003-06-11 J. Brobecker <brobecker@gnat.com>
5099
5100 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5101
526e70c0
DC
51022003-06-11 David Carlton <carlton@bactrian.org>
5103
5104 * block.h (BLOCK_SHOULD_SORT): Delete.
5105 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5106 blocks.
5107 * ada-lang.c (ada_add_block_symbols): Ditto.
5108 * symfile.c (sort_block_syms): Delete.
5109 (sort_symtab_syms): Ditto.
5110 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5111 declarations.
5112 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5113 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5114 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5115 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5116 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5117 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5118 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5119
33c08150
JJ
51202003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5121
8ffd9b1b 5122 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
5123 bits to 128.
5124
781a750d
AC
51252003-06-11 Andrew Cagney <cagney@redhat.com>
5126
5127 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5128 REGISTER_CONVERTIBLE.
5129 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5130 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5131 * gdbarch.h, gdbarch.c: Re-generate.
5132 * arch-utils.h (deprecated_register_convertible_not): Rename
5133 generic_register_convertible_not.
5134 * arch-utils.c (deprecated_register_convertible_not): Rename
5135 generic_register_convertible.
5136 (legacy_convert_register_p, legacy_register_to_value): Update.
5137 * sh-tdep.c (sh64_push_arguments): Update.
5138 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5139 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5140 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5141 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5142 * arch-utils.c (legacy_value_to_register): Update.
5143 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5144 (rs6000_register_convert_to_raw): Make parameter "from" const.
5145 * mips-tdep.c (mips_gdbarch_init): Update.
5146 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5147 * infcmd.c (default_print_registers_info): Update.
5148 * ia64-tdep.c (ia64_gdbarch_init): Update.
5149 (ia64_register_convert_to_raw): Make parameter "from" const.
5150 * i386-tdep.c (i386_gdbarch_init): Update.
5151 (i386_register_convert_to_raw): Update.
5152
cd90e54f
AC
51532003-06-11 Andrew Cagney <cagney@redhat.com>
5154
5155 * remote-fileio.c: Include "remote-fileio.h".
5156 * Makefile.in (remote-fileio.o): Update dependencies.
5157 (remote_fileio_h): Fix typo.
5158
a78f21af
AC
51592003-06-11 Andrew Cagney <cagney@redhat.com>
5160
5161 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5162 (xstormy16_save_dummy_frame_tos): Make static.
5163 (_initialize_xstormy16_tdep): Add declaration.
5164 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5165 * v850-tdep.c: Make local functions static.
5166 (_initialize_v850_tdep): Add declaration.
5167 * sparc-tdep.c: Make local functions static.
5168 (_initialize_sparc_tdep): Add declaration.
5169 * sh-tdep.c: Make local functions static.
5170 (_initialize_sh_tdep): Add declaration.
5171 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5172 * s390-tdep.c: Make local functions static.
5173 (_initialize_s390_tdep): Add declaration.
5174 * dbxread.c (find_stab_function_addr): Make static.
5175 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5176 * ocd.c (_initialize_remote_ocd): Add declaration.
5177 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5178 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5179 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5180 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5181 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5182 * remote-array.c (_initialize_array): Add declaration.
5183 (_initialize_remote_monitors): Add declaration.
5184 * remote-mips.c: Make local functions static.
5185 (_initialize_remote_mips): Add declaration.
5186 * mcore-tdep.c: Make all local functions static.
5187 (_initialize_mcore_tdep): Add declaration.
5188 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5189 * abug-rom.c (_initialize_abug_rom): Add declaration.
5190 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5191 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5192 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5193 * remote-est.c (_initialize_est): Add declaration.
5194 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5195 (m68hc11_call_dummy_address): Make static.
5196 * ia64-tdep.c: Make local functions static.
5197 (_initialize_ia64_tdep): Add declaration.
5198 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5199 * monitor.c (monitor_wait_filter): Make static.
5200 (_initialize_remote_monitors): Add declaration.
5201 * remote-hms.c (_initialize_remote_hms): Add declaration.
5202 * remote-e7000.c (fetch_regs_from_dump): Make static.
5203 (expect_n): Make static.
5204 (_initialize_remote_e7000): Add declaration.
5205 * ser-e7kpc.c: Always include "defs.h".
5206 (_initialize_ser_e7000pc): Add declaration.
5207 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5208 * cris-tdep.c: Make all but one function static.
5209 (_initialize_cris_tdep): Add declaration.
5210 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5211 * solib.c (update_solib_list): Make static.
5212 (_initialize_solib): Add declaration.
5213 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5214 (_initialize_avr_tdep): Add declaration.
5215 * remote-rdi.c (voiddummy): Make static.
5216 (_initialize_remote_rdi): Add declaration.
5217 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5218 * remote-rdp.c (send_rdp): Make static.
5219 (_initialize_remote_rdp): Add declaration.
5220 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5221
cbcdb1f5
CV
52222003-06-11 Corinna Vinschen <vinschen@redhat.com>
5223
5224 * remote-fileio.c: Make ari happy.
5225
a191ea8d
JB
52262003-06-10 J. Brobecker <brobecker@gnat.com>
5227
5228 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5229 fetching the trailing bytes of the buffer we are about to write.
5230
0ef75e11
AC
52312003-06-10 Andrew Cagney <cagney@redhat.com>
5232
5233 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5234 * Makefile.in (remote-fileio.o): Update dependencies.
5235 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5236 include <setjmp.h>, or <sys/types.h> conditional on USG.
5237 (remote_fio_jmp_buf): Delete global variable.
5238
449092f6 52392003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 5240 Martin M. Hunt <hunt@redhat.com>
449092f6 5241
559fa028
AC
5242 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5243 (SFILES): Add remote-fileio.c.
5244 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5245 dependencies for building remote.o.
449092f6
CV
5246 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5247 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 5248 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
5249 static storage class.
5250 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5251 'F' packet.
5252 (_initialize_remote): Call initialize_remote_fileio().
5253 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
5254 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5255 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5256 (captured_main): Initialize new ui_files.
5257 * ui-file.c: Add read and fgets input functions.
5258 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5259 (null_file_read): New function.
5260 (ui_file_read): New function.
5261 (set_ui_file_read): New function.
5262 (stdio_file_read): New function.
5263 * ui-file.h: New type ui_file_read_ftype.
5264 (set_ui_file_read): Declare.
5265 (ui_file_read): Declare.
5266
248de703
AC
52672003-06-09 Andrew Cagney <cagney@redhat.com>
5268
5269 * frame.h (deprecated_unwind_get_saved_register): Rename
5270 generic_unwind_get_saved_register, update comments.
5271 * mips-tdep.c (mips_get_saved_register): Update.
5272 * frame.c (deprecated_unwind_get_saved_register): Update.
5273
0ed8aa57
AC
52742003-06-09 Andrew Cagney <cagney@redhat.com>
5275
5276 * vax-tdep.c (vax_frame_locals_address): Delete function.
5277 (vax_gdbarch_init): Do not set frame_locals_address.
5278 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5279 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5280 * s390-tdep.c (s390_frame_args_address): Delete function.
5281 (s390_gdbarch_init): Do not set frame_args_address or
5282 frame_locals_address.
5283 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5284 (ns32k_gdbarch_init): Do not set frame_locals_address.
5285 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5286 (hppa_frame_locals_address): Delete function.
5287 (hppa_gdbarch_init): Do not set frame_args_address, or
5288 frame_locals_address.
5289 * arm-tdep.c (arm_frame_args_address): Delete.
5290 (arm_frame_locals_address): Delete.
5291 (arm_gdbarch_init): Do not set frame_args_address, or
5292 frame_locals_address.
5293
983a287a
AC
52942003-06-09 Andrew Cagney <cagney@redhat.com>
5295
5296 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5297 * gdbarch.h, gdbarch.c: Re-generate.
5298 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5299 * arch-utils.c (frame_num_args_unknown): Delete function.
5300 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5301 (frame_info): Use FRAME_NUM_ARGS_P.
5302 * arm-tdep.c (arm_frame_num_args): Delete function.
5303 (arm_gdbarch_init): Do not set frame_num_args.
5304 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5305 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5306 (hppa_gdbarch_init): Do not set frame_num_args.
5307 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5308 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5309 frame_num_args to default frame_num_args_unknown.
5310 * v850-tdep.c (v850_gdbarch_init): Ditto.
5311 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5312 * sh-tdep.c (sh_gdbarch_init): Ditto.
5313 * s390-tdep.c (s390_gdbarch_init): Ditto.
5314 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5315 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5316 * mips-tdep.c (mips_gdbarch_init): Ditto.
5317 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5318 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5319 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5320 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5321 * i386-tdep.c (i386_gdbarch_init): Ditto.
5322 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5323 * frv-tdep.c (frv_gdbarch_init): Ditto.
5324 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5325 * cris-tdep.c (cris_gdbarch_init): Ditto.
5326 * avr-tdep.c (avr_gdbarch_init): Ditto.
5327 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5328
8d3b0994
AC
53292003-06-09 Andrew Cagney <cagney@redhat.com>
5330
5331 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5332 (print_frame_args): Moved to "stack.c".
5333 * stack.c: Include "gdb_assert.h".
5334 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5335 (print_frame_args): Moved from "printcmd.c".
5336 * frame.h (print_frame_args): Delete declaration.
5337 * Makefile.in (stack.o): Update dependencies.
5338
25e3a86b
AC
53392003-06-08 Andrew Cagney <cagney@redhat.com>
5340
5341 * frame.c (get_prev_frame): Remove reference to
5342 frame_args_address_correct in comments.
5343 * frame-base.c (default_frame_args_address): Delete code
5344 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5345 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5346 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5347 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5348 (vax_frame_args_address_correct): Delete declaration.
5349
a9e5fdc2
AC
53502003-06-08 Andrew Cagney <cagney@redhat.com>
5351
5352 * gdbarch.sh (UNWIND_SP): Add.
5353 * gdbarch.h, gdbarch.c: Re-generate.
5354 * frame.c (frame_sp_unwind): New function.
5355 (get_frame_sp): New function.
5356 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5357 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5358 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5359 value.
5360 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5361 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5362
8983bd83
AC
53632003-06-08 Andrew Cagney <cagney@redhat.com>
5364
7fec2c59
AC
5365 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5366 REMOTE_BREAKPOINT.
5367 * remote.c: Update.
5368 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5369 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5370 * config/m68k/tm-sun3.h: Update.
5371 * config/m68k/tm-m68klynx.h: Update.
5372 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5373
8983bd83
AC
5374 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5375 trad_frame". Update comments.
5376 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5377 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5378 (trad_frame_register_value, trad_frame_prev_register): Update.
5379
b9362cc7
AC
53802003-06-08 Andrew Cagney <cagney@redhat.com>
5381
5382 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5383 from GCC's acinclude.m4.
5384 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5385 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5386 * main.c (error_init): Delete declaration.
5387 * defs.h (error_init): Declare.
5388 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5389 (rs6000_convert_from_func_ptr_addr): Make static.
5390 (_initialize_rs6000_tdep): Add declaration.
5391 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5392 (show_commands, set_verbose, show_history): Delete declaration.
5393 * top.h (set_verbose): Add declaration.
5394 (show_history, set_history, show_commands): Add declaration.
5395 (do_restore_instream_cleanup): Add declaration.
5396 * objc-lang.c (specialcmp): Make static.
5397 (print_object_command): Make static.
5398 (find_objc_msgsend): Make static.
5399 (find_objc_msgcall_submethod_helper): Make static.
5400 (find_objc_msgcall_submethod): Make static.
5401 (_initialize_objc_language): Add declaration.
5402 (find_implementation_from_class): Make static.
5403 (find_implementation): Make static.
5404 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5405 * objc-lang.h (lookup_struct_typedef): Add declaration.
5406 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5407 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5408 (do_restore_user_call_depth): Make static.
5409 (do_restore_instream_cleanup): Delete declaration.
5410 (dont_repeat): Delete declaration.
5411 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5412 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5413 * reggroups.c (_initialize_reggroup): Add declaration.
5414 * cp-support.c (_initialize_cp_support): Add declaration.
5415 * cp-abi.c (_initialize_cp_abi): Add declaration.
5416 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5417 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5418 (_initialize_gnu_v3_abi): Add declaration.
5419 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5420 (_initialize_gnu_v2_abi): Add declaration.
5421 * frame-base.c (_initialize_frame_base): Add declaration.
5422 * doublest.c (floatformat_from_length): Make static.
5423 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5424 * frame.c (create_sentinel_frame): Make static.
5425 (_initialize_frame): Add declaration.
5426 * top.c (do_catch_errors): Make static.
5427 (gdb_rl_operate_and_get_next_completion): Make static.
5428 * typeprint.c: Include "typeprint.h".
5429 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5430 (sentinel_frame_this_id): Make static.
5431 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5432 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5433 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5434 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5435 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5436 * maint.c (maintenance_print_architecture): Make static.
5437 * signals/signals.c (_initialize_signals): Add declaration.
5438 * std-regs.c (_initialize_frame_reg): Add declaration.
5439 * jv-exp.y (push_variable): ISO C definition.
5440 (push_qualified_expression_name): Ditto.
5441 * memattr.c (_initialize_mem): Add declaration.
5442 * remote.c (remote_check_watch_resources): Make static.
5443 (remote_stopped_by_watchpoint): Make static.
5444 (remote_stopped_data_address): Make static.
5445 * d10v-tdep.c (nr_dmap_regs): Make static.
5446 (a0_regnum): Make static.
5447 (d10v_frame_unwind_cache): Make static.
5448 (d10v_frame_p): Make static.
5449 * osabi.c (show_osabi): Make static.
5450 (_initialize_gdb_osabi): Add extern declaration.
5451 * gdbtypes.c (make_qualified_type): Make static.
5452 (safe_parse_type): Make static.
5453 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5454 * macrotab.c (macro_bcache_free): Make static.
5455 * interps.c (interp_set_quiet): Make static.
5456 (interpreter_exec_cmd): Make static.
5457 * stack.h (select_frame_command): New file.
5458 * stack.c: Include "stack.h".
5459 (select_frame_command_wrapper): Delete function.
5460 (select_frame_command): Make global.
5461 * infcall.c: Include "infcall.h".
5462 * linespec.c: Include "linespec.h".
5463 * symfile.c (sections_overlap): Make static.
5464 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5465 * charset.c (_initialize_charset): Add missing prototype.
5466 * regcache.c (init_legacy_regcache_descr): Make static.
5467 (do_regcache_xfree): Make static.
5468 (regcache_xfer_part): Make static.
5469 (_initialize_regcache): Add missing prototype.
5470 * breakpoint.c (parse_breakpoint_sals): Make static.
5471 (breakpoint_sals_to_pc): Make static.
5472 * interps.h (clear_interpreter_hooks): ISO C declaration.
5473 * Makefile.in (stack_h): Define.
5474 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5475 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5476
a0f267c7
AC
54772003-06-08 Andrew Cagney <cagney@redhat.com>
5478
5479 * Makefile.in (d10v-tdep.o): Update dependencies.
5480 (SFILES): Add trad-frame.c.
5481 (trad_frame_h): Define.
5482 (COMMON_OBS): Add trad-frame.o.
5483 (trad-frame.o): Specify dependencies.
5484 * d10v-tdep.c: Include "trad-frame.h".
5485 (saved_regs_unwinder): Delete function.
5486 (d10v_frame_prev_register): Use trad_frame_prev_register.
5487 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5488 trad_frame", delete "regs" and "prev_sp".
5489 (prologue_find_regs): Use trad-frame.
5490 * trad-frame.h, trad-frame.c: New files.
5491
4538b4f4
MK
54922003-06-08 Mark Kettenis <kettenis@gnu.org>
5493
5494 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5495
a0273b2f
AF
54962003-06-07 Adam Fedor <fedor@gnu.org>
5497
5498 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5499 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5500 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5501 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 5502 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
5503 Use it.
5504
3a6c3343
AC
55052003-06-07 Andrew Cagney <cagney@redhat.com>
5506
5507 * symfile.h: Re-indent, clean up comments.
5508
b46e02f6
AC
55092003-06-07 Andrew Cagney <cagney@redhat.com>
5510
5511 * inferior.h (deprecated_write_sp): Replace
5512 generic_target_write_sp.
5513 * regcache.c (deprecated_write_sp): Replace
5514 generic_target_write_sp.
5515 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5516 * vax-tdep.c (vax_gdbarch_init): Update.
5517 * v850-tdep.c (v850_gdbarch_init): Update.
5518 * sparc-tdep.c (sparc_gdbarch_init): Update.
5519 * sh-tdep.c (sh_gdbarch_init): Update.
5520 * s390-tdep.c (s390_gdbarch_init): Update.
5521 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5522 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5523 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5524 * mcore-tdep.c (mcore_gdbarch_init): Update.
5525 * m68k-tdep.c (m68k_gdbarch_init): Update.
5526 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5527 * ia64-tdep.c (ia64_gdbarch_init): Update.
5528 * h8300-tdep.c (h8300_gdbarch_init): Update.
5529 * frv-tdep.c (frv_gdbarch_init): Update.
5530 * cris-tdep.c (cris_gdbarch_init): Update.
5531 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5532
a42e117c
AC
55332003-06-07 Andrew Cagney <cagney@redhat.com>
5534
5535 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5536 Assert that PC_REGNUM is valid.
5537 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5538
bd1ce8ba
AC
55392003-06-07 Andrew Cagney <cagney@redhat.com>
5540
5541 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5542 * gdbarch.h, gdbarch.c: Regenerate.
5543 * mn10300-tdep.c: Include "gdb_assert.h".
5544 (mn10300_read_fp): New function.
5545 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5546 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5547 * ia64-tdep.c: Include "gdb_assert.h".
5548 (ia64_read_fp): New function.
5549 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5550 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5551 * regcache.c (generic_target_read_sp): Delete function.
5552 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5553 * inferior.h (generic_target_read_sp): Delete declaration.
5554 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5555 generic_target_read_sp.
5556 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5557 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5558 * sh-tdep.c (sh_gdbarch_init): Ditto.
5559 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5560 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5561
ec5cbaec
AC
55622003-06-07 Andrew Cagney <cagney@redhat.com>
5563
5564 * gdbarch.sh: Comment each field of startup_gdbarch.
5565 * gdbarch.h, gdbarch.c: Re-generate.
5566
cde9ea48
AC
55672003-06-07 Andrew Cagney <cagney@redhat.com>
5568
5569 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5570 * gdbarch.h, gdbarch.c: Re-generate.
5571 * regcache.c: Update comments on read_pc et.al.
5572 (generic_target_read_pc): Delete function.
5573 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5574 * inferior.h (generic_target_read_pc): Delete declaration.
5575 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5576 generic_target_read_pc.
5577 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5578 * sh-tdep.c (sh_gdbarch_init): Ditto.
5579 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5580 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5581
9a90a780
AC
55822003-06-07 Andrew Cagney <cagney@redhat.com>
5583
5584 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5585 "index" with "special_local_sect". Use strcmp instead of STREQ.
5586 Append period to coments.
5587
a39a16c4
MM
55882003-06-06 Mark Mitchell <mark@codesourcery.com>
5589
5590 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5591 (elfstab_offset_sections): Likewise.
5592 * gdb-stabs.h (stab_section_info): Likewise.
5593 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5594 * objfiles.c (objfile_relocate): Likewise.
5595 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5596 * remote.c (get_offsets): Likewise.
5597 (remote_cisco_objfile_relocate): Likewise.
5598 * somread.c (som_symfile_offsets): Likewise.
5599 * symfile.c (alloc_section_addr_info): New function.
5600 (build_section_addr_info_from_section_tab): Use it.
5601 (free_section_addr_info): Adjust.
5602 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5603 (syms_from_objfile): Allocate local_addr dynamically.
5604 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5605 dynamically.
5606 (add_symbol_file_command): Allocate sect_opts dynamically.
5607 (reread_symbols): Avoid use of SECT_OFF_MAX.
5608 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5609 (alloc_section_addr_info): Declare it.
5610 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5611 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5612 dynamically.
5613 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 5614
20c6c2f8
AC
56152003-06-06 Andrew Cagney <cagney@redhat.com>
5616
5617 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5618 (d10v_frame_unwind_cache): Do not set "return_pc".
5619
884a26c8
MS
56202003-06-06 Michael Snyder <msnyder@redhat.com>
5621
5622 * h8300-tdep.c: Make tidy (long lines).
5623
088ce440
ML
56242003-06-06 Michal Ludvig <mludvig@suse.cz>
5625
8ffd9b1b 5626 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
5627 to regcache_collect().
5628
7d773d96
JB
56292003-06-05 J. Brobecker <brobecker@gnat.com>
5630
5631 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5632 pc_in_sigtramp multiarch method.
5633 (hppa_hpux_som_init_abi): Use it.
5634 (hppa_hpux_elf_init_abi): Likewise.
5635 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5636 macro has been multiarched.
5637 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5638 macro here, as hppa64 isn't multiarched yet.
5639
1df6926e
AC
56402003-06-05 Andrew Cagney <cagney@redhat.com>
5641
5642 * Makefile.in (value_h): Add $(frame_h).
5643 * value.h: Include "frame.h".
5644 (struct value): Replace "frame_addr" with "frame_id".
5645 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5646 * values.c (allocate_value): Use VALUE_FRAME_ID.
5647 (value_copy): Use VALUE_FRAME_ID.
5648 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5649 * valops.c (value_assign): Update. Use frame_find_by_id.
5650
6b53acc6
ML
56512003-06-05 Michal Ludvig <mludvig@suse.cz>
5652
5653 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5654 in each pass.
5655
4d9850d3
JJ
56562003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5657
5658 * thread-db.c (check_event): For create/death event breakpoints,
5659 loop through all messages to ensure that we read the message
5660 corresponding to the breakpoint we are at.
5661
8efca6ba
MS
56622003-06-04 Michael Snyder <msnyder@redhat.com>
5663
5664 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5665
0912c7f2
MK
56662003-06-04 Mark Kettenis <kettenis@gnu.org>
5667
5668 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5669 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5670 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5671 when handling .eh_frame sections.
5672
4e370325
JB
56732003-06-04 J. Brobecker <brobecker@gnat.com>
5674
5675 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5676 prepare_to_proceed procedure instead of the hppa-specific one.
5677 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5678
b757528f 56792003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5680
b757528f
JJ
5681 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5682 * config.in: Regenerated.
5683 * configure.in: Add test for syscall function and check for
5684 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5685 * configure: Regenerated.
5686 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5687 <sys/syscall.h>.
5688 (kill_lwp): New function that uses tkill syscall or
5689 uses kill, depending on whether threading model is nptl or not.
5690 All callers of kill() changed to use kill_lwp().
5691 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5692 see if all threads have already exited in the nptl model.
5693 (stop_and_resume_callback): New callback function used by the
5694 lin_lwp_wait thread exit handling code.
5695 (stop_wait_callback): Check for threads already having exited and
5696 delete such threads fromt the lwp list when discovered.
5697 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5698
b757528f
JJ
5699 Roland McGrath <roland@redhat.com>
5700 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5701 nptl libthread_db.
5702
087779b1
RH
57032003-06-03 Richard Henderson <rth@redhat.com>
5704
b21fd293
RH
5705 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5706 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5707 (alpha_sigtramp_frame_prev_register): Likewise.
5708 (alpha_heuristic_frame_prev_register): Likewise.
5709 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5710
8ffd9b1b 5711 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5712 alpha-specific register id names.
5713 (alpha_mdebug_frame_unwind_cache): Likewise.
5714 (alpha_mdebug_frame_prev_register): Likewise.
5715
baa490c4
RH
57162003-06-03 Richard Henderson <rth@redhat.com>
5717
5718 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5719 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5720 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5721 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5722 unwind routines.
5723 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5724 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5725 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5726
5727 * alpha-linux-tdep.c: Remove unnecessary includes.
5728 * Makefile.in (alpha-linux-tdep.o): Update.
5729
57302003-06-03 Richard Henderson <rth@redhat.com>
5731
5732 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5733 (alphabsd_fill_fpreg): Likewise.
5734
f534e522
JB
57352003-06-03 J. Brobecker <brobecker@gnat.com>
5736
5737 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5738 references to struct frame_info fields by calls to the equivalent
5739 accessors. Necessary now that frame_info is opaque.
5740
4035536b
JB
57412003-06-03 J. Brobecker <brobecker@gnat.com>
5742
5743 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5744 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5745 structure, field no longer exists.
5746
0bd79c5c
JB
57472003-06-03 J. Brobecker <brobecker@gnat.com>
5748
5749 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5750 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5751
37bb6d9f
JB
57522003-06-03 J. Brobecker <brobecker@gnat.com>
5753
5754 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5755 references to struct frame_info fields by calls to the equivalent
5756 accessors. Necessary now that frame_info is opaque.
5757
852ee05c
JB
57582003-06-03 J. Brobecker <brobecker@gnat.com>
5759
5760 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5761 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5762 structure, field no longer exists.
5763
7d58c67d
TR
57642003-06-03 Theodore A. Roth <troth@openavr.org>
5765
8ffd9b1b 5766 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5767 accumulation of the size of all registers instead of blindly using
5768 DEPRECATED_REGISTER_BYTES.
5769
0a48e7e8
MS
57702003-06-03 Michael Snyder <msnyder@redhat.com>
5771
5772 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5773 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5774 for h8300sx.
5775
9798ab0d
JB
57762003-06-03 J. Brobecker <brobecker@gnat.com>
5777
5778 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5779 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5780
00b037e2
AC
57812003-06-03 Andrew Cagney <cagney@redhat.com>
5782
5783 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5784 (sparc_convert_to_raw): Delete function.
5785 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5786 register_convert_to_virtual.
5787
043b2f77
JJ
57882003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5789
5790 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5791 layer if not dealing with a statically-linked threaded program.
5792
f43caff8
KW
57932003-06-03 Kris Warkentin <kewarken@qnx.com>
5794
5795 * solib.c (solib_open): Update comment to reflect actual search order.
5796
ae1e7417
AC
57972003-06-03 Andrew Cagney <cagney@redhat.com>
5798
5799 * frame.c (get_frame_memory_signed): New function.
5800 (get_frame_memory, get_frame_memory_unsigned): New function.
5801 (get_frame_arch): New function.
5802 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5803 (get_frame_memory, get_frame_unsigned_memory): Declare.
5804 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5805 get_frame_memory_unsigned and get_frame_arch.
5806 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5807
cb123844
RG
58082003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5809
5810 * MAINTAINERS (write after approval): Add myself.
5811
1bb792e9
JB
58122003-06-03 Jim Blandy <jimb@redhat.com>
5813
5814 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5815 elements of gregset_t are 64 bits each, but access registers
5816 are still 32 bits, so they're packed two per gregset_t
5817 element. Unpack/pack them properly.
5818
aee8d8ba
DC
58192003-06-02 David Carlton <carlton@bactrian.org>
5820
5821 * linespec.c (find_methods): Break out code into
5822 add_matching_methods and add_constructors.
5823 (add_matching_methods): New.
5824 (add_constructors): Ditto.
5825
bf7488d2
AC
58262003-06-02 Andrew Cagney <cagney@redhat.com>
5827
bf7488d2
AC
5828 * sparc-tdep.c (sparc_print_registers): Delete call to
5829 REGISTER_CONVERTIBLE.
5830 (sparc_gdbarch_init): Do not set register_convertible.
5831 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5832 * frv-tdep.c (frv_gdbarch_init): Ditto.
5833 * cris-tdep.c (cris_gdbarch_init): Ditto.
5834
adedef68
EZ
58352003-06-02 Elena Zannoni <ezannoni@redhat.com>
5836
8ffd9b1b 5837 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5838 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5839 (syms_from_objfile): Ditto.
5840
650fcc91
AS
58412003-06-03 Andreas Schwab <schwab@suse.de>
5842
5843 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5844 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5845
df4a182b
RH
58462003-06-02 Richard Henderson <rth@redhat.com>
5847
5848 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5849 a member of all_reggroup.
5850
c483c494
RH
58512003-06-02 Richard Henderson <rth@redhat.com>
5852
5853 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5854 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5855 (alpha_lds, alpha_sts): New.
5856 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5857 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5858 restructure and fail for type sizes other than 4 or 8.
5859 (alpha_value_to_register): Similarly.
5860 (alpha_extract_return_value): Use alpha_sts.
5861 (alpha_store_return_value): Use alpha_lds.
5862 (alpha_gdbarch_init): Update hooks.
5863
b38b6be2
RH
58642003-06-02 Richard Henderson <rth@redhat.com>
5865
5866 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5867 regnum identifiers.
5868 (alpha_sigtramp_register_address): Likewise.
5869
98a8e1e5
RH
58702003-06-02 Richard Henderson <rth@redhat.com>
5871
5872 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5873 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5874 * alpha-tdep.h: Declare them.
5875
5876 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5877 Remove zerobuf. Don't error on UNIQUE.
5878 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5879 (ALPHA_REGSET_UNIQUE): Provide default.
5880 (supply_gregset): Use alpha_supply_int_regs.
5881 (fill_gregset): Use alpha_fill_int_regs.
5882 (supply_fpregset): Use alpha_supply_fp_regs.
5883 (fill_fpregset): Use alpha_fill_fp_regs.
5884 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5885 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5886 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5887 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5888 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5889 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5890
67dfac52
RH
58912003-06-02 Richard Henderson <rth@redhat.com>
5892
f75d70cc
RH
5893 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5894
67dfac52
RH
5895 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5896 (alpha_store_return_value): Likewise.
5897
0cf566ec
DC
58982003-06-02 David Carlton <carlton@math.stanford.edu>
5899
5900 * block.c (contained_in): Add 'const' to arguments.
5901 (block_function): Ditto.
5902 * block.h: Update declarations for block_function and
5903 contained_in.
5904
cdef89d0
DC
59052003-06-02 David Carlton <carlton@math.stanford.edu>
5906
5907 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5908 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5909 * p-valprint.c (pascal_val_print): Ditto.
5910 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5911
72667056
RH
59122003-06-02 Richard Henderson <rth@redhat.com>
5913
98a8e1e5
RH
5914 * alpha-tdep.c (alpha_push_dummy_call): Use
5915 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5916
8ffd9b1b 5917 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5918 sign-extension of 32-bit values.
5919 (alpha_store_return_value): Similarly.
0ede8eca 5920
98a8e1e5
RH
5921 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5922 (alpha_extract_return_value): Likewise.
5923 (alpha_store_return_value): Likewise.
7b5e1cb3 5924
98a8e1e5
RH
5925 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5926 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5927
98a8e1e5
RH
5928 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5929 (alpha_extract_struct_value_address): Likewise.
5930 (alpha_store_return_value): Likewise.
5931 (alpha_store_struct_return): Remove.
5932 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5933
98a8e1e5
RH
5934 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5935 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5936 macros where appropriate.
5937 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5938 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5939
98a8e1e5
RH
5940 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5941 for SP, GP; void_func_ptr for PC; non-language-specific types
5942 for all others.
5943 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5944
6dd77b81
RH
59452003-06-02 Richard Henderson <rth@redhat.com>
5946
5947 * top.h (lim_at_start): Declare.
5948 * main.c (captured_main): Set it.
5949 * top.c (lim_at_start): Define.
5950 (command_loop): Use it instead of &environ.
5951 * event-top.c (command_handler): Likewise.
5952
f4dbdb54
JT
59532003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5954
5955 * mipsnbsd-tdep.c: Update copyright years.
5956 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5957
8f285956
RH
59582003-06-01 Richard Henderson <rth@redhat.com>
5959
98a8e1e5
RH
5960 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5961 (alpha-linux-tdep.o): Update dependencies.
5962 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5963 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5964
615967cb
RH
59652003-06-01 Richard Henderson <rth@redhat.com>
5966
98a8e1e5
RH
5967 * alpha-tdep.c (alpha_register_reggroup_p): New.
5968 (alpha_gdbarch_init): Register it.
615967cb 5969
b59661bd
AC
59702003-06-02 Andrew Cagney <cagney@redhat.com>
5971
5972 * dwarfread.c: Eliminate "register"
5973 (decode_die_type): Eliminate assignment within "if".
5974 (struct_type, decode_array_element_type): Ditto.
5975 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5976 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5977 (decode_modified_type, completedieinfo): Ditto.
5978 * block.c: Eliminate "register".
5979 (blockvector_for_pc_sect): Eliminate assignment within "if".
5980 * cp-support.h (struct symbol): Opaque declaration.
5981 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5982
5ef165c2
RH
59832003-06-01 Richard Henderson <rth@redhat.com>
5984
98a8e1e5
RH
5985 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5986 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5987
143985b7
AF
59882003-06-01 Adam Fedor <fedor@gnu.org>
5989
5990 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5991 * gdbarch.[ch]: Regenerate.
5992 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5993 (hppa_gdbarch_init): Set it in the gdbarch vector.
5994 * i386-tdep.c (i386_fetch_pointer_argument): New
5995 (i386_gdbarch_init): Set it into gdbarch.
5996 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5997 (rs6000_gdbarch_init): Set it in gdbarch.
5998 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5999 (sparc_gdbarch_init): Set it in gdbarch.
6000
ae0167b9
AC
60012003-06-01 Andrew Cagney <cagney@redhat.com>
6002
7c0b4a20
AC
6003 * defs.h (extract_address): Delete declaration.
6004 * findvar.c (extract_address): Delete function.
6005 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6006 extract_address with the inline equivalent,
6007 extract_unsigned_integer.
6008 (xstormy16_extract_struct_value_address): Ditto.
6009 (xstormy16_pointer_to_address): Ditto.
6010 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6011 * v850-tdep.c (v850_push_arguments): Ditto.
6012 (v850_extract_return_value): Ditto.
6013 (v850_extract_struct_value_address): Ditto.
6014 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6015 (sparcnbsd_get_longjmp_target_64): Ditto.
6016 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6017 (get_longjmp_target): Ditto.
6018 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6019 (sh64_extract_struct_value_address): Ditto.
6020 (sh_push_arguments): Ditto.
6021 (sh64_push_arguments): Ditto.
6022 * remote-vxsparc.c (vx_read_register): Ditto.
6023 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6024 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6025 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6026 * mipsv4-nat.c (get_longjmp_target): Ditto.
6027 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6028 * mips-nat.c (get_longjmp_target): Ditto.
6029 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6030 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6031 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6032 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6033 * irix5-nat.c (get_longjmp_target): Ditto.
6034 * irix4-nat.c (get_longjmp_target): Ditto.
6035 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6036 (ia64_push_arguments): Ditto.
6037 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6038 * h8300-tdep.c (h8300_push_arguments): Ditto.
6039 (h8300_store_return_value): Ditto.
6040 (h8300_extract_struct_value_address): Ditto.
6041 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6042 (frv_push_arguments): Ditto.
6043 * avr-tdep.c (avr_pointer_to_address): Ditto.
6044 (avr_push_arguments): Ditto.
6045 * arm-tdep.c (arm_push_dummy_call): Ditto.
6046 (arm_get_longjmp_target): Ditto.
6047 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6048 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6049 (alpha_get_longjmp_target): Ditto.
6050
ae0167b9
AC
6051 * solib-irix.c (extract_mips_address): Inline extract_address,
6052 replacing it with extract_signed_integer.
6053 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6054 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6055 (first_link_map_member, open_symbol_file_object): Ditto.
6056 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6057 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6058 (LM_NEXT, LM_NAME): Ditto.
6059
44d88583
RH
60602003-06-01 Richard Henderson <rth@redhat.com>
6061
98a8e1e5
RH
6062 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6063 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6064 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6065 (alpha_cannot_store_register): Likewise.
6066 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6067 * alpha-nat.c (supply_gregset): Likewise.
6068 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 6069
310e9b6a
AC
60702003-06-01 Andrew Cagney <cagney@redhat.com>
6071
6072 * infcall.c (call_function_by_hand): Update comment on
6073 DEPRECATED_DUMMY_WRITE_SP.
6074
6075 * mips-tdep.c (mips_gdbarch_init): Do not set
6076 deprecated_dummy_write_sp.
6077 (mips_eabi_push_dummy_call): Set the SP register.
6078 (mips_o64_push_dummy_call): Set the SP register.
6079 (mips_o32_push_dummy_call): Set the SP register.
6080 (mips_n32n64_push_dummy_call): Set the SP register.
6081
5ab84872
RH
60822003-06-01 Richard Henderson <rth@redhat.com>
6083
98a8e1e5
RH
6084 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6085 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6086 (supply_gregset): Likewise.
6087 * alpha-tdep.c (alpha_store_return_value): Likewise.
6088 (alpha_get_longjmp_target): Likewise.
6089 (alpha_register_name): Constify array.
6090 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6091 deprecated_register_size, deprecated_register_bytes,
6092 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6093 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6094 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 6095
09cc52fd
RH
60962003-06-01 Richard Henderson <rth@redhat.com>
6097
6098 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6099 from arg_reg_buffer to regcache to avoid double conversion.
6100
c7f16359
MK
61012003-06-01 Mark Kettenis <kettenis@gnu.org>
6102
6103 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6104 SP_REGNUM.
6105 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6106 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6107
7131cb6e
RH
61082003-06-01 Richard Henderson <rth@redhat.com>
6109
98a8e1e5
RH
6110 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6111 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 6112
f3e0f90b
RH
61132003-06-01 Richard Henderson <rth@redhat.com>
6114
98a8e1e5
RH
6115 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6116 not overlapping PC_REGNUM.
f3e0f90b 6117
c88e30c0
RH
61182003-06-01 Richard Henderson <rth@redhat.com>
6119
98a8e1e5
RH
6120 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6121 alpha_push_arguments. Don't dump argument register data to
6122 the target stack. Fix float and 128-bit long double semantics.
6123 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6124 (alpha_fix_call_dummy): Remove.
6125 (alpha_call_dummy_words): Remove.
6126 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 6127
f1a559ae
RH
61282003-06-01 Richard Henderson <rth@redhat.com>
6129
6130 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6131
5e045346
AC
61322003-06-01 Andrew Cagney <cagney@redhat.com>
6133
95404a3e
AC
6134 * mips-tdep.c (is_mips16_addr): New function.
6135 (make_mips16_addr, unmake_mips16_addr): New functions.
6136 (pc_is_mips16, mips_fetch_instruction): Use.
6137 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6138 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6139 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6140 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6141 TARGET_MIPS.
6142 * config/mips/tm-mips.h: Update copyright.
6143 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6144 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6145 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6146 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6147 (TM_PRINT_INSN_MACH): Delete.
6148 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6149
5e045346
AC
6150 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6151 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6152 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6153 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6154 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6155 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6156 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6157 mips*-*-riscos* and mips*-*-sysv* onto mips.
6158 * config/mips/mips64.mt: New file.
6159 * config/mips/mips.mt: New file.
6160 * config/mips/littlemips.mt: Delete file.
6161 * config/mips/decstation.mt: Delete file.
6162 * config/mips/vr4300el.mt: Delete file.
6163 * config/mips/vr5000el.mt: Delete file.
6164 * config/mips/vr5000.mt: Delete file.
6165 * config/mips/vr4100.mt: Delete file.
6166 * config/mips/vr4xxxel.mt: Delete file.
6167 * config/mips/vr4300.mt: Delete file.
6168 * config/mips/vr4xxx.mt: Delete file.
6169 * config/mips/bigmips.mt: Delete file.
6170 * config/mips/bigmips64.mt: Delete file.
6171 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6172 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6173 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6174 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6175 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6176 "tm-bigmips.h".
6177 * config/mips/tm-irix3.h: Ditto.
6178 * config/mips/tm-mipsv4.h: Ditto.
6179 * config/mips/tm-embed.h: Ditto.
6180 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6181 "tm-bigmips64.h".
6182 * config/mips/tm-vr5000el.h: Delete file.
6183 * config/mips/tm-tx39l.h: Delete file.
6184 * config/mips/tm-vr4300el.h: Delete file.
6185 * config/mips/tm-vr4xxxel.h: Delete file.
6186 * config/mips/tm-vr4300.h: Delete file.
6187 * config/mips/tm-vr4100.h: Delete file.
6188 * config/mips/tm-vr4xxx.h: Delete file.
6189 * config/mips/tm-vr5000.h: Delete file.
6190 * config/mips/tm-embedl64.h: Delete file.
6191 * config/mips/tm-embedl.h: Delete file.
6192 * config/mips/tm-embed64.h: Delete file.
6193 * config/mips/tm-bigmips64.h: Delete file.
6194 * config/mips/tm-bigmips.h: Delete file.
6195
2473a4a9
MK
61962003-06-01 Mark Kettenis <kettenis@gnu.org>
6197
97a5b208
MK
6198 Fix gdb/1216.
6199 * shnbsd-nat.c: Include "sh-tdep.h".
6200
2473a4a9
MK
6201 From Richard Henderson <rth@redhat.com>:
6202 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6203
e0f7ec59
AC
62042003-05-31 Andrew Cagney <cagney@redhat.com>
6205
6206 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6207 forward declaration.
6208 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6209 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6210 (mips_find_saved_regs): Use set_reg_offset.
6211 (mips_frame_init_saved_regs): Delete function.
6212 (mips_pop_frame): Call mips_find_saved_regs instead of
6213 DEPRECATED_FRAME_INIT_SAVED_REGS.
6214
68dcc709
AC
62152003-05-31 Andrew Cagney <cagney@redhat.com>
6216
6217 * mips-tdep.c (mips_gdbarch_init): Do not set
6218 deprecated_max_register_raw_size, register_virtual_size, and
6219 deprecated_max_register_virtual_size.
6220
cfc14b3a
MK
62212003-05-31 Mark Kettenis <kettenis@gnu.org>
6222
6405b0a6
MK
6223 * i386-tdep.c: Include "dwarf2-frame.h".
6224 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6225 * Makefile.in (i386-tdep.o): Update dependencies.
6226
cfc14b3a
MK
6227 * dwarf2-frame.c, dwarf2-frame.h: New files.
6228 * Makefile.in (SFILES): Add dwarf2-frame.c.
6229 (dwarf2_frame_h): Define.
6230 (COMMON_OBS): Add dwarf2-frame.o.
6231 (dwarf2-frame.o): Add dependencies.
6232
6a2751d2
AJ
62332003-05-31 Andreas Jaeger <aj@suse.de>
6234
6235 * x86-64-linux-nat.c: Fix comment.
6236
1c3545ae
MK
62372003-05-31 Mark Kettenis <kettenis@gnu.org>
6238
10f93086
MK
6239 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6240 function signature.
6241
1c3545ae
MK
6242 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6243 have a sigcontext_addr handler.
6244 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6245 sigcontext_addr handler.
6246
e11c53d2
AC
62472003-05-31 Andrew Cagney <cagney@redhat.com>
6248
6249 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6250 (print_fp_register_row): Replace do_fp_register_row.
6251 (mips_print_fp_register): Add "file" and "frame" parameters.
6252 (mips_print_register): Add "file" and "frame" parameters.
6253 (mips_print_registers_info): Replace mips_do_registers_info.
6254 (mips_gdbarch_init): Set print_registers_info instead of
6255 deprecated_do_registers_info.
6256 (mips_read_fp_register_single): Add "frame" parameter.
6257 (mips_read_fp_register_double): Add "frame" parameter.
6258
a3386186
MK
62592003-05-31 Mark Kettenis <kettenis@gnu.org>
6260
70913449
MK
6261 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6262 Fixes a bug where GDB would print the wrong register names for
6263 targets without SSE.
6264
2b5e0749
MK
6265 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6266 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6267 registers.
6268
6269 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6270 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6271 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6272 TDEP->sc_sp_offset.
6273
a3386186
MK
6274 From Michal Ludvig <mludvig@suse.cz>:
6275 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6276 and `sc_num_regs'.
6277 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6278 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6279 I386_ST0_REGNUM): Move here from...
6280 * i386-tdep.c: ... here.
6281 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6282 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6283 registers if possible.
6284 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6285 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6286 Remove variables.
6287 (i386bsd_sc_reg_offset): New variable.
6288 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6289 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6290 TDEP->sc_sp_offset.
6291 (i386fbsd_sc_reg_offset): New variable.
6292 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6293 TDEP->sc_num_regs.
6294 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6295 variables.
6296 (i386fbsd4_sc_reg_offset): New variable.
6297 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6298 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6299 TDEP->sc_sp_offset.
6300 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6301 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6302 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6303 Remove variables.
6304 (i386nbsd_sc_reg_offset): New variable.
6305 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6306 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6307 TDEP->sc_sp_offset.
6308 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6309 Remove variables.
6310 (i386obsd_sc_reg_offset): New variable.
6311 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6312 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6313 TDEP->sc_sp_offset.
6314 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6315 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6316 for frame pointer offset in `struct sigcontext'.
6317
25ab4790
AC
63182003-05-31 Andrew Cagney <cagney@redhat.com>
6319
6320 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6321 architecture methods call_dummy_words, sizeof_call_dummy_words,
6322 push_return_address, store_struct_return, and fix_call_dummy. Set
6323 push_dummy_call instead of deprecated_push_arguments.
6324 (mips_store_struct_return): Delete function.
6325 (mips_fix_call_dummy): Delete function.
6326 (mips_push_return_address): Delete function.
6327 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6328 RA_REGNUM and T9_REGNUM.
6329 (mips_n32n64_push_dummy_call): Ditto for
6330 mips_n32n64_push_arguments.
6331 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6332 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6333
6a65450a
AC
63342003-05-31 Andrew Cagney <cagney@redhat.com>
6335
6336 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6337 "dummy_addr" to "bp_addr".
6338 * infcall.c (call_function_by_hand): Pass "funaddr" to
6339 gdbarch_push_dummy_call.
6340 * gdbarch.h, gdbarch.c: Re-generate.
6341 * i386-tdep.c (i386_push_dummy_call): Update.
6342 * arm-tdep.c (arm_push_dummy_call): Update.
6343 * d10v-tdep.c (d10v_push_dummy_call): Update.
6344
c4f35dd8
MK
63452003-05-31 Mark Kettenis <kettenis@gnu.org>
6346
6347 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6348 variable declarations.
6349 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6350 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6351 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6352 x86_64_init_frame_pc, x86_64_init_frame_pc,
6353 x86_64_function_has_prologue): Remove prototypes.
6354 (X86_64_NUM_GREGS): New define.
6355 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6356 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6357 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6358 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6359 XMM1_REGNUM): Remove defines.
6360 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6361 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6362 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6363 X86_64_XMM1_REGNUM): New defines.
6364 (struct x86_64_register_info): Renamed from `struct
6365 register_info'. Remove `size' member.
6366 (x86_64_register_info_table): Remove variable.
6367 (x86_64_register_info): New variable.
6368 (X86_64_NUM_REGS): New define.
6369 (X86_64_NUM_GREGS): Remove define.
6370 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6371 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6372 Remove variables.
6373 (x86_54_dwarf2_reg_to_regnum): Remove function.
6374 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6375 (x86_64_dwarf_reg_to_regnum): New function.
6376 (x86_64_register_name): Rewrite.
6377 (x86_64_register_raw_size): Remove function.
6378 (x86_64_register_byte_table): Remove variable.
6379 (x86_64_register_byte): Remove function.
6380 (x86_64_register_virtual_type): Remove function.
6381 (x86_64_register_type): New function.
6382 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6383 x86_64_register_convert_to_raw): Remove functions.
6384 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6385 (x86_64_use_struct_convention): Make static. Adjust for renamed
6386 defines.
6387 (x86_64_frame_init_saved_regs): Remove function.
6388 (x86_64_push_arguments): Make static. Change to accept a regcache
6389 as argument.
6390 (x86_64_store_return_value, x86_64_extract_return_value): Make
6391 static. Rewrite based on i386 counterparts.
6392 (x86_64_push_dummy_call): New function.
6393 (X86_64_NUM_SAVED_REGS): New define.
6394 (x86_64_register_number): Remove function.
6395 (x86_64_store_struct_return): Remove function.
6396 (x86_64_frameless_function_invocation,
6397 x86_64_function_has_prologue): Remove functions.
6398 (PROLOG_BUFSIZE): Remove define.
6399 (struct x86_64_frame_cache): New structure.
6400 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6401 x86_64_frame_cache, x86_64_frame_this_id,
6402 x86_64_frame_prev_register, x86_64_frame_p,
6403 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6404 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6405 functions.
6406 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6407 variables.
6408 (x86_64_skip_prologue): Rewrite in terms of
6409 x86_64_analyze_prologue.
6410 (x86_64_frame_base_address): New function.
6411 (x86_64_frame_base): New variable.
6412 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6413 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6414 set deprecated_fp_regnum, deprecated_register_size,
6415 deprecated_register_bytes, register_raw_size, register_byte,
6416 register_virtual_type, register_convertiable,
6417 register_convert_to_virtual, convert_to_raw,
6418 deprecated_get_saved_register, deprecated_target_read_fp,
6419 deprecated_push_arguments, deprecated_push_return_address,
6420 deprecated_pop_frame, deprecated_store_struct_return,
6421 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6422 frameless_function_invocation, deprecated_frame_saved_pc,
6423 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6424 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6425 deprecated_init_frame_pc and virtual_frame_pointer. Call
6426 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6427 and x86_64_frame_p. Call frame_base_set_default to register
6428 x86_64_frame_base.
6429 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6430 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6431 (_initialize_x86_64_tdep): Remove function.
6432 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6433 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6434 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6435 define.
6436 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6437 (x86_64_linux_sigcontext_addr): Rewrite.
6438 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6439 x86_64_linux_frame_saved_pc): Remove functions.
6440 (x86_64_linux_pc_in_sigtramp): Renamed from
6441 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6442 trampoline.
6443 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6444 Remove_functions.
6445 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6446 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6447 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6448 (x86_64_regmap): Rename to regmap.
6449 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6450 x86_64_num_gregs.
6451 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6452 x86_64_regmap.
6453 (x86_64_fxsave_offset): Remove function.
6454 (supply_fpregset): Simply call x86_64_supply_fxsave.
6455 (fill_fpregset): Simply call x86_64_fill_fxsave.
6456 (fetch_inferior_registers, store_inferior_registers): Avoid
6457 asignment in if-statement.
6458 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6459 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6460 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6461 (fetch_core_registers): Remove function.
6462 (linux_elf_core_fns): Remove.
6463 (offsetoff): Don't define.
6464 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6465 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6466 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6467 add core-regset.o.
6468 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6469 protection against multiple includes instead of NM_X86_64_h. Add
6470 various comments. Include "config/nm-linux.h". Don't include
6471 <signal.h>.
6472 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6473 GET_THREAD_SIGNALS): Remove defines.
6474 (x86_64_register_u_addr, kernel_u_size,
6475 lin_thread_get_thread_signals): Remove prototypes.
6476 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6477 [HAVE_LINK_H]: Don't include "solib.h".
6478 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6479 * config/i386/tm-x86-64linux.h: Fix comments.
6480 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6481 x86-64-tdep.o): Update dependencies.
6482
c25083af
AC
64832003-05-30 Andrew Cagney <cagney@redhat.com>
6484
c8f55a7b
AC
6485 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6486 Change parameter type to a "struct regcache *".
6487
c25083af
AC
6488 * gdbarch.sh: Regardless of the multi-arch level, always define
6489 the macro when not already defined.
6490 * gdbarch.h, gdbarch.c: Re-generate.
6491
fbe586ae
RH
64922003-05-30 Richard Henderson <rth@redhat.com>
6493
6494 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6495 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6496 (alpha_mdebug_frame_this_id): Likewise.
6497 (alpha_mdebug_frame_prev_register): Likewise.
6498 (alpha_mdebug_frame_base_address): Likewise.
6499 (alpha_mdebug_frame_locals_address): Likewise.
6500 (alpha_mdebug_frame_args_address): Likewise.
6501 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6502 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6503 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6504 loop increment.
6505 (alpha_heuristic_frame_this_id): Make static.
6506 (alpha_heuristic_frame_prev_register): Likewise.
6507 (alpha_heuristic_frame_base_address): Likewise.
6508 * alpha-tdep.h: Update.
6509
acd5c798
MK
65102003-05-30 Mark Kettenis <kettenis@gnu.org>
6511
6512 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6513 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6514 defenitions.
6515 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6516 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6517 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6518 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6519 I386_ST0_REGNUM): New defines.
6520 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6521 codestream_get): Remove define.
6522 (codestream_next_addr, condestream_addr, condestream_buf,
6523 codestream_off, codestream_cnt): Remove variables.
6524 (codestream_fill, codestream_seek, codestream_read): Remove
6525 functions.
6526 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6527 functionality.
6528 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6529 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6530 i386_frame_saved_pc, i386_saved_pc_after_call,
6531 i386_frame_num_args, i386_frame_init_saved_regs,
6532 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6533 i386_push_arguments): Remove functions.
6534 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6535 functionality. Use i386_analyze_prologue instead of
6536 i386_get_frame_setup.
6537 (I386_NUM_SAVED_REGS): New define.
6538 (struct i386_frame_cache): New structure.
6539 (i386_alloc_frame_cache, i386_analyze_struct_return,
6540 i386_skip_probe, i386_analyze_frame_setup,
6541 i386_analyze_register_saves, i386_analyze_prologue,
6542 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6543 i386_frame_prev_register, i386_sigtramp_frame_cache,
6544 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6545 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6546 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6547 New functions.
6548 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6549 New variables.
6550 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6551 I386_EAX_REGNUM and I386_EDX_REGNUM.
6552 (i386_extract_return_value, i386_store_return_value): Use
6553 I386_ST0_REGNUM where appropriate.
6554 (i386_extract_struct_value_address): Rewrite to use extract_address.
6555 (i386_svr4_pc_in_sigtramp): Add comment.
6556 (i386_svr4_sigcontext_addr): Rewrite.
6557 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6558 TDEP->sc_sp_offset.
6559 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6560 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6561 of new defines. Set push_dummy_call, don't set
6562 deprecated_push_arguments, deprecated_push_return_address,
6563 deprecated_pop_frame. Don't set parm_boundary. Don't set
6564 deprecated_frame_chain, deprecated_frame_saved_pc,
6565 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6566 save_dummy_frame_tos, unwind_pc. Call
6567 frame_unwind_append_predicate and frame_base_set_default. Don't
6568 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6569 Don't set frameless_function_invocation. Don't set
6570 deprecated_register_bytes, deprecated_register_size,
6571 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6572 * i386-linux-tdep.c: Fix formatting in some comments.
6573 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6574 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6575 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6576 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6577 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6578 redundant parentheses.
6579 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6580 (i386_linux_sigcontext_addr): Use it. Rewrite.
6581 (find_minsym_and_objfile): Change name of second argument.
6582 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6583 changed. Use frame_pc_unwind instead of
6584 DEPRECATED_SAVED_PC_AFTER_CALL.
6585 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6586 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6587 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6588 unwinder.
6589 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6590 "dummy-frame.h".
6591 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6592 (_initialize_i386_cygwin_tdep): New prototype.
6593 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6594 deprecated_frame_chain_valid.
6595 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6596 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6597 Rely on the SVR4 defaults.
6598 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6599 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6600
c89b70f1
AC
66012003-05-30 Andrew Cagney <cagney@redhat.com>
6602
6603 * infcall.c (call_function_by_hand): Always call
6604 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6605
85b32d22
RH
66062003-05-30 Richard Henderson <rth@redhat.com>
6607
c89b70f1
AC
6608 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6609 increment.
85b32d22 6610
bfe51b1e
JB
66112003-05-29 Jim Blandy <jimb@redhat.com>
6612
6613 Use gdbarch methods for solib stuff on PowerPC Linux.
6614 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6615 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6616 show through.
6617 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6618 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6619 giving the same effect as the #definitions above.
6620
1abf022c
AF
66212003-05-29 Adam Fedor <fedor@gnu.org>
6622
6623 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6624 (find_implementation_from_class): Replace it with the standard
6625 case i.e. do nothing.
6626
d2427a71
RH
66272003-05-29 Richard Henderson <rth@redhat.com>
6628
6629 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6630 (alpha_linux_sigtramp_offset): Use it. Make static.
6631 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6632 update for new frame model.
6633 * alpha-mdebug-tdep.c: New file.
6634 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6635 (alpha_osf1_init_abi): Install it.
6636 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6637 (linked_proc_desc_table): Remove.
6638 (alpha_frame_past_sigtramp_frame): Remove.
6639 (alpha_dynamic_sigtramp_offset): Remove.
6640 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6641 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6642 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6643 (push_sigtramp_desc): Remove.
6644 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6645 (alpha_cannot_store_register): Likewise.
6646 (alpha_sigcontext_addr): Remove.
6647 (alpha_find_saved_regs): Remove.
6648 (alpha_frame_init_saved_regs): Remove.
6649 (alpha_init_frame_pc_first): Remove.
6650 (read_next_frame_reg): Remove.
6651 (alpha_frame_saved_pc): Remove.
6652 (alpha_saved_pc_after_call): Remove.
6653 (temp_proc_desc, temp_saved_regs): Remove.
6654 (alpha_about_to_return): Remove.
6655 (cached_proc_desc): Remove.
6656 (alpha_frame_chain): Remove.
6657 (alpha_print_extra_frame_info): Remove.
6658 (alpha_init_extra_frame_info): Remove.
6659 (alpha_frame_locals_address): Remove.
6660 (alpha_frame_args_address): Remove.
6661 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6662 (alpha_push_dummy_frame): Remove.
6663 (alpha_pop_frame): Remove.
6664 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6665 (alpha_read_insn): New.
6666 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6667 for different insn encodings.
6668 (alpha_in_lenient_prologue): Remove.
6669 (struct alpha_sigtramp_unwind_cache): New.
6670 (alpha_sigtramp_frame_unwind_cache): New.
6671 (alpha_sigtramp_register_address): New.
6672 (alpha_sigtramp_frame_this_id): New.
6673 (alpha_sigtramp_frame_prev_register): New.
6674 (alpha_sigtramp_frame_unwind): New.
6675 (alpha_sigtramp_frame_p): New.
6676 (struct alpha_heuristic_unwind_cache): New.
6677 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6678 don't count nop insns that occur between functions.
6679 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6680 heuristic_proc_desc, but without the mdebug wrapping.
6681 (alpha_heuristic_frame_this_id): New.
6682 (alpha_heuristic_frame_prev_register): New.
6683 (alpha_heuristic_frame_unwind): New.
6684 (alpha_heuristic_frame_p): New.
6685 (alpha_heuristic_frame_base_address): New.
6686 (alpha_heuristic_frame_base): New.
6687 (alpha_unwind_dummy_id): New.
6688 (alpha_unwind_pc): New.
6689 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6690 frame related deprecated initializations; install replacements.
6691 (alpha_dump_tdep): Remove.
6692 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6693 (alpha_read_insn, alpha_after_prologue,
6694 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6695 alpha_heuristic_frame_prev_register,
6696 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6697 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6698 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6699 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6700
93ec1121
AC
67012003-05-29 Andrew Cagney <cagney@redhat.com>
6702
6703 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6704 dependant on the availability of ASSERT_FUNCTION.
6705 (ASSERT_FUNCTION): Do not define when there is no function name.
6706
98f08d3d
KB
67072003-05-29 Kevin Buettner <kevinb@redhat.com>
6708
6709 From Jimi X <jimix@watson.ibm.com>:
6710 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6711
0897f59b
JB
67122003-05-28 Jim Blandy <jimb@redhat.com>
6713
6714 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6715 argument to ptrace to int; the system headers should give it the
6716 right type, and pointers don't fit in ints on powerpc64-*-*.
6717
14898363
L
67182003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6719
6720 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6721 DW_TAG_catch_block.
6722
a7a48797
EZ
67232003-05-26 Elena Zannoni <ezannoni@redhat.com>
6724
6725 * stabsread.c (dbx_lookup_type): Make static.
6726 (read_type): Ditto.
6727 (add_undefined_type): Ditto.
6728 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6729 not export.
6730
f5479e9c
EZ
67312003-05-26 Elena Zannoni <ezannoni@redhat.com>
6732
6733 * hpread.c (hpread_has_name): Make static.
6734 (hpread_psymtab_to_symtab): Ditto.
6735 (file_exists): Ditto.
6736 (hpread_call_pxdb): Ditto.
6737 (hpread_pxdb_needed): Ditto.
6738 (hpread_quick_traverse): Ditto.
6739 (hpread_get_header): Ditto.
6740 (hpread_get_lntt): Ditto.
6741 (hpread_get_slt): Ditto.
6742 (class_of): Ditto.
6743
eb2e12d7
AS
67442003-05-25 Andreas Schwab <schwab@suse.de>
6745
78bf922a
AS
6746 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6747 stack_align and deprecated_extra_stack_alignment_needed.
6748 (m68k_stack_align): Delete.
6749
eb2e12d7
AS
6750 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6751 (m68k_register_virtual_size): Likewise.
6752 (altos_skip_prologue): Remove obsolete function.
6753 (isi_frame_num_args): Likewise.
6754 (news_frame_num_args): Likewise.
6755 (m68k_fix_call_dummy): Make static.
6756 (m68k_push_dummy_frame): Likewise.
6757 (m68k_pop_frame): Likewise.
6758 (m68k_skip_prologue): Likewise.
6759 (m68k_frame_init_saved_regs): Likewise.
6760 (m68k_saved_pc_after_call): Likewise.
6761 (m68k_get_longjmp_target): Make multi-arch.
6762 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6763 structure. Register m68k_get_longjmp_target if enabled.
6764 * m68k-tdep.h (struct gdbarch_tdep): Define.
6765 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6766
6767 * Makefile.in (config.status): Also depend on configure.tgt
6768 and configure.host.
6769 (m68klinux-tdep.o): Update dependencies.
6770 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6771 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6772 (M68K_LINUX_JB_PC): Define.
6773 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6774 and take additional parameter.
6775 (m68k_linux_sigtramp_saved_pc): Update.
6776 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6777 m68k_linux_pc_in_sigtramp, in_plt_section,
6778 find_solib_trampoline_target.
6779 * config/m68k/tm-linux.h: Don't include any tm headers.
6780 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6781 (JB_ELEMENT_SIZE): Likewise.
6782 (JB_PC): Likewise.
6783 (GET_LONGJMP_TARGET): Likewise.
6784 (IN_SIGTRAMP): Likewise.
6785 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6786
eb2c22dc
MK
67872003-05-25 Mark Kettenis <kettenis@gnu.org>
6788
6789 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6790 (sparc32_push_arguments): Re-implement by calling
6791 sparc32_do_push_arguments.
6792
44b7b84e
MK
67932003-05-25 Mark Kettenis <kettenis@gnu.org>
6794
6795 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6796 SPARC_O1_REGNUM): New defines.
6797 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6798 (sparc32_store_return_value): New function.
6799 (sparc_extract_struct_value_address): Rewrite to operate on a
6800 regcache.
6801 (sparc_gdbarch_init): Don't set
6802 deprecated_extract_struct_value_address. Set
6803 extract_struct_value_address instead. Don't set
6804 deprecated_extract_return_value and deprecated_store_return_value
6805 for 32-bit targets. Set extract_return_value and
6806 store_return_value instead.
6807 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6808 DEPRECTAED_EXTRACT_RETURN_VALUE,
6809 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6810 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6811 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6812 (sparc_store_return_value): Remove prototype.
6813 (sparc32_store_return_value): New prototype.
6814 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6815 Adjust prototypes.
6816
f6ad61e3
MK
68172003-05-24 Mark Kettenis <kettenis@gnu.org>
6818
6819 * sparcnbsd-tdep.c: Include "gdb_string.h".
6820
b276f1bb
AC
68212003-05-23 Andrew Cagney <cagney@redhat.com>
6822
6823 * p-valprint.c (pascal_val_print): Replace extract_address with
6824 the inline equivalent extract_unsigned_integer.
6825 * jv-valprint.c (java_value_print): Ditto.
6826 * ada-valprint.c (ada_val_print_1): Ditto.
6827 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6828
e76c5fcc
TR
68292003-05-23 Theodore A. Roth <troth@openavr.org>
6830
6831 * blockframe.c (frameless_look_for_prologue): Remove unused
6832 after_prologue variable.
6833
2cdd89cb
MK
68342003-05-23 Mark Kettenis <kettenis@gnu.org>
6835
6836 * blockframe.c (get_pc_function_start): Rewrite to avoid
6837 asignments in if-statements.
6838
182d43bc
EZ
68392003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6840
6841 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6842 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6843 files, don't relocate absolute symbols (and do use mst_abs).
6844
e8f3fcdd
AC
68452003-05-23 Andrew Cagney <cagney@redhat.com>
6846
6847 * objc-lang.c: Include "gdb_assert.h".
6848 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6849 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6850 (gdb_check, gdb_check_fatal): Delete functions.
6851 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6852 gdb_assert.
6853 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6854 * Makefile.in (objc-lang.o): Update dependencies.
6855
3c23e6fb
ILT
68562003-05-22 Ian Lance Taylor <ian@airs.com>
6857
6858 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6859 with fprintf_filtered, not fprintf_unfiltered.
6860
af1342ab
AC
68612003-05-22 Andrew Cagney <cagney@redhat.com>
6862
6863 * stack.c (frame_info): Inline extract_address, replacing it with
6864 extract_unsigned_integer.
6865 * findvar.c (unsigned_pointer_to_address): Ditto.
6866 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6867 * dwarf2expr.c (dwarf2_read_address): Ditto.
6868 * frame.c (frame_pc_unwind): Update comment.
6869 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6870
47e242ec
JJ
68712003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6872
6873 * infptrace.c (detach): Call print_sys_errmsg rather than
6874 perror_with_name to issue warning message when errno is non-zero
6875 after calling ptrace detach.
6876
e2ac8128
JB
68772003-05-21 J. Brobecker <brobecker@gnat.com>
6878
6879 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6880 macro definitions from here...
6881 * hppa-tdep.c: ...to there.
6882
92b3541e
KB
68832003-05-20 Kevin Buettner <kevinb@redhat.com>
6884
6885 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6886 register_ptrace_addr(). Fix all callers.
6887
55809acb
AS
68882003-05-21 Andreas Schwab <schwab@suse.de>
6889
6890 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6891 dependencies.
6892 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6893 end.
6894 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6895 (_initialize_m68k_linux_tdep): New function.
6896 (m68k_linux_frame_saved_pc): Make static.
6897 (m68k_linux_extract_return_value): Likewise.
6898 (m68k_linux_store_return_value): Likewise.
6899 (m68k_linux_extract_struct_value_address): Likewise.
6900 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6901 Remove.
6902 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6903 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6904 (DEPRECATED_FRAME_SAVED_PC): Remove.
6905
0fbc10f7
KW
69062003-05-20 Kris Warkentin <kewarken@qnx.com>
6907
6908 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6909 regset numbering rather than our own.
6910
58da2eb2
DC
69112003-05-19 David Carlton <carlton@bactrian.org>
6912
6913 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6914
1fcb5155
DC
69152003-05-19 David Carlton <carlton@bactrian.org>
6916
6917 Partial fix for PR c++/827.
6918 * cp-support.h: Include symtab.h.
6919 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6920 * cp-namespace.c: Update contributors.
6921 (cp_lookup_symbol_nonlocal): New.
6922 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6923 (lookup_symbol_file): Ditto.
6924 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6925 * block.h: Declare block_scope, block_using, block_global_block.
6926 * block.c (block_scope): New.
6927 (block_using, block_global_block): Ditto.
6928 * Makefile.in (cp_support_h): Depend on symtab_h.
6929 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6930
5f9a71c3
DC
69312003-05-19 David Carlton <carlton@bactrian.org>
6932
6933 * language.h (struct language_defn): Add 'la_value_of_this'
6934 and 'la_lookup_symbol_nonlocal' members.
6935 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6936 lookup_symbol_static, lookup_symbol_global,
6937 lookup_symbol_aux_block.
6938 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6939 if we should search fields of this and how to do static/global
6940 lookup.
6941 (lookup_symbol_aux_block): Make extern.
6942 (basic_lookup_symbol_nonlocal): New.
6943 (lookup_symbol_static, lookup_symbol_global): Ditto.
6944 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6945 'la_lookup_symbol_nonlocal' members.
6946 * c-lang.c (c_language_defn, cplus_language_defn)
6947 (asm_language_defn, minimal_language_defn): Ditto.
6948 * jv-lang.c (java_language_defn): Ditto.
6949 * language.c (unknown_language_defn, auto_language_defn)
6950 (local_language_defn): Ditto.
6951 * m2-lang.c (m2_language_defn): Ditto.
6952 * objc-lang.c (objc_language_defn): Ditto.
6953 * scm-lang.c (scm_language_defn): Ditto.
6954 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6955 * p-lang.c (pascal_language_defn): Ditto for both.
6956 * Makefile.in (f-lang.o): Depend on value_h.
6957 (p-lang.o): Ditto.
6958
89a9d1b1
DC
69592003-05-19 David Carlton <carlton@bactrian.org>
6960
6961 * block.h: Declare block_static_block.
6962 * block.c (block_static_block): New.
6963 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6964 lookup_symbol_aux_local, calling block_static_block instead.
6965 (lookup_symbol_aux_local): Delete 'static_block' argument.
6966
eed3f8ab
DC
69672003-05-19 David Carlton <carlton@bactrian.org>
6968
6969 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6970
a09d8bda
ML
69712003-05-19 Michal Ludvig <mludvig@suse.cz>
6972
6973 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6974 register numbers mapping.
6975
69636828
AF
69762003-05-18 Adam Fedor <fedor@gnu.org>
6977
6978 * symtab.c (completion_list_objc_symbol): New function.
6979 (make_symbol_completion_list): Use it to add ObjC symbols
6980 when looking though the list.
6981 (language_search_unquoted_string): New function.
6982 (make_file_symbol_completion_list): Use it.
6983
55baeb84
AS
69842003-05-18 Andreas Schwab <schwab@suse.de>
6985
d0b45d99
AS
6986 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6987 dependencies.
6988 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6989 as m68k_linux_extract_return_value.
6990 (DEPRECATED_STORE_RETURN_VALUE): Define as
6991 m68k_linux_store_return_value.
6992 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6993 m68k_linux_extract_struct_value_address.
6994 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6995 get_next_frame, get_frame_base, get_frame_pc.
6996 (m68k_linux_frame_saved_pc): Use get_frame_base.
6997 (m68k_linux_extract_return_value): New function.
6998 (m68k_linux_store_return_value): New function.
6999 (m68k_linux_extract_struct_value_address): New function.
7000 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7001
55baeb84
AS
7002 * c-exp.y (typebase): Remove duplicate occurence of
7003 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 7004 of lookup_signed_typename.
55baeb84 7005
b6b08ebf
MK
70062003-05-18 Mark Kettenis <kettenis@gnu.org>
7007
7008 * dwarf2loc.c (find_location_expression): Change type of second
7009 argument to `size_t *'.
7010 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7011 for size variable.
7012
5ad1c190
DC
70132003-05-18 David Carlton <carlton@bactrian.org>
7014
7015 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7016 'linkage_name'. Add comment.
7017 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7018 'linkage_name'.
7019 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7020 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7021 (lookup_block_symbol): Ditto.
7022
b8b527c5
AC
70232003-05-16 Andrew Cagney <cagney@redhat.com>
7024
7025 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7026 * gdbarch.h, gdbarch.c: Re-generate.
7027 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7028 * TODO (REGISTER_BYTES): Delete reference.
7029 * alpha-tdep.c (alpha_gdbarch_init): Update.
7030 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7031 * x86-64-tdep.c (x86_64_init_abi): Update.
7032 * vax-tdep.c (vax_gdbarch_init): Update.
7033 * v850-tdep.c (v850_gdbarch_init): Update.
7034 * sparc-tdep.c (sparc_gdbarch_init): Update.
7035 * sh-tdep.c (sh_gdbarch_init): Update.
7036 * s390-tdep.c (s390_gdbarch_init): Update.
7037 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7038 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7039 (ns32k_gdbarch_init_32382): Update.
7040 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7041 * mcore-tdep.c (mcore_gdbarch_init): Update.
7042 * m68k-tdep.c (m68k_gdbarch_init): Update.
7043 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7044 * ia64-tdep.c (ia64_gdbarch_init): Update.
7045 * i386-tdep.c (i386_gdbarch_init): Update.
7046 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7047 * hppa-tdep.c (hppa_gdbarch_init): Update.
7048 * h8300-tdep.c (h8300_gdbarch_init): Update.
7049 * frv-tdep.c (frv_gdbarch_init): Update.
7050 * cris-tdep.c (cris_gdbarch_init): Update.
7051 * avr-tdep.c (avr_gdbarch_init): Update.
7052 * arm-tdep.c (arm_gdbarch_init): Update.
7053 * sparc-tdep.c (sparc_pop_frame): Update.
7054 * rs6000-tdep.c (rs6000_pop_frame): Update.
7055 * remote.c (init_remote_state): Update.
7056 (remote_prepare_to_store): Update.
7057 * remote-vx.c (vx_prepare_to_store): Update.
7058 * remote-sds.c (sds_fetch_registers): Update.
7059 (sds_prepare_to_store): Update.
7060 * remote-array.c: Update.
7061 * regcache.c (init_legacy_regcache_descr): Update.
7062 (init_regcache_descr): Update.
7063 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7064 (mips_o64_extract_return_value): Update.
7065 * irix5-nat.c (fetch_core_registers): Update.
7066 * irix4-nat.c (fetch_core_registers): Update.
7067 * i386-tdep.h: Update.
7068 * hppa-tdep.c (pa_do_registers_info): Update.
7069 (pa_do_strcat_registers_info): Update.
7070 * cris-tdep.c (cris_register_bytes_ok): Update.
7071 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7072 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7073 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7074 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7075 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7076 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7077 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7078 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7079 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7080 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7081 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7082 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7083 (REGISTER_BYTES_OK): Update.
7084 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7085 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7086
ee2842e2
ILT
70872003-05-16 Ian Lance Taylor <ian@airs.com>
7088
7089 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7090 (vax_print_insn, print_insn_arg): Remove static functions.
7091 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7092 print_insn_vax from opcodes library.
7093 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7094
973177d3
AC
70952003-05-15 Andrew Cagney <cagney@redhat.com>
7096
aaab4dba
AC
7097 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7098 * target.h (memory_breakpoint_from_pc): Delete declaration.
7099 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7100 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7101 * monitor.c (monitor_insert_breakpoint): Use
7102 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7103 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7104 * gdbarch.h, gdbarch.c: Re-generate.
7105 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7106 (sparc_gdbarch_init): Set breakpoint_from_pc to
7107 sparc_breakpoint_from_pc.
7108 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7109 (BREAKPOINT_FROM_PC): Define.
7110 (sparc_breakpoint_from_pc): Declare.
7111 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7112 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7113 (BREAKPOINT_FROM_PC): Define.
7114 (BREAKPOINT): Delete macro.
7115 * target.h: Update comment.
7116 * s390-tdep.c (s390_gdbarch_init): Update comments.
7117 * remote.c: Update comments.
7118 * remote-mips.c: Update comments.
7119 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7120 * mem-break.c: Update comment.
7121 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7122 (ia64_memory_insert_breakpoint): Update.
7123 * config/sparc/tm-sparc.h: Update comment.
7124 * config/pa/tm-hppa64.h: Update comment.
7125 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7126 (rs6000_breakpoint_from_pc): Update.
7127 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7128 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7129 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7130 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7131 (mips_breakpoint_from_pc): Update.
7132 (mips_dump_tdep): Update.
7133
e06963ff
AC
7134 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7135 * minsyms.c (lookup_minimal_symbol): Inline
7136 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7137
973177d3
AC
7138 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7139 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7140 * p-lang.c (pascal_printstr): Ditto.
7141 * objc-lang.c (objc_printstr): Ditto.
7142 * m2-lang.c (m2_printstr): Ditto.
7143 * jv-valprint.c (java_print_value_fields): Ditto.
7144 * f-lang.c (f_printstr): Ditto.
7145 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7146 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7147 for repeat_count_threshold.
7148 * Makefile.in (cp-valprint.o): Update dependencies.
7149
5ea2bd7f 71502003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7151
5ea2bd7f
JJ
7152 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7153 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
7154 they start with mov r2,r12. Support skipping over indirect stores
7155 of the input registers. Upon hitting a non-nop branch instruction
7156 or predicated instruction, bail out by setting lim_pc to the current
7157 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
7158 beyond our calculated value and we have trust_limit set,
7159 use the lim_pc value.
7160
cc8c88f3
AC
71612003-05-15 Andrew Cagney <cagney@redhat.com>
7162
7163 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7164 generic_find_dummy_frame.
7165 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7166 (deprecated_generic_find_dummy_frame): Update.
7167 (deprecated_read_register_dummy): Update.
7168 * frame.c (deprecated_generic_get_saved_register): Update.
7169
909cd28e
TR
71702003-05-15 Theodore A. Roth <troth@openavr.org>
7171
7172 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7173 (avr_gdbarch_init): Set breakpoint_from_pc method.
7174
b923b08d
AC
71752003-05-15 Andrew Cagney <cagney@redhat.com>
7176
7177 * regcache.c (build_regcache): Set deprecated_register_valid
7178 directly.
7179 (deprecated_grub_regcache_for_register_valid): Delete function.
7180 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7181 declaration.
7182
ae2f03ac 71832003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
7184
7185 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
7186 * symtab.c (lookup_symbol_aux): Delete calls to
7187 lookup_symbol_aux_minsyms.
7188 (lookup_symbol_aux_minsyms): Comment out function and
7189 prototype. Delete lookup by mangled name.
ae2f03ac 7190
18ec9831
KB
71912003-05-14 Kevin Buettner <kevinb@redhat.com>
7192
7193 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7194 correctly indicate an empty stack and ``stack_allocated'' to the
7195 indicate the number of elements initially allocated.
7196 (dwarf_expr_grow_stack): Simplify method for computing new
7197 stack size. Don't loop infinitely if ``stack_len'' is zero.
7198 (execute_stack_op): Move ``ctx->in_reg'' initialization
7199 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7200 be used in conjuction with DW_OP_piece. Revise error message
7201 accordingly.
7202
de18ac1f
TR
72032003-05-14 Theodore A. Roth <troth@openavr.org>
7204
7205 * MAINTAINERS: Update my email address.
7206 * avr-tdep.c: Ditto.
7207
176620f1
EZ
72082003-05-14 Elena Zannoni <ezannoni@redhat.com>
7209
7210 * symtab.h (enum domain_enum): Rename from namespace_enum.
7211 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7212 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7213 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7214 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7215 TYPES_NAMESPACE, METHODS_NAMESPACE.
7216 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7217 (struct symbol, struct partial_symbol): Rename field
7218 'namespace_enum namespace' to 'domain_enum domain'.
7219 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7220 Delete old define kludge for namespace.
7221
7222 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7223 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7224 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7225 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7226 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7227 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7228 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7229 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7230 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7231 occurrences of the above.
7232
b7f31508
ILT
72332003-05-14 Ian Lance Taylor <ian@airs.com>
7234
7235 * Makefile.in (install-only): Use $(SHELL) when running
7236 mkinstalldirs.
7237
2fdbdd39
ILT
72382003-05-13 Ian Lance Taylor <ian@airs.com>
7239
a208d82c
ILT
7240 * MAINTAINERS (write after approval): Add myself.
7241
2fdbdd39
ILT
7242 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7243 second and third arguments.
7244 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7245 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7246
fbd9dcd3
AC
72472003-05-13 Andrew Cagney <cagney@redhat.com>
7248
7249 * defs.h (store_address): Delete declaration.
7250 findvar.c (store_address): Delete function.
7251 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7252 store_unsigned_integer.
7253 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7254 * v850-tdep.c (v850_push_arguments): Ditto.
7255 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7256 * sh-tdep.c (sh64_get_saved_register): Ditto.
7257 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7258 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7259 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7260 (mips_get_saved_register): Ditto.
7261 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7262 (find_func_descr, ia64_push_arguments): Ditto.
7263 * i386-tdep.c (i386_push_arguments): Ditto.
7264 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7265 * frv-tdep.c (frv_push_arguments): Ditto.
7266 * frame.c (legacy_saved_regs_prev_register): Ditto.
7267 (deprecated_generic_get_saved_register): Ditto.
7268 * findvar.c (unsigned_address_to_pointer): Ditto.
7269 * dwarf2read.c (dwarf2_const_value): Ditto.
7270 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7271 * alpha-tdep.c (alpha_push_arguments): Ditto.
7272
6760f9e6
JB
72732003-05-12 J. Brobecker <brobecker@gnat.com>
7274
7275 * NEWS: Mention that the hppa-hpux port has been partially
7276 multiarched (32bit ABIT only, so far).
7277
30e221b4
AC
72782003-05-11 Andrew Cagney <cagney@redhat.com>
7279
7280 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7281 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7282 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7283 sim/testsuite/sim/arm/misaligned2.ms, and
7284 sim/testsuite/sim/arm/misaligned3.ms.
7285 * disasm.h (struct ui_file): Add opaque struct declaration.
7286 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7287 * frame.h (struct ui_file): Ditto.
7288
dea7f9ba
MK
72892003-05-11 Mark Kettenis <kettenis@gnu.org>
7290
7291 * value.h: Pretty print.
7292
01986c48
MK
72932003-05-10 Mark Kettenis <kettenis@gnu.org>
7294
7295 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7296
123a958e
AC
72972003-05-08 Andrew Cagney <cagney@redhat.com>
7298
7299 * regcache.h (max_register_size): Delete declaration.
7300 * regcache.c (max_register_size): Delete function.
7301 (struct regcache_descr): Delete field "max_register_size".
7302 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7303 registers fit in MAX_REGISTER_SIZE.
7304 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7305 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7306 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7307 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7308 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7309 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7310 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7311 * dve3900-rom.c, hppa-tdep.c: Ditto.
7312
eb294659
DC
73132003-05-08 David Carlton <carlton@math.stanford.edu>
7314
7315 * valops.c (push_word): Fix typo.
7316
d9d9c31f
AC
73172003-05-08 Andrew Cagney <cagney@redhat.com>
7318
7319 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7320 * gdbarch.h: Re-generate.
7321 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7322 (legacy_max_register_raw_size): Delete declaration.
7323 * regcache.c (legacy_max_register_raw_size): Delete function.
7324 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7325 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7326 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7327 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7328 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7329 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7330 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7331 * findvar.c, dwarf2cfi.c: Ditto.
7332
22540ece
AC
73332003-05-08 Andrew Cagney <cagney@redhat.com>
7334
7335 * mips-tdep.c (read_signed_register): New function, moved to here
7336 from "regcache.c".
7337 (read_signed_register_pid): Ditto.
7338 * regcache.c (read_signed_register_pid): Delete function, moved to
7339 "mips-tdep.c".
7340 (read_signed_register): Ditto.
7341 * regcache.h (read_signed_register): Delete declaration.
7342 (read_signed_register_pid): Delete declaration.
7343
0c92afe8
AC
73442003-05-08 Andrew Cagney <cagney@redhat.com>
7345
7346 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7347 * gdbarch.h: Re-generate.
7348 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7349 (legacy_max_register_virtual_size): Delete declaration.
7350 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7351 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7352 * tracepoint.c (memrange_sortmerge): Ditto.
7353 * sparc-tdep.c (sparc_print_registers): Ditto.
7354 * regcache.c (legacy_max_register_virtual_size): Delete function.
7355
6037b830
JB
73562002-05-08 J. Brobecker <brobecker@gnat.com>
7357
7358 * fork-child.c (escape_bang_in_quoted_argument): New function.
7359 (fork_inferior): Escape '!' characters in quoted arguments
7360 only when needed.
7361
5d62c8b1
JB
73622003-05-08 J. Brobecker <brobecker@gnat.com>
7363
7364 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7365 the language of the CU is not currently supported by GDB.
7366
20a0e81d
JB
73672003-05-08 J. Brobecker <brobecker@gnat.com>
7368
7369 * defs.h (language): Add language_minimal enum value.
7370 * c-lang.c (minimal_language_defn): New language definition.
7371 (_initialize_c_language): Add the new minimal language to the list
7372 of languages known to GDB.
7373
710ee10a
KB
73742003-05-08 Kevin Buettner <kevinb@redhat.com>
7375
7376 * frame.c (get_frame_type): Don't attempt to lazily initialize
7377 frame's unwinder for legacy frames.
7378
1750fa04
AC
73792003-05-07 Andrew Cagney <cagney@redhat.com>
7380
7381 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7382 and "regcache" parameters.
7383 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7384
ddf9f258 73852003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7386
7387 * dwarf2read.c (dwarf_decode_lines): Only use output of
7388 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7389 the current address.
7390
87767c29
AC
73912003-05-07 Andrew Cagney <cagney@redhat.com>
7392
7393 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7394 code.
7395
5e7b2f39
JB
73962003-05-07 Jim Blandy <jimb@redhat.com>
7397
7398 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7399 'maint info symtabs' and 'maint info psymtabs'.
7400 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7401 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7402 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7403 Declarations updated.
7404 * maint.c (maintenance_list_command): Delete.
7405 (_initialize_maint_cmds): Update calls to add_cmd.
7406 * gdbcmd.h (maintenancelistlist): Delete declaration.
7407 * cli/cli-cmds.c (maintenancelistlist): Delete.
7408 (init_cmd_lists): Don't initialize it.
7409 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7410
f6684c31
AC
74112003-05-07 Andrew Cagney <cagney@redhat.com>
7412
7413 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7414 "regcache".
7415 (d10v_print_registers_info): Update.
7416 (d10v_dmap_register, d10v_imap_register): Delete functions.
7417 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7418 and "imap_register".
7419 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7420 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7421 * arch-utils.c (generic_remote_translate_xfer_address): Add
7422 "regcache" and "gdbarch" parameters.
7423 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7424 parameter. Change class to multi-arch.
7425 * gdbarch.h, gdbarch.c: Re-generate.
7426 * remote.c (remote_xfer_memory): Use
7427 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7428
e4846b08
JJ
74292003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7430
7431 * infrun.c (prev_pc): Move declaration ahead of proceed().
7432 (proceed): Refresh prev_pc value before resuming.
7433 (stop_stepping): Remove code to refresh prev_pc.
7434
6b71b8ac
KW
74352003-05-06 Kris Warkentin <kewarken@qnx.com>
7436
7437 * nto-tdep.c: Removed stray comment.
7438
47979a4b
KW
74392003-05-06 Kris Warkentin <kewarken@qnx.com>
7440
7441 * i386-nto-tdep.c: Fix old K&R function definitions.
7442 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7443 Also change add_show_from_set() call to add_setshow_cmd().
7444 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7445
00905d52
AC
74462003-05-05 Andrew Cagney <cagney@redhat.com>
7447
7448 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7449 (fprint_dummy_frames): New function.
7450 (maintenance_print_dummy_frames): New function.
7451 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7452 * frame.c (fprint_frame_id): Make global.
7453 * frame.h (fprint_frame_id): Declare.
7454 * Makefile.in (dummy-frame.o): Update dependencies.
7455
b1e29e33
AC
74562003-05-05 Andrew Cagney <cagney@redhat.com>
7457
7458 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7459 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7460 SIZEOF_CALL_DUMMY_WORDS.
7461 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7462 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7463 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7464 CALL_DUMMY_BREAKPOINT_OFFSET.
7465 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7466 CALL_DUMMY_START_OFFSET.
7467 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7468 * gdbarch.h, gdbarch.c: Re-generate.
7469 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7470 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7471 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7472 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7473 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7474 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7475 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7476 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7477 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7478 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7479 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7480 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7481 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7482 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7483 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7484
74852003-05-05 Kris Warkentin <kewarken@qnx.com>
7486
7487 * configure.tgt: Add i[3456]86-*-nto*.
7488 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7489 * nto-tdep.c: New file. Neutrino target support routines.
7490 * nto-tdep.h: New file. Neutrino target header.
7491 * config/tm-qnxnto.h: New file.
7492 * config/i386/i386nto.mt: New file.
7493 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 7494
0ce3d317
AC
74952003-05-04 Andrew Cagney <cagney@redhat.com>
7496
7497 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7498 (load_infrun_state): Ditto.
7499 (struct thread_info): Drop "prev_func_name" field.
7500 * thread.c (load_infrun_state): Update.
7501 (save_infrun_state): Update.
7502 * infrun.c (prev_func_name): Delete variable.
7503 (init_wait_for_inferior): Do not clear prev_func_name.
7504 (stop_stepping, keep_going, context_switch): Do not swap
7505 prev_func_name.
7506 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7507 instead of PC_IN_SIGTRAMP.
7508
46654a5b
AC
75092003-05-04 Andrew Cagney <cagney@redhat.com>
7510
7511 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7512 REGISTER_BYTE with register_offset_hack.
7513 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7514 that REGISTER_BYTE is consistent with the regcache.
7515 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7516 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 7517
14b08c1b
MK
75182003-05-04 Mark Kettenis <kettenis@gnu.org>
7519
04c8243f
MK
7520 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7521 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7522
14b08c1b
MK
7523 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7524
c7a11e01
JB
75252003-05-03 J. Brobecker <brobecker@gnat.com>
7526
7527 From Thierry Schneider <tpschneider1@yahoo.com>
7528 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7529 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7530 (mi-cmd-symbol.o): Add rule.
7531
7043d8dc
AC
75322003-05-03 Andrew Cagney <cagney@redhat.com>
7533
7534 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7535 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7536 * gdbarch.h, gdbarch.c: Re-generate.
7537 * d10v-tdep.c (d10v_push_dummy_code): New function.
7538 (d10v_gdbarch_init): Set push_dummy_code.
7539 * infcall.c (legacy_push_dummy_code): New function.
7540 (generic_push_dummy_code): New function.
7541 (push_dummy_code): New function.
7542 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7543 instead of dummy_addr, to push_dummy_call. Move call to
7544 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7545 switch.
7546 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7547
92bf2b80
AC
75482003-05-03 Andrew Cagney <cagney@redhat.com>
7549
7550 * disasm.h (print_insn): Declare.
7551 * disasm.c (init_gdb_disassemble_info): New function.
7552 (gdb_disassembly): Call init_gdb_disassemble_info.
7553 (gdb_print_insn): New function.
7554 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7555 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7556 * mcore-tdep.c: Include "disasm.h"
7557 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7558 * d10v-tdep.c: Include "disasm.h".
7559 (display_trace): Call gdb_print_insn, instead of print_insn.
7560 (print_insn): Delete function.
7561 * printcmd.c: Include "disasm.h".
7562 (print_insn): Delete function.
7563 (print_formatted): Call gdb_print_insn, instead of print_insn.
7564 * Makefile.in (printcmd.o): Update dependencies.
7565 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 7566
27d94c49
AC
75672003-05-02 Andrew Cagney <cagney@redhat.com>
7568
82de1e5b
AC
7569 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7570 PC_REGNUM, re-indent.
7571 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7572 PC_REGNUM isn't set.
7573
27d94c49
AC
7574 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7575 * gdbarch.h, gdbarch.c: Re-generate.
7576 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7577 register_virtual_size, pc_regnum, or register_bytes.
7578 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7579 (d10v_register_type): Use D10V_PC_REGNUM.
7580 (d10v_print_registers_info, d10v_read_pc): Ditto.
7581 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7582 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7583
a9c0dc7f
DC
75842003-05-02 David Carlton <carlton@bactrian.org>
7585
7586 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7587 the name with mstrsave.
7588
e33d66ec
EZ
75892003-05-02 Elena Zannoni <ezannoni@redhat.com>
7590
7591 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7592 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7593 (host_charset_name, target_charset_name): New vars for use by
7594 set/show commands.
7595 (host_charset_enum, target_charset_enum): New enums for set/show
7596 commands.
7597 (set_charset_sfunc, set_host_charset_sfunc,
7598 set_target_charset_sfunc): New functions.
7599 (set_host_charset, set_target_charset): Make static.
7600 (list_charsets, set_host_charset_command,
7601 set_target_charset_command): Delete functions.
7602 (show_charset_command): Rewrite as....
7603 (show_charset): Hook this up with the set/show command mechanism.
7604 (_initialize_charset): Change names of charsets to match the
7605 set/show enums. Use host_charset_name and target_charset_name.
7606 Use set/show mechanism for charset, host-charset, target-charset
7607 commands. Do not make 'show host-charset' and 'show
7608 target-charset' be aliases of 'show charset'.
7609
7610 * charset.h (set_host_charset, set_target_charset): Don't export,
7611 they are not used outside the file.
7612
2b6fd0d8
AC
76132003-05-01 Andrew Cagney <cagney@redhat.com>
7614
7615 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7616 (gdb_disassembly): Make "di" non static, always initialize and
7617 cleanup. Always use dis_asm_read_memory.
7618 (gdb_dis_asm_read_memory): Delete function.
7619
6ae2f580
AC
76202003-05-01 Andrew Cagney <cagney@redhat.com>
7621
7622 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7623 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7624
810ecf9f
AC
76252003-04-30 Andrew Cagney <cagney@redhat.com>
7626
7627 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7628 "tm_print_insn_info".
7629 (TARGET_PRINT_INSN_INFO): Delete macro.
7630 (dis_asm_read_memory): Delete function declaration.
7631 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7632 (tm_print_insn_info): Delete variable definition.
7633 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7634 * gdbarch.h, gdbarch.c: Re-generate.
7635 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7636 "deprecated_tm_print_insn_info".
7637 * mcore-tdep.c (mcore_dump_insn): Ditto.
7638 * mips-tdep.c (mips_gdbarch_init): Ditto.
7639 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7640 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7641 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7642 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7643 instead of TARGET_PRINT_INSN_INFO, add comment.
7644 * s390-tdep.c (s390_get_frame_info): Instead of
7645 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7646 (s390_check_function_end, s390_is_sigreturn): Ditto.
7647 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7648 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7649 * disasm.c: Include "gdbcore.h".
7650 (_initialize_disasm): New function, initialize
7651 "deprecated_tm_print_insn_info".
7652 (deprecated_tm_print_insn_info): New variable.
7653 (dis_asm_read_memory): Moved from "corefile.c", made static.
7654 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7655 * Makefile.in (disasm.o): Update dependencies.
7656
07020390
AC
76572003-04-30 Andrew Cagney <cagney@redhat.com>
7658
7659 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7660
a9fa03de
AF
76612003-04-29 Adam Fedor <fedor@gnu.org>
7662
7663 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7664 * infcall.c (find_function_addr): Make non-static.
7665 * infcall.h (find_function_addr): Declare.
7666 * Makefile.in (eval.o): Update dependencies.
7667
1bae87b9
AF
76682003-04-28 Adam Fedor <fedor@gnu.org>
7669
7670 * symtab.c (symbol_find_demangled_name): Check for and demangle
7671 ObjC symbols.
7672 (symbol_init_demangled_name): Init for language_objc as well.
7673
0ba6dca9
AC
76742003-04-28 Andrew Cagney <cagney@redhat.com>
7675
7676 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7677 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7678 * gdbarch.h, gdbarch.c: Re-generate.
7679 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7680 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7681 * inferior.h (deprecated_read_fp): Rename read_fp.
7682 (generic_target_read_fp): Delete declaration.
7683 * regcache.c (generic_target_read_fp): Delete function.
7684 (deprecated_read_fp): Replace read_fp, use
7685 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7686 * d10v-tdep.c (d10v_read_fp): Delete function.
7687 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7688
7689 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7690 deprecated_target_read_fp to generic_target_read_fp.
7691 * sh-tdep.c (sh_gdbarch_init): Ditto.
7692 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7693 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7694 * frv-tdep.c (frv_gdbarch_init): Ditto.
7695
7696 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7697 deprecated_fp_regnum.
7698 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7699 * vax-tdep.c (vax_gdbarch_init): Ditto.
7700 * v850-tdep.c (v850_gdbarch_init): Ditto.
7701 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7702 * sh-tdep.c (sh_gdbarch_init): Ditto.
7703 * s390-tdep.c (s390_gdbarch_init): Ditto.
7704 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7705 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7706 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7707 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7708 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7709 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7710 * i386-tdep.c (i386_gdbarch_init): Ditto.
7711 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7712 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7713 * frv-tdep.c (frv_gdbarch_init): Ditto.
7714 * cris-tdep.c (cris_gdbarch_init): Ditto.
7715 * avr-tdep.c (avr_gdbarch_init): Ditto.
7716 * arm-tdep.c (arm_gdbarch_init): Ditto.
7717 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7718
7719 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7720 * v850-tdep.c (v850_gdbarch_init): Ditto.
7721 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7722 * sh-tdep.c (sh_gdbarch_init): Ditto.
7723 * s390-tdep.c (s390_gdbarch_init): Ditto.
7724 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7725 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7726 * mips-tdep.c (mips_gdbarch_init): Ditto.
7727 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7728 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7729 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7730 * frv-tdep.c (frv_gdbarch_init): Ditto.
7731 * avr-tdep.c (avr_gdbarch_init): Ditto.
7732 * arm-tdep.c (arm_gdbarch_init): Ditto.
7733
7734 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7735 DEPRECATED_FP_REGNUM.
7736 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7737 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7738 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7739 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7740 (sparc32_register_virtual_type): Ditto.
7741 * sh-tdep.c (sh64_frame_chain): Ditto.
7742 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7743 (sh_nofp_frame_init_saved_regs): Ditto.
7744 (sh64_nofp_frame_init_saved_regs): Ditto.
7745 (sh_fp_frame_init_saved_regs): Ditto.
7746 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7747 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7748 * procfs.c (procfs_fetch_registers): Ditto.
7749 (procfs_store_registers): Ditto.
7750 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7751 (store_inferior_registers, fetch_core_registers): Ditto.
7752 (fetch_kcore_registers, clear_regs): Ditto.
7753 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7754 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7755 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7756 * nlm/i386.c (do_status): Ditto.
7757 * mipsv4-nat.c (supply_gregset): Ditto.
7758 * mips-tdep.c: Ditto for comments.
7759 * mips-nat.c (fetch_inferior_registers): Ditto.
7760 (store_inferior_registers, fetch_core_registers): Ditto.
7761 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7762 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7763 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7764 (i386_do_pop_frame, i386_register_type): Ditto.
7765 * hppa-tdep.c (hppa_frame_chain): Ditto.
7766 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7767 (hppa_pop_frame, hppa_read_fp): Ditto.
7768 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7769 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7770 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7771 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7772 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7773 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7774 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7775 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7776 * blockframe.c: Ditto for comments.
7777 * arch-utils.h: Ditto for comments.
7778 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7779 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7780 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7781 * alpha-tdep.h: Ditto for comments.
7782 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7783 (alpha_cannot_store_register): Ditto.
7784 (alpha_push_dummy_frame): Ditto.
7785 * alpha-nat.c (supply_gregset): Ditto.
7786
7787 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7788 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7789 * config/sparc/tm-sparc.h: Update comment.
7790
7791 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7792 deprecated_read_fp instead of TARGET_READ_FP.
7793 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7794 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7795 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7796 deprecated_read_fp instead of read_fp.
7797 * s390-tdep.c (s390_push_arguments): Ditto.
7798 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7799 * frame.h: Ditto in comments.
7800 * frame.c (legacy_get_prev_frame): Ditto.
7801 * dummy-frame.c (dummy_frame_this_id): Ditto.
7802 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7803
d7a27068
AC
78042003-04-28 Andrew Cagney <cagney@redhat.com>
7805
7806 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7807 * gdbarch.h, gdbarch.c: Re-generate.
7808 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7809 * vax-tdep.c (_initialize_vax_tdep): Update.
7810 * v850-tdep.c (_initialize_v850_tdep): Update.
7811 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7812 * s390-tdep.c (_initialize_s390_tdep): Update.
7813 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7814 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7815 * mips-tdep.c (_initialize_mips_tdep): Update.
7816 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7817 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7818 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7819 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7820 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7821 * frv-tdep.c (_initialize_frv_tdep): Update.
7822 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7823 (_initialize_cris_tdep): Update.
7824 * arch-utils.c (legacy_print_insn): Update.
7825 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7826
d2630e69
AF
78272003-04-26 Adam Fedor <fedor@gnu.org>
7828
7829 * linespec.c (decode_objc): New function to decode ObjC calls
7830 (decode_line_1): Check for ObjC calls (using decode_objc)
7831 * Makefile (linespec.o): Update dependencies.
7832
3086aeae
DJ
78332003-04-26 Daniel Jacobowitz <drow@mvista.com>
7834
7835 * breakpoint.h (struct breakpoint_ops): New.
7836 (struct breakpoint): Add ops member.
7837
7838 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7839 (mention): Use new breakpoint ops member.
7840 (set_raw_breakpoint): Initialize ops field to NULL.
7841 (print_exception_catchpoint, print_one_exception_catchpoint)
7842 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7843 (gnu_v3_exception_catchpoint_ops): New.
7844 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7845
1fbec6c3
AF
78462003-04-25 Adam Fedor <fedor@gnu.org>
7847
7848 * Makefile.in (COMMON_OBS): Add objc-lang.o
7849
0ef21242
AC
78502003-04-25 Andrew Cagney <cagney@redhat.com>
7851
7852 * d10v-tdep.c (print_insn): Delete function.
7853 (display_trace): Use TARGET_PRINT_INSN.
7854 (_initialize_d10v_tdep): Do not set tm_print_insn.
7855 (d10v_gdbarch_init): Set print_insn.
7856
f75493ed
AC
78572003-04-25 Andrew Cagney <cagney@redhat.com>
7858
7859 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7860 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7861 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7862 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7863 (nr_dmap_regs, a0_regnum): ... new functions.
7864 (d10v_print_registers_info): Use a0_regnum, use register_size.
7865 (d10v_register_byte): Delete function.
7866 (d10v_register_raw_size): Delete function.
7867 (d10v_register_type): Use a0_regnum.
7868 (d10v_print_registers_info): Use a0_regnum.
7869 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7870 (d10v_gdbarch_init): Do not set register_byte or
7871 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7872 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7873 extract_address.
7874 (trace_command): Use XCALLOC.
7875 (print_insn): Delete reference to tm_print_insn.
7876 (saved_regs_unwinder): Use store_unsigned_integer instead of
7877 store_address.
7878 * frame.h (FRAME_OBSTACK_CALLOC): Define
7879
2202b100
DC
78802003-04-25 David Carlton <carlton@bactrian.org>
7881
7882 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7883
4e45ca2e
AF
78842003-04-24 Adam Fedor <fedor@gnu.org>
7885
7886 * objc-lang.c: Include "valprint.h"
7887 * Makefile.in (objc-lang.o): Update dependencies.
7888
93de3e7f
AF
78892003-04-24 Adam Fedor <fedor@gnu.org>
7890
8ffd9b1b 7891 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7892 architecture dependant compilation and mark as unimplemented
7893 (until they get put in the gdbarch vector).
7894
0f20eeea
DC
78952003-04-23 David Carlton <carlton@bactrian.org>
7896
7897 * cp-support.c (cp_find_first_component): Accept 'operator' in
7898 more locations.
7899
74cfe982
AC
79002003-04-23 Andrew Cagney <cagney@redhat.com>
7901
7902 * infcall.c (call_function_by_hand): Eliminate redundant
7903 indentation. Move "saved_async" and "old_cleanups" to where they
7904 are needed.
8ffd9b1b 7905
52557533
AC
79062003-04-23 Andrew Cagney <cagney@redhat.com>
7907
7908 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7909 and "buffer". Move the "name" code to where it is needed.
7910
158775de
AC
79112003-04-23 Andrew Cagney <cagney@redhat.com>
7912
7913 * infcall.c (call_function_by_hand): Move variables "start_sp",
7914 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7915 code to ON_STACK switch branch.
8ffd9b1b 7916
ebc7896c
AC
79172003-04-23 Andrew Cagney <cagney@redhat.com>
7918
7919 * infcall.c (call_function_by_hand): Make declaration of "i",
7920 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7921 lint.
7922
d727590f
AC
79232003-04-23 Andrew Cagney <cagney@redhat.com>
7924
7925 * infcall.c (call_function_by_hand): Delete variable
7926 "n_method_args". Localize "param_type"'s declaration to the loop
7927 that it is used. Reinstate code assigning to said variable -
7928 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7929 Rationalize code using "param_type".
7930
d585e13a
AC
79312003-04-22 Andrew Cagney <cagney@redhat.com>
7932
7933 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7934 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7935 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7936 to DEPRECATED_PUSH_RETURN_ADDRESS.
7937
051caad9
KB
79382003-04-22 Kevin Buettner <kevinb@redhat.com>
7939
7940 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7941 on the DWARF2 register number prior to fetching a register.
7942
77296879
JB
79432003-04-22 J. Brobecker <brobecker@gnat.com>
7944
7945 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7946 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7947 this macro was always set to 0.
77296879
JB
7948 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7949 considering the fact that this macro was always set to 0.
7950 * hppa-tdep.h (hppa_store_return_value): Likewise.
7951 (hppa_extract_return_value): Likewise.
7952
4252f1df
JB
79532003-04-22 J. Brobecker <brobecker@gnat.com>
7954
7955 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7956 the hppa-pro target only.
7957
14604c6b
JB
79582003-04-21 J. Brobecker <brobecker@gnat.com>
7959
7960 Ongoing multi-arch conversion effort for HP/UX:
7961 * config/pa/tm-hppa.h: Move all macro that are no longer
7962 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7963 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7964
77eb01d1
JB
79652003-04-21 J. Brobecker <brobecker@gnat.com>
7966
7967 * config/pa/tm-hppa.h: Obsolete a section that was only used
7968 for hppa-pro.
7969
61995b3b
JB
79702003-04-21 J. Brobecker <brobecker@gnat.com>
7971
7972 Ongoing multi-arch conversion for HP/UX.
7973 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7974 if already defined (allows hppa64 to stay non-multiarched for now).
7975 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7976
4aa79dcc
AC
79772003-04-21 Andrew Cagney <cagney@redhat.com>
7978
7979 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7980
0f751ff2
AC
79812003-04-21 Andrew Cagney <cagney@redhat.com>
7982
7983 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7984 "i386_num_mmx_regs".
7985
04714b91
AC
79862003-04-21 Andrew Cagney <cagney@redhat.com>
7987
7988 * infcall.c: New file.
7989 * infcall.h: New file.
7990 * valarith.c: Include "infcall.h".
7991 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7992 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7993 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7994 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7995 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7996 (SFILES): Add "infcall.c"
7997 (COMMON_OBS): Add "infcall.o".
7998 (infcall.o): Specify dependencies.
7999 * value.h (call_function_by_hand): Delete declaration.
8000 * inferior.h (run_stack_dummy): Delete declaration.
8001 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8002 (run_stack_dummy): Move to "infcall.c", merged into
8003 call_function_by_hand.
8004 * valops.c (call_function_by_hand): Moved to "infcall.c".
8005 (find_function_addr, value_arg_coerce): Ditto.
8006 (unwindonsignal_p, coerce_float_to_double): Ditto.
8007 (_initialize_valops): Move "set/show coerce-float-to-double", and
8008 "set/show unwindonsignal" commands to "infcall.c".
8009 * v850-tdep.c, target.h: Update comments.
8010 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8011 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8012 (sh64_init_extra_frame_info): Update comments.
8013 * mn10300-tdep.c: Update comments.
8014 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8015 * config/sparc/tm-sparc.h: Update comments.
8016 * breakpoint.h: Update comments.
8017 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8018 * arm-tdep.c: Update comment.
8019
f9d3c2a8
MK
80202003-04-19 Mark Kettenis <kettenis@gnu.org>
8021
c40e1eab
MK
8022 * i386-tdep.c (i386_num_register_names): New variable.
8023 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8024 (MM0_REGNUM): Remove redundant parentheses in define.
8025 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8026 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8027 i386_mxcsr_regnum_p): Remove redundant parentheses.
8028 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 8029
94ea66b3
MK
8030 * i386-tdep.c (i386_extract_return_value,
8031 i386_store_return_value): Correct check for availability of
8032 floating-point registers.
8033
54299a1d
MK
8034 * i386-tdep.c (i386_frame_num_args): Remove function.
8035 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8036
c86c27af
MK
8037 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8038 mmx_regnum_to_fp_regnum. Adjust all callers.
8039
f9d3c2a8
MK
8040 * i386-tdep.c (i386_get_longjmp_target): Use
8041 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8042 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8043 extract_address.
8044
94ba74a9
MK
80452003-04-19 Mark Kettenis <kettenis@gnu.org>
8046
8047 * core-regset.c: Update comments to reflect reality. Re-order
8048 includes.
8049 (fetch_core_registers): Use switch instead of if. Remove
8050 redundant prototype.
8051
4074e13c
JB
80522003-04-18 Jim Blandy <jimb@redhat.com>
8053
8054 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 8055 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 8056
e3ab4aba
RH
80572003-04-17 Richard Henderson <rth@redhat.com>
8058
8059 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8060
627bf7c1
EZ
80612003-04-17 Michael Snyder <msnyder@redhat.com>
8062 Karen Bennet <bennet@redhat.com>
8063
8064 Committed by Elena Zannoni <ezannoni@redhat.com>
8065 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 8066
514621a9
EZ
80672003-04-17 Elena Zannoni <ezannoni@redhat.com>
8068
8069 * values.c (value_being_returned): Don't fetch the return
fbe586ae 8070 value if the return type is void.
514621a9 8071
b4acd559
JJ
80722003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8073
8074 * thread-db.c: Reindented.
8ffd9b1b 8075
530b167e 80762003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8077
8078 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8079 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
8080 as types.
8081
0a48e7e8
MS
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8ffd9b1b 8105
ab9fe00e
KB
81062003-04-16 Kevin Buettner <kevinb@redhat.com>
8107
610a3745 8108 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
8109 the size of ``long double'' to 16, instead of 8.
8110
e64a344c
MK
81112003-04-16 Mark Kettenis <kettenis@gnu.org>
8112
8113 * i386-linux-nat.c: Add some whitespace to make things more
8114 readable.
8115 (fetch_register, store_register, fetch_inferior_registers,
8116 store_inferior_registers): Get rid of assignment in if-statement.
8117 (store_register): Fix typo in error message.
8118
25d41031
AC
81192003-04-16 Andrew Cagney <cagney@redhat.com>
8120
8121 * utils.c (xmmalloc): Always allocate something, matches
8122 libiberty/xmalloc's semantics.
8123 (xmrealloc, xmcalloc): Ditto.
8124
c50901fd
AC
81252003-04-16 Andrew Cagney <cagney@redhat.com>
8126
8127 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8128 update comments.
8129 (get_frame_type): Initialize unwind and type when needed.
8130 (get_frame_id, frame_register_unwind): Ditto.
8131
f81824a9
AC
81322003-04-16 Andrew Cagney <cagney@redhat.com>
8133
8134 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8135 obsolete.
8136 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8137 * sparcl-stub.c: Obsolete file.
8138 * config/sparc/tm-sparclet.h: Obsolete file.
8139 * sparclet-stub.c: Obsolete file.
8140 * sparclet-rom.c: Obsolete file.
8141 * sparcl-tdep.c: Obsolete file.
8142 * config/sparc/tm-sparclite.h: Obsolete file.
8143 * config/sparc/sparclite.mt: Obsolete file.
8144 * config/sparc/sparclet.mt: Obsolete file.
8145 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8146 sparc86x-*-* obsolete.
8147
9219021c
DC
81482003-04-15 David Carlton <carlton@math.stanford.edu>
8149
8150 * Makefile.in (SFILES): Add cp-namespace.c.
8151 (COMMON_OBS): Add cp-namespace.o.
8152 (block.o): Depend on gdb_obstack_h and cp_support_h.
8153 (buildsym.o): Depend on cp_support_h.
8154 (cp-namespace.o): New.
8155 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8156 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8157 (dwarf2read.o): Depend on cp_support_h.
8158 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8159 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8160 processing_current_namespace.
8161 (read_namespace): Update processing_current_namespace; check for
8162 anonymous namespaces.
8163 (dwarf2_name): New function.
8164 (dwarf2_extension): Ditto.
8165 * cp-support.h: Update copyright, contributors.
8166 Add inclusion guards.
8167 Add opaque declaration for structs obstack, block, symbol.
8168 (struct using_direct): New struct.
8169 Add declarations for cp_find_first_component,
8170 cp_entire_prefix_len, processing_has_namespace_info,
8171 processing_current_namespace, cp_is_anonymous,
8172 cp_add_using_directive, cp_initialize_namespace,
8173 cp_finalize_namespace, cp_set_block_scope,
8174 cp_scan_for_anonymous_namespaces.
8175 * cp-namespace.c: New file.
8176 * cp-support.c: Update copyright.
8177 Include ctype.h, gdb_assert.h, gdbcmd.h.
8178 New variable maint_cplus_cmd_list.
8179 (cp_find_first_component): New function.
8180 (cp_entire_prefix_len, maint_cplus_command)
8181 (first_component_command, _initialize_cp_support): Ditto.
8182 * buildsym.c: Include cp-support.h.
8183 New variable using_list.
8184 (add_symbol_to_list): Check for anonymous namespaces.
8185 (finish_block): Set block's scope.
8186 (start_symtab): Initialize C++ namespace support.
8187 (end_symtab): Finalize C++ namespace support.
8188 * block.h: Add opaque declarations for structs
8189 block_namespace_info, using_direct, and obstack.
8190 Add declarations for block_set_scope and block_set_using.
8191 (struct block): Add 'language_specific' member.
8192 (BLOCK_NAMESPACE): New macro.
8193 * block.c: Include gdb_obstack.h and cp-support.h.
8194 (struct block_namespace_info): New struct.
8195 (block_set_scope): New function.
8196 (block_set_using, block_initialize_namespace): Ditto.
8197
d5a921c9
KB
81982003-04-14 Kevin Buettner <kevinb@redhat.com>
8199
8200 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8201 (locate_base): Return early if there aren't any link map offsets.
8202 (svr4_solib_create_inferior_hook): Warn if shared library support
8203 is unavailable.
8204
d2a52b27
DC
82052003-04-14 David Carlton <carlton@math.stanford.edu>
8206
8207 * symtab.c (symbol_set_names): Add prefix when storing Java names
8208 in hash table. Fix for PR java/1039.
8209
980cae7a
DC
82102003-04-14 David Carlton <carlton@math.stanford.edu>
8211
8212 * symtab.c (symbol_set_names): Rename 'name' arg to
8213 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8214 * symtab.h: Change 'name' argument in declaration of
8215 symbol_set_names to 'linkage_name'.
8216 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8217
e227b13c
AC
82182003-04-14 Andrew Cagney <cagney@redhat.com>
8219
8220 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8221 return the fully sign-extended register value.
8222 (get_frame_pointer): Ditto.
8223 (mips_pop_frame): Initialize "proc_desc" after checking for a
8224 dummy frame.
8225
36712a20
AC
82262003-04-14 Andrew Cagney <cagney@redhat.com>
8227
8228 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8229 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8230 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8231 (mips_push_register): Delete function.
8232 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8233 PUSH_FP_REGNUM.
8234
44ea7b70
JB
82352003-04-14 Jim Blandy <jimb@redhat.com>
8236
8237 * symmisc.c: #include "gdb_regex.h".
8238 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8239 functions.
8240 * maint.c (maintenance_list_command): New function.
8241 (_initialize_maint_cmds): Register the above as commands.
8242 * symtab.h (maintenance_list_symtabs,
8243 maintenance_list_psymtabs): New declarations.
8244 * cli/cli-cmds.c (maintenancelistlist): New variable.
8245 (init_cmd_lists): Initialize it.
8246 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8247 * gdbcmd.h (maintenancelistlist): New declaration.
8248 * Makefile.in (symmisc.o): Update dependencies.
8249
2d0c7962
EZ
82502003-04-14 Elena Zannoni <ezannoni@redhat.com>
8251
8252 * s390-nat.c: Include asm/types.h for addr_t.
8253
1947a811
CV
82542003-04-14 Corinna Vinschen <vinschen@redhat.com>
8255
8256 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8257 actually incoming type.
8258
adb616d7
AC
82592003-04-13 Andrew Cagney <cagney@redhat.com>
8260
8261 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8262 get_next_frame and get_frame_saved_regs.
8263
9b5e151c
AC
82642003-04-13 Andrew Cagney <cagney@redhat.com>
8265
8266 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8267 of gdbarch_num_regs.
8268
ef6e7e13
AC
82692003-04-13 Andrew Cagney <cagney@redhat.com>
8270
8271 * frame.h: Mention what replaced what in "struct frame_info".
8272 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8273 deprecated_update_frame_base_hack and
8274 deprecated_update_frame_pc_hack.
8275 * hppa-tdep.c: Ditto.
8276
61fbb938
DJ
82772003-04-13 Daniel Jacobowitz <drow@mvista.com>
8278
8279 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8280 to read_reg and update its comment. Remove regnum member.
8281 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8282 Don't call read_reg when setting in_reg. Call read_reg to get
8283 the frame base if it's in a register. Return the register number
8284 on the stack instead of in the context. Remove extra arguments
8285 to read_reg.
8286 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8287 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8288 the register number on the expression stack.
8289 (needs_frame_read_reg): Remove extra arguments.
8290
0d53c4c4
DJ
82912003-04-13 Daniel Jacobowitz <drow@mvista.com>
8292
8293 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8294 made non-static.
8295 (execute_stack_op): All callers updated.
8296 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8297 * dwarf2loc.c (find_location_expression): New function.
8298 (dwarf_expr_frame_base): Call it.
8299 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8300 (dwarf2_tracepoint_var_ref): New function, broken out from
8301 locexpr_tracepoint_var_ref.
8302 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8303 Make static.
8304 (loclist_read_variable, loclist_read_needs_frame): New functions.
8305 (loclist_describe_location, loclist_tracepoint_var_ref): New
8306 functions.
8307 (dwarf2_loclist_funcs): New struct location_funcs.
8308 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8309 (struct dwarf2_locexpr_baton): Add comments.
8310 (dwarf2_loclist_funcs): New extern.
8311 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8312 base_address and base_known.
8313 (dwarf_loc_buffer): New variable.
8314 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8315 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8316 (dwarf2_has_info): Initialize dwarf_loc_offset.
8317 (dwarf2_build_psymtabs): Read in .debug_loc.
8318 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8319 DWARF_LOC_SIZE.
8320 (psymtab_to_symtab_1): Likewise. Move base address calculation
8321 here, from...
8322 (dwarf2_get_pc_bounds): ... here. Use the base address from
8323 cu_header.
8324 (dwarf2_symbol_mark_computed): Handle location lists.
8325
6aca59a3
DJ
83262003-04-13 Daniel Jacobowitz <drow@mvista.com>
8327
8328 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8329 if the linkage name demangled successfully.
8330
aca1fcd0
MK
83312003-04-13 Mark Kettenis <kettenis@gnu.org>
8332
97095916
MK
8333 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8334 disassmbly_flavour): Removed.
8335
aca1fcd0
MK
8336 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8337
562a961f
MK
83382003-04-13 Mark Kettenis <kettenis@gnu.org>
8339
8340 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8341
bd013d54
AC
83422003-04-12 Andrew Cagney <cagney@redhat.com>
8343
8344 * frame.h (struct frame_info): Move definition from here ...
8345 * frame.c (struct frame_info): ... to here.
8346
167ef8b1
AC
83472003-04-12 Andrew Cagney <cagney@redhat.com>
8348
8349 * gdbthread.h (save_infrun_state): Delete parameter
8350 "prev_func_start".
8351 (struct thread_info): Delete field "prev_func_start".
8352 (load_infrun_state): Ditto.
8353 * thread.c (load_infrun_state, save_infrun_state): Update.
8354 * infrun.c (prev_func_start): Delete variable.
8355 (context_switch, init_wait_for_inferior): Update.
8356 (stop_stepping, keep_going): Update.
8357
da3331ec
AC
83582003-04-12 Andrew Cagney <cagney@redhat.com>
8359
8360 * gdbarch.sh: Add missing opaque declarations.
8361 * gdbarch.h: Regnerate.
8362 * symtab.h: Add missing opaque declarations.
8363 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8364 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8365 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8366 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8367 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8368 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8369 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8370 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8371 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8372 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8373 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8374 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8375 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8376
18adea3f
AC
83772003-04-11 Andrew Cagney <cagney@redhat.com>
8378
8379 * frame.c (get_frame_id): Return this frame's "id".
8380 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8381 function start.
8382 (legacy_saved_regs_this_id): Replace function body with
8383 internal-error.
8384 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8385 FRAME_OBSTACK_ZALLOC.
8386 (create_new_frame): Mark the frame ID as valid.
8387
2252e863
AO
83882003-04-11 Alexandre Oliva <aoliva@redhat.com>
8389
8390 * Makefile.in (libbfd_h): Added missing setting.
8391 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8392 according to the selected ABI.
8393
a8245ab8
JJ
83942003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8395
8396 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8397
6913c89a
AC
83982003-04-11 Andrew Cagney <cagney@redhat.com>
8399
8400 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8401 SAVED_PC_AFTER_CALL.
8402 * gdbarch.h, gdbarch.c: Regenerate.
8403 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8404 * x86-64-tdep.c (x86_64_init_abi): Update.
8405 * vax-tdep.c (vax_gdbarch_init): Update.
8406 * v850-tdep.c (v850_gdbarch_init): Update.
8407 * sparc-tdep.c (sparc_gdbarch_init): Update.
8408 * sh-tdep.c (sh_gdbarch_init): Update.
8409 * s390-tdep.c (s390_gdbarch_init): Update.
8410 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8411 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8412 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8413 * mips-tdep.c (mips_gdbarch_init): Update.
8414 * mcore-tdep.c (mcore_gdbarch_init): Update.
8415 * m68k-tdep.c (m68k_gdbarch_init): Update.
8416 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8417 * ia64-tdep.c (ia64_gdbarch_init): Update.
8418 (ia64_saved_pc_after_call): Update declaration.
8419 * i386ly-tdep.c (i386lynx_init_abi): Update.
8420 * i386-tdep.c (i386_gdbarch_init): Update.
8421 * hppa-tdep.c (hppa_gdbarch_init): Update.
8422 * h8300-tdep.c (h8300_gdbarch_init): Update.
8423 * frv-tdep.c (frv_gdbarch_init): Update.
8424 * cris-tdep.c (cris_gdbarch_init): Update.
8425 * avr-tdep.c (avr_gdbarch_init): Update.
8426 * arm-tdep.c (arm_gdbarch_init): Update.
8427 * alpha-tdep.c (alpha_gdbarch_init): Update.
8428 * ns32knbsd-nat.c (frame_num_args): Update.
8429 * ns32k-tdep.c (umax_frame_num_args): Update.
8430 * mips-tdep.c (mips_init_frame_pc_first): Update.
8431 * infrun.c (step_over_function): Update.
8432 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8433 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8434 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8435 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8436 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8437 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8438 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8439 * arch-utils.c (init_frame_pc_default): Update.
8440 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8441 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8442 declaration.
8ffd9b1b 8443
38edeab8
AC
84442003-04-11 Andrew Cagney <cagney@redhat.com>
8445
8446 * i387-tdep.c: Update copyright.
8447 (i387_to_double): Delete function.
8448 (double_to_i387): Delete function.
8449
81f8a206
AC
84502003-04-10 Andrew Cagney <cagney@redhat.com>
8451
8452 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8453 frame's function's address. Simplify.
8454 (d10v_frame_unwind_cache): Check that the frame's function is
8455 non-zero.
8456
6e691f7a
JB
84572003-04-10 Jim Blandy <jimb@redhat.com>
8458
8459 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8460 call to set_gdbarch_deprecated_push_arguments.
8461
7f78e237
AC
84622003-04-10 Andrew Cagney <cagney@redhat.com>
8463
8464 * frame.c (fprint_frame_id): New function.
8465 (fprint_frame_type, fprint_frame): New function.
8466 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8467 (create_sentinel_frame, get_frame_id): Ditto.
8468 (frame_id_p, frame_id_eq): Ditto.
8469 (frame_id_inner, create_new_frame): Ditto.
8470 (legacy_get_prev_frame, get_prev_frame): Ditto.
8471 (deprecated_update_frame_pc_hack): Ditto.
8472 (frame_register_unwind): Ditto.
8473 (deprecated_update_frame_base_hack): Ditto.
8474
f870b49b
CV
84752003-04-10 Corinna Vinschen <vinschen@redhat.com>
8476
8477 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8478 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8479 frame_chain function.
8480 * Makefile.in: Add dependencies due to above change.
8481
7c86889b
CV
84822003-04-10 Corinna Vinschen <vinschen@redhat.com>
8483
8484 * blockframe.c (legacy_frame_chain_valid): Move call to
8485 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8486 inside_entry_file.
8487
d0a55772
AC
84882003-04-09 Andrew Cagney <cagney@redhat.com>
8489
8490 * frame.h (struct frame_id): Replace "pc" and "base" with
8491 "stack_addr" and "code_addr". Update comments.
8492 (frame_id_build): Update parameter names and comment.
8493 (struct frame_info): Replace "id_p" and "id" with "this_id".
8494 * dummy-frame.c (dummy_frame_this_id): Update.
8495 * breakpoint.c (print_one_breakpoint): Update.
8496 * frame.c (get_frame_id): Update.
8497 (get_frame_base, frame_id_build): Update.
8498 (create_sentinel_frame, legacy_get_prev_frame): Update.
8499 (deprecated_update_frame_base_hack): Update.
8500 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8501 (frame_id_inner): Ditto.
8502
ac16bf07
AC
85032003-04-09 Andrew Cagney <cagney@redhat.com>
8504
8505 * defs.h (gdb_print_host_address): Make "addr" parameter a
8506 pointer constant.
8507 * utils.c (gdb_print_host_address): Update.
8508
366cfc9e
KB
85092003-04-09 Kevin Buettner <kevinb@redhat.com>
8510
8511 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8512 register number for R0 is 0.
8513
cd983b5c
JB
85142003-04-09 J. Brobecker <brobecker@gnat.com>
8515
8516 * frame.h (struct gdbarch): Add opaque structure definition
8517 to avoid a compilation warning on LynxOS 4.0.
8518
d1340264
AC
85192003-04-09 Andrew Cagney <cagney@redhat.com>
8520
8521 * frame.h (struct frame_info): Delete field "pc". Replace
8522 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8523 structure.
8524 * frame.c (frame_pc_unwind): Update.
8525 (create_sentinel_frame): Do not set "pc".
8526 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8527 (get_frame_pc): Call frame_pc_unwind.
8528 (deprecated_update_frame_pc_hack): Update.
8529 (create_new_frame): Use "pc" not "->pc".
8530
90a6fffb
AC
85312003-04-09 Andrew Cagney <cagney@redhat.com>
8532
8533 * frame.c (get_frame_id): Eliminate code updating "frame".
8534 (legacy_get_prev_frame): Ditto.
8535 (get_frame_base): Return id.base directly.
8536 (deprecated_update_frame_base_hack): Update "id.base".
8537 * frame.h (struct frame_info): Delete field "frame".
8538
2fbce691
AC
85392003-04-09 Andrew Cagney <cagney@redhat.com>
8540
8541 * NEWS: Mention that the "Sequent family" is obsolete.
8542 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8543 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8544 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8545 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8546 * config/i386/tm-ptx4.h: Obsolete file.
8547 * config/i386/tm-ptx.h: Obsolete file.
8548 * symm-tdep.c: Obsolete file.
8549 * config/i386/symmetry.mt: Obsolete file.
8550 * config/i386/tm-symmetry.h: Obsolete file.
8551 * symm-nat.c: Obsolete file.
8552 * config/i386/nm-symmetry.h: Obsolete file.
8553 * config/i386/xm-symmetry.h: Obsolete file.
8554 * config/i386/symmetry.mh: Obsolete file.
8555 * config/i386/nm-ptx4.h: Obsolete file.
8556 * config/i386/ptx4.mh: Obsolete file.
8557 * config/i386/ptx.mt: Obsolete file.
8558 * config/i386/ptx.mh: Obsolete file.
8559 * config/i386/xm-ptx4.h: Obsolete file.
8560 * config/i386/xm-ptx.h: Obsolete file.
8561
78c43945
AC
85622003-04-09 Andrew Cagney <cagney@redhat.com>
8563
8564 Obsolete mips*-*-mach3*.
8565 * NEWS: Mention that mips*-*-mach3* is obsolete.
8566 * m3-nat.c: Obsolete file.
8567 * config/nm-m3.h: Obsolete file.
8568 * config/mips/tm-mipsm3.h: Obsolete file.
8569 * config/mips/mipsm3.mt: Obsolete file.
8570 * config/mips/mipsm3.mh: Obsolete file.
8571 * config/mips/xm-mipsm3.h: Obsolete file.
8572 * mipsm3-nat.c: Obsolete file.
8573 * configure.host: Obsolete mips-dec-mach3*.
8574 * configure.tgt: Obsolete mips*-*-mach3*.
8575
f1908289
AC
85762003-04-09 Andrew Cagney <cagney@redhat.com>
8577
8578 * doublest.h: Update copyright.
8579 (deprecated_store_floating, deprecated_extract_floating): Rename
8580 store_floating and extract_floating. Update comments.
8581 * doublest.c: Update copyright.
8582 (extract_floating_by_length): Replace extract_floating.
8583 (store_floating_by_length): Replace store_floating.
8584 (deprecated_extract_floating): New function.
8585 (deprecated_store_floating): New function.
8586 (extract_typed_floating): Call extract_floating_by_length.
8587 (store_typed_floating): Call store_floating_by_length.
8588 * x86-64-tdep.c (x86_64_store_return_value): Update.
8589 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8590 (sh64_extract_return_value): Update.
8591 (sh_sh4_register_convert_to_virtual): Update.
8592 (sh_sh64_register_convert_to_virtual): Update.
8593 (sh_sh4_register_convert_to_raw): Update.
8594 (sh_sh64_register_convert_to_raw): Update.
8595 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8596 (rs6000_register_convert_to_raw): Update.
8597 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8598 (ia64_register_convert_to_raw): Update.
8599 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8600 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8601 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8602 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8603 (alpha_register_convert_to_raw): Update.
8604
4443bd83
AC
86052003-04-08 Andrew Cagney <cagney@redhat.com>
8606
8607 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8608 * gdbarch.h, gdbarch.c: Re-generate.
8609 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8610 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8611 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8612 conditionally, use frame_pc_unwind as an alternative. Add
8613 comments.
8614 * arch-utils.c (init_frame_pc_default): Only call
8615 SAVED_PC_AFTER_CALL when available.
8616
c0236d92
EZ
86172003-04-08 Elena Zannoni <ezannoni@redhat.com>
8618
fbe586ae 8619 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8620 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8621 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8622 (start_remote): Ditto.
8623 (handle_inferior_event): Ditto.
8624 (save_inferior_status): Ditto.
8625 (restore_inferior_status): Ditto.
8626 * infcmd.c (attach_command): Ditto.
8627 * fork-child.c (startup_inferior): Ditto.
fbe586ae 8628 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8629 * alpha-tdep.c (heuristic_proc_start): Ditto.
8630 * mips-tdep.c (heuristic_proc_start): Ditto.
8631 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8632 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8633 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8634 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8635 * remote-vx.c (vx_create_inferior): Ditto.
8636
86372003-04-08 Elena Zannoni <ezannoni@redhat.com>
8638
8639 * infrun.c (stop_soon_quietly): Make it an enum, to better
8640 override the default behavior of handle_inferior_event.
8641 (clear_proceed_status): Update uses of stop_soon_quietly to
8642 reflect that it is now an enum.
8643 (start_remote): Ditto.
8644 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8645 is set to handle the new GNU/Linux kernel behavior for
8646 attach/sigstop. Update uses of stop_soon_quietly.
8647 * inferior.h (enum stop_kind): New enum.
8648 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8649 Reset normal handle_inferior_event behavior, afterwards.
8650 * fork-child.c (startup_inferior): Update.
8651 * alpha-tdep.c (heuristic_proc_start): Update.
8652 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8653 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8654 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8655 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8656 * remote-vx.c (vx_create_inferior): Update.
8657 * mips-tdep.c (heuristic_proc_start): Update.
8658
1211bce3
EZ
86592003-04-07 Elena Zannoni <ezannoni@redhat.com>
8660
8661 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8662 be freed more than once, causing wild memory corruptions.
1211bce3 8663 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8664 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8665 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8666 with the "core" target.
1211bce3 8667
f0ef6b29
KB
86682003-04-07 Kevin Buettner <kevinb@redhat.com>
8669
8670 * mips-tdep.c (mips_print_fp_register): New function, created from
8671 do_fp_register_row(). Registers are now (also) printed as hex.
8672 Only one register is printed per row.
8673 (mips_print_register, do_fp_register_row): Print floating point
8674 registers with mips_print_fp_register().
8675
8cf71652
AC
86762003-04-06 Andrew Cagney <cagney@redhat.com>
8677
5e488a7b
AC
8678 * valprint.h (inspect_it): Add extern declaration.
8679 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8680 (selectors_info, classes_info): Ditto.
8681 (find_objc_msgcall): Fix indentation.
8682 (objc_printstr): Delete extern declarations.
8683
8cf71652
AC
8684 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8685
e6ba3bc9
AC
86862003-04-06 Andrew Cagney <cagney@redhat.com>
8687
8688 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8689 Update comment.
8690 * frame.c (legacy_saved_regs_this_id): Update.
8691 (legacy_get_prev_frame): Update.
8692 * xstormy16-tdep.c: Update comment.
8693 * sparc-tdep.c (sparc_frame_chain): Update comment.
8694 * blockframe.c (legacy_frame_chain_valid): Update.
8695
55e1d7e7
AC
86962003-04-06 Andrew Cagney <cagney@redhat.com>
8697
996179ee
AC
8698 * valprint.c (val_print_type_code_int): Delete #ifdef
8699 PRINT_TYPELESS_INTEGER code.
8700
55e1d7e7
AC
8701 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8702 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8703 multi-arch definition.
8704 * gdbarch.h: Re-generate.
8705
43bd9a9e
AC
87062003-04-05 Andrew Cagney <cagney@redhat.com>
8707
8708 Eliminate FRAME_FIND_SAVED_REGS.
8709 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8710 Change FSR parameter to a pointer.
8711 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8712 Assume FSR parameter is a pointer.
8713 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8714 Make fsr a pointer.
8715 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8716 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8717 saved_regs a pointer.
8718 (hppa_frame_saved_pc): Ditto.
8719 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8720 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8721 pointer.
8722 (restore_pc_queue): Make fsr a pointer.
8723 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8724 (hppa_frame_chain): Make saved_regs a pointer, call
8725 hppa_frame_init_saved_regs.
8726 * sparc-tdep.c: Include "gdb_assert.h".
8727 (sparc_frame_find_saved_regs): Replace internal_error with
8728 gdb_assert.
8729 * remote-vxsparc.c (vx_read_register): Delete reference to
8730 FRAME_FIND_SAVED_REGS.
8731 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8732 * gdbarch.h: Regenerate.
8733 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8734 (deprecated_get_frame_saved_regs): Delete declaration.
8735 (struct frame_saved_regs): Delete definition.
8736 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8737 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8738 (hppa_frame_find_saved_regs): Delete declaration.
8739 (FRAME_FIND_SAVED_REGS): Delete macro.
8740 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8741 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8742 FRAME_FIND_SAVED_REGS in comment.
8743
be41e9f4
AC
87442003-04-05 Andrew Cagney <cagney@redhat.com>
8745
8746 * frame.c (frame_func_unwind, get_frame_func): New functions.
8747 * frame.h (get_frame_func, frame_func_unwind): Declare.
8748 (struct frame_info): Add field "prev_func" for caching the
8749 previous frame's function address.
8750 * arm-tdep.c (arm_frameless_function_invocation): Combine
8751 get_pc_function_start and get_frame_pc into get_frame_func.
8752 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8753 (sh64_nofp_frame_init_saved_regs): Ditto.
8754 * s390-tdep.c (s390_function_start): Ditto.
8755 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8756 (rs6000_frameless_function_invocation): Ditto.
8757 (rs6000_frame_saved_pc): Ditto.
8758 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8759 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8760 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8761 (i386_frame_init_saved_regs): Ditto.
8762 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8763 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8764 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8765 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8766 * blockframe.c (frameless_look_for_prologue): Ditto.
8767
a01dd7cc
AC
87682003-04-05 Andrew Cagney <cagney@redhat.com>
8769
8770 * frame.c (legacy_get_prev_frame): Link prev to next at the
8771 function start. Update comments.
8772
5e5592e6
AC
87732003-04-05 Andrew Cagney <cagney@redhat.com>
8774
8775 * frame.c (get_frame_id): Update comment.
8776 (legacy_get_prev_frame): Update comment.
8777 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8778 * gdbarch.h: Regenerate.
8779 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8780 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8781
6fba5002
AC
87822003-04-05 Andrew Cagney <cagney@redhat.com>
8783
8784 * stack.c (print_frame_info): Use get_frame_pc.
8785
7df05f2b
AC
87862003-04-04 Andrew Cagney <cagney@redhat.com>
8787
8788 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8789 the frame's type from the unwinder.
8790 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8791 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8792 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8793 (get_frame_base_address): Use get_frame_type.
8794 (get_frame_locals_address, get_frame_args_address): Ditto.
8795 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8796 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8797 (struct frame_info): Add comment explaining why the frame contains
8798 a "type" field.
8799 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8800 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8801 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8802 NORMAL_FRAME.
8803 * frame-unwind.h: Include "frame.h".
8804 (struct frame_unwind): Add "type" field.
8805 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8806
11889732
AC
88072003-04-04 Andrew Cagney <cagney@redhat.com>
8808
8809 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8810 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8811 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8812 get_frame_base.
8813 (d10v_unwind_dummy_id): Use frame_id_build.
8814 * frame.c (find_frame_sal): Use get_frame_pc.
8815 (create_new_frame): Use deprecated_update_frame_pc_hack and
8816 deprecated_update_frame_base_hack.
8817 (create_sentinel_frame): Add comment about ->pc going away.
8818 (get_prev_frame): Add comment about ->pc going away.
8819 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8820 frame_id_build, deprecated_update_frame_pc_hack and
8821 deprecated_update_frame_base_hack.
8822 (select_frame): Use get_frame_pc.
8823 (legacy_saved_regs_this_id): Use frame_id_build.
8824
50c46a0d
EZ
88252003-04-04 Elena Zannoni <ezannoni@redhat.com>
8826
fbe586ae
RH
8827 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8828 signed integer case.
8829 (classify_argument): Handle enumerations and references.
50c46a0d 8830
50bbdbd9
AC
88312003-04-04 Andrew Cagney <cagney@redhat.com>
8832
8833 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8834 ID to NULL.
8835
36018d2e
AF
88362003-04-01 Adam Fedor <fedor@gnu.org>
8837
8838 * gdb/objc-lang.c (selectors_info): Replace calls to
8839 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8840 SYMBOL_NATURAL_NAME.
8841 (classes_info, find_methods): Likewise.
8842
35cec841
KB
88432003-04-03 Kevin Buettner <kevinb@redhat.com>
8844
8845 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8846 ``mach'' to the value determined by bfd_default_set_arch_mach().
8847
43136899
BR
88482003-04-02 Bob Rossi <bob_rossi@cox.net>
8849
8850 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8851 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8852 (mi-cmd-file.o): Update dependencies.
8853
040b99fd
KB
88542003-04-01 Kevin Buettner <kevinb@redhat.com>
8855
8856 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8857 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8858
9a3d7dfd
AF
88592003-04-01 Adam Fedor <fedor@gnu.org>
8860
8861 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8862 * language.h (struct language_defn): Add la_demangle.
8863 (language_demangle): Declare.
8864 * language.c (language_demangle): New function.
8865 (unk_lang_demangle): Likewise.
8866 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8867 Add ukn_lang_demangle.
9a3d7dfd 8868 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8869 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8870 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8871 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8872 * jv-lang.c (java_demangle): New function
8873 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8874 * objc-lang.c (objc_demangle): Add options argument
8875 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8876 * maint.c (maintenance_demangle): Replace switch with
8877 call to language_demangle.
8878 * utils.c (fprintf_symbol_filtered): Likewise.
8879
5e074003
AC
88802003-04-01 Andrew Cagney <cagney@redhat.com>
8881
8882 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8883 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8884 PRINT_TYPELESS_INTEGER.
8885 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8886 PUSH_RETURN_ADDRESS.
8887
270cb5d6
AC
88882003-04-01 Andrew Cagney <cagney@redhat.com>
8889
8890 * Makefile.in (d10v-tdep.o): Update dependencies.
8891 * d10v-tdep.c: Include "frame-base.h".
8892 (d10v_frame_unwind): Make constant.
8893 (d10v_frame_base_address): New function.
8894 (d10v_frame_base): New variable.
8895 (d10v_gdbarch_init): Set frame_base default.
8896 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8897 comment for base.
8898 (d10v_frame_unwind_cache): Set and use "prev_sp".
8899 (d10v_frame_this_id): Use the previous frame's inner most stack
8900 address and this frame's func address for the frame ID. Use
8901 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8902
6bfb3e36
AC
89032003-04-01 Andrew Cagney <cagney@redhat.com>
8904
8905 * frame.h (get_frame_locals_address, get_frame_args_address):
8906 Refer to the base address, instead of the address of the first
8907 local or parameter.
8ffd9b1b 8908
da62e633
AC
89092003-04-01 Andrew Cagney <cagney@redhat.com>
8910
8911 Add frame debug info addresses:
8912 * frame-base.c: New file.
8913 * frame-base.h: New file.
8914 * frame.h (struct frame_base): Add opaque declaration.
8915 (get_frame_base): Update comment.
8916 (get_frame_base_address): Declare.
8917 (get_frame_locals_address): Declare.
8918 (get_frame_args_address): Declare.
8919 (struct frame_info): Add "base" and "base_cache". Update
8920 comments on the unwinder.
8921 * frame.c: Include "frame-base.h".
8922 (get_frame_locals_address): New function.
8923 (get_frame_base_address): New function.
8924 (get_frame_args_address): New function.
8925 * findvar.c (read_var_value): Use get_frame_locals_address and
8926 get_frame_args_address.
8927 * stack.c (frame_info): Use get_frame_locals_address and
8928 get_frame_args_address.
8929 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8930 moved to "frame-base.c".
8931 * printcmd.c (print_frame_nameless_args): Ditto.
8932 * symtab.h (address_class): Update comments.
8933 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8934 get_frame_base_address.
8935 * dwarf2expr.c (execute_stack_op): Ditto.
8936 * Makefile.in (frame_base_h): Define.
8937 (frame.o): Update dependencies.
8938 (frame-base.o): Add dependencies.
8939 (SFILES): Add frame-base.c.
8940 (COMMON_OBS): Add frame-base.o.
8941
3d30e9c2
AC
89422003-04-01 Andrew Cagney <cagney@redhat.com>
8943
8944 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8945 CALL_DUMMY_LENGTH): Ditto.
8946 * gdbarch.c: Re-generate.
8947 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8948 (CALL_DUMMY_LENGTH): Delete macro.
8949 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8950 * arm-tdep.c (arm_gdbarch_init): Ditto.
8951 * avr-tdep.c (avr_gdbarch_init): Ditto.
8952 * cris-tdep.c (cris_gdbarch_init): Ditto.
8953 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8954 * frv-tdep.c (frv_gdbarch_init): Ditto.
8955 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8956 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8957 * i386-tdep.c (i386_gdbarch_init): Ditto.
8958 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8959 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8960 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8961 * mips-tdep.c (mips_gdbarch_init): Ditto.
8962 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8963 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8964 * s390-tdep.c (s390_gdbarch_init): Ditto.
8965 * sh-tdep.c (sh_gdbarch_init): Ditto.
8966 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8967 * v850-tdep.c (v850_gdbarch_init): Ditto.
8968 * vax-tdep.c (vax_gdbarch_init): Ditto.
8969 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8970
ce0c7262
CV
89712003-04-01 Corinna Vinschen <vinschen@redhat.com>
8972
8973 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8974
73dd234f
AC
89752003-04-01 Andrew Cagney <cagney@redhat.com>
8976
8977 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8978 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8979 * gdbarch.h, gdbarch.c: Re-generate.
8980 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8981 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8982 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8983 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8984 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8985 * infcmd.c (run_stack_dummy): Simplify assuming
8986 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8987 * infrun.c (handle_inferior_event): Ditto.
8988 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8989 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8990 * arm-tdep.c (arm_gdbarch_init): Ditto.
8991 * avr-tdep.c (avr_gdbarch_init): Ditto.
8992 * cris-tdep.c (cris_gdbarch_init): Ditto.
8993 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8994 * frv-tdep.c (frv_gdbarch_init): Ditto.
8995 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8996 * i386-tdep.c (i386_gdbarch_init): Ditto.
8997 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8998 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8999 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9000 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9001 * mips-tdep.c (mips_gdbarch_init): Ditto.
9002 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9003 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9004 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9005 * s390-tdep.c (s390_gdbarch_init): Ditto.
9006 * sh-tdep.c (sh_gdbarch_init): Ditto.
9007 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9008 * v850-tdep.c (v850_gdbarch_init): Ditto.
9009 * vax-tdep.c (vax_gdbarch_init): Ditto.
9010 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9011
97606a13
DJ
90122003-04-01 Daniel Jacobowitz <drow@mvista.com>
9013
9014 * symfile.c (symfile_relocate_debug_section): Update call to
9015 bfd_simple_get_relocated_section_contents.
9016
e8ab51f7
AC
90172003-03-31 Andrew Cagney <cagney@redhat.com>
9018
9019 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9020 * gdbarch.h, gdbarch.c: Regenerate.
9021 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9022 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9023 available.
9024 * frame.h (generic_fix_call_dummy): Delete declaration.
9025 * dummy-frame.h: Update comment.
9026 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9027 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9028 fix_call_dummy.
9029 * sh-tdep.c (sh_gdbarch_init): Ditto.
9030 * s390-tdep.c (s390_gdbarch_init): Ditto.
9031 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9032 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9033 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9034 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9035 * i386-tdep.c (i386_gdbarch_init): Ditto.
9036 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9037 * frv-tdep.c (frv_gdbarch_init): Ditto.
9038 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9039 * cris-tdep.c (cris_gdbarch_init): Ditto.
9040 * avr-tdep.c (avr_gdbarch_init): Ditto.
9041 * arm-tdep.c (arm_gdbarch_init): Ditto.
9042
018d1b48
JB
90432003-03-31 J. Brobecker <brobecker@gnat.com>
9044
9045 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9046 (INIT_FRAME_AP): Likewise.
9047 (EXTRA_FRAME_INFO): Likewise.
9048
e9a2674e
AC
90492003-03-31 Andrew Cagney <cagney@redhat.com>
9050
9051 * gdbarch.sh: Include "symfile.h".
9052 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9053 * gdbarch.h, gdbarch.c: Re-generate.
9054 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9055 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9056 call_dummy_address, the default is at entry_point_address.
9057 * v850-tdep.c (v850_gdbarch_init): Ditto.
9058 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9059 * sh-tdep.c (sh_gdbarch_init): Ditto.
9060 * s390-tdep.c (s390_gdbarch_init): Ditto.
9061 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9062 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9063 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9064 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9065 * i386-tdep.c (i386_gdbarch_init): Ditto.
9066 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9067 * frv-tdep.c (frv_gdbarch_init): Ditto.
9068 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9069 * cris-tdep.c (cris_gdbarch_init): Ditto.
9070 * arm-tdep.c (arm_gdbarch_init): Ditto.
9071
e8a8712a
AC
90722003-03-31 Andrew Cagney <cagney@redhat.com>
9073
9074 * gdbarch.sh (CALL_DUMMY_P): Delete.
9075 * gdbarch.h, gdbarch.c: Re-generate.
9076 * inferior.h (CALL_DUMMY_P): Delete macro.
9077 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9078 * vax-tdep.c (vax_gdbarch_init): Update.
9079 * v850-tdep.c (v850_gdbarch_init): Update.
9080 * sparc-tdep.c (sparc_gdbarch_init): Update.
9081 * sh-tdep.c (sh_gdbarch_init): Update.
9082 * s390-tdep.c (s390_gdbarch_init): Update.
9083 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9084 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9085 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9086 * mips-tdep.c (mips_gdbarch_init): Update.
9087 * mcore-tdep.c (mcore_gdbarch_init): Update.
9088 * m68k-tdep.c (m68k_gdbarch_init): Update.
9089 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9090 * ia64-tdep.c (ia64_gdbarch_init): Update.
9091 * i386-tdep.c (i386_gdbarch_init): Update.
9092 * h8300-tdep.c (h8300_gdbarch_init): Update.
9093 * frv-tdep.c (frv_gdbarch_init): Update.
9094 * d10v-tdep.c (d10v_gdbarch_init): Update.
9095 * cris-tdep.c (cris_gdbarch_init): Update.
9096 * breakpoint.c (deprecated_frame_in_dummy): Update.
9097 * avr-tdep.c (avr_gdbarch_init): Update.
9098 * alpha-tdep.c (alpha_gdbarch_init): Update.
9099 * arm-tdep.c (arm_gdbarch_init): Update.
9100 * dummy-frame.c (dummy_frame_this_id): Update comments.
9101 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9102 * frame.c (legacy_get_prev_frame): Ditto.
9103 * valops.c (call_function_by_hand): Delete function.
9104 (hand_function_call): Rename to call_function_by_hand
9105
ed234cf8
AC
91062003-03-30 Andrew Cagney <cagney@redhat.com>
9107
9108 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 9109 * value.h (struct value): Update comment.
ed234cf8 9110
06c77151
AC
91112003-03-30 Andrew Cagney <cagney@redhat.com>
9112
6c2b5168
AC
9113 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9114 D10V_FP_REGNUM.
9115 (d10v_gdbarch_init): Do not set fp_regnum.
9116
06c77151
AC
9117 * frame.c (get_frame_base): Force ID initialization.
9118 (get_prev_frame): Move computation of the frame ID from here ...
9119 (get_frame_id): ... to here.
9120 (legacy_get_prev_frame): Mark the frame ID as valid.
9121 * frame.h (struct frame_info): Add field "id_p".
9122
97a1a11c
MK
91232003-03-30 Mark Kettenis <kettenis@gnu.org>
9124
9125 * i386-tdep.c (i386_store_struct_return): Removed.
9126 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9127
6c0e89ed
AC
91282003-03-30 Andrew Cagney <cagney@redhat.com>
9129
9130 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9131 * gdbarch.h, gdbarch.c: Regenerate.
9132 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9133 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9134 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9135 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9136 * i386-tdep.c (i386_gdbarch_init): Ditto.
9137 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9138 * cris-tdep.c (cris_gdbarch_init): Ditto.
9139 * vax-tdep.c (vax_gdbarch_init): Ditto.
9140 * s390-tdep.c (s390_gdbarch_init): Ditto.
9141 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9142 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9143 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9144 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9145 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9146 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9147 * sparc-tdep.c (sparc_gdbarch_init): Update.
9148 * sh-tdep.c (sh_gdbarch_init): Update.
9149 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9150 * mips-tdep.c (mips_gdbarch_init): Update.
9151 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9152 * ia64-tdep.c (ia64_gdbarch_init): Update.
9153 * frv-tdep.c (frv_gdbarch_init): Update.
9154 * avr-tdep.c (avr_gdbarch_init): Update.
9155 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9156 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9157 instead of when push_dummy_call is not available.
8ffd9b1b 9158
f7dd6af2
AC
91592003-03-30 Andrew Cagney <cagney@redhat.com>
9160
9161 * infttrace.c: Include "gdbthread.h".
9162 (parent_attach_all): Fix function signature.
9163 (call_ptrace): Update call.
9164 * Makefile.in (infttrace.o): Update dependencies.
9165
28f617b3
AC
91662003-03-30 Andrew Cagney <cagney@redhat.com>
9167
9168 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9169 PUSH_RETURN_ADDRESS.
9170 * gdbarch.h, gdbarch.c: Regenerate.
9171 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9172 * x86-64-tdep.c (x86_64_init_abi): Update.
9173 * v850-tdep.c (v850_gdbarch_init): Update.
9174 * sparc-tdep.c (sparc_gdbarch_init): Update.
9175 * sh-tdep.c (sh_gdbarch_init): Update.
9176 * s390-tdep.c (s390_gdbarch_init): Update.
9177 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9178 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9179 * mips-tdep.c (mips_gdbarch_init): Update.
9180 * mcore-tdep.c (mcore_gdbarch_init): Update.
9181 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9182 * ia64-tdep.c (ia64_gdbarch_init): Update.
9183 * i386-tdep.c (i386_gdbarch_init): Update.
9184 * h8300-tdep.c (h8300_gdbarch_init): Update.
9185 * frv-tdep.c (frv_gdbarch_init): Update.
9186 * cris-tdep.c (cris_gdbarch_init): Update.
9187 * avr-tdep.c (avr_gdbarch_init): Update.
9188 * arm-tdep.c (arm_gdbarch_init): Update.
9189 * valops.c (hand_function_call): Update.
9190
4d628cd7
AC
91912003-03-29 Andrew Cagney <cagney@redhat.com>
9192
9193 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9194 sizeof_call_dummy_words.
9195 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9196 define.
9197 * gdbarch.h: Regenerate.
8ffd9b1b 9198
65e82032
AC
91992003-03-29 Andrew Cagney <cagney@redhat.com>
9200
9201 * infttrace.h: New file.
9202 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9203 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9204 (hpread_read_doc_function_type): Detect an initialized type1.
9205 (hpread_quick_traverse): Initialize mod_name_string.
9206 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9207 (som_solib_get_solib_by_pc): Declare.
9208 (so_lib_thread_start_addr): Declare.
9209 (no_shared_libraries): Declare.
9210 * somread.c (init_import_symbols): Make static. Add forward
9211 declaration.
9212 * config/pa/nm-hppah.h: Include "infttrace.h" for
9213 parent_attach_all.
9214 (hppa_insert_hw_watchpoint): Declare.
9215 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9216 * hppah-nat.c: Include "gdb_string.h".
9217 (parent_attach_all): Delete extern declaration, moved to
9218 "infttrace.h".
9219 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9220 int.
9221 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9222 * Makefile.in (infttrace_h): Define.
9223 (hpread.o): Update dependencies.
9224 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9225 * hppa-hpux-tdep.c: Include "gdb_string.h".
9226 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9227 * infrun.c (handle_inferior_event): Always initialize
9228 stepped_after_stopped_by_watchpoint. Add default and remove
9229 fallthrough in switch statement.
9230 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9231 parameter to int.
9232 (hppa_remove_hw_watchpoint): Ditto.
9233
2c3bbe77
AC
92342003-03-29 Andrew Cagney <cagney@redhat.com>
9235
9236 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9237 offset.
9238
2dd604e7
RE
92392003-03-29 Richard Earnshaw <rearnsha@arm.com>
9240
9241 * arm-tdep.c (arm_push_arguments): Delete.
9242 (struct stack_item): New type.
9243 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9244 (arm_store_struct_return): Delte.
9245 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9246 arm_push_arguments or arm_store_struct_return.
9247
e8933a55
AC
92482003-03-28 Andrew Cagney <cagney@redhat.com>
9249
9250 * Makefile.in (d10v-tdep.o): Update dependencies.
9251 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9252 * d10v-tdep.c: Include "remote.h".
9253 (target_resume_hook): Delete extern declaration.
9254 (target_wait_loop_hook): Ditto.
9255 (tdisassemble_command): Eliminate assignment in "if" conditional.
9256 (d10v_ts2_register_sim_regno): Eliminate call to
9257 legacy_register_sim_regno.
9258 (d10v_ts3_register_sim_regno): Ditto.
9259
6949171e
JJ
92602003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9261
9262 * thread.c: Reindented.
9263 * lin-lwp.c: Ditto.
9264 * linux-proc.c: Ditto.
9265
98c7071f
BR
92662003-03-28 Bob Rossi <bob_rossi@cox.net>
9267
fbe586ae 9268 * MAINTAINERS (write after approval): Add myself.
98c7071f 9269
5edc9ca6
TR
92702003-03-27 Theodore A. Roth <troth@openavr.org>
9271
9272 * objc-exp.y: Add missing semi-colons.
9273
378bfd1b
AC
92742003-03-27 Andrew Cagney <cagney@redhat.com>
9275
9276 * regcache.c (write_sp): Delete function and references.
9277 * inferior.h (write_sp): Delete declaration.
9278 * valops.c (hand_function_call): Replace write_sp with
9279 TARGET_WRITE_SP.
9280 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9281 (sparc_pop_frame): Ditto.
8ffd9b1b 9282
56056df7
AC
92832003-03-27 Andrew Cagney <cagney@redhat.com>
9284
9285 * NEWS: Mention removal of support for hppa*-*-bsd* and
9286 hppa*-*-osf* natives, and hppa*-*-pro* target.
9287 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9288 * config/pa/xm-pa.h: Obsolete file.
9289 * config/pa/xm-hppab.h: Obsolete file.
9290 * config/pa/nm-hppab.h: Obsolete file.
9291 * config/pa/tm-hppab.h: Obsolete file.
9292 * config/pa/tm-hppao.h: Obsolete file.
9293 * config/pa/nm-hppao.h: Obsolete file.
9294 * config/pa/tm-pro.h: Obsolete file.
9295 * config/pa/hppaosf.mt: Obsolete file.
9296 * config/pa/hppaosf.mh: Obsolete file.
9297 * config/pa/hppapro.mt: Obsolete file.
9298 * config/pa/hppabsd.mt: Obsolete file.
9299 * config/pa/hppabsd.mh: Obsolete file.
9300 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9301 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9302 hppa*-*-osf*.
9303
5873a88d
AC
93042003-03-27 Andrew Cagney <cagney@redhat.com>
9305
9306 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9307 push_arguments. Don't set push_return_address or write_sp.
9308 (d10v_push_dummy_call): Replace d10v_push_arguments.
9309 (d10v_push_return_address, d10v_write_sp): Delete function,
9310 handled by push_dummy_call.
9311
b81774d8
AC
93122003-03-26 Andrew Cagney <cagney@redhat.com>
9313
9314 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9315 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9316 regcache and dummy_addr parameters.
9317 * gdbarch.h, gdbarch.c: Re-generate.
9318 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9319 available; assume it will handle stack alignment and return
9320 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9321 legacy_push_arguments.
9322 (legacy_push_arguments): Rename default_push_arguments.
9323 * value.h (legacy_push_arguments): Rename default_push_arguments.
9324 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9325 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9326 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9327 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9328 * config/i386/tm-symmetry.h: Update.
9329 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9330 * x86-64-tdep.c (x86_64_init_abi): Update.
9331 * v850-tdep.c (v850_gdbarch_init): Update.
9332 * sparc-tdep.c (sparc_gdbarch_init): Update.
9333 * sh-tdep.c (sh_gdbarch_init): Update.
9334 * s390-tdep.c (s390_gdbarch_init): Update.
9335 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9336 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9337 * mips-tdep.c (mips_gdbarch_init): Update.
9338 * mcore-tdep.c (mcore_gdbarch_init): Update.
9339 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9340 * ia64-tdep.c (ia64_gdbarch_init): Update.
9341 * i386-tdep.c (i386_gdbarch_init): Update.
9342 * hppa-tdep.c (hppa_gdbarch_init): Update.
9343 * h8300-tdep.c (h8300_gdbarch_init): Update.
9344 * frv-tdep.c (frv_gdbarch_init): Update.
9345 * d10v-tdep.c (d10v_gdbarch_init): Update.
9346 * cris-tdep.c (cris_gdbarch_init): Update.
9347 * avr-tdep.c (avr_gdbarch_init): Update.
9348 * arm-tdep.c (arm_gdbarch_init): Update.
9349 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9350 * alpha-tdep.c (alpha_gdbarch_init): Update.
9351
f541410f
DJ
93522003-03-26 Daniel Jacobowitz <drow@mvista.com>
9353
9354 * signals/signals.c (do_target_signal_to_host): Correct realtime
9355 signal range test.
9356
69f567ae
DJ
93572003-03-26 Daniel Jacobowitz <drow@mvista.com>
9358
9359 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9360 (struct sal_chain, map_catch_names): Remove.
9361 (catch_exception_command_1): Don't call
9362 handle_gnu_4_16_catch_command.
9363
d5d14a5a
DJ
93642003-03-26 Daniel Jacobowitz <drow@mvista.com>
9365
9366 From Mark Dettinger <dettinge@de.ibm.com>:
9367 * dwarf2cfi.c (read_2u): Increment pointer by two.
9368
bdd73e22
DJ
93692003-03-26 Daniel Jacobowitz <drow@mvista.com>
9370
9371 * signals/signals.c: Fix typos in last change.
9372
960cb555
DJ
93732003-03-26 Daniel Jacobowitz <drow@mvista.com>
9374
9375 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9376 not already defined. Use __SIGRTMIN if available.
9377 (target_signal_from_host): Remove SIGRTMIN block.
9378 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9379 the signal is within the realtime range.
9380
f636b87d
AF
93812003-03-25 Adam Fedor <fedor@gnu.org>
9382
9383 * Makefile.in (infrun.o): Add $(language_h)
9384 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9385 for language specific trampolines.
9386 * language.h (struct language_defn): Add skip_trampoline.
9387 (skip_language_trampoline): Declare.
9388 * language.c (unk_lang_trampoline, skip_language_trampoline):
9389 New functions.
9390 (unknown_language_defn, auto_language_defn, local_language_defn):
9391 Add ukn_lang_trampoline.
9392 * ada-lang.c (ada_language_defn): Add NULL for language
9393 specific skip_trampoline.
9394 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9395 scm-lang.c: Likewise.
9396 * objc-lang.c (objc_skip_trampoline): New function.
9397 (objc_language_defn): Add objc_skip_trampoline.
9398
28f617b3 93992003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9400
9401 * frame.c (get_prev_frame): Delay validating a frame's ID -
9402 non-NULL, didn't go backwards - until an attempt to unwind it to
9403 the previous frame.
9404
f933a9c5
AC
94052003-03-25 Andrew Cagney <cagney@redhat.com>
9406
9407 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9408 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9409 * gdbarch.h, gdbarch.c: Re-generate.
9410 * config/sparc/tm-sparc.h
9411 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9412 * sparc-tdep.c (sparc_gdbarch_init): Set
9413 deprecated_extra_stack_alignment_needed.
9414 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9415 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9416 extra_stack_alignment_needed.
9417 * v850-tdep.c (v850_gdbarch_init): Ditto.
9418 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9419 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9420 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9421 * cris-tdep.c (cris_gdbarch_init): Ditto.
9422 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9423 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9424
4183d812
AC
94252003-03-25 Andrew Cagney <cagney@redhat.com>
9426
9427 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9428 STORE_STRUCT_RETURN.
9429 * gdbarch.h, gdbarch.c: Regenerate.
9430 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9431 (d10v_push_arguments): Set the struct return register.
9432 (d10v_gdbarch_init): Update.
9433 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9434 * x86-64-tdep.c (x86_64_init_abi): Update.
9435 * vax-tdep.c (vax_gdbarch_init): Update.
9436 * v850-tdep.c (v850_gdbarch_init): Update.
9437 * sparc-tdep.c (sparc_gdbarch_init): Update.
9438 * sh-tdep.c (sh_gdbarch_init): Update.
9439 * s390-tdep.c (s390_gdbarch_init): Update.
9440 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9441 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9442 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9443 * mips-tdep.c (mips_gdbarch_init): Update.
9444 * mcore-tdep.c (mcore_gdbarch_init): Update.
9445 * m68k-tdep.c (m68k_gdbarch_init): Update.
9446 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9447 * ia64-tdep.c (ia64_gdbarch_init): Update.
9448 * i386-tdep.c (i386_gdbarch_init): Update.
9449 * hppa-tdep.c (hppa_gdbarch_init): Update.
9450 * h8300-tdep.c (h8300_gdbarch_init): Update.
9451 * frv-tdep.c (frv_gdbarch_init): Update.
9452 * cris-tdep.c (cris_gdbarch_init): Update.
9453 * avr-tdep.c (avr_gdbarch_init): Update.
9454 * arm-tdep.c (arm_gdbarch_init): Update.
9455 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9456
1bf6d5cc
AC
94572003-03-25 Andrew Cagney <cagney@redhat.com>
9458
9459 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9460 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9461 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9462 * gdbarch.h, gdbarch.c: Regenerate.
9463 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9464 call_dummy_stack_adjust_p.
9465 * vax-tdep.c (vax_gdbarch_init): Ditto.
9466 * v850-tdep.c (v850_gdbarch_init): Ditto.
9467 * sh-tdep.c (sh_gdbarch_init): Ditto.
9468 * s390-tdep.c (s390_gdbarch_init): Ditto.
9469 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9470 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9471 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9472 * mips-tdep.c (mips_gdbarch_init): Ditto.
9473 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9474 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9475 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9476 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9477 * i386-tdep.c (i386_gdbarch_init): Ditto.
9478 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9479 * frv-tdep.c (frv_gdbarch_init): Ditto.
9480 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9481 * cris-tdep.c (cris_gdbarch_init): Ditto.
9482 * avr-tdep.c (avr_gdbarch_init): Ditto.
9483 * arm-tdep.c (arm_gdbarch_init): Ditto.
9484 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9485 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9486 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9487 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9488 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9489 call_dummy_stack_adjust_p.
9490 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9491 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9492 * sparc-tdep.c (sparc32_push_arguments): Update.
9493 * valops.c (hand_function_call): Update.
9494
71c08af0
CV
94952003-03-25 Corinna Vinschen <vinschen@redhat.com>
9496
9497 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9498 set_gdbarch_char_signed.
9499
30757f90
RE
95002003-03-25 Richard Earnshaw <rearnsha@arm.com>
9501
9502 PR cli/548
9503 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9504
03d48a7d
RE
95052003-03-25 Richard Earnshaw <rearnsha@arm.com>
9506
9507 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9508 (_initialize_arm_tdep): Don't set tm_print_insn.
9509
2cf6873c
AF
95102003-03-24 Adam Fedor <fedor@gnu.org>
9511
9512 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9513 * objc-lang.h: Add multiple inclusion protection.
9514 (start_msglist, add_msglist, end_msglist): Additional declarations.
9515
17c0759e
RE
95162003-03-24 Richard Earnshaw <rearnsha@arm.com>
9517
9518 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9519 value was renamed to ARM_FLOAT_SOFT_FPA.
9520
618ce49f
AC
95212003-03-23 Andrew Cagney <cagney@redhat.com>
9522
9523 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9524 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9525 * gdbarch.h, gdbarch.c: Regenerate.
9526 * valops.c (hand_function_call): Update.
9527 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9528 * frame.c (legacy_saved_regs_this_id): Update.
9529 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9530 * dummy-frame.h: Update.
9531 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9532 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9533 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9534 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9535 * config/m68k/tm-sun3.h: Update.
9536 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9537 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9538 * x86-64-tdep.c (x86_64_init_abi): Update.
9539 * vax-tdep.c (vax_gdbarch_init): Update.
9540 * v850-tdep.c (v850_gdbarch_init): Update.
9541 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9542 * sh-tdep.c (sh_gdbarch_init): Update.
9543 * s390-tdep.c (s390_gdbarch_init): Update.
9544 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9545 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9546 (frame_get_saved_regs): Update.
9547 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9548 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9549 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9550 * mips-tdep.c (mips_gdbarch_init): Update.
9551 * mcore-tdep.c (mcore_gdbarch_init): Update.
9552 * m68k-tdep.c (m68k_gdbarch_init): Update.
9553 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9554 * ia64-tdep.c (ia64_gdbarch_init): Update.
9555 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9556 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9557 (i386_interix_back_one_frame): Update.
9558 * hppa-tdep.c (hppa_gdbarch_init): Update.
9559 (hppa_init_extra_frame_info): Update.
9560 * h8300-tdep.c (h8300_gdbarch_init): Update.
9561 * frv-tdep.c (frv_gdbarch_init): Update.
9562 * cris-tdep.c (cris_gdbarch_init): Update.
9563 * avr-tdep.c (avr_gdbarch_init): Update.
9564 * arm-tdep.c (arm_gdbarch_init): Update.
9565 * alpha-tdep.c (alpha_gdbarch_init): Update.
9566
fd50bc42
RE
95672003-03-22 Richard Earnshaw <rearnsha@arm.com>
9568
9569 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9570 (arm_get_fp_model): Declare.
9571 * arm-tdep.c (fp_model_strings): New string array.
9572 (arm_fp_model, current_fp_model): New variables.
9573 (arm_get_fp_model): New function.
9574 (arm_set_fp): New function.
9575 (set_fp_model_sfunc): New function.
9576 (show_fp_model): New function.
9577 (_initialize_arm_tdep): Add new command to set/show the FPU.
9578 (arm_extract_return_value): Use arm_get_fp_model.
9579 (arm_store_return_value): Likewise.
9580 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9581 to initialize the floating-point data types.
9582 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9583 model is FPA.
9584
26304000
RE
95852003-03-22 Richard Earnshaw <rearnsha@arm.com>
9586
9587 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9588 the current setting of each value.
9589 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 9590 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
9591 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9592 commands and add new version as subcommands of "set/show arm".
9593
afd7eef0
RE
95942003-03-22 Richard Earnshaw <rearnsha@arm.com>
9595
9596 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9597 (set_arm_command, show_arm_command): New functions.
9598 (_initialize_arm_tdep): Add them.
9599 (num_disassembly_options): Renamed from num_flavor_options.
9600 (valid_disassembly_styles): Renamed from valid_flavors.
9601 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 9602 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
9603 set_disassembly_flavor_sfunc.
9604 (set_disassembly_style): Renamed from set_disassembly_flavor.
9605 (arm_othernames): Updated.
9606 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9607 command. Add "set/show arm disassembly" commands. Deprecate
9608 "othernames" command.
9609
299a7944
RE
96102003-03-22 Richard Earnshaw <rearnsha@arm.com>
9611
9612 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9613 (arm-tdep.o): Depend on elf_arm_h.
9614
c1dac9e6
RE
96152003-03-22 Richard Earnshaw <rearnsha@arm.com>
9616
9617 * Makefile.in (coff_internal_h): Define.
9618 (arm-tdep.o): Update dependencies.
9619
2702d96c
RE
96202003-03-22 Richard Earnshaw <rearnsha@arm.com>
9621
9622 * arm-tdep.c (prologue_cache): Delete.
9623 (check_prologue_cache, save_prologue_cache): Delete.
9624 (arm_scan_prologue): Don't check or update the prologue_cache.
9625 (arm_gdb_arch_init): Don't initialize it.
9626 (_initialize_arm_tdep): Likewise.
9627
27d5d74b
SC
96282003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9629
9630 * MAINTAINERS (tui): Maintainer of tui code.
9631
1762d96d
CV
96322003-03-21 Corinna Vinschen <vinschen@redhat.com>
9633
9634 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9635 (i386-cygwin-tdep.o): Add dependencies.
9636 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9637 * i386-cygwin-tdep.c: New file.
9638 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9639 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9640
4c2e2391
AC
96412003-03-20 Andrew Cagney <cagney@redhat.com>
9642
f20d38b7
AC
9643 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9644 (handle_inferior_event): Remove code calling
9645 DYNAMIC_TRAMPOLINE_NEXTPC.
9646
0022b738
AC
9647 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9648 already has a full path.
9649
864dbc90
AC
9650 * main.c (gdb_main): Return 1.
9651 (captured_main): Call error to report an invalid interpreter.
9652
4c2e2391
AC
9653 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9654 * alpha-osf1-tdep.c: Include "gdb_string.h".
9655
5ef7553b
JB
96562003-03-19 J. Brobecker <brobecker@gnat.com>
9657
9658 Continuing work to convert the hppa targets to multiarch partial.
9659
9660 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9661 method, now that hppa_push_dummy_frame has a conformant prototype.
9662 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9663 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9664 for the switch to multiarch partial.
9665
7bde8967
KB
96662003-03-19 Kevin Buettner <kevinb@redhat.com>
9667
9668 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9669 when iss is issNull.
9670
b006a9e9
KB
96712003-03-18 Kevin Buettner <kevinb@redhat.com>
9672
9673 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9674 NUM_REGS bounds check.
9675
5e2e9765
KB
96762003-03-18 Kevin Buettner <kevinb@redhat.com>
9677
9678 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9679 * mips-tdep.c (gdb_assert.h): Include.
9680 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9681 (mips_register_name): Handle integer registers explicitly. Add
9682 bounds checking.
9683 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9684 (mips_lsi33k_reg_names): Don't list integer registers; they're
9685 handled by mips_register_name() now.
9686 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9687 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9688 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9689 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9690 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9691
a2867626
AC
96922003-03-18 Andrew Cagney <cagney@redhat.com>
9693
9694 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9695 a void pointer.
9696 * gdbtypes.h (print_scalar_formatted): Update declaration.
9697 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9698
06600e06
JB
96992003-03-18 J. Brobecker <brobecker@gnat.com>
9700
9701 * infrun.c (observer.h): Add #include.
9702 (normal_stop): Add call to observer_notify_normal_stop.
9703 * Makefile.in (infrun.o): Add dependency on observer.h.
9704
7daf4f5b
JB
97052003-03-18 J. Brobecker <brobecker@gnat.com>
9706
9707 Continuing work to convert the hppa targets to multiarch partial.
9708 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9709 parameter. Reformat comment.
9710 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9711 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9712 to match new profile.
9713
3371ccc0
JB
97142003-03-18 J. Brobecker <brobecker@gnat.com>
9715
9716 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9717 appear to be working in any case.
9718
4fbe891e
JB
97192003-03-18 J. Brobecker <brobecker@gnat.com>
9720
9721 * observer.c (observer_test_first_observer): New static variable.
9722 (observer_test_second_observer): Likewise.
9723 (observer_test_third_observer): Likewise.
9724 (observer_test_first_notification_function): New static function.
9725 (observer_test_second_notification_function): Likewise.
9726 (observer_test_third_notification_function): Likewise.
9727
a7ff40e7
JB
97282003-03-17 J. Brobecker <brobecker@gnat.com>
9729
9730 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9731 * somsolib.c (gdb_assert.h): Likewise.
9732 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9733 (somsolib.o): Likewise.
9734
26ca4152
AC
97352003-03-17 Andrew Cagney <cagney@redhat.com>
9736
9737 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9738 BFD. Simplify setting of di.endian.
9739
0a613259
AC
97402003-03-17 Andrew Cagney <cagney@redhat.com>
9741
9742 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9743 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9744
9745 From Elena Zannoni <ezannoni@redhat.com>
9746 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9747 vector and floating-point parameters.
9748 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9749 convention.
9750 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9751
1132738f
FN
97522003-03-17 Fernando Nasser <fnasser@redhat.com>
9753
9754 * MAINTAINERS: Remove my name from several maintainership roles.
9755
6dc42492
AC
97562003-03-17 Andrew Cagney <cagney@redhat.com>
9757
9758 Fix frame off-by-one bug.
9759 * frame-unwind.h (frame_this_id_ftype): Replace
9760 frame_unwind_id_ftype.
9761 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9762 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9763 with "prev_register".
9764 * frame-unwind.c (frame_unwind_find_by_pc): Return
9765 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9766 comment.
9767 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9768 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9769 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9770 (dummy_frame_unwind): Update.
9771 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9772 sentinel_frame_register_unwind.
9773 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9774 (sentinel_frame_unwinder): Update.
9775 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9776 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9777 * frame.c (create_sentinel_frame): Update. Initialize
9778 "prologue_cache" instead of "unwind_cache".
9779 (frame_register_unwind): Call this frame's prev_register with the
9780 next frame and this frame's prologue cache.
9781 (get_prev_frame): Simplify. Always call prev frame's this_id with
9782 this frame and prev frame's prologue cache. Document that this
9783 call is shifted one to the left when compared to the
9784 frame_register_unwind call.
9785 (legacy_saved_regs_prev_register): Replace
9786 frame_saved_regs_register_unwind.
9787 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9788 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9789 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9790 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9791 (d10v_frame_unwind): Update.
9792 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9793 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9794 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9795 "saved_regs" with "this_saved_regs".
9796
efd710d6
AC
97972003-03-16 Andrew Cagney <cagney@redhat.com>
9798
9799 * frame.c (frame_pop): Don't call target_store_registers. Fix
9800 problem reported by Mark Kettenis.
9801
4e259f09
MK
98022003-03-16 Mark Kettenis <kettenis@gnu.org>
9803
9804 * i386-tdep.c (i386_register_type): Renamed from
9805 i386_register_virtual_type. Adjust function signature.
9806 (i386_gdbarch_init): Set register_type instead of
9807 deprecated_max_register_raw_size,
9808 deprecated_max_register_virtual_size and register_virtual_type.
9809
055bb976
AC
98102003-03-14 Andrew Cagney <cagney@redhat.com>
9811
9812 * frame.c (get_prev_frame): When a legacy frame, always call
9813 legacy_get_prev_frame. Simplify unwind code using assumption that
9814 the unwinder is new.
9815 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9816 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9817 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9818
ac2adee5
AC
98192003-03-14 Andrew Cagney <cagney@redhat.com>
9820
9821 * frame.c (get_saved_register): Delete function.
9822 * frame.h (get_saved_register): Delete declaration.
9823 * xstormy16-tdep.c: Update comment.
9824 * regcache.h: Update comments.
9825 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9826 get_saved_register and extract_address, use
9827 frame_read_unsigned_register.
9828 (sparc_frame_saved_pc): Ditto.
9829 (sparc_get_saved_register): Instead of get_saved_register, use
9830 frame_register.
9831 (sparc_pop_frame): Ditto.
9832 * findvar.c: Update comments.
9833 (value_of_register): Call frame_register instead of
9834 get_saved_register.
9835 (value_from_register): Ditto.
9836 * config/sparc/tm-sparc.h: Update comment.
9837 * breakpoint.c: Update comment.
9838
129c1cd6
AC
98392003-03-14 Andrew Cagney <cagney@redhat.com>
9840
9841 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9842 GET_SAVED_REGISTER.
9843 * gdbarch.h, gdbarch.c: Re-generate.
9844 * frame.h: Update comments.
9845 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9846 * x86-64-tdep.c (x86_64_init_abi): Update.
9847 * sparc-tdep.c (sparc_gdbarch_init): Update.
9848 * sh-tdep.c (sh_gdbarch_init): Update.
9849 * mips-tdep.c (mips_gdbarch_init): Update.
9850 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9851 * cris-tdep.c (cris_gdbarch_init): Update.
9852 * ia64-tdep.c (ia64_gdbarch_init): Update.
9853 * frame.c (frame_register): Update.
9854 (get_saved_register): Update.
9855 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9856
749b82f6
AC
98572003-03-13 Andrew Cagney <cagney@redhat.com>
9858
9859 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9860 * gdbarch.h, gdbarch.c: Regenerate.
9861 * valops.c (hand_function_call): Update comment.
9862 * stack.c (return_command): Update comment.
9863 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9864 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9865 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9866 * x86-64-tdep.c (x86_64_init_abi): Update.
9867 * vax-tdep.c (vax_gdbarch_init): Update.
9868 * v850-tdep.c (v850_gdbarch_init): Update.
9869 * sparc-tdep.c (sparc_gdbarch_init): Update.
9870 * sh-tdep.c (sh_gdbarch_init): Update.
9871 * s390-tdep.c (s390_gdbarch_init): Update.
9872 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9873 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9874 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9875 * mips-tdep.c (mips_gdbarch_init): Update.
9876 * mcore-tdep.c (mcore_gdbarch_init): Update.
9877 * m68k-tdep.c (m68k_gdbarch_init): Update.
9878 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9879 * ia64-tdep.c (ia64_gdbarch_init): Update.
9880 * i386-tdep.c (i386_gdbarch_init): Update.
9881 * hppa-tdep.c (hppa_gdbarch_init): Update.
9882 * h8300-tdep.c (h8300_gdbarch_init): Update.
9883 * frv-tdep.c (frv_gdbarch_init): Update.
9884 * cris-tdep.c (cris_gdbarch_init): Update.
9885 * avr-tdep.c (avr_gdbarch_init): Update.
9886 * arm-tdep.c (arm_gdbarch_init): Update.
9887 * alpha-tdep.c (alpha_gdbarch_init): Update.
9888
1594fa56
AC
98892003-03-13 Andrew Cagney <cagney@redhat.com>
9890
9891 * frame.c (legacy_frame_p): New function.
9892 (get_prev_frame): Use legacy_frame_p.
9893 * frame.h (legacy_frame_p): Declare.
9894
7717fda3
V
98952003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9896
fbe586ae 9897 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9898 listing corrected.
9899
0c67cbe9
V
99002003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9901
fbe586ae 9902 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9903
03febf99
AC
99042003-03-12 Andrew Cagney <cagney@redhat.com>
9905
9906 * frame.c (get_prev_frame): Rename the frame parameter to
9907 "this_frame".
9908 (get_next_frame, legacy_get_prev_frame): Ditto.
9909
0a1e1ca1
AC
99102003-03-12 Andrew Cagney <cagney@redhat.com>
9911
9912 * frame.c (get_current_frame): Check target_has_registers before
9913 checking target_has_stack.
9914 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9915 instead of deprecated_selected_frame.
9916 * findvar.c (value_of_register): Pass "frame", not
9917 deprecated_selected_frame, to value_of_builtin_reg.
9918
a66a9c23
AC
99192003-03-12 Andrew Cagney <cagney@redhat.com>
9920
9921 * regcache.c (regcache_cooked_write_signed): New function.
9922 (regcache_cooked_write_unsigned): New function.
9923 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9924 (regcache_cooked_read_signed): Fix regnum in range assertion.
9925 * regcache.h (regcache_cooked_write_signed): Declare.
9926 (regcache_cooked_write_unsigned): Declare.
9927
8bedc050
AC
99282003-03-12 Andrew Cagney <cagney@redhat.com>
9929
9930 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9931 * gdbarch.h, gdbarch.c: Re-generate.
9932 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9933 * x86-64-tdep.h: Update.
9934 * x86-64-tdep.c (x86_64_init_abi): Update.
9935 * v850-tdep.c (v850_gdbarch_init): Update.
9936 * sparc-tdep.c (sparc_gdbarch_init): Update.
9937 * sh-tdep.c (sh_gdbarch_init): Update.
9938 * s390-tdep.c (s390_gdbarch_init): Update.
9939 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9940 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9941 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9942 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9943 * mips-tdep.c (mips_gdbarch_init): Update.
9944 * mcore-tdep.c (mcore_gdbarch_init): Update.
9945 * m68k-tdep.c (m68k_gdbarch_init): Update.
9946 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9947 * ia64-tdep.c (ia64_gdbarch_init): Update.
9948 * i386-tdep.c (i386_gdbarch_init): Update.
9949 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9950 * hppa-tdep.c (hppa_gdbarch_init): Update.
9951 * h8300-tdep.c (h8300_gdbarch_init): Update.
9952 * frv-tdep.c (frv_gdbarch_init): Update.
9953 * cris-tdep.c (cris_gdbarch_init): Update.
9954 * avr-tdep.c (avr_gdbarch_init): Update.
9955 * arm-tdep.c (arm_gdbarch_init): Update.
9956 * alpha-tdep.c (alpha_gdbarch_init): Update.
9957 * sh-tdep.c (sh_init_extra_frame_info): Update.
9958 (sh64_init_extra_frame_info): Update.
9959 * ns32knbsd-nat.c (frame_num_args): Update.
9960 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9961 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9962 (xstormy16_frame_chain_valid): Update.
9963 * vax-tdep.c (vax_saved_pc_after_call): Update.
9964 * v850-tdep.c (v850_frame_chain): Update.
9965 (v850_pop_frame): Update.
9966 (v850_init_extra_frame_info): Update.
9967 * sparc-tdep.c (setup_arbitrary_frame): Update.
9968 * ns32k-tdep.c (umax_frame_num_args): Update.
9969 * s390-tdep.c (s390_pop_frame_regular): Update.
9970 * mn10300-tdep.c (mn10300_frame_chain): Update.
9971 (mn10300_pop_frame_regular): Update.
9972 (mn10300_init_extra_frame_info): Update.
9973 * mips-tdep.c (mips_init_frame_pc_first): Update.
9974 (mips_frame_chain): Update.
9975 (mips_pop_frame): Update.
9976 * mcore-tdep.c (mcore_frame_chain): Update.
9977 (mcore_pop_frame): Update.
9978 (mcore_init_extra_frame_info): Update.
9979 * arch-utils.c (init_frame_pc_default): Update.
9980 * m68k-tdep.c (isi_frame_num_args): Update.
9981 (delta68_frame_num_args): Update.
9982 (news_frame_num_args): Update.
9983 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9984 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9985 (alpha_frame_chain): Update.
9986 (alpha_pop_frame): Update.
9987 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9988 (hppa_init_extra_frame_info): Update.
9989 (hppa_frame_chain): Update.
9990 (hppa_frame_chain_valid): Update.
9991 * cris-tdep.c (cris_init_extra_frame_info): Update.
9992 * avr-tdep.c (avr_init_extra_frame_info): Update.
9993 * arm-tdep.c (arm_frame_chain_valid): Update.
9994 (arm_init_extra_frame_info): Update.
9995 (arm_pop_frame): Update.
9996 * frame.c (frame_pc_unwind): Update.
9997 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9998 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9999 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10000 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10001 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10002 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10003
7a25a7c1
AC
100042003-03-12 Andrew Cagney <cagney@redhat.com>
10005
10006 Eliminate the need for POP_FRAME.
10007 * frame.c (do_frame_unwind_register): New function.
10008 (frame_pop): When no POP_FRAME, pop the frame using register
10009 unwind and a scratch regcache.
10010 (frame_saved_regs_pop): Delete function.
10011 (trad_frame_unwinder): Update.
10012 * d10v-tdep.c (d10v_frame_pop): Delete function.
10013 (d10v_frame_unwind): Update.
10014 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10015 (sentinel_frame_unwinder): Update.
10016 * dummy-frame.c (dummy_frame_pop): Delete function.
10017 (dummy_frame_unwind): Update.
10018 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10019 (struct frame_unwind): Update.
10020
2f38ef89
KB
100212003-03-11 Kevin Buettner <kevinb@redhat.com>
10022
10023 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10024 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10025 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10026 Do range checks on register number obtained from debugging info.
10027 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10028 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10029 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10030 mapping function.
10031 (do_fp_register_row): Fix typo which caused double type to be
10032 used when attempting to unpack a float.
10033
552f4abf
JB
100342003-03-11 J. Brobecker <brobecker@gnat.com>
10035
10036 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10037
e0d2ae16
AC
100382003-03-11 Andrew Cagney <cagney@redhat.com>
10039
10040 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10041 frame. Problem found by Corinna Vinschen.
10042
ddbfdd06
PM
100432003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10044
10045 * doublest.c (floatformat_from_length): Accept also
10046 the real size of 'long double' type.
10047
088b2ddc 100482003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 10049
088b2ddc 10050 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
10051 * breakpoint.c (bpstat_copy): Copy the command lines as well
10052 as the old value, to match what is freed in bpstat_clear.
10053
f56f77c1
DC
100542003-03-10 David Carlton <carlton@math.stanford.edu>
10055
10056 * minsyms.c (add_minsym_to_hash_table): Replace
10057 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10058 (compare_minimal_symbols, compact_minimal_symbols)
10059 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10060 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10061 of DEPRECATED_SYMBOL_MATCHES_NAME.
10062 (lookup_minimal_symbol_solib_trampoline): Ditto.
10063
5602984a
AC
100642003-03-10 Andrew Cagney <cagney@redhat.com>
10065
10066 * regcache.h (regcache_cooked_read_ftype): Define.
10067 (regcache_save, regcache_restore): Add a cooked_read parameter.
10068 * regcache.c (regcache_save, regcache_restore): Update.
10069 (do_cooked_read): New function.
10070 (regcache_cpy): Pass do_cooked_read to regcache_save and
10071 regcache_restore.
10072
8bedc050
AC
100732003-03-10 Andrew Cagney <cagney@redhat.com>
10074
10075 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10076 * gdbarch.h, gdbarch.c: Re-generate.
10077 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10078 * x86-64-tdep.h: Update.
10079 * x86-64-tdep.c (x86_64_init_abi): Update.
10080 * v850-tdep.c (v850_gdbarch_init): Update.
10081 * sparc-tdep.c (sparc_gdbarch_init): Update.
10082 * sh-tdep.c (sh_gdbarch_init): Update.
10083 * s390-tdep.c (s390_gdbarch_init): Update.
10084 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10085 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10086 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10087 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10088 * mips-tdep.c (mips_gdbarch_init): Update.
10089 * mcore-tdep.c (mcore_gdbarch_init): Update.
10090 * m68k-tdep.c (m68k_gdbarch_init): Update.
10091 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10092 * ia64-tdep.c (ia64_gdbarch_init): Update.
10093 * i386-tdep.c (i386_gdbarch_init): Update.
10094 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10095 * hppa-tdep.c (hppa_gdbarch_init): Update.
10096 * h8300-tdep.c (h8300_gdbarch_init): Update.
10097 * frv-tdep.c (frv_gdbarch_init): Update.
10098 * cris-tdep.c (cris_gdbarch_init): Update.
10099 * avr-tdep.c (avr_gdbarch_init): Update.
10100 * arm-tdep.c (arm_gdbarch_init): Update.
10101 * alpha-tdep.c (alpha_gdbarch_init): Update.
10102 * sh-tdep.c (sh_init_extra_frame_info): Update.
10103 (sh64_init_extra_frame_info): Update.
10104 * ns32knbsd-nat.c (frame_num_args): Update.
10105 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10106 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10107 (xstormy16_frame_chain_valid): Update.
10108 * vax-tdep.c (vax_saved_pc_after_call): Update.
10109 * v850-tdep.c (v850_frame_chain): Update.
10110 (v850_pop_frame): Update.
10111 (v850_init_extra_frame_info): Update.
10112 * sparc-tdep.c (setup_arbitrary_frame): Update.
10113 * ns32k-tdep.c (umax_frame_num_args): Update.
10114 * s390-tdep.c (s390_pop_frame_regular): Update.
10115 * mn10300-tdep.c (mn10300_frame_chain): Update.
10116 (mn10300_pop_frame_regular): Update.
10117 (mn10300_init_extra_frame_info): Update.
10118 * mips-tdep.c (mips_init_frame_pc_first): Update.
10119 (mips_frame_chain): Update.
10120 (mips_pop_frame): Update.
10121 * mcore-tdep.c (mcore_frame_chain): Update.
10122 (mcore_pop_frame): Update.
10123 (mcore_init_extra_frame_info): Update.
10124 * arch-utils.c (init_frame_pc_default): Update.
10125 * m68k-tdep.c (isi_frame_num_args): Update.
10126 (delta68_frame_num_args): Update.
10127 (news_frame_num_args): Update.
10128 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10129 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10130 (alpha_frame_chain): Update.
10131 (alpha_pop_frame): Update.
10132 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10133 (hppa_init_extra_frame_info): Update.
10134 (hppa_frame_chain): Update.
10135 (hppa_frame_chain_valid): Update.
10136 * cris-tdep.c (cris_init_extra_frame_info): Update.
10137 * avr-tdep.c (avr_init_extra_frame_info): Update.
10138 * arm-tdep.c (arm_frame_chain_valid): Update.
10139 (arm_init_extra_frame_info): Update.
10140 (arm_pop_frame): Update.
10141 * frame.c (frame_pc_unwind): Update.
10142 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10143 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10144 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10145 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10146 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10147 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10148
12cc2063
AC
101492003-03-10 Andrew Cagney <cagney@redhat.com>
10150
10151 * gdbarch.sh (gdbarch_unwind_pc): New method.
10152 * gdbarch.h, gdbarch.c: Regenerate.
10153 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10154 but use read_pc and FRAME_SAVED_PC as fall backs.
10155 (frame_saved_regs_pc_unwind): Delete function.
10156 (trad_frame_unwinder): Update.
10157 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10158 (struct frame_unwind): Update.
10159 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10160 (dummy_frame_unwind): Update.
10161 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10162 (sentinel_frame_unwinder): Update.
10163 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10164 (d10v_frame_unwind): Update.
10165 (d10v_unwind_pc): New function.
10166 (d10v_gdbarch_init): Set unwind_pc.
10167
ef840a37
AC
101682003-03-10 Andrew Cagney <cagney@redhat.com>
10169
a2ce2e56
AC
10170 * gdbarch.h: Re-generate.
10171
ef840a37
AC
10172 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10173 PC.
10174 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10175 the PC register.
10176
08f3424b
MK
101772003-03-08 Mark Kettenis <kettenis@gnu.org>
10178
10179 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10180
1248ede2
AC
101812003-03-08 Andrew Cagney <cagney@redhat.com>
10182
10183 * cli-out.c: Update copyright.
10184 (cli_out_data): Define typedef. Use instead of ui_out_data.
10185
f49bacc8
AC
101862003-03-08 Andrew Cagney <cagney@redhat.com>
10187
10188 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10189 the result.
10190
9b05f993
AC
101912003-03-07 Andrew Cagney <cagney@redhat.com>
10192
10193 * gdbarch.sh: Don't generate two macro definitions when an
10194 undefined macro taking no arguments.
10195 * gdbarch.h: Regenerate.
8ffd9b1b 10196
166f4c7b
ML
101972002-03-07 Michal Ludvig <mludvig@suse.cz>
10198
10199 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10200 (x86_64_unwind_dummy_id): New functions.
10201 (x86_64_init_abi): Register these two new functions.
10202
6d686a84
ML
102032003-03-07 Michal Ludvig <mludvig@suse.cz>
10204
10205 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 10206 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
10207 separate function.
10208 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10209
6314f104
AC
102102003-03-05 Andrew Cagney <cagney@redhat.com>
10211
10212 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10213 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10214 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10215 to use unwind_dummy_id when a dummy frame.
10216 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10217 predicate.
10218 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 10219
ceea5145
AC
102202003-03-05 Andrew Cagney <cagney@redhat.com>
10221
10222 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10223 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10224 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10225 values.
10226
0d843116
AC
102272003-03-05 Andrew Cagney <cagney@redhat.com>
10228
10229 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10230 (struct d10v_unwind_cache): Delete field "frameless". Replace
10231 "next_addr" with "sp_offset". Add "r11_offset".
10232 (d10v_frame_unwind_cache): Update.
10233 (prologue_find_regs): Update. When "mv r11, sp", save the
10234 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10235 RN was saved in r11_offset.
10236
b2579786
AC
102372003-03-05 Andrew Cagney <cagney@redhat.com>
10238
10239 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10240 cached PC value in the next frame.
10241
218e5956
AC
102422003-03-05 Andrew Cagney <cagney@redhat.com>
10243
10244 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10245 "id_unwind_cache" with "id".
10246 (frame_id_unwind): Delete declaration.
10247 * frame.c (frame_id_unwind): Delete function.
10248 (get_prev_frame): Call the frame id unwind method directly. Store
10249 the returned next frame's ID value in NEXT_FRAME. Note that there
10250 is a problem with the wrong unwind ID being called with the wrong
10251 unwind cache.
10252
ed363b1b
DJ
102532003-03-05 Daniel Jacobowitz <drow@mvista.com>
10254
10255 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10256
fe1f4a5e
DJ
102572003-03-05 James Ingham <jingham@apple.com>
10258 Daniel Jacobowitz <drow@mvista.com>
10259
10260 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10261 (auto_cp_abi): New variable.
10262 (current_cp_abi, num_cp_abis): Make static.
10263 (CP_ABI_MAX): Define.
10264 (cp_abis): Turn into an array.
10265 (value_virtual_fn_field): Fix formatting.
10266 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10267 takes a pointer.
10268 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10269 (list_cp_abis, _initialize_cp_abi): New functions.
10270 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10271 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10272 switch_to_cp_abi. Update prototype for register_cp_abi.
10273 * Makefile.in (cp-abi.o): Update dependencies.
10274 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10275 instead of switch_to_cp_abi.
10276 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10277 register_cp_abi.
10278 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10279 register_cp_abi.
10280 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10281
e4adbba9
DJ
102822003-03-05 Daniel Jacobowitz <drow@mvista.com>
10283
10284 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10285 * dwarf2loc.c: Include "regcache.h".
10286 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10287 register_size.
10288 * Makefile.in (dwarf2loc.o): Update dependencies.
10289
91ccbfc1
TR
102902003-03-04 Theodore A. Roth <troth@openavr.org>
10291
10292 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10293 number of io registers reported by remote target is not a multiple of
10294 step.
10295
3d4e8fd2
DC
102962003-03-04 David Carlton <carlton@math.stanford.edu>
10297
10298 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10299 (lookup_symbol_aux_psymtabs): Update call to
10300 lookup_partial_symbol.
10301 (lookup_transparent_type, find_main_psymtab)
10302 (make_symbol_overload_list): Ditto.
10303
ed42d87b
KH
103042003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10305
10306 * MAINTAINERS (Write after approval): Update my email address.
10307
a0ed5532
AC
103082003-03-03 Andrew Cagney <cagney@redhat.com>
10309
10310 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10311 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10312 predicate. Replace MAX_REGISTER_RAW_SIZE.
10313 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10314 MAX_REGISTER_VIRTUAL_SIZE.
10315 * regcache.c (legacy_max_register_raw_size): New function.
10316 (legacy_max_register_virtual_size): New function.
10317 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10318 (MAX_REGISTER_RAW_SIZE): Define.
10319 (legacy_max_register_raw_size): Declare.
10320 (legacy_max_register_virtual_size): Declare.
10321 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10322 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10323 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10324 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10325 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10326 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10327 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10328 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10329 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10330 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10331 * vax-tdep.c (vax_gdbarch_init): Update.
10332 * v850-tdep.c (v850_gdbarch_init): Update.
10333 * sparc-tdep.c (sparc_gdbarch_init): Update.
10334 * sh-tdep.c (sh_gdbarch_init): Update.
10335 * s390-tdep.c (s390_gdbarch_init): Update.
10336 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10337 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10338 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10339 * mips-tdep.c (mips_gdbarch_init): Update.
10340 * mcore-tdep.c (mcore_gdbarch_init): Update.
10341 * m68k-tdep.c (m68k_gdbarch_init): Update.
10342 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10343 * ia64-tdep.c (ia64_gdbarch_init): Update.
10344 * i386-tdep.c (i386_gdbarch_init): Update.
10345 * hppa-tdep.c (hppa_gdbarch_init): Update.
10346 * h8300-tdep.c (h8300_gdbarch_init): Update.
10347 * frv-tdep.c (frv_gdbarch_init): Update.
10348 * cris-tdep.c (cris_gdbarch_init): Update.
10349 * avr-tdep.c (avr_gdbarch_init): Update.
10350 * arm-tdep.c (arm_gdbarch_init): Update.
10351 * alpha-tdep.c (alpha_gdbarch_init): Update.
10352 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10353 max_register_raw_size or max_register_virtual_size.
10354
8e437497
DC
103552003-03-03 David Carlton <carlton@math.stanford.edu>
10356
10357 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10358 SYMBOL_MATCHES_NAME, add comment.
10359 (SYMBOL_MATCHES_NATURAL_NAME): New.
10360 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10361 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10362 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10363 * symtab.c (lookup_partial_symbol): Use
10364 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10365 unhelpful comment.
10366 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10367 SYMBOL_MATCHES_NAME.
10368 Fix for PR c++/33.
10369
25120b0d
DC
103702003-03-03 David Carlton <carlton@math.stanford.edu>
10371
10372 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10373 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10374 by regexp matching against SYMBOL_NATURAL_NAME.
10375
78a11fb4
DC
103762003-03-03 David Carlton <carlton@math.stanford.edu>
10377
10378 * linespec.c (find_method): Extract code into collect_methods.
10379 (collect_methods): New.
10380
645dd519
MK
103812003-03-02 Mark Kettenis <kettenis@gnu.org>
10382
b4700d91
MK
10383 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10384 get_frame_base.
10385
645dd519
MK
10386 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10387 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10388
0aa7e1aa
SC
103892003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10390
8ffd9b1b 10391 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10392 and not regnum when summing the size of all registers up to regnum.
10393
f30ee0bc
AC
103942003-03-01 Andrew Cagney <cagney@redhat.com>
10395
10396 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10397 FRAME_INIT_SAVED_REGS.
10398 * gdbarch.h, gdbarch.c: Regenerate.
10399 * stack.c (frame_info): Update.
10400 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10401 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10402 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10403 * ns32k-tdep.c (ns32k_pop_frame): Update.
10404 * mips-tdep.c (mips_pop_frame): Update.
10405 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10406 * ia64-tdep.c (ia64_frame_chain): Update.
10407 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10408 (ia64_frameless_function_invocation): Update.
10409 (ia64_init_extra_frame_info): Update.
10410 (ia64_pop_frame_regular): Update.
10411 * frame.h (struct frame_info): Update comment.
10412 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10413 * frame.c (frame_saved_regs_register_unwind): Update.
10414 (frame_saved_regs_register_unwind): Update.
10415 (deprecated_generic_get_saved_register): Update.
10416 * cris-tdep.c: Update comment.
10417 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10418 Rename macro.
10419 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10420 * x86-64-tdep.c (x86_64_init_abi): Update.
10421 * vax-tdep.c (vax_gdbarch_init): Update.
10422 * v850-tdep.c (v850_gdbarch_init): Update.
10423 * sparc-tdep.c (sparc_gdbarch_init): Update.
10424 * sh-tdep.c (sh_gdbarch_init): Update.
10425 * s390-tdep.c (s390_gdbarch_init): Update.
10426 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10427 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10428 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10429 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10430 * mips-tdep.c (mips_gdbarch_init): Update.
10431 * mcore-tdep.c (mcore_gdbarch_init): Update.
10432 * m68k-tdep.c (m68k_gdbarch_init): Update.
10433 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10434 * ia64-tdep.c (ia64_gdbarch_init): Update.
10435 * i386-tdep.c (i386_gdbarch_init): Update.
10436 * frv-tdep.c (frv_gdbarch_init): Update.
10437 * avr-tdep.c (avr_gdbarch_init): Update.
10438 * arm-tdep.c (arm_gdbarch_init): Update.
10439 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10440
42fa7c0f
AC
104412003-03-01 Andrew Cagney <cagney@redhat.com>
10442
10443 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10444 option enum and switch. When no windows, set the interpreter to
10445 INTERP_CONSOLE.
8ffd9b1b 10446
49c7e338
AC
104472003-03-01 Andrew Cagney <cagney@redhat.com>
10448
10449 * main.c (captured_main): Replace magic option characters with an
10450 enum.
10451
e9582e71
AC
104522003-03-01 Andrew Cagney <cagney@redhat.com>
10453
10454 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10455 INIT_EXTRA_FRAME_INFO.
10456 * gdbarch.h, gdbarch.c: Regenerate.
10457 * arm-tdep.c: Update comments.
10458 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10459 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10460 * frame.h, avr-tdep.c: Ditto.
10461 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10462 (create_new_frame, legacy_get_prev_frame): Ditto.
10463 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10464 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10465 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10466 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10467 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10468 * v850-tdep.c (v850_gdbarch_init): Ditto.
10469 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10470 * sh-tdep.c (sh_gdbarch_init): Ditto.
10471 * s390-tdep.c (s390_gdbarch_init): Ditto.
10472 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10473 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10474 * mips-tdep.c (mips_gdbarch_init): Ditto.
10475 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10476 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10477 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10478 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10479 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10480 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10481 * frv-tdep.c (frv_gdbarch_init): Ditto.
10482 * cris-tdep.c (cris_gdbarch_init): Ditto.
10483 * avr-tdep.c (avr_gdbarch_init): Ditto.
10484 * arm-tdep.c (arm_gdbarch_init): Ditto.
10485 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10486 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10487
35cac7cf
AC
104882003-03-01 Andrew Cagney <cagney@redhat.com>
10489
10490 * gdbarch.sh (register_type): New function with predicate.
10491 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10492 * gdbarch.h, gdbarch.c: Re-generate.
10493 * arch-utils.c (generic_register_byte): Use generic_register_size.
10494 (generic_register_size): When available, use
10495 gdbarch_register_type.
10496 * regcache.c (init_regcache_descr): When available, initialize the
10497 register type array using gdbarch_register_type. If the
10498 architecture supplies gdbarch_register_type, do not use the legacy
10499 regcache layout.
10500 * d10v-tdep.c (d10v_register_type): Replace
10501 d10v_register_virtual_type.
10502 (d10v_gdbarch_init): Set register_type instead of
10503 register_virtual_type.
10504
7b83296f
AC
105052003-03-01 Andrew Cagney <cagney@redhat.com>
10506
10507 * Makefile.in (ax-gdb.o): Update dependencies.
10508 * ax-gdb.c: Include "regcache.h".
10509 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10510 * findvar.c (value_of_register): Ditto.
10511 * infcmd.c (default_print_registers_info): Ditto.
10512
eadc1c87
MK
105132003-03-01 Mark Kettenis <kettenis@gnu.org>
10514
10515 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10516 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10517
14143612
MK
105182003-03-01 Mark Kettenis <kettenis@gnu.org>
10519
10520 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10521 of STREQ.
10522
a55cc764
DJ
105232003-02-28 Daniel Jacobowitz <drow@mvista.com>
10524
10525 * Makefile.in (dwarf2loc.o): Update dependencies.
10526 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10527 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10528 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10529 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10530 (locexpr_tracepoint_var_ref): New function.
10531 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10532
08a617da
AC
105332003-02-28 Andrew Cagney <cagney@redhat.com>
10534
10535 * regcache.c (register_size): New function.
10536 * regcache.h (register_size): Declare
10537 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10538 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10539
4224873a
DC
105402003-02-28 David Carlton <carlton@math.stanford.edu>
10541
10542 * linespec.c (decode_compound): Extract code into find_method.
10543 (find_method): New.
10544
ccdc5d7f
JB
105452003-02-28 J. Brobecker <brobecker@gnat.com>
10546
10547 * Makefile.in: Add rules to build and link in observer.o.
10548
974e8ced
JB
105492003-02-27 J. Brobecker <brobecker@gnat.com>
10550
10551 * observer.c: Minor comments edits.
10552
7a28f973
JB
105532003-02-27 J. Brobecker <brobecker@gnat.com>
10554
10555 * observer.h, observer.c: New file.
10556
27cddce2
AC
105572003-02-27 Andrew Cagney <cagney@redhat.com>
10558
10559 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10560
b94a41a1
SC
105612003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10562
10563 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10564 (M6812_OP_STS_EXT): Likewise.
10565 (m6811_prologue): Use the above to recognize prologue.
10566 (m6812_prologue): Likewise.
10567
c8be8951
DC
105682003-02-27 David Carlton <carlton@math.stanford.edu>
10569
10570 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10571 SYMBOL_PRINT_NAME.
10572 (compare_psymbols): Ditto.
10573 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10574
d05bb1fc
MS
105752003-02-27 Michael Snyder <msnyder@redhat.com>
10576
4e845cd3
MS
10577 * f-lang.c (build_fortran_types): New function.
10578 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
10579 * doublest.c (extract_floating): Fix warning text.
10580
f3824013
AC
105812003-02-27 Andrew Cagney <cagney@redhat.com>
10582
10583 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10584 predicate. Replaces PUSH_DUMMY_FRAME.
10585 * gdbarch.h, gdbarch.c: Regnerate.
10586 * valops.c (hand_function_call): Update. Call
10587 generic_push_dummy_frame directly.
10588 * vax-tdep.c (vax_gdbarch_init): Update.
10589 * sparc-tdep.c (sparc_gdbarch_init): Update.
10590 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10591 * m68k-tdep.c (m68k_gdbarch_init): Update.
10592 * hppa-tdep.c (hppa_gdbarch_init): Update.
10593 * alpha-tdep.c (alpha_gdbarch_init): Update.
10594 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10595 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10596 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10597 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10598 push_dummy_frame to generic_push_dummy_frame.
10599 * v850-tdep.c (v850_gdbarch_init): Ditto.
10600 * sh-tdep.c (sh_gdbarch_init): Ditto.
10601 * s390-tdep.c (s390_gdbarch_init): Ditto.
10602 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10603 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10604 * mips-tdep.c (mips_gdbarch_init): Ditto.
10605 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10606 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10607 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10608 * i386-tdep.c (i386_gdbarch_init): Ditto.
10609 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10610 * frv-tdep.c (frv_gdbarch_init): Ditto.
10611 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10612 * cris-tdep.c (cris_gdbarch_init): Ditto.
10613 * avr-tdep.c (avr_gdbarch_init): Ditto.
10614 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 10615
ad188201
KB
106162003-02-26 Kevin Buettner <kevinb@redhat.com>
10617
10618 * mips-tdep.c (show_mips_abi): New function.
10619 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10620 command ``show mips abi''.
10621
6b37567a 106222003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 10623
6b37567a 10624 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 10625 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
10626 more sline entries have been seen for the function.
10627
d3e0a5bf
MC
106282003-02-26 Michael Chastain <mec@shout.net>
10629
10630 * configure: Regenerate with autoconf 000227.
10631
18972eea
MC
106322003-02-26 Michael Chastain <mec@shout.net>
10633
10634 Close PR build/660.
10635 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10636 for old libc5/glibc.
10637 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10638
0bbde931
KW
106392003-02-26 Kris Warkentin <kewarken@qnx.com>
10640
10641 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10642 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10643
27ca5dad
MC
106442003-02-26 Michael Chastain <mec@shout.net>
10645
10646 * configure.in: New variable HAVE_UINTPTR_T.
10647 * configure, config.in: Regenerated.
10648
6f88d630
DJ
106492003-02-26 Daniel Jacobowitz <drow@mvista.com>
10650
10651 Fix PR build/1097.
10652 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10653
b14185ce
AC
106542003-02-25 Andrew Cagney <cagney@redhat.com>
10655
10656 * frame.c (get_prev_frame): Add comment on check for
10657 inside_entry_func. Only check for inside_entry_file when not a
10658 dummy and not a sentinel. Check that the new frame is not inner
10659 to the old frame.
10660
ac2bd0a9
AC
106612003-02-25 Andrew Cagney <cagney@redhat.com>
10662
10663 * frame.c (frame_debug): New variable.
10664 (_initialize_frame): Add "set/show debug frame" command.
10665 (get_prev_frame): When frame_debug, print reason why unwind
10666 failed.
10667
b18a0fd2
MC
106682003-02-25 Michael Chastain <mec@shout.net>
10669
10670 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10671 to avoid uintptr_t definition problems.
10672
22abf04a
DC
106732003-02-25 David Carlton <carlton@math.stanford.edu>
10674
10675 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10676 (SYMBOL_LINKAGE_NAME): Ditto.
10677 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10678 SYMBOL_LINKAGE_NAME.
10679 (struct general_symbol_info): Expand comment.
10680 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10681 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10682 (SYMBOL_MATCHES_REGEXP): Ditto.
10683 * symtab.c (symbol_natural_name): New function.
10684 * objfiles.h: Replace all uses of SYMBOL_NAME by
10685 DEPRECATED_SYMBOL_NAME.
10686 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10687 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10688 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10689 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10690 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10691 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10692 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10693 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10694 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10695 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10696 * ada-exp.y: Ditto.
10697 * ada-exp.y: Update copyright.
10698 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10699 * cp-valprint.c: Ditto.
10700
1a5848f6
JJ
107012003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10702
10703 * infptrace.c (detach): Do not flag error if ptrace detach fails
10704 and errno is set to ESRCH.
10705
7343d46a
AC
107062003-02-24 Andrew Cagney <cagney@redhat.com>
10707
10708 * infptrace.c (udot_info): Change type of udot_off to long. Use
10709 paddr when printing udot_off's value.
10710
49fa1dc2
DC
107112003-02-24 David Carlton <carlton@math.stanford.edu>
10712
10713 * symtab.c (make_symbol_overload_list): Only read in partial
10714 symtabs containing a matching partial symbol.
10715
0fe19209
DC
107162003-02-24 David Carlton <carlton@math.stanford.edu>
10717
10718 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10719 do the comparison, not strcmp.
10720 * symfile.c (compare_psymbols): Ditto.
10721 * defs.h: Declare strcmp_iw_ordered.
10722 * utils.c (strcmp_iw_ordered): New function.
10723
8e3ee7b5
JB
107242003-02-24 Jim Blandy <jimb@redhat.com>
10725
10726 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10727 support, shared libs): Remove my name from here, to better reflect
10728 reality.
10729
7df1a324
KW
107302003-02-24 Kris Warkentin <kewarken@qnx.com>
10731
10732 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10733 (target_ops): Add to_have_continuable_watchpoint.
10734 * target.c (update_current_target): Add INHERIT line for
10735 to_have_continuable_watchpoint.
10736 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10737 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10738 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10739 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10740
d1c76907
EZ
107412003-02-24 Elena Zannoni <ezannoni@redhat.com>
10742
10743 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10744 maintainership.
10745
2610b0bf
KW
107462003-02-24 Kris Warkentin <kewarken@qnx.com>
10747
f46169db
KW
10748 * solib.c (solib_open): Call target defined search function after
10749 failing with solib-search-path.
10750 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10751 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10752
9a3c34fe
KW
107532003-02-24 Kris Warkentin <kewarken@qnx.com>
10754
f46169db 10755 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10756
2417dd25
SC
107572003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10758
10759 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10760
b631436b
SC
107612003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10762
10763 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10764 (m68hc11_add_reggroups): New function.
10765 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10766 (m68hc11_gdbarch_init): Install the reggroups.
10767 (_initialize_m68hc11_tdep): Initialize them.
10768
0aa8c1e4
JW
107692003-02-21 James E Wilson <wilson@tuliptree.org>
10770
10771 * MAINTAINERS: Update my email address.
10772
50ceaba5
DC
107732003-02-21 David Carlton <carlton@math.stanford.edu>
10774
10775 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10776
4c2df51b
DJ
107772003-02-21 Daniel Jacobowitz <drow@mvista.com>
10778
10779 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10780 * symtab.h: Add opaque declarations of struct axs_value and
10781 struct agent_expr.
10782 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10783 (struct location_funcs): New type.
10784 (struct symbol): Add "loc" to aux_value.
10785 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10786 * dwarf2read.c: Include "dwarf2expr.h".
10787 (dwarf2_symbol_mark_computed): New function.
10788 (read_func_scope): Use it.
10789 (var_decode_location): New function.
10790 (new_symbol): Use it.
10791 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10792
10793 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10794 (dwarf2expr_h, dwarf2loc_h): New variables.
10795 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10796 (dwarf2expr.o, dwarf2loc.o): New rules.
10797 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10798 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10799 LOC_COMPUTED_ARG.
10800 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10801 * m2-exp.y (yylex): Likewise.
10802 * printcmd.c (address_info, print_frame_args): Likewise.
10803 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10804 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10805 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10806 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10807 * symtab.c (lookup_block_symbol): Likewise.
10808
5784d15e
AF
108092003-02-20 Adam Fedor <fedor@gnu.org>
10810
10811 * symtab.h: Remove objc_specific struct
10812 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10813 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10814 Have language_objc use cplus_specific struct.
10815
d4cad8db
TT
108162003-02-20 Tom Tromey <tromey@redhat.com>
10817
10818 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10819 TYPE_NAME, when printing a String value. PR java/1075.
10820
2f9a90b4
AF
108212003-02-20 Adam Fedor <fedor@gnu.org>
10822
d38074a8 10823 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 10824 * objc-lang.c (find_methods): Make static.
2f9a90b4 10825
6f17862b
CF
108262003-02-20 Christopher Faylor <cgf@redhat.com>
10827
10828 * win32-nat.c (get_image_name): Check return value from
10829 ReadProcessMemory.
10830 (child_xfer_memory): Ditto.
10831
715d1656
AO
108322003-02-20 Alexandre Oliva <aoliva@redhat.com>
10833
10834 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10835 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10836 '${exec_prefix}' (in addition to the expansion thereof) as
10837 relocatable.
10838 * configure: Rebuilt.
10839
b1262a02
DC
108402003-02-20 David Carlton <carlton@math.stanford.edu>
10841
10842 * symtab.c (search_symbols): Revert the search_symbols part of my
10843 2002-12-23 patch. Add comment.
10844
7134143f
DJ
108452002-02-20 Daniel Jacobowitz <drow@mvista.com>
10846
10847 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10848 * dbxread.c (elfstab_build_psymtabs): Don't call
10849 install_minimal_symbols.
10850 (stabsect_build_psymtabs): Likewise.
10851 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10852 earlier.
10853 * somread.c (som_symfile_read): Call install_minimal_symbols
10854 and do_cleanups earlier.
10855 * nlmread.c (nlm_symfile_read): Likewise.
10856 * mdebugread.c (elfmdebug_build_psymtabs): Call
10857 install_minimal_symbols and make appropriate cleanups.
10858
cf466558
KB
108592003-02-20 Kevin Buettner <kevinb@redhat.com>
10860
10861 * solib.c (reload_shared_libraries): New function.
10862 (_initialize_solib): Add callbacks for ``set solib-search-path''
10863 and ``set solib-absolute-prefix''.
10864
de5ad195
DC
108652003-02-20 David Carlton <carlton@math.stanford.edu>
10866
10867 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10868 expand comment.
10869 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10870 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10871 * ada-typeprint.c (ada_typedef_print): Ditto.
10872 * ax-gdb.c (gen_var_ref): Ditto.
10873 * breakpoint.c (print_one_breakpoint): Ditto.
10874 * buildsym.c (finish_block): Ditto.
10875 * c-valprint.c (c_val_print): Ditto.
10876 * expprint.c (print_subexp): Ditto.
10877 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10878 * infcmd.c (jump_command): Ditto.
10879 * linespec.c (decode_line_2, decode_compound): Ditto.
10880 * maint.c (maintenance_translate_address): Ditto.
10881 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10882 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10883 Ditto.
8ffd9b1b
AJ
10884 * p-valprint.c (pascal_val_print): Ditto.
10885 * stabsread.c (define_symbol): Ditto.
de5ad195 10886 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10887 (print_frame_arg_vars, return_command): Ditto.
10888 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10889 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10890 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10891 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10892 (rbreak_command): Ditto.
10893 * tracepoint.c (tracepoints_info): Ditto.
10894 * typeprint.c (typedef_print): Ditto.
10895 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10896 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10897 * ada-typeprint.c: Update Copyright.
10898 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10899 * tracepoint.c, cli/cli-cmds.c: Ditto.
10900
f796e4be
KB
109012003-02-20 Kevin Buettner <kevinb@redhat.com>
10902
10903 * frame.c (generic_unwind_get_saved_register): Make non-static.
10904 * frame.h (generic_unwind_get_saved_register): Declare.
10905 * mips-tdep.c (read_next_frame_reg): Fetch register from
10906 current regcache when frame is NULL.
10907 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10908 that must be NULL.
10909 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10910 instead of frame_register_unwind().
10911
836cc9f4
AC
109122003-02-20 Andrew Cagney <ac131313@redhat.com>
10913
10914 * remote-sim.c (gdbsim_insert_breakpoint)
10915 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10916 code.
10917
501eef12
AC
109182003-02-20 Andrew Cagney <ac131313@redhat.com>
10919
10920 * remote.c (_initialize_remote): Add commands "set/show remote
10921 hardware-watchpoint-limit" and "set/show remote
10922 hardware-breakpoint-limit".
10923 (remote_hw_watchpoint_limit): Initialize to -1.
10924 (remote_hw_breakpoint_limit): Ditto.
10925 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10926
1b6bc7e0
CF
109272003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10928
10929 * coff-pe-read.c: New file - support reading of minimal symbols from a
10930 portable executable using the export table.
10931 * coff-pe-read.h: New file.
10932 * coffread.c: Include coff-pe-read.h.
10933 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10934 debugging symbols found.
10935 * Makefile.in (SFILES): Add coff-pe-read.o.
10936 (coff_pe_read_h): Define.
10937 (COMMON_OBS): Add coff-pe-read.o.
10938 (coffread.o): Add coff_pe_read_h dependency.
10939 (coff-pe-read.o): New target.
10940
fe898f56
DC
109412003-02-19 David Carlton <carlton@math.stanford.edu>
10942
10943 * Makefile.in (SFILES): Add block.c.
10944 (block_h): New.
10945 (COMMON_OBS): Add block.o.
10946 (block.o): New.
10947 (x86-64-tdep.o): Add $(block_h).
10948 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10949 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10950 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10951 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10952 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10953 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10954 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10955 * value.h: Add opaque declaration for struct block.
10956 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10957 * ada-lang.h: Ditto.
10958 * x86-64-tdep.c: #include "block.h"
10959 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10960 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10961 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10962 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10963 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10964 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10965 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10966 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10967 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10968 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10969 * symtab.c (block_function): Ditto.
10970 (contained_in): Ditto.
10971 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10972 block.h. Add opaque declaration for struct block.
10973 * symtab.h: Move block_function and contained_in declarations to
10974 block.h. Add opaque declarations for struct block, struct
10975 blockvector.
10976 (struct block): Move to block.h.
10977 (struct blockvector): Ditto.
10978 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10979 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10980 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10981 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10982 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10983 Ditto.
10984 * block.c: New file.
10985 * block.h: New file.
10986
173345b5
TR
109872003-02-19 Theodore A. Roth <troth@openavr.org>
10988
10989 * avr-tdep.c (avr_extract_return_value): Remove function.
10990 (avr_store_return_value): Remove function.
10991 (avr_extract_struct_value_address): Remove function.
10992 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10993
338ef23d
AC
109942003-02-19 Andrew Cagney <ac131313@redhat.com>
10995
10996 * rs6000-tdep.c: Include "gdb_assert.h".
10997 (registers_e500): Add "acc" and "spefscr".
10998 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10999 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11000 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11001 really is "r0".
11002 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11003
5412f5f3
KS
110042003-02-18 Keith Seitz <keiths@redhat.com>
11005
11006 * Makefile.in: Add gdbtk-interps.c.
11007
881324eb
KB
110082003-02-18 Kevin Buettner <kevinb@redhat.com>
11009
11010 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11011 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11012
6a2f5abf
AC
110132003-02-18 Andrew Cagney <cagney@redhat.com>
11014
11015 * symtab.h (struct objfile): Add opaque declaration.
11016
54c7009d
EZ
110172003-02-18 Elena Zannoni <ezannoni@redhat.com>
11018
11019 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
11020 * dbxread.c (process_one_symbol): Use last_function_start rather
11021 than function_start_offset to find the real beginning of the
11022 current function. The latter is just the text section offset on
11023 some systems, the former is always the real function start.
54c7009d 11024
7ee6d7eb
AC
110252003-02-17 Andrew Cagney <cagney@redhat.com>
11026
11027 * configure.in: Revert ${target} != ${host}.
11028
2846da9b
AC
110292003-02-17 Andrew Cagney <ac131313@redhat.com>
11030
11031 * configure.in (Makefile): Use the test ${target} != ${host},
11032 instead of the absence of the "nm.h" file, to determine of the
11033 configuration non-native.
11034 * configure: Regenerate.
8ffd9b1b 11035
3b27aeea
EZ
110362003-02-14 Elena Zannoni <ezannoni@redhat.com>
11037
fbe586ae 11038 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
11039
11040 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11041 conditionalize tui_active test.
11042 (lookup_cmd_1): Ditto.
11043
b0b1c2c0
MK
110442003-02-14 Mark Kettenis <kettenis@gnu.org>
11045
11046 * configure.in: Add check for _etext.
11047 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11048 available.
11049 * config.in, configure: regenerated.
11050
8f05cde5
DJ
110512003-02-14 Daniel Jacobowitz <drow@mvista.com>
11052
11053 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11054
021e7609
AC
110552003-02-14 Andrew Cagney <ac131313@redhat.com>
11056
11057 * main.c (tui_version): Delete variable.
11058 (captured_main): When --tui, set interpreter_p to "tui" instead of
11059 enabling tui_version.
11060 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11061 tui_version.
11062 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11063 * cli/cli-cmds.c (disassemble_command): Ditto.
11064 * defs.h (tui_version): Delete declaration.
11065 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11066 (tui-interp.o): Add rules.
11067 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11068
e325dcec
CF
110692003-02-14 Christopher Faylor <cgf@redhat.com>
11070
36ffb041 11071 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
11072 just-loaded dll.
11073
c4f90d87
JM
110742003-02-12 Jason Molenda (jmolenda@apple.com)
11075
fbe586ae
RH
11076 * symmisc.c (print_objfile_statistics): Include information about
11077 the number of psymtabs and symtabs in each object file.
c4f90d87 11078
e46e5ccd
KS
110792003-02-13 Keith R Seitz <keiths@redhat.com>
11080
11081 * main.h (struct captured_main_args): Add interpreter_p.
11082 * main.c (captured_main): Initialize interpreter_p from context.
11083 * gdb.c (main): Set interpreter_p argument.
11084 * Makefile.in (gdb.o): Add dependency for interps.h.
11085
fe97fe9c
AC
110862003-02-12 Andrew Cagney <ac131313@redhat.com>
11087
11088 * event-top.c (cli_command_loop): Delete declaration.
11089 (_initialize_event_loop): Delete function setting event_loop_hook.
11090 * event-top.h (cli_command_loop): Declare. Update copyright.
11091 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11092 * interps.c (current_interp_command_loop): When event_loop_p, call
11093 cli_command_loop.
11094
1cdac4ef
AC
110952003-02-12 Andrew Cagney <ac131313@redhat.com>
11096
11097 * interps.h (interp_command_loop_ftype): Change return type to
11098 void.
11099
48037ead
ML
111002003-02-12 Michal Ludvig <mludvig@suse.cz>
11101
11102 * x86-64-tdep.c (x86_64_extract_return_value)
11103 (x86_64_store_return_value): Use regcache instead of regbuf.
11104 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11105 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11106
033afc63
AC
111072003-02-11 Andrew Cagney <ac131313@redhat.com>
11108
11109 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11110 * aclocal.m4: Regenerate.
11111 * configure: Regenerate.
11112
11113 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11114 TCL_LD_SEARCH_FLAGS.
11115
40d02bca
ML
111162003-02-10 Michal Ludvig <mludvig@suse.cz>
11117
11118 * dwarf2cfi.c: Reindented.
11119
11308a41
AC
111202003-02-09 Andrew Cagney <ac131313@redhat.com>
11121
11122 * interps.c (clear_interpreter_hooks): Convert function definition
11123 to ISO C.
11124
e1c1c0f6
DC
111252003-02-07 David Carlton <carlton@math.stanford.edu>
11126
11127 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11128
ab5d3da6
KB
111292003-02-07 Kevin Buettner <kevinb@redhat.com>
11130
11131 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11132 (struct type): ...to here.
11133 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11134 field.
11135 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11136 (replace_type): Set length on all type variants for a given type.
11137
b8a92b82
AC
111382003-02-07 Andrew Cagney <ac131313@redhat.com>
11139
11140 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11141 <sys/stat.h>.
11142 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 11143
5cb316ef
AC
111442003-02-06 Andrew Cagney <ac131313@redhat.com>
11145
2555fe1a
AC
11146 * Makefile.in (symm-nat.o): Update dependencies.
11147 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11148 (lynx-nat.o, ia64-linux-nat.): Ditto.
11149 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11150 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11151 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11152
44270758
AC
11153 * Makefile.in (inflow_h): Define.
11154 (procfs.o, inflow.o, procfs.o): Update dependencies.
11155 * inftarg.c (child_stop): Delete extern declaration of
11156 inferior_process_group. Include "inflow.h".
11157 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11158 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11159 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11160 (our_process_group, inferior_process_group): Extern declarations.
11161
df8f7274
AC
11162 * procfs.c: Include "gdb_assert.h".
11163
5cb316ef
AC
11164 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11165 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11166 * jv-typeprint.c (java_type_print_base): Ditto.
11167 * typeprint.c (typedef_print): Eliminate STREQ.
11168 * cli/cli-script.c (define_command, define_command): Ditto.
11169 * main.c (captured_main): Ditto.
11170 * values.c (lookup_internalvar): Ditto.
11171 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11172 within `if' conditional.
11173 * linespec.c (decode_line_2): Ditto.
11174 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11175 (bfd_openw_with_cleanup): Ditto.
11176
2a28ccea
MK
111772003-02-07 Mark Kettenis <kettenis@gnu.org>
11178
11179 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11180 legacy_extract_return_value and store_return_value to
11181 legacy_return_value.
11182
786b8124
CF
111832003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11184
11185 * win32-nat.c (get_relocated_section_addrs): New function. Find
11186 section load addresses for symbol handling in relocated DLLs.
11187 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11188
b871e4ec
FF
111892003-02-05 Fred Fish <fnf@intrinsity.com>
11190
11191 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11192 '=' and '!='.
11193 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11194 with '&' and '=='.
11195 (angel_RDI_info): Ditto.
11196 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11197 with '&' and '!='.
11198 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 11199
4389a95a 112002003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
11201 Keith Seitz <keiths@redhat.com>
11202 Elena Zannoni <ezannoni@redhat.com>
11203 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
11204
11205 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11206 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11207 (SUBDIR_MI_OBS): Add "mi-interp.o".
11208 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11209 (SFILES): Add "interps.c".
11210 (COMMON_OBS): Add "interps.o".
11211 (interps_h, mi_main_h): Define.
11212 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11213 (mi-main.o, main.o, event-top.o): Update dependencies.
11214 * cli/cli-interp.c: New file.
11215 * interps.h, interps.c: New files.
11216 * top.c: (gdb_init): Don't install the default interpreter, handed
11217 by captured_main.
11218 * main.c: Include "interps.h".
11219 (interpreter_p): Note that it should malloc'ed.
11220 (captured_command_loop): Call current_interp_command_loop.
11221 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11222 xfree and xstrdup when updating interpreter_p. Install the
11223 default interpreter. Add hack to stop mi1's copyright notice
11224 being encoded.
11225 * event-top.h (gdb_setup_readline): Declare.
11226 (gdb_disable_readline): Declare.
11227 * event-top.c: Include "interps.h".
11228 (display_gdb_prompt): Call current_interp_display_prompt_p.
11229 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11230 gdb_stdlog, and gdb_stdtarg.
11231 (_initialize_event_loop): Don't call gdb_setup_readline.
11232 * cli-out.c (cli_out_set_stream): New function.
11233 * cli-out.h (cli_out_set_stream): Declare.
11234
ff3b5810
MK
112352003-02-06 Mark Kettenis <kettenis@gnu.org>
11236
11237 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11238 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11239 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11240 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11241 config/i386/i386v42mp.mt: Removed.
11242
5b729aa5
MK
112432003-02-05 Mark Kettenis <kettenis@gnu.org>
11244
11245 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11246 GDB_OSABI_SOLARIS.
11247
8cc15142
MC
112482003-02-05 Michael Chastain <mec@shout.net>
11249
11250 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11251 2.12.1 and earlier versions.
11252
5aa5d4b9
AC
112532003-02-05 Andrew Cagney <ac131313@redhat.com>
11254
11255 Remove orphaned hosts, targets and files.
11256 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11257 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11258 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11259 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11260 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11261 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11262 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11263 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11264 * config/sparc/tm-sp64sim.h: Delete.
11265 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11266 hosts.
11267 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11268 mips*-dec-mach3* targets.
11269
b68767c1
MC
112702003-02-04 Michael Chastain <mec@shout.net>
11271
11272 * NEWS: Fix typo: sepcifying -> specifying.
11273
5ae7ca1d
MC
112742003-02-04 Michael Chastain <mec@shout.net>
11275
11276 * dwarfread.c: Add documentation on the state of dwarf-1,
11277 looking towards obsoletion.
11278
d08a4280
MC
112792003-02-03 Michael Chastain <mec@shout.net>
11280
11281 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11282 gdb/testsuite/gdb.c++/pr-1023.exp.
11283
e9be73e4
AC
112842003-02-04 Andrew Cagney <ac131313@redhat.com>
11285
11286 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11287 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11288
11289 * utils.c (init_page_info): Delete reference to MPW in comments.
11290 * main.c (captured_main): Delete #ifdef MPW.
11291
05d57f6f
AC
112922003-02-04 Andrew Cagney <ac131313@redhat.com>
11293
8ffd9b1b 11294 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11295 * monitor.c (monitor_expect): Obsolete reference to m32r.
11296 * configure.tgt: Mark m32r-*-elf* as obsolete.
11297 * MAINTAINERS: Mark m32k as obsolete.
11298 * m32r-rom.c: Obsolete file.
11299 * config/m32r/m32r.mt: Obsolete file.
11300 * config/m32r/tm-m32r.h: Obsolete file.
11301 * m32r-stub.c: Obsolete file.
11302 * m32r-tdep.c: Obsolete file.
11303
8b0e5691
AC
113042003-02-04 Andrew Cagney <ac131313@redhat.com>
11305
11306 * NEWS: Mention that the z8k-zilog-none is obsolete.
11307 * MAINTAINERS: Mark z8k as obsolete.
11308 * configure.tgt: Obsolete the z8k-*-coff* target.
11309 * config/z8k/z8k.mt: Obsolete file.
11310 * config/z8k/tm-z8k.h: Obsolete file.
11311 * z8k-tdep.c: Obsolete file.
11312
67f16606
AC
113132003-02-04 Andrew Cagney <ac131313@redhat.com>
11314
11315 * NEWS: Mention that the mn10200-elf is obsolete.
11316 * configure.tgt: Obsolete mn10200-*-* target.
11317 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11318 mention that the mn10200 is obsolete.
11319 * breakpoint.h: Ditto.
11320 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11321 * config/mn10200/mn10200.mt: Obsolete file.
11322 * config/mn10200/tm-mn10200.h: Obsolete file.
11323 * mn10200-tdep.c: Obsolete file.
11324
fd2299bd
AC
113252003-02-04 Andrew Cagney <ac131313@redhat.com>
11326
11327 * MAINTAINERS: Mark h8500 as obsolete.
11328 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11329 * findvar.c (value_from_register): Ditto.
11330 * h8500-tdep.c: Mark file as obsolete.
11331 * config/h8500/h8500.mt: Ditto.
11332 * config/h8500/tm-h8500.h: Ditto.
11333 * NEWS: Mention that h8500 is obsolete.
11334
eb9a305d
DC
113352003-02-04 David Carlton <carlton@math.stanford.edu>
11336
11337 * objfiles.c (allocate_objfile): Always set name. Add comment at
11338 start of function.
11339 * jv-lang.c (get_dynamics_objfile): Add comment.
11340
406fc7fb
DC
113412003-02-04 David Carlton <carlton@math.stanford.edu>
11342
11343 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11344 * printcmd.c (build_address_symbolic): Replace uses of
11345 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11346 SYMBOL_NAME, and asm_demangle.
11347 Update copyright.
11348
93d91629
DC
113492003-02-04 David Carlton <carlton@math.stanford.edu>
11350
11351 * linespec.c (decode_compound): Extract code into
11352 lookup_prefix_sym.
11353 (lookup_prefix_sym): New function.
11354
1c5cb38e
DC
113552003-02-04 David Carlton <carlton@math.stanford.edu>
11356
11357 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11358 FLOAT_COERCION_BADNESS.
11359 * gdbtypes.c (rank_one_type): Replace all uses of
11360 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11361
0cf824c9
JB
113622003-02-04 Jim Blandy <jimb@redhat.com>
11363
11364 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11365 section, let dwarf_macinfo_section point to it, not
11366 dwarf_loc_section.
11367
a2d356b0
DJ
113682003-02-04 Daniel Jacobowitz <drow@mvista.com>
11369
11370 Pointed out by Anton Blanchard <anton@samba.org>.
11371 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11372 (ppc_linux_at_sigtramp_return_path): Use it.
11373
2de7ced7
DJ
113742003-02-04 Daniel Jacobowitz <drow@mvista.com>
11375
11376 * defs.h (streq): Add prototype.
11377 * utils.c (streq): New function.
11378
11379 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11380 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11381 * mdebugread.c (new_symbol): Likewise.
11382 * stabsread.c (define_symbol): Likewise.
11383 * coffread.c (process_coff_symbol): Likewise.
11384 * dwarfread.c (new_symbol): Likewise.
11385
11386 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11387 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11388 here.
11389 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11390 SYMBOL_INIT_DEMANGLED_NAME.
11391 * objfiles.c: Include "hashtab.h".
11392 (allocate_objfile): Call htab_set_functions_ex for the
11393 demangled_names_hash.
11394 (free_objfile): Call htab_delete for the demangled_names_hash.
11395 * objfiles.h (struct htab): Add declaration.
11396 (struct objfile): Add demangled_names_hash.
11397 * symfile.c: Include "hashtab.h".
11398 (reread_symbols): Call htab_delete for the demangled_names_hash.
11399 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11400 SYMBOL_NAME in the bcache.
11401 * symtab.c: Include "hashtab.h". Update comments.
11402 (create_demangled_names_hash, symbol_set_names): New functions.
11403 (symbol_find_demangled_name): New function, broken out from
11404 symbol_init_demangled_names.
11405 (symbol_init_demangled_names): Use it.
11406 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11407 (SYMBOL_SET_NAMES): New macro.
11408 (symbol_set_names): Add prototype.
11409
15831452
JB
114102003-02-03 Jim Blandy <jimb@redhat.com>
11411
11412 Use a single, consistent representation for an empty minimal
11413 symbol table in an objfile.
11414 * objfiles.c (terminate_minimal_symbol_table): New function.
11415 (allocate_objfile): Call it.
11416 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11417 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11418 non-NULL.
15831452
JB
11419 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11420 objfile has minimal symbols, compare minimal_symbol_count to zero,
11421 instead of comparing msymbols with NULL.
11422 * objfiles.c (have_minimal_symbols): Same.
11423 * solib-sunos.c (solib_add_common_symbols): Call
11424 terminate_minimal_symbol_table.
11425 * symfile.c (reread_symbols): Same.
8ffd9b1b 11426
ffc65945
KB
114272003-02-03 Kevin Buettner <kevinb@redhat.com>
11428
11429 * s390-tdep.c (s390_address_class_type_flags)
11430 (s390_address_class_type_flags_to_name)
11431 (s390_address_class_name_to_type_flags): New functions.
11432 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11433 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11434
f211c6d4
MS
114352003-02-03 Michael Snyder <msnyder@redhat.com>
11436
11437 * arm-tdep.c: Fix spell-o in comment.
11438
659b0389
ML
114392003-02-03 Michal Ludvig <mludvig@suse.cz>
11440
11441 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11442 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11443 error messages to contain BFD filename.
659b0389 11444
3b31d625
EZ
114452003-02-02 Elena Zannoni <ezannoni@redhat.com>
11446
997b089a 11447 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11448 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11449 (do_mixed_source_and_assembly): Use
11450 make_cleanup_ui_out_tuple_begin_end and
11451 make_cleanup_ui_out_tuple_begin_end.
11452 (do_mixed_source_and_assembly): Ditto.
11453 * thread.c (do_captured_list_thread_ids): Ditto.
11454 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11455 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11456 ui_out_tuple_end): Delete prototypes.
11457 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11458 ui_out_list_end, ui_out_tuple_end): Delete.
11459
11460 From Kevin Buettner <kevinb@redhat.com>:
11461 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
11462 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11463 (do_cleanup_table_end): New functions.
11464 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11465 Use cleanups to invoke_ui_out_tuple_end().
11466 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
11467 * cli/cli-setshow.c (cmd_show_list): Use
11468 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 11469
5b181d62
AC
114702003-02-02 Andrew Cagney <ac131313@redhat.com>
11471
11472 * frame.c (frame_unwind_register): New function.
11473 (frame_unwind_unsigned_register): Use.
11474 (frame_unwind_signed_register): Use.
11475 (frame_read_register): New function.
11476 * frame.h (frame_unwind_register): Declare.
11477 (frame_read_register): Declare.
11478
11479 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11480 and frame_unwind_register instead of read_memory, write_register
11481 and deprecated_write_register_bytes.
11482
5f601589
AC
114832003-02-02 Andrew Cagney <ac131313@redhat.com>
11484
11485 * frame.h: Note that namelen can be negative.
11486 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11487 NAME's length.
11488
11489 * NEWS: Mention that the d10v's `regs' command is deprecated.
11490 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11491 (d10v_print_registers_info): New function.
11492 (show_regs): Call d10v_print_registers_info.
11493 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11494
6a3fe0a4
MK
114952003-02-02 Mark Kettenis <kettenis@gnu.org>
11496
11497 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11498 lost in the previous patch.
11499
075559bc
AC
115002003-02-01 Andrew Cagney <ac131313@redhat.com>
11501
11502 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
11503 * stack.c (print_frame_info_base): Output complete FRAME tuple
11504 for synthesized frames.
075559bc 11505
6789195b
AC
115062003-02-02 Andrew Cagney <ac131313@redhat.com>
11507
11508 * mips-nat.c (zerobuf): Delete.
11509 (fetch_inferior_registers): Alloc local zerobuf.
11510 (fetch_core_registers): Alloc local zerobuf.
11511 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11512 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11513 * thread-db.c (thread_db_store_registers): Ditto.
11514 * sh-tdep.c (sh_do_register): Ditto.
11515 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11516 * remote-sim.c (gdbsim_store_register): Ditto.
11517 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11518 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11519 * monitor.c (monitor_supply_register): Ditto.
11520 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11521 * mips-nat.c (fetch_inferior_registers): Ditto.
11522 * m68klinux-nat.c (fetch_register): Ditto.
11523 * lynx-nat.c (fetch_inferior_registers): Ditto.
11524 (fetch_inferior_registers): Ditto.
11525 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11526 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11527 (hpux_thread_store_registers): Ditto.
11528 * hppah-nat.c (fetch_register): Ditto.
11529 * hppab-nat.c (fetch_register): Ditto.
11530 * hppa-tdep.c (pa_register_look_aside): Ditto.
11531 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11532 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11533
e669114a
AC
115342003-02-01 Andrew Cagney <ac131313@redhat.com>
11535
11536 * gdbarch.sh: Explictly specify all method levels. When a
11537 variable with an empty level, provide a non-multi-arch default.
11538 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11539 * gdbarch.h: Re-generate.
11540 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11541 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11542
9a043c1d
AC
115432003-02-01 Andrew Cagney <ac131313@redhat.com>
11544
11545 * defs.h (host_pointer_to_address): Delete declaration.
11546 (address_to_host_pointer): Delete declaration.
11547 * utils.c (host_pointer_to_address): Delete function.
11548 (address_to_host_pointer): Delete function.
11549 * procfs.c (procfs_address_to_host_pointer): New function.
11550 * procfs.c (proc_set_watchpoint): Use.
11551 (procfs_can_use_hw_breakpoint): Update comments.
11552 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11553 (som_solib_add): Use.
11554 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11555 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 11556
7ca9f392
AC
115572003-02-01 Andrew Cagney <ac131313@redhat.com>
11558
94bbfd30
AC
11559 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11560 strlen d_name.
11561
7ca9f392
AC
11562 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11563 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11564 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11565 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11566 (define_symbol): Update.
11567 * symfile.c (generic_load): Remove references to nindy.
11568 * symtab.c: Remove references to nindy.
11569
31a85ea2
AC
115702003-02-01 Andrew Cagney <ac131313@redhat.com>
11571
11572 * infcmd.c (print_float_info): Delete code conditional on
11573 FLOAT_INFO.
11574 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11575 * config/m68k/nm-apollo68b.h: Ditto.
11576 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11577 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11578 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11579
f6e85fc8
MK
115802003-02-01 Mark Kettenis <kettenis@gnu.org>
11581
6015b6a0
MK
11582 * config/i386/tm-i386os9k.h: Removed.
11583
f7a30bdf
MK
11584 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11585 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11586 they're identical to i[3456]86-*-sysv* now.
11587 * config/i386/i386v32.mh: Removed.
11588 * config/i386/xm-i386v32.h: Removed.
11589 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11590
28d52111
MK
11591 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11592
4d3f6bce
MK
11593 * config/i386/i386dgux.mh: Removed.
11594 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11595
f6e85fc8
MK
11596 * configure.in: Fix typo.
11597 * configure: Regenerated.
11598
53955967
DC
115992003-01-31 David Carlton <carlton@math.stanford.edu>
11600
11601 * dwarf2read.c (dwarf2_locate_sections): Set
11602 dwarf_ranges_section.
11603
b1364885
AC
116042003-01-31 Andrew Cagney <ac131313@redhat.com>
11605
8dbb1c65
AC
11606 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11607 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 11608
8731e58e
AC
11609 * utils.c: Re-indent.
11610
b1364885
AC
11611 * config/djgpp/fnchange.lst: Delete nindy files.
11612 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11613 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11614 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11615 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11616 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11617 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11618 * Makefile.in (init.c): Remove nindy references.
11619 (saber_gdb): Delete rule.
11620 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11621 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11622 and a68v-nat.c.
11623 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11624 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11625 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11626 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11627 nindy-share/stop.h.
11628 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11629 * saber.suppress: Delete file.
11630
086df311
DJ
116312003-01-31 Daniel Jacobowitz <drow@mvista.com>
11632
11633 * dbxread.c (stabs_data): New static variable.
11634 (fill_symbuf): Support an in-memory buffer for stabs data.
11635 (stabs_seek): New function.
11636 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11637 (read_ofile_symtab): Use stabs_seek.
11638 (elfstab_build_psymtabs): Take an asection* instead of
11639 an offset and size. Relocate the stabs data if necessary.
11640 Save the section* for dbx_psymtab_to_symtab.
11641 * dwarf2read.c: Add section variables for each debug section.
11642 (dwarf2_locate_sections): Fill them in.
11643 (dwarf2_read_section): Take an asection* argument.
11644 Relocate the section contents if necessary.
11645 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11646 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11647 it to dwarf2_read_section.
11648 (dwarf2_build_frame_info): Update callers.
11649 * elfread.c (elf_symfile_read): Update call to
11650 elfstab_build_psymtabs.
11651 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11652 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11653 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11654 * symfile.c (symfile_dummy_outputs): New function.
11655 (symfile_relocate_debug_section): New function.
11656 * symfile.h (symfile_relocate_debug_section): Add prototype.
11657
87d1b352
RH
116582003-01-31 Richard Henderson <rth@redhat.com>
11659
11660 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11661 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11662 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11663 * alpha-tdep.c (alpha_register_name): Add "unique".
11664 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11665 (ALPHA_UNIQUE_REGNUM): New.
11666 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11667
c48861fb
AC
116682003-01-31 Andrew Cagney <ac131313@redhat.com>
11669
11670 * README: Remove reference to Ericsson 1800 monitor.
11671 * Makefile.in (remote-es.o): Delete rule.
11672 (ALLDEPFILES): Delete remote-es.c.
11673 * remote-es.c: Delete file.
11674 * config/m68k/es1800.mt: Delete file.
11675 * config/djgpp/fnchange.lst: Update.
11676 * configure.tgt: Delete m68*-ericsson-* target.
11677
d764a824
AF
116782003-01-31 Adam Fedor <fedor@gnu.org>
11679
11680 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11681 Remove duplicate/shadowing variable of same name.
11682
fe36c4f4
JB
116832003-01-30 Jim Blandy <jimb@redhat.com>
11684
11685 * symfile.c (find_separate_debug_file): Assert that the objfile's
11686 directory name we compute ends with a slash, and then assume that
11687 that's so everywhere we use it.
11688
cb741690
DJ
116892003-01-30 Daniel Jacobowitz <drow@mvista.com>
11690
11691 * valops.c (value_assign): Flush frame cache after stores to memory
11692 also.
11693
96ee5227
AC
116942003-01-30 Andrew Cagney <ac131313@redhat.com>
11695
11696 * Makefile.in (mon960-rom.o): Delete rule.
11697 * mon960-rom.c: Delete file.
11698
7f6104a9
AC
116992003-01-30 Andrew Cagney <ac131313@redhat.com>
11700
11701 * d10v-tdep.c: Include "frame-unwind.h".
11702 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11703 list.
11704 (next_addr, uses_frame): Delete.
11705 (struct d10v_unwind_cache): Define.
11706 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11707 Use info instead of next_addr and uses_frame globals.
11708 (d10v_frame_init_saved_regs): Delete function.
11709 (d10v_init_extra_frame_info): Delete function.
11710 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11711 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11712 init_frame_pc or frame_saved_pc.
11713 (d10v_pop_frame): Delete function.
11714 (do_d10v_pop_frame): Delete function.
11715 (d10v_frame_chain): Delete function.
11716 (d10v_frame_chain_valid): Delete function.
11717 (d10v_frame_pc_unwind): New function.
11718 (d10v_frame_id_unwind): New function.
11719 (saved_regs_unwinder): New function.
11720 (d10v_frame_register_unwind): New function.
11721 (d10v_frame_pop): New function.
11722 (d10v_frame_unwind): New variable.
11723 (d10v_frame_p): New function.
11724 (d10v_frame_saved_pc): Delete function.
11725 * Makefile.in (d10v-tdep.o): Update dependencies.
11726
cad2e848
JB
117272003-01-30 J. Brobecker <brobecker@gnat.com>
11728
11729 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11730 causing some regressions due to a change in the default value
11731 for this macro.
11732
af34e669
DJ
117332003-01-29 Richard Henderson <rth@redhat.com>
11734 Elena Zannoni <ezannoni@redhat.com>
11735 Daniel Jacobowitz <drow@mvista.com>
11736
11737 Fix PR gdb/961.
8ffd9b1b 11738 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11739 variables.
11740 (RANGES_SECTION): New.
11741 (dwarf_ranges_buffer): New variable.
11742 (struct comp_unit_head): Add member "die".
11743 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11744 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11745 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11746 (dwarf2_locate_sections): Likewise.
11747 (dwarf2_build_psymtabs): Read .debug_ranges.
11748 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11749 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11750 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11751 Look for DW_AT_ranges and return the bounding box.
11752
baa93fa6
CF
117532003-01-29 Brian Ford <ford@vss.fsi.com>
11754
11755 * win32-nat.c (cygwin_pid): Removed as unused.
11756 (child_attach): Try fall back to Cygwin pid.
11757
c63f977f
JB
117582003-01-29 Jim Blandy <jimb@redhat.com>
11759
11760 * objfiles.h (struct objfile): Doc fix.
11761
d62d1979
AC
117622003-01-29 Andrew Cagney <ac131313@redhat.com>
11763
11764 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11765 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11766 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11767 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11768 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11769 (FRAME_SAVED_PC): Change to a function with predicate.
11770 * gdbarch.h, gdbarch.c: Re-generate.
11771
1ae18a04
AC
117722003-01-28 Andrew Cagney <ac131313@redhat.com>
11773
52287340
AC
11774 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11775
1ae18a04
AC
11776 * complaints.c (complain): Delete function.
11777 * complaints.h (struct deprecated_complaint): Delete definition.
11778 (complain): Delete declaration.
11779
f2c16bd6
KB
117802003-01-28 Kevin Buettner <kevinb@redhat.com>
11781
11782 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11783 dummy frames.
11784
a94dd1fd
AC
117852003-01-27 Andrew Cagney <ac131313@redhat.com>
11786
11787 * sentinel-frame.h, sentinel-frame.c: New files.
11788 * Makefile.in (frame.o): Update dependencies.
11789 (SFILES): Add sentinel-frame.c.
11790 (sentinel_frame_h): Define.
11791 (COMMON_OBS): Add sentinel-frame.o.
11792 (sentinel-frame.o): Specify dependencies.
11793 * frame.c: Include "sentinel-frame.h".
11794 (frame_register_unwind): Rewrite assuming that there is always a a
11795 ->next frame.
11796 (frame_register, generic_unwind_get_saved_register): Ditto.
11797 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11798 (create_sentinel_frame, unwind_to_current_frame): New functions.
11799 (get_current_frame): Rewrite using create_sentinel_frame and
11800 unwind_to_current_frame. When possible, always create a frame.
11801 (create_new_frame): Set next to the sentinel frame.
11802 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11803 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11804 ID cache when necessary.
11805 (frame_saved_regs_id_unwind): Use frame_relative_level.
11806 (deprecated_generic_get_saved_register): Use frame_relative_level,
11807 get_frame_saved_regs, get_frame_pc, get_frame_base and
11808 get_next_frame.
11809 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11810 frame_register.
11811
5378adc4
DJ
118122003-01-27 Daniel Jacobowitz <drow@mvista.com>
11813
11814 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11815
51ee2ddc
DJ
118162003-01-27 Daniel Jacobowitz <drow@mvista.com>
11817
11818 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11819 (maintenance_set_profile_cmd): Use error () instead of warning ().
11820
d9feb4e7
DJ
118212003-01-27 Daniel Jacobowitz <drow@mvista.com>
11822
11823 * configure.in: Check that -pg works if using --enable-profiling.
11824 Check for monstartup and _mcleanup regardless of --enable-profiling.
11825 * maint.c: Check for monstartup and _mcleanup before using them.
11826 * config.in: Regenerated.
11827 * configure: Regenerated.
11828
2d188dd3
NC
118292003-01-24 Nick Clifton <nickc@redhat.com>
11830
11831 * Add sh2e support:
11832
11833 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11834
11835 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11836 (sh2e_show_regs): New.
11837 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11838 * config/sh/tm-sh.h: Added sh2e to comments.
11839
cb3c37b2
JB
118402003-01-23 Jim Blandy <jimb@redhat.com>
11841
11842 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11843 symbols found)" message here; we haven't checked for a separate
11844 debug info file yet, so we don't know yet.
11845 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11846 we've looked everywhere. Also, there's no need to print a special
11847 message when we're loading the separate debug info file: the one
11848 symbol_file_add prints is fine.
11849
5b5d99cf
JB
118502003-01-23 Alexander Larsson <alexl@redhat.com>
11851 Jim Blandy <jimb@redhat.com>
11852
11853 Add support for executables whose debug info has been separated
11854 out into a separate file, leaving only a link behind.
11855 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11856 and separate_debug_objfile_backlink.
11857 (put_objfile_before): New declaration.
11858 * symfile.c: #include "filenames.h".
11859 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11860 debug info in a separate file, read that, too. Save the addrs
11861 argument, so we can use it again to read the separated debug info;
11862 syms_from_objfile modifies the table we pass it.
11863 (reread_symbols): After re-reading an objfile, call
11864 reread_separate_symbols to refresh its separate debug info
11865 objfile, if it has one.
11866 (reread_separate_symbols, find_separate_debug_file,
11867 get_debug_link_info, separate_debug_file_exists): New functions.
11868 (debug_file_directory): New global var.
11869 (_initialize_symfile): Initialize debug_file_directory, and
11870 provide the new `set debug-file-directory' command to let the user
11871 change it.
11872 * objfiles.c (free_objfile): If this objfile has its debug info in
11873 a separate objfile, free that one too. If this is itself a
11874 separate debug info objfile, clear our parent's backlink.
11875 (put_objfile_before): New function.
11876 * utils.c (gnu_debuglink_crc32): New function.
11877 * defs.h (gnu_debuglink_crc32): New declaration.
11878 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11879 * configure.in: Handle --with-separate-debug-dir config option.
11880 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11881 * acconfig.h (DEBUGDIR): New macro.
11882 * configure, aclocal.m4, config.in: Regenerated.
11883
7e8580c1
JB
118842003-01-22 Jim Blandy <jimb@redhat.com>
11885
7904e09f
JB
11886 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11887 like the old symbol_file_add, but taking new arguments: you can
11888 now pass in either a `struct section_addr_info' list to say where
11889 each section is loaded, or a `struct section_offsets' table. Pass
11890 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11891 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11892 with the appropriate quiescent values for the new arguments.
11893
7e8580c1
JB
11894 * symfile.c: #include "gdb_assert.h".
11895 (syms_from_objfile): Add the ability to pass in a section offset
11896 table directly, as an alternative to the section_addr_info table.
11897 Document arguments better.
11898 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11899 * symfile.h (syms_from_objfile): Update declaration.
11900 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11901 syms_from_objfile.
11902 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11903
d28f9cdf
DJ
119042003-01-22 Daniel Jacobowitz <drow@mvista.com>
11905
11906 Original patch by Tom Tromey <tromey@cygnus.com> and
11907 Jason Molenda <jmolenda@apple.com>.
11908 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11909 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11910 * NEWS: Mention profiling.
11911 * configure.in (--enable-gdbtk): Fix typo.
11912 (--enable-profiling): New. Set PROFILE_CFLAGS.
11913 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11914 Fill in function.
11915 (profiling_state): New variable.
11916 (mcleanup_wrapper): New function.
11917 (_initialize_maint): Remove NOTYET, fix call to
11918 add_setshow_boolean_cmd for "maint set profile".
11919 * configure: Regenerated.
11920
df21e465
MH
119212003-01-21 Martin M. Hunt <hunt@redhat.com>
11922
11923 * Makefile.in (install-gdbtk): Install PNG images too.
11924
73c1f219
AC
119252003-01-21 Andrew Cagney <ac131313@redhat.com>
11926
11927 * exec.c (text_start): Delete global variable.
11928 (exec_file_attach): Make text_start local to the function.
11929 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11930 * valops.c (hand_function_call): Delete code that handles
11931 BEFORE_TEXT_END and AFTER_TEXT_END.
11932 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11933 of CALL_DUMMY_LOCATION.
11934 * gdbarch.c: Regenerate.
11935 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11936 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11937 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11938 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11939 (text_end): Delete extern declaration.
11940
eb4f72c5
AC
119412003-01-21 Andrew Cagney <ac131313@redhat.com>
11942
11943 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11944 * blockframe.c (backtrace_below_main): Move to "frame.c".
11945 (frame_chain_valid): Delete check for backtrace_below_main.
11946 (_initialize_blockframe): Delete initialization, move ``set
11947 backtrace-below-main'' command to "frame.c".
11948 (do_flush_frames_sfunc): Delete function.
11949 * frame.c: Include "command.h" and "gdbcmd.h".
11950 (frame_type_from_pc): New function.
11951 (create_new_frame): Use frame_type_from_pc.
11952 (legacy_get_prev_frame): New function.
11953 (get_prev_frame): Rewrite. When an old style frame, call
11954 legacy_get_prev_frame. Otherwize, unwind the PC first.
11955 (_initialize_frame): Add ``set backtrace-below-main'' command.
11956 * Makefile.in (frame.o): Update dependencies.
11957
778ce8cc
AC
119582003-01-19 Andrew Cagney <ac131313@redhat.com>
11959
11960 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11961 DEPRECATED_REGISTERS_INFO.
11962
01c193c8
AC
119632003-01-19 Andrew Cagney <ac131313@redhat.com>
11964
11965 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11966 Maintainers'. Update `Various Maintainers'.
11967
dedc2a2b
AC
119682003-01-19 Andrew Cagney <ac131313@redhat.com>
11969
11970 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11971 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11972 Suppress actual parameters when `-'.
11973 * gdbarch.h, gdbarch.c: Regenerate.
11974
b7261c70
AC
119752003-01-19 Andrew Cagney <ac131313@redhat.com>
11976
11977 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11978 code handling dummy frames.
11979
dbe9fe58
AC
119802003-01-19 Andrew Cagney <ac131313@redhat.com>
11981
11982 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11983 (struct frame_unwind): Add field pop.
11984 * frame.h (frame_pop): Declare.
11985 * frame.c (frame_saved_regs_pop): New function.
11986 (trad_frame_unwinder): Add frame_saved_regs_pop.
11987 (frame_pop): New function.
11988 * dummy-frame.c (dummy_frame_pop): New function.
11989 (discard_innermost_dummy): New function.
11990 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11991 (dummy_frame_unwind): Add dummy_frame_pop.
11992 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11993 * valops.c (hand_function_call): Ditto.
11994 * stack.c (return_command): Ditto.
11995
570b8f7c
AC
119962003-01-18 Andrew Cagney <ac131313@redhat.com>
11997
11998 * cris-tdep.c: Fix function declaration indentation.
11999 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12000 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12001 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12002 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12003 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12004 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12005
120062003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
12007
12008 * README (Unpacking and Installation -- quick overview):
12009 Warn against ".../gdb-5.3/gdb/configure".
12010
494cca16
AC
120112003-01-18 Andrew Cagney <ac131313@redhat.com>
12012
12013 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12014 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12015 (struct frame_unwind): Declare opaque.
12016 (dummy_frame_p): Declare function.
12017 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12018 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12019 * dummy-frame.c: Include "frame-unwind.h".
12020 (dummy_frame_p): New function.
12021 (dummy_frame_unwind): New variable.
12022 * frame.c: Include "frame-unwind.h".
12023 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12024 to use the new unwind field.
12025 (set_unwind_by_pc): Delete function.
12026 (create_new_frame, get_prev_frame): Set unwind field using
12027 frame_unwind_find_by_pc.
12028 (trad_frame_unwind, trad_frame_unwinder): New variables.
12029 * frame.h (trad_frame_unwind): Declare variable.
12030 (frame_id_unwind_ftype): Delete declaration.
12031 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12032 (struct frame_unwind): Declare opaque.
12033 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12034 register_unwind with a single unwind pointer.
12035 * frame-unwind.h, frame-unwind.c: New files.
12036 * Makefile.in (SFILES): Add frame-unwind.c.
12037 (frame_unwind_h): Define.
12038 (COMMON_OBS): Add frame-unwind.o.
12039 (frame-unwind.o): Specify dependencies.
12040 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 12041
4efb68b1
AC
120422003-01-18 Andrew Cagney <ac131313@redhat.com>
12043
12044 * ada-valprint.c: Eliminate PTR.
12045 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12046 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12047 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12048 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12049 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12050 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12051 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 12052
a84d24ee
AC
120532003-01-17 Andrew Cagney <ac131313@redhat.com>
12054
762f08a3
AC
12055 * main.c (captured_main): Don't use PTR.
12056 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12057 * gdbtypes.c (lookup_primitive_typename): Ditto.
12058 (lookup_struct_elt_type): Ditto.
12059 * f-valprint.c (info_common_command): Ditto.
12060 (list_all_visible_commons): Ditto.
12061 * jv-typeprint.c (java_type_print_base): Ditto.
12062
a84d24ee
AC
12063 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12064 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12065 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12066 i386-interix-nat.c and i386-interix-tdep.c. Rename
12067 m68klinux-nat.c and m68klinux-tdep.c. Rename
12068 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12069 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12070 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12071 * main.c (captured_main): Use xfree, not free.
12072
c170fb60
AC
120732003-01-16 Andrew Cagney <ac131313@redhat.com>
12074
12075 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12076 ID back using a parameter.
12077 * frame.c (frame_id_unwind): Update call.
12078 (frame_saved_regs_id_unwind): Update.
12079 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12080 * dummy-frame.h (struct frame_id): Add opaque declaration.
12081 (dummy_frame_id_unwind): Update declaration.
12082
867f3898
AC
120832003-01-15 Andrew Cagney <ac131313@redhat.com>
12084
12085 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12086
40622be8 120872003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 12088
40622be8 12089 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 12090
ae66c1fc
EZ
120912003-01-14 Elena Zannoni <ezannoni@redhat.com>
12092
997b089a 12093 Fix PR gdb/898
ae66c1fc
EZ
12094 * breakpoint.c (until_break_command): Add new argument. Use it to
12095 decide whether to stop only at the current frame or not.
12096 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 12097 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
12098 call.
12099 (advance_command): New function.
12100 (_initialize_infcmd): Update help string for 'until' command.
12101 Add new 'advance' command.
12102
a04257e6
DC
121032003-01-14 David Carlton <carlton@math.stanford.edu>
12104
12105 * linespec.c (decode_line_1): Normalize comments.
12106 (set_flags): Ditto.
12107 (locate_first_half): Ditto.
12108 (decode_compound): Ditto.
12109 (symtab_from_filename): Ditto.
12110 (decode_all_digits): Ditto.
12111 (decode_dollar): Ditto.
12112 (find_methods): Ditto.
12113 (find_toplevel_char): Ditto.
12114
1bac305b
AC
121152003-01-13 Andrew Cagney <ac131313@redhat.com>
12116
12117 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12118 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12119 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12120 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12121 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12122 * language.c, language.h, m32r-tdep.c: Update copyright.
12123 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12124 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12125 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12126 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12127 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12128 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12129
25caa7a8
EZ
121302003-01-13 Elena Zannoni <ezannoni@redhat.com>
12131
12132 * stabsread.h (process_later, resolve_cfront_continuation):
12133 Obsolete.
12134 Update copyright years.
12135 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12136 Update copyright year.
12137 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 12138 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
12139 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12140 Update copyright year.
12141 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12142 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12143 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12144 (parse_partial_symbols): Obsolete cfront support.
12145 * stabsread.c
12146 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12147 macros.
12148 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12149 read_cfront_baseclasses, read_cfront_member_functions,
12150 resolve_cfront_continuation,read_cfront_static_fields,
12151 copy_cfront_struct_fields): Obsolete functions.
12152 (define_symbol, read_one_struct_field): Obsolete cfront support.
12153 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12154 Update Copyright year.
12155
7789c6f5
EZ
121562003-01-13 Elena Zannoni <ezannoni@redhat.com>
12157
12158 * stack.c (print_frame_info, print_stack_frame_base_stub,
12159 print_stack_frame_base, show_and_print_stack_frame_stub,
12160 show_and_print_stack_frame, print_only_stack_frame_stub,
12161 print_only_stack_frame): Delete functions.
12162 (print_stack_frame_stub): Call print_frame_info instead of
12163 print_frame_info_base.
12164 (print_frame_info_base): Rename to print_frame_info.
12165 (backtrace_command_1): Call print_frame_info, instead of
12166 print_frame_info_base.
12167 (current_frame_command): Call print_stack_frame, instead of
12168 print_only_stack_frame.
12169 (frame_command): Call print_stack_frame, instead of
12170 show_and_print_stack_frame.
12171 (up_command): Ditto.
12172 (down_command): Ditto.
12173 * frame.h (print_only_stack_frame): Delete prototype.
12174 * infrun.c (normal_stop): Call print_stack_frame, instead of
12175 show_and_print_stack_frame.
12176 * thread.c (info_threads_command): Call print_stack_frame, instead
12177 of print_only_stack_frame.
12178
3f5a3016
AC
121792003-01-13 Andrew Cagney <ac131313@redhat.com>
12180
d99ba314
AC
12181 * README (Graphical interface to GDB): Update URL. Point at
12182 gdb/links/.
12183
3f5a3016
AC
12184 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12185 version match.
12186
083ae935
DJ
121872003-01-13 Daniel Jacobowitz <drow@mvista.com>
12188
12189 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12190 lines.
12191
5365276c
DJ
121922003-01-13 Daniel Jacobowitz <drow@mvista.com>
12193
12194 * thread-db.c (attach_thread): Prototype.
12195 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12196 thread information (ti), and valid flags (th_valid, ti_valid).
12197 (attach_thread): Move target_pid_to_str call to after the thread
12198 is added to GDB's list. Initialize the cache.
12199 (thread_get_info_callback, thread_db_map_id2thr)
12200 (thread_db_get_info): New functions.
12201 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12202 (thread_db_store_registers, thread_db_thread_alive)
12203 (thread_db_get_thread_local_address): Use them.
12204 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12205 of calling error() for threads in unknown state.
12206
12207 (clear_lwpid_callback): New function.
12208 (thread_db_resume): Use it to clear the cache.
12209
9fc30b6b
DJ
122102003-01-13 Daniel Jacobowitz <drow@mvista.com>
12211
12212 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12213 (resume_callback): Remove dead code.
12214
8f871025
AC
122152003-01-13 Andrew Cagney <ac131313@redhat.com>
12216
12217 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12218 predicate.
12219 * gdbarch.h, gdbarch.c: Regenerate.
12220 * stack.c (frame_info): Only initialize the saved registers when
12221 FRAME_INIT_SAVED_REGS_P.
12222 * frame.c (frame_saved_regs_register_unwind): Assert
12223 FRAME_INIT_SAVED_REGS_P.
12224 (deprecated_generic_get_saved_register): Ditto.
12225
3f565f1e
DJ
122262003-01-13 Daniel Jacobowitz <drow@mvista.com>
12227
12228 * source.c (openp): Squelch warning about "filename".
12229
072b1022
DJ
122302003-01-13 Daniel Jacobowitz <drow@mvista.com>
12231
12232 * source.c (openp): If the file does not exist don't necessarily
12233 search the path.
12234
973ccf8b
DJ
122352003-01-13 Daniel Jacobowitz <drow@mvista.com>
12236
12237 Fix PR gdb/872.
12238 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12239 (integer_types_same_name_p): New function.
12240 (rank_one_type): Use it.
12241 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12242
030292b7
DJ
122432003-01-13 Daniel Jacobowitz <drow@mvista.com>
12244
12245 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12246 variables.
12247 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12248 * configure.in: Add --with-sysroot.
12249 * configure: Regenerated.
12250 * main.c (gdb_sysroot): New variable.
12251 (captured_main): Initialize gdb_sysroot.
12252 * defs.h (gdb_sysroot): New extern declaration.
12253 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12254
afb5d334
MC
122552003-01-12 Michael Chastain <mec@shout.net>
12256
12257 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12258
751ceeb4
MC
122592003-01-12 Michael Chastain <mec@shout.net>
12260
12261 * top.c (print_gdb_version): Bump copyright year to 2003.
12262
94cd26f8
DC
122632003-01-12 David Carlton <carlton@bactrian.org>
12264
12265 * linespec.c (symtab_from_filename): Rename variable 's' to
12266 'file_symtab'.
12267
1ce79225
AC
122682003-01-12 Andrew Cagney <ac131313@redhat.com>
12269
12270 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12271 dummy frame.
12272 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12273
fa1fd571
AC
122742003-01-12 Andrew Cagney <ac131313@redhat.com>
12275
12276 * d10v-tdep.c: Include "gdb_assert.h".
12277 (d10v_store_return_value): Rewrite to match current interface.
12278 (d10v_extract_struct_value_address): Ditto.
12279 (d10v_extract_return_value): Ditto.
12280 (d10v_gdbarch_init): Set store_restore_value,
12281 extract_struct_value_address and extract_return_value.
12282
68b8d23e
JB
122832003-01-12 J. Brobecker <brobecker@gnat.com>
12284
12285 * hpread.c (set_namestring): New procedure replacing the
12286 SET_NAMESTRING macro.
12287 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12288 by calls to set_namestring.
12289
122902003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12291
12292 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12293 a compilation warning.
12294 (hpread_process_one_debug_symbol): Likewise.
12295
88d262ca
DC
122962003-01-10 David Carlton <carlton@math.stanford.edu>
12297
12298 * linespec.c (decode_line_1): Rename variable 's' to
12299 'file_symtab'.
12300 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12301 (decode_dollar): Ditto.
12302 (decode_variable): Ditto.
12303 (symbol_found): Ditto.
12304
86669319
MC
123052003-01-09 Michael Chastain <mec@shout.net>
12306
12307 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12308
616a9dc4
CV
123092003-01-07 Corinna Vinschen <vinschen@redhat.com>
12310
12311 * win32-nat.c (set_process_privilege): New function.
12312 (child_attach): Call set_process_privilege() to enable the
12313 SE_DEBUG_NAME user privilege if available in process token.
12314
3269bcfa
JB
123152003-01-10 J. Brobecker <brobecker@gnat.com>
12316
12317 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12318 compilation error in the previous revision.
12319
2b0ee454
DC
123202003-01-09 David Carlton <carlton@math.stanford.edu>
12321
12322 * linespec.c: Update copyright.
12323
b3ba1b44
DJ
123242003-01-09 Daniel Jacobowitz <drow@mvista.com>
12325
12326 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12327 than inferior_ptid.
12328 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12329
4ef3f3be
AC
123302003-01-09 Andrew Cagney <ac131313@redhat.com>
12331
479ab5a0
AC
12332 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12333 Update comments.
12334 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12335 (frame_saved_regs_zalloc): Update.
12336 (frame_saved_regs_register_unwind): Update.
12337 (create_new_frame): Update.
12338 (get_prev_frame): Update.
12339 (frame_extra_info_zalloc): Update.
12340 (deprecated_get_frame_saved_regs): Update.
12341 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12342 * cris-tdep.c: Update comment.
12343
bde58177
AC
12344 * somsolib.h: Fix function indentation.
12345 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12346 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12347 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12348 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12349 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12350
4ef3f3be
AC
12351 * infrun.c (follow_fork): Use ISO C definition.
12352 * expprint.c (print_subexp): Use xfree instead of free.
12353 * charset.c: Include "gdb_string.h" instead of <string.h>.
12354 (register_iconv_charsets): Use ISO C definition.
12355 (host_charset, target_charset): Ditto.
12356 * Makefile.in (charset.o): Update dependencies.
12357 (mi-cmd-env.o): Update dependencies.
12358
1c615f7a
AC
123592003-01-08 Andrew Cagney <cagney@redhat.com>
12360
12361 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12362 get_frame_base.
12363
c9a1dc08
AC
123642003-01-08 Andrew Cagney <ac131313@redhat.com>
12365
12366 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12367 build directories. Save edited gdb output in Mbuild.log. If a
12368 build fails, remove any final GDB executable.
12369
dbad9d94
AC
123702003-01-08 Andrew Cagney <ac131313@redhat.com>
12371
12372 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12373 replacing hex constants with function names and stripping leading
12374 file name directory prefixes.
12375
8d357cca
AC
123762003-01-08 Andrew Cagney <cagney@redhat.com>
12377
12378 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12379 get_frame_base.
12380
bca02a8a
DC
123812003-01-08 David Carlton <carlton@math.stanford.edu>
12382
12383 * linespec.c (decode_line_1): Move code into decode_variable.
12384 (decode_variable): New function.
12385
7f8ab3a0
AC
123862003-01-08 Andrew Cagney <ac131313@redhat.com>
12387
12388 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12389
7b5849cc
AC
123902003-01-08 Andrew Cagney <cagney@redhat.com>
12391
12392 * cris-tdep.c (cris_frame_init_saved_regs): Use
12393 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12394 saved_regs buffer.
12395 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12396 (sh64_nofp_frame_init_saved_regs): Ditto.
12397 (sh_fp_frame_init_saved_regs): Ditto.
12398 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12399 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12400 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12401 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12402
72a5efb3
DJ
124032003-01-08 Daniel Jacobowitz <drow@mvista.com>
12404
12405 * minsyms.c (lookup_minimal_symbol): Update comment.
12406 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12407 (lookup_minimal_symbol_solib_trampoline): Likewise.
12408
11c02a10
AC
124092003-01-08 Andrew Cagney <cagney@redhat.com>
12410
aab3ea25
AC
12411 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12412 frame_relative_level.
12413
da50a4b7
AC
12414 * alpha-tdep.c: Use get_frame_extra_info.
12415 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12416 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12417 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12418 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12419
11c02a10
AC
12420 * alpha-tdep.c: Use get_next_frame.
12421 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12422 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12423 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12424 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12425 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12426 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12427 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12428
1e2330ba
AC
124292003-01-07 Andrew Cagney <cagney@redhat.com>
12430
12431 * alpha-tdep.c: Use get_frame_base.
12432 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12433 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12434 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12435 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12436 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12437 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12438 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12439 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12440
2d75187b
AC
124412003-01-07 Andrew Cagney <cagney@redhat.com>
12442
12443 * frame.c (deprecated_get_frame_context): New function.
12444 (deprecated_set_frame_context): New function.
12445 * frame.h (deprecated_get_frame_context): Declare.
12446 (deprecated_set_frame_context): Declare.
12447 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12448 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12449
483d36b2
AC
124502003-01-07 Andrew Cagney <cagney@redhat.com>
12451
12452 * frame.c (deprecated_set_frame_next_hack): New function.
12453 (deprecated_set_frame_prev_hack): New function.
12454 * frame.h (deprecated_set_frame_next_hack): Declare.
12455 (deprecated_set_frame_prev_hack): Declare.
12456 * mcore-tdep.c (analyze_dummy_frame): Use
12457 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12458 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12459
14e91ac5
DC
124602003-01-07 David Carlton <carlton@math.stanford.edu>
12461
12462 * linespec.c (decode_line_1): Move code into decode_dollar.
12463 (decode_dollar): New function.
12464
b0c6b05c
AC
124652003-01-07 Andrew Cagney <cagney@redhat.com>
12466
12467 * arm-tdep.c (arm_init_extra_frame_info): Use
12468 deprecated_update_frame_base_hack.
12469 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12470 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12471 (fix_frame_pointer): Ditto.
12472 (mn10300_analyze_prologue): Ditto.
12473
a00a19e9
AC
124742003-01-07 Andrew Cagney <cagney@redhat.com>
12475
12476 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12477 extra_info using frame_extra_info_zalloc.
12478 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12479 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12480 (sh64_init_extra_frame_info): Ditto.
12481 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12482 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12483 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12484 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12485 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12486 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12487 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12488 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12489 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12490 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12491 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12492 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12493
12494 * mn10300-tdep.c (analyze_dummy_frame): Use
12495 deprecated_set_frame_extra_info_hack.
12496 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12497
1fb4c65b
JB
124982003-01-07 J. Brobecker <brobecker@gnat.com>
12499
12500 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12501 class is not scText. These do not define "real" procedures.
12502 (parse_partial_symbols): Likewise.
12503
9fe7d6bf
MS
125042003-01-06 Michael Snyder <msnyder@redhat.com>
12505
12506 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12507
f6c609c4
AC
125082003-01-06 Andrew Cagney <ac131313@redhat.com>
12509
12510 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12511 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12512 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12513 deprecated_frame_xmalloc_with_cleanup.
12514 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12515 deprecated_frame_xmalloc.
12516 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12517 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12518
d995ff4b
AC
125192003-01-06 Andrew Cagney <cagney@redhat.com>
12520
84dc46cb
AC
12521 * x86-64-linux-tdep.c: Include "osabi.h".
12522 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12523
d995ff4b
AC
12524 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12525
66140c26
AC
125262003-01-06 Andrew Cagney <cagney@redhat.com>
12527
12528 * MAINTAINERS (Target Instruction Set Architectures): Update
12529 arm-elf. Can be built with -Werror, has been multiarched.
12530
12531 * value.h (unpack_long): Make buffer parameter constant.
12532 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12533 * scm-lang.h (scm_parse): Ditto.
12534 * defs.h (extract_typed_address, extract_address): Ditto.
12535 (extract_long_unsigned_integer): Ditto.
12536 * inferior.h (unsigned_pointer_to_address): Ditto.
12537 (signed_pointer_to_address): Ditto.
12538 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12539 * gdbarch.h, gdbarch.c: Regenerate.
12540 * findvar.c (extract_long_unsigned_integer): Update.
12541 (extract_address): Update.
12542 (extract_typed_address): Update.
12543 (unsigned_pointer_to_address): Update.
12544 * values.c (unpack_long): Update.
12545 (unpack_double): Update.
12546 (unpack_pointer): Update.
12547 (unpack_field_as_long): Update.
12548 * d10v-tdep.c (d10v_pointer_to_address): Update.
12549 * avr-tdep.c (avr_pointer_to_address): Update.
12550 * scm-lang.c (scm_unpack): Update.
12551 * findvar.c (signed_pointer_to_address): Update.
12552
b089b3da
ML
125532003-01-06 Michal Ludvig <mludvig@suse.cz>
12554
8ffd9b1b 12555 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
12556 since it is in i386-tdep.c.
12557
aff87235
JB
125582003-01-06 J. Brobecker <brobecker@gnat.com>
12559
12560 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12561 failure introduced in the previous change.
12562
34f5e845
MC
125632003-01-05 Michael Chastain <mec@shout.net>
12564
12565 * README: Remove references to deleted remote-*.c files:
12566 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12567 remote-nrom.c, remote-os9k.c, remote-udi.c.
12568
28bcfd30
MK
125692003-01-05 Mark Kettenis <kettenis@gnu.org>
12570
12571 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12572 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12573 i386_get_longjmp_target.
12574
15a5b3ee
AC
125752003-01-05 Andrew Cagney <ac131313@redhat.com>
12576
12577 * arm-tdep.c (prologue_cache): Change to a pointer.
12578 (_initialize_arm_tdep): Allocate prologue_cache.
12579 (check_prologue_cache): Update.
12580 (save_prologue_cache): Update.
12581 (arm_gdbarch_init): Update.
12582
c263362b
DJ
125832003-01-04 Daniel Jacobowitz <drow@mvista.com>
12584
12585 * stabsread.c (update_method_name_from_physname): Call complaint()
12586 instead of error.
12587
51603483
DJ
125882003-01-04 Daniel Jacobowitz <drow@mvista.com>
12589
12590 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12591 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12592 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12593
12594 * blockframe.c: Include "gdbcmd.h" and "command.h".
12595 (backtrace_below_main): New variable.
12596 (file_frame_chain_valid, func_frame_chain_valid)
12597 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12598 (generic_func_frame_chain_valid): Remove functions.
12599 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12600 (_initialize_blockframe): New function.
12601 * Makefile.in (blockframe.o): Update dependencies.
12602 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12603 comment. Call frame_chain_valid ().
12604 * frame.h: Remove old prototypes. Add prototype for
12605 frame_chain_valid and update comments to match.
12606 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12607 Remove old comment.
12608 * gdbarch.h: Regenerated.
12609 * gdbarch.c: Regenerated.
12610
12611 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12612 set_gdbarch_frame_chain_valid.
12613 * avr-tdep.c (avr_gdbarch_init): Likewise.
12614 * cris-tdep.c (cris_gdbarch_init): Likewise.
12615 * frv-tdep.c (frv_gdbarch_init): Likewise.
12616 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12617 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12618 (i386_nw_init_abi): Likewise.
12619 (i386_gdbarch_init): Likewise.
12620 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12621 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12622 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12623 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12624 * mips-tdep.c (mips_gdbarch_init): Likewise.
12625 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12626 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12627 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12628 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12629 * s390-tdep.c (s390_gdbarch_init): Likewise.
12630 * sh-tdep.c (sh_gdbarch_init): Likewise.
12631 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12632 * v850-tdep.c (v850_gdbarch_init): Likewise.
12633 * vax-tdep.c (vax_gdbarch_init): Likewise.
12634 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12635
12636 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12637 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12638 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12639 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12640 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12641 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12642 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12643 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12644
b00a8037
DJ
126452002-01-04 Daniel Jacobowitz <drow@mvista.com>
12646
12647 * Makefile.in (acconfig_h): Remove incorrect macro.
12648 (config_h): Define.
12649 (osabi.o): Update dependencies.
12650 * configure.tgt: Set gdb_osabi based on target triplet.
12651 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12652 * configure: Regenerated.
12653 * config.in: Regenerated.
12654 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12655 (GDB_OSABI_DEFAULT): Define if not already defined.
12656 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12657 (set_osabi_string): New variables.
12658 (gdbarch_register_osabi): Add new OS ABI to
12659 gdb_osabi_available_names.
12660 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12661 (set_osabi, show_osabi): New functions.
12662 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12663
4be87837
DJ
126642003-01-04 Daniel Jacobowitz <drow@mvista.com>
12665
12666 * arch-utils.c (gdbarch_info_init): Set osabi to
12667 GDB_OSABI_UNINITIALIZED.
12668 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12669 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12670 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12671 * gdbarch.c: Regenerated.
12672 * gdbarch.h: Regenerated.
12673 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12674 there's no BFD.
12675 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12676 * osabi.h (enum gdb_osabi): Move to defs.h.
12677 (gdbarch_init_osabi): Update prototype.
12678 * defs.h (enum gdb_osabi): Moved here.
12679 * Makefile.in: Update dependencies.
12680
12681 * alpha-tdep.h: Don't include "osabi.h".
12682 (struct gdbarch_tdep): Remove osabi member.
12683 * alpha-tdep.c: Include "osabi.h".
12684 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12685 iterate over arches. Update call to gdbarch_init_osabi.
12686 (alpha_dump_tdep): Don't dump osabi.
12687 * alpha-linux-tdep.c: Include "osabi.h".
12688 * alpha-osf1-tdep.c: Include "osabi.h".
12689 * alphafbsd-tdep.c: Include "osabi.h".
12690 * alphanbsd-tdep.c: Include "osabi.h".
12691
12692 * arm-tdep.h: Don't include "osabi.h".
12693 (struct gdbarch_tdep): Remove osabi member.
12694 * arm-tdep.c: Include "osabi.h".
12695 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12696 iterate over arches. Update call to gdbarch_init_osabi.
12697 (arm_dump_tdep): Don't dump osabi.
12698 * arm-linux-tdep.c: Include "osabi.h".
12699 * armnbsd-tdep.c: Include "osabi.h".
12700
12701 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12702 Update call to gdbarch_init_osabi.
12703
12704 * i386-tdep.h: Don't include "osabi.h".
12705 (struct gdbarch_tdep): Remove osabi member.
12706 * i386-tdep.c: Include "osabi.h".
12707 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12708 iterate over arches. Update call to gdbarch_init_osabi.
12709 (i386_dump_tdep): Don't dump osabi.
12710 * i386-linux-tdep.c: Include "osabi.h".
12711 * i386-sol2-tdep.c: Include "osabi.h".
12712 * i386bsd-tdep.c: Include "osabi.h".
12713 * i386gnu-tdep.c: Include "osabi.h".
12714 * i386ly-tdep.c: Include "osabi.h".
12715 * i386nbsd-tdep.c: Include "osabi.h".
12716 * i386obsd-tdep.c: Include "osabi.h".
12717
12718 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12719 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12720 check osabi when iterating over arches. Update call to
12721 gdbarch_init_osabi.
12722 (mips_dump_tdep): Don't dump osabi.
12723
12724 * ns32k-tdep.h: Don't include "osabi.h".
12725 (struct gdbarch_tdep): Remove.
12726 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12727 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12728 allocate tdep. Update call to gdbarch_init_osabi.
12729 (ns32k_dump_tdep): Remove.
12730 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12731 * ns32knbsd-tdep.c: Include "osabi.h".
12732
12733 * ppc-tdep.h: Don't include "osabi.h".
12734 (struct gdbarch_tdep): Remove osabi member.
12735 * rs6000-tdep.c: Include "osabi.h".
12736 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12737 osabi when iterating over arches. Update call to
12738 gdbarch_init_osabi.
12739 (rs6000_dump_tdep): Don't dump osabi.
12740 * ppc-linux-tdep.c: Include "osabi.h".
12741 * ppcnbsd-tdep.c: Include "osabi.h".
12742
12743 * sh-tdep.h: Don't include "osabi.h".
12744 (struct gdbarch_tdep): Remove osabi member.
12745 * sh-tdep.c: Include "osabi.h".
12746 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12747 iterate over arches. Update call to gdbarch_init_osabi.
12748 (sh_dump_tdep): Don't dump osabi.
12749 * shnbsd-tdep.c: Include "osabi.h".
12750
12751 * sparc-tdep.c: Include "osabi.h".
12752 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12753 iterate over arches. Update call to gdbarch_init_osabi.
12754 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12755 tdep structure.
12756
12757 * vax-tdep.h: Don't include "osabi.h".
12758 (struct gdbarch_tdep): Remove.
12759 * vax-tdep.c: Include "osabi.h".
12760 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12761 iterate over arches. Don't allocate tdep. Update call
12762 to gdbarch_init_osabi.
12763 (vax_dump_tdep): Remove.
12764 (_initialize_vax_tdep): Update call to gdbarch_register.
12765
a881cf8e
DJ
127662003-01-04 Daniel Jacobowitz <drow@mvista.com>
12767
12768 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12769 entirely.
12770 (breakpoint_re_set_one): Don't fetch the value for a disabled
12771 watchpoint.
12772
1e698235
DJ
127732003-01-04 Daniel Jacobowitz <drow@mvista.com>
12774
12775 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12776 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12777 (COERCE_FLOAT_TO_DOUBLE): Remove.
12778 * gdbarch.c: Regenerate.
12779 * gdbarch.h: Regenerate.
12780 * Makefile.in: Remove value_h from gdbarch_h.
12781 * valops.c (coerce_float_to_double): New variable.
12782 (default_coerce_float_to_double): Remove.
12783 (standard_coerce_float_to_double): Remove.
12784 (value_arg_coerce): Use coerce_float_to_double.
12785 (_initialize_valops): Add "set coerce-float-to-double".
12786 * value.h (default_coerce_float_to_double): Remove prototype.
12787 (standard_coerce_float_to_double): Remove prototype.
12788
12789 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12790 prototyped.
12791 * mdebugread.c (parse_symbol): Likewise.
12792 * stabsread.c (define_symbol): Mark all functions as prototyped.
12793
12794 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12795 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12796 set_gdbarch_coerce_float_to_double.
12797 * arm-tdep.c (arm_gdbarch_init): Likewise.
12798 * frv-tdep.c (frv_gdbarch_init): Likewise.
12799 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12800 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12801 * mips-tdep.c (mips_gdbarch_init): Likewise.
12802 (mips_coerce_float_to_double): Remove.
12803 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12804 (rs6000_coerce_float_to_double): Remove.
12805 * s390-tdep.c (s390_gdbarch_init): Likewise.
12806 * sh-tdep.c (sh_gdbarch_init): Likewise.
12807 (sh_coerce_float_to_double): Remove.
12808 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12809 (sparc_coerce_float_to_double): Remove.
12810 * v850-tdep.c (v850_gdbarch_init): Likewise.
12811 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12812 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12813 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12814 (hppa_coerce_float_to_double): Remove prototype.
12815 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12816
f436a26a
DJ
128172003-01-04 Daniel Jacobowitz <drow@mvista.com>
12818
12819 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12820
248f8055
DJ
128212003-01-04 Daniel Jacobowitz <drow@mvista.com>
12822
12823 Suggested by Stewart Brown <sb24@avaya.com>:
12824 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12825 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12826 (c_type_print_varspec_suffix): Likewise.
12827
72cfdc76
MK
128282003-01-04 Mark Kettenis <kettenis@gnu.org>
12829
bfd260bb
MK
12830 * configure.in: Don't set and AC_SUBST SUBDIRS.
12831 * configure: Regenerated.
12832
72cfdc76
MK
12833 * configure.in: Remove code dealing with shared libraries.
12834 * Makefile.in: Remove HLDFLAGS and HLDENV.
12835 * configure: Regenerated.
12836
c8b8a898
AC
128372003-01-04 Andrew Cagney <ac131313@redhat.com>
12838
12839 * frame.c (deprecated_frame_xmalloc): New function.
12840 (deprecated_set_frame_saved_regs_hack): New function.
12841 (deprecated_set_frame_extra_info_hack): New function.
12842 * frame.h (deprecated_frame_xmalloc): Declare.
12843 (deprecated_set_frame_saved_regs_hack): Declare.
12844 (deprecated_set_frame_extra_info_hack): Declare.
12845
14abd0fb
MK
128462003-01-04 Mark Kettenis <kettenis@gnu.org>
12847
8ee53726
MK
12848 * configure.in: Move code that provides the --enable-gdbtk option
12849 right after the code that handles the --enable-tui option, and
12850 polish it somewhat.
12851 * configure: Regenerated.
12852
14abd0fb
MK
12853 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12854 AC_CHECK_FUNCS and remove the old check for pread64.
12855 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12856 * acconfig.h (_GNU_SOURCE): Add.
12857 (HAVE_PREAD64): Remove.
12858 * configure, aclocal.m4, config.in: Regenerated.
12859
b2fb4676
AC
128602003-01-03 Andrew Cagney <ac131313@redhat.com>
12861
12862 * alpha-tdep.c: Use get_frame_saved_regs.
12863 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12864 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12865 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12866 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12867 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12868
8dcde887
MK
128692003-01-03 Mark Kettenis <kettenis@gnu.org>
12870
12871 * configure.in: Remove all use of the SUBDIRS variable; add
12872 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12873 code providing the --enable-multi-ice option, and move it right in
12874 front of the code that checks whether gdbserver is supported.
12875 Polish that too.
12876 * configure: Regenerated.
12877 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12878 @SUBDIRS@.
12879
8ccd593b
AC
128802003-01-03 Andrew Cagney <cagney@redhat.com>
12881
12882 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12883 * avr-tdep.c, cris-tdep.c: Ditto.
12884 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12885 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12886
91151a06
MK
128872003-01-03 Mark Kettenis <kettenis@gnu.org>
12888
12889 * configure.in: Remove --enable-netrom option.
12890 * configure: Regenerated.
12891
8fe84d01
MK
128922003-01-03 Mark Kettenis <kettenis@gnu.org>
12893
12894 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12895 declaration for `struct re_pattern_buffer' instead.
12896 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12897
f0394be6
JB
128982003-01-03 J. Brobecker <brobecker@gnat.com>
12899
12900 * mdebugread.c (parse_symbol): Count until the stEnd matching
12901 the structure name.
12902
27e9bf90
MK
129032003-01-02 Mark Kettenis <kettenis@gnu.org>
12904
93d331ba
MK
12905 * configure.in: Remove --with-cpu option.
12906 subscripts. Remove evil changequotes here.
12907 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12908 * config.in, configure: Regenerated.
8ffd9b1b 12909
27e9bf90
MK
12910 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12911 * configure.in: Cleanup section that sources GDB and BFD configure
12912 subscripts. Remove evil changequotes here.
12913 * config.in, configure: Regenerated.
12914
50abf9e5
AC
129152003-01-02 Andrew Cagney <ac131313@redhat.com>
12916
12917 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12918 frame accessor methods.
12919 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12920 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12921 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12922 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12923 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12924 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12925 * z8k-tdep.c: Ditto.
8ffd9b1b 12926
287c1a40
MK
129272003-01-02 Mark Kettenis <kettenis@gnu.org>
12928
f5dbc56d
MK
12929 * configure.in: Remove UI_OUT configuration code.
12930 * ada-lang.c: Update assuming UI_OUT is always true.
12931 * Makefile.in (UIOUT_CFLAGS): Remove.
12932 * configure: Regenerated.
12933 * TODO: Remove blurb about elimination of -DUI_OUT.
12934
627af7ea
MK
12935 * configure.in: Move code that provides the --enable-gdbcli,
12936 --enable-gdbmi options right before the code that handles the
12937 --enable-tui option. Polish a bit.
12938 * configure: Regenerated.
12939
06825bd1
MK
12940 * configure.in: Rewrite check for GNU regex and the
12941 --without-included regex option, and move it into the "Checks for
12942 library functions" section. This makes us use the system regex
12943 again by default on systems with version 2 of the GNU C library.
12944 This was apparently broken.
12945 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12946 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12947 * config.in, configure: Regenerated.
12948
287c1a40
MK
12949 * configure.in: Move code that provides the --enable-tui option
12950 before the "Checks for libraries" section. Polish the code
12951 somewhat and set need_curses to yes if we build the TUI. Rewrite
12952 code that looks for a library providing termcap functionality to
12953 match more closely what's done in the Readline library, and move
12954 it into to the "Checks for libraries" section.
12955 * configure: Regenerated.
12956 * Makefile.in (TERMCAP): Remove variable.
12957 * config/i386/go32.mh (TERMCAP): Remove variable.
12958
684e56bf
AC
129592003-01-02 Andrew Cagney <ac131313@redhat.com>
12960
12961 * MAINTAINERS: Mention gdb_mbuild.sh.
12962 * gdb_mbuild.sh: Rewrite.
12963
e1ea1d75
MK
129642003-01-02 Mark Kettenis <kettenis@gnu.org>
12965
12966 * configure.in: Fix typo in last change.
12967 * config.in, configure: Regenerated.
12968
1b831c93
AC
129692003-01-02 Andrew Cagney <ac131313@redhat.com>
12970
12971 * valarith.c (value_binop): Delete obsolete code and comments.
12972 * configure.host: Ditto.
12973 * buildsym.h (make_blockvector): Ditto.
12974 * buildsym.c (make_blockvector): Ditto.
12975 * defs.h (enum language): Ditto.
12976 (chill_demangle): Ditto.
12977 * elfread.c (elf_symtab_read): Ditto.
12978 * dwarfread.c (CHILL_PRODUCER): Ditto.
12979 (set_cu_language): Ditto.
12980 (handle_producer): Ditto.
12981 * expprint.c (print_subexp): Ditto.
12982 * gdbtypes.c (chill_varying_type): Ditto.
12983 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12984 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12985 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12986 (chill_varying_type): Ditto.
12987 * language.h (_LANG_chill): Ditto.
12988 * language.c (binop_result_type, integral_type): Ditto.
12989 (character_type, string_type, structured_type): Ditto.
12990 (lang_bool_type, binop_type_check): Ditto.
12991 * stabsread.h (os9k_stabs): Ditto.
12992 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12993 (define_symbol, read_type, read_struct_fields): Ditto.
12994 (read_array_type, read_enum_type, read_huge_number): Ditto.
12995 (read_range_type, start_stabs): Ditto.
12996 * symfile.c (init_filename_language_table): Ditto.
12997 (add_psymbol_with_dem_name_to_list): Ditto.
12998 * symtab.c (symbol_init_language_specific): Ditto.
12999 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13000 * symtab.h (struct general_symbol_info): Ditto.
13001 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13002 * typeprint.c (typedef_print): Ditto.
13003 * utils.c (fprintf_symbol_filtered): Ditto.
13004 * valops.c (value_cast, search_struct_field, value_slice): Delete
13005 obsolete code.
13006 (varying_to_slice): Delete function.
13007 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13008 (varying_to_slice): Delete declaration.
13009 * MAINTAINERS: Update.
13010
8bb2c122
MK
130112003-01-02 Mark Kettenis <kettenis@gnu.org>
13012
97bf5e38
MK
13013 * configure.in: Reorganize "Checks for library functions section"
13014 a bit. Remove check for `btowc' and `isascii' functions.
13015 * configure: Regenerated.
13016
5ee754fc
MK
13017 * acconfig.h (_MSE_INT_H): Remove.
13018 * configure.in: Create "Checks for header files" section, and move
13019 appropriate tests there. Don't check for objlist.h, wchar.h,
13020 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13021 misdetection fix. Also add "Checks for types", "Checks for
13022 compiler characteristics" and "Checks for library functions"
13023 sections.
13024 * config.in, configure: Regenerated.
13025
8bb2c122
MK
13026 * configure.in: Create "Checks for programs" section, and move
13027 appropriate tests there.
13028
9a156167
MK
130292003-01-01 Mark Kettenis <kettenis@gnu.org>
13030
13031 * configure.in: Create "Checks for libraries" section, and move
13032 appropriate tests there. Cleanup check for wctype in libw. Use
13033 AC_SEARCH_LIBS to see whether we need libsocket.
13034 * configure: Regenerated.
13035
a80e2bcb 13036For older changes see ChangeLog-2002
c906108c
SS
13037\f
13038Local Variables:
13039mode: change-log
13040left-margin: 8
13041fill-column: 74
13042version-control: never
13043End:
This page took 1.029388 seconds and 4 git commands to generate.