]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
2
3 * frame.h (struct frame_id): Add new field: special_addr.
4 (frame_id_build_special): New prototype.
5 * frame.c (frame_id_build_special): New function.
6 (frame_id_build): Change to call frame_id_build_special().
7 (frame_id_eq): Change to also test special_addr field.
8 (frame_id_inner): Update comment.
9
10 2003-10-17 Andrew Cagney <cagney@redhat.com>
11
12 * target.c (update_current_target): Perform the target cleanup.
13 Put the target stack beneath the squashed "current_target".
14 (add_target): Delete disabled call to "cleanup_target".
15 (cleanup_target): Delete function.
16 (push_target, unpush_target): Do not call "cleanup_target".
17
18 2003-10-17 Andrew Cagney <cagney@redhat.com>
19
20 * target.c (target_stack): Change to a static target_ops.
21 (update_current_target): Walk the "struct target_ops" stack.
22 (pop_target, do_xfer_memory, target_info): Ditto.
23 (find_target_beneath): Ditto.
24 (push_target): Rewrite to use the "struct target_ops" stack.
25 (unpush_target): Ditto.
26 * target.h (struct target_stack_item): Delete definition.
27 (target_stack): Delete declaration.
28 (struct target_ops): Add field "beneath".
29
30 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
31
32 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
33 declaration.
34 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
35 (h8300_examine_prologue): Use h8300_normal_mode flag
36 (h8300_gdbarch_init): Set architecture info for normal mode
37
38 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
39
40 * remote.c (remote_protocol_vcont): New variable.
41 (set_remote_protocol_vcont_packet_cmd): New function.
42 (show_remote_protocol_vcont_packet_cmd): New function.
43 (init_all_packet_configs): Handle remote_protocol_vcont.
44 (remote_vcont_probe): New function.
45 (remote_vcont_resume): New function.
46 (remote_resume): Use it.
47 (remote_async_resume): Call remote_resume.
48 (_initialize_remote): Add verbose-resume packet commands.
49
50 2003-10-16 Andrew Cagney <cagney@redhat.com>
51
52 * infrun.c (handle_inferior_event): Add comment about
53 "frame_id_inner" being too weak.
54
55 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
56
57 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
58 second parameter, which is always null. Remove
59 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
60 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
61 accordingly.
62 * somsolib.c (som_solib_create_inferior_hook,
63 som_solib_desire_dynamic_linker_symbols): Update callers.
64 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
65
66 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
67
68 * remote-m32r-sdi.c : New file, interface to m32r on-chip
69 debug interface, SDI (Scalable Debug Interface).
70 * NEWS: Mention m32r SDI protocol was supported.
71 * Makefile.in (remote-m32r-sdi.o): Add build rule.
72 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
73
74 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
75
76 * ia64-linux-tdep.c: Include gdbcore.h.
77 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
78 (ia64_linux_sigcontext_register_addr): Find the address of the
79 sigcontext area stored in the sigframe instead of using
80 a magic offset constant.
81
82 2003-10-15 Andrew Cagney <cagney@redhat.com>
83
84 * remote.c (remote_search): Delete function.
85 * target.h (target_search): Delete disabled macro.
86 (struct target_ops): Delete disabled field "to_search".
87
88 2003-10-14 Kevin Buettner <kevinb@redhat.com>
89
90 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
91 instead of deprecated_inside_entry_file().
92
93 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
94
95 * sh-tdep.c: Fix copy/paste hangover in comment.
96 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
97 mode.
98 (sh3e_sh4_extract_return_value): Ditto.
99
100 2003-10-13 Richard Henderson <rth@redhat.com>
101
102 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
103 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
104 match c_val_print a bit closer.
105
106 2003-10-13 Kevin Buettner <kevinb@redhat.com>
107
108 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
109 (frv_gdbarch_adjust_breakpoint_address): New function.
110 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
111 method.
112
113 2003-10-13 Kevin Buettner <kevinb@redhat.com>
114
115 * breakpoint.h (struct breakpoint): Add new member
116 ``requested_address''.
117 * breakpoint.c (breakpoint_adjustment_warning)
118 (adjust_breakpoint_address): New static functions.
119 (print_it_typical): Issue warning if breakpoint's address is different
120 from its requested address.
121 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
122 (breakpoint_re_set_one): Set breakpoint's
123 ``requested_address'' field. Set ``address'' field to the
124 result of calling adjust_breakpoint_address() on the requested
125 address.
126
127 2003-10-13 Kevin Buettner <kevinb@redhat.com>
128
129 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
130 * gdbarch.h, gdbarch.c: Regenerate.
131
132 2003-10-11 Mark Kettenis <kettenis@gnu.org>
133
134 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
135 TDEP->sc_num_regs.
136
137 * i386fbsd-tdep.c: New file.
138 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
139 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
140 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
141 i386bsd-tdep.c.
142 (_initialize_i386fbsd_tdep): New function.
143 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
144 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
145 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
146 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
147 TDEP->sc_num_regs.
148 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
149 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
150 to initialize TDEP->sc_num_regs.
151 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
152 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
153 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
154 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
155 FreeBSD ELF OS/ABI's here.
156 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
157 (i386fbsd-tdep.o): New target.
158 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
159 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
160
161 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
162 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
163 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
164 in initialization of TDEP->sc_num_regs.
165
166 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
167 (x86_64_init_abi): Initialize regset_from_core_section if
168 appropriate.
169
170 * i386-tdep.c (i386_regset_from_core_section): New function.
171 (i386_gdbarch_init): Initialize regset_from_core_section if
172 appropriate.
173 * i386-tdep.h (i386_regset_from_core_section): New declaration.
174
175 * i386-tdep.h (struct regset): Declare opaque.
176
177 * gdbarch.sh (regset_from_core_section): New method.
178 (struct regset): Declare opaque.
179 * gdbarch.c, gdbarch.h: Regenerated.
180
181 2003-10-11 Alan Modra <amodra@bigpond.net.au>
182
183 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
184 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
185 Correct test for pc within section.
186
187 2003-10-11 Mark Kettenis <kettenis@gnu.org>
188
189 * gdbarch.sh: Remove trailing whitepsace from comments.
190
191 2003-10-08 Roland McGrath <roland@redhat.com>
192
193 * gcore.c (make_mem_sec): Function removed, folded into ...
194 (gcore_create_callback): ... here. To omit a section, clear its
195 SEC_LOAD bit rather than zeroing its size.
196 Omit read-only sections only if they correspond to a known disk file.
197 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
198
199 2003-10-10 Michael Snyder <msnyder@redhat.com>
200
201 * d10v-tdep.c: Fix typo in comment.
202
203 2003-10-10 Andrew Cagney <cagney@redhat.com>
204
205 * rs6000-tdep.c (e500_store_return_value): Delete function.
206 (e500_extract_return_value): Delete function.
207 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
208 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
209 "ppc_sysv_abi_restore_return_value" where applicable.
210 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
211 (ppc_sysv_abi_extract_return_value): Declare.
212 (ppc_sysv_abi_broken_store_return_value): Declare.
213 (ppc_sysv_abi_broken_extract_return_value): Declare.
214 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
215 * ppc-sysv-tdep.c (return_value_convention): Move definition to
216 start of file.
217 (do_ppc_sysv_return_value): New function.
218 (ppc_sysv_abi_extract_return_value): New function.
219 (ppc_sysv_abi_store_return_value): New function.
220 (ppc_sysv_abi_broken_extract_return_value): New function.
221 (ppc_sysv_abi_broken_store_return_value): New function.
222 (ppc_sysv_abi_use_struct_convention): Call
223 do_ppc_sysv_return_value.
224
225 2003-10-10 J. Brobecker <brobecker@gnat.com>
226
227 * blockframe.c (inside_main_func): No longer use symbol_lookup()
228 to lookup the main function symbol.
229
230 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
231
232 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
233 types correctly.
234 (sh_push_dummy_call_fpu): Fix argument passing rules.
235 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
236 float types.
237 (sh3e_sh4_store_return_value): Ditto.
238
239 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
240
241 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
242 comment.
243
244 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
245
246 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
247 more readable code. Accomodate passing of bitfields.
248
249 2003-10-10 Andrew Cagney <cagney@redhat.com>
250
251 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
252 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
253 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
254 * ppc-sysv-tdep.c: Include "gdb_assert.h".
255 (ppc64_sysv_abi_push_dummy_call): New function.
256 (ppc64_sysv_abi_broken_push_dummy_call): New function.
257 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
258 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
259
260 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
261
262 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
263 * README: Ditto.
264 * d10v-tdep.c: Ditto.
265 * h8300-tdep.c: Ditto.
266 * remote-e7000.c: Ditto.
267 * remote-hms.c: Ditto.
268 * ser-e7kpc.c: Ditto.
269 * sh-stub.c: Ditto.
270 * sh-tdep.c: Ditto.
271 * sh-tdep.h: Ditto.
272 * sh3-rom.c: Ditto.
273 * sh64-tdep.c: Ditto.
274 * top.c: Ditto.
275 * wince.c: Ditto.
276 * config/d10v/d10v.mt: Ditto.
277 * config/sh/embed.mt: Ditto.
278 * config/sh/linux.mt: Ditto.
279 * config/sh/tm-linux.h: Ditto.
280 * config/sh/tm-sh.h: Ditto.
281 * config/sh/wince.mt: Ditto.
282
283 2003-10-09 Andrew Cagney <cagney@redhat.com>
284
285 * ppc-tdep.h (struct type): Declare opaque.
286 * x86-64-tdep.h (struct regcache): Declare opaque.
287 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
288 coding style.
289
290 2003-10-09 Andrew Cagney <cagney@redhat.com>
291
292 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
293 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
294 (SOFTWARE_SINGLE_STEP_P): Ditto.
295 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
296 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
297 (SOFTWARE_SINGLE_STEP_P): Ditto.
298 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
299 software_single_step to rs6000_software_single_step.
300
301 2003-10-09 Andrew Cagney <cagney@redhat.com>
302
303 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
304
305 2003-10-09 Michael Snyder <msnyder@redhat.com>
306
307 * frame.h: Fix typo in comment.
308 * dummy-frame.c: Fix typo in comment.
309 * d10v-tdep.c: Random whitespace/comment tweaks.
310
311 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
312
313 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
314 (sh_push_dummy_code): Delete function, it's only used for dummy calls
315 on stack.
316
317 Based on input by Stephen Clarke (stephen.clarke@superh.com):
318 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
319 in detail.
320
321 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
322
323 * remote-mips.c (mips_initialize): Remove unneeded call to
324 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
325
326 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
327
328 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
329 a memory pointer.
330
331 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
332
333 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
334 for any lwp we resume.
335 (running_callback): Add lwps that have pending status events
336 against them to be considered running.
337
338 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
339
340 * m32r-tdep.c : Include "dis-asm.h".
341 * Makefile.in (m32r-tdep.o): Update dependencies.
342
343 2003-10-06 J. Brobecker <brobecker@gnat.com>
344
345 * completer.h (get_gdb_completer_word_break_characters): Delete.
346 * completer.c: include language.h.
347 (gdb_completer_word_break_characters): Delete.
348 (get_gdb_completer_word_break_characters): Delete.
349 (location_completer): Use the word break characters of the current
350 language.
351 (complete_line): Likewise.
352 (line_completion_function): Likewise.
353 (skip_quoted_chars): Likewise.
354 * Makefile.in (completer.o): Add dependency on language.h.
355 * top.c (init_main): Set the readline word break characters
356 to GDB's default word break characters.
357
358 2003-10-06 J. Brobecker <brobecker@gnat.com>
359
360 * language.h (language_defn): new field, la_word_break_characters.
361 * language.c (unknown_language_defn): Set new field to
362 default_word_break_characters.
363 (auto_language_defn): Likewise.
364 (local_language_defn): Likewise.
365 * ada-lang.c (ada_language_defn): Likewise.
366 * c-lang.c (c_language_defn): Likewise.
367 (cplus_language_defn): Likewise.
368 (asm_language_defn): Likewise.
369 (minimal_language_defn): Likewise.
370 * f-lang.c (f_language_defn): Likewise.
371 * jv-lang.c (java_language_defn): Likewise.
372 * m2-lang.c (m2_language_defn): Likewise.
373 * objc-lang.c (objc_language_defn): Likewise.
374 * p-lang.c (pascal_language_defn): Likewise.
375 * scm-lang.c (scm_language_defn): Likewise.
376
377 2003-10-06 Andrew Cagney <cagney@redhat.com>
378
379 * ppc-sysv-tdep.c: Re-indent.
380
381 2003-10-06 J. Brobecker <brobecker@gnat.com>
382
383 * language.h (default_word_break_characters): Add prototype.
384 * language.c (default_word_break_characters): New function.
385
386 2003-10-06 Andreas Schwab <schwab@suse.de>
387
388 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
389 with %eax.
390
391 2003-10-06 Andrew Cagney <cagney@redhat.com>
392
393 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
394 "h8500-tdep.c".
395 (z8k-tdep.o): Delete custom build rule.
396
397 2003-10-06 Andrew Cagney <cagney@redhat.com>
398
399 * Makefile.in: Update all dependencies.
400
401 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
402 No longer list PA as as obsolete candidate. List m32r as
403 broken instead of obsolete.
404
405 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
406 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
407 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
408 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
409 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
410 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
411 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
412 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
413 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
414 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
415 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
416 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
417 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
418 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
419 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
420 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
421 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
422 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
423 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
424 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
425 * config/z8k/z8k.mt: Ditto.
426
427 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
428 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
429 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
430 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
431 sparclite were removed.
432 * configure.host, configure.tgt: Remove corresponding tuples.
433
434 * breakpoint.c, breakpoint.h: Remove obsolete code.
435 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
436 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
437 * stabsread.h, xcoffread.c: Ditto.
438
439 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
440 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
441 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
442 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
443
444 2003-10-06 David Lecomber <dsl@sources.redhat.com>
445
446 * f-valprint.c: Reformatting
447
448 2003-10-06 Mark Kettenis <kettenis@gnu.org>
449
450 * x86-64-tdep.c: Remove duplicate comment.
451
452 * x86-64-tdep.c (x86_64_store_return_value): Don't use
453 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
454 names for return values. This fixes a bug since we looked at %rbx
455 instead of %rdx.
456
457 2003-10-05 Mark Kettenis <kettenis@gnu.org>
458
459 * x86-64-tdep.c: Include "regset.h".
460
461 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
462 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
463 sizeof_fpregset.
464 * i386-tdep.c: Include "regset.h".
465 (i386_supply_gregset): New function.
466 (i386_supply_fpregset): New function.
467 (i386_gdbarch_init): Initialze register set-related members of
468 TDEP.
469 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
470 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
471
472 2003-10-03 Andrew Cagney <cagney@redhat.com>
473
474 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
475 set extract_return_value, store_return_value and
476 use_struct_convention to ppc64_sysv_abi_extract_return_value,
477 ppc64_sysv_abi_store_return_value and
478 ppc64_sysv_abi_use_struct_convention.
479 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
480 (ppc64_sysv_abi_store_return_value): Declare.
481 (ppc64_sysv_abi_use_struct_convention): Declare.
482 * ppc-sysv-tdep.c (enum return_value_convention): Define.
483 (ppc64_sysv_abi_extract_return_value): New function.
484 (ppc64_sysv_abi_store_return_value): New function.
485 (ppc64_sysv_abi_use_struct_convention): New function.
486 (ppc64_sysv_abi_return_value): New function.
487
488 2003-10-03 Andrew Cagney <cagney@redhat.com>
489
490 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
491 convert a descriptor to a function when it's in the ".opd"
492 section.
493
494 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
495
496 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
497 reg_size to keep GCC silent.
498
499 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
500
501 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
502 base for DW_EH_PE_textrel encodings.
503 (read_encoded_value): Add a DW_EH_PE_textrel case.
504 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
505 section.
506
507 2003-10-03 Mark Kettenis <kettenis@gnu.org>
508
509 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
510
511 2003-10-02 Andrew Cagney <cagney@redhat.com>
512
513 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
514 REGISTER_RAW_SIZE.
515 * gdbarch.h, gdbarch.c: Re-generate.
516 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
517 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
518 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
519 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
520 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
521 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
522 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
523 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
524 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
525 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
526 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
527 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
528 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
529 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
530 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
531 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
532
533 2003-10-02 Jim Blandy <jimb@redhat.com>
534
535 * dwarf2read.c (struct die_info): Doc fix.
536
537 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
538
539 * sh-tdep.c: Running thru gdb_indent.sh.
540
541 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
542
543 * sh-tdep.c (sh_justify_value_in_reg): New function.
544 (sh_stack_allocsize): Ditto.
545 (flt_argreg_array): New array used for floating point argument
546 passing.
547 (sh_init_flt_argreg): New function.
548 (sh_next_flt_argreg): Ditto.
549 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
550 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
551 Fix argument passing strategy.
552 (sh_push_dummy_call_nofpu): Ditto.
553
554 2003-10-01 Andrew Cagney <cagney@redhat.com>
555
556 * value.h (register_value_being_returned): Declare. Replace
557 "value_being_returned".
558 * infcall.c (call_function_by_hand): Use
559 register_value_being_returned.
560 * infcmd.c (print_return_value): Call
561 "register_value_being_returned", handle struct return locally.
562 * values.c (register_value_being_returned): New function. Replace
563 "value_being_returned".
564
565 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
566
567 * linux-proc.c (linux_do_registers): New function.
568 (linux_make_note_section): Use linux_do_registers in case of
569 single threaded inferior programs.
570
571 2003-10-01 Andrew Cagney <cagney@redhat.com>
572
573 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
574 use STRUCT_ADDR. When not using "struct return convention", pass
575 "0" to "value_being_returned". Add FIXMEs.
576 * infcmd.c (print_return_value): Pass an explicit 0/1 to
577 value_being_returned. Add comments.
578 * values.c (value_being_returned): Add fixme.
579 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
580 (hppa_value_returned_from_stack): Add FIXME.
581
582 2003-09-30 David Carlton <carlton@kealia.com>
583
584 * dwarf2read.c (struct die_info): Add 'parent' field; replace
585 'has_children' and 'next' by 'child' and 'sibling'.
586 (read_comp_unit): Rework algorithm, breaking body into
587 read_die_and_children and read_die_and_siblings.
588 (read_die_and_children, read_die_and_siblings): New.
589 (read_full_die): Add 'has_children' argument; set it instead of
590 the die's 'has_children' field. Minor formatting cleanup.
591 (free_die_list): Use die->child and die->sibling instead of
592 die->next.
593 (dump_die_list): Ditto.
594 (sibling_die): Use die->sibling.
595 (psymtab_to_symtab_1): Use die's 'child' field in place of its
596 'has_children' and 'next' fields.
597 (process_die, read_file_scope, read_func_scope)
598 (read_lexical_block_scope, read_structure_scope)
599 (read_enumeration, read_array_type, read_common_block)
600 (read_namespace, read_subroutine_type, dump_die): Ditto.
601
602 2003-09-30 Andrew Cagney <cagney@redhat.com>
603
604 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
605 to 224, not 220.
606
607 2003-09-30 Andrew Cagney <cagney@redhat.com>
608
609 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
610 REGISTER_VIRTUAL_SIZE.
611 * gdbarch.h, gdbarch.c: Regenerate.
612 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
613 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
614 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
615
616 2003-09-29 Andrew Cagney <cagney@redhat.com>
617
618 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
619 DEPRECATED_REGISTER_VIRTUAL_TYPE.
620 * gdbarch.h, gdbarch.c: Regenerate.
621 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
622 * sh64-tdep.c, sparc-tdep.c: Update.
623
624 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
625 * remote-vxmips.c (vx_read_register): Ditto.
626 * remote-vx68.c (vx_read_register): Ditto.
627 * gnu-nat.c (inf_validate_procs): Ditto.
628
629 2003-09-29 J. Brobecker <brobecker@gnat.com>
630
631 * infcall.c (call_function_by_hand): Fix build failure
632 introduced in the previous change to this file.
633
634 2003-09-29 Andrew Cagney <cagney@redhat.com>
635
636 * NEWS: Mention Objective-C.
637
638 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
639
640 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
641 test if the register has been saved on the stack.
642 (arm_scan_prologue_cache): When analysing the instruction
643 "str lr, [sp, #-4]", save the address where lr has been stored.
644
645 2003-09-28 Andrew Cagney <cagney@redhat.com>
646
647 * frame.c (frame_read_unsigned_register): Delete function.
648 * frame.h (frame_read_unsigned_register): Delete declaration.
649 * sparc-tdep.c (sparc_init_extra_frame_info): Use
650 get_frame_register_unsigned.
651 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
652 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
653 * d10v-tdep.c (d10v_print_registers_info): Ditto.
654
655 * frame.h (frame_read_register): Delete declaration.
656 * frame.c (frame_read_register): Delete function.
657 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
658 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
659 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
660 * mips-tdep.c (mips_register_to_value): Ditto.
661 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
662 * d10v-tdep.c (d10v_print_registers_info): Ditto.
663
664 * frame.c (frame_read_signed_register): Delete function.
665 (frame_read_unsigned_register): Update comments.
666 * frame.h (frame_read_signed_register): Delete declaration.
667 * h8300-tdep.c (h8300_print_register): Use
668 get_frame_register_signed.
669 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
670
671 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
672 Rename VALUE_RETURNED_FROM_STACK.
673 * infcmd.c (print_return_value): Update.
674 * infcall.c (call_function_by_hand): Update.
675
676 2003-09-28 Mark Kettenis <kettenis@gnu.org>
677
678 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
679 regcache argument and reverse the order of the other two
680 arguments. Remove local regcache variable. Determine
681 architecture from REGCACHE. Update comments.
682 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
683 reverse the order of the other two arguments. Remove local
684 regcache variable. Determine architecture from REGCACHE. Update
685 comments.
686 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
687 prototypes. Update comments.
688 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
689 comment.
690 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
691 Update.
692 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
693 * i386-interix-nat.c (supply_fpregset): Update.
694 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
695 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
696 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
697 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
698 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
699 Update.
700 * i386obsd-tdep.c (fetch_core_registers): Update.
701 * i386v4-nat.c (supply_fpregset): Update.
702 * x86-64-linux-nat.c (supply_fpregset): Update.
703 * x86-64-linux-tdep.c (fetch_core_registers): Update.
704
705 2003-09-27 Mark Kettenis <kettenis@gnu.org>
706
707 * i386-tdep.h: Put opaque declarations in alphabetical
708 order. Remove spurious whitespace.
709 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
710 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
711 * i386-tdep.c (MM0_REGNUM): Remove define.
712 (i386_mmx_regnum_p): Add gdbarch argument.
713 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
714 Rewrite using new macro definitions for FPU/SSE registers.
715 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
716 definitions from i387-tdep.h.
717 (i386_register_name): Update.
718 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
719 new macro definitions for FPU/SSE registers.
720 (i386_extract_return_value): Determine whether floating-point
721 registers are present by examining REGCACHE's architecture.
722 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
723 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
724 FPU/SSE registers.
725 (i386_register_type): Update.
726 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
727 definitions for FPU registers. Use REGCACHE's architecture to
728 determine the appropriate register numbers.
729 (i386_pseudo_register_read, i386_pseudo_register_write,
730 i386_register_reggroup_p): Update.
731 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
732 TDEP->mm0_regnum.
733 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
734 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
735 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
736 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
737 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
738 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
739 *' to `void *'.
740 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
741 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
742 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
743 definitions for FPU/SSE registers.
744 (FXSAVE_MXCSR_ADDR): New define.
745 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
746 TDEP->mm0_regnum.
747 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
748 (I387_ST0_REGNUM): Define.
749
750 * regcache.h (get_regcache_arch): New prototype.
751 * regcache.c (get_regcache_arch): New function.
752
753 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
754 whitespace.
755
756 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
757 Initialize using ARRAY_SIZE.
758
759 2003-09-27 Andrew Cagney <cagney@redhat.com>
760
761 * arch-utils.c (deprecated_init_frame_pc_default): Rename
762 "init_frame_pc_default".
763 * arch-utils.h (deprecated_init_frame_pc_default): Update.
764 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
765 * vax-tdep.c (vax_gdbarch_init): Update.
766 * v850-tdep.c (v850_gdbarch_init): Update.
767 * sh64-tdep.c (sh64_gdbarch_init): Update.
768 * s390-tdep.c (s390_gdbarch_init): Update.
769 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
770 * mcore-tdep.c (mcore_gdbarch_init): Update.
771 * h8300-tdep.c (h8300_gdbarch_init): Update.
772 * cris-tdep.c (cris_gdbarch_init): Update.
773 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
774
775 2003-09-26 Mark Kettenis <kettenis@gnu.org>
776
777 * regset.h: New file.
778 * Makefile.in (regset_h): Add.
779
780 2003-09-25 Andrew Cagney <cagney@redhat.com>
781
782 * frame.h (deprecated_frame_saved_regs): Rename
783 get_frame_saved_regs.
784 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
785 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
786 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
787 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
788 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
789
790 2003-09-25 Andrew Cagney <cagney@redhat.com>
791
792 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
793 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
794 and Java.
795 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
796 arm*-*-* do not use the new frame code.
797
798 2003-09-25 David Carlton <carlton@kealia.com>
799
800 * c-exp.y: Remove 'register' declarations.
801 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
802
803 2003-09-25 David Carlton <carlton@kealia.com>
804
805 * c-exp.y: Include cp-support.h. Add qualified_type.
806 (yylex): Delete nested type hack; add comments.
807 * cp-namespace.c (cp_lookup_nested_type): New function.
808 * cp-support.h: Declare cp_lookup_nested_type.
809 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
810 instead of value_struct_elt_for_reference.
811 * valops.c: Include cp-support.h.
812 (value_aggregate_elt): New function.
813 (value_namespace_elt): Ditto.
814 (value_struct_elt_for_reference): Make static.
815 * value.h: Delete declaration of value_struct_elt_for_reference;
816 add declaration for value_aggregate_elt.
817 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
818 (valops.o): Ditto.
819
820 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
821
822 * stack.c: Include "reggroups.h".
823 (frame_info): Only display registers in all_reggroup.
824 * Makefile.in (stack.o): Update dependencies.
825
826 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
827
828 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
829 "add ip, sp #n" in the prologue.
830 (arm_scan_prologue): Ditto.
831
832 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
833
834 * MAINTAINERS (write after approval): Add myself.
835
836 2003-09-25 Andreas Schwab <schwab@suse.de>
837
838 * m68k-tdep.c: Include "dwarf2-frame.h".
839 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
840 * Makefile.in (m68k-tdep.o): Update dependencies.
841
842 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
843
844 * sh-tdep.c (struct frame_extra_info): Remove.
845 (struct sh_frame_cache): New structure.
846 (GET_SOURCE_REG): New macro extracting source register of an opcode.
847 (GET_TARGET_REG): Ditto but target register.
848 (GET_PUSHED_REG): Remove.
849 (IS_MOV_ARG_TO_REG): New macro.
850 (IS_MOV_ARG_TO_IND_R14): New macro.
851 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
852 (IS_MOVW_PCREL_TO_REG): New macro.
853 (IS_MOVL_PCREL_TO_REG): New macro.
854 (IS_SUB_REG_FROM_SP): New macro.
855 (IS_ARG_MOV): Remove.
856 (IS_MOV_TO_R14): Remove.
857 (IS_RESTORE_FP): New macro.
858 (IS_RTS): New macro.
859 (IS_LDS): New macro.
860 (IS_MOV_FP_SP): New macro.
861 (IS_ADD_REG_TO_FP): New macro.
862 (IS_ADD_IMM_FP): New macro.
863 (sh_skip_prologue_hard_way): Remove.
864 (sh_saved_pc_after_call): Remove.
865 (sh_frame_chain): Remove.
866 (sh_find_callers_reg): Remove.
867 (sh_nofp_frame_init_saved_regs): Remove.
868 (sh_fp_frame_init_saved_regs): Remove.
869 (sh_init_extra_frame_info): Remove.
870 (sh_analyze_prologue): New function.
871 (sh_skip_prologue): Remove deprecated code. Rely on new function
872 sh_analyze_prologue when after_prologue fails.
873 (sh_frame_saved_pc): Remove.
874 (sh_alloc_frame_cache): New function.
875 (sh_frame_cache): Ditto.
876 (sh_frame_prev_register): Ditto.
877 (sh_frame_this_id): Ditto.
878 (sh_frame_unwind): New structure defining the heuristic frame
879 sniffer interface.
880 (sh_frame_sniffer): New function.
881 (sh_unwind_sp): Ditto.
882 (sh_unwind_pc): Ditto.
883 (sh_unwind_dummy_id): Ditto.
884 (sh_frame_base_address): Ditto.
885 (sh_frame_base): New structure defining new frame base code.
886 (sh_in_function_epilogue_p): New function.
887 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
888 code and to call all new code instead. Initialize dwarf2 and
889 heuristic frame sniffer.
890
891 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
892
893 * parser-defs.h (struct exp_descriptor): New definition, containing
894 language-specific info for printing, prefixifying, dumping, and
895 evaluating expressions.
896 (exp_descriptor_standard): Declare new variable.
897 (print_subexp): Make global and declare here (from expprint.c).
898 (dump_subexp): Ditto.
899 (dump_subexp_body_standard): Declare.
900 (operator_length_standard): Declare.
901 (op_name_standard): Declare.
902 (print_subexp): Declare.
903 (print_subexp_standard): Declare.
904
905 * language.h (struct language_defn): Add la_exp_desc field to hold
906 pointer to table for language-specific operators.
907 Remove evaluate_exp field, which is now in struct exp_descriptor.
908
909 * parse.c (operator_length): Move most code to new
910 operator_length_standard function. Use language-specific information.
911 (operator_length_standard): New function taking most code from
912 operator_length.
913 (exp_descriptor_standard): New constant.
914
915 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
916 and OP_EXTENDED_LAST.
917
918 * expprint.c (print_subexp): Use language-specific print_subexp.
919 Make global; remove static declaration.
920 Move most code to print_subexp_standard.
921 (print_subexp_standard): New function, containing code formerly in
922 print_subexp.
923 (op_name): Add expression to argument signature.
924 Use langauge-specific op_name.
925 Move most code to op_name_standard.
926 (op_name_standard): New function, containing code formerly in op_name.
927 (dump_subexp): Use new version of op_name function.
928 Use language-specific dump_subexp_body, and move most existing code to
929 dump_subexp_body_standard.
930 (dump_raw_expression): Use new op_name interface.
931 (dump_subexp_body): Move most code to dump_subexp_body_standard.
932 (dump_subexp_body_standard): New function, containing code formerly
933 in dump_subexp_body.
934
935 * language.c (unknown_language): Add default la_exp_desc field and
936 remove evaluate_exp field.
937 (auto_language): Ditto.
938 (local_language): Ditto.
939 * f-lang.c (f_language_defn): Ditto.
940 * c-lang.c (c_language_defn): Ditto.
941 (cplus_language_defn): Ditto.
942 (asm_language_defn): Ditto.
943 (minimal_language_defn): Ditto.
944 * p-lang.c (pascal_language_defn): Ditto.
945 * m2-lang.c (m2_language_defn): Ditto.
946 * objc-lang.c (objc_language_defn): Ditto.
947
948 * jv-lang.c (exp_descriptor_java): New variable, containing
949 Java-specific expression evaluator.
950 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
951 field.
952 * scm-lang.c (exp_descriptor_scm): New variable, containing
953 Scheme-specific expression evaluator.
954 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
955 field.
956 * objc-lang.c (print_object_command): Take evaluate_exp from the
957 la_exp_desc field.
958
959 * Makefile.in (eval.o): Add dependency on parser-defs.h.
960
961 * eval.c: Include parser-defs.h for the full declaration of
962 la_exp_desc's type.
963 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
964
965 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
966
967 * parser-defs.h (operator_length): Declare.
968
969 * parse.c (length_of_subexp): Use operator_length to get operator
970 lengths and arities for operators.
971 Move most code to new operator_length function.
972 (operator_length): New function absorbing most code from
973 length_of_subexp.
974 (prefixify_subexp): Remove large case and use operator_length instead.
975 (parse_exp_1): Use renamings:
976 dump_prefix_expression => dump_raw_expression and
977 dump_postfix_expression => dump_prefix_expression.
978
979 * expression.h (dump_prefix_expression): Rename to ...
980 (dump_raw_expression): New name.
981 (dump_postfix_expression): Rename to ...
982 (dump_prefix_expression): New name.
983
984 * expprint.c (dump_subexp): Make global. Add comment.
985 Move most existing code to dump_subexp_body.
986 (dump_subexp_body): New function.
987 (dump_prefix_expression): Rename to dump_raw_expression.
988 Remove attempt to print the expression via print_expression: it can't
989 work before the expression is prefixified.
990 (dump_raw_expression): Renamed from dump_prefix_expression.
991 (dump_postfix_expression): Rename to dump_prefix_expression, since
992 that's what it does.
993 Remove 'note' parameter, since this routine must be used on
994 prefixified expression.
995 (dump_prefix_expression): Renamed from dump_postfix_expression.
996
997 2003-09-22 Jim Blandy <jimb@redhat.com>
998
999 * dwarf2read.c (read_array_type): When building the type for an
1000 array of unspecified length, make sure to choose the upper bound
1001 so that the array's total length comes out to be zero --- that's
1002 how we represent such arrays.
1003
1004 2003-09-22 Michael Chastain <mec@shout.net>
1005
1006 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1007
1008 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
1009
1010 * top.c (quit_force): Fix indirect call to quit_target so
1011 a struct qt_args pointer is passed.
1012
1013 2003-09-22 Andrew Cagney <cagney@redhat.com>
1014
1015 * arch-utils.h (init_frame_pc_noop): Delete declaration.
1016 * arch-utils.c (init_frame_pc_noop): Delete function.
1017 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1018 "init_frame_pc".
1019 * mips-tdep.c (mips_gdbarch_init): Ditto.
1020 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1021 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1022 declaration.
1023 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1024 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1025 declaration.
1026 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1027
1028 2003-09-22 Anthony Green <green@redhat.com>
1029
1030 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1031 declaration.
1032
1033 2003-09-20 Andrew Cagney <cagney@redhat.com>
1034
1035 * breakpoint.c: Eliminate ARGSUSED.
1036 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1037 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1038 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1039 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1040 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1041 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1042 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1043 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1044 * wince.c, remote-vx.c: Ditto.
1045
1046 * cli/cli-script.c: Remove "register" attributes.
1047 * config/pa/tm-hppa.h: Ditto.
1048 * cli/cli-decode.c: Ditto.
1049 * cli/cli-cmds.c: Ditto.
1050
1051 2003-09-19 Andrew Cagney <cagney@redhat.com>
1052
1053 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1054 DEPRECATED_NPC_REGNUM.
1055 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1056
1057 2003-09-19 Christopher Faylor <cgf@redhat.com>
1058
1059 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1060
1061 2003-09-19 Jim Blandy <jimb@redhat.com>
1062
1063 * macrotab.c (macro_include): Use the correct comparison to find
1064 the appropriate place for this inclusion in the list.
1065
1066 2003-09-19 Andrew Cagney <cagney@redhat.com>
1067
1068 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1069 (DEPRECATED_HPUX_TEXT_END): Define.
1070 (deprecated_hpux_text_end): Declare.
1071 (struct target_ops): Declare opaque.
1072 * hppah-nat.c (text_end): Make static.
1073 (deprecated_hpux_text_end): New function.
1074 * exec.c (text_end): Delete global variable.
1075 (NEED_TEXT_START_END): Do not define.
1076 (exec_file_attach): Replace code computing "text_end" code with
1077 call to DEPRECATED_HPUX_TEXT_END.
1078
1079 2003-09-19 Andrew Cagney <cagney@redhat.com>
1080
1081 * utils.c (align_up, align_down): New functions.
1082 * defs.h (align_up, align_down): Declare.
1083 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1084 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1085 and "align_down".
1086 (round_up, round_down): Delete functions.
1087 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1088 "align_down".
1089 (ROUND_DOWN, ROUND_UP): Delete macros.
1090 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1091 * h8300-tdep.c: Replace "round_up" and "round_down" with
1092 "align_up" and "align_down".
1093 (round_up, round_down): Delete macros.
1094 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1095 "align_down".
1096 (ROUND_UP, ROUND_DOWN): Delete macros.
1097
1098 2003-09-18 J. Brobecker <brobecker@gnat.com>
1099
1100 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1101 hard-coded constant. Use the proper machine name instead.
1102
1103 2003-09-17 Andrew Cagney <cagney@redhat.com>
1104
1105 * sparc-tdep.c (legacy_register_name): Delete function.
1106 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1107 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1108 * infcmd.c (gdb_register_name): Delete variable.
1109 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1110 REGISTER_NAME and "tm.h".
1111 * gdbarch.h, gdbarch.c: Regenerate.
1112 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1113 REGISTER_NAMES in comments.
1114 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1115 * m68klinux-nat.c (regmap): Ditto.
1116
1117 2003-09-17 Jim Blandy <jimb@redhat.com>
1118
1119 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1120
1121 2003-09-17 Andrew Cagney <cagney@redhat.com>
1122
1123 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1124 (ppcnbsd_init_abi): Set "use_struct_convention" to
1125 "ppcnbsd_use_struct_convention".
1126
1127 2003-09-17 Mark Kettenis <kettenis@gnu.org>
1128
1129 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1130 * gdbarch.h, gdbarch.c: Regenerate.
1131 (stabs_argument_has_addr): New architecture method.
1132 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1133 * arch-utils.c: Include "buildsym.h".
1134 (default_stabs_argument_has_addr): New function.
1135 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1136 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1137
1138 2003-09-17 Andrew Cagney <cagney@redhat.com>
1139
1140 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1141 * gdbarch.h, gdbarch.c: Regenerate.
1142 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1143 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1144 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1145 * sparcnbsd-tdep.c: Update.
1146
1147 2003-09-17 Andrew Cagney <cagney@redhat.com>
1148
1149 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1150 * gdbarch.h, gdbarch.c: Regenerate.
1151 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1152 * d10v-tdep.c, frame.c: Update.
1153 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1154 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1155 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1156 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1157 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1158 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1159 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1160 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1161 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1162 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1163 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1164 * config/pa/nm-hppah.h: Update.
1165
1166 2003-09-16 Andrew Cagney <cagney@redhat.com>
1167
1168 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1169 "use_struct_convention" to "ppc_linux_use_struct_convention".
1170 (ppc_linux_use_struct_convention): New function.
1171 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1172 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1173 "rs6000_use_struct_convention".
1174 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1175 declaration.
1176 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1177 Delete function.
1178
1179 2003-09-16 Andrew Cagney <cagney@redhat.com>
1180
1181 * buildsym.c: Remove more occurances of "register".
1182 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1183 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1184 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1185 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1186 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1187 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1188 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1189 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1190
1191 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
1192
1193 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1194 numbers to enumeration values.
1195 * sh-tdep.c: Accomodate above change.
1196 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1197 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1198 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1199 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1200 (IS_FPUSH): Rename from IS_FMOV.
1201 (sh_extract_struct_value_address): Remove useless comment.
1202 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1203 instead of own local values.
1204 (sh_dump_tdep): Remove.
1205 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1206 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1207
1208 2003-09-15 Andrew Cagney <cagney@redhat.com>
1209
1210 * doublest.c (convert_floatformat_to_doublest): No longer need to
1211 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1212
1213 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
1214
1215 * values.c (unpack_double): Call floatformat_is_valid.
1216
1217 2003-09-15 Mark Kettenis <kettenis@gnu.org>
1218
1219 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1220 ps_strings into a long.
1221
1222 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1223 _initialize_am64fbsd_nat.
1224
1225 2003-09-15 Kevin Buettner <kevinb@redhat.com>
1226
1227 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1228 associated with DW_AT_ranges attribute is out of bounds.
1229
1230 2003-09-15 David Lecomber <dsl@sources.redhat.com>
1231
1232 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1233
1234 2003-09-14 Michael Chastain <mec@shout.net>
1235
1236 * config/m68k/nm-apollo68v.h: Delete.
1237 * config/m68k/xm-apollo68v.h: Delete.
1238
1239 2003-09-14 Andrew Cagney <cagney@redhat.com>
1240
1241 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1242 * dcache.c: Update copyrights and descriptions.
1243 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1244
1245 2003-09-14 Andrew Cagney <cagney@redhat.com>
1246
1247 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1248 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1249
1250 2003-09-14 Andrew Cagney <cagney@redhat.com>
1251
1252 * alpha-nat.c: Remove some occurances of "register".
1253 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1254 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1255 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1256 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1257 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1258 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1259 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1260 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1261 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1262 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1263 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1264 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1265 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1266 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1267 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1268 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1269 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1270 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1271 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1272 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1273 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1274 * values.c, vax-tdep.c, xcoffread.c: Ditto.
1275
1276 2003-09-13 Andrew Cagney <cagney@redhat.com>
1277
1278 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1279 * ppc-tdep.h (struct regcache): Declare opaque.
1280 * objfiles.h (struct objfile_data): Declare opaque.
1281 * cp-support.h (struct objfile): Declare opaque.
1282 * linux-nat.h (target_waitstatus): Declare opaque.
1283
1284 2003-09-14 Mark Kettenis <kettenis@gnu.org>
1285
1286 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1287 (stabs_argument_has_addr): New architecture method.
1288 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1289 * arch-utils.c: Include "buildsym.h".
1290 (default_stabs_argument_has_addr): New function.
1291 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1292 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1293
1294 * cris-tdep.c (cris_gdbarch_init): Set
1295 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1296 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1297 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1298 * mips-tdep.c (mips_gdbarch_init): Likewise.
1299 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1300 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1301
1302 2003-09-13 Andrew Cagney <cagney@redhat.com>
1303
1304 * values.c (using_struct_return): Delete "function" and "funcaddr"
1305 parameters.
1306 * value.h (using_struct_return): Update declaration.
1307 * infcmd.c (finish_command_continuation): Update.
1308 (finish_command): Update.
1309 * infcall.c (call_function_by_hand): Update.
1310 * eval.c (evaluate_subexp_standard): Update.
1311
1312 2003-09-13 Christopher Faylor <cgf@redhat.com>
1313
1314 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1315 SSE registers since gdb will not operate correctly without this.
1316 Restore include file ordering munged in previous change.
1317 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1318
1319 2003-09-13 Mark Kettenis <kettenis@gnu.org>
1320
1321 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1322 REG_STRUCT_HAS_ADDR.
1323 * gdbarch.c, gdbarch.h: Updated.
1324 * infcall.c (call_function_by_hand): Update.
1325 * stabsread.c (define_symbol): Updated.
1326
1327 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1328
1329 2003-09-12 Christopher Faylor <cgf@redhat.com>
1330
1331 * win32-nat.c: Reorganize so that defines used by target headers are
1332 actually defined by the system headers.
1333 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1334 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1335
1336 2003-09-12 Jim Blandy <jimb@redhat.com>
1337
1338 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1339 the file has no .data, .bss, or .rodata sections. Instead wait
1340 until we see a variable alleged to live in one of those sections.
1341
1342 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1343 .bss section, presume that any variables we find live in the
1344 .rodata section.
1345
1346 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1347 offsets for global and static variables.
1348
1349 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1350 symbol types are, by definition, in the .data section, so it is
1351 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1352 If there is no .data section, there should be no N_DATA or N_DATA
1353 | N_EXT symbols.
1354
1355 2003-09-12 Mark Kettenis <kettenis@gnu.org>
1356
1357 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1358 (amd64fbsd_sigcontext_addr): Rewrite.
1359 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1360 with correct values.
1361 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1362 (amd64fbsd_init_abi): Fix typo.
1363
1364 2003-09-12 Andrew Cagney <cagney@redhat.com>
1365
1366 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1367 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1368
1369 2003-09-12 Andrew Cagney <cagney@redhat.com>
1370
1371 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1372 "entry_file_highpc". Update comments.
1373 * defs.h (deprecated_inside_entry_file): Rename
1374 "inside_entry_file".
1375 * blockframe.c (deprecated_inside_entry_file): Rename
1376 "inside_entry_file".
1377 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1378 * vax-tdep.c (vax_frame_chain): Update.
1379 * sh64-tdep.c (sh64_frame_chain): Update.
1380 * sh-tdep.c (sh_frame_chain): Update.
1381 * rs6000-tdep.c (rs6000_frame_chain): Update.
1382 * ns32k-tdep.c (ns32k_frame_chain): Update.
1383 * mips-tdep.c (mips_frame_chain): Update.
1384 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1385 * m32r-tdep.c (m32r_frame_this_id): Update.
1386 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1387 * frv-tdep.c (frv_frame_this_id): Update.
1388 * d10v-tdep.c (d10v_frame_this_id): Update.
1389 * cris-tdep.c (cris_frame_chain): Update.
1390 * blockframe.c (legacy_frame_chain_valid): Update.
1391 * avr-tdep.c (avr_frame_this_id): Update.
1392 * arm-tdep.c (arm_prologue_this_id): Update.
1393 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1394 * objfiles.c (objfile_relocate): Update.
1395 * mipsread.c (mipscoff_symfile_read): Update.
1396 (mipscoff_symfile_read): Update.
1397 * mdebugread.c (parse_partial_symbols): Update.
1398 * dwarfread.c (read_file_scope): Update.
1399 * dwarf2read.c (read_file_scope): Update.
1400 * dbxread.c (read_dbx_symtab): Update.
1401 (read_dbx_symtab): Update.
1402 * coffread.c (complete_symtab): Update.
1403
1404 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1405
1406 * top.c (quit_target): New static helper function.
1407 (quit_force): Moved code to quit_target(). Call quit_target()
1408 via catch_errors() to catch errors during quit.
1409
1410 2003-09-11 David Carlton <carlton@kealia.com>
1411
1412 * buildsym.c (finish_block): Use allocate_block to allocate the
1413 block.
1414 * mdebugread.c (new_block): Add FIXME.
1415
1416 2003-09-11 David Carlton <carlton@kealia.com>
1417
1418 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1419 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1420 (recursive_dump_type): Ditto.
1421 * printcmd.c (print_formatted): Ditto.
1422 * typeprint.c (print_type_scalar): Ditto.
1423 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1424 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1425 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1426 maint_cplus_cmd_list.
1427 * cp-support.c: Make maint_cplus_cmd_list extern.
1428 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1429 command.h.
1430 (lookup_symbol_file): Look in possible namespace blocks when
1431 appropriate.
1432 (initialize_namespace_symtab): New.
1433 (get_possible_namespace_block, free_namespace_block)
1434 (check_possible_namespace_symbols)
1435 (check_possible_namespace_symbols_loop)
1436 (check_one_possible_namespace_symbol)
1437 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1438 (_initialize_cp_namespace): Ditto.
1439 * block.h: Declare allocate_block.
1440 * block.c (allocate_block): New.
1441 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1442 allocate_block.
1443 * symfile.h: Update declaration of add_psymbol_to_list.
1444 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1445 question.
1446 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1447 scan_partial_symbols_call.
1448 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1449 helper functions.
1450 (add_partial_symbol): If necessary, scan mangled names for names
1451 of namespaces.
1452 (add_partial_namespace): Add NAMESPACE argument; generate partial
1453 symbols associated to namespaces.
1454 (add_partial_enumeration): Add NAMESPACE argument.
1455 (new_symbol): Allow namespace syms.
1456 (read_namespace): Generate namespace syms.
1457 * objfiles.h: Add opaque declaration of struct symtab.
1458 (struct objfile): Add cp_namespace_symtab member.
1459 * objfiles.c (allocate_objfile): Set
1460 objfile->cp_namespace_symtab.
1461 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1462 dictionary_h, command_h.
1463
1464 2003-09-11 Andrew Cagney <cagney@redhat.com>
1465
1466 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1467 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1468 near the function's end.
1469 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1470 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1471 regcache_raw_write_signed to set SP_REGNUM.
1472
1473 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
1474
1475 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1476 orig_addrs is set up properly.
1477
1478 2003-09-11 Andrew Cagney <cagney@redhat.com>
1479
1480 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1481 * gdbarch.h, gdbarch.c: Re-generate.
1482 * infcall.c (call_function_by_hand): Update.
1483 * hppa-tdep.c (hppa_push_arguments): Update.
1484 * ada-lang.c (place_on_stack): Update.
1485 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1486 * sparc-tdep.c (sparc_gdbarch_init): Update.
1487 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1488 * hppa-tdep.c (hppa_gdbarch_init): Update.
1489 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1490 stack_align.
1491
1492 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
1493
1494 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1495 register do need a frame.
1496
1497 2003-09-11 Andrew Cagney <cagney@redhat.com>
1498
1499 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1500 buildable since GDB 5.0.
1501 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1502 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1503 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1504 * irix4-nat.c: Delete file.
1505 * config/mips/irix4.mh: Delete file.
1506 * config/mips/irix3.mh: Delete file.
1507 * config/mips/irix3.mt: Delete file.
1508 * config/mips/tm-irix3.h: Delete file.
1509 * config/mips/nm-irix3.h: Delete file.
1510 * config/mips/xm-irix3.h: Delete file.
1511 * config/mips/nm-irix4.h: Delete file.
1512 * config/mips/xm-irix4.h: Delete file.
1513 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1514
1515 2003-09-10 J. Brobecker <brobecker@gnat.com>
1516
1517 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1518 * Makefile.in (hppa-tdep.o): Update dependencies.
1519
1520 2003-09-10 James E Wilson <wilson@specifixinc.com>
1521
1522 * MAINTAINERS: Change my e-mail address. Move to paper trail
1523 section.
1524
1525 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1526
1527 * MAINTAINERS (frv): New ISA entry.
1528
1529 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1530
1531 * frv-tdep.c (dis-asm.h): Include.
1532 * Makefile.in (frv-tdep.o): Update dependencies.
1533
1534 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1535
1536 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1537 Fix typo for high range of floating registers.
1538
1539 2003-09-09 David Carlton <carlton@kealia.com>
1540
1541 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1542 highpc initialization here out of scan_partial_symbols.
1543 (scan_partial_symbols): Restructure into a recursive version,
1544 calling add_partial_namespace and add_partial_enumeration when
1545 appropriate.
1546 (add_partial_namespace): New.
1547 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1548
1549 2003-09-09 Andrew Cagney <cagney@redhat.com>
1550
1551 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1552 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1553 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1554 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1555
1556 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1557 (rs6000_push_dummy_call): Set the "TOC" register.
1558
1559 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1560 methods "max_register_raw_size", "max_register_virtual_size" or
1561 "register_virtual_size".
1562
1563 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1564
1565 * MAINTAINERS: Update my e-mail address.
1566
1567 2003-09-09 Andrew Cagney <cagney@redhat.com>
1568
1569 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1570 (rs6000_push_dummy_call): Store the struct return address.
1571 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1572
1573 2003-09-09 Andrew Cagney <cagney@redhat.com>
1574
1575 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1576 "ppc_sysv_abi_push_arguments".
1577 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1578 "ppc_sysv_abi_push_arguments".
1579 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1580 instead of "push_arguments".
1581 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1582
1583 2003-09-09 Andrew Cagney <cagney@redhat.com>
1584
1585 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1586 instead of CALL_DUMMY_ADDRESS.
1587
1588 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1589
1590 * p-lang.c: Eliminate "register".
1591 * c-lang.c: Ditto.
1592 * expprint.c: Ditto.
1593 * f-lang.c: Ditto.
1594 * jv-lang.c: Ditto.
1595 * language.c: Ditto.
1596 * m2-lang.c: Ditto.
1597 * parse.c: Ditto.
1598 * scm-lang.c: Ditto.
1599 * objc-lang.c: Ditto.
1600
1601 2003-09-09 Nick Clifton <nickc@redhat.com>
1602
1603 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1604
1605 2003-09-04 Andrew Cagney <cagney@redhat.com>
1606
1607 * avr-tdep.c: Include "dis-asm.h".
1608 * cris-tdep.c: Include "dis-asm.h".
1609 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1610 instead of corresponding typedef.
1611 * h8300-tdep.c: Include "dis-asm.h".
1612 * ia64-tdep.c: Include "dis-asm.h".
1613 * i386-tdep.c: Include "dis-asm.h".
1614 (i386_print_insn): Use "struct disassemble_info" instead of
1615 corresponding typedef.
1616 * m68k-tdep.c: Include "dis-asm.h".
1617 * mcore-tdep.c: Include "dis-asm.h".
1618 * mips-tdep.c: Include "dis-asm.h".
1619 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1620 instead of corresponding typedef.
1621 * ns32k-tdep.c: Include "dis-asm.h".
1622 * s390-tdep.c: Include "dis-asm.h".
1623 * sparc-tdep.c: Include "dis-asm.h".
1624 * vax-tdep.c: Include "dis-asm.h".
1625 * v850-tdep.c: Include "dis-asm.h".
1626 * mn10300-tdep.c: Include "dis-asm.h".
1627 * rs6000-tdep.c: Include "dis-asm.h".
1628 * xstormy16-tdep.c: Include "dis-asm.h".
1629 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1630 print_insn_xstormy16.
1631 * Makefile.in (v850-tdep.o): Update dependencies.
1632 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1633 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1634 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1635 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1636 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1637 (gdbarch_h): Remove $(dis_asm_h).
1638 * disasm.c: Include "dis-asm.h".
1639 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1640 corresponding typedef.
1641 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1642 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1643 * gdbarch.sh: Do not include "dis-asm.h".
1644 (struct disassemble_info): Declare opaque.
1645 (TARGET_PRINT_INSN): Update declaration.
1646 * gdbarch.h, gdbarch.c: Re-generate.
1647
1648 2003-09-08 Andrew Cagney <cagney@redhat.com>
1649
1650 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1651 CALL_DUMMY_ADDRESS, change to a predicate.
1652 * gdbarch.h, gdbarch.c: Re-generate.
1653 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1654 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1655 * infcall.c (call_function_by_hand): Ditto.
1656 * sparc-tdep.c (sparc_push_return_address): Ditto.
1657 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1658 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1659 CALL_DUMMY_ADDRESS with entry_point_address.
1660 * v850-tdep.c (v850_push_return_address): Ditto.
1661 * s390-tdep.c (s390_push_return_address): Ditto.
1662 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1663 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1664 * mcore-tdep.c (mcore_push_return_address): Ditto.
1665 * cris-tdep.c (cris_push_return_address): Ditto.
1666 * arm-tdep.c (arm_push_return_address): Ditto.
1667
1668 2003-09-08 Andrew Cagney <cagney@redhat.com>
1669
1670 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1671 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1672 and REG_UNMODIFIED to REG_SAME_VALUE.
1673 (execute_cfa_program): Update.
1674 (dwarf2_frame_cache): Update. Initialize table to
1675 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1676 location.
1677 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1678
1679 2003-09-08 Andrew Cagney <cagney@redhat.com>
1680
1681 * gnu-nat.c: Remove "inline" function attribute.
1682 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1683
1684 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1685
1686 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1687 target.
1688
1689 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1690
1691 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1692 (frame_extra_info): Rename this struct to frv_unwind_cache.
1693 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1694 Add fields ``prev_sp'' and ``base''.
1695 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1696 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1697 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1698 Delete.
1699 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1700 Revise all callers. Fill in the unwind cache argument and make
1701 other adjustments to account for new frame mechanisms.
1702 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1703 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1704 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1705 (frv_frame_unwind, frv_frame_base): New structs.
1706 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1707 additional arguments expected by this method and adjust function
1708 body accordingly.
1709 (frv_gdbarch_init): Remove calls to the following functions:
1710 set_gdbarch_deprecated_init_frame_pc(),
1711 set_gdbarch_deprecated_saved_pc_after_call(),
1712 set_gdbarch_deprecated_frame_chain(),
1713 set_gdbarch_deprecated_frame_saved_pc(),
1714 set_gdbarch_deprecated_frame_init_saved_regs(),
1715 set_gdbarch_deprecated_push_arguments(),
1716 set_gdbarch_deprecated_push_return_address(),
1717 set_gdbarch_deprecated_pop_frame(),
1718 set_gdbarch_deprecated_call_dummy_words(),
1719 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1720 set_gdbarch_deprecated_init_extra_frame_info(),
1721 set_gdbarch_deprecated_dummy_write_sp(), and
1722 set_gdbarch_deprecated_pc_in_call_dummy().
1723 Add calls to the following functions:
1724 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1725 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1726 frame_base_set_default().
1727 * Makefile.in (frv-tdep.o): Update dependencies.
1728
1729 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1730
1731 * dwarf2-frame.c (read_encoded_value): Add support for
1732 DW_EH_PE_aligned encoding.
1733
1734 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1735
1736 * infrun.c (normal_stop): Don't print a message if the inferior
1737 has exited.
1738
1739 2003-09-08 Jim Blandy <jimb@redhat.com>
1740
1741 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1742 * dbxread.c: #include "gdb_assert.h".
1743 (read_dbx_symtab): If the objfile has no .data section, use the
1744 section index for the .bss section instead.
1745
1746 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1747
1748 * frame.c (deprecated_safe_get_selected_frame): New function.
1749 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1750 * findvar.c (read_var_value): Call it.
1751
1752 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1753
1754 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1755 (sh64-tdep.o): Add dependencies.
1756 * configure.tgt: Add FIXME to sh-*-linux*.
1757 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1758 (sh_gdbarch_init): Always set correct sh_show_regs function
1759 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1760 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1761 * sh64-tdep.c: New file, containing all sh64 related code from
1762 sh-tdep.c.
1763 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1764 * config/sh/linux.mt (TDEPFILES): Ditto.
1765 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1766 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1767 * config/sh/wince.mt (TDEPFILES): Ditto.
1768
1769 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1770
1771 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1772 (stop_wait_callback): Handle !lp->signalled also.
1773 (lin_lwp_has_pending, flush_callback): New functions.
1774 (lin_lwp_wait): Call flush_callback.
1775 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1776 (linux_proc_pending_signals): New function.
1777 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1778
1779 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1780
1781 From Nick Kelsey <nickk@ubicom.com>:
1782 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1783 when the stop PC is at the beginning of a function also.
1784
1785 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1786
1787 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1788 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1789
1790 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1791
1792 * sol-thread.c: Include "gdb_string.h".
1793
1794 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1795
1796 * gcore.c: Reorder include files in alphabetical order. Include
1797 "gdb_assert.h". Various coding style fixes.
1798 (derive_stack_segment, derive_heap_segment): Replace check for
1799 non-null BOTTOM and TOP with gdb_assert.
1800 (derive_heap_segment): Replace check for successful creation of
1801 ZERO with gdb_assert.
1802 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1803
1804 2003-09-04 Andrew Cagney <cagney@redhat.com>
1805
1806 * thread-db.c (verbose_dlsym): New function.
1807 (thread_db_load): Use verbose_dlsym
1808 (thread_db_new_objfile): Print that libthread_db was loaded, and
1809 that thread debugging was enabled.
1810
1811 2003-09-04 Andrew Cagney <cagney@redhat.com>
1812
1813 * configure.tgt: Add "mips64*-*-*" target. Delete
1814 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1815 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1816 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1817 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1818 mips*-sony-*, and mips64*-*-elf* targets.
1819 * config/mips/embedl.mt: Delete file.
1820 * config/mips/embedl64.mt: Delete file.
1821 * config/mips/mips.mt: Delete file.
1822 * config/mips/mips64.mt: Delete file.
1823 * config/mips/tm-embed.h: Delete file.
1824 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1825 * config/mips/embed64.mt: Delete out-of-date comment.
1826
1827 2003-09-04 Andrew Cagney <cagney@redhat.com>
1828
1829 * hppa-tdep.c (hppa_gdbarch_init): Set
1830 "have_nonsteppable_watchpoint".
1831 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1832 * mips-tdep.c (mips_dump_tdep): Do not print
1833 HAVE_NONSTEPPABLE_WATCHPOINT.
1834 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1835 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1836 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1837 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1838
1839 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1840
1841 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1842 unused code. Add comment.
1843
1844 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1845
1846 * breakpoint.c (watchpoint_check): Check for pc being in an
1847 epilogue if watchpoint frame couldn't be found.
1848
1849 2003-09-04 Andrew Cagney <cagney@redhat.com>
1850
1851 * Makefile.in: Re-generate all dependencies.
1852
1853 2003-09-03 Andrew Cagney <cagney@redhat.com>
1854
1855 * arch-utils.h (legacy_print_insn): Delete declaration.
1856 * arch-utils.c (legacy_print_insn): Delete function.
1857 * disasm.c (deprecated_tm_print_insn_info): Delete.
1858 (_initialize_disasm): Delete function, contained code initializing
1859 deprecated_tm_print_insn_info.
1860 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1861 (deprecated_tm_print_insn_info): Delete.
1862 (TARGET_PRINT_INSN): Do not provide a default.
1863 * gdbarch.h, gdbarch.c: Re-generate.
1864
1865 2003-09-03 Andrew Cagney <cagney@redhat.com>
1866
1867 * disasm.c (fprintf_disasm): New function.
1868 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1869 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1870 reverts 2003-08-14 change.
1871 (_initialize_disasm): Call "init_disassemble_info", instead of
1872 INIT_DISASSEMBLE_INFO_NO_ARCH.
1873
1874 2003-09-03 Michael Snyder <msnyder@redhat.com>
1875
1876 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1877
1878 2003-09-03 Andrew Cagney <cagney@redhat.com>
1879
1880 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1881 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1882 * symfile.c (syms_from_objfile): Update.
1883 (reread_symbols): `Update
1884 * exec.c (exec_file_attach): Update.
1885 (exec_file_attach): Update.
1886 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1887 2003-08-29 change.
1888 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1889
1890 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1891
1892 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1893 trad-frame.h.
1894 (arm_get_cache): Delete macro.
1895 (struct arm_prologue_cache): Update comments. Make saved_regs into
1896 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1897 to prev_sp.
1898 (thumb_scan_prologue): Update for cache changes. Don't call
1899 DEPRECATED_PC_IN_CALL_DUMMY.
1900 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1901 argument and use it in desperation search for our prologue. Do not
1902 search past the specified PC.
1903 (arm_make_prologue_cache): Simplify.
1904
1905 (arm_prologue_this_id, arm_prologue_prev_register)
1906 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1907 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1908 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1909 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1910 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1911
1912 (arm_frame_chain_valid, arm_find_callers_reg)
1913 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1914 (arm_pop_frame): Delete obsolete methods.
1915 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1916
1917 (arm_gdbarch_init): Update for new frame methods. Register prologue
1918 and sigtramp unwinders. Set the default frame base method.
1919
1920 * Makefile.in (arm-tdep.o): Update dependencies.
1921 * varobj.c (find_frame_addr_in_frame_chain): Call
1922 get_frame_base_address.
1923 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1924
1925 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1926
1927 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1928 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1929 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1930 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1931 Take NEXT_FRAME and CACHE arguments. Call
1932 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1933 Set unwound_pc in CACHE instead of modifying the frame argument.
1934 Don't bother checking the frame type when looking for sigtramp
1935 frames.
1936 (arm_make_prologue_cache, arm_frame_chain)
1937 (arm_init_extra_frame_info): New functions.
1938
1939 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1940
1941 * arm-tdep.c (arm_get_cache): Define.
1942 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1943 unwound_sp, unwound_pc, and saved_regs.
1944 (thumb_scan_prologue): Take a cache instead of the frame.
1945 (arm_scan_prologue): Likewise.
1946 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1947 instead of a temporary frame.
1948 (arm_init_extra_frame_info): Allocate and use a cache.
1949 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1950
1951 2003-09-03 Andrew Cagney <cagney@redhat.com>
1952
1953 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1954 * config/mips/wince.mt (TM_CLIBS): Ditto.
1955 * config/sh/wince.mt (TM_CLIBS): Ditto.
1956 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1957 * config/sparc/sp64.mt (CC): Delete.
1958
1959 2003-09-03 Andrew Cagney <cagney@redhat.com>
1960
1961 * defs.h: Do not include "arch-utils.h".
1962 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1963 GDB_MULTI_ARCH_PURE.
1964 * configure.in (GDB_MULTI_ARCH): Do not define.
1965 * configure, config.in: Regenerate.
1966 * configure.tgt: Do not set variable "gdb_multi_arch".
1967 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1968 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1969 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1970 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1971 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1972 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1973 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1974 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1975 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1976 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1977 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1978 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1979 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1980 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1981 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1982 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1983 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1984 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1985
1986 2003-08-30 Michael Chastain <mec@shout.net>
1987
1988 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1989 * config/m68k/nm-hp300hpux.h: Delete.
1990 * config/m68k/tm-hp300hpux.h: Delete.
1991 * config/m68k/xm-hp300hpux.h: Delete.
1992 * config/m68k/xm-hp300bsd.h: Delete.
1993 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1994 tm-hp300hpux.h, xm-hp300hpux.h.
1995 * somsolib.c: Remove comment about hp300 shared libraries.
1996
1997 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1998
1999 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2000 Only define PTRACE_GET_THREAD_AREA is not already defined.
2001 Various style fixes in code and comments and some additional
2002 spelling fixes in comments. Move after functions dealing with
2003 debug registers.
2004 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2005 Fix coding-style.
2006
2007 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2008 frame_unwind_register_unsigned instead of
2009 frame_unwind_unsigned_register.
2010
2011 2003-08-30 Mark Kettenis <kettenis@gnu.org>
2012
2013 * configure.in: Search for gethostbyname in libnsl.
2014 * configure: Regenerated.
2015
2016 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2017
2018 * configure.in: Remove redundant AC_MSG_RESULT in check for
2019 uintptr_t in stdint.h.
2020 * configure: Regenerated.
2021
2022 * amd64-nat.h (struct regcache): Add opaque declaration.
2023
2024 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2025 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2026 Change "register array" to "register cache" in comments.
2027 (x86_64_linux_gregset64_reg_offset): New variable.
2028 (GETREGS_SUPPLIES): Remove macro.
2029 (supply_gregset): Call amd64_supply_native_gregset instead of
2030 x86_64_linux_supply_gregset.
2031 (fill_gregset): Rename `regno' to `regnum'. Call
2032 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2033 (store_regs): Rename `regno' to `regnum'.
2034 (store_fpregs): Rename `regno' to `regnum'.
2035 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2036 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2037 Reorganize function a bit.
2038 (store_inferior_registers): Rename `regno' to `regnum'. Use
2039 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2040 Reorganize function a bit.
2041 (_initialize_x86_64_linux_nat): New function.
2042 * config/i386/x86-64linux.mh.
2043
2044 2003-08-29 Andrew Cagney <cagney@redhat.com>
2045
2046 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2047 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2048 (target_remove_watchpoint): Delete macro.
2049 (target_insert_watchpoint): Delete macro.
2050 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2051 (remote_mips_stopped_by_watchpoint): Delete declaration.
2052 (remote_mips_remove_watchpoint): Delete declaration.
2053 (remote_mips_set_watchpoint): Delete declaration.
2054 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2055 * remote-mips.c (_initialize_remote_mips): Set
2056 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2057 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2058 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2059 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2060 (mips_stopped_by_watchpoint): Rename
2061 remote_mips_stopped_by_watchpoint.
2062 (mips_can_hardware_watchpoint): Rename
2063 remote_mips_can_use_hardware_watchpoint, update function
2064 signature.
2065
2066 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2067
2068 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2069 USER_DS. We haven't given them a register number yet.
2070
2071 * amd64-nat.h: New file.
2072 * amd64-nat.c: New file.
2073 * amd64fbsd-nat.c: Include "amd64-nat.h".
2074 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2075 (amd64fbsd32_r_reg_offset): New variable.
2076 (supply_gregset): Simply call amd64_supply_native_gregset.
2077 (fill_gregset): Rename `regno' to `regnum'. Simply call
2078 amd64_collect_native_gregset.
2079 (fill_fpregset): Rename `regno' to `regnum'.
2080 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2081 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2082 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2083 `fpregset_t'. Call amd64_supply_native_gregset instead of
2084 supply_gregset. Call x86_64_supply_fxsave instead of
2085 supply_fpregset.
2086 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2087 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2088 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2089 `fpregset_t'. Call amd64_collect_native_gregset instead of
2090 fill_gregset. Call x86_64_collect_fxsave instead of
2091 fill_fpregset.
2092 (_initialize_am64fbsd_nat): Initialize
2093 amd64_native_gregset32_reg_offset and
2094 amd64_native_gregset64_reg_offset.
2095 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2096
2097 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2098 null pointer. Fix typo in comment.
2099
2100 * regcache.c (supply_register): Reimplement to call
2101 regcache_raw_supply.
2102 (regcache_collect): Reimplement by calling regcache_raw_collect.
2103
2104 2003-08-28 Mark Kettenis <kettenis@gnu.org>
2105
2106 * regcache.c (register_buffer): Consitify first argument.
2107 (regcache_raw_supply, regcache_raw_collect): New
2108 functions.
2109
2110 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2111
2112 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2113 by Nathan J. Williams.
2114
2115 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2116
2117 * lin-lwp.c (wait_lwp): New function, copied from
2118 stop_wait_callback. Clean up.
2119 (stop_wait_callback): Use wait_lwp.
2120
2121 2003-08-28 Andrew Cagney <cagney@redhat.com>
2122
2123 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2124 flavour and disassembler options.
2125 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2126 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2127 deprecated_tm_print_insn_info.
2128
2129 2003-08-27 Andrew Cagney <cagney@redhat.com>
2130
2131 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2132 Use target_read_memory.
2133 (s390_get_frame_info): Update. Do not reference
2134 deprecated_tm_print_insn_info.
2135 (s390_check_function_end, s390_is_sigreturn): Ditto.
2136
2137 2003-08-27 Andrew Cagney <cagney@redhat.com>
2138
2139 * Makefile.in (cris-tdep.o): Update dependencies.
2140 * cris-tdep.c: Include "gdb_assert.h".
2141 (cris_gdbarch_init): Set print_insn.
2142 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2143 (cris_delayed_get_disassembler): Simplify, directly call the
2144 disassembler returned by cris_get_disassembler.
2145 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2146 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2147 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2148 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2149 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2150 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2151 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2152 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2153 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2154 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2155 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2156 (gdb_print_insn_sparc): Delete function.
2157 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2158 deprecated_tm_print_insn_info.
2159 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2160 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2161 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2162 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2163 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2164 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2165 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2166 (s390_gdbarch_init): Set print_insn.
2167
2168 2003-08-27 Andrew Cagney <cagney@redhat.com>
2169
2170 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2171 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2172 * infcall.c (call_function_by_hand): Convert the entry point
2173 address into a code address.
2174
2175 2003-08-27 Andrew Cagney <cagney@redhat.com>
2176
2177 * dsrec.c: Include "gdb_string.h".
2178 * Makefile.in (dsrec.o): Update dependencies.
2179
2180 2003-08-27 Michael Chastain <mec@shout.net>
2181
2182 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2183
2184 2003-08-27 Andrew Cagney <cagney@redhat.com>
2185
2186 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2187 (alpha_osf1_init_abi): Do not set call_dummy_address.
2188
2189 2003-08-27 David Carlton <carlton@kealia.com>
2190
2191 From Randolph Chung <tausq@debian.org>:
2192 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2193 compiles with -Wformat-nonliteral -Werror.
2194
2195 2003-08-26 Jim Blandy <jimb@redhat.com>
2196
2197 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2198 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2199 bfd_lookup_symbol, since we only want symbols in code sections.
2200 (look_for_base): Pass zero as the SECT_FLAGS argument to
2201 bfd_lookup_symbol, since we're not concerned about which section
2202 the symbol is in.
2203
2204 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2205
2206 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
2207 we are frameless or the return address register is already known.
2208
2209 2003-08-26 Andrew Cagney <cagney@redhat.com>
2210
2211 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2212 in size. Add comments.
2213
2214 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2215
2216 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
2217 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
2218
2219 2003-08-26 Jason Merrill <jason@redhat.com>
2220
2221 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2222 case out of #ifdef MIPS block.
2223
2224 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
2225
2226 PR java/1322
2227 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2228 available before calling SECT_OFF_TEXT.
2229 * PROBLEMS: Remove description of java/1322.
2230
2231 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2232
2233 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
2234 bof, and nat0-nat127 as pseudo-registers.
2235 (ia64_frame_cache): New struct used to cache frame info.
2236 (ia64_register_reggroup_p): New routine used to override default
2237 register grouping so registers without names are still saved and
2238 restored.
2239 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
2240 pseudo values.
2241 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2242 (ia64_pseudo_register_write): New routine to write pseudo-registers.
2243 (ia64_alloc_frame_cache): New routine to create a new
2244 ia64_frame_cache.
2245 (examine_prologue): Change prototype to add next_frame pointer.
2246 Assume frameless until otherwise proven. Verify that the cfm for
2247 current frame matches the cfm that should occur for the prologues
2248 alloc insn and if equal, mark as not frameless. At end of routine,
2249 if not frameless, calculate registers for the previous frame and store
2250 in the cache, if a cache is provided.
2251 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2252 and pass 0 for next_frame.
2253 (ia64_store_return_value): Change to use convert_typed_floating()
2254 instead of calling ia64_convert_to_raw().
2255 (ia64_extract_return_value): Change to use convert_typed_floating()
2256 instead of calling ia64_convert_to_virtual().
2257 (ia64_frame_cache): New routine to support new frame model.
2258 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2259 (ia64_frame_sniffer): Ditto.
2260 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2261 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2262 (ia64_sigtramp_frame_prev_register): Ditto.
2263 (ia64_sigtramp_frame_sniffer): Ditto.
2264 (ia64_frame_base_address): Ditto.
2265 (ia64_extract_struct_value_address): Change to issue error message.
2266 (ia64_frame_align): New routine to align sp.
2267 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
2268 (ia64_push_arguments): Removed. Logic moved to
2269 ia64_push_dummy_call().
2270 (ia64_push_return_address): Ditto.
2271 (ia64_unwind_dummy_id): New function.
2272 (ia64_unwind_pc): Ditto.
2273 (ia64_convert_register_p): Ditto.
2274 (ia64_register_to_value): Ditto.
2275 (ia64_value_to_register): Ditto.
2276 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2277 (ia64_register_byte, ia64_register_raw_size): Ditto.
2278 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2279 (ia64_saved_pc_after_call): Ditto.
2280 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2281 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2282 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2283 (ia64_register_convert_to_raw): Ditto.
2284 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2285 (ia64_init_extra_frame_info): Ditto.
2286 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2287 (ia64_gdbarch_init): Remove registering of deprecated functions that
2288 are no longer used. Add registration of new gdbarch functions.
2289 Remove registering deprecated_write_sp. Replace
2290 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2291 Delete set_gdbarch_deprecated_register_convertible(),
2292 set_gdbarch_deprecated_register_convert_to_virtual(), and
2293 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2294 set_gdbarch_deprecated_register_size(),
2295 set_gdbarch_deprecated_register_bytes(),
2296 set_gdbarch_pcregnum(),
2297 set_gdbarch_deprecated_register_byte(),
2298 set_gdbarch_deprecated_register_raw_size(),
2299 set_gdbarch_deprecated_max_register_raw_size(),
2300 set_gdbarch_deprecated_register_virtual_size(),
2301 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2302 Replace set_gdbarch_deprecated_extract_return_value() with
2303 set_gdbarch_extract_return_value(). Remove calls to:
2304 set_gdbarch_deprecated_saved_pc_after_call();
2305 set_gdbarch_deprecated_frame_chain(),
2306 set_gdbarch_deprecated_frame_saved_pc(),
2307 set_gdbarch_deprecated_frame_init_saved_regs(),
2308 set_gdbarch_deprecated_get_saved_register(),
2309 set_gdbarch_deprecated_call_dummy_words(),
2310 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2311 set_gdbarch_deprecated_init_extra_frame_info(),
2312 set_gdbarch_deprecated_frame_args_address(),
2313 set_gdbarch_deprecated_frame_locals_address(),
2314 and set_gdbarch_deprecated_dummy_write_sp().
2315 Add set_gdbarch_convert_register_p(),
2316 set_gdbarch_register_to_value(),
2317 set_gdbarch_value_to_register(),
2318 set_gdbarch_push_dummy_call(),
2319 set_gdbarch_frame_align(),
2320 set_gdbarch_unwind_dummy_id(),
2321 set_gdbarch_unwind_pc(),
2322 frame_unwind_append_sniffer(),
2323 frame_unwind_append_sniffer(),
2324 and frame_base_set_default().
2325
2326 2003-08-25 Chris Demetriou <cgd@broadcom.com>
2327
2328 * configure.tgt: Document need for special "mipsisa64" handling.
2329 (mipsisa64*-*-linux64): Handle as target linux64.
2330 (mipsisa64*-*-*): Handle as target embed64.
2331
2332 2003-08-18 Michael Chastain <mec@shout.net>
2333
2334 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2335 objfile bug.
2336
2337 2003-08-24 Mark Kettenis <kettenis@gnu.org>
2338
2339 * i387-tdep.h: Update copyright date.
2340 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2341
2342 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2343 CFLAGS games to reflect reality.
2344
2345 2003-08-24 Andrew Cagney <cagney@redhat.com>
2346
2347 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2348 GDB_MULTI_ARCH is always non-zero.
2349 * osabi.c (_initialize_gdb_osabi): Ditto.
2350 (gdbarch_init_osabi): Ditto.
2351 * sparc-tdep.c: Ditto for #if code.
2352
2353 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2354
2355 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2356 Update comments.
2357 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2358 comments.
2359 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2360 x86_64_supply_fxsave.
2361 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2362 x86_64_supply_fxsave.
2363 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2364 x86_64_supply_fxsave.
2365
2366 2003-08-23 Andreas Jaeger <aj@suse.de>
2367
2368 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2369 i387_supply_fxsave.
2370
2371 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2372
2373 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2374 i387_supply_register.
2375 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2376 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2377 i387_supply_fsave.
2378 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2379 i387_supply_fxsave.
2380 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2381 i387_supply_fsave.
2382 * i386bsd-nat.c (supply_fpregset): Adjust call to
2383 i387_supply_fsave.
2384 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2385 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2386 supply_fpregset.
2387 (store_inferior_registers): Remove extraneous whitespace. Call
2388 i387_fill_fsave instead of fill_fpregset.
2389 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2390 (supply_fpregset): Likewise.
2391 * i386v4-nat.c (supply_fpregset): Adjust call to
2392 i387_supply_fsave.
2393 * i386-interix-nat.c (supply_fpregset): Adjust call to
2394 i387_supply_fsave.
2395 * i386-linux-nat.c (supply_fpregset): Adjust call to
2396 i387_supply_fsave.
2397 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2398 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2399 i387supply_fsave and i387_supply_fxsave.
2400 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2401 Incorporate code from `i387_supply_register.
2402 (i387_supply_register): Remove.
2403 (i387_supply_fxsave): Add `regnum' argument.
2404 Update comments.
2405 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2406 prototype.
2407 (i387_supply_register): remove prototype.
2408 Update comments.
2409
2410 2003-08-22 Michael Chastain <mec@shout.net>
2411
2412 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2413 Add lines for files in gdb/testsuite/gdb.cp/* that are
2414 still not 8.3 unique.
2415
2416 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
2417
2418 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2419 TYPE_VPTR_FIELDNO is valid.
2420
2421 2003-08-19 Mark Kettenis <kettenis@gnu.org>
2422
2423 * utils.c (set_width_command): Remove prototypes.
2424 (set_screen_size): New prototype.
2425 (init_page_info): Simplify by fetching the screen size from
2426 Readline. Call set_screen_size.
2427 (set_screen_size): New function.
2428 (set_width): Add missing whitespace in comment.
2429 (set_width_command): Call set_screen_size.
2430 (set_height_command): New function.
2431 (initialize_utils): Fix formatting. Make "set height" command
2432 call set_height_command. Remove redundant code that turns off
2433 pagination if output isn't a terminal. Remove redundant call to
2434 set_width_command.
2435
2436 2003-08-22 Mark Kettenis <kettenis@gnu.org>
2437
2438 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2439 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2440 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2441 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2442 `case' keyword.
2443 (sparc64_register_info): Give the reister with number
2444 SPARC64_STATE_REGNUM a name.
2445 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2446 %asi and %ccr.
2447 (sparc64_push_dummy_call): Take BIAS into account when checking
2448 stcak alignment.
2449 (sparc_software_single_step): Remove assertions that check whether
2450 NPC and NNPC were zero.
2451 (sparc_supply_rwindow): Make public. Merge functionality with
2452 sparc64_supply_rwindow.
2453 (sparc_fill_rwindow): Make public. Merge functionality with
2454 sparc64_fill_rwindow.
2455 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2456 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2457 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2458 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2459 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2460
2461 * reggroups.c: Add whitespace after declarations of local
2462 variables in functions.
2463
2464 2003-08-21 Michael Chastain <mec@shout.net>
2465
2466 * gdbtypes.h: Change array bound type from an int to enum.
2467
2468 2003-08-21 Andrew Cagney <cagney@redhat.com>
2469
2470 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2471 * config/sparc/tm-sparc.h: Ditto.
2472 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2473 unconditionally.
2474 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2475
2476 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2477
2478 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2479 (register_objfile_data, set_objfile_data, objfile_data): New
2480 prototypes.
2481 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2482 prototypes.
2483 (allocate_objfile): Call objfile_alloc_data.
2484 (free_objfile): Call objfile_free_data.
2485 (struct objfile_data): New.
2486 (struct objfile_data_registration): New.
2487 (struct objfile_data_registry): New.
2488 (objfile_data_registry): New variable.
2489 (register_objfile_data): New function.
2490 (objfile_alloc_data, objfile_free_data): New functions.
2491 (set_objfile_data, objfile_data): New functions.
2492 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2493 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2494 (_initialize_dwarf2_frame): New function and prototype.
2495
2496 2003-08-21 Andrew Cagney <cagney@redhat.com>
2497
2498 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2499 a specific architecture.
2500 * arch-utils.h (set_architecture_from_arch_mach): Delete
2501 declaration.
2502 (target_architecture_hook): Delete declaration.
2503 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2504 (default_float_format): Assume GDB_MULTI_ARCH.
2505 (default_double_format): Assume GDB_MULTI_ARCH.
2506 (set_endian_from_file): Delete function.
2507 (arch_ok): Delete function.
2508 (set_arch): Delete function.
2509 (set_architecture_from_arch_mach): Delete function.
2510 (set_architecture_from_file): Delete function.
2511 (set_architecture): Assume GDB_MULTI_ARCH.
2512 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2513
2514 2003-08-21 Mark Kettenis <kettenis@gnu.org>
2515
2516 Rewrite FreeBSD/sparc64 native configuration.
2517 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2518 * sparc64fbsd-nat.c: New file.
2519 * sparc64fbsd-tdep.c: New file.
2520 * sparc64-tdep.c sparc64-tdep.h: New files.
2521 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2522 sparc64fbsd-tdep.o): New dependencies.
2523 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2524 and sparc64fbsd-tdep.c.
2525 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2526 * config/sparc/fbsd.mh: Remove copyright notice.
2527 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2528 sparcbsd-nat.o.
2529 * config/sparc/fbsd.mt: Remove copyright notice.
2530 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2531 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2532 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2533 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2534 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2535 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2536 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2537 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2538 "sparc/tm-sp64.h".
2539 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2540 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2541
2542 2003-08-21 Michael Chastain <mec@shout.net>
2543
2544 * symtab.h: Add doco on the space critical structures and
2545 some measurements of space usage.
2546
2547 2003-08-21 Michael Snyder <msnyder@redhat.com>
2548
2549 * tracepoint.c (trace_dump_command): Trace break address
2550 is subject to DECR_PC_AFTER_BREAK.
2551 (set_traceframe_context): Make "trace_line" an int.
2552 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2553
2554 2003-08-20 Michael Snyder <msnyder@redhat.com>
2555
2556 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2557 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2558 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2559 argument passing.
2560 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2561 functions, replace sh_push_dummy_call.
2562 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2563
2564 2003-08-20 Michael Chastain <mec@shout.net>
2565
2566 * gdbtypes.h (struct main_type): Rearrange to save space.
2567
2568 2003-08-20 Michael Snyder <msnyder@redhat.com>
2569
2570 * trad-frame.c: Comment typo fix.
2571
2572 2003-08-20 Michael Snyder <msnyder@redhat.com>
2573 Kevin Buettner <kevinb@redhat.com>
2574
2575 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2576 (frv_frame_init_saved_regs): Add declaration.
2577 (frame_extra_info): Add new field ``saved_regs''.
2578 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2579 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2580 Update frame related code.
2581 (frv_extract_struct_value_address): Adjust formatting.
2582 * Makefile.in (frv-tdep.o): Update dependencies.
2583 * config/frv/tm-frv.h (target_insert_watchpoint)
2584 (target_remove_watchpoint, target_insert_hw_breakpoint)
2585 (target_remove_hw_breakpoint): Delete these macros.
2586 (remote_insert_watchpoint, remote_remove_watchpoint)
2587 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2588 these declarations.
2589
2590 2003-08-20 Michael Chastain <mec@shout.net>
2591
2592 * defs.h (ENUM_BITFIELD): New macro.
2593 * symtab.h (ENUM_BITFIELD): Use it.
2594 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2595
2596 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2597
2598 * MAINTAINERS (write after approval): Add myself.
2599
2600 2003-08-18 Andrew Cagney <cagney@redhat.com>
2601
2602 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2603 * gdbarch.h, gdbarch.c: Re-generate.
2604 * infcall.c (call_function_by_hand): Adjust the SP by
2605 frame_red_zone_size before allocating any stack space.
2606 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2607 * x86-64-tdep.c (x86_64_frame_align): New function.
2608 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2609
2610 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2611 Remove code adjusting SP so that it skips over the Red Zone.
2612
2613 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2614
2615 * NEWS (New native configurations): Mention FreeBSD/amd64.
2616
2617 2003-08-18 Andrew Cagney <cagney@redhat.com>
2618
2619 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2620 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2621 "m68k_frame_p".
2622 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2623
2624 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2625
2626 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2627
2628 2003-08-18 Michal Ludvig <mludvig@suse.cz>
2629
2630 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2631 Define.
2632 * i386-linux-nat.c: Include "linux-nat.h".
2633 (child_post_startup_inferior): New function.
2634
2635 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2636
2637 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2638 at the start of a frameless function. This probably fixes PR
2639 backtrace/1338.
2640
2641 2003-08-17 Michael Chastain <mec@shout.net>
2642
2643 * symfile.c (find_sym_fns): Remove special case for apollo target.
2644
2645 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2646
2647 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2648 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2649 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2650 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2651 (linux_supports_tracevforkdone): New function.
2652 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2653 TRACEVFORKDONE.
2654 (child_follow_fork): Handle vfork.
2655 (linux_handle_extended_wait): Likewise. Also handle exec.
2656 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2657 * NEWS: Mention fork tracing.
2658
2659 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2660
2661 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2662
2663 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2664
2665 * Makefile.in (i386-linux-nat.o): Update dependencies.
2666 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2667 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2668 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2669 * i386-linux-nat.c: Include "linux-nat.h".
2670 (child_post_startup_inferior): New function.
2671 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2672 * infptrace.c (kill_inferior): Wrap in #ifdef.
2673 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2674 attaching to each LWP.
2675 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2676 (init_lin_lwp_ops): Fill in some more operations.
2677 * linux-nat.h (linux_enable_event_reporting)
2678 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2679 prototypes.
2680 * linux-nat.c (linux_enable_event_reporting): New function.
2681 (child_post_attach, linux_child_post_startup_inferior)
2682 (child_post_startup_inferior, child_follow_fork)
2683 (linux_handle_extended_wait, kill_inferior): New functions.
2684
2685 2003-08-16 Andrew Cagney <cagney@redhat.com>
2686
2687 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2688 * gdbarch.h, gdbarch.c: Re-generate.
2689
2690 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2691
2692 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2693
2694 2003-08-16 Andrew Cagney <cagney@redhat.com>
2695
2696 * NEWS: Mention that "set prompt-escape-char" was deleted.
2697 * top.c (get_prompt_1): Delete function.
2698 (gdb_prompt_escape):
2699 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2700 prompt-escape-char" command.
2701 (MAX_PROMPT_SIZE): Delete macro.
2702 (get_prompt): Simplify, do not call get_prompt_1.
2703
2704 2003-08-16 Andrew Cagney <cagney@redhat.com>
2705
2706 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2707 -Werror. -Wformat-nonliteral problems.
2708
2709 2003-08-15 J. Brobecker <brobecker@gnat.com>
2710
2711 Further multiarching work mostly for hppa64-*-hpux11:
2712 * hppa-tdep.h: New file.
2713 * hppa-tdep.c: #include hppa-tdep.c.
2714 (hppa32_num_regs): Renamed from hppa_num_regs.
2715 (hppa64_num_regs): New constant.
2716 (hppa64_call_dummy_breakpoint_offset): New constant.
2717 (hppa32_call_dummy_length): New constant.
2718 (hppa64_call_dummy_length): New constant.
2719 (hppa32_stack_align): Make name 32bit explicit.
2720 (hppa32_register_virtual_type): Likewise.
2721 (hppa32_extract_return_value): Likewise.
2722 (hppa32_use_struct_convention): Likewise.
2723 (hppa32_store_return_value): Likewise.
2724 (hppa64_register_virtual_type): New function.
2725 (hppa64_extract_return_value): New function.
2726 (hppa64_use_struct_convention): New function.
2727 (hppa64_store_return_value): New function.
2728 (hppa_frame_locals_address): Remove declaration, function does
2729 not exist anymore.
2730 (hppa_register_byte): Add support for PA64 ABI.
2731 (hppa_gdbarch_init): Add support for PA64 ABI.
2732 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2733 Make name 32bit explicit.
2734 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2735 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2736 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2737 (hppa64_hpux_frame_base_before_sigtramp): New function.
2738 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2739 * config/pa/tm-hppa64.h: Remove macros that are no longer
2740 necessary now that the gdbarch vector is properly setup.
2741 Transform some macros into function calls. Some minor cleanup.
2742 * config/pa/tm-hppah.h: Update function calls in macros
2743 following the function renaming in hppa-hpux-tdep.c.
2744 * Makefile.in (hppa_tdep_h): New variable.
2745 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2746
2747 2003-08-14 Michael Snyder <msnyder@redhat.com>
2748
2749 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2750
2751 2003-08-13 J. Brobecker <brobecker@gnat.com>
2752
2753 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2754 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2755 routine.
2756
2757 2003-08-13 Michael Snyder <msnyder@redhat.com>
2758
2759 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2760 (frv_saved_pc_after_call): Use deprecated ftype.
2761 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2762 (frv_remote_translate_xfer_address): Remove.
2763 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2764
2765 2003-08-13 J. Brobecker <brobecker@gnat.com>
2766
2767 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2768 initialization after the common gdbarch initialization, not before.
2769
2770 2003-08-13 J. Brobecker <brobecker@gnat.com>
2771
2772 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2773 (ADDR_BITS_REMOVE): Remove, redundant.
2774
2775 2003-08-13 J. Brobecker <brobecker@gnat.com>
2776
2777 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2778 gdbarch method to clear the 2 low bits of text addresses.
2779
2780 2003-08-12 Andrew Cagney <cagney@redhat.com>
2781
2782 * Makefile.in (dsrec.o): Update dependencies.
2783 * dsrec.c: Include "gdb_assert.h".
2784 (make_srec): Use snprintf instead of sprintf, use a literal format
2785 string.
2786
2787 2003-08-12 Andrew Cagney <cagney@redhat.com>
2788
2789 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2790 FRAME_OBSTACK_ZALLOC.
2791
2792 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2793
2794 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2795 SSE registers.
2796
2797 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2798
2799 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2800 amd64fbsd_sc_reg_offset): Add extern declarations.
2801 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2802 declarations.
2803
2804 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2805
2806 * MAINTAINERS (write after approval): Update my mail address.
2807
2808 2003-08-10 Andrew Cagney <cagney@redhat.com>
2809
2810 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2811
2812 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2813
2814 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2815 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2816 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2817 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2818 i386bsd_sc_reg_offset): Add extern declarations.
2819 * i386obsd-nat.c: Include "i386-tdep.h"
2820 (_initialize_i386obsd_nat): Remove extern declarations.
2821 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2822 declarations.
2823 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2824 declarations.
2825
2826 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2827 instead of frame_read_register.
2828 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2829 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2830 SP_REGNUM.
2831 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2832 instead of frame_unwind_unsigned_register. Use
2833 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2834 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2835 instead of read_register. Use builtin_type_void_data_ptr instead
2836 of builtin_type_void_func_ptr when extracting the address of the
2837 jmp_buf.
2838 (i386_extract_return_value, i386_store_return_value,
2839 i386_pseudo_register_read, i386_pseudo_register_write): Use
2840 register_size instead REGISTER_RAW_SIZE.
2841
2842 2003-08-10 Andrew Cagney <cagney@redhat.com>
2843
2844 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2845 sprintf. Make "name" constant.
2846
2847 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2848
2849 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2850 instead of frame_read_register.
2851 (i387_print_float_info): Use get_frame_register and
2852 get_frame_register_unsigned instead of frame_register_read.
2853
2854 * i386fbsd-nat.c: Include "i386-tdep.h".
2855 (child_resume): Make `eflags' an ULONGEST. Use
2856 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2857 instead of register_read and register_write.
2858
2859 * i386bsd-nat.c (fetch_inferior_registers,
2860 store_inferior_registers): Don't use && at the end of a line.
2861 (_initialize_i386bsd_nat): Fix typo.
2862
2863 * frame.c (_initialize_frame): Add missing backslash.
2864
2865 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2866 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2867 and supply_register instead of manipulating the register buffer
2868 directly.
2869
2870 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2871 * config/i386/nm-i386sol2.h
2872 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2873
2874 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2875 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2876 instructions that GCC likes to mingle into the prologue. Fixes
2877 gdb/1253 and gdb/1255.
2878
2879 2003-08-09 Andrew Cagney <cagney@redhat.com>
2880
2881 Fix GDB PR cli/926.
2882 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2883 * command.h (add_setshow_uinteger_cmd): Declare.
2884 * frame.c (set_backtrace_cmd): New function.
2885 (show_backtrace_cmd): New function.
2886 * frame.c (_initialize_frame): Replace "set/show
2887 backtrace-below-main" with "set/show backtrace past-main". Add
2888 command "set/show backtrace limit".
2889 (backtrace_past_main): Rename "backtrace_below_main".
2890 (backtrace_limit): New variable.
2891 (get_prev_frame): Update. Check the backtrace_limit.
2892
2893 2003-08-09 Andrew Cagney <cagney@redhat.com>
2894
2895 * defs.h (xstrprintf): Declare.
2896 * utils.c (xstrprintf): New function.
2897 * breakpoint.c (insert_breakpoints): Replace sprintf and
2898 non-literal format strings, with xstrprintf and cleanups.
2899 (delete_breakpoint,breakpoint_re_set): Ditto.
2900 (commands_command, insert_breakpoints): Ditto.
2901 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2902 (break_at_finish_command_1): Ditto.
2903
2904 2003-08-09 Andrew Cagney <cagney@redhat.com>
2905
2906 * MAINTAINERS (language support): List Adam Fedor as Objective C
2907 maintainer.
2908
2909 2003-08-08 J. Brobecker <brobecker@gnat.com>
2910
2911 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2912 are now multiarched.
2913
2914 2003-08-08 J. Brobecker <brobecker@gnat.com>
2915
2916 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2917 longer necessary now that hppa64 is partially multiarch'ed.
2918
2919 2003-08-08 Andrew Cagney <cagney@redhat.com>
2920
2921 * interps.c (interp_set): Check for a NULL "old_interp".
2922
2923 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2924
2925 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2926 (install-only): Support DESTDIR.
2927 (uninstall): Likewise.
2928 (install-gdbtk): Likewise.
2929
2930 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2931
2932 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2933 contains something meaningful at all times.
2934
2935 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2936
2937 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2938
2939 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2940
2941 * MAINTAINERS (write after approval): Added self.
2942
2943 2003-08-07 Andrew Cagney <cagney@redhat.com>
2944
2945 * inferior.h (AT_SYMBOL): Define.
2946 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2947 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2948 * mips-tdep.c (mips_call_dummy_address): Delete function.
2949 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2950 set call_dummy_address.
2951
2952 2003-08-07 Andrew Cagney <cagney@redhat.com>
2953
2954 * language.c (op_error): Delete function.
2955 (binop_type_check): Delete function.
2956 * language.h (type_op_error, range_op_error): Delete macros.
2957 (op_error): Delete declaration.
2958
2959 2003-08-07 Andrew Cagney <cagney@redhat.com>
2960
2961 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2962
2963 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2964
2965 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2966 (x86_64_push_arguments): Skip the red zone.
2967
2968 2003-08-05 Andrew Cagney <cagney@redhat.com>
2969
2970 * reggroups.c (reggroup_next): Check for the final entry.
2971
2972 2003-08-04 Andrew Cagney <cagney@redhat.com>
2973
2974 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2975 * cli/cli-script.c (define_command): Call query directly, instead
2976 of passing it a buffer.
2977 * ocd.c (ocd_error): Pass error a constant format string.
2978 * remote-mips.c (mips_error): Use fputs_filtered.
2979
2980 * solib-svr4.c (_initialize_svr4_solib): Update
2981 register_gdbarch_data call.
2982 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2983
2984 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2985 (register_gdbarch_data): Delete "free" parameter. Update
2986 comments.
2987 * gdbarch.h, gdbarch.c: Re-generate.
2988 * reggroups.c (_initialize_reggroup): Update.
2989 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2990 * frame-base.c (_initialize_frame_base): Update.
2991 * frame-unwind.c (_initialize_frame_unwind): Update.
2992 * user-regs.c (_initialize_user_regs): Update.
2993 * remote.c (_initialize_remote): Update.
2994 * regcache.c (_initialize_regcache): Update.
2995
2996 * regcache.c (xfree_regcache_descr): Delete function.
2997 (_initialize_regcache): Update call to register_gdbarch_data.
2998 (init_regcache_descr, init_legacy_regcache_descr): Use
2999 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3000
3001 * remote.c (free_remote_state): Delete function.
3002 (_initialize_remote): Update register_gdbarch_data.
3003 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3004 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3005
3006 2003-08-04 Andrew Cagney <cagney@redhat.com>
3007
3008 * reggroups.c (struct reggroup_el): Define.
3009 (struct reggroups): Delete field "nr_group". Replace array
3010 "group" with a "first" to "last" linked list.
3011 (reggroups_init): Update. Allocate using gdbarch's obstack.
3012 (reggroups_free): Delete function.
3013 (add_group): Update. Add "el" parameter.
3014 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3015 (default_groups): Update.
3016 (reggroup_next): Replace reggroups.
3017 (reggroups_dump): Update.
3018 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3019 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3020 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3021
3022 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
3023
3024 * Makefile.in (tui-interp.o): Update dependencies.
3025
3026 2003-08-04 David Carlton <carlton@kealia.com>
3027
3028 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3029 to internal_error call.
3030 * source.c (forward_search_command): Add "%s" format argument.
3031 (reverse_search_command): Ditto.
3032 * top.c (quit_confirm): Ditto.
3033 * cli/cli-setshow.c (do_setshow_command): Ditto.
3034 * cp-valprint.c (cp_print_class_method): Replace
3035 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3036 (cp_print_class_member): Ditto.
3037 * event-top.c (command_line_handler): Ditto.
3038 * linux-proc.c (linux_info_proc_cmd): Ditto.
3039 * p-typeprint.c (pascal_type_print_base): Ditto.
3040 * p-valprint.c (pascal_object_print_class_method): Ditto.
3041 (pascal_object_print_class_member): Ditto.
3042 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3043 * remote.c (remote_cisco_section_offsets): Ditto.
3044 * top.c (command_line_input): Ditto.
3045 * utils.c (vwarning,error_stream,quit): Ditto.
3046 * valprint.c (print_floating,print_binary_chars)
3047 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3048
3049 2003-08-04 Andrew Cagney <cagney@redhat.com>
3050
3051 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3052
3053 2003-08-02 Andrew Cagney <cagney@redhat.com>
3054
3055 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3056 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3057 amd64fbsd-nat.c.
3058
3059 2003-08-02 Andrew Cagney <cagney@redhat.com>
3060
3061 * Makefile.in: Update all dependencies and definitions.
3062
3063 2003-08-02 Adam Fedor <fedor@gnu.org>
3064
3065 * linespec.c (is_objc_method_format): New function
3066 (decode_line_1, locate_first_half): Use it.
3067 Fixes PR objc/1298
3068
3069 2003-08-01 Andrew Cagney <cagney@redhat.com>
3070
3071 * NEWS: Mention that m32r is multi-arch.
3072 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3073 * configure.tgt: Recognize m32r-*-*.
3074 * config/m32r/tm-m32r.h: Delete file.
3075 * config/m32r/m32r.mt: New file.
3076 * m32r-rom.c (m32r_upload_command): Use hostent only when
3077 gethostname succeeds, in order to avoid a compilation
3078 warning.
3079 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3080 compiler warning.
3081
3082 2003-08-01 Michael Snyder <msnyder@redhat.com>
3083
3084 * sh-tdep.c (sh_frame_align): New gdbarch method.
3085 (sh_gdbarch_init): Set up frame_align method.
3086
3087 2003-07-31 Michael Snyder <msnyder@redhat.com>
3088
3089 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3090 which is already covered by the new frames infrastructure.
3091
3092 2003-07-31 Andrew Cagney <cagney@redhat.com>
3093
3094 * user-regs.c (struct user_reg): Add "next" link.
3095 (struct user_regs): Replace "user" with "first" and "last" links.
3096 (append_user_reg): Add pre-allocated "reg" parameter.
3097 (builtin_user_regs): Provide initial value for "last".
3098 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3099 (user_regs_init): Allocate memory from the gdbarch obstack.
3100 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3101 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3102 linked list.
3103 (usernum_to_user_reg): New function.
3104 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3105 (value_of_user_reg): Use usernum_to_user_reg.
3106 (user_regs_free): Delete function.
3107 (_initialize_user_regs): Update register_gdbarch_data call.
3108
3109 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
3110
3111 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3112
3113 2003-07-30 Michael Snyder <msnyder@redhat.com>
3114
3115 * value.h (value_being_returned): Add a struct_addr argument.
3116 * infcall.c (call_function_by_hand): Pass struct_addr to
3117 value_being_returned.
3118 * infcmd.c (print_return_value): Pass zero as struct_addr.
3119 * values.c (value_being_returned): If struct_addr is passed,
3120 use it instead of trying to recover it from the inferior.
3121
3122 2003-07-30 Kevin Buettner <kevinb@redhat.com>
3123
3124 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3125 the prologue analyzer won't need to attempt to extract the pc
3126 value from the woefully incomplete dummy frame.
3127 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3128 possible. Disable code which modifies the frame.
3129
3130 2003-07-28 Andrew Cagney <cagney@redhat.com>
3131
3132 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3133 to level 2.
3134 (annotate_breakpoints_table, annotate_record): Ditto.
3135 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3136 (annotate_field_name_end, annotate_field_value): Ditto.
3137 (annotate_field_end, annotate_frame_source_begin): Ditto.
3138 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3139 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3140 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3141 (annotate_frame_address_end, annotate_frame_address): Ditto.
3142 (annotate_frame_args, annotate_frame_end): Ditto.
3143 (annotate_frame_where, annotate_arg_begin): Ditto.
3144 (annotate_arg_name_end, annotate_arg_value): Ditto.
3145 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3146 (annotate_function_call, annotate_signal_name): Ditto.
3147 (annotate_signal_string, annotate_signal_name_end): Ditto.
3148 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3149 (annotate_value_begin, annotate_value_history_value): Ditto.
3150 (annotate_value_history_end, annotate_value_end): Ditto.
3151 (annotate_display_begin, annotate_display_number_end): Ditto.
3152 (annotate_display_format, annotate_display_expression): Ditto.
3153 (annotate_display_expression_end, annotate_display_value): Ditto.
3154 (annotate_display_end, annotate_array_section_begin): Ditto.
3155 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3156 (annotate_elt, annotate_array_section_end): Ditto.
3157
3158 2003-07-28 Andrew Cagney <cagney@redhat.com>
3159
3160 * regcache.c (struct regcache_descr): Update comments on
3161 nr_raw_registers.
3162 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3163 sizeof_raw_register_valid_p.
3164 (init_regcache_descr): Set nr_raw_registers and
3165 sizeof_raw_register_valid_p before calling
3166 init_legacy_regcache_descr.
3167
3168 2003-07-28 Andrew Cagney <cagney@redhat.com>
3169
3170 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3171 MOD NUM_REGS.
3172
3173 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
3174
3175 * thread.c (info_threads_command): Use get_selected_frame ().
3176 Check that there is at least one non-sentinel frame.
3177
3178 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3179
3180 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3181 (m68hc11_pop_frame): Remove.
3182 (m68hc11_frame_saved_pc): Remove.
3183 (m68hc11_frame_chain): Remove.
3184 (m68hc11_frame_init_saved_regs): Remove.
3185 (m68hc11_init_extra_frame_info): Remove.
3186 (m68hc11_store_struct_return): Remove.
3187 (m68hc11_saved_pc_after_call): Remove.
3188
3189 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3190
3191 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3192 frame unwind information.
3193 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3194 and adapted for frame unwinding.
3195 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3196 (m68hc11_unwind_pc): New function.
3197 (m68hc11_frame_unwind_cache): New function to analyze frames.
3198 (m68hc11_frame_this_id): New function to create new frame struct.
3199 (m68hc11_frame_prev_register): New function to unwind a register from
3200 the frame.
3201 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3202 (m68hc11_frame_p): New function for the above.
3203 (m68hc11_frame_base_address): New function to return fp of frame.
3204 (m68hc11_frame_args_address): Update for frame.
3205 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3206 (m68hc11_unwind_sp): New function.
3207 (m68hc11_unwind_dummy_id): New function.
3208 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3209 calls.
3210
3211 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3212
3213 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3214 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3215 when we are beyond the current pc.
3216
3217 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3218
3219 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3220 from m68hc11_push_arguments.
3221 (m68hc11_push_arguments): Remove.
3222 (m68hc11_push_return_address): Remove.
3223 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3224 handlers; remove deprecated_extra_stack_alignment_needed.
3225
3226 2003-07-27 Andrew Cagney <cagney@redhat.com>
3227
3228 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3229 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3230 REAL_PC and not the pointer.
3231 * hppa-hpux-tdep.c: Include frame.h
3232
3233 2003-07-27 Andrew Cagney <cagney@redhat.com>
3234
3235 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3236 GDB_MULTI_ACH_PARTIAL.
3237
3238 2003-07-27 Andrew Cagney <cagney@redhat.com>
3239
3240 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3241 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3242 operator at start and not end of line.
3243 (decode_prologue): Ditto.
3244 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3245 frame_unwind_register_unsigned instead of
3246 frame_unwind_unsigned_register.
3247 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3248 read_register.
3249 (m32r_push_dummy_call): Use register_size instead of
3250 REGISTER_RAW_SIZE.
3251 (m32r_frame_sniffer): Replace m32r_frame_p.
3252 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3253 * m32r-rom.c (report_transfer_performance): Delete extern
3254 declaration.
3255 (m32r_load, m32r_upload_command): Use print_transfer_performance
3256 instead of report_transfer_performance.
3257 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3258 / add_show_from_set.
3259
3260 2003-07-26 Andrew Cagney <cagney@redhat.com>
3261
3262 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3263 store_return_value and extract_struct_value_address.
3264
3265 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
3266
3267 PR c++/1267
3268 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3269 NULL, default to the section containing PC.
3270
3271 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3272
3273 * NEWS: Mention "regs" deprecated for m68hc11 too.
3274
3275 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3276 (m68hc11_print_register): New function to print out one register.
3277 (m68hc11_print_registers_info): New function to print registers.
3278 (show_regs): Deprecate and use the above.
3279 (m68hc11_gdbarch_init): Install the print_registers_info.
3280
3281 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3282
3283 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3284 that we have a SIGTRAP before returning non-zero.
3285
3286 2003-07-23 Michal Ludvig <mludvig@suse.cz>
3287 Elena Zannoni <ezannoni@redhat.com>
3288
3289 * linespec.c (decode_line_2): Avoid crash if
3290 find_function_start_sal() returns empty record.
3291
3292 2003-07-23 Andreas Schwab <schwab@suse.de>
3293
3294 * ia64-tdep.c (ia64_print_insn): New function.
3295 (ia64_gdbarch_init): Set print_insn to it.
3296 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3297 deprecated_tm_print_insn_info.
3298
3299 2003-07-22 Michael Snyder <msnyder@redhat.com>
3300
3301 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3302 handle 8-bit returns (long long).
3303 (h8300h_extract_return_value): Ditto.
3304 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3305
3306 2003-07-22 Andrew Cagney <cagney@redhat.com>
3307
3308 * gdbarch.c Include "gdb_obstack.h".
3309 (struct gdbarch): Add an "obstack".
3310 (alloc_gdbarch_data): Allocate the gdbarch data using
3311 GDBARCH_OBSTACK_CALLOC.
3312 (free_gdbarch_data): Delete function.
3313 (gdbarch_obstack_zalloc): New function.
3314 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3315 Assert that the architecture is not initialized.
3316 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3317 vector from the obstack.
3318 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3319 architecture obstack.
3320 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3321 (set_gdbarch_data): Assert that the data is not initialized.
3322 (struct gdbarch_data): Delete member "free".
3323 (register_gdbarch_data): Do not initialize "free".
3324 * gdbarch.h, gdbarch.c: Re-generate.
3325
3326 2003-07-22 Andrew Cagney <cagney@redhat.com>
3327
3328 * configure.in (build_warnings): Add -Wformat-nonliteral.
3329 * configure: Re-generate.
3330
3331 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3332
3333 * dwarf2loc.c (locexpr_describe_location): Fix typos.
3334
3335 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3336
3337 * findvar.c (read_var_value): Remove case for thread local storage
3338 variables. It is now entirely handled by the dwarf2 location
3339 expression code.
3340 * printcmd.c (address_info): Ditto.
3341 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3342 enumeration value.
3343 (struct symbol): Remove objfile field, which was used by
3344 LOC_THREAD_LOCAL_STATIC only.
3345 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3346 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3347 usage of objfile pointer.
3348 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3349 thread local variables.
3350 Add include of objfiles.h.
3351 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3352 storage variables.
3353 * Makefile.in (dwarf2loc.o): Update dependencies.
3354
3355 2003-07-22 Andrew Cagney <cagney@redhat.com>
3356
3357 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3358 get_frame_base.
3359 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3360 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3361 (struct value): Add opaque declaration.
3362 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3363
3364 2003-07-21 Andrew Cagney <cagney@redhat.com>
3365
3366 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3367 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3368
3369 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3370
3371 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3372 regcache_cooked_read_unsigned instead of read_register.
3373 (m68hc11_saved_pc_after_call): Likewise.
3374 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3375 instead of write_register.
3376 (m68hc11_register_type): New function.
3377 (m68hc11_register_virtual_type): Remove.
3378 (m68hc11_store_return_value): Convert to use the regcache.
3379 (m68hc11_extract_struct_value_address): Likewise.
3380 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3381 m68hc11_register_type; undeprecate store_return_value and
3382 extract_struct_value_address.
3383
3384 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3385
3386 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3387 and translate to use regcache.
3388 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3389
3390 2003-07-18 Andrew Cagney <cagney@redhat.com>
3391
3392 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3393 * gdbarch.h, gdbarch.c: Re-generate.
3394 * i386-tdep.c (i386_gdbarch_init): Do not set
3395 DWARF2_BUILD_FRAME_INFO.
3396 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3397 unconditionally.
3398 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3399 DWARF2_BUILD_FRAME_INFO.
3400
3401 2003-07-18 Andrew Cagney <cagney@redhat.com>
3402
3403 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3404 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3405
3406 2003-07-18 Andrew Cagney <cagney@redhat.com>
3407
3408 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3409 frame_unwind_address_in_block, instead of frame_pc_unwind.
3410 (dwarf2_frame_cache): Ditto.
3411
3412 2003-07-18 Andrew Cagney <cagney@redhat.com>
3413
3414 * user-regs.h (struct gdbarch): Declare opaque.
3415 * ui-out.h (struct ui_file): Declare opaque.
3416 * dwarf2-frame.h (struct frame_info): Declare opaque.
3417
3418 2003-07-18 Kris Warkentin <kewarken@qnx.com>
3419
3420 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3421 #include "...".
3422 (procfs_meminfo): Change strerror to safe_strerror.
3423 (procfs_can_run): Remove K&R badness.
3424
3425 2003-07-17 Michael Snyder <msnyder@redhat.com>
3426
3427 * remote-sim.c: Comment typo fix.
3428
3429 2003-07-17 Andrew Cagney <cagney@redhat.com>
3430
3431 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3432 configure.
3433 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3434 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3435 GDB_MULTI_ARCH_PARTIAL.
3436
3437 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
3438
3439 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3440 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3441 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3442
3443 2003-07-16 Theodore A. Roth <troth@openavr.org>
3444
3445 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3446 found.
3447 (avr_frame_unwind_cache): Don't unwind FP for main.
3448 Update a comment.
3449 Save the computed prev_sp.
3450 (avr_saved_regs_unwinder): Remove function.
3451 (avr_frame_prev_register): Use PC unwind logic from
3452 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3453
3454 2003-07-16 Andrew Cagney <cagney@redhat.com>
3455
3456 * frame-base.h (frame_base_p_ftype): Delete definition.
3457 (frame_base_append_predicate): Delete declaration.
3458 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3459 (frame_unwind_append_predicate): Delete declaration.
3460 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3461 (append_predicate): Delete parameter "p".
3462 (frame_unwind_append_predicate): Delete function.
3463 (frame_unwind_append_sniffer): Update call to append_predicate.
3464 (frame_unwind_free): Delete function.
3465 (_initialize_frame_unwind): Pass NULL as "free" to
3466 register_gdbarch_data.
3467 (frame_unwind_init): Append the dummy_frame_sniffer.
3468 (frame_unwind_find_by_frame): Simplify.
3469 * frame-base.c (struct frame_base_table): Delete field "p".
3470 (append_predicate): Delete parameter "p".
3471 (frame_base_append_predicate): Delete function.
3472 (frame_base_append_sniffer): Update call to append_predicate.
3473 (frame_base_free): Delete function.
3474 (frame_base_find_by_frame): Simplify.
3475 (_initialize_frame_base): Pass NULL as "free" to
3476 register_gdbarch_data.
3477 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3478 (x86_64_sigtramp_frame_sniffer): Replace
3479 "x86_64_sigtramp_frame_p".
3480 (x86_64_init_abi): Set the frame unwind sniffers.
3481 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3482 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3483 (m68k_gdbarch_init): Set the frame unwind sniffers.
3484 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3485 "i386_sigtramp_frame_p".
3486 (i386_frame_sniffer): Replace "i386_frame_p".
3487 (i386_gdbarch_init): Set the frame unwind sniffers.
3488 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3489 (avr_gdbarch_init): Set the frame unwind sniffers.
3490 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3491 "alpha_sigtramp_frame_p"
3492 (alpha_heuristic_frame_sniffer): Replace
3493 "alpha_heuristic_frame_p".
3494 (alpha_gdbarch_init): Set the frame unwind sniffers.
3495 (alpha_dwarf2_init_abi): Ditto.
3496 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3497 "alpha_debug_frame_p".
3498 (alpha_mdebug_frame_base_sniffer): Replace
3499 "alpha_mdebug_frame_base_p".
3500 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3501 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3502 (d10v_gdbarch_init): Set the frame unwind sniffer.
3503 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3504 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3505 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3506 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3507 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3508 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3509
3510 2003-07-16 Michael Snyder <msnyder@redhat.com>
3511
3512 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3513 should go thru sh_dsp_register_sim_regno, else the dsp regs
3514 will not get the right values.
3515
3516 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3517
3518 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3519 deprecated_store_floating by call to store_typed_floating.
3520 (sh_sh4_register_convert_to_raw): Substitute call to
3521 deprecated_extract_floating by call to extract_typed_floating.
3522
3523 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3524
3525 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3526
3527 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3528
3529 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3530 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3531 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3532 as possible.
3533 (do_pseudo_register): Remove.
3534 (sh_push_dummy_code): New function.
3535 (sh64_store_struct_return): Rename from sh_store_struct_return.
3536 Only called for sh64 now.
3537 (sh_extract_struct_value_address): Regcache'ify.
3538 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3539 and accomodate new tasks.
3540 (sh64_push_return_address): Rename from sh_push_return_address.
3541 Only called for sh64 now.
3542 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3543 Regcache'ify.
3544 (sh3e_sh4_extract_return_value): Regcache'ify.
3545 (sh_default_store_return_value): Ditto.
3546 (sh3e_sh4_store_return_value): Ditto.
3547 (sh_default_register_byte): Remove.
3548 (sh_sh4_register_byte): Remove.
3549 (sh_default_register_raw_size): Remove.
3550 (sh_sh4_register_raw_size): Remove.
3551 (sh_register_virtual_size): Remove.
3552 (sh_sh3e_register_virtual_type): Remove.
3553 (sh_sh3e_register_type): New function.
3554 (sh_sh4_register_virtual_type): Remove.
3555 (sh_sh4_register_type): New function.
3556 (sh_default_register_virtual_type): Remove.
3557 (sh_default_register_type): New function.
3558 (do_fv_register_info): Add parameters to accomodate call from
3559 sh_print_registers_info.
3560 (do_dr_register_info): Ditto.
3561 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3562 Add parameters to accomodate call from sh_print_registers_info.
3563 (sh_do_fp_register): Ditto.
3564 (sh64_do_pseudo_register): Call do_dr_register_info,
3565 do_fv_register_info and sh_do_fp_register with default parameters.
3566 (sh_do_register): Add parameters to accomodate call from
3567 sh_print_registers_info.
3568 (sh_print_register): Ditto.
3569 (sh_print_registers_info): Rename from sh_do_registers_info.
3570 Add parameters to be used as gdbarch_print_registers_info
3571 implementation. Accomodate removed do_pseudo_register function
3572 pointer.
3573 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3574 function pointer. Call sh_print_register with default parameters.
3575 (sh64_do_registers_info): Call sh_print_registers_info instead of
3576 sh_do_registers_info.
3577 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3578 detection of deprecated vs. non-deprecated functionality.
3579 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3580 function pointer assignments by direct function calls.
3581
3582 2003-07-15 Andrew Cagney <cagney@redhat.com>
3583
3584 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3585 (frame_register_unwind, create_new_frame): Ditto.
3586 (legacy_get_prev_frame, get_frame_type): Ditto.
3587 (get_frame_base_address): Use frame_base_find_by_frame.
3588 (get_frame_locals_address): Use frame_base_find_by_frame.
3589 (get_frame_args_address): Use frame_base_find_by_frame.
3590 * frame-base.h (frame_base_sniffer_ftype): Declare.
3591 (frame_base_append_sniffer): Declare.
3592 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3593 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3594 (frame_base_append_sniffer): New function.
3595 (frame_base_append_predicate): Add a NULL sniffer.
3596 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3597 (struct frame_base_table): Add "sniffer".
3598 (frame_base_free): Free the "sniffer" table.
3599 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3600 (frame_unwind_append_sniffer): Declare.
3601 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3602 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3603 (struct frame_unwind_table): Add "sniffer", delete "middle".
3604 (append_predicate): Add "sniffer" parameter, append the sniffer.
3605 (frame_unwind_init): Update append_predicate call.
3606 (frame_unwind_append_sniffer): New function.
3607 (frame_unwind_append_predicate): Update append_predicate call.
3608 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3609
3610 2003-07-15 Andrew Cagney <cagney@redhat.com>
3611
3612 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3613 before code inhibiting repeated unwind attempts. Add to
3614 commentary on that test's problems.
3615 * blockframe.c (inside_main_func): Look for "main" in the minimal
3616 symbol table.
3617 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3618 identical.
3619
3620 2003-07-15 Andrew Cagney <cagney@redhat.com>
3621
3622 * complaints.c (struct explanation): Define.
3623 (struct complaints): Change type of "explanation" to "struct
3624 explanation".
3625 (symfile_explanations): Convert to a "struct explanation" table.
3626 (vcomplaint): Update.
3627
3628 2003-07-15 Michal Ludvig <mludvig@suse.cz>
3629
3630 * x86-64-linux-nat.c (regmap): Removed.
3631 (supply_gregset, fill_gregset): Call
3632 x86_64_linux_(fill,supply)_gregset functions.
3633 * x86-64-linux-tdep.c (USER_*): New defines.
3634 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3635 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3636 New functions.
3637 (fetch_core_registers): Ditto.
3638 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3639 * x86-64-linux-tdep.h: New file.
3640 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3641 and core-regset.o.
3642 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3643
3644 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3645
3646 * x86-64-tdep.c (x86_64_store_return_value): Use
3647 regcache_cooked_write_part instead of regcache_cooked_write.
3648
3649 * configure.host: Add x86_64-*-freebsd*.
3650 * configure.tgt: Add x86_64-*-freebsd*.
3651 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3652 * amd64fbsd-nat.c: New file.
3653 * amd64fbsd-tdep.c: New file.
3654 * config/i386/nm-fbsd64.h: New file.
3655 * config/i386/fbsd64.mh: New file.
3656 * config/i386/fbsd64.mt: New file.
3657
3658 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3659
3660 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3661 `sc_regs_offset' and `sc_fpregs_offset'.
3662 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3663 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3664 (alpha_sigtramp_register_address): Rewrite to use new members of
3665 `struct gdbarch_tdep'.
3666 (alpha_gdbarch_init): Initialize new members of struct
3667 gdbarch_tdep'.
3668 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3669 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3670 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3671 (alphafbsd_pc_in_sigtramp): Implement.
3672 (alphafbsd_sigtramp_offset): New function.
3673 (alphafbsd_sigcontext_addr): New function.
3674 (alphafbsd_init_abi): Initialize signal trampoline related members
3675 of `struct gdbarch_tdep'.
3676 (_initialize_alphafbsd_tdep): Add prototype.
3677
3678 2003-07-11 Theodore A. Roth <troth@openavr.org>
3679
3680 * Makefile.in (install-only): Quote sed expression when generating
3681 transformed_name.
3682
3683 2003-07-11 Richard Henderson <rth@redhat.com>
3684
3685 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3686 * dwarf2-frame.c: Include complaints.h.
3687 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3688 variable initialization; return NULL on error.
3689 (decode_frame_entry): New.
3690
3691 2003-07-11 Andrew Cagney <cagney@redhat.com>
3692
3693 * frame.h (frame_address_in_block): Delete declaration.
3694 * blockframe.c (frame_address_in_block): Delete function.
3695 (get_frame_block): Use get_frame_address_in_block.
3696 (block_innermost_frame): Ditto.
3697 * stack.c (print_frame, backtrace_command_1): Ditto.
3698
3699 * frame.h (get_frame_address_in_block): Declare.
3700 (frame_unwind_address_in_block): Declare.
3701 * frame.c (frame_unwind_address_in_block): New function.
3702 (get_frame_address_in_block): New function.
3703
3704 2003-07-10 Andrew Cagney <cagney@redhat.com>
3705
3706 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3707 pre-default. Note: re-generate has no effect.
3708
3709 2003-07-10 Andrew Cagney <cagney@redhat.com>
3710
3711 * gdbarch.sh: When a variable, but not a function, compare against
3712 0. Fix problem in previous patch.
3713 * gdbarch.c: Re-generate.
3714
3715 2003-07-10 Andrew Cagney <cagney@redhat.com>
3716
3717 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3718 functions against NULL, not 0.
3719 * gdbarch.c: Re-generate.
3720
3721 2003-07-10 Fred Fish <fnf@ninemoons.com>
3722
3723 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3724 null string instead of a null pointer.
3725 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3726
3727 2003-07-09 Michael Snyder <msnyder@redhat.com>
3728
3729 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3730
3731 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3732
3733 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3734 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3735 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3736 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3737 * x86-64-tdep.c: ... from here.
3738
3739 2003-07-09 Andreas Schwab <schwab@suse.de>
3740
3741 * m68k-tdep.h (enum struct_return): Define.
3742 (struct gdbarch_tdep): Add struct_return.
3743 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3744 bytes are padded to the right, not to the left. Pass struct value
3745 address in register %a1, not on stack.
3746 (m68k_use_struct_convention): New function.
3747 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3748 struct_return in tdep to pcc_struct_return.
3749 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3750 reg_struct_return.
3751
3752 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3753
3754 * somread.c (som_symfile_offsets): Fix compilation error.
3755
3756 2003-07-09 Andrew Cagney <cagney@redhat.com>
3757
3758 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3759 Add comments about the checks.
3760
3761 2003-07-08 Andrew Cagney <cagney@redhat.com>
3762
3763 * Makefile.in: Make dependency section headers consistent.
3764 (config_h): Move to $BUILD headers section.
3765 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3766 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3767 (ada-exp.tab.c): Move to YACC/LEX section.
3768 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3769 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3770
3771 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3772
3773 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3774 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3775 of strerror with safe_strerror, use ISO C function definitions,
3776 and replace instances of sprintf with snprintf.
3777
3778 2003-07-07 Andrew Cagney <cagney@redhat.com>
3779
3780 * frame.c (get_prev_frame): Enable check for identical frames.
3781 Update comments. Update error messages.
3782
3783 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3784
3785 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3786
3787 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3788
3789 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3790 sort_symtab_syms, no longer necessary.
3791
3792 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3793
3794 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3795
3796 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3797
3798 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3799 (mips_register_byte): Likewise.
3800
3801 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3802
3803 * Makefile.in (sparc_tdep_h): New.
3804 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3805 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3806 * sparc-linux-nat.c: Include "sparc-tdep.h".
3807 * sparc-nat.c: Likewise.
3808 * sparc-tdep.c: Likewise.
3809 * sparc64nbsd-nat.c: Likewise.
3810 * sparcnbsd-nat.c: Likewise.
3811 * sparcnbsd-tdep.c: Likewise.
3812 * sparc-tdep.h: New file.
3813 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3814 and sparc_npc_regnum.
3815
3816 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3817
3818 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3819 (mips_linux_cannot_store_register): List supported instead of
3820 unsupported registers.
3821
3822 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3823
3824 * disasm.c (dump_insns): Separate instructions from addresses.
3825
3826 2003-07-07 Andreas Schwab <schwab@suse.de>
3827
3828 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3829 dependencies.
3830 * m68k-tdep.c (NUM_FREGS): Delete.
3831 (SIG_PC_FP_OFFSET): Delete.
3832 (TARGET_M68K): Delete.
3833 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3834 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3835 P_MOVEL_SP, P_MOVEML_SP): Define.
3836 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3837 P_TRAP): Delete.
3838 (m68k_register_raw_size): Delete.
3839 (m68k_register_virtual_size): Delete.
3840 (m68k_register_type): Renamed from m68k_register_virtual_type and
3841 add gdbarch argument.
3842 (m68k_store_struct_return): Delete.
3843 (m68k_deprecated_extract_return_value): Delete.
3844 (m68k_deprecated_extract_struct_value_address): Delete.
3845 (m68k_frame_chain): Delete.
3846 (m68k_frame_saved_pc): Delete.
3847 (m68k_fix_call_dummy): Delete.
3848 (m68k_push_dummy_frame): Delete.
3849 (m68k_pop_frame): Delete.
3850 (m68k_extract_return_value): New function.
3851 (m68k_store_return_value): Rewrite using regcache.
3852 (m68k_extract_struct_value_address): Rewrite using regcache.
3853 (m68k_push_dummy_call): New function.
3854 (struct m68k_frame_cache): Define.
3855 (m68k_alloc_frame_cache): New function.
3856 (m68k_analyze_frame_setup): New function.
3857 (m68k_analyze_register_saves): New function.
3858 (m68k_analyze_prologue): New function.
3859 (m68k_skip_prologue): Rewrite using above functions.
3860 (m68k_unwind_pc): New function.
3861 (m68k_frame_cache): New function.
3862 (m68k_frame_this_id): New function.
3863 (m68k_frame_prev_register): New function.
3864 (m68k_frame_unwind): New variable.
3865 (m68k_frame_p): New function.
3866 (m68k_sigtramp_frame_cache): New function.
3867 (m68k_sigtramp_frame_this_id): New function.
3868 (m68k_sigtramp_frame_prev_register): New function.
3869 (m68k_sigtramp_frame_unwind): New variable.
3870 (m68k_sigtramp_frame_p): New function.
3871 (m68k_frame_base_address): New function.
3872 (m68k_frame_base): New function.
3873 (m68k_unwind_dummy_id): New function.
3874 (fill_gregset): Use regcache_collect.
3875 (fill_fpregset): Likewise.
3876 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3877 defined.
3878 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3879 deprecated_init_frame_pc, deprecated_store_struct_return,
3880 deprecated_extract_return_value, deprecated_store_return_value,
3881 deprecated_frame_chain, deprecated_frame_saved_pc,
3882 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3883 deprecated_register_virtual_size,
3884 deprecated_max_register_raw_size,
3885 deprecated_max_register_virtual_size,
3886 deprecated_register_virtual_type, deprecated_register_size,
3887 deprecated_register_byte, deprecated_register_bytes,
3888 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3889 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3890 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3891 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3892 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3893 deprecated_push_dummy_frame, deprecated_pop_frame,
3894 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3895 only if SYSCALL_TRAP is defined. Set extract_return_value,
3896 store_return_value, extract_struct_value_address, register_type,
3897 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3898 predicates.
3899 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3900 M68K_MAX_REGISTER_SIZE): Define.
3901 (struct m68k_sigtramp_info): Define.
3902 (struct gdbarch_tdep): Add get_sigtramp_info.
3903 * m68klinux-nat.c (fetch_register): Use register_size instead of
3904 REGISTER_RAW_SIZE. Don't put assignment in if.
3905 (store_register): Likewise.
3906 (fetch_inferior_registers): Likewise.
3907 (store_inferior_registers): Likewise.
3908 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3909 (m68k_linux_frame_saved_pc): Delete.
3910 (m68k_linux_sigcontext_reg_offset,
3911 m68k_linux_ucontext_reg_offset): Define.
3912 (m68k_linux_get_sigtramp_info): New function.
3913 (m68k_linux_extract_return_value): Rewrite using regcache.
3914 (m68k_linux_store_return_value): Likewise.
3915 (m68k_linux_extract_struct_value_address): Likewise.
3916 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3917 Don't set deprecated_frame_saved_pc,
3918 deprecated_extract_return_value, deprecated_store_return_value,
3919 deprecated_extract_struct_value_address. Set
3920 extract_return_value, store_return_value,
3921 extract_struct_value_address.
3922
3923 2003-07-07 Andrew Cagney <cagney@redhat.com>
3924
3925 * expprint.c: Include "user-regs.h" instead of "frame.h".
3926 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3927 frame_map_regnum_to_name.
3928 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3929 (frame_map_name_to_regnum): Simplify, call
3930 user_reg_map_name_to_regnum.
3931 (frame_map_regnum_to_name): Simplify, call
3932 user_reg_map_regnum_to_name.
3933 (frame_register_unwind): Update.
3934 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3935 (_initialize_frame_reg): Call user_reg_add_builtin.
3936 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3937 (value_of_register): Use value_of_user_reg.
3938 * eval.c (evaluate_subexp_standard): Update.
3939 * parse.c (write_dollar_variable): Update.
3940 * d10v-tdep.c (d10v_print_registers_info): Update.
3941 * infcmd.c (registers_info): Update.
3942 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3943 (builtin_regs_h): Delete macro.
3944 (user_regs_h): Define.
3945 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3946 (builtin-regs.o): Delete target.
3947 (user-regs.o): Specify dependencies.
3948 (expprint.o): Update dependencies.
3949 (findvar.o): Update dependencies.
3950 (frame.o): Update dependencies.
3951 (std-regs.o): Update dependencies.
3952
3953 2003-07-06 Christopher Faylor <cgf@redhat.com>
3954
3955 * win32-nat.c (solib_symbols_add): Use one variable for all section
3956 address stuff. Pass variable rather than address of variable to
3957 safe_symbol_file_add.
3958
3959 2003-07-06 Andreas Schwab <schwab@suse.de>
3960
3961 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3962
3963 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3964
3965 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3966
3967 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3968
3969 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3970
3971 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3972
3973 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3974 * config/i386/nto.mh: New file.
3975 * config/i386/nm-nto.h: New file.
3976 * configure.host: Add i[3456]86-*-nto*.
3977
3978 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3979
3980 * remote-vx.c (vx_add_symbols): Fix compilation error.
3981
3982 2003-07-03 Andrew Cagney <cagney@redhat.com>
3983
3984 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3985 * gdbarch.h, gdbarch.c: Re-generate.
3986 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3987 (legacy_register_name): Declare.
3988 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3989 (REGISTER_NAME): Define.
3990 * sparc-tdep.c (legacy_register_name): New function.
3991 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3992 (REGISTER_NAME): Define.
3993 (hppa64_register_name): Declare.
3994 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3995 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3996 (hppa64_register_name): New function.
3997 (hppa_register_name): New function.
3998 * arch-utils.c (legacy_register_name): Delete.
3999 * arch-utils.h (legacy_register_name): Delete.
4000
4001 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
4002
4003 * cli/cli-interp.c (cli_interpreter_resume): Update the
4004 cli_uiout's stream to gdb_stdout.
4005
4006 2003-07-03 Andrew Cagney <cagney@redhat.com>
4007
4008 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4009 predicate.
4010 * gdbarch.h, gdbarch.c: Re-generate.
4011 * regcache.c (init_regcache_descr): Use legacy code when either
4012 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4013
4014 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4015
4016 * NEWS: Move "set logging" entry into GDB 6.0 section.
4017
4018 2003-07-02 Jim Blandy <jimb@redhat.com>
4019
4020 * s390-tdep.c (struct frame_extra_info): new member:
4021 'stack_bought_valid'.
4022 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4023 initialize fextra_info->stack_bought.
4024 (s390_frameless_function_invocation): Don't trust the value of
4025 fextra_info_ptr->stack_bought unless
4026 fextra_info->stack_bought_valid is set.
4027
4028 New S390 prologue analyzer.
4029 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4030 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4031 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4032 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4033 compute_x_addr, s390_on_stack, s390_store,
4034 s390_get_signal_frame_info): New functions.
4035 (S390_NUM_SPILL_SLOTS): New macro.
4036 (s390_get_frame_info): Rewritten.
4037 (is_arg_reg): Deleted.
4038
4039 Break out the decoding of S/390 instructions into separate
4040 functions, to make it more legible, and easier to check
4041 against the spec.
4042 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4043 is_rx, is_rxe): New functions.
4044 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4045 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4046 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4047 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4048 enums for opcode values. (Is this an improvement?)
4049
4050 2003-07-02 Andrew Cagney <cagney@redhat.com>
4051
4052 * i386-tdep.c: Revert change committed as part of trad-frame code
4053 below.
4054
4055 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4056
4057 * breakpoint.c (insert_catchpoint): Make static.
4058
4059 2003-07-02 Andreas Schwab <schwab@suse.de>
4060
4061 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4062 former ia64_push_arguments and ia64_push_return_address, and use
4063 regcache functions instead of read/write_register.
4064 (ia64_gdbarch_init): Set push_dummy_call instead of
4065 deprecated_push_arguments and deprecated_push_return_address.
4066
4067 2003-07-01 Andreas Jaeger <aj@suse.de>
4068
4069 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4070 before the call.
4071 Set %rax only to number of SSE registers used.
4072
4073 2003-07-01 Andrew Cagney <cagney@redhat.com>
4074
4075 * trad-frame.h: Update comments, a -1 .addr is reserved.
4076 (trad_frame_value_p, trad_frame_addr_p): Declare.
4077 (trad_frame_reg_p): Declare.
4078 (trad_frame_set_value): Rename trad_frame_register_value.
4079 (trad_frame_set_unknown): Declare.
4080 * trad-frame.c (trad_frame_realreg_p): New function.
4081 (trad_frame_addr_p, trad_frame_value_p): New function.
4082 (trad_frame_set_unknown): New function.
4083 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4084 (trad_frame_prev_register): Use trad_frame_realreg_p,
4085 trad_frame_addr_p and trad_frame_value_p.
4086 (trad_frame_set_value): Rename trad_frame_register_value.
4087 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4088 and trad_frame_set_value.
4089
4090 2003-06-30 Jim Blandy <jimb@redhat.com>
4091
4092 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4093 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4094 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4095 for 16 registers, and then 32 more bytes.
4096 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4097 New macros.
4098 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4099 Move up in the file, since it's now used by is_simple_arg.
4100 (is_simple_arg): Don't assume registers are four bytes long.
4101 Exclude all double arguments. Extended floats are not simple
4102 args.
4103 (is_power_of_two): New function.
4104 (pass_by_copy_ref): Call is_power_of_two, and check that the
4105 length fits in a register, rather than listing all the acceptable
4106 sizes. Extended floats are not passed by reference.
4107 (s390_push_arguments): Don't assume registers are four bytes long.
4108 Reserve an argument register to point to the buffer for structures
4109 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4110 S390_STACK_FRAME_OVERHEAD.
4111
4112 2003-06-30 Andreas Schwab <schwab@suse.de>
4113
4114 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4115 format error message.
4116
4117 2003-06-30 Joel Brobecker <brobecker@gnat.com>
4118
4119 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4120
4121 2003-06-30 David Carlton <carlton@kealia.com>
4122
4123 Band-aid for PR c++/1245.
4124 * Makefile.in (cp-support.o): Depend on complaints_h.
4125 * cp-support.c: Include complaints.h. Add declaration for
4126 find_last_component.
4127 (cp_find_first_component): Separate code into
4128 cp_find_first_component_aux.
4129 (cp_find_first_component_aux): Call demangled_name_complaint.
4130 (demangled_name_complaint): New.
4131
4132 2003-06-30 Andrew Cagney <cagney@redhat.com>
4133
4134 * remote.c (remote_write_bytes): Explicitly compute and then use
4135 the payload size. Update comments to reflect. Fixes problem of
4136 GDB not sending small packets as found by Fred Fish.
4137
4138 2003-06-30 Andrew Cagney <cagney@redhat.com>
4139
4140 * remote.c (remote_async_wait): Fix -Wformat problem.
4141
4142 2003-06-29 Andrew Cagney <cagney@redhat.com>
4143
4144 * remote.c (remote_wait): Call error, and not warning, when the
4145 packet is corrupt.
4146 (remote_async_wait): Ditto.
4147
4148 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4149
4150 * sparc-tdep.c (sparc_y_regnum): Make external again.
4151
4152 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4153
4154 * cli/cli-logging.c (pop_output_files): Add void to function
4155 definition.
4156
4157 2003-06-29 Andrew Cagney <cagney@redhat.com>
4158
4159 * frame.c (frame_register_unwind): Use unsigned char when dumping
4160 the buffer contents.
4161
4162 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
4163
4164 * cli/cli-logging.c: New file.
4165 * cli-out.c (struct ui_out_data): Add original_stream.
4166 (cli_redirect): New function.
4167 (cli_ui_out_impl): Add cli_redirect.
4168 (cli_out_new): Initialize original_stream.
4169 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4170 (uo_redirect, ui_out_redirect): New.
4171 * ui-out.h (struct ui_out_impl): Add redirect member.
4172 (redirect_ftype): New.
4173 (ui_out_redirect): Add prototype.
4174 * Makefile.in: Add rules for cli-logging.c.
4175 * NEWS: Mention "set logging".
4176
4177 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4178
4179 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4180
4181 2003-06-27 Andrew Cagney <cagney@redhat.com>
4182
4183 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4184 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4185 * avr-tdep.c (avr_call_dummy_address): Delete function.
4186 (avr_gdbarch_init): Do not set call_dummy_address.
4187
4188 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4189
4190 * symfile.c (syms_from_objfile): Move variables to inner block.
4191 Move the checks for the non-mainline case a bit earlier to avoid
4192 doing some useless computations.
4193
4194 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4195
4196 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4197
4198 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
4199
4200 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4201 sections.
4202
4203 2003-06-26 Michael Chastain <mec@shout.net>
4204
4205 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4206 gdb/testsuite/gdb.c++/pr-1210.exp.
4207
4208 2003-06-26 Andrew Cagney <cagney@redhat.com>
4209
4210 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4211 altivec_expression.h and altivec_registers.h.
4212
4213 2003-06-26 Andrew Cagney <cagney@redhat.com>
4214
4215 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4216 info->mach when MIPS16. Patch suggested by Fred Fish.
4217
4218 2003-06-26 Andrew Cagney <cagney@redhat.com>
4219
4220 * utils.c (internal_vproblem): Print the problem to a reason
4221 buffer and then pass to query. Make the msg variable more local.
4222
4223 2003-06-26 Andrew Cagney <cagney@redhat.com>
4224
4225 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4226 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4227 * gdbarch.h, gdbarch.c: Re-generate.
4228 * frame-base.c (default_frame_args_address): Update. Use
4229 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4230 not available.
4231 (default_frame_locals_address): Ditto for
4232 DEPRECATED_FRAME_LOCALS_ADDRESS.
4233 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4234 (vax_frame_num_args): Update.
4235 (vax_gdbarch_init): Update.
4236 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4237 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4238 * mcore-tdep.c (mcore_gdbarch_init): Update.
4239 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4240 * ia64-tdep.c (ia64_gdbarch_init): Update.
4241 * symtab.h (address_class): Update comments.
4242 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4243 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4244 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4245 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4246 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4247 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4248 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4249 * alpha-mdebug-tdep.c: Update.
4250 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4251
4252 2003-06-26 Andreas Jaeger <aj@suse.de>
4253
4254 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4255 of SSE registers so that varargs functions work. Rework handling
4256 of passing arguments on the stack.
4257 (x86_64_store_return_value): Return double and float values in SSE
4258 register.
4259
4260 2003-06-24 Michael Chastain <mec@shout.net>
4261
4262 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4263 the "constructor breakpoints ignored" bug.
4264
4265 2003-06-25 David Carlton <carlton@kealia.com>
4266
4267 * MAINTAINERS: Update e-mail address.
4268
4269 2003-06-24 Jim Blandy <jimb@redhat.com>
4270
4271 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4272
4273 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4274 function.
4275 (ppc_linux_init_abi): Register it as the
4276 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4277
4278 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4279 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4280 method.
4281
4282 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4283 (ppc64_standard_linkage_target): Use it.
4284
4285 2003-06-23 Andrew Cagney <cagney@redhat.com>
4286
4287 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4288 for 0 "int0" and 4 "int32" sized registers.
4289 * gdbtypes.c (builtin_type_int0): Define.
4290 (build_gdbtypes): Initialize builtin_type_int0.
4291 * gdbtypes.h (builtin_type_int0): Declare.
4292
4293 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4294
4295 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4296 as characters are unsigned.
4297
4298 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4299
4300 PR gdb/1179
4301 * dwarfread.c (struct_type): Skip static fields without crashing.
4302
4303 2003-06-22 Andrew Cagney <cagney@redhat.com>
4304
4305 GDB 6.0 branch created.
4306 * README: Update.
4307 * PROBLEMS: Update. Empty.
4308 * NEWS: Update.
4309
4310 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4311
4312 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4313 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4314
4315 2003-06-22 Andrew Cagney <cagney@redhat.com>
4316
4317 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4318 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4319 Velikov.
4320
4321 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4322
4323 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4324 compilers.
4325
4326 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4327
4328 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4329 argument of val_print.
4330 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4331 to the address argument of baseclass_offset or target_read_memory.
4332 Do add it to the argument of cp_print_value_fields.
4333
4334 2003-06-21 Andrew Cagney <cagney@redhat.com>
4335
4336 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4337 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4338 instead of 0..NUM_REGS.
4339 (mips_register_reggroup_p): New function.
4340 (mips_pseudo_register_write): New function.
4341 (mips_pseudo_register_read): New function.
4342 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4343 based on the register's type.
4344 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4345 cooked.
4346 (mips_get_saved_register): Simplify. Assert that REGNO is a
4347 pseudo / cooked.
4348 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4349 (mips_register_type): Replace mips_register_virtual_type. Map
4350 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4351 when available.
4352 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4353 that the register is cooked / virtual.
4354 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4355 Only get the extra info when needed.
4356 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4357 (mips32_heuristic_proc_desc): Fetch the cooked register.
4358 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4359 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4360 (mips_print_register): Use gdbarch_register_type, instead of
4361 REGISTER_VIRTUAL_TYPE.
4362 (print_gp_register_row): Use gdbarch_register_type, instead of
4363 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4364 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4365 Print the pseudo / cooked registers.
4366 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4367 Print the pseudo / cooked registers.
4368 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4369 REG_NUM is pseudo / cooked.
4370 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4371 (mips_n32n64_xfer_return_value): Ditto.
4372 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4373 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4374 (mips_register_sim_regno): New function.
4375 (mips_gdbarch_init): Set deprecated_register_byte,
4376 register_group_p, pseudo_register_write, pseudo_register_read,
4377 register_sim_regno, and num_pseudo_regs. Set register_type,
4378 instead of register_virtual_type.
4379 * Makefile.in (mips-tdep.o): Update dependencies.
4380 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4381 REGISTER_VIRTUAL_TYPE.
4382 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4383 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4384 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4385 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4386 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4387
4388 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4389
4390 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4391 * cli/cli-cmds.c: Include "gdb_vfork.h".
4392 (shell_escape): Use vfork.
4393
4394 2003-06-21 Andrew Cagney <cagney@redhat.com>
4395
4396 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4397 32 bit floating-point register saves.
4398
4399 * frame.h (deprecated_unwind_get_saved_register): Delete.
4400 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4401 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4402 and deprecated_get_next_frame_hack instead of
4403 deprecated_unwind_get_saved_register.
4404
4405 * mips-tdep.c (mips_dump_tdep): Do not print
4406 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4407
4408 * frame.c (get_frame_register): New function.
4409 (frame_unwind_register_signed): New function.
4410 (get_frame_register_signed): New function.
4411 (frame_unwind_register_unsigned): New function.
4412 (get_frame_register_unsigned): New function.
4413 * frame.h: Add comments on naming schema.
4414 (get_frame_register, frame_unwind_register_signed): Declare.
4415 (get_frame_register_signed, get_frame_register_signed): Declare.
4416 (frame_unwind_register_unsigned): Declare.
4417 (get_frame_register_unsigned): Declare.
4418
4419 2003-06-20 Theodore A. Roth <troth@openavr.org>
4420
4421 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4422
4423 2003-06-20 Theodore A. Roth <troth@openavr.org>
4424
4425 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4426 (avr_read_sp): Ditto.
4427
4428 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
4429
4430 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4431 * config/arm/nm-linux.h: Likewise.
4432 * config/arm/tm-linux.h: Likewise.
4433 * config/ia64/nm-linux.h: Likewise.
4434 * config/ia64/tm-ia64.h: Likewise.
4435 * config/s390/tm-linux.h: Likewise.
4436 * config/s390/tm-s390.h: Likewise.
4437 * s390-nat.c: Likewise.
4438 * s390-tdep.c: Likewise.
4439
4440 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4441 * config/ia64/linux.mt: Likewise.
4442 * config/m68k/linux.mh: Likewise.
4443 * config/mips/linux.mt: Likewise.
4444 * config/powerpc/linux.mh: Likewise.
4445 * config/sh/linux.mt: Likewise.
4446
4447 2003-06-19 Kris Warkentin <kewarken@qnx.com>
4448
4449 * solib.c (solib_open): Change tests for whether to search
4450 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4451 comments.
4452
4453 2003-06-19 Theodore A. Roth <troth@openavr.org>
4454
4455 * avr-tdep.c (avr_frame_address): Delete function.
4456 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4457 set_gdbarch_frame_args_address.
4458
4459 2003-06-19 Andrew Cagney <cagney@redhat.com>
4460
4461 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4462 (REGISTER_CONVERT_FROM_TYPE): Delete.
4463 (mips_register_convert_to_type): Delete declaration.
4464 (mips_register_convert_from_type): Delete declaration.
4465 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4466 kernel/.
4467
4468 2003-06-19 Michael Snyder <msnyder@redhat.com>
4469
4470 * linux-nat.h: New file.
4471 * linux-nat.c: Include linux-nat.h.
4472 * lin-lwp.c: Include linux-nat.h.
4473 Move struct lwp_info def to linux-nat.h.
4474 * linux-proc.c: Include linux-nat.h.
4475 (linux_make_note_section): Iterate over lwps instead of threads.
4476 (linux_do_thread_registers): Use lwp instead of merged pid.
4477 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
4478 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
4479 Add dependency on linux_nat_h.
4480
4481 2003-06-19 Theodore A. Roth <troth@openavr.org>
4482
4483 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4484
4485 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4486
4487 * varobj.c (get_type, get_target_type): Use check_typedef.
4488
4489 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4490
4491 * breakpoint.c (insert_catchpoint): Call internal_error.
4492
4493 2003-06-19 Theodore A. Roth <troth@openavr.org>
4494
4495 * avr-tdep.c (avr_push_dummy_code): Delete function.
4496 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4497
4498 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4499
4500 * arch-utils.c (default_prepare_to_proceed): Remove.
4501 (generic_prepare_to_proceed): Remove.
4502 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4503 (generic_prepare_to_proceed): Remove prototype.
4504 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4505 * gdbarch.c: Regenerate.
4506 * gdbarch.h: Regenerate.
4507 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4508 * hppah-nat.c (hppa_switched_threads): Remove.
4509 * infrun.c (prepare_to_proceed): New static function, copied from
4510 generic_prepare_to_proceed. Remove select_it argument.
4511 (proceed): Call prepare_to_proceed.
4512 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4513 variables.
4514 (ptrace_wait): Don't set the removed variables.
4515 (hppa_switched_threads): Remove.
4516 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4517 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4518 (lin_lwp_prepare_to_proceed): Remove prototype.
4519 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4520 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4521
4522 2003-06-18 Theodore A. Roth <troth@openavr.org>
4523
4524 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4525 trad-frame.h.
4526 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4527 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4528 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4529 (AVR_PROLOGUE_*): Enumerate prologue types.
4530 (struct frame_extra_info): Remove.
4531 (struct avr_unwind_cache): Define.
4532 (avr_write_sp): Delete function.
4533 (avr_read_fp): Ditto.
4534 (avr_init_extra_frame_info): Ditto.
4535 (avr_pop_frame): Ditto.
4536 (avr_frame_saved_pc): Ditto.
4537 (avr_saved_pc_after_call): Ditto.
4538 (avr_push_return_address): Ditto.
4539 (avr_frame_chain): Ditto.
4540 (avr_store_struct_return): Ditto.
4541 (avr_push_arguments): Ditto.
4542 (avr_scan_prologue): Update comments. Changed to set up the info for
4543 cache unwinding. Now returns end of prologue PC.
4544 (avr_skip_prologue): Better handling of functions lacking a prologue
4545 by using avr_scan_prologue.
4546 (avr_scan_arg_moves): New function.
4547 (avr_saved_regs_unwinder): Ditto.
4548 (avr_frame_unwind_cache): Ditto.
4549 (avr_unwind_pc): Ditto.
4550 (avr_frame_this_id): Ditto.
4551 (avr_frame_prev_register): Ditto.
4552 (avr_frame_p): Ditto.
4553 (avr_frame_base_address ): Ditto.
4554 (avr_unwind_dummy_id): Ditto.
4555 (avr_push_dummy_code): Ditto.
4556 (push_stack_item): Ditto.
4557 (pop_stack_item): Ditto.
4558 (avr_push_dummy_call): Ditto.
4559 (struct stack_item): Define.
4560 (avr_frame_unwind): Declare structure.
4561 (avr_frame_base): Ditto.
4562 (avr_gdbarch_init): Remove calls to
4563 set_gdbarch_deprecated_init_frame_pc,
4564 set_gdbarch_deprecated_target_read_fp,
4565 set_gdbarch_deprecated_dummy_write_sp,
4566 set_gdbarch_deprecated_fp_regnum,
4567 set_gdbarch_deprecated_push_arguments,
4568 set_gdbarch_deprecated_push_return_address,
4569 set_gdbarch_deprecated_pop_frame,
4570 set_gdbarch_deprecated_store_struct_return,
4571 set_gdbarch_deprecated_frame_init_saved_regs,
4572 set_gdbarch_deprecated_init_extra_frame_info,
4573 set_gdbarch_deprecated_frame_chain,
4574 set_gdbarch_deprecated_frame_saved_pc,
4575 set_gdbarch_deprecated_saved_pc_after_call.
4576 Add calls to set_gdbarch_push_dummy_call,
4577 set_gdbarch_push_dummy_code,
4578 frame_unwind_append_predicate,
4579 frame_base_set_default,
4580 set_gdbarch_unwind_dummy_id,
4581 set_gdbarch_unwind_pc.
4582 Wrap a long line.
4583
4584 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4585
4586 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4587 registers for H8/300S.
4588 (h8300_print_registers_info): Ditto.
4589 (h8300_gdbarch_init): Accommodate register count for H8/300S.
4590
4591 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
4592
4593 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4594 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4595 (lin_lwp_wait): Likewise. Update comments.
4596 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4597 (pull_pid_from_list, linux_record_stopped_pid): New.
4598
4599 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4600
4601 * ada-lang.c (scan_discrim_bound): Name first argument.
4602 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4603 declared by ALL_BLOCK_SYMBOLS.
4604
4605 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4606
4607 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4608 ("regcache.h"): Include it.
4609 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4610
4611 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4612
4613 * NEWS: Mention gdbserver detach change and "disconnect" command.
4614 * infcmd.c (disconnect_command): New function.
4615 (_initialize_infcmd): Add ``disconnect'' command.
4616 * remote.c (remote_async_detach): Delete.
4617 (remote_detach): Merge remote_async_detach.
4618 (remote_disconnect): New.
4619 (init_remote_ops): Set to_disconnect.
4620 (init_remote_cisco_ops): Likewise.
4621 (init_remote_async_ops): Likewise. Use remote_detach.
4622 * target.c (cleanup_target): Default to_disconnect.
4623 (update_current_target): Inherit to_disconnect.
4624 (target_disconnect, debug_to_disconnect): New functions.
4625 (setup_target_debug): Set to_disconnect.
4626 * target.h (struct target_ops): Add to_disconnect.
4627 (target_disconnect): Add prototype.
4628
4629 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4630
4631 * breakpoint.c (insert_catchpoint): New function.
4632 (insert_breakpoints): Use catch_exceptions to call
4633 insert_catchpoint. Disable catchpoints if they fail to insert.
4634
4635 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4636
4637 * symfile.c (reread_symbols): Clear sym_private.
4638
4639 2003-06-17 Andrew Cagney <cagney@redhat.com>
4640
4641 * trad-frame.h (struct frame_info): Add opaque declaration.
4642 * remote-fileio.h (struct cmd_list_element): Add opaque
4643 declaration.
4644 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4645 comments.
4646
4647 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4648
4649 * remote.c (remote_prepare_to_store): Replace call to
4650 deprecated_read_register_bytes with multiple regcache_raw_read
4651 calls.
4652
4653 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4654
4655 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4656 (nto_find_and_open_solib): Likewise.
4657 (nto_init_solib_absolute_prefix): Likewise.
4658 (_initialize_nto_tdep): Fix indentation.
4659
4660 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4661
4662 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4663
4664 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4665
4666 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4667
4668 2003-06-17 Jim Blandy <jimb@redhat.com>
4669
4670 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4671
4672 2003-06-16 Theodore A. Roth <troth@openavr.org>
4673
4674 * avr-tdep.c (avr_extract_return_value): New function.
4675 (avr_gdbarch_init): Set extract_return_value method.
4676
4677 2003-06-16 Andrew Cagney <cagney@redhat.com>
4678
4679 * frame.h (deprecated_get_next_frame_hack): Declare.
4680 * frame.c (legacy_saved_regs_prev_register): Only require
4681 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4682 there are always saved regs.
4683 (deprecated_generic_get_saved_register): Do not require
4684 DEPRECATED_FRAME_INIT_SAVED_REGS.
4685 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4686 use frame ID unwind instead.
4687 (deprecated_get_next_frame_hack): New function.
4688
4689 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4690
4691 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4692 (h8300_push_dummy_call): ...this function. Some minor optimization.
4693 (h8300_push_return_address): Remove.
4694 (h8300_gdbarch_init): Remove calls to
4695 set_gdbarch_deprecated_dummy_write_sp,
4696 set_gdbarch_deprecated_push_arguments and
4697 set_gdbarch_deprecated_push_return_address.
4698 Add call to set_gdbarch_push_dummy_call.
4699
4700 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4701
4702 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4703 (E_PSEUDO_EXR_REGNUM): Ditto.
4704 (h8300_is_argument_spill): Check for instructions moving argument
4705 registers into safe registers.
4706 (h8300_skip_prologue): Check for stm instruction to push registers
4707 used for register variables onto stack.
4708 (gdb_print_insn_h8300): Remove.
4709 (h8300_examine_prologue): Add a comment.
4710 (h8300_register_name): Take pseudo registers into account.
4711 (h8300s_register_name): Ditto.
4712 (h8300sx_register_name): Ditto.
4713 (h8300_print_register): Ditto.
4714 (h8300_print_registers_info): Define "nice" printing order.
4715 (h8300_saved_pc_after_call): Take pseudo registers into account.
4716 (h8300_register_type): Ditto. Return type used for remote connection
4717 when requesting real CCR or EXR register, return actual type when
4718 requesting pseudo CCR or EXR.
4719 (h8300_pseudo_register_read): New function.
4720 (h8300_pseudo_register_write): Ditto.
4721 (h8300_dbg_reg_to_regnum): Ditto.
4722 (h8300s_dbg_reg_to_regnum): Ditto.
4723 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4724 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4725 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4726 set_gdbarch_print_insn architecture dependent.
4727 Call set_gdbarch_pseudo_register_read and
4728 set_gdbarch_pseudo_register_write.
4729 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4730
4731 2003-06-16 Andrew Cagney <cagney@redhat.com>
4732
4733 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4734 * gdbarch.h, gdbarch.c: Re-generate.
4735 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4736 * s390-tdep.c (s390_gdbarch_init): Update.
4737 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4738 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4739 * mips-tdep.c (mips_gdbarch_init): Update.
4740 * mcore-tdep.c (mcore_gdbarch_init): Update.
4741 * cris-tdep.c (cris_gdbarch_init): Update.
4742 * infcall.c (call_function_by_hand): Update.
4743 * ia64-tdep.c (ia64_push_arguments): Update comment.
4744 * frame.c (legacy_get_prev_frame): Do not assume
4745 SAVE_DUMMY_FRAME_TOS_P.
4746 * dummy-frame.c (find_dummy_frame): Update comment.
4747
4748 2003-06-16 Andrew Cagney <cagney@redhat.com>
4749
4750 * regcache.c (do_cooked_read): Do not use register_valid_p.
4751
4752 2003-06-15 Theodore A. Roth <troth@openavr.org>
4753
4754 * avr-tdep.c (avr_register_type): Remove a blank line.
4755 (avr_scan_prologue): Correct some comments.
4756
4757 2003-06-15 Theodore A. Roth <troth@openavr.org>
4758
4759 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4760 prologue types.
4761 Properly scan prologues generated by gcc with the -mcall-prologues
4762 option.
4763 Add code to scan -mcall-prologues for mega devices.
4764
4765 2003-06-15 Theodore A. Roth <troth@openavr.org>
4766
4767 * avr-tdep.c (avr_register_byte): Delete function.
4768 (avr_register_raw_size): Delete function.
4769 (avr_register_virtual_size): Delete function.
4770 (avr_register_virtual_type): Delete function.
4771 (avr_register_type): New function.
4772 (avr_address_to_pointer): Remove unused code.
4773 (avr_read_fp): Need to read FP as two separate bytes due to change to
4774 avr_register_type() usage.
4775 (avr_gdbarch_init): Don't set deprecated_register_size.
4776 Don't set deprecated_register_bytes.
4777 Don't set deprecated_register_byte.
4778 Don't set deprecated_register_raw_size.
4779 Don't set deprecated_max_register_raw_size.
4780 Don't set deprecated_register_virtual_size.
4781 Don't set deprecated_max_register_virtual_size.
4782 Don't set deprecated_register_virtual_type.
4783 Set register_type method.
4784
4785 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4786
4787 * Makefile.in (linux-nat.o): Add rule.
4788 * linux-nat.c: New file.
4789 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4790 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4791 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4792 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4793 * config/arm/linux.mh (NATDEPFILES): Likewise.
4794 * config/i386/linux.mh (NATDEPFILES): Likewise.
4795 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4796 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4797 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4798 * config/mips/linux.mh (NATDEPFILES): Likewise.
4799 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4800 * config/s390/s390.mh (NATDEPFILES): Likewise.
4801 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4802
4803 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4804
4805 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4806 replace out-of-date comment.
4807
4808 2003-06-15 Andrew Cagney <cagney@redhat.com>
4809
4810 * rdi-share/host.h (Fail): Change to a varargs function.
4811 * remote-rdi.c (Fail): Update.
4812
4813 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4814
4815 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4816 (i386_convert_register_p, i386_register_to_value,
4817 i386_register_from_value): Handle types longer than 8 bytes.
4818
4819 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4820
4821 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4822 Move floating-point code to new function in i387-tdep.c.
4823 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4824 New functions containing code moved here from i386-tdep.c.
4825 * i387-tdep.h: Add opaque declaration for `struct type'.
4826 (i387_register_to_value, i387_value_to_register): New prototypes.
4827 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4828 (x86_64_init_abi): Set convert_register_p, register_to_value and
4829 value_to_register here.
4830
4831 2003-06-14 Andrew Cagney <cagney@redhat.com>
4832
4833 * mips-tdep.c (mips_register_to_value): Make static.
4834 (mips_value_to_register): Make static.
4835 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4836 * ia64-tdep.c (ia64_register_raw_size): Make static.
4837 (ia64_register_virtual_size): Make static.
4838 (ia64_register_byte): Make static.
4839 * i387-tdep.c: Include "i387-tdep.h".
4840 (print_387_control_word): Delete function.
4841 (print_387_status_word): Delete function.
4842 (print_387_status_bits): Delete function.
4843 (print_387_control_bits): Delete function.
4844 * Makefile.in (i387-tdep.o): Update dependencies.
4845 * rdi-share/host.h (Fail): Declare.
4846 * remote-rdi.c (Fail): Update to match declaration.
4847
4848 2003-06-14 Andrew Cagney <cagney@redhat.com>
4849
4850 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4851 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4852 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4853 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4854 * README: Delete reference to remote-array.
4855 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4856 (remote-array.o): Delete target.
4857 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4858 * remote-array.c: Delete file.
4859
4860 2003-06-14 Andrew Cagney <cagney@redhat.com>
4861 Mark Kettenis <kettenis@gnu.org>
4862
4863 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4864 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4865 parameter with "frame".
4866 * gdbarch.h, gdbarch.c: Re-generate.
4867 * frame.h (put_frame_register): Declare.
4868 * frame.c (put_frame_register): New function.
4869 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4870 (legacy_register_to_value): Rewrite, use "frame" to get the
4871 register value.
4872 (legacy_value_to_register): Rewrite, use "frame" to find the
4873 register's location before storing.
4874 * arch-utils.h (legacy_convert_register_p): Update.
4875 (legacy_register_to_value, legacy_value_to_register): Update.
4876 * findvar.c (value_from_register): Rewrite, eliminate use of
4877 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4878 "frame" to REGISTER_TO_VALUE.
4879 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4880 lval_reg_frame_relative + lval_register branch of the switch. Do
4881 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4882 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4883 I386_EDI_REGNUM): New defines.
4884 (i386_next_regnum, i386_convert_register_p,
4885 i386_register_to_value, i386_value_to_register): New functions.
4886 (i386_register_convertible, i386_register_convert_to_virtual,
4887 i386_convert_to_raw): Remove functions.
4888 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4889 value_to_register instead of register_convertible,
4890 register_convert_to_virtual and register_convert_to_raw.
4891 * mips-tdep.c (mips_convert_register_p): New function.
4892 (mips_value_to_register): Replace mips_register_convert_from_type.
4893 (mips_register_to_value): Replace mips_register_convert_to_type.
4894 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4895 register_to_value.
4896 * alpha-tdep.c (alpha_convert_register_p): Update.
4897 (alpha_value_to_register): Update, store the register.
4898 (alpha_register_to_value): Update, fetch the register.
4899
4900 2003-06-14 Theodore A. Roth <troth@openavr.org>
4901
4902 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4903 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4904 Don't set deprecated_call_dummy_words.
4905 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4906 Don't set remote_translate_xfer_address.
4907 (avr_io_reg_read_command): Remove commented out debug printf.
4908 Wrap a long line.
4909
4910 2003-06-14 Theodore A. Roth <troth@openavr.org>
4911
4912 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4913 causes gdb to seg fault.
4914
4915 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4916
4917 * sparc-nat.c (fetch_inferior_registers): Correct
4918 a reference to "registers".
4919
4920 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4921
4922 * Makefile.in (exc_request_U_h): Define
4923 (exc_request_S_h): Likewise.
4924 (msg_reply_S_h): Likewise.
4925 (msg_U_h): Likewise.
4926 (notify_S_h): Likewise.
4927 (process_reply_S_h): Likewise.
4928 (gnu-nat.o): Depend on gdb_obstack_h
4929 * gnu-nat.c: Include "gdb_obstack.h".
4930
4931 2003-06-13 Andrew Cagney <cagney@redhat.com>
4932
4933 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4934 * gdbarch.h, gdbarch.c: Re-generate.
4935
4936 2003-06-13 Andrew Cagney <cagney@redhat.com>
4937
4938 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4939 when deprecated REGISTER macros can be deleted.
4940 * gdbarch.h, gdbarch.c: Re-generate.
4941
4942 2003-06-13 Jim Blandy <jimb@redhat.com>
4943
4944 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4945 Linux entry point symbols for _dl_debug_state, too.
4946
4947 2003-06-13 Andrew Cagney <cagney@redhat.com>
4948
4949 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4950 available, do not use the FP register, and always save the TOS.
4951 * dummy-frame.c (dummy_frame_this_id): Do not assert
4952 SAVE_DUMMY_FRAME_TOS.
4953 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4954 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4955 (i386_push_dummy_call): Add 8 to the returned SP.
4956 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4957 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4958 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4959 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4960 (x86_64_push_dummy_call): Return "sp + 16".
4961 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4962 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4963 save_dummy_frame_tos.
4964
4965 2003-06-13 Jim Blandy <jimb@redhat.com>
4966
4967 * frv-tdep.c (frv_use_struct_convention): Delete static
4968 declaration for function deleted in my change of 2003-06-12.
4969
4970 2003-06-13 Theodore A. Roth <troth@openavr.org>
4971
4972 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4973 (avr_pointer_to_address): Shift code addrs left 1 bit.
4974 (avr_convert_from_func_ptr_addr): Delete function since operation is
4975 better handled by avr_address_to_pointer and avr_pointer_to_address.
4976 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4977
4978 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4979
4980 From Kelley Cook <kelleycook@wideopenwest.com>:
4981 * configure.host: Accept i[34567]86 variants.
4982 * configure.tgt: Likewise.
4983 * nlm/configure.in: Likewise.
4984 * nlm/configure: Regenerated.
4985
4986 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4987
4988 * arm-tdep.c (solib-svr4.h): Dont' include it.
4989 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4990 * arm-linux-tdep.c: ... here. Make static.
4991 (arm_linux_init_abi): Register it.
4992 (solib-svr4.h): Include it.
4993 * Makefile.in: Update dependencies.
4994 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4995 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4996
4997 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4998
4999 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5000 indicate registers used for return values.
5001 (struct frame_extra_info): Drop args_pointer and locals_pointer.
5002 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5003 members.
5004 (h8300_init_extra_frame_info): Ditto.
5005 (h8300_frame_locals_address): Removed.
5006 (h8300_frame_args_address): Removed.
5007 (h8300_extract_return_value): Use new regcache structure. Only care
5008 for 16 bit CPUs.
5009 (h8300h_extract_return_value): Same function for 32 bit CPUs.
5010 (h8300_store_return_value): Use new regcache structure. Only care
5011 for 16 bit CPUs.
5012 (h8300h_store_return_value): Same function for 32 bit CPUs.
5013 (h8300_store_struct_return): Removed.
5014 (h8300_extract_struct_value_address): Use new regcache structure.
5015 (h8300h_extract_struct_value_address): Removed.
5016 (h8300_push_dummy_code): New function.
5017 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5018 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5019 set_gdbarch_store_return_value architecture dependent.
5020 Call set_gdbarch_push_dummy_code and
5021 set_gdbarch_extract_struct_value_address.
5022 Remove calls to set_gdbarch_frame_args_address,
5023 set_gdbarch_frame_locals_address,
5024 set_gdbarch_deprecated_store_struct_return,
5025 set_gdbarch_deprecated_extract_return_value,
5026 set_gdbarch_deprecated_extract_struct_value_address,
5027 set_gdbarch_deprecated_call_dummy_words and
5028 set_gdbarch_deprecated_sizeof_call_dummy_words.
5029
5030 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5031
5032 * h8300-tdep.c (h8300_register_byte): Remove.
5033 (h8300h_register_byte): Remove.
5034 (h8300_register_virtual_type): Remove. Substitute by...
5035 (h8300_register_type): New function.
5036 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5037 (h8300h_extract_struct_value_address): Ditto.
5038 (h8300_gdbarch_init): Drop calls to
5039 set_gdbarch_deprecated_register_byte and
5040 set_gdbarch_deprecated_register_virtual_type.
5041 Add call to set_gdbarch_register_type.
5042
5043 2003-06-13 Andrew Cagney <cagney@redhat.com>
5044
5045 * gdbarch.sh: Update comments on registers.
5046 (deprecated_register_byte): Rename register_byte.
5047 (deprecated_register_raw_size): Rename register_raw_size.
5048 (deprecated_register_virtual_size): Rename register_virtual_size.
5049 (deprecated_register_virtual_type): Rename register_virtual_type.
5050 * gdbarch.h, gdbarch.c: Re-generate.
5051 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5052 * vax-tdep.c (vax_gdbarch_init): Update.
5053 * v850-tdep.c (v850_gdbarch_init): Update.
5054 * sparc-tdep.c (sparc_gdbarch_init): Update.
5055 * sh-tdep.c (sh_gdbarch_init): Update.
5056 * s390-tdep.c (s390_gdbarch_init): Update.
5057 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5058 * ns32k-tdep.c: Update.
5059 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5060 * mips-tdep.c (mips_gdbarch_init): Update.
5061 * mcore-tdep.c (mcore_gdbarch_init): Update.
5062 * m68k-tdep.c (m68k_gdbarch_init): Update.
5063 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5064 * ia64-tdep.c (ia64_gdbarch_init): Update.
5065 * hppa-tdep.c (hppa_gdbarch_init): Update.
5066 * h8300-tdep.c (h8300_gdbarch_init): Update.
5067 * frv-tdep.c (frv_gdbarch_init): Update.
5068 * cris-tdep.c (cris_gdbarch_init): Update.
5069 * avr-tdep.c (avr_gdbarch_init): Update.
5070 * alpha-tdep.c (alpha_gdbarch_init): Update.
5071 * arm-tdep.c (arm_gdbarch_init): Update.
5072
5073 2003-06-13 Andrew Cagney <cagney@redhat.com>
5074
5075 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5076 mips_o32_use_struct_convention with always_use_struct_convention.
5077
5078 2003-06-12 David Carlton <carlton@kealia.com>
5079
5080 * cp-namespace.c (cp_set_block_scope): Comment out
5081 processing_has_namespace_info branch.
5082
5083 2003-06-12 Jim Blandy <jimb@redhat.com>
5084
5085 Recognize and skip 64-bit PowerPC Linux linkage functions.
5086 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5087 insn_pattern, insns_match_pattern, d_field, ds_field): New
5088 functions, macros, and types for working with PPC instructions.
5089 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5090 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5091 ppc64_skip_trampoline_code): New functions, variables, and macros
5092 for recognizing and skipping linkage functions.
5093 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5094 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5095
5096 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5097 register offsets for both the 32- and 64-bit interfaces.
5098
5099 Actually finish the job started by my change of 2003-05-29.
5100 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5101 other #definition of this.
5102 (ppc_linux_skip_trampoline_code): Remove declaration.
5103 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5104 static.
5105 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5106 method for GDBARCH.
5107
5108 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5109 'long' on ppc64-*-linux*.
5110
5111 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5112 isn't #defined, assume the register doesn't exist: act as if
5113 tdep->ppc_mq_regnum were -1.
5114
5115 * configure.host, configure.tgt: Add entries for
5116 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5117 powerpc/linux.mt.
5118 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5119 New files.
5120
5121 * arch-utils.c (always_use_struct_convention): New function.
5122 * arch-utils.h (always_use_struct_convention): New prototype.
5123 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5124 (alpha_gdbarch_init): Register always_use_struct_convention,
5125 instead of alpha_use_struct_convention.
5126 * cris-tdep.c (cris_use_struct_convention): Delete.
5127 (cris_gdbarch_init): Register always_use_struct_convention,
5128 instead of cris_use_struct_convention.
5129 * frv-tdep.c (frv_use_struct_convention): Delete.
5130 (frv_gdbarch_init): Register always_use_struct_convention,
5131 instead of frv_use_struct_convention.
5132 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5133 (h8300_gdbarch_init): Register always_use_struct_convention,
5134 instead of h8300_use_struct_convention.
5135 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
5136 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5137 instead of mips_o32_use_struct_convention.
5138
5139 2003-06-12 Andrew Cagney <cagney@redhat.com>
5140
5141 * wince.c: Include "mips-tdep.h".
5142 * mips-tdep.h (mips_next_pc): Declare.
5143 * mcore-tdep.c: Make more local functions static.
5144 * Makefile.in (wince.o): Update dependencies.
5145
5146 2003-06-12 David Carlton <carlton@kealia.com>
5147
5148 * symtab.c (lookup_symbol_aux_minsyms): Replace
5149 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5150 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5151 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5152 SYMBOL_NATURAL_NAME.
5153
5154 2003-06-12 Andreas Schwab <schwab@suse.de>
5155
5156 * Makefile.in (tuiDisassem.o): Update dependencies.
5157
5158 2003-06-12 David Carlton <carlton@bactrian.org>
5159
5160 * symtab.h: Delete declaration of make_symbol_overload_list.
5161 Add declaration of lookup_partial_symbol.
5162 * symtab.c (remove_params): Move to cp-support.c.
5163 (overload_list_add_symbol, make_symbol_overload_list)
5164 (sym_return_val_size, sym_return_val_index): Ditto.
5165 (lookup_partial_symbol): Make extern.
5166 * cp-support.h: Add declaration of make_symbol_overload_list.
5167 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5168 symtab.h, and block.h.
5169 (remove_params): Move here from symtab.c.
5170 (overload_list_add_symbol, make_symbol_overload_list)
5171 (sym_return_val_size, sym_return_val_index): Ditto.
5172 * valops.c: Include cp-support.h.
5173 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5174 frame_h, and block_h.
5175 (valops.o): Depend on cp_support_h.
5176
5177 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
5178
5179 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5180 substitute by NUM_REGS throughout.
5181 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5182 (h8300s_register_name): New function for H8S registers.
5183 (h8300sx_register_name): Ditto for H8SX registers.
5184 (h8300_print_register): Revise register printing, avoid depending
5185 on 32 bit long.
5186 (h8300_register_byte): Only care for H8/300 registers.
5187 (h8300h_register_byte): New function for any other architecture.
5188 (h8300_register_raw_size): Remove.
5189 (h8300_register_virtual_type): Revise to return actually useful
5190 type.
5191 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5192 (h8300h_extract_struct_value_address): New function for any other
5193 architecture.
5194 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5195 set_gdbarch_register_name, set_gdbarch_register_byte,
5196 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5197 Remove calls to set_gdbarch_deprecated_register_size,
5198 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5199 set_gdbarch_deprecated_max_register_raw_size,
5200 set_gdbarch_register_virtual_size and
5201 set_gdbarch_deprecated_max_register_virtual_size entirely.
5202 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5203 set_gdbarch_long_double_bit.
5204
5205 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5206
5207 * doublest.c (convert_doublest_to_floatformat): When dealing
5208 with the implied integer bit, only alter mant_bits if we are
5209 processing a full 32 bits of mantissa.
5210
5211 2003-06-11 David Carlton <carlton@bactrian.org>
5212
5213 * dictionary.h: New.
5214 * dictionary.c: New.
5215 * block.h: Add opaque declaration for struct dictionary.
5216 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5217 'sym' members.
5218 (BLOCK_DICT): New macro.
5219 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5220 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5221 BLOCK_SHOULD_SORT.
5222 (ALL_BLOCK_SYMBOLS): Update definition.
5223 * Makefile.in (SFILES): Add dictionary.c.
5224 (dictionary_h): New.
5225 (COMMON_OBS): Add dictionary.o.
5226 (dictionary.o): New.
5227 (ada-lang.o): Depend on dictionary_h.
5228 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5229 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5230 (mi-cmd-stack.o): Ditto.
5231 (gdbtk-cmds.o): Update dependencies.
5232 (gdbtk-stack.o): Ditto.
5233 * ada-lang.c: Include dictionary.h.
5234 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5235 (fill_in_ada_prototype, debug_print_block): Ditto.
5236 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5237 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5238 'is_sorted'.
5239 * mdebugread.c: Include dictionary.h.
5240 (struct parse_stack): Delete 'maxsyms' member.
5241 (parse_symbol): Update calls to new_block. Delete calls to
5242 shrink_block. Use dictionary methods.
5243 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5244 Update calls to new_symtab. Don't maintain maxsyms data.
5245 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5246 (add_symbol): Just call dict_add_symbol.
5247 (new_symtab): Delete 'maxsyms' argument.
5248 (new_symtab): Update calls to new_block.
5249 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5250 (shrink_block): Delete function.
5251 (fixup_sigtramp): Update call to new_block. Add symbol via
5252 dict_add_symbol.
5253 * jv-lang.c: Include dictionary.h.
5254 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5255 appropriately. Set class_symtab->free_func. Make sure the
5256 blockvector is big enough to hold two blocks.
5257 (add_class_symtab_symbol): Use dictionary methods.
5258 (free_class_block): New function.
5259 (type_from_class): Replace explicit iteration by
5260 ALL_BLOCK_SYMBOLS.
5261 * symtab.h (struct symtab): Replace 'free_ptr' method by
5262 'free_func'.
5263 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5264 sort_symtab_syms.
5265 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5266 sort_symtab_syms.
5267 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5268 Include dictionary.h.
5269 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5270 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5271 sort_symtab_syms.
5272 * objfiles.c: Include dictionary.h.
5273 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5274 * buildsym.c: Include dictionary.h.
5275 (finish_block): Use dictionary methods.
5276 (end_symtab): Set free_func to NULL, not free_ptr.
5277 * tracepoint.c: Include dictionary.h.
5278 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5279 (scope_info): Ditto.
5280 * stack.c: Include dictionary.h.
5281 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5282 (print_block_frame_labels, print_frame_arg_vars)
5283 (print_frame_args): Ditto.
5284 * symmisc.c (free_symtab_block): Use dictionary methods.
5285 (dump_symtab): Ditto.
5286 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5287 Include dictionary.h.
5288 * symfile.h: Delete declarations of sort_block_syms,
5289 sort_symtab_syms.
5290 * symfile.c (sort_block_syms): Delete.
5291 (sort_symtab_syms): Delete.
5292 * symtab.c: Include dictionary.h.
5293 (lookup_block_symbol): Use dictionary iterators.
5294 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5295 (search_symbols, make_symbol_completion_list): Ditto.
5296 (make_symbol_overload_list): Ditto.
5297 * valops.c (value_of_local): Use dict_empty.
5298 Include dictionary.h.
5299
5300 2003-06-11 J. Brobecker <brobecker@gnat.com>
5301
5302 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5303
5304 2003-06-11 David Carlton <carlton@bactrian.org>
5305
5306 * block.h (BLOCK_SHOULD_SORT): Delete.
5307 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5308 blocks.
5309 * ada-lang.c (ada_add_block_symbols): Ditto.
5310 * symfile.c (sort_block_syms): Delete.
5311 (sort_symtab_syms): Ditto.
5312 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5313 declarations.
5314 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5315 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5316 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5317 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5318 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5319 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5320 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5321
5322 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5323
5324 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
5325 bits to 128.
5326
5327 2003-06-11 Andrew Cagney <cagney@redhat.com>
5328
5329 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5330 REGISTER_CONVERTIBLE.
5331 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5332 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5333 * gdbarch.h, gdbarch.c: Re-generate.
5334 * arch-utils.h (deprecated_register_convertible_not): Rename
5335 generic_register_convertible_not.
5336 * arch-utils.c (deprecated_register_convertible_not): Rename
5337 generic_register_convertible.
5338 (legacy_convert_register_p, legacy_register_to_value): Update.
5339 * sh-tdep.c (sh64_push_arguments): Update.
5340 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5341 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5342 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5343 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5344 * arch-utils.c (legacy_value_to_register): Update.
5345 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5346 (rs6000_register_convert_to_raw): Make parameter "from" const.
5347 * mips-tdep.c (mips_gdbarch_init): Update.
5348 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5349 * infcmd.c (default_print_registers_info): Update.
5350 * ia64-tdep.c (ia64_gdbarch_init): Update.
5351 (ia64_register_convert_to_raw): Make parameter "from" const.
5352 * i386-tdep.c (i386_gdbarch_init): Update.
5353 (i386_register_convert_to_raw): Update.
5354
5355 2003-06-11 Andrew Cagney <cagney@redhat.com>
5356
5357 * remote-fileio.c: Include "remote-fileio.h".
5358 * Makefile.in (remote-fileio.o): Update dependencies.
5359 (remote_fileio_h): Fix typo.
5360
5361 2003-06-11 Andrew Cagney <cagney@redhat.com>
5362
5363 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5364 (xstormy16_save_dummy_frame_tos): Make static.
5365 (_initialize_xstormy16_tdep): Add declaration.
5366 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5367 * v850-tdep.c: Make local functions static.
5368 (_initialize_v850_tdep): Add declaration.
5369 * sparc-tdep.c: Make local functions static.
5370 (_initialize_sparc_tdep): Add declaration.
5371 * sh-tdep.c: Make local functions static.
5372 (_initialize_sh_tdep): Add declaration.
5373 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5374 * s390-tdep.c: Make local functions static.
5375 (_initialize_s390_tdep): Add declaration.
5376 * dbxread.c (find_stab_function_addr): Make static.
5377 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5378 * ocd.c (_initialize_remote_ocd): Add declaration.
5379 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5380 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5381 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5382 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5383 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5384 * remote-array.c (_initialize_array): Add declaration.
5385 (_initialize_remote_monitors): Add declaration.
5386 * remote-mips.c: Make local functions static.
5387 (_initialize_remote_mips): Add declaration.
5388 * mcore-tdep.c: Make all local functions static.
5389 (_initialize_mcore_tdep): Add declaration.
5390 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5391 * abug-rom.c (_initialize_abug_rom): Add declaration.
5392 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5393 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5394 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5395 * remote-est.c (_initialize_est): Add declaration.
5396 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5397 (m68hc11_call_dummy_address): Make static.
5398 * ia64-tdep.c: Make local functions static.
5399 (_initialize_ia64_tdep): Add declaration.
5400 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5401 * monitor.c (monitor_wait_filter): Make static.
5402 (_initialize_remote_monitors): Add declaration.
5403 * remote-hms.c (_initialize_remote_hms): Add declaration.
5404 * remote-e7000.c (fetch_regs_from_dump): Make static.
5405 (expect_n): Make static.
5406 (_initialize_remote_e7000): Add declaration.
5407 * ser-e7kpc.c: Always include "defs.h".
5408 (_initialize_ser_e7000pc): Add declaration.
5409 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5410 * cris-tdep.c: Make all but one function static.
5411 (_initialize_cris_tdep): Add declaration.
5412 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5413 * solib.c (update_solib_list): Make static.
5414 (_initialize_solib): Add declaration.
5415 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5416 (_initialize_avr_tdep): Add declaration.
5417 * remote-rdi.c (voiddummy): Make static.
5418 (_initialize_remote_rdi): Add declaration.
5419 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5420 * remote-rdp.c (send_rdp): Make static.
5421 (_initialize_remote_rdp): Add declaration.
5422 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5423
5424 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
5425
5426 * remote-fileio.c: Make ari happy.
5427
5428 2003-06-10 J. Brobecker <brobecker@gnat.com>
5429
5430 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5431 fetching the trailing bytes of the buffer we are about to write.
5432
5433 2003-06-10 Andrew Cagney <cagney@redhat.com>
5434
5435 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5436 * Makefile.in (remote-fileio.o): Update dependencies.
5437 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5438 include <setjmp.h>, or <sys/types.h> conditional on USG.
5439 (remote_fio_jmp_buf): Delete global variable.
5440
5441 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
5442 Martin M. Hunt <hunt@redhat.com>
5443
5444 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5445 (SFILES): Add remote-fileio.c.
5446 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5447 dependencies for building remote.o.
5448 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5449 * remote-fileio.h: New header file defining remote File-I/O interface.
5450 * remote.c (remote_write_bytes, remote_read_bytes): Remove
5451 static storage class.
5452 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5453 'F' packet.
5454 (_initialize_remote): Call initialize_remote_fileio().
5455 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
5456 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5457 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5458 (captured_main): Initialize new ui_files.
5459 * ui-file.c: Add read and fgets input functions.
5460 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5461 (null_file_read): New function.
5462 (ui_file_read): New function.
5463 (set_ui_file_read): New function.
5464 (stdio_file_read): New function.
5465 * ui-file.h: New type ui_file_read_ftype.
5466 (set_ui_file_read): Declare.
5467 (ui_file_read): Declare.
5468
5469 2003-06-09 Andrew Cagney <cagney@redhat.com>
5470
5471 * frame.h (deprecated_unwind_get_saved_register): Rename
5472 generic_unwind_get_saved_register, update comments.
5473 * mips-tdep.c (mips_get_saved_register): Update.
5474 * frame.c (deprecated_unwind_get_saved_register): Update.
5475
5476 2003-06-09 Andrew Cagney <cagney@redhat.com>
5477
5478 * vax-tdep.c (vax_frame_locals_address): Delete function.
5479 (vax_gdbarch_init): Do not set frame_locals_address.
5480 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5481 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5482 * s390-tdep.c (s390_frame_args_address): Delete function.
5483 (s390_gdbarch_init): Do not set frame_args_address or
5484 frame_locals_address.
5485 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5486 (ns32k_gdbarch_init): Do not set frame_locals_address.
5487 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5488 (hppa_frame_locals_address): Delete function.
5489 (hppa_gdbarch_init): Do not set frame_args_address, or
5490 frame_locals_address.
5491 * arm-tdep.c (arm_frame_args_address): Delete.
5492 (arm_frame_locals_address): Delete.
5493 (arm_gdbarch_init): Do not set frame_args_address, or
5494 frame_locals_address.
5495
5496 2003-06-09 Andrew Cagney <cagney@redhat.com>
5497
5498 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5499 * gdbarch.h, gdbarch.c: Re-generate.
5500 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5501 * arch-utils.c (frame_num_args_unknown): Delete function.
5502 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5503 (frame_info): Use FRAME_NUM_ARGS_P.
5504 * arm-tdep.c (arm_frame_num_args): Delete function.
5505 (arm_gdbarch_init): Do not set frame_num_args.
5506 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5507 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5508 (hppa_gdbarch_init): Do not set frame_num_args.
5509 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5510 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5511 frame_num_args to default frame_num_args_unknown.
5512 * v850-tdep.c (v850_gdbarch_init): Ditto.
5513 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5514 * sh-tdep.c (sh_gdbarch_init): Ditto.
5515 * s390-tdep.c (s390_gdbarch_init): Ditto.
5516 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5517 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5518 * mips-tdep.c (mips_gdbarch_init): Ditto.
5519 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5520 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5521 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5522 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5523 * i386-tdep.c (i386_gdbarch_init): Ditto.
5524 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5525 * frv-tdep.c (frv_gdbarch_init): Ditto.
5526 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5527 * cris-tdep.c (cris_gdbarch_init): Ditto.
5528 * avr-tdep.c (avr_gdbarch_init): Ditto.
5529 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5530
5531 2003-06-09 Andrew Cagney <cagney@redhat.com>
5532
5533 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5534 (print_frame_args): Moved to "stack.c".
5535 * stack.c: Include "gdb_assert.h".
5536 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5537 (print_frame_args): Moved from "printcmd.c".
5538 * frame.h (print_frame_args): Delete declaration.
5539 * Makefile.in (stack.o): Update dependencies.
5540
5541 2003-06-08 Andrew Cagney <cagney@redhat.com>
5542
5543 * frame.c (get_prev_frame): Remove reference to
5544 frame_args_address_correct in comments.
5545 * frame-base.c (default_frame_args_address): Delete code
5546 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5547 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5548 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5549 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5550 (vax_frame_args_address_correct): Delete declaration.
5551
5552 2003-06-08 Andrew Cagney <cagney@redhat.com>
5553
5554 * gdbarch.sh (UNWIND_SP): Add.
5555 * gdbarch.h, gdbarch.c: Re-generate.
5556 * frame.c (frame_sp_unwind): New function.
5557 (get_frame_sp): New function.
5558 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5559 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5560 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5561 value.
5562 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5563 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5564
5565 2003-06-08 Andrew Cagney <cagney@redhat.com>
5566
5567 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5568 REMOTE_BREAKPOINT.
5569 * remote.c: Update.
5570 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5571 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5572 * config/m68k/tm-sun3.h: Update.
5573 * config/m68k/tm-m68klynx.h: Update.
5574 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5575
5576 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5577 trad_frame". Update comments.
5578 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5579 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5580 (trad_frame_register_value, trad_frame_prev_register): Update.
5581
5582 2003-06-08 Andrew Cagney <cagney@redhat.com>
5583
5584 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5585 from GCC's acinclude.m4.
5586 * configure.in: Check for getopt's delcaration.
5587 * aclocal.m4, config.in, configure: Re-generate.
5588 * main.c (error_init): Delete declaration.
5589 * defs.h (error_init): Declare.
5590 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5591 (rs6000_convert_from_func_ptr_addr): Make static.
5592 (_initialize_rs6000_tdep): Add declaration.
5593 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5594 (show_commands, set_verbose, show_history): Delete declaration.
5595 * top.h (set_verbose): Add declaration.
5596 (show_history, set_history, show_commands): Add declaration.
5597 (do_restore_instream_cleanup): Add declaration.
5598 * objc-lang.c (specialcmp): Make static.
5599 (print_object_command): Make static.
5600 (find_objc_msgsend): Make static.
5601 (find_objc_msgcall_submethod_helper): Make static.
5602 (find_objc_msgcall_submethod): Make static.
5603 (_initialize_objc_language): Add declaration.
5604 (find_implementation_from_class): Make static.
5605 (find_implementation): Make static.
5606 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5607 * objc-lang.h (lookup_struct_typedef): Add declaration.
5608 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5609 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5610 (do_restore_user_call_depth): Make static.
5611 (do_restore_instream_cleanup): Delete declaration.
5612 (dont_repeat): Delete declaration.
5613 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5614 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5615 * reggroups.c (_initialize_reggroup): Add declaration.
5616 * cp-support.c (_initialize_cp_support): Add declaration.
5617 * cp-abi.c (_initialize_cp_abi): Add declaration.
5618 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5619 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5620 (_initialize_gnu_v3_abi): Add declaration.
5621 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5622 (_initialize_gnu_v2_abi): Add declaration.
5623 * frame-base.c (_initialize_frame_base): Add declaration.
5624 * doublest.c (floatformat_from_length): Make static.
5625 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5626 * frame.c (create_sentinel_frame): Make static.
5627 (_initialize_frame): Add declaration.
5628 * top.c (do_catch_errors): Make static.
5629 (gdb_rl_operate_and_get_next_completion): Make static.
5630 * typeprint.c: Include "typeprint.h".
5631 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5632 (sentinel_frame_this_id): Make static.
5633 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5634 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5635 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5636 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5637 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5638 * maint.c (maintenance_print_architecture): Make static.
5639 * signals/signals.c (_initialize_signals): Add declaration.
5640 * std-regs.c (_initialize_frame_reg): Add declaration.
5641 * jv-exp.y (push_variable): ISO C definition.
5642 (push_qualified_expression_name): Ditto.
5643 * memattr.c (_initialize_mem): Add declaration.
5644 * remote.c (remote_check_watch_resources): Make static.
5645 (remote_stopped_by_watchpoint): Make static.
5646 (remote_stopped_data_address): Make static.
5647 * d10v-tdep.c (nr_dmap_regs): Make static.
5648 (a0_regnum): Make static.
5649 (d10v_frame_unwind_cache): Make static.
5650 (d10v_frame_p): Make static.
5651 * osabi.c (show_osabi): Make static.
5652 (_initialize_gdb_osabi): Add extern declaration.
5653 * gdbtypes.c (make_qualified_type): Make static.
5654 (safe_parse_type): Make static.
5655 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5656 * macrotab.c (macro_bcache_free): Make static.
5657 * interps.c (interp_set_quiet): Make static.
5658 (interpreter_exec_cmd): Make static.
5659 * stack.h (select_frame_command): New file.
5660 * stack.c: Include "stack.h".
5661 (select_frame_command_wrapper): Delete function.
5662 (select_frame_command): Make global.
5663 * infcall.c: Include "infcall.h".
5664 * linespec.c: Include "linespec.h".
5665 * symfile.c (sections_overlap): Make static.
5666 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5667 * charset.c (_initialize_charset): Add missing prototype.
5668 * regcache.c (init_legacy_regcache_descr): Make static.
5669 (do_regcache_xfree): Make static.
5670 (regcache_xfer_part): Make static.
5671 (_initialize_regcache): Add missing prototype.
5672 * breakpoint.c (parse_breakpoint_sals): Make static.
5673 (breakpoint_sals_to_pc): Make static.
5674 * interps.h (clear_interpreter_hooks): ISO C declaration.
5675 * Makefile.in (stack_h): Define.
5676 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5677 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5678
5679 2003-06-08 Andrew Cagney <cagney@redhat.com>
5680
5681 * Makefile.in (d10v-tdep.o): Update dependencies.
5682 (SFILES): Add trad-frame.c.
5683 (trad_frame_h): Define.
5684 (COMMON_OBS): Add trad-frame.o.
5685 (trad-frame.o): Specify dependencies.
5686 * d10v-tdep.c: Include "trad-frame.h".
5687 (saved_regs_unwinder): Delete function.
5688 (d10v_frame_prev_register): Use trad_frame_prev_register.
5689 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5690 trad_frame", delete "regs" and "prev_sp".
5691 (prologue_find_regs): Use trad-frame.
5692 * trad-frame.h, trad-frame.c: New files.
5693
5694 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5695
5696 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5697
5698 2003-06-07 Adam Fedor <fedor@gnu.org>
5699
5700 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5701 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5702 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5703 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5704 resolve_msgsend_super, resolve_msgsend_super_stret):
5705 Use it.
5706
5707 2003-06-07 Andrew Cagney <cagney@redhat.com>
5708
5709 * symfile.h: Re-indent, clean up comments.
5710
5711 2003-06-07 Andrew Cagney <cagney@redhat.com>
5712
5713 * inferior.h (deprecated_write_sp): Replace
5714 generic_target_write_sp.
5715 * regcache.c (deprecated_write_sp): Replace
5716 generic_target_write_sp.
5717 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5718 * vax-tdep.c (vax_gdbarch_init): Update.
5719 * v850-tdep.c (v850_gdbarch_init): Update.
5720 * sparc-tdep.c (sparc_gdbarch_init): Update.
5721 * sh-tdep.c (sh_gdbarch_init): Update.
5722 * s390-tdep.c (s390_gdbarch_init): Update.
5723 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5724 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5725 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5726 * mcore-tdep.c (mcore_gdbarch_init): Update.
5727 * m68k-tdep.c (m68k_gdbarch_init): Update.
5728 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5729 * ia64-tdep.c (ia64_gdbarch_init): Update.
5730 * h8300-tdep.c (h8300_gdbarch_init): Update.
5731 * frv-tdep.c (frv_gdbarch_init): Update.
5732 * cris-tdep.c (cris_gdbarch_init): Update.
5733 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5734
5735 2003-06-07 Andrew Cagney <cagney@redhat.com>
5736
5737 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5738 Assert that PC_REGNUM is valid.
5739 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5740
5741 2003-06-07 Andrew Cagney <cagney@redhat.com>
5742
5743 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5744 * gdbarch.h, gdbarch.c: Regenerate.
5745 * mn10300-tdep.c: Include "gdb_assert.h".
5746 (mn10300_read_fp): New function.
5747 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5748 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5749 * ia64-tdep.c: Include "gdb_assert.h".
5750 (ia64_read_fp): New function.
5751 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5752 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5753 * regcache.c (generic_target_read_sp): Delete function.
5754 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5755 * inferior.h (generic_target_read_sp): Delete declaration.
5756 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5757 generic_target_read_sp.
5758 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5759 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5760 * sh-tdep.c (sh_gdbarch_init): Ditto.
5761 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5762 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5763
5764 2003-06-07 Andrew Cagney <cagney@redhat.com>
5765
5766 * gdbarch.sh: Comment each field of startup_gdbarch.
5767 * gdbarch.h, gdbarch.c: Re-generate.
5768
5769 2003-06-07 Andrew Cagney <cagney@redhat.com>
5770
5771 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5772 * gdbarch.h, gdbarch.c: Re-generate.
5773 * regcache.c: Update comments on read_pc et.al.
5774 (generic_target_read_pc): Delete function.
5775 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5776 * inferior.h (generic_target_read_pc): Delete declaration.
5777 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5778 generic_target_read_pc.
5779 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5780 * sh-tdep.c (sh_gdbarch_init): Ditto.
5781 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5782 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5783
5784 2003-06-07 Andrew Cagney <cagney@redhat.com>
5785
5786 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5787 "index" with "special_local_sect". Use strcmp instead of STREQ.
5788 Append period to coments.
5789
5790 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5791
5792 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5793 (elfstab_offset_sections): Likewise.
5794 * gdb-stabs.h (stab_section_info): Likewise.
5795 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5796 * objfiles.c (objfile_relocate): Likewise.
5797 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5798 * remote.c (get_offsets): Likewise.
5799 (remote_cisco_objfile_relocate): Likewise.
5800 * somread.c (som_symfile_offsets): Likewise.
5801 * symfile.c (alloc_section_addr_info): New function.
5802 (build_section_addr_info_from_section_tab): Use it.
5803 (free_section_addr_info): Adjust.
5804 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5805 (syms_from_objfile): Allocate local_addr dynamically.
5806 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5807 dynamically.
5808 (add_symbol_file_command): Allocate sect_opts dynamically.
5809 (reread_symbols): Avoid use of SECT_OFF_MAX.
5810 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5811 (alloc_section_addr_info): Declare it.
5812 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5813 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5814 dynamically.
5815 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5816
5817 2003-06-06 Andrew Cagney <cagney@redhat.com>
5818
5819 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5820 (d10v_frame_unwind_cache): Do not set "return_pc".
5821
5822 2003-06-06 Michael Snyder <msnyder@redhat.com>
5823
5824 * h8300-tdep.c: Make tidy (long lines).
5825
5826 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5827
5828 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5829 to regcache_collect().
5830
5831 2003-06-05 J. Brobecker <brobecker@gnat.com>
5832
5833 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5834 pc_in_sigtramp multiarch method.
5835 (hppa_hpux_som_init_abi): Use it.
5836 (hppa_hpux_elf_init_abi): Likewise.
5837 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5838 macro has been multiarched.
5839 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5840 macro here, as hppa64 isn't multiarched yet.
5841
5842 2003-06-05 Andrew Cagney <cagney@redhat.com>
5843
5844 * Makefile.in (value_h): Add $(frame_h).
5845 * value.h: Include "frame.h".
5846 (struct value): Replace "frame_addr" with "frame_id".
5847 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5848 * values.c (allocate_value): Use VALUE_FRAME_ID.
5849 (value_copy): Use VALUE_FRAME_ID.
5850 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5851 * valops.c (value_assign): Update. Use frame_find_by_id.
5852
5853 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5854
5855 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5856 in each pass.
5857
5858 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5859
5860 * thread-db.c (check_event): For create/death event breakpoints,
5861 loop through all messages to ensure that we read the message
5862 corresponding to the breakpoint we are at.
5863
5864 2003-06-04 Michael Snyder <msnyder@redhat.com>
5865
5866 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5867
5868 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5869
5870 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5871 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5872 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5873 when handling .eh_frame sections.
5874
5875 2003-06-04 J. Brobecker <brobecker@gnat.com>
5876
5877 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5878 prepare_to_proceed procedure instead of the hppa-specific one.
5879 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5880
5881 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5882
5883 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5884 * config.in: Regenerated.
5885 * configure.in: Add test for syscall function and check for
5886 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5887 * configure: Regenerated.
5888 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5889 <sys/syscall.h>.
5890 (kill_lwp): New function that uses tkill syscall or
5891 uses kill, depending on whether threading model is nptl or not.
5892 All callers of kill() changed to use kill_lwp().
5893 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5894 see if all threads have already exited in the nptl model.
5895 (stop_and_resume_callback): New callback function used by the
5896 lin_lwp_wait thread exit handling code.
5897 (stop_wait_callback): Check for threads already having exited and
5898 delete such threads fromt the lwp list when discovered.
5899 (stop_callback): Don't assert retcode of kill call.
5900
5901 Roland McGrath <roland@redhat.com>
5902 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5903 nptl libthread_db.
5904
5905 2003-06-03 Richard Henderson <rth@redhat.com>
5906
5907 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5908 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5909 (alpha_sigtramp_frame_prev_register): Likewise.
5910 (alpha_heuristic_frame_prev_register): Likewise.
5911 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5912
5913 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5914 alpha-specific register id names.
5915 (alpha_mdebug_frame_unwind_cache): Likewise.
5916 (alpha_mdebug_frame_prev_register): Likewise.
5917
5918 2003-06-03 Richard Henderson <rth@redhat.com>
5919
5920 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5921 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5922 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5923 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5924 unwind routines.
5925 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5926 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5927 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5928
5929 * alpha-linux-tdep.c: Remove unnecessary includes.
5930 * Makefile.in (alpha-linux-tdep.o): Update.
5931
5932 2003-06-03 Richard Henderson <rth@redhat.com>
5933
5934 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5935 (alphabsd_fill_fpreg): Likewise.
5936
5937 2003-06-03 J. Brobecker <brobecker@gnat.com>
5938
5939 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5940 references to struct frame_info fields by calls to the equivalent
5941 accessors. Necessary now that frame_info is opaque.
5942
5943 2003-06-03 J. Brobecker <brobecker@gnat.com>
5944
5945 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5946 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5947 structure, field no longer exists.
5948
5949 2003-06-03 J. Brobecker <brobecker@gnat.com>
5950
5951 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5952 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5953
5954 2003-06-03 J. Brobecker <brobecker@gnat.com>
5955
5956 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5957 references to struct frame_info fields by calls to the equivalent
5958 accessors. Necessary now that frame_info is opaque.
5959
5960 2003-06-03 J. Brobecker <brobecker@gnat.com>
5961
5962 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5963 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5964 structure, field no longer exists.
5965
5966 2003-06-03 Theodore A. Roth <troth@openavr.org>
5967
5968 * remote.c (init_remote_state): Compute sizeof_g_packet by
5969 accumulation of the size of all registers instead of blindly using
5970 DEPRECATED_REGISTER_BYTES.
5971
5972 2003-06-03 Michael Snyder <msnyder@redhat.com>
5973
5974 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5975 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5976 for h8300sx.
5977
5978 2003-06-03 J. Brobecker <brobecker@gnat.com>
5979
5980 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5981 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5982
5983 2003-06-03 Andrew Cagney <cagney@redhat.com>
5984
5985 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5986 (sparc_convert_to_raw): Delete function.
5987 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5988 register_convert_to_virtual.
5989
5990 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5991
5992 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5993 layer if not dealing with a statically-linked threaded program.
5994
5995 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5996
5997 * solib.c (solib_open): Update comment to reflect actual search order.
5998
5999 2003-06-03 Andrew Cagney <cagney@redhat.com>
6000
6001 * frame.c (get_frame_memory_signed): New function.
6002 (get_frame_memory, get_frame_memory_unsigned): New function.
6003 (get_frame_arch): New function.
6004 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6005 (get_frame_memory, get_frame_unsigned_memory): Declare.
6006 * d10v-tdep.c (d10v_frame_unwind_cache): Use
6007 get_frame_memory_unsigned and get_frame_arch.
6008 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6009
6010 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
6011
6012 * MAINTAINERS (write after approval): Add myself.
6013
6014 2003-06-03 Jim Blandy <jimb@redhat.com>
6015
6016 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6017 elements of gregset_t are 64 bits each, but access registers
6018 are still 32 bits, so they're packed two per gregset_t
6019 element. Unpack/pack them properly.
6020
6021 2003-06-02 David Carlton <carlton@bactrian.org>
6022
6023 * linespec.c (find_methods): Break out code into
6024 add_matching_methods and add_constructors.
6025 (add_matching_methods): New.
6026 (add_constructors): Ditto.
6027
6028 2003-06-02 Andrew Cagney <cagney@redhat.com>
6029
6030 * sparc-tdep.c (sparc_print_registers): Delete call to
6031 REGISTER_CONVERTIBLE.
6032 (sparc_gdbarch_init): Do not set register_convertible.
6033 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6034 * frv-tdep.c (frv_gdbarch_init): Ditto.
6035 * cris-tdep.c (cris_gdbarch_init): Ditto.
6036
6037 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
6038
6039 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
6040 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6041 (syms_from_objfile): Ditto.
6042
6043 2003-06-03 Andreas Schwab <schwab@suse.de>
6044
6045 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6046 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6047
6048 2003-06-02 Richard Henderson <rth@redhat.com>
6049
6050 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6051 a member of all_reggroup.
6052
6053 2003-06-02 Richard Henderson <rth@redhat.com>
6054
6055 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6056 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6057 (alpha_lds, alpha_sts): New.
6058 (alpha_convert_register_p): Change from _register_convertible.
6059 (alpha_register_to_value): Change from _convert_to_virtual;
6060 restructure and fail for type sizes other than 4 or 8.
6061 (alpha_value_to_register): Similarly.
6062 (alpha_extract_return_value): Use alpha_sts.
6063 (alpha_store_return_value): Use alpha_lds.
6064 (alpha_gdbarch_init): Update hooks.
6065
6066 2003-06-02 Richard Henderson <rth@redhat.com>
6067
6068 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6069 regnum identifiers.
6070 (alpha_sigtramp_register_address): Likewise.
6071
6072 2003-06-02 Richard Henderson <rth@redhat.com>
6073
6074 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6075 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6076 * alpha-tdep.h: Declare them.
6077
6078 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6079 Remove zerobuf. Don't error on UNIQUE.
6080 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6081 (ALPHA_REGSET_UNIQUE): Provide default.
6082 (supply_gregset): Use alpha_supply_int_regs.
6083 (fill_gregset): Use alpha_fill_int_regs.
6084 (supply_fpregset): Use alpha_supply_fp_regs.
6085 (fill_fpregset): Use alpha_fill_fp_regs.
6086 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6087 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6088 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6089 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6090 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6091 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6092
6093 2003-06-02 Richard Henderson <rth@redhat.com>
6094
6095 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6096
6097 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6098 (alpha_store_return_value): Likewise.
6099
6100 2003-06-02 David Carlton <carlton@math.stanford.edu>
6101
6102 * block.c (contained_in): Add 'const' to arguments.
6103 (block_function): Ditto.
6104 * block.h: Update declarations for block_function and
6105 contained_in.
6106
6107 2003-06-02 David Carlton <carlton@math.stanford.edu>
6108
6109 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6110 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6111 * p-valprint.c (pascal_val_print): Ditto.
6112 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6113
6114 2003-06-02 Richard Henderson <rth@redhat.com>
6115
6116 * alpha-tdep.c (alpha_push_dummy_call): Use
6117 builtin_type_ieee_double_little instead of builtin_type_double.
6118
6119 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
6120 sign-extension of 32-bit values.
6121 (alpha_store_return_value): Similarly.
6122
6123 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6124 (alpha_extract_return_value): Likewise.
6125 (alpha_store_return_value): Likewise.
6126
6127 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6128 (alpha_store_return_value): Error on IEEE Quad floats.
6129
6130 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6131 (alpha_extract_struct_value_address): Likewise.
6132 (alpha_store_return_value): Likewise.
6133 (alpha_store_struct_return): Remove.
6134 (alpha_gdbarch_init): Update hook registration to match.
6135
6136 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6137 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6138 macros where appropriate.
6139 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6140 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
6141
6142 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6143 for SP, GP; void_func_ptr for PC; non-language-specific types
6144 for all others.
6145 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
6146
6147 2003-06-02 Richard Henderson <rth@redhat.com>
6148
6149 * top.h (lim_at_start): Declare.
6150 * main.c (captured_main): Set it.
6151 * top.c (lim_at_start): Define.
6152 (command_loop): Use it instead of &environ.
6153 * event-top.c (command_handler): Likewise.
6154
6155 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6156
6157 * mipsnbsd-tdep.c: Update copyright years.
6158 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6159
6160 2003-06-01 Richard Henderson <rth@redhat.com>
6161
6162 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6163 (alpha-linux-tdep.o): Update dependencies.
6164 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6165 * alpha-mdebug-tdep.c: Remove unneeded includes.
6166
6167 2003-06-01 Richard Henderson <rth@redhat.com>
6168
6169 * alpha-tdep.c (alpha_register_reggroup_p): New.
6170 (alpha_gdbarch_init): Register it.
6171
6172 2003-06-02 Andrew Cagney <cagney@redhat.com>
6173
6174 * dwarfread.c: Eliminate "register"
6175 (decode_die_type): Eliminate assignment within "if".
6176 (struct_type, decode_array_element_type): Ditto.
6177 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6178 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6179 (decode_modified_type, completedieinfo): Ditto.
6180 * block.c: Eliminate "register".
6181 (blockvector_for_pc_sect): Eliminate assignment within "if".
6182 * cp-support.h (struct symbol): Opaque declaration.
6183 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6184
6185 2003-06-01 Richard Henderson <rth@redhat.com>
6186
6187 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6188 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
6189
6190 2003-06-01 Adam Fedor <fedor@gnu.org>
6191
6192 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6193 * gdbarch.[ch]: Regenerate.
6194 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6195 (hppa_gdbarch_init): Set it in the gdbarch vector.
6196 * i386-tdep.c (i386_fetch_pointer_argument): New
6197 (i386_gdbarch_init): Set it into gdbarch.
6198 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6199 (rs6000_gdbarch_init): Set it in gdbarch.
6200 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6201 (sparc_gdbarch_init): Set it in gdbarch.
6202
6203 2003-06-01 Andrew Cagney <cagney@redhat.com>
6204
6205 * defs.h (extract_address): Delete declaration.
6206 * findvar.c (extract_address): Delete function.
6207 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6208 extract_address with the inline equivalent,
6209 extract_unsigned_integer.
6210 (xstormy16_extract_struct_value_address): Ditto.
6211 (xstormy16_pointer_to_address): Ditto.
6212 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6213 * v850-tdep.c (v850_push_arguments): Ditto.
6214 (v850_extract_return_value): Ditto.
6215 (v850_extract_struct_value_address): Ditto.
6216 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6217 (sparcnbsd_get_longjmp_target_64): Ditto.
6218 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6219 (get_longjmp_target): Ditto.
6220 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6221 (sh64_extract_struct_value_address): Ditto.
6222 (sh_push_arguments): Ditto.
6223 (sh64_push_arguments): Ditto.
6224 * remote-vxsparc.c (vx_read_register): Ditto.
6225 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6226 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6227 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6228 * mipsv4-nat.c (get_longjmp_target): Ditto.
6229 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6230 * mips-nat.c (get_longjmp_target): Ditto.
6231 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6232 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6233 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6234 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6235 * irix5-nat.c (get_longjmp_target): Ditto.
6236 * irix4-nat.c (get_longjmp_target): Ditto.
6237 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6238 (ia64_push_arguments): Ditto.
6239 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6240 * h8300-tdep.c (h8300_push_arguments): Ditto.
6241 (h8300_store_return_value): Ditto.
6242 (h8300_extract_struct_value_address): Ditto.
6243 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6244 (frv_push_arguments): Ditto.
6245 * avr-tdep.c (avr_pointer_to_address): Ditto.
6246 (avr_push_arguments): Ditto.
6247 * arm-tdep.c (arm_push_dummy_call): Ditto.
6248 (arm_get_longjmp_target): Ditto.
6249 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6250 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6251 (alpha_get_longjmp_target): Ditto.
6252
6253 * solib-irix.c (extract_mips_address): Inline extract_address,
6254 replacing it with extract_signed_integer.
6255 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6256 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6257 (first_link_map_member, open_symbol_file_object): Ditto.
6258 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6259 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6260 (LM_NEXT, LM_NAME): Ditto.
6261
6262 2003-06-01 Richard Henderson <rth@redhat.com>
6263
6264 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6265 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6266 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6267 (alpha_cannot_store_register): Likewise.
6268 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6269 * alpha-nat.c (supply_gregset): Likewise.
6270 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
6271
6272 2003-06-01 Andrew Cagney <cagney@redhat.com>
6273
6274 * infcall.c (call_function_by_hand): Update comment on
6275 DEPRECATED_DUMMY_WRITE_SP.
6276
6277 * mips-tdep.c (mips_gdbarch_init): Do not set
6278 deprecated_dummy_write_sp.
6279 (mips_eabi_push_dummy_call): Set the SP register.
6280 (mips_o64_push_dummy_call): Set the SP register.
6281 (mips_o32_push_dummy_call): Set the SP register.
6282 (mips_n32n64_push_dummy_call): Set the SP register.
6283
6284 2003-06-01 Richard Henderson <rth@redhat.com>
6285
6286 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6287 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6288 (supply_gregset): Likewise.
6289 * alpha-tdep.c (alpha_store_return_value): Likewise.
6290 (alpha_get_longjmp_target): Likewise.
6291 (alpha_register_name): Constify array.
6292 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6293 deprecated_register_size, deprecated_register_bytes,
6294 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6295 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6296 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
6297
6298 2003-06-01 Richard Henderson <rth@redhat.com>
6299
6300 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6301 from arg_reg_buffer to regcache to avoid double conversion.
6302
6303 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6304
6305 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6306 SP_REGNUM.
6307 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6308 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6309
6310 2003-06-01 Richard Henderson <rth@redhat.com>
6311
6312 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6313 (decode_frame_entry): Set it. Skip FDE augmentation.
6314
6315 2003-06-01 Richard Henderson <rth@redhat.com>
6316
6317 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6318 not overlapping PC_REGNUM.
6319
6320 2003-06-01 Richard Henderson <rth@redhat.com>
6321
6322 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6323 alpha_push_arguments. Don't dump argument register data to
6324 the target stack. Fix float and 128-bit long double semantics.
6325 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6326 (alpha_fix_call_dummy): Remove.
6327 (alpha_call_dummy_words): Remove.
6328 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
6329
6330 2003-06-01 Richard Henderson <rth@redhat.com>
6331
6332 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6333
6334 2003-06-01 Andrew Cagney <cagney@redhat.com>
6335
6336 * mips-tdep.c (is_mips16_addr): New function.
6337 (make_mips16_addr, unmake_mips16_addr): New functions.
6338 (pc_is_mips16, mips_fetch_instruction): Use.
6339 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6340 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6341 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6342 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6343 TARGET_MIPS.
6344 * config/mips/tm-mips.h: Update copyright.
6345 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6346 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6347 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6348 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6349 (TM_PRINT_INSN_MACH): Delete.
6350 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6351
6352 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6353 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6354 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6355 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6356 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6357 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6358 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6359 mips*-*-riscos* and mips*-*-sysv* onto mips.
6360 * config/mips/mips64.mt: New file.
6361 * config/mips/mips.mt: New file.
6362 * config/mips/littlemips.mt: Delete file.
6363 * config/mips/decstation.mt: Delete file.
6364 * config/mips/vr4300el.mt: Delete file.
6365 * config/mips/vr5000el.mt: Delete file.
6366 * config/mips/vr5000.mt: Delete file.
6367 * config/mips/vr4100.mt: Delete file.
6368 * config/mips/vr4xxxel.mt: Delete file.
6369 * config/mips/vr4300.mt: Delete file.
6370 * config/mips/vr4xxx.mt: Delete file.
6371 * config/mips/bigmips.mt: Delete file.
6372 * config/mips/bigmips64.mt: Delete file.
6373 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6374 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6375 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6376 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6377 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6378 "tm-bigmips.h".
6379 * config/mips/tm-irix3.h: Ditto.
6380 * config/mips/tm-mipsv4.h: Ditto.
6381 * config/mips/tm-embed.h: Ditto.
6382 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6383 "tm-bigmips64.h".
6384 * config/mips/tm-vr5000el.h: Delete file.
6385 * config/mips/tm-tx39l.h: Delete file.
6386 * config/mips/tm-vr4300el.h: Delete file.
6387 * config/mips/tm-vr4xxxel.h: Delete file.
6388 * config/mips/tm-vr4300.h: Delete file.
6389 * config/mips/tm-vr4100.h: Delete file.
6390 * config/mips/tm-vr4xxx.h: Delete file.
6391 * config/mips/tm-vr5000.h: Delete file.
6392 * config/mips/tm-embedl64.h: Delete file.
6393 * config/mips/tm-embedl.h: Delete file.
6394 * config/mips/tm-embed64.h: Delete file.
6395 * config/mips/tm-bigmips64.h: Delete file.
6396 * config/mips/tm-bigmips.h: Delete file.
6397
6398 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6399
6400 Fix gdb/1216.
6401 * shnbsd-nat.c: Include "sh-tdep.h".
6402
6403 From Richard Henderson <rth@redhat.com>:
6404 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6405
6406 2003-05-31 Andrew Cagney <cagney@redhat.com>
6407
6408 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6409 forward declaration.
6410 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6411 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6412 (mips_find_saved_regs): Use set_reg_offset.
6413 (mips_frame_init_saved_regs): Delete function.
6414 (mips_pop_frame): Call mips_find_saved_regs instead of
6415 DEPRECATED_FRAME_INIT_SAVED_REGS.
6416
6417 2003-05-31 Andrew Cagney <cagney@redhat.com>
6418
6419 * mips-tdep.c (mips_gdbarch_init): Do not set
6420 deprecated_max_register_raw_size, register_virtual_size, and
6421 deprecated_max_register_virtual_size.
6422
6423 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6424
6425 * i386-tdep.c: Include "dwarf2-frame.h".
6426 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6427 * Makefile.in (i386-tdep.o): Update dependencies.
6428
6429 * dwarf2-frame.c, dwarf2-frame.h: New files.
6430 * Makefile.in (SFILES): Add dwarf2-frame.c.
6431 (dwarf2_frame_h): Define.
6432 (COMMON_OBS): Add dwarf2-frame.o.
6433 (dwarf2-frame.o): Add dependencies.
6434
6435 2003-05-31 Andreas Jaeger <aj@suse.de>
6436
6437 * x86-64-linux-nat.c: Fix comment.
6438
6439 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6440
6441 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6442 function signature.
6443
6444 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6445 have a sigcontext_addr handler.
6446 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6447 sigcontext_addr handler.
6448
6449 2003-05-31 Andrew Cagney <cagney@redhat.com>
6450
6451 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6452 (print_fp_register_row): Replace do_fp_register_row.
6453 (mips_print_fp_register): Add "file" and "frame" parameters.
6454 (mips_print_register): Add "file" and "frame" parameters.
6455 (mips_print_registers_info): Replace mips_do_registers_info.
6456 (mips_gdbarch_init): Set print_registers_info instead of
6457 deprecated_do_registers_info.
6458 (mips_read_fp_register_single): Add "frame" parameter.
6459 (mips_read_fp_register_double): Add "frame" parameter.
6460
6461 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6462
6463 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6464 Fixes a bug where GDB would print the wrong register names for
6465 targets without SSE.
6466
6467 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6468 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6469 registers.
6470
6471 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6472 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6473 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6474 TDEP->sc_sp_offset.
6475
6476 From Michal Ludvig <mludvig@suse.cz>:
6477 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6478 and `sc_num_regs'.
6479 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6480 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6481 I386_ST0_REGNUM): Move here from...
6482 * i386-tdep.c: ... here.
6483 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6484 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6485 registers if possible.
6486 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6487 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6488 Remove variables.
6489 (i386bsd_sc_reg_offset): New variable.
6490 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6491 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6492 TDEP->sc_sp_offset.
6493 (i386fbsd_sc_reg_offset): New variable.
6494 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6495 TDEP->sc_num_regs.
6496 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6497 variables.
6498 (i386fbsd4_sc_reg_offset): New variable.
6499 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6500 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6501 TDEP->sc_sp_offset.
6502 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6503 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6504 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6505 Remove variables.
6506 (i386nbsd_sc_reg_offset): New variable.
6507 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6508 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6509 TDEP->sc_sp_offset.
6510 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6511 Remove variables.
6512 (i386obsd_sc_reg_offset): New variable.
6513 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6514 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6515 TDEP->sc_sp_offset.
6516 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6517 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6518 for frame pointer offset in `struct sigcontext'.
6519
6520 2003-05-31 Andrew Cagney <cagney@redhat.com>
6521
6522 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6523 architecture methods call_dummy_words, sizeof_call_dummy_words,
6524 push_return_address, store_struct_return, and fix_call_dummy. Set
6525 push_dummy_call instead of deprecated_push_arguments.
6526 (mips_store_struct_return): Delete function.
6527 (mips_fix_call_dummy): Delete function.
6528 (mips_push_return_address): Delete function.
6529 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6530 RA_REGNUM and T9_REGNUM.
6531 (mips_n32n64_push_dummy_call): Ditto for
6532 mips_n32n64_push_arguments.
6533 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6534 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6535
6536 2003-05-31 Andrew Cagney <cagney@redhat.com>
6537
6538 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6539 "dummy_addr" to "bp_addr".
6540 * infcall.c (call_function_by_hand): Pass "funaddr" to
6541 gdbarch_push_dummy_call.
6542 * gdbarch.h, gdbarch.c: Re-generate.
6543 * i386-tdep.c (i386_push_dummy_call): Update.
6544 * arm-tdep.c (arm_push_dummy_call): Update.
6545 * d10v-tdep.c (d10v_push_dummy_call): Update.
6546
6547 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6548
6549 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6550 variable declarations.
6551 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6552 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6553 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6554 x86_64_init_frame_pc, x86_64_init_frame_pc,
6555 x86_64_function_has_prologue): Remove prototypes.
6556 (X86_64_NUM_GREGS): New define.
6557 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6558 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6559 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6560 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6561 XMM1_REGNUM): Remove defines.
6562 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6563 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6564 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6565 X86_64_XMM1_REGNUM): New defines.
6566 (struct x86_64_register_info): Renamed from `struct
6567 register_info'. Remove `size' member.
6568 (x86_64_register_info_table): Remove variable.
6569 (x86_64_register_info): New variable.
6570 (X86_64_NUM_REGS): New define.
6571 (X86_64_NUM_GREGS): Remove define.
6572 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6573 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6574 Remove variables.
6575 (x86_54_dwarf2_reg_to_regnum): Remove function.
6576 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6577 (x86_64_dwarf_reg_to_regnum): New function.
6578 (x86_64_register_name): Rewrite.
6579 (x86_64_register_raw_size): Remove function.
6580 (x86_64_register_byte_table): Remove variable.
6581 (x86_64_register_byte): Remove function.
6582 (x86_64_register_virtual_type): Remove function.
6583 (x86_64_register_type): New function.
6584 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6585 x86_64_register_convert_to_raw): Remove functions.
6586 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6587 (x86_64_use_struct_convention): Make static. Adjust for renamed
6588 defines.
6589 (x86_64_frame_init_saved_regs): Remove function.
6590 (x86_64_push_arguments): Make static. Change to accept a regcache
6591 as argument.
6592 (x86_64_store_return_value, x86_64_extract_return_value): Make
6593 static. Rewrite based on i386 counterparts.
6594 (x86_64_push_dummy_call): New function.
6595 (X86_64_NUM_SAVED_REGS): New define.
6596 (x86_64_register_number): Remove function.
6597 (x86_64_store_struct_return): Remove function.
6598 (x86_64_frameless_function_invocation,
6599 x86_64_function_has_prologue): Remove functions.
6600 (PROLOG_BUFSIZE): Remove define.
6601 (struct x86_64_frame_cache): New structure.
6602 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6603 x86_64_frame_cache, x86_64_frame_this_id,
6604 x86_64_frame_prev_register, x86_64_frame_p,
6605 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6606 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6607 functions.
6608 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6609 variables.
6610 (x86_64_skip_prologue): Rewrite in terms of
6611 x86_64_analyze_prologue.
6612 (x86_64_frame_base_address): New function.
6613 (x86_64_frame_base): New variable.
6614 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6615 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6616 set deprecated_fp_regnum, deprecated_register_size,
6617 deprecated_register_bytes, register_raw_size, register_byte,
6618 register_virtual_type, register_convertiable,
6619 register_convert_to_virtual, convert_to_raw,
6620 deprecated_get_saved_register, deprecated_target_read_fp,
6621 deprecated_push_arguments, deprecated_push_return_address,
6622 deprecated_pop_frame, deprecated_store_struct_return,
6623 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6624 frameless_function_invocation, deprecated_frame_saved_pc,
6625 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6626 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6627 deprecated_init_frame_pc and virtual_frame_pointer. Call
6628 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6629 and x86_64_frame_p. Call frame_base_set_default to register
6630 x86_64_frame_base.
6631 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6632 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6633 (_initialize_x86_64_tdep): Remove function.
6634 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6635 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6636 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6637 define.
6638 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6639 (x86_64_linux_sigcontext_addr): Rewrite.
6640 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6641 x86_64_linux_frame_saved_pc): Remove functions.
6642 (x86_64_linux_pc_in_sigtramp): Renamed from
6643 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6644 trampoline.
6645 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6646 Remove_functions.
6647 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6648 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6649 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6650 (x86_64_regmap): Rename to regmap.
6651 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6652 x86_64_num_gregs.
6653 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6654 x86_64_regmap.
6655 (x86_64_fxsave_offset): Remove function.
6656 (supply_fpregset): Simply call x86_64_supply_fxsave.
6657 (fill_fpregset): Simply call x86_64_fill_fxsave.
6658 (fetch_inferior_registers, store_inferior_registers): Avoid
6659 asignment in if-statement.
6660 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6661 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6662 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6663 (fetch_core_registers): Remove function.
6664 (linux_elf_core_fns): Remove.
6665 (offsetoff): Don't define.
6666 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6667 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6668 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6669 add core-regset.o.
6670 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6671 protection against multiple includes instead of NM_X86_64_h. Add
6672 various comments. Include "config/nm-linux.h". Don't include
6673 <signal.h>.
6674 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6675 GET_THREAD_SIGNALS): Remove defines.
6676 (x86_64_register_u_addr, kernel_u_size,
6677 lin_thread_get_thread_signals): Remove prototypes.
6678 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6679 [HAVE_LINK_H]: Don't include "solib.h".
6680 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6681 * config/i386/tm-x86-64linux.h: Fix comments.
6682 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6683 x86-64-tdep.o): Update dependencies.
6684
6685 2003-05-30 Andrew Cagney <cagney@redhat.com>
6686
6687 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6688 Change parameter type to a "struct regcache *".
6689
6690 * gdbarch.sh: Regardless of the multi-arch level, always define
6691 the macro when not already defined.
6692 * gdbarch.h, gdbarch.c: Re-generate.
6693
6694 2003-05-30 Richard Henderson <rth@redhat.com>
6695
6696 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6697 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6698 (alpha_mdebug_frame_this_id): Likewise.
6699 (alpha_mdebug_frame_prev_register): Likewise.
6700 (alpha_mdebug_frame_base_address): Likewise.
6701 (alpha_mdebug_frame_locals_address): Likewise.
6702 (alpha_mdebug_frame_args_address): Likewise.
6703 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6704 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6705 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6706 loop increment.
6707 (alpha_heuristic_frame_this_id): Make static.
6708 (alpha_heuristic_frame_prev_register): Likewise.
6709 (alpha_heuristic_frame_base_address): Likewise.
6710 * alpha-tdep.h: Update.
6711
6712 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6713
6714 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6715 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6716 defenitions.
6717 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6718 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6719 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6720 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6721 I386_ST0_REGNUM): New defines.
6722 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6723 codestream_get): Remove define.
6724 (codestream_next_addr, condestream_addr, condestream_buf,
6725 codestream_off, codestream_cnt): Remove variables.
6726 (codestream_fill, codestream_seek, codestream_read): Remove
6727 functions.
6728 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6729 functionality.
6730 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6731 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6732 i386_frame_saved_pc, i386_saved_pc_after_call,
6733 i386_frame_num_args, i386_frame_init_saved_regs,
6734 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6735 i386_push_arguments): Remove functions.
6736 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6737 functionality. Use i386_analyze_prologue instead of
6738 i386_get_frame_setup.
6739 (I386_NUM_SAVED_REGS): New define.
6740 (struct i386_frame_cache): New structure.
6741 (i386_alloc_frame_cache, i386_analyze_struct_return,
6742 i386_skip_probe, i386_analyze_frame_setup,
6743 i386_analyze_register_saves, i386_analyze_prologue,
6744 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6745 i386_frame_prev_register, i386_sigtramp_frame_cache,
6746 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6747 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6748 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6749 New functions.
6750 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6751 New variables.
6752 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6753 I386_EAX_REGNUM and I386_EDX_REGNUM.
6754 (i386_extract_return_value, i386_store_return_value): Use
6755 I386_ST0_REGNUM where appropriate.
6756 (i386_extract_struct_value_address): Rewrite to use extract_address.
6757 (i386_svr4_pc_in_sigtramp): Add comment.
6758 (i386_svr4_sigcontext_addr): Rewrite.
6759 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6760 TDEP->sc_sp_offset.
6761 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6762 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6763 of new defines. Set push_dummy_call, don't set
6764 deprecated_push_arguments, deprecated_push_return_address,
6765 deprecated_pop_frame. Don't set parm_boundary. Don't set
6766 deprecated_frame_chain, deprecated_frame_saved_pc,
6767 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6768 save_dummy_frame_tos, unwind_pc. Call
6769 frame_unwind_append_predicate and frame_base_set_default. Don't
6770 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6771 Don't set frameless_function_invocation. Don't set
6772 deprecated_register_bytes, deprecated_register_size,
6773 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6774 * i386-linux-tdep.c: Fix formatting in some comments.
6775 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6776 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6777 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6778 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6779 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6780 redundant parentheses.
6781 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6782 (i386_linux_sigcontext_addr): Use it. Rewrite.
6783 (find_minsym_and_objfile): Change name of second argument.
6784 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6785 changed. Use frame_pc_unwind instead of
6786 DEPRECATED_SAVED_PC_AFTER_CALL.
6787 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6788 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6789 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6790 unwinder.
6791 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6792 "dummy-frame.h".
6793 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6794 (_initialize_i386_cygwin_tdep): New prototype.
6795 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6796 deprecated_frame_chain_valid.
6797 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6798 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6799 Rely on the SVR4 defaults.
6800 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6801 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6802
6803 2003-05-30 Andrew Cagney <cagney@redhat.com>
6804
6805 * infcall.c (call_function_by_hand): Always call
6806 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6807
6808 2003-05-30 Richard Henderson <rth@redhat.com>
6809
6810 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6811 increment.
6812
6813 2003-05-29 Jim Blandy <jimb@redhat.com>
6814
6815 Use gdbarch methods for solib stuff on PowerPC Linux.
6816 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6817 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6818 show through.
6819 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6820 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6821 giving the same effect as the #definitions above.
6822
6823 2003-05-29 Adam Fedor <fedor@gnu.org>
6824
6825 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6826 (find_implementation_from_class): Replace it with the standard
6827 case i.e. do nothing.
6828
6829 2003-05-29 Richard Henderson <rth@redhat.com>
6830
6831 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6832 (alpha_linux_sigtramp_offset): Use it. Make static.
6833 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6834 update for new frame model.
6835 * alpha-mdebug-tdep.c: New file.
6836 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6837 (alpha_osf1_init_abi): Install it.
6838 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6839 (linked_proc_desc_table): Remove.
6840 (alpha_frame_past_sigtramp_frame): Remove.
6841 (alpha_dynamic_sigtramp_offset): Remove.
6842 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6843 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6844 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6845 (push_sigtramp_desc): Remove.
6846 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6847 (alpha_cannot_store_register): Likewise.
6848 (alpha_sigcontext_addr): Remove.
6849 (alpha_find_saved_regs): Remove.
6850 (alpha_frame_init_saved_regs): Remove.
6851 (alpha_init_frame_pc_first): Remove.
6852 (read_next_frame_reg): Remove.
6853 (alpha_frame_saved_pc): Remove.
6854 (alpha_saved_pc_after_call): Remove.
6855 (temp_proc_desc, temp_saved_regs): Remove.
6856 (alpha_about_to_return): Remove.
6857 (cached_proc_desc): Remove.
6858 (alpha_frame_chain): Remove.
6859 (alpha_print_extra_frame_info): Remove.
6860 (alpha_init_extra_frame_info): Remove.
6861 (alpha_frame_locals_address): Remove.
6862 (alpha_frame_args_address): Remove.
6863 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6864 (alpha_push_dummy_frame): Remove.
6865 (alpha_pop_frame): Remove.
6866 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6867 (alpha_read_insn): New.
6868 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6869 for different insn encodings.
6870 (alpha_in_lenient_prologue): Remove.
6871 (struct alpha_sigtramp_unwind_cache): New.
6872 (alpha_sigtramp_frame_unwind_cache): New.
6873 (alpha_sigtramp_register_address): New.
6874 (alpha_sigtramp_frame_this_id): New.
6875 (alpha_sigtramp_frame_prev_register): New.
6876 (alpha_sigtramp_frame_unwind): New.
6877 (alpha_sigtramp_frame_p): New.
6878 (struct alpha_heuristic_unwind_cache): New.
6879 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6880 don't count nop insns that occur between functions.
6881 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6882 heuristic_proc_desc, but without the mdebug wrapping.
6883 (alpha_heuristic_frame_this_id): New.
6884 (alpha_heuristic_frame_prev_register): New.
6885 (alpha_heuristic_frame_unwind): New.
6886 (alpha_heuristic_frame_p): New.
6887 (alpha_heuristic_frame_base_address): New.
6888 (alpha_heuristic_frame_base): New.
6889 (alpha_unwind_dummy_id): New.
6890 (alpha_unwind_pc): New.
6891 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6892 frame related deprecated initializations; install replacements.
6893 (alpha_dump_tdep): Remove.
6894 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6895 (alpha_read_insn, alpha_after_prologue,
6896 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6897 alpha_heuristic_frame_prev_register,
6898 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6899 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6900 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6901 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6902
6903 2003-05-29 Andrew Cagney <cagney@redhat.com>
6904
6905 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6906 dependant on the availability of ASSERT_FUNCTION.
6907 (ASSERT_FUNCTION): Do not define when there is no function name.
6908
6909 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6910
6911 From Jimi X <jimix@watson.ibm.com>:
6912 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6913
6914 2003-05-28 Jim Blandy <jimb@redhat.com>
6915
6916 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6917 argument to ptrace to int; the system headers should give it the
6918 right type, and pointers don't fit in ints on powerpc64-*-*.
6919
6920 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6921
6922 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6923 DW_TAG_catch_block.
6924
6925 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6926
6927 * stabsread.c (dbx_lookup_type): Make static.
6928 (read_type): Ditto.
6929 (add_undefined_type): Ditto.
6930 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6931 not export.
6932
6933 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6934
6935 * hpread.c (hpread_has_name): Make static.
6936 (hpread_psymtab_to_symtab): Ditto.
6937 (file_exists): Ditto.
6938 (hpread_call_pxdb): Ditto.
6939 (hpread_pxdb_needed): Ditto.
6940 (hpread_quick_traverse): Ditto.
6941 (hpread_get_header): Ditto.
6942 (hpread_get_lntt): Ditto.
6943 (hpread_get_slt): Ditto.
6944 (class_of): Ditto.
6945
6946 2003-05-25 Andreas Schwab <schwab@suse.de>
6947
6948 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6949 stack_align and deprecated_extra_stack_alignment_needed.
6950 (m68k_stack_align): Delete.
6951
6952 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6953 (m68k_register_virtual_size): Likewise.
6954 (altos_skip_prologue): Remove obsolete function.
6955 (isi_frame_num_args): Likewise.
6956 (news_frame_num_args): Likewise.
6957 (m68k_fix_call_dummy): Make static.
6958 (m68k_push_dummy_frame): Likewise.
6959 (m68k_pop_frame): Likewise.
6960 (m68k_skip_prologue): Likewise.
6961 (m68k_frame_init_saved_regs): Likewise.
6962 (m68k_saved_pc_after_call): Likewise.
6963 (m68k_get_longjmp_target): Make multi-arch.
6964 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6965 structure. Register m68k_get_longjmp_target if enabled.
6966 * m68k-tdep.h (struct gdbarch_tdep): Define.
6967 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6968
6969 * Makefile.in (config.status): Also depend on configure.tgt
6970 and configure.host.
6971 (m68klinux-tdep.o): Update dependencies.
6972 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6973 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6974 (M68K_LINUX_JB_PC): Define.
6975 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6976 and take additional parameter.
6977 (m68k_linux_sigtramp_saved_pc): Update.
6978 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6979 m68k_linux_pc_in_sigtramp, in_plt_section,
6980 find_solib_trampoline_target.
6981 * config/m68k/tm-linux.h: Don't include any tm headers.
6982 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6983 (JB_ELEMENT_SIZE): Likewise.
6984 (JB_PC): Likewise.
6985 (GET_LONGJMP_TARGET): Likewise.
6986 (IN_SIGTRAMP): Likewise.
6987 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6988
6989 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6990
6991 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6992 (sparc32_push_arguments): Re-implement by calling
6993 sparc32_do_push_arguments.
6994
6995 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6996
6997 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6998 SPARC_O1_REGNUM): New defines.
6999 (sparc32_extract_return_value): Rewrite to operate on a regcache.
7000 (sparc32_store_return_value): New function.
7001 (sparc_extract_struct_value_address): Rewrite to operate on a
7002 regcache.
7003 (sparc_gdbarch_init): Don't set
7004 deprecated_extract_struct_value_address. Set
7005 extract_struct_value_address instead. Don't set
7006 deprecated_extract_return_value and deprecated_store_return_value
7007 for 32-bit targets. Set extract_return_value and
7008 store_return_value instead.
7009 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7010 DEPRECTAED_EXTRACT_RETURN_VALUE,
7011 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7012 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7013 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7014 (sparc_store_return_value): Remove prototype.
7015 (sparc32_store_return_value): New prototype.
7016 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7017 Adjust prototypes.
7018
7019 2003-05-24 Mark Kettenis <kettenis@gnu.org>
7020
7021 * sparcnbsd-tdep.c: Include "gdb_string.h".
7022
7023 2003-05-23 Andrew Cagney <cagney@redhat.com>
7024
7025 * p-valprint.c (pascal_val_print): Replace extract_address with
7026 the inline equivalent extract_unsigned_integer.
7027 * jv-valprint.c (java_value_print): Ditto.
7028 * ada-valprint.c (ada_val_print_1): Ditto.
7029 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7030
7031 2003-05-23 Theodore A. Roth <troth@openavr.org>
7032
7033 * blockframe.c (frameless_look_for_prologue): Remove unused
7034 after_prologue variable.
7035
7036 2003-05-23 Mark Kettenis <kettenis@gnu.org>
7037
7038 * blockframe.c (get_pc_function_start): Rewrite to avoid
7039 asignments in if-statements.
7040
7041 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7042
7043 Committed by Elena Zannoni <ezannoni@redhat.com>.
7044 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
7045 files, don't relocate absolute symbols (and do use mst_abs).
7046
7047 2003-05-23 Andrew Cagney <cagney@redhat.com>
7048
7049 * objc-lang.c: Include "gdb_assert.h".
7050 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7051 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7052 (gdb_check, gdb_check_fatal): Delete functions.
7053 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7054 gdb_assert.
7055 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7056 * Makefile.in (objc-lang.o): Update dependencies.
7057
7058 2003-05-22 Ian Lance Taylor <ian@airs.com>
7059
7060 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7061 with fprintf_filtered, not fprintf_unfiltered.
7062
7063 2003-05-22 Andrew Cagney <cagney@redhat.com>
7064
7065 * stack.c (frame_info): Inline extract_address, replacing it with
7066 extract_unsigned_integer.
7067 * findvar.c (unsigned_pointer_to_address): Ditto.
7068 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7069 * dwarf2expr.c (dwarf2_read_address): Ditto.
7070 * frame.c (frame_pc_unwind): Update comment.
7071 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7072
7073 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7074
7075 * infptrace.c (detach): Call print_sys_errmsg rather than
7076 perror_with_name to issue warning message when errno is non-zero
7077 after calling ptrace detach.
7078
7079 2003-05-21 J. Brobecker <brobecker@gnat.com>
7080
7081 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7082 macro definitions from here...
7083 * hppa-tdep.c: ...to there.
7084
7085 2003-05-20 Kevin Buettner <kevinb@redhat.com>
7086
7087 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7088 register_ptrace_addr(). Fix all callers.
7089
7090 2003-05-21 Andreas Schwab <schwab@suse.de>
7091
7092 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7093 dependencies.
7094 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7095 end.
7096 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7097 (_initialize_m68k_linux_tdep): New function.
7098 (m68k_linux_frame_saved_pc): Make static.
7099 (m68k_linux_extract_return_value): Likewise.
7100 (m68k_linux_store_return_value): Likewise.
7101 (m68k_linux_extract_struct_value_address): Likewise.
7102 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7103 Remove.
7104 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7105 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7106 (DEPRECATED_FRAME_SAVED_PC): Remove.
7107
7108 2003-05-20 Kris Warkentin <kewarken@qnx.com>
7109
7110 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7111 regset numbering rather than our own.
7112
7113 2003-05-19 David Carlton <carlton@bactrian.org>
7114
7115 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7116
7117 2003-05-19 David Carlton <carlton@bactrian.org>
7118
7119 Partial fix for PR c++/827.
7120 * cp-support.h: Include symtab.h.
7121 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7122 * cp-namespace.c: Update contributors.
7123 (cp_lookup_symbol_nonlocal): New.
7124 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7125 (lookup_symbol_file): Ditto.
7126 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7127 * block.h: Declare block_scope, block_using, block_global_block.
7128 * block.c (block_scope): New.
7129 (block_using, block_global_block): Ditto.
7130 * Makefile.in (cp_support_h): Depend on symtab_h.
7131 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7132
7133 2003-05-19 David Carlton <carlton@bactrian.org>
7134
7135 * language.h (struct language_defn): Add 'la_value_of_this'
7136 and 'la_lookup_symbol_nonlocal' members.
7137 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7138 lookup_symbol_static, lookup_symbol_global,
7139 lookup_symbol_aux_block.
7140 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7141 if we should search fields of this and how to do static/global
7142 lookup.
7143 (lookup_symbol_aux_block): Make extern.
7144 (basic_lookup_symbol_nonlocal): New.
7145 (lookup_symbol_static, lookup_symbol_global): Ditto.
7146 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7147 'la_lookup_symbol_nonlocal' members.
7148 * c-lang.c (c_language_defn, cplus_language_defn)
7149 (asm_language_defn, minimal_language_defn): Ditto.
7150 * jv-lang.c (java_language_defn): Ditto.
7151 * language.c (unknown_language_defn, auto_language_defn)
7152 (local_language_defn): Ditto.
7153 * m2-lang.c (m2_language_defn): Ditto.
7154 * objc-lang.c (objc_language_defn): Ditto.
7155 * scm-lang.c (scm_language_defn): Ditto.
7156 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7157 * p-lang.c (pascal_language_defn): Ditto for both.
7158 * Makefile.in (f-lang.o): Depend on value_h.
7159 (p-lang.o): Ditto.
7160
7161 2003-05-19 David Carlton <carlton@bactrian.org>
7162
7163 * block.h: Declare block_static_block.
7164 * block.c (block_static_block): New.
7165 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7166 lookup_symbol_aux_local, calling block_static_block instead.
7167 (lookup_symbol_aux_local): Delete 'static_block' argument.
7168
7169 2003-05-19 David Carlton <carlton@bactrian.org>
7170
7171 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7172
7173 2003-05-19 Michal Ludvig <mludvig@suse.cz>
7174
7175 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7176 register numbers mapping.
7177
7178 2003-05-18 Adam Fedor <fedor@gnu.org>
7179
7180 * symtab.c (completion_list_objc_symbol): New function.
7181 (make_symbol_completion_list): Use it to add ObjC symbols
7182 when looking though the list.
7183 (language_search_unquoted_string): New function.
7184 (make_file_symbol_completion_list): Use it.
7185
7186 2003-05-18 Andreas Schwab <schwab@suse.de>
7187
7188 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7189 dependencies.
7190 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7191 as m68k_linux_extract_return_value.
7192 (DEPRECATED_STORE_RETURN_VALUE): Define as
7193 m68k_linux_store_return_value.
7194 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7195 m68k_linux_extract_struct_value_address.
7196 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7197 get_next_frame, get_frame_base, get_frame_pc.
7198 (m68k_linux_frame_saved_pc): Use get_frame_base.
7199 (m68k_linux_extract_return_value): New function.
7200 (m68k_linux_store_return_value): New function.
7201 (m68k_linux_extract_struct_value_address): New function.
7202 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7203
7204 * c-exp.y (typebase): Remove duplicate occurence of
7205 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
7206 of lookup_signed_typename.
7207
7208 2003-05-18 Mark Kettenis <kettenis@gnu.org>
7209
7210 * dwarf2loc.c (find_location_expression): Change type of second
7211 argument to `size_t *'.
7212 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7213 for size variable.
7214
7215 2003-05-18 David Carlton <carlton@bactrian.org>
7216
7217 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7218 'linkage_name'. Add comment.
7219 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7220 'linkage_name'.
7221 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7222 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7223 (lookup_block_symbol): Ditto.
7224
7225 2003-05-16 Andrew Cagney <cagney@redhat.com>
7226
7227 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7228 * gdbarch.h, gdbarch.c: Re-generate.
7229 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7230 * TODO (REGISTER_BYTES): Delete reference.
7231 * alpha-tdep.c (alpha_gdbarch_init): Update.
7232 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7233 * x86-64-tdep.c (x86_64_init_abi): Update.
7234 * vax-tdep.c (vax_gdbarch_init): Update.
7235 * v850-tdep.c (v850_gdbarch_init): Update.
7236 * sparc-tdep.c (sparc_gdbarch_init): Update.
7237 * sh-tdep.c (sh_gdbarch_init): Update.
7238 * s390-tdep.c (s390_gdbarch_init): Update.
7239 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7240 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7241 (ns32k_gdbarch_init_32382): Update.
7242 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7243 * mcore-tdep.c (mcore_gdbarch_init): Update.
7244 * m68k-tdep.c (m68k_gdbarch_init): Update.
7245 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7246 * ia64-tdep.c (ia64_gdbarch_init): Update.
7247 * i386-tdep.c (i386_gdbarch_init): Update.
7248 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7249 * hppa-tdep.c (hppa_gdbarch_init): Update.
7250 * h8300-tdep.c (h8300_gdbarch_init): Update.
7251 * frv-tdep.c (frv_gdbarch_init): Update.
7252 * cris-tdep.c (cris_gdbarch_init): Update.
7253 * avr-tdep.c (avr_gdbarch_init): Update.
7254 * arm-tdep.c (arm_gdbarch_init): Update.
7255 * sparc-tdep.c (sparc_pop_frame): Update.
7256 * rs6000-tdep.c (rs6000_pop_frame): Update.
7257 * remote.c (init_remote_state): Update.
7258 (remote_prepare_to_store): Update.
7259 * remote-vx.c (vx_prepare_to_store): Update.
7260 * remote-sds.c (sds_fetch_registers): Update.
7261 (sds_prepare_to_store): Update.
7262 * remote-array.c: Update.
7263 * regcache.c (init_legacy_regcache_descr): Update.
7264 (init_regcache_descr): Update.
7265 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7266 (mips_o64_extract_return_value): Update.
7267 * irix5-nat.c (fetch_core_registers): Update.
7268 * irix4-nat.c (fetch_core_registers): Update.
7269 * i386-tdep.h: Update.
7270 * hppa-tdep.c (pa_do_registers_info): Update.
7271 (pa_do_strcat_registers_info): Update.
7272 * cris-tdep.c (cris_register_bytes_ok): Update.
7273 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7274 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7275 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7276 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7277 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7278 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7279 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7280 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7281 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7282 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7283 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7284 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7285 (REGISTER_BYTES_OK): Update.
7286 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7287 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7288
7289 2003-05-16 Ian Lance Taylor <ian@airs.com>
7290
7291 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7292 (vax_print_insn, print_insn_arg): Remove static functions.
7293 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7294 print_insn_vax from opcodes library.
7295 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7296
7297 2003-05-15 Andrew Cagney <cagney@redhat.com>
7298
7299 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7300 * target.h (memory_breakpoint_from_pc): Delete declaration.
7301 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7302 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7303 * monitor.c (monitor_insert_breakpoint): Use
7304 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7305 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7306 * gdbarch.h, gdbarch.c: Re-generate.
7307 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7308 (sparc_gdbarch_init): Set breakpoint_from_pc to
7309 sparc_breakpoint_from_pc.
7310 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7311 (BREAKPOINT_FROM_PC): Define.
7312 (sparc_breakpoint_from_pc): Declare.
7313 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7314 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7315 (BREAKPOINT_FROM_PC): Define.
7316 (BREAKPOINT): Delete macro.
7317 * target.h: Update comment.
7318 * s390-tdep.c (s390_gdbarch_init): Update comments.
7319 * remote.c: Update comments.
7320 * remote-mips.c: Update comments.
7321 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7322 * mem-break.c: Update comment.
7323 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7324 (ia64_memory_insert_breakpoint): Update.
7325 * config/sparc/tm-sparc.h: Update comment.
7326 * config/pa/tm-hppa64.h: Update comment.
7327 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7328 (rs6000_breakpoint_from_pc): Update.
7329 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7330 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7331 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7332 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7333 (mips_breakpoint_from_pc): Update.
7334 (mips_dump_tdep): Update.
7335
7336 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7337 * minsyms.c (lookup_minimal_symbol): Inline
7338 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7339
7340 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7341 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7342 * p-lang.c (pascal_printstr): Ditto.
7343 * objc-lang.c (objc_printstr): Ditto.
7344 * m2-lang.c (m2_printstr): Ditto.
7345 * jv-valprint.c (java_print_value_fields): Ditto.
7346 * f-lang.c (f_printstr): Ditto.
7347 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7348 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7349 for repeat_count_threshold.
7350 * Makefile.in (cp-valprint.o): Update dependencies.
7351
7352 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
7353
7354 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7355 (examine_prologue): Support looking through leaf functions, knowing
7356 they start with mov r2,r12. Support skipping over indirect stores
7357 of the input registers. Upon hitting a non-nop branch instruction
7358 or predicated instruction, bail out by setting lim_pc to the current
7359 pc value in the loop. At the end, if the lim_pc value is still
7360 beyond our calculated value and we have trust_limit set,
7361 use the lim_pc value.
7362
7363 2003-05-15 Andrew Cagney <cagney@redhat.com>
7364
7365 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7366 generic_find_dummy_frame.
7367 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7368 (deprecated_generic_find_dummy_frame): Update.
7369 (deprecated_read_register_dummy): Update.
7370 * frame.c (deprecated_generic_get_saved_register): Update.
7371
7372 2003-05-15 Theodore A. Roth <troth@openavr.org>
7373
7374 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7375 (avr_gdbarch_init): Set breakpoint_from_pc method.
7376
7377 2003-05-15 Andrew Cagney <cagney@redhat.com>
7378
7379 * regcache.c (build_regcache): Set deprecated_register_valid
7380 directly.
7381 (deprecated_grub_regcache_for_register_valid): Delete function.
7382 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7383 declaration.
7384
7385 2003-05-15 David Carlton <carlton@bactrian.org>
7386
7387 Committed by Elena Zannoni <ezannoni@redhat.com>
7388 * symtab.c (lookup_symbol_aux): Delete calls to
7389 lookup_symbol_aux_minsyms.
7390 (lookup_symbol_aux_minsyms): Comment out function and
7391 prototype. Delete lookup by mangled name.
7392
7393 2003-05-14 Kevin Buettner <kevinb@redhat.com>
7394
7395 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7396 correctly indicate an empty stack and ``stack_allocated'' to the
7397 indicate the number of elements initially allocated.
7398 (dwarf_expr_grow_stack): Simplify method for computing new
7399 stack size. Don't loop infinitely if ``stack_len'' is zero.
7400 (execute_stack_op): Move ``ctx->in_reg'' initialization
7401 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7402 be used in conjuction with DW_OP_piece. Revise error message
7403 accordingly.
7404
7405 2003-05-14 Theodore A. Roth <troth@openavr.org>
7406
7407 * MAINTAINERS: Update my email address.
7408 * avr-tdep.c: Ditto.
7409
7410 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
7411
7412 * symtab.h (enum domain_enum): Rename from namespace_enum.
7413 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7414 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7415 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7416 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7417 TYPES_NAMESPACE, METHODS_NAMESPACE.
7418 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7419 (struct symbol, struct partial_symbol): Rename field
7420 'namespace_enum namespace' to 'domain_enum domain'.
7421 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7422 Delete old define kludge for namespace.
7423
7424 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7425 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7426 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7427 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7428 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7429 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7430 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7431 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7432 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7433 occurrences of the above.
7434
7435 2003-05-14 Ian Lance Taylor <ian@airs.com>
7436
7437 * Makefile.in (install-only): Use $(SHELL) when running
7438 mkinstalldirs.
7439
7440 2003-05-13 Ian Lance Taylor <ian@airs.com>
7441
7442 * MAINTAINERS (write after approval): Add myself.
7443
7444 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7445 second and third arguments.
7446 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7447 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7448
7449 2003-05-13 Andrew Cagney <cagney@redhat.com>
7450
7451 * defs.h (store_address): Delete declaration.
7452 findvar.c (store_address): Delete function.
7453 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7454 store_unsigned_integer.
7455 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7456 * v850-tdep.c (v850_push_arguments): Ditto.
7457 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7458 * sh-tdep.c (sh64_get_saved_register): Ditto.
7459 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7460 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7461 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7462 (mips_get_saved_register): Ditto.
7463 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7464 (find_func_descr, ia64_push_arguments): Ditto.
7465 * i386-tdep.c (i386_push_arguments): Ditto.
7466 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7467 * frv-tdep.c (frv_push_arguments): Ditto.
7468 * frame.c (legacy_saved_regs_prev_register): Ditto.
7469 (deprecated_generic_get_saved_register): Ditto.
7470 * findvar.c (unsigned_address_to_pointer): Ditto.
7471 * dwarf2read.c (dwarf2_const_value): Ditto.
7472 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7473 * alpha-tdep.c (alpha_push_arguments): Ditto.
7474
7475 2003-05-12 J. Brobecker <brobecker@gnat.com>
7476
7477 * NEWS: Mention that the hppa-hpux port has been partially
7478 multiarched (32bit ABIT only, so far).
7479
7480 2003-05-11 Andrew Cagney <cagney@redhat.com>
7481
7482 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7483 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7484 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7485 sim/testsuite/sim/arm/misaligned2.ms, and
7486 sim/testsuite/sim/arm/misaligned3.ms.
7487 * disasm.h (struct ui_file): Add opaque struct declaration.
7488 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7489 * frame.h (struct ui_file): Ditto.
7490
7491 2003-05-11 Mark Kettenis <kettenis@gnu.org>
7492
7493 * value.h: Pretty print.
7494
7495 2003-05-10 Mark Kettenis <kettenis@gnu.org>
7496
7497 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7498
7499 2003-05-08 Andrew Cagney <cagney@redhat.com>
7500
7501 * regcache.h (max_register_size): Delete declaration.
7502 * regcache.c (max_register_size): Delete function.
7503 (struct regcache_descr): Delete field "max_register_size".
7504 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7505 registers fit in MAX_REGISTER_SIZE.
7506 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7507 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7508 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7509 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7510 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7511 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7512 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7513 * dve3900-rom.c, hppa-tdep.c: Ditto.
7514
7515 2003-05-08 David Carlton <carlton@math.stanford.edu>
7516
7517 * valops.c (push_word): Fix typo.
7518
7519 2003-05-08 Andrew Cagney <cagney@redhat.com>
7520
7521 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7522 * gdbarch.h: Re-generate.
7523 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7524 (legacy_max_register_raw_size): Delete declaration.
7525 * regcache.c (legacy_max_register_raw_size): Delete function.
7526 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7527 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7528 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7529 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7530 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7531 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7532 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7533 * findvar.c, dwarf2cfi.c: Ditto.
7534
7535 2003-05-08 Andrew Cagney <cagney@redhat.com>
7536
7537 * mips-tdep.c (read_signed_register): New function, moved to here
7538 from "regcache.c".
7539 (read_signed_register_pid): Ditto.
7540 * regcache.c (read_signed_register_pid): Delete function, moved to
7541 "mips-tdep.c".
7542 (read_signed_register): Ditto.
7543 * regcache.h (read_signed_register): Delete declaration.
7544 (read_signed_register_pid): Delete declaration.
7545
7546 2003-05-08 Andrew Cagney <cagney@redhat.com>
7547
7548 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7549 * gdbarch.h: Re-generate.
7550 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7551 (legacy_max_register_virtual_size): Delete declaration.
7552 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7553 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7554 * tracepoint.c (memrange_sortmerge): Ditto.
7555 * sparc-tdep.c (sparc_print_registers): Ditto.
7556 * regcache.c (legacy_max_register_virtual_size): Delete function.
7557
7558 2002-05-08 J. Brobecker <brobecker@gnat.com>
7559
7560 * fork-child.c (escape_bang_in_quoted_argument): New function.
7561 (fork_inferior): Escape '!' characters in quoted arguments
7562 only when needed.
7563
7564 2003-05-08 J. Brobecker <brobecker@gnat.com>
7565
7566 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7567 the language of the CU is not currently supported by GDB.
7568
7569 2003-05-08 J. Brobecker <brobecker@gnat.com>
7570
7571 * defs.h (language): Add language_minimal enum value.
7572 * c-lang.c (minimal_language_defn): New language definition.
7573 (_initialize_c_language): Add the new minimal language to the list
7574 of languages known to GDB.
7575
7576 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7577
7578 * frame.c (get_frame_type): Don't attempt to lazily initialize
7579 frame's unwinder for legacy frames.
7580
7581 2003-05-07 Andrew Cagney <cagney@redhat.com>
7582
7583 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7584 and "regcache" parameters.
7585 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7586
7587 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7588
7589 * dwarf2read.c (dwarf_decode_lines): Only use output of
7590 check_cu_functions() when calling record_line(). Do not update
7591 the current address.
7592
7593 2003-05-07 Andrew Cagney <cagney@redhat.com>
7594
7595 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7596 code.
7597
7598 2003-05-07 Jim Blandy <jimb@redhat.com>
7599
7600 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7601 'maint info symtabs' and 'maint info psymtabs'.
7602 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7603 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7604 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7605 Declarations updated.
7606 * maint.c (maintenance_list_command): Delete.
7607 (_initialize_maint_cmds): Update calls to add_cmd.
7608 * gdbcmd.h (maintenancelistlist): Delete declaration.
7609 * cli/cli-cmds.c (maintenancelistlist): Delete.
7610 (init_cmd_lists): Don't initialize it.
7611 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7612
7613 2003-05-07 Andrew Cagney <cagney@redhat.com>
7614
7615 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7616 "regcache".
7617 (d10v_print_registers_info): Update.
7618 (d10v_dmap_register, d10v_imap_register): Delete functions.
7619 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7620 and "imap_register".
7621 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7622 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7623 * arch-utils.c (generic_remote_translate_xfer_address): Add
7624 "regcache" and "gdbarch" parameters.
7625 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7626 parameter. Change class to multi-arch.
7627 * gdbarch.h, gdbarch.c: Re-generate.
7628 * remote.c (remote_xfer_memory): Use
7629 gdbarch_remote_translate_xfer_address.
7630
7631 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7632
7633 * infrun.c (prev_pc): Move declaration ahead of proceed().
7634 (proceed): Refresh prev_pc value before resuming.
7635 (stop_stepping): Remove code to refresh prev_pc.
7636
7637 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7638
7639 * nto-tdep.c: Removed stray comment.
7640
7641 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7642
7643 * i386-nto-tdep.c: Fix old K&R function definitions.
7644 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7645 Also change add_show_from_set() call to add_setshow_cmd().
7646 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7647
7648 2003-05-05 Andrew Cagney <cagney@redhat.com>
7649
7650 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7651 (fprint_dummy_frames): New function.
7652 (maintenance_print_dummy_frames): New function.
7653 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7654 * frame.c (fprint_frame_id): Make global.
7655 * frame.h (fprint_frame_id): Declare.
7656 * Makefile.in (dummy-frame.o): Update dependencies.
7657
7658 2003-05-05 Andrew Cagney <cagney@redhat.com>
7659
7660 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7661 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7662 SIZEOF_CALL_DUMMY_WORDS.
7663 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7664 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7665 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7666 CALL_DUMMY_BREAKPOINT_OFFSET.
7667 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7668 CALL_DUMMY_START_OFFSET.
7669 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7670 * gdbarch.h, gdbarch.c: Re-generate.
7671 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7672 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7673 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7674 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7675 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7676 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7677 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7678 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7679 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7680 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7681 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7682 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7683 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7684 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7685 * config/sparc/tm-sparc.h: Update.
7686
7687 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7688
7689 * configure.tgt: Add i[3456]86-*-nto*.
7690 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7691 * nto-tdep.c: New file. Neutrino target support routines.
7692 * nto-tdep.h: New file. Neutrino target header.
7693 * config/tm-qnxnto.h: New file.
7694 * config/i386/i386nto.mt: New file.
7695 * config/i386/tm-i386nto.h: New file.
7696
7697 2003-05-04 Andrew Cagney <cagney@redhat.com>
7698
7699 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7700 (load_infrun_state): Ditto.
7701 (struct thread_info): Drop "prev_func_name" field.
7702 * thread.c (load_infrun_state): Update.
7703 (save_infrun_state): Update.
7704 * infrun.c (prev_func_name): Delete variable.
7705 (init_wait_for_inferior): Do not clear prev_func_name.
7706 (stop_stepping, keep_going, context_switch): Do not swap
7707 prev_func_name.
7708 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7709 instead of PC_IN_SIGTRAMP.
7710
7711 2003-05-04 Andrew Cagney <cagney@redhat.com>
7712
7713 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7714 REGISTER_BYTE with register_offset_hack.
7715 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7716 that REGISTER_BYTE is consistent with the regcache.
7717 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7718 * gdbarch.h, gdbarch.c: Regenerate.
7719
7720 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7721
7722 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7723 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7724
7725 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7726
7727 2003-05-03 J. Brobecker <brobecker@gnat.com>
7728
7729 From Thierry Schneider <tpschneider1@yahoo.com>
7730 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7731 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7732 (mi-cmd-symbol.o): Add rule.
7733
7734 2003-05-03 Andrew Cagney <cagney@redhat.com>
7735
7736 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7737 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7738 * gdbarch.h, gdbarch.c: Re-generate.
7739 * d10v-tdep.c (d10v_push_dummy_code): New function.
7740 (d10v_gdbarch_init): Set push_dummy_code.
7741 * infcall.c (legacy_push_dummy_code): New function.
7742 (generic_push_dummy_code): New function.
7743 (push_dummy_code): New function.
7744 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7745 instead of dummy_addr, to push_dummy_call. Move call to
7746 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7747 switch.
7748 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7749
7750 2003-05-03 Andrew Cagney <cagney@redhat.com>
7751
7752 * disasm.h (print_insn): Declare.
7753 * disasm.c (init_gdb_disassemble_info): New function.
7754 (gdb_disassembly): Call init_gdb_disassemble_info.
7755 (gdb_print_insn): New function.
7756 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7757 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7758 * mcore-tdep.c: Include "disasm.h"
7759 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7760 * d10v-tdep.c: Include "disasm.h".
7761 (display_trace): Call gdb_print_insn, instead of print_insn.
7762 (print_insn): Delete function.
7763 * printcmd.c: Include "disasm.h".
7764 (print_insn): Delete function.
7765 (print_formatted): Call gdb_print_insn, instead of print_insn.
7766 * Makefile.in (printcmd.o): Update dependencies.
7767 (mcore-tdep.o, d10v-tdep.o): Ditto.
7768
7769 2003-05-02 Andrew Cagney <cagney@redhat.com>
7770
7771 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7772 PC_REGNUM, re-indent.
7773 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7774 PC_REGNUM isn't set.
7775
7776 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7777 * gdbarch.h, gdbarch.c: Re-generate.
7778 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7779 register_virtual_size, pc_regnum, or register_bytes.
7780 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7781 (d10v_register_type): Use D10V_PC_REGNUM.
7782 (d10v_print_registers_info, d10v_read_pc): Ditto.
7783 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7784 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7785
7786 2003-05-02 David Carlton <carlton@bactrian.org>
7787
7788 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7789 the name with mstrsave.
7790
7791 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7792
7793 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7794 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7795 (host_charset_name, target_charset_name): New vars for use by
7796 set/show commands.
7797 (host_charset_enum, target_charset_enum): New enums for set/show
7798 commands.
7799 (set_charset_sfunc, set_host_charset_sfunc,
7800 set_target_charset_sfunc): New functions.
7801 (set_host_charset, set_target_charset): Make static.
7802 (list_charsets, set_host_charset_command,
7803 set_target_charset_command): Delete functions.
7804 (show_charset_command): Rewrite as....
7805 (show_charset): Hook this up with the set/show command mechanism.
7806 (_initialize_charset): Change names of charsets to match the
7807 set/show enums. Use host_charset_name and target_charset_name.
7808 Use set/show mechanism for charset, host-charset, target-charset
7809 commands. Do not make 'show host-charset' and 'show
7810 target-charset' be aliases of 'show charset'.
7811
7812 * charset.h (set_host_charset, set_target_charset): Don't export,
7813 they are not used outside the file.
7814
7815 2003-05-01 Andrew Cagney <cagney@redhat.com>
7816
7817 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7818 (gdb_disassembly): Make "di" non static, always initialize and
7819 cleanup. Always use dis_asm_read_memory.
7820 (gdb_dis_asm_read_memory): Delete function.
7821
7822 2003-05-01 Andrew Cagney <cagney@redhat.com>
7823
7824 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7825 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7826
7827 2003-04-30 Andrew Cagney <cagney@redhat.com>
7828
7829 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7830 "tm_print_insn_info".
7831 (TARGET_PRINT_INSN_INFO): Delete macro.
7832 (dis_asm_read_memory): Delete function declaration.
7833 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7834 (tm_print_insn_info): Delete variable definition.
7835 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7836 * gdbarch.h, gdbarch.c: Re-generate.
7837 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7838 "deprecated_tm_print_insn_info".
7839 * mcore-tdep.c (mcore_dump_insn): Ditto.
7840 * mips-tdep.c (mips_gdbarch_init): Ditto.
7841 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7842 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7843 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7844 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7845 instead of TARGET_PRINT_INSN_INFO, add comment.
7846 * s390-tdep.c (s390_get_frame_info): Instead of
7847 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7848 (s390_check_function_end, s390_is_sigreturn): Ditto.
7849 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7850 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7851 * disasm.c: Include "gdbcore.h".
7852 (_initialize_disasm): New function, initialize
7853 "deprecated_tm_print_insn_info".
7854 (deprecated_tm_print_insn_info): New variable.
7855 (dis_asm_read_memory): Moved from "corefile.c", made static.
7856 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7857 * Makefile.in (disasm.o): Update dependencies.
7858
7859 2003-04-30 Andrew Cagney <cagney@redhat.com>
7860
7861 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7862
7863 2003-04-29 Adam Fedor <fedor@gnu.org>
7864
7865 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7866 * infcall.c (find_function_addr): Make non-static.
7867 * infcall.h (find_function_addr): Declare.
7868 * Makefile.in (eval.o): Update dependencies.
7869
7870 2003-04-28 Adam Fedor <fedor@gnu.org>
7871
7872 * symtab.c (symbol_find_demangled_name): Check for and demangle
7873 ObjC symbols.
7874 (symbol_init_demangled_name): Init for language_objc as well.
7875
7876 2003-04-28 Andrew Cagney <cagney@redhat.com>
7877
7878 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7879 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7880 * gdbarch.h, gdbarch.c: Re-generate.
7881 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7882 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7883 * inferior.h (deprecated_read_fp): Rename read_fp.
7884 (generic_target_read_fp): Delete declaration.
7885 * regcache.c (generic_target_read_fp): Delete function.
7886 (deprecated_read_fp): Replace read_fp, use
7887 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7888 * d10v-tdep.c (d10v_read_fp): Delete function.
7889 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7890
7891 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7892 deprecated_target_read_fp to generic_target_read_fp.
7893 * sh-tdep.c (sh_gdbarch_init): Ditto.
7894 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7895 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7896 * frv-tdep.c (frv_gdbarch_init): Ditto.
7897
7898 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7899 deprecated_fp_regnum.
7900 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7901 * vax-tdep.c (vax_gdbarch_init): Ditto.
7902 * v850-tdep.c (v850_gdbarch_init): Ditto.
7903 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7904 * sh-tdep.c (sh_gdbarch_init): Ditto.
7905 * s390-tdep.c (s390_gdbarch_init): Ditto.
7906 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7907 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7908 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7909 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7910 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7911 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7912 * i386-tdep.c (i386_gdbarch_init): Ditto.
7913 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7914 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7915 * frv-tdep.c (frv_gdbarch_init): Ditto.
7916 * cris-tdep.c (cris_gdbarch_init): Ditto.
7917 * avr-tdep.c (avr_gdbarch_init): Ditto.
7918 * arm-tdep.c (arm_gdbarch_init): Ditto.
7919 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7920
7921 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7922 * v850-tdep.c (v850_gdbarch_init): Ditto.
7923 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7924 * sh-tdep.c (sh_gdbarch_init): Ditto.
7925 * s390-tdep.c (s390_gdbarch_init): Ditto.
7926 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7927 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7928 * mips-tdep.c (mips_gdbarch_init): Ditto.
7929 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7930 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7931 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7932 * frv-tdep.c (frv_gdbarch_init): Ditto.
7933 * avr-tdep.c (avr_gdbarch_init): Ditto.
7934 * arm-tdep.c (arm_gdbarch_init): Ditto.
7935
7936 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7937 DEPRECATED_FP_REGNUM.
7938 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7939 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7940 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7941 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7942 (sparc32_register_virtual_type): Ditto.
7943 * sh-tdep.c (sh64_frame_chain): Ditto.
7944 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7945 (sh_nofp_frame_init_saved_regs): Ditto.
7946 (sh64_nofp_frame_init_saved_regs): Ditto.
7947 (sh_fp_frame_init_saved_regs): Ditto.
7948 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7949 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7950 * procfs.c (procfs_fetch_registers): Ditto.
7951 (procfs_store_registers): Ditto.
7952 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7953 (store_inferior_registers, fetch_core_registers): Ditto.
7954 (fetch_kcore_registers, clear_regs): Ditto.
7955 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7956 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7957 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7958 * nlm/i386.c (do_status): Ditto.
7959 * mipsv4-nat.c (supply_gregset): Ditto.
7960 * mips-tdep.c: Ditto for comments.
7961 * mips-nat.c (fetch_inferior_registers): Ditto.
7962 (store_inferior_registers, fetch_core_registers): Ditto.
7963 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7964 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7965 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7966 (i386_do_pop_frame, i386_register_type): Ditto.
7967 * hppa-tdep.c (hppa_frame_chain): Ditto.
7968 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7969 (hppa_pop_frame, hppa_read_fp): Ditto.
7970 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7971 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7972 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7973 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7974 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7975 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7976 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7977 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7978 * blockframe.c: Ditto for comments.
7979 * arch-utils.h: Ditto for comments.
7980 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7981 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7982 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7983 * alpha-tdep.h: Ditto for comments.
7984 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7985 (alpha_cannot_store_register): Ditto.
7986 (alpha_push_dummy_frame): Ditto.
7987 * alpha-nat.c (supply_gregset): Ditto.
7988
7989 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7990 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7991 * config/sparc/tm-sparc.h: Update comment.
7992
7993 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7994 deprecated_read_fp instead of TARGET_READ_FP.
7995 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7996 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7997 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7998 deprecated_read_fp instead of read_fp.
7999 * s390-tdep.c (s390_push_arguments): Ditto.
8000 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8001 * frame.h: Ditto in comments.
8002 * frame.c (legacy_get_prev_frame): Ditto.
8003 * dummy-frame.c (dummy_frame_this_id): Ditto.
8004 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8005
8006 2003-04-28 Andrew Cagney <cagney@redhat.com>
8007
8008 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8009 * gdbarch.h, gdbarch.c: Re-generate.
8010 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8011 * vax-tdep.c (_initialize_vax_tdep): Update.
8012 * v850-tdep.c (_initialize_v850_tdep): Update.
8013 * sparc-tdep.c (_initialize_sparc_tdep): Update.
8014 * s390-tdep.c (_initialize_s390_tdep): Update.
8015 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8016 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8017 * mips-tdep.c (_initialize_mips_tdep): Update.
8018 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8019 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8020 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8021 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8022 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8023 * frv-tdep.c (_initialize_frv_tdep): Update.
8024 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8025 (_initialize_cris_tdep): Update.
8026 * arch-utils.c (legacy_print_insn): Update.
8027 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8028
8029 2003-04-26 Adam Fedor <fedor@gnu.org>
8030
8031 * linespec.c (decode_objc): New function to decode ObjC calls
8032 (decode_line_1): Check for ObjC calls (using decode_objc)
8033 * Makefile (linespec.o): Update dependencies.
8034
8035 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
8036
8037 * breakpoint.h (struct breakpoint_ops): New.
8038 (struct breakpoint): Add ops member.
8039
8040 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8041 (mention): Use new breakpoint ops member.
8042 (set_raw_breakpoint): Initialize ops field to NULL.
8043 (print_exception_catchpoint, print_one_exception_catchpoint)
8044 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8045 (gnu_v3_exception_catchpoint_ops): New.
8046 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8047
8048 2003-04-25 Adam Fedor <fedor@gnu.org>
8049
8050 * Makefile.in (COMMON_OBS): Add objc-lang.o
8051
8052 2003-04-25 Andrew Cagney <cagney@redhat.com>
8053
8054 * d10v-tdep.c (print_insn): Delete function.
8055 (display_trace): Use TARGET_PRINT_INSN.
8056 (_initialize_d10v_tdep): Do not set tm_print_insn.
8057 (d10v_gdbarch_init): Set print_insn.
8058
8059 2003-04-25 Andrew Cagney <cagney@redhat.com>
8060
8061 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8062 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8063 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8064 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8065 (nr_dmap_regs, a0_regnum): ... new functions.
8066 (d10v_print_registers_info): Use a0_regnum, use register_size.
8067 (d10v_register_byte): Delete function.
8068 (d10v_register_raw_size): Delete function.
8069 (d10v_register_type): Use a0_regnum.
8070 (d10v_print_registers_info): Use a0_regnum.
8071 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8072 (d10v_gdbarch_init): Do not set register_byte or
8073 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8074 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8075 extract_address.
8076 (trace_command): Use XCALLOC.
8077 (print_insn): Delete reference to tm_print_insn.
8078 (saved_regs_unwinder): Use store_unsigned_integer instead of
8079 store_address.
8080 * frame.h (FRAME_OBSTACK_CALLOC): Define
8081
8082 2003-04-25 David Carlton <carlton@bactrian.org>
8083
8084 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8085
8086 2003-04-24 Adam Fedor <fedor@gnu.org>
8087
8088 * objc-lang.c: Include "valprint.h"
8089 * Makefile.in (objc-lang.o): Update dependencies.
8090
8091 2003-04-24 Adam Fedor <fedor@gnu.org>
8092
8093 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
8094 architecture dependant compilation and mark as unimplemented
8095 (until they get put in the gdbarch vector).
8096
8097 2003-04-23 David Carlton <carlton@bactrian.org>
8098
8099 * cp-support.c (cp_find_first_component): Accept 'operator' in
8100 more locations.
8101
8102 2003-04-23 Andrew Cagney <cagney@redhat.com>
8103
8104 * infcall.c (call_function_by_hand): Eliminate redundant
8105 indentation. Move "saved_async" and "old_cleanups" to where they
8106 are needed.
8107
8108 2003-04-23 Andrew Cagney <cagney@redhat.com>
8109
8110 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8111 and "buffer". Move the "name" code to where it is needed.
8112
8113 2003-04-23 Andrew Cagney <cagney@redhat.com>
8114
8115 * infcall.c (call_function_by_hand): Move variables "start_sp",
8116 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8117 code to ON_STACK switch branch.
8118
8119 2003-04-23 Andrew Cagney <cagney@redhat.com>
8120
8121 * infcall.c (call_function_by_hand): Make declaration of "i",
8122 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8123 lint.
8124
8125 2003-04-23 Andrew Cagney <cagney@redhat.com>
8126
8127 * infcall.c (call_function_by_hand): Delete variable
8128 "n_method_args". Localize "param_type"'s declaration to the loop
8129 that it is used. Reinstate code assigning to said variable -
8130 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8131 Rationalize code using "param_type".
8132
8133 2003-04-22 Andrew Cagney <cagney@redhat.com>
8134
8135 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8136 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8137 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8138 to DEPRECATED_PUSH_RETURN_ADDRESS.
8139
8140 2003-04-22 Kevin Buettner <kevinb@redhat.com>
8141
8142 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8143 on the DWARF2 register number prior to fetching a register.
8144
8145 2003-04-22 J. Brobecker <brobecker@gnat.com>
8146
8147 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8148 Update all the tests using SOFT_FLOAT considering the fact that
8149 this macro was always set to 0.
8150 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8151 considering the fact that this macro was always set to 0.
8152 * hppa-tdep.h (hppa_store_return_value): Likewise.
8153 (hppa_extract_return_value): Likewise.
8154
8155 2003-04-22 J. Brobecker <brobecker@gnat.com>
8156
8157 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8158 the hppa-pro target only.
8159
8160 2003-04-21 J. Brobecker <brobecker@gnat.com>
8161
8162 Ongoing multi-arch conversion effort for HP/UX:
8163 * config/pa/tm-hppa.h: Move all macro that are no longer
8164 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8165 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8166
8167 2003-04-21 J. Brobecker <brobecker@gnat.com>
8168
8169 * config/pa/tm-hppa.h: Obsolete a section that was only used
8170 for hppa-pro.
8171
8172 2003-04-21 J. Brobecker <brobecker@gnat.com>
8173
8174 Ongoing multi-arch conversion for HP/UX.
8175 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8176 if already defined (allows hppa64 to stay non-multiarched for now).
8177 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8178
8179 2003-04-21 Andrew Cagney <cagney@redhat.com>
8180
8181 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8182
8183 2003-04-21 Andrew Cagney <cagney@redhat.com>
8184
8185 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8186 "i386_num_mmx_regs".
8187
8188 2003-04-21 Andrew Cagney <cagney@redhat.com>
8189
8190 * infcall.c: New file.
8191 * infcall.h: New file.
8192 * valarith.c: Include "infcall.h".
8193 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8194 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8195 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8196 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8197 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8198 (SFILES): Add "infcall.c"
8199 (COMMON_OBS): Add "infcall.o".
8200 (infcall.o): Specify dependencies.
8201 * value.h (call_function_by_hand): Delete declaration.
8202 * inferior.h (run_stack_dummy): Delete declaration.
8203 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8204 (run_stack_dummy): Move to "infcall.c", merged into
8205 call_function_by_hand.
8206 * valops.c (call_function_by_hand): Moved to "infcall.c".
8207 (find_function_addr, value_arg_coerce): Ditto.
8208 (unwindonsignal_p, coerce_float_to_double): Ditto.
8209 (_initialize_valops): Move "set/show coerce-float-to-double", and
8210 "set/show unwindonsignal" commands to "infcall.c".
8211 * v850-tdep.c, target.h: Update comments.
8212 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8213 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8214 (sh64_init_extra_frame_info): Update comments.
8215 * mn10300-tdep.c: Update comments.
8216 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8217 * config/sparc/tm-sparc.h: Update comments.
8218 * breakpoint.h: Update comments.
8219 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8220 * arm-tdep.c: Update comment.
8221
8222 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8223
8224 * i386-tdep.c (i386_num_register_names): New variable.
8225 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8226 (MM0_REGNUM): Remove redundant parentheses in define.
8227 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8228 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8229 i386_mxcsr_regnum_p): Remove redundant parentheses.
8230 (i386_register_name): Use i386_num_register_names.
8231
8232 * i386-tdep.c (i386_extract_return_value,
8233 i386_store_return_value): Correct check for availability of
8234 floating-point registers.
8235
8236 * i386-tdep.c (i386_frame_num_args): Remove function.
8237 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8238
8239 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8240 mmx_regnum_to_fp_regnum. Adjust all callers.
8241
8242 * i386-tdep.c (i386_get_longjmp_target): Use
8243 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8244 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8245 extract_address.
8246
8247 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8248
8249 * core-regset.c: Update comments to reflect reality. Re-order
8250 includes.
8251 (fetch_core_registers): Use switch instead of if. Remove
8252 redundant prototype.
8253
8254 2003-04-18 Jim Blandy <jimb@redhat.com>
8255
8256 * s390-tdep.c (s390_frame_align): New function.
8257 (s390_gdbarch_init): Register it with the gdbarch object.
8258
8259 2003-04-17 Richard Henderson <rth@redhat.com>
8260
8261 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8262
8263 2003-04-17 Michael Snyder <msnyder@redhat.com>
8264 Karen Bennet <bennet@redhat.com>
8265
8266 Committed by Elena Zannoni <ezannoni@redhat.com>
8267 * gdb_gcore.sh: New script to create a core dump of a process.
8268
8269 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
8270
8271 * values.c (value_being_returned): Don't fetch the return
8272 value if the return type is void.
8273
8274 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8275
8276 * thread-db.c: Reindented.
8277
8278 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8279
8280 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8281 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
8282 as types.
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308 2003-04-16 Kevin Buettner <kevinb@redhat.com>
8309
8310 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
8311 the size of ``long double'' to 16, instead of 8.
8312
8313 2003-04-16 Mark Kettenis <kettenis@gnu.org>
8314
8315 * i386-linux-nat.c: Add some whitespace to make things more
8316 readable.
8317 (fetch_register, store_register, fetch_inferior_registers,
8318 store_inferior_registers): Get rid of assignment in if-statement.
8319 (store_register): Fix typo in error message.
8320
8321 2003-04-16 Andrew Cagney <cagney@redhat.com>
8322
8323 * utils.c (xmmalloc): Always allocate something, matches
8324 libiberty/xmalloc's semantics.
8325 (xmrealloc, xmcalloc): Ditto.
8326
8327 2003-04-16 Andrew Cagney <cagney@redhat.com>
8328
8329 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8330 update comments.
8331 (get_frame_type): Initialize unwind and type when needed.
8332 (get_frame_id, frame_register_unwind): Ditto.
8333
8334 2003-04-16 Andrew Cagney <cagney@redhat.com>
8335
8336 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8337 obsolete.
8338 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8339 * sparcl-stub.c: Obsolete file.
8340 * config/sparc/tm-sparclet.h: Obsolete file.
8341 * sparclet-stub.c: Obsolete file.
8342 * sparclet-rom.c: Obsolete file.
8343 * sparcl-tdep.c: Obsolete file.
8344 * config/sparc/tm-sparclite.h: Obsolete file.
8345 * config/sparc/sparclite.mt: Obsolete file.
8346 * config/sparc/sparclet.mt: Obsolete file.
8347 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8348 sparc86x-*-* obsolete.
8349
8350 2003-04-15 David Carlton <carlton@math.stanford.edu>
8351
8352 * Makefile.in (SFILES): Add cp-namespace.c.
8353 (COMMON_OBS): Add cp-namespace.o.
8354 (block.o): Depend on gdb_obstack_h and cp_support_h.
8355 (buildsym.o): Depend on cp_support_h.
8356 (cp-namespace.o): New.
8357 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8358 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8359 (dwarf2read.o): Depend on cp_support_h.
8360 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8361 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8362 processing_current_namespace.
8363 (read_namespace): Update processing_current_namespace; check for
8364 anonymous namespaces.
8365 (dwarf2_name): New function.
8366 (dwarf2_extension): Ditto.
8367 * cp-support.h: Update copyright, contributors.
8368 Add inclusion guards.
8369 Add opaque declaration for structs obstack, block, symbol.
8370 (struct using_direct): New struct.
8371 Add declarations for cp_find_first_component,
8372 cp_entire_prefix_len, processing_has_namespace_info,
8373 processing_current_namespace, cp_is_anonymous,
8374 cp_add_using_directive, cp_initialize_namespace,
8375 cp_finalize_namespace, cp_set_block_scope,
8376 cp_scan_for_anonymous_namespaces.
8377 * cp-namespace.c: New file.
8378 * cp-support.c: Update copyright.
8379 Include ctype.h, gdb_assert.h, gdbcmd.h.
8380 New variable maint_cplus_cmd_list.
8381 (cp_find_first_component): New function.
8382 (cp_entire_prefix_len, maint_cplus_command)
8383 (first_component_command, _initialize_cp_support): Ditto.
8384 * buildsym.c: Include cp-support.h.
8385 New variable using_list.
8386 (add_symbol_to_list): Check for anonymous namespaces.
8387 (finish_block): Set block's scope.
8388 (start_symtab): Initialize C++ namespace support.
8389 (end_symtab): Finalize C++ namespace support.
8390 * block.h: Add opaque declarations for structs
8391 block_namespace_info, using_direct, and obstack.
8392 Add declarations for block_set_scope and block_set_using.
8393 (struct block): Add 'language_specific' member.
8394 (BLOCK_NAMESPACE): New macro.
8395 * block.c: Include gdb_obstack.h and cp-support.h.
8396 (struct block_namespace_info): New struct.
8397 (block_set_scope): New function.
8398 (block_set_using, block_initialize_namespace): Ditto.
8399
8400 2003-04-14 Kevin Buettner <kevinb@redhat.com>
8401
8402 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8403 (locate_base): Return early if there aren't any link map offsets.
8404 (svr4_solib_create_inferior_hook): Warn if shared library support
8405 is unavailable.
8406
8407 2003-04-14 David Carlton <carlton@math.stanford.edu>
8408
8409 * symtab.c (symbol_set_names): Add prefix when storing Java names
8410 in hash table. Fix for PR java/1039.
8411
8412 2003-04-14 David Carlton <carlton@math.stanford.edu>
8413
8414 * symtab.c (symbol_set_names): Rename 'name' arg to
8415 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8416 * symtab.h: Change 'name' argument in declaration of
8417 symbol_set_names to 'linkage_name'.
8418 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8419
8420 2003-04-14 Andrew Cagney <cagney@redhat.com>
8421
8422 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8423 return the fully sign-extended register value.
8424 (get_frame_pointer): Ditto.
8425 (mips_pop_frame): Initialize "proc_desc" after checking for a
8426 dummy frame.
8427
8428 2003-04-14 Andrew Cagney <cagney@redhat.com>
8429
8430 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8431 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8432 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8433 (mips_push_register): Delete function.
8434 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8435 PUSH_FP_REGNUM.
8436
8437 2003-04-14 Jim Blandy <jimb@redhat.com>
8438
8439 * symmisc.c: #include "gdb_regex.h".
8440 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8441 functions.
8442 * maint.c (maintenance_list_command): New function.
8443 (_initialize_maint_cmds): Register the above as commands.
8444 * symtab.h (maintenance_list_symtabs,
8445 maintenance_list_psymtabs): New declarations.
8446 * cli/cli-cmds.c (maintenancelistlist): New variable.
8447 (init_cmd_lists): Initialize it.
8448 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8449 * gdbcmd.h (maintenancelistlist): New declaration.
8450 * Makefile.in (symmisc.o): Update dependencies.
8451
8452 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
8453
8454 * s390-nat.c: Include asm/types.h for addr_t.
8455
8456 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
8457
8458 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8459 actually incoming type.
8460
8461 2003-04-13 Andrew Cagney <cagney@redhat.com>
8462
8463 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8464 get_next_frame and get_frame_saved_regs.
8465
8466 2003-04-13 Andrew Cagney <cagney@redhat.com>
8467
8468 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8469 of gdbarch_num_regs.
8470
8471 2003-04-13 Andrew Cagney <cagney@redhat.com>
8472
8473 * frame.h: Mention what replaced what in "struct frame_info".
8474 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8475 deprecated_update_frame_base_hack and
8476 deprecated_update_frame_pc_hack.
8477 * hppa-tdep.c: Ditto.
8478
8479 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8480
8481 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8482 to read_reg and update its comment. Remove regnum member.
8483 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8484 Don't call read_reg when setting in_reg. Call read_reg to get
8485 the frame base if it's in a register. Return the register number
8486 on the stack instead of in the context. Remove extra arguments
8487 to read_reg.
8488 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8489 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8490 the register number on the expression stack.
8491 (needs_frame_read_reg): Remove extra arguments.
8492
8493 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8494
8495 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8496 made non-static.
8497 (execute_stack_op): All callers updated.
8498 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8499 * dwarf2loc.c (find_location_expression): New function.
8500 (dwarf_expr_frame_base): Call it.
8501 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8502 (dwarf2_tracepoint_var_ref): New function, broken out from
8503 locexpr_tracepoint_var_ref.
8504 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8505 Make static.
8506 (loclist_read_variable, loclist_read_needs_frame): New functions.
8507 (loclist_describe_location, loclist_tracepoint_var_ref): New
8508 functions.
8509 (dwarf2_loclist_funcs): New struct location_funcs.
8510 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8511 (struct dwarf2_locexpr_baton): Add comments.
8512 (dwarf2_loclist_funcs): New extern.
8513 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8514 base_address and base_known.
8515 (dwarf_loc_buffer): New variable.
8516 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8517 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8518 (dwarf2_has_info): Initialize dwarf_loc_offset.
8519 (dwarf2_build_psymtabs): Read in .debug_loc.
8520 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8521 DWARF_LOC_SIZE.
8522 (psymtab_to_symtab_1): Likewise. Move base address calculation
8523 here, from...
8524 (dwarf2_get_pc_bounds): ... here. Use the base address from
8525 cu_header.
8526 (dwarf2_symbol_mark_computed): Handle location lists.
8527
8528 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8529
8530 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8531 if the linkage name demangled successfully.
8532
8533 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8534
8535 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8536 disassmbly_flavour): Removed.
8537
8538 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8539
8540 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8541
8542 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8543
8544 2003-04-12 Andrew Cagney <cagney@redhat.com>
8545
8546 * frame.h (struct frame_info): Move definition from here ...
8547 * frame.c (struct frame_info): ... to here.
8548
8549 2003-04-12 Andrew Cagney <cagney@redhat.com>
8550
8551 * gdbthread.h (save_infrun_state): Delete parameter
8552 "prev_func_start".
8553 (struct thread_info): Delete field "prev_func_start".
8554 (load_infrun_state): Ditto.
8555 * thread.c (load_infrun_state, save_infrun_state): Update.
8556 * infrun.c (prev_func_start): Delete variable.
8557 (context_switch, init_wait_for_inferior): Update.
8558 (stop_stepping, keep_going): Update.
8559
8560 2003-04-12 Andrew Cagney <cagney@redhat.com>
8561
8562 * gdbarch.sh: Add missing opaque declarations.
8563 * gdbarch.h: Regnerate.
8564 * symtab.h: Add missing opaque declarations.
8565 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8566 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8567 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8568 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8569 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8570 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8571 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8572 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8573 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8574 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8575 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8576 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8577 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8578
8579 2003-04-11 Andrew Cagney <cagney@redhat.com>
8580
8581 * frame.c (get_frame_id): Return this frame's "id".
8582 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8583 function start.
8584 (legacy_saved_regs_this_id): Replace function body with
8585 internal-error.
8586 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8587 FRAME_OBSTACK_ZALLOC.
8588 (create_new_frame): Mark the frame ID as valid.
8589
8590 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
8591
8592 * Makefile.in (libbfd_h): Added missing setting.
8593 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8594 according to the selected ABI.
8595
8596 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8597
8598 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8599
8600 2003-04-11 Andrew Cagney <cagney@redhat.com>
8601
8602 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8603 SAVED_PC_AFTER_CALL.
8604 * gdbarch.h, gdbarch.c: Regenerate.
8605 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8606 * x86-64-tdep.c (x86_64_init_abi): Update.
8607 * vax-tdep.c (vax_gdbarch_init): Update.
8608 * v850-tdep.c (v850_gdbarch_init): Update.
8609 * sparc-tdep.c (sparc_gdbarch_init): Update.
8610 * sh-tdep.c (sh_gdbarch_init): Update.
8611 * s390-tdep.c (s390_gdbarch_init): Update.
8612 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8613 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8614 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8615 * mips-tdep.c (mips_gdbarch_init): Update.
8616 * mcore-tdep.c (mcore_gdbarch_init): Update.
8617 * m68k-tdep.c (m68k_gdbarch_init): Update.
8618 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8619 * ia64-tdep.c (ia64_gdbarch_init): Update.
8620 (ia64_saved_pc_after_call): Update declaration.
8621 * i386ly-tdep.c (i386lynx_init_abi): Update.
8622 * i386-tdep.c (i386_gdbarch_init): Update.
8623 * hppa-tdep.c (hppa_gdbarch_init): Update.
8624 * h8300-tdep.c (h8300_gdbarch_init): Update.
8625 * frv-tdep.c (frv_gdbarch_init): Update.
8626 * cris-tdep.c (cris_gdbarch_init): Update.
8627 * avr-tdep.c (avr_gdbarch_init): Update.
8628 * arm-tdep.c (arm_gdbarch_init): Update.
8629 * alpha-tdep.c (alpha_gdbarch_init): Update.
8630 * ns32knbsd-nat.c (frame_num_args): Update.
8631 * ns32k-tdep.c (umax_frame_num_args): Update.
8632 * mips-tdep.c (mips_init_frame_pc_first): Update.
8633 * infrun.c (step_over_function): Update.
8634 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8635 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8636 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8637 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8638 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8639 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8640 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8641 * arch-utils.c (init_frame_pc_default): Update.
8642 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8643 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8644 declaration.
8645
8646 2003-04-11 Andrew Cagney <cagney@redhat.com>
8647
8648 * i387-tdep.c: Update copyright.
8649 (i387_to_double): Delete function.
8650 (double_to_i387): Delete function.
8651
8652 2003-04-10 Andrew Cagney <cagney@redhat.com>
8653
8654 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8655 frame's function's address. Simplify.
8656 (d10v_frame_unwind_cache): Check that the frame's function is
8657 non-zero.
8658
8659 2003-04-10 Jim Blandy <jimb@redhat.com>
8660
8661 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8662 call to set_gdbarch_deprecated_push_arguments.
8663
8664 2003-04-10 Andrew Cagney <cagney@redhat.com>
8665
8666 * frame.c (fprint_frame_id): New function.
8667 (fprint_frame_type, fprint_frame): New function.
8668 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8669 (create_sentinel_frame, get_frame_id): Ditto.
8670 (frame_id_p, frame_id_eq): Ditto.
8671 (frame_id_inner, create_new_frame): Ditto.
8672 (legacy_get_prev_frame, get_prev_frame): Ditto.
8673 (deprecated_update_frame_pc_hack): Ditto.
8674 (frame_register_unwind): Ditto.
8675 (deprecated_update_frame_base_hack): Ditto.
8676
8677 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8678
8679 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8680 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8681 frame_chain function.
8682 * Makefile.in: Add dependencies due to above change.
8683
8684 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8685
8686 * blockframe.c (legacy_frame_chain_valid): Move call to
8687 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8688 inside_entry_file.
8689
8690 2003-04-09 Andrew Cagney <cagney@redhat.com>
8691
8692 * frame.h (struct frame_id): Replace "pc" and "base" with
8693 "stack_addr" and "code_addr". Update comments.
8694 (frame_id_build): Update parameter names and comment.
8695 (struct frame_info): Replace "id_p" and "id" with "this_id".
8696 * dummy-frame.c (dummy_frame_this_id): Update.
8697 * breakpoint.c (print_one_breakpoint): Update.
8698 * frame.c (get_frame_id): Update.
8699 (get_frame_base, frame_id_build): Update.
8700 (create_sentinel_frame, legacy_get_prev_frame): Update.
8701 (deprecated_update_frame_base_hack): Update.
8702 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8703 (frame_id_inner): Ditto.
8704
8705 2003-04-09 Andrew Cagney <cagney@redhat.com>
8706
8707 * defs.h (gdb_print_host_address): Make "addr" parameter a
8708 pointer constant.
8709 * utils.c (gdb_print_host_address): Update.
8710
8711 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8712
8713 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8714 register number for R0 is 0.
8715
8716 2003-04-09 J. Brobecker <brobecker@gnat.com>
8717
8718 * frame.h (struct gdbarch): Add opaque structure definition
8719 to avoid a compilation warning on LynxOS 4.0.
8720
8721 2003-04-09 Andrew Cagney <cagney@redhat.com>
8722
8723 * frame.h (struct frame_info): Delete field "pc". Replace
8724 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8725 structure.
8726 * frame.c (frame_pc_unwind): Update.
8727 (create_sentinel_frame): Do not set "pc".
8728 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8729 (get_frame_pc): Call frame_pc_unwind.
8730 (deprecated_update_frame_pc_hack): Update.
8731 (create_new_frame): Use "pc" not "->pc".
8732
8733 2003-04-09 Andrew Cagney <cagney@redhat.com>
8734
8735 * frame.c (get_frame_id): Eliminate code updating "frame".
8736 (legacy_get_prev_frame): Ditto.
8737 (get_frame_base): Return id.base directly.
8738 (deprecated_update_frame_base_hack): Update "id.base".
8739 * frame.h (struct frame_info): Delete field "frame".
8740
8741 2003-04-09 Andrew Cagney <cagney@redhat.com>
8742
8743 * NEWS: Mention that the "Sequent family" is obsolete.
8744 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8745 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8746 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8747 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8748 * config/i386/tm-ptx4.h: Obsolete file.
8749 * config/i386/tm-ptx.h: Obsolete file.
8750 * symm-tdep.c: Obsolete file.
8751 * config/i386/symmetry.mt: Obsolete file.
8752 * config/i386/tm-symmetry.h: Obsolete file.
8753 * symm-nat.c: Obsolete file.
8754 * config/i386/nm-symmetry.h: Obsolete file.
8755 * config/i386/xm-symmetry.h: Obsolete file.
8756 * config/i386/symmetry.mh: Obsolete file.
8757 * config/i386/nm-ptx4.h: Obsolete file.
8758 * config/i386/ptx4.mh: Obsolete file.
8759 * config/i386/ptx.mt: Obsolete file.
8760 * config/i386/ptx.mh: Obsolete file.
8761 * config/i386/xm-ptx4.h: Obsolete file.
8762 * config/i386/xm-ptx.h: Obsolete file.
8763
8764 2003-04-09 Andrew Cagney <cagney@redhat.com>
8765
8766 Obsolete mips*-*-mach3*.
8767 * NEWS: Mention that mips*-*-mach3* is obsolete.
8768 * m3-nat.c: Obsolete file.
8769 * config/nm-m3.h: Obsolete file.
8770 * config/mips/tm-mipsm3.h: Obsolete file.
8771 * config/mips/mipsm3.mt: Obsolete file.
8772 * config/mips/mipsm3.mh: Obsolete file.
8773 * config/mips/xm-mipsm3.h: Obsolete file.
8774 * mipsm3-nat.c: Obsolete file.
8775 * configure.host: Obsolete mips-dec-mach3*.
8776 * configure.tgt: Obsolete mips*-*-mach3*.
8777
8778 2003-04-09 Andrew Cagney <cagney@redhat.com>
8779
8780 * doublest.h: Update copyright.
8781 (deprecated_store_floating, deprecated_extract_floating): Rename
8782 store_floating and extract_floating. Update comments.
8783 * doublest.c: Update copyright.
8784 (extract_floating_by_length): Replace extract_floating.
8785 (store_floating_by_length): Replace store_floating.
8786 (deprecated_extract_floating): New function.
8787 (deprecated_store_floating): New function.
8788 (extract_typed_floating): Call extract_floating_by_length.
8789 (store_typed_floating): Call store_floating_by_length.
8790 * x86-64-tdep.c (x86_64_store_return_value): Update.
8791 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8792 (sh64_extract_return_value): Update.
8793 (sh_sh4_register_convert_to_virtual): Update.
8794 (sh_sh64_register_convert_to_virtual): Update.
8795 (sh_sh4_register_convert_to_raw): Update.
8796 (sh_sh64_register_convert_to_raw): Update.
8797 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8798 (rs6000_register_convert_to_raw): Update.
8799 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8800 (ia64_register_convert_to_raw): Update.
8801 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8802 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8803 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8804 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8805 (alpha_register_convert_to_raw): Update.
8806
8807 2003-04-08 Andrew Cagney <cagney@redhat.com>
8808
8809 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8810 * gdbarch.h, gdbarch.c: Re-generate.
8811 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8812 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8813 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8814 conditionally, use frame_pc_unwind as an alternative. Add
8815 comments.
8816 * arch-utils.c (init_frame_pc_default): Only call
8817 SAVED_PC_AFTER_CALL when available.
8818
8819 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8820
8821 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8822 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8823 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8824 (start_remote): Ditto.
8825 (handle_inferior_event): Ditto.
8826 (save_inferior_status): Ditto.
8827 (restore_inferior_status): Ditto.
8828 * infcmd.c (attach_command): Ditto.
8829 * fork-child.c (startup_inferior): Ditto.
8830 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8831 * alpha-tdep.c (heuristic_proc_start): Ditto.
8832 * mips-tdep.c (heuristic_proc_start): Ditto.
8833 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8834 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8835 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8836 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8837 * remote-vx.c (vx_create_inferior): Ditto.
8838
8839 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8840
8841 * infrun.c (stop_soon_quietly): Make it an enum, to better
8842 override the default behavior of handle_inferior_event.
8843 (clear_proceed_status): Update uses of stop_soon_quietly to
8844 reflect that it is now an enum.
8845 (start_remote): Ditto.
8846 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8847 is set to handle the new GNU/Linux kernel behavior for
8848 attach/sigstop. Update uses of stop_soon_quietly.
8849 * inferior.h (enum stop_kind): New enum.
8850 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8851 Reset normal handle_inferior_event behavior, afterwards.
8852 * fork-child.c (startup_inferior): Update.
8853 * alpha-tdep.c (heuristic_proc_start): Update.
8854 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8855 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8856 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8857 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8858 * remote-vx.c (vx_create_inferior): Update.
8859 * mips-tdep.c (heuristic_proc_start): Update.
8860
8861 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8862
8863 * disasm.c (dump_insns): Move variables inside loop, or they will
8864 be freed more than once, causing wild memory corruptions.
8865 (gdb_disassembly): Look for the substring "-thread",
8866 instead of "-threads" in the target name, to make sure to find
8867 the 'multi-thread' target. Also, make sure we do the right thing
8868 with the "core" target.
8869
8870 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8871
8872 * mips-tdep.c (mips_print_fp_register): New function, created from
8873 do_fp_register_row(). Registers are now (also) printed as hex.
8874 Only one register is printed per row.
8875 (mips_print_register, do_fp_register_row): Print floating point
8876 registers with mips_print_fp_register().
8877
8878 2003-04-06 Andrew Cagney <cagney@redhat.com>
8879
8880 * valprint.h (inspect_it): Add extern declaration.
8881 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8882 (selectors_info, classes_info): Ditto.
8883 (find_objc_msgcall): Fix indentation.
8884 (objc_printstr): Delete extern declarations.
8885
8886 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8887
8888 2003-04-06 Andrew Cagney <cagney@redhat.com>
8889
8890 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8891 Update comment.
8892 * frame.c (legacy_saved_regs_this_id): Update.
8893 (legacy_get_prev_frame): Update.
8894 * xstormy16-tdep.c: Update comment.
8895 * sparc-tdep.c (sparc_frame_chain): Update comment.
8896 * blockframe.c (legacy_frame_chain_valid): Update.
8897
8898 2003-04-06 Andrew Cagney <cagney@redhat.com>
8899
8900 * valprint.c (val_print_type_code_int): Delete #ifdef
8901 PRINT_TYPELESS_INTEGER code.
8902
8903 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8904 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8905 multi-arch definition.
8906 * gdbarch.h: Re-generate.
8907
8908 2003-04-05 Andrew Cagney <cagney@redhat.com>
8909
8910 Eliminate FRAME_FIND_SAVED_REGS.
8911 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8912 Change FSR parameter to a pointer.
8913 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8914 Assume FSR parameter is a pointer.
8915 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8916 Make fsr a pointer.
8917 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8918 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8919 saved_regs a pointer.
8920 (hppa_frame_saved_pc): Ditto.
8921 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8922 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8923 pointer.
8924 (restore_pc_queue): Make fsr a pointer.
8925 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8926 (hppa_frame_chain): Make saved_regs a pointer, call
8927 hppa_frame_init_saved_regs.
8928 * sparc-tdep.c: Include "gdb_assert.h".
8929 (sparc_frame_find_saved_regs): Replace internal_error with
8930 gdb_assert.
8931 * remote-vxsparc.c (vx_read_register): Delete reference to
8932 FRAME_FIND_SAVED_REGS.
8933 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8934 * gdbarch.h: Regenerate.
8935 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8936 (deprecated_get_frame_saved_regs): Delete declaration.
8937 (struct frame_saved_regs): Delete definition.
8938 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8939 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8940 (hppa_frame_find_saved_regs): Delete declaration.
8941 (FRAME_FIND_SAVED_REGS): Delete macro.
8942 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8943 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8944 FRAME_FIND_SAVED_REGS in comment.
8945
8946 2003-04-05 Andrew Cagney <cagney@redhat.com>
8947
8948 * frame.c (frame_func_unwind, get_frame_func): New functions.
8949 * frame.h (get_frame_func, frame_func_unwind): Declare.
8950 (struct frame_info): Add field "prev_func" for caching the
8951 previous frame's function address.
8952 * arm-tdep.c (arm_frameless_function_invocation): Combine
8953 get_pc_function_start and get_frame_pc into get_frame_func.
8954 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8955 (sh64_nofp_frame_init_saved_regs): Ditto.
8956 * s390-tdep.c (s390_function_start): Ditto.
8957 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8958 (rs6000_frameless_function_invocation): Ditto.
8959 (rs6000_frame_saved_pc): Ditto.
8960 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8961 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8962 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8963 (i386_frame_init_saved_regs): Ditto.
8964 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8965 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8966 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8967 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8968 * blockframe.c (frameless_look_for_prologue): Ditto.
8969
8970 2003-04-05 Andrew Cagney <cagney@redhat.com>
8971
8972 * frame.c (legacy_get_prev_frame): Link prev to next at the
8973 function start. Update comments.
8974
8975 2003-04-05 Andrew Cagney <cagney@redhat.com>
8976
8977 * frame.c (get_frame_id): Update comment.
8978 (legacy_get_prev_frame): Update comment.
8979 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8980 * gdbarch.h: Regenerate.
8981 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8982 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8983
8984 2003-04-05 Andrew Cagney <cagney@redhat.com>
8985
8986 * stack.c (print_frame_info): Use get_frame_pc.
8987
8988 2003-04-04 Andrew Cagney <cagney@redhat.com>
8989
8990 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8991 the frame's type from the unwinder.
8992 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8993 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8994 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8995 (get_frame_base_address): Use get_frame_type.
8996 (get_frame_locals_address, get_frame_args_address): Ditto.
8997 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8998 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8999 (struct frame_info): Add comment explaining why the frame contains
9000 a "type" field.
9001 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9002 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9003 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9004 NORMAL_FRAME.
9005 * frame-unwind.h: Include "frame.h".
9006 (struct frame_unwind): Add "type" field.
9007 * Makefile.in (frame_unwind_h): Add $(frame_h).
9008
9009 2003-04-04 Andrew Cagney <cagney@redhat.com>
9010
9011 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9012 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9013 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9014 get_frame_base.
9015 (d10v_unwind_dummy_id): Use frame_id_build.
9016 * frame.c (find_frame_sal): Use get_frame_pc.
9017 (create_new_frame): Use deprecated_update_frame_pc_hack and
9018 deprecated_update_frame_base_hack.
9019 (create_sentinel_frame): Add comment about ->pc going away.
9020 (get_prev_frame): Add comment about ->pc going away.
9021 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9022 frame_id_build, deprecated_update_frame_pc_hack and
9023 deprecated_update_frame_base_hack.
9024 (select_frame): Use get_frame_pc.
9025 (legacy_saved_regs_this_id): Use frame_id_build.
9026
9027 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
9028
9029 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9030 signed integer case.
9031 (classify_argument): Handle enumerations and references.
9032
9033 2003-04-04 Andrew Cagney <cagney@redhat.com>
9034
9035 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9036 ID to NULL.
9037
9038 2003-04-01 Adam Fedor <fedor@gnu.org>
9039
9040 * gdb/objc-lang.c (selectors_info): Replace calls to
9041 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9042 SYMBOL_NATURAL_NAME.
9043 (classes_info, find_methods): Likewise.
9044
9045 2003-04-03 Kevin Buettner <kevinb@redhat.com>
9046
9047 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9048 ``mach'' to the value determined by bfd_default_set_arch_mach().
9049
9050 2003-04-02 Bob Rossi <bob_rossi@cox.net>
9051
9052 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9053 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9054 (mi-cmd-file.o): Update dependencies.
9055
9056 2003-04-01 Kevin Buettner <kevinb@redhat.com>
9057
9058 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9059 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9060
9061 2003-04-01 Adam Fedor <fedor@gnu.org>
9062
9063 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9064 * language.h (struct language_defn): Add la_demangle.
9065 (language_demangle): Declare.
9066 * language.c (language_demangle): New function.
9067 (unk_lang_demangle): Likewise.
9068 (unknown_language_defn, auto_language_defn, local_language_defn):
9069 Add ukn_lang_demangle.
9070 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
9071 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9072 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9073 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9074 * jv-lang.c (java_demangle): New function
9075 (java_language_defn): Use it for la_demangle element.
9076 * objc-lang.c (objc_demangle): Add options argument
9077 (objc_language_defn): Use objc_demangle for la_demangle element.
9078 * maint.c (maintenance_demangle): Replace switch with
9079 call to language_demangle.
9080 * utils.c (fprintf_symbol_filtered): Likewise.
9081
9082 2003-04-01 Andrew Cagney <cagney@redhat.com>
9083
9084 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9085 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9086 PRINT_TYPELESS_INTEGER.
9087 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9088 PUSH_RETURN_ADDRESS.
9089
9090 2003-04-01 Andrew Cagney <cagney@redhat.com>
9091
9092 * Makefile.in (d10v-tdep.o): Update dependencies.
9093 * d10v-tdep.c: Include "frame-base.h".
9094 (d10v_frame_unwind): Make constant.
9095 (d10v_frame_base_address): New function.
9096 (d10v_frame_base): New variable.
9097 (d10v_gdbarch_init): Set frame_base default.
9098 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9099 comment for base.
9100 (d10v_frame_unwind_cache): Set and use "prev_sp".
9101 (d10v_frame_this_id): Use the previous frame's inner most stack
9102 address and this frame's func address for the frame ID. Use
9103 frame_id_build. Don't analyze beyond the current instruction.
9104
9105 2003-04-01 Andrew Cagney <cagney@redhat.com>
9106
9107 * frame.h (get_frame_locals_address, get_frame_args_address):
9108 Refer to the base address, instead of the address of the first
9109 local or parameter.
9110
9111 2003-04-01 Andrew Cagney <cagney@redhat.com>
9112
9113 Add frame debug info addresses:
9114 * frame-base.c: New file.
9115 * frame-base.h: New file.
9116 * frame.h (struct frame_base): Add opaque declaration.
9117 (get_frame_base): Update comment.
9118 (get_frame_base_address): Declare.
9119 (get_frame_locals_address): Declare.
9120 (get_frame_args_address): Declare.
9121 (struct frame_info): Add "base" and "base_cache". Update
9122 comments on the unwinder.
9123 * frame.c: Include "frame-base.h".
9124 (get_frame_locals_address): New function.
9125 (get_frame_base_address): New function.
9126 (get_frame_args_address): New function.
9127 * findvar.c (read_var_value): Use get_frame_locals_address and
9128 get_frame_args_address.
9129 * stack.c (frame_info): Use get_frame_locals_address and
9130 get_frame_args_address.
9131 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9132 moved to "frame-base.c".
9133 * printcmd.c (print_frame_nameless_args): Ditto.
9134 * symtab.h (address_class): Update comments.
9135 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9136 get_frame_base_address.
9137 * dwarf2expr.c (execute_stack_op): Ditto.
9138 * Makefile.in (frame_base_h): Define.
9139 (frame.o): Update dependencies.
9140 (frame-base.o): Add dependencies.
9141 (SFILES): Add frame-base.c.
9142 (COMMON_OBS): Add frame-base.o.
9143
9144 2003-04-01 Andrew Cagney <cagney@redhat.com>
9145
9146 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9147 CALL_DUMMY_LENGTH): Ditto.
9148 * gdbarch.c: Re-generate.
9149 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9150 (CALL_DUMMY_LENGTH): Delete macro.
9151 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9152 * arm-tdep.c (arm_gdbarch_init): Ditto.
9153 * avr-tdep.c (avr_gdbarch_init): Ditto.
9154 * cris-tdep.c (cris_gdbarch_init): Ditto.
9155 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9156 * frv-tdep.c (frv_gdbarch_init): Ditto.
9157 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9158 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9159 * i386-tdep.c (i386_gdbarch_init): Ditto.
9160 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9161 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9162 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9163 * mips-tdep.c (mips_gdbarch_init): Ditto.
9164 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9165 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9166 * s390-tdep.c (s390_gdbarch_init): Ditto.
9167 * sh-tdep.c (sh_gdbarch_init): Ditto.
9168 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9169 * v850-tdep.c (v850_gdbarch_init): Ditto.
9170 * vax-tdep.c (vax_gdbarch_init): Ditto.
9171 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9172
9173 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
9174
9175 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9176
9177 2003-04-01 Andrew Cagney <cagney@redhat.com>
9178
9179 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9180 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9181 * gdbarch.h, gdbarch.c: Re-generate.
9182 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9183 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9184 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9185 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9186 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9187 * infcmd.c (run_stack_dummy): Simplify assuming
9188 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9189 * infrun.c (handle_inferior_event): Ditto.
9190 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9191 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9192 * arm-tdep.c (arm_gdbarch_init): Ditto.
9193 * avr-tdep.c (avr_gdbarch_init): Ditto.
9194 * cris-tdep.c (cris_gdbarch_init): Ditto.
9195 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9196 * frv-tdep.c (frv_gdbarch_init): Ditto.
9197 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9198 * i386-tdep.c (i386_gdbarch_init): Ditto.
9199 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9200 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9201 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9202 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9203 * mips-tdep.c (mips_gdbarch_init): Ditto.
9204 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9205 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9206 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9207 * s390-tdep.c (s390_gdbarch_init): Ditto.
9208 * sh-tdep.c (sh_gdbarch_init): Ditto.
9209 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9210 * v850-tdep.c (v850_gdbarch_init): Ditto.
9211 * vax-tdep.c (vax_gdbarch_init): Ditto.
9212 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9213
9214 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
9215
9216 * symfile.c (symfile_relocate_debug_section): Update call to
9217 bfd_simple_get_relocated_section_contents.
9218
9219 2003-03-31 Andrew Cagney <cagney@redhat.com>
9220
9221 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9222 * gdbarch.h, gdbarch.c: Regenerate.
9223 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9224 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9225 available.
9226 * frame.h (generic_fix_call_dummy): Delete declaration.
9227 * dummy-frame.h: Update comment.
9228 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9229 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9230 fix_call_dummy.
9231 * sh-tdep.c (sh_gdbarch_init): Ditto.
9232 * s390-tdep.c (s390_gdbarch_init): Ditto.
9233 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9234 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9235 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9236 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9237 * i386-tdep.c (i386_gdbarch_init): Ditto.
9238 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9239 * frv-tdep.c (frv_gdbarch_init): Ditto.
9240 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9241 * cris-tdep.c (cris_gdbarch_init): Ditto.
9242 * avr-tdep.c (avr_gdbarch_init): Ditto.
9243 * arm-tdep.c (arm_gdbarch_init): Ditto.
9244
9245 2003-03-31 J. Brobecker <brobecker@gnat.com>
9246
9247 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9248 (INIT_FRAME_AP): Likewise.
9249 (EXTRA_FRAME_INFO): Likewise.
9250
9251 2003-03-31 Andrew Cagney <cagney@redhat.com>
9252
9253 * gdbarch.sh: Include "symfile.h".
9254 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9255 * gdbarch.h, gdbarch.c: Re-generate.
9256 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9257 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9258 call_dummy_address, the default is at entry_point_address.
9259 * v850-tdep.c (v850_gdbarch_init): Ditto.
9260 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9261 * sh-tdep.c (sh_gdbarch_init): Ditto.
9262 * s390-tdep.c (s390_gdbarch_init): Ditto.
9263 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9264 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9265 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9266 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9267 * i386-tdep.c (i386_gdbarch_init): Ditto.
9268 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9269 * frv-tdep.c (frv_gdbarch_init): Ditto.
9270 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9271 * cris-tdep.c (cris_gdbarch_init): Ditto.
9272 * arm-tdep.c (arm_gdbarch_init): Ditto.
9273
9274 2003-03-31 Andrew Cagney <cagney@redhat.com>
9275
9276 * gdbarch.sh (CALL_DUMMY_P): Delete.
9277 * gdbarch.h, gdbarch.c: Re-generate.
9278 * inferior.h (CALL_DUMMY_P): Delete macro.
9279 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9280 * vax-tdep.c (vax_gdbarch_init): Update.
9281 * v850-tdep.c (v850_gdbarch_init): Update.
9282 * sparc-tdep.c (sparc_gdbarch_init): Update.
9283 * sh-tdep.c (sh_gdbarch_init): Update.
9284 * s390-tdep.c (s390_gdbarch_init): Update.
9285 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9286 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9287 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9288 * mips-tdep.c (mips_gdbarch_init): Update.
9289 * mcore-tdep.c (mcore_gdbarch_init): Update.
9290 * m68k-tdep.c (m68k_gdbarch_init): Update.
9291 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9292 * ia64-tdep.c (ia64_gdbarch_init): Update.
9293 * i386-tdep.c (i386_gdbarch_init): Update.
9294 * h8300-tdep.c (h8300_gdbarch_init): Update.
9295 * frv-tdep.c (frv_gdbarch_init): Update.
9296 * d10v-tdep.c (d10v_gdbarch_init): Update.
9297 * cris-tdep.c (cris_gdbarch_init): Update.
9298 * breakpoint.c (deprecated_frame_in_dummy): Update.
9299 * avr-tdep.c (avr_gdbarch_init): Update.
9300 * alpha-tdep.c (alpha_gdbarch_init): Update.
9301 * arm-tdep.c (arm_gdbarch_init): Update.
9302 * dummy-frame.c (dummy_frame_this_id): Update comments.
9303 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9304 * frame.c (legacy_get_prev_frame): Ditto.
9305 * valops.c (call_function_by_hand): Delete function.
9306 (hand_function_call): Rename to call_function_by_hand
9307
9308 2003-03-30 Andrew Cagney <cagney@redhat.com>
9309
9310 2002-11-10 Klee Dienes <kdienes@apple.com>
9311 * value.h (struct value): Update comment.
9312
9313 2003-03-30 Andrew Cagney <cagney@redhat.com>
9314
9315 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9316 D10V_FP_REGNUM.
9317 (d10v_gdbarch_init): Do not set fp_regnum.
9318
9319 * frame.c (get_frame_base): Force ID initialization.
9320 (get_prev_frame): Move computation of the frame ID from here ...
9321 (get_frame_id): ... to here.
9322 (legacy_get_prev_frame): Mark the frame ID as valid.
9323 * frame.h (struct frame_info): Add field "id_p".
9324
9325 2003-03-30 Mark Kettenis <kettenis@gnu.org>
9326
9327 * i386-tdep.c (i386_store_struct_return): Removed.
9328 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9329
9330 2003-03-30 Andrew Cagney <cagney@redhat.com>
9331
9332 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9333 * gdbarch.h, gdbarch.c: Regenerate.
9334 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9335 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9336 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9337 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9338 * i386-tdep.c (i386_gdbarch_init): Ditto.
9339 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9340 * cris-tdep.c (cris_gdbarch_init): Ditto.
9341 * vax-tdep.c (vax_gdbarch_init): Ditto.
9342 * s390-tdep.c (s390_gdbarch_init): Ditto.
9343 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9344 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9345 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9346 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9347 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9348 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9349 * sparc-tdep.c (sparc_gdbarch_init): Update.
9350 * sh-tdep.c (sh_gdbarch_init): Update.
9351 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9352 * mips-tdep.c (mips_gdbarch_init): Update.
9353 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9354 * ia64-tdep.c (ia64_gdbarch_init): Update.
9355 * frv-tdep.c (frv_gdbarch_init): Update.
9356 * avr-tdep.c (avr_gdbarch_init): Update.
9357 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9358 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9359 instead of when push_dummy_call is not available.
9360
9361 2003-03-30 Andrew Cagney <cagney@redhat.com>
9362
9363 * infttrace.c: Include "gdbthread.h".
9364 (parent_attach_all): Fix function signature.
9365 (call_ptrace): Update call.
9366 * Makefile.in (infttrace.o): Update dependencies.
9367
9368 2003-03-30 Andrew Cagney <cagney@redhat.com>
9369
9370 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9371 PUSH_RETURN_ADDRESS.
9372 * gdbarch.h, gdbarch.c: Regenerate.
9373 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9374 * x86-64-tdep.c (x86_64_init_abi): Update.
9375 * v850-tdep.c (v850_gdbarch_init): Update.
9376 * sparc-tdep.c (sparc_gdbarch_init): Update.
9377 * sh-tdep.c (sh_gdbarch_init): Update.
9378 * s390-tdep.c (s390_gdbarch_init): Update.
9379 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9380 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9381 * mips-tdep.c (mips_gdbarch_init): Update.
9382 * mcore-tdep.c (mcore_gdbarch_init): Update.
9383 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9384 * ia64-tdep.c (ia64_gdbarch_init): Update.
9385 * i386-tdep.c (i386_gdbarch_init): Update.
9386 * h8300-tdep.c (h8300_gdbarch_init): Update.
9387 * frv-tdep.c (frv_gdbarch_init): Update.
9388 * cris-tdep.c (cris_gdbarch_init): Update.
9389 * avr-tdep.c (avr_gdbarch_init): Update.
9390 * arm-tdep.c (arm_gdbarch_init): Update.
9391 * valops.c (hand_function_call): Update.
9392
9393 2003-03-29 Andrew Cagney <cagney@redhat.com>
9394
9395 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9396 sizeof_call_dummy_words.
9397 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9398 define.
9399 * gdbarch.h: Regenerate.
9400
9401 2003-03-29 Andrew Cagney <cagney@redhat.com>
9402
9403 * infttrace.h: New file.
9404 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9405 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9406 (hpread_read_doc_function_type): Detect an initialized type1.
9407 (hpread_quick_traverse): Initialize mod_name_string.
9408 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9409 (som_solib_get_solib_by_pc): Declare.
9410 (so_lib_thread_start_addr): Declare.
9411 (no_shared_libraries): Declare.
9412 * somread.c (init_import_symbols): Make static. Add forward
9413 declaration.
9414 * config/pa/nm-hppah.h: Include "infttrace.h" for
9415 parent_attach_all.
9416 (hppa_insert_hw_watchpoint): Declare.
9417 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9418 * hppah-nat.c: Include "gdb_string.h".
9419 (parent_attach_all): Delete extern declaration, moved to
9420 "infttrace.h".
9421 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9422 int.
9423 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9424 * Makefile.in (infttrace_h): Define.
9425 (hpread.o): Update dependencies.
9426 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9427 * hppa-hpux-tdep.c: Include "gdb_string.h".
9428 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9429 * infrun.c (handle_inferior_event): Always initialize
9430 stepped_after_stopped_by_watchpoint. Add default and remove
9431 fallthrough in switch statement.
9432 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9433 parameter to int.
9434 (hppa_remove_hw_watchpoint): Ditto.
9435
9436 2003-03-29 Andrew Cagney <cagney@redhat.com>
9437
9438 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9439 offset.
9440
9441 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
9442
9443 * arm-tdep.c (arm_push_arguments): Delete.
9444 (struct stack_item): New type.
9445 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9446 (arm_store_struct_return): Delte.
9447 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9448 arm_push_arguments or arm_store_struct_return.
9449
9450 2003-03-28 Andrew Cagney <cagney@redhat.com>
9451
9452 * Makefile.in (d10v-tdep.o): Update dependencies.
9453 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9454 * d10v-tdep.c: Include "remote.h".
9455 (target_resume_hook): Delete extern declaration.
9456 (target_wait_loop_hook): Ditto.
9457 (tdisassemble_command): Eliminate assignment in "if" conditional.
9458 (d10v_ts2_register_sim_regno): Eliminate call to
9459 legacy_register_sim_regno.
9460 (d10v_ts3_register_sim_regno): Ditto.
9461
9462 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9463
9464 * thread.c: Reindented.
9465 * lin-lwp.c: Ditto.
9466 * linux-proc.c: Ditto.
9467
9468 2003-03-28 Bob Rossi <bob_rossi@cox.net>
9469
9470 * MAINTAINERS (write after approval): Add myself.
9471
9472 2003-03-27 Theodore A. Roth <troth@openavr.org>
9473
9474 * objc-exp.y: Add missing semi-colons.
9475
9476 2003-03-27 Andrew Cagney <cagney@redhat.com>
9477
9478 * regcache.c (write_sp): Delete function and references.
9479 * inferior.h (write_sp): Delete declaration.
9480 * valops.c (hand_function_call): Replace write_sp with
9481 TARGET_WRITE_SP.
9482 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9483 (sparc_pop_frame): Ditto.
9484
9485 2003-03-27 Andrew Cagney <cagney@redhat.com>
9486
9487 * NEWS: Mention removal of support for hppa*-*-bsd* and
9488 hppa*-*-osf* natives, and hppa*-*-pro* target.
9489 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9490 * config/pa/xm-pa.h: Obsolete file.
9491 * config/pa/xm-hppab.h: Obsolete file.
9492 * config/pa/nm-hppab.h: Obsolete file.
9493 * config/pa/tm-hppab.h: Obsolete file.
9494 * config/pa/tm-hppao.h: Obsolete file.
9495 * config/pa/nm-hppao.h: Obsolete file.
9496 * config/pa/tm-pro.h: Obsolete file.
9497 * config/pa/hppaosf.mt: Obsolete file.
9498 * config/pa/hppaosf.mh: Obsolete file.
9499 * config/pa/hppapro.mt: Obsolete file.
9500 * config/pa/hppabsd.mt: Obsolete file.
9501 * config/pa/hppabsd.mh: Obsolete file.
9502 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9503 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9504 hppa*-*-osf*.
9505
9506 2003-03-27 Andrew Cagney <cagney@redhat.com>
9507
9508 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9509 push_arguments. Don't set push_return_address or write_sp.
9510 (d10v_push_dummy_call): Replace d10v_push_arguments.
9511 (d10v_push_return_address, d10v_write_sp): Delete function,
9512 handled by push_dummy_call.
9513
9514 2003-03-26 Andrew Cagney <cagney@redhat.com>
9515
9516 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9517 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9518 regcache and dummy_addr parameters.
9519 * gdbarch.h, gdbarch.c: Re-generate.
9520 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9521 available; assume it will handle stack alignment and return
9522 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9523 legacy_push_arguments.
9524 (legacy_push_arguments): Rename default_push_arguments.
9525 * value.h (legacy_push_arguments): Rename default_push_arguments.
9526 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9527 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9528 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9529 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9530 * config/i386/tm-symmetry.h: Update.
9531 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9532 * x86-64-tdep.c (x86_64_init_abi): Update.
9533 * v850-tdep.c (v850_gdbarch_init): Update.
9534 * sparc-tdep.c (sparc_gdbarch_init): Update.
9535 * sh-tdep.c (sh_gdbarch_init): Update.
9536 * s390-tdep.c (s390_gdbarch_init): Update.
9537 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9538 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9539 * mips-tdep.c (mips_gdbarch_init): Update.
9540 * mcore-tdep.c (mcore_gdbarch_init): Update.
9541 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9542 * ia64-tdep.c (ia64_gdbarch_init): Update.
9543 * i386-tdep.c (i386_gdbarch_init): Update.
9544 * hppa-tdep.c (hppa_gdbarch_init): Update.
9545 * h8300-tdep.c (h8300_gdbarch_init): Update.
9546 * frv-tdep.c (frv_gdbarch_init): Update.
9547 * d10v-tdep.c (d10v_gdbarch_init): Update.
9548 * cris-tdep.c (cris_gdbarch_init): Update.
9549 * avr-tdep.c (avr_gdbarch_init): Update.
9550 * arm-tdep.c (arm_gdbarch_init): Update.
9551 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9552 * alpha-tdep.c (alpha_gdbarch_init): Update.
9553
9554 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9555
9556 * signals/signals.c (do_target_signal_to_host): Correct realtime
9557 signal range test.
9558
9559 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9560
9561 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9562 (struct sal_chain, map_catch_names): Remove.
9563 (catch_exception_command_1): Don't call
9564 handle_gnu_4_16_catch_command.
9565
9566 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9567
9568 From Mark Dettinger <dettinge@de.ibm.com>:
9569 * dwarf2cfi.c (read_2u): Increment pointer by two.
9570
9571 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9572
9573 * signals/signals.c: Fix typos in last change.
9574
9575 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9576
9577 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9578 not already defined. Use __SIGRTMIN if available.
9579 (target_signal_from_host): Remove SIGRTMIN block.
9580 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9581 the signal is within the realtime range.
9582
9583 2003-03-25 Adam Fedor <fedor@gnu.org>
9584
9585 * Makefile.in (infrun.o): Add $(language_h)
9586 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9587 for language specific trampolines.
9588 * language.h (struct language_defn): Add skip_trampoline.
9589 (skip_language_trampoline): Declare.
9590 * language.c (unk_lang_trampoline, skip_language_trampoline):
9591 New functions.
9592 (unknown_language_defn, auto_language_defn, local_language_defn):
9593 Add ukn_lang_trampoline.
9594 * ada-lang.c (ada_language_defn): Add NULL for language
9595 specific skip_trampoline.
9596 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9597 scm-lang.c: Likewise.
9598 * objc-lang.c (objc_skip_trampoline): New function.
9599 (objc_language_defn): Add objc_skip_trampoline.
9600
9601 2003-03-25 Andrew Cagney <cagney@redhat.com>
9602
9603 * frame.c (get_prev_frame): Delay validating a frame's ID -
9604 non-NULL, didn't go backwards - until an attempt to unwind it to
9605 the previous frame.
9606
9607 2003-03-25 Andrew Cagney <cagney@redhat.com>
9608
9609 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9610 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9611 * gdbarch.h, gdbarch.c: Re-generate.
9612 * config/sparc/tm-sparc.h
9613 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9614 * sparc-tdep.c (sparc_gdbarch_init): Set
9615 deprecated_extra_stack_alignment_needed.
9616 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9617 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9618 extra_stack_alignment_needed.
9619 * v850-tdep.c (v850_gdbarch_init): Ditto.
9620 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9621 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9622 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9623 * cris-tdep.c (cris_gdbarch_init): Ditto.
9624 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9625 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9626
9627 2003-03-25 Andrew Cagney <cagney@redhat.com>
9628
9629 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9630 STORE_STRUCT_RETURN.
9631 * gdbarch.h, gdbarch.c: Regenerate.
9632 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9633 (d10v_push_arguments): Set the struct return register.
9634 (d10v_gdbarch_init): Update.
9635 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9636 * x86-64-tdep.c (x86_64_init_abi): Update.
9637 * vax-tdep.c (vax_gdbarch_init): Update.
9638 * v850-tdep.c (v850_gdbarch_init): Update.
9639 * sparc-tdep.c (sparc_gdbarch_init): Update.
9640 * sh-tdep.c (sh_gdbarch_init): Update.
9641 * s390-tdep.c (s390_gdbarch_init): Update.
9642 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9643 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9644 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9645 * mips-tdep.c (mips_gdbarch_init): Update.
9646 * mcore-tdep.c (mcore_gdbarch_init): Update.
9647 * m68k-tdep.c (m68k_gdbarch_init): Update.
9648 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9649 * ia64-tdep.c (ia64_gdbarch_init): Update.
9650 * i386-tdep.c (i386_gdbarch_init): Update.
9651 * hppa-tdep.c (hppa_gdbarch_init): Update.
9652 * h8300-tdep.c (h8300_gdbarch_init): Update.
9653 * frv-tdep.c (frv_gdbarch_init): Update.
9654 * cris-tdep.c (cris_gdbarch_init): Update.
9655 * avr-tdep.c (avr_gdbarch_init): Update.
9656 * arm-tdep.c (arm_gdbarch_init): Update.
9657 * alpha-tdep.c (alpha_gdbarch_init): Update.
9658
9659 2003-03-25 Andrew Cagney <cagney@redhat.com>
9660
9661 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9662 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9663 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9664 * gdbarch.h, gdbarch.c: Regenerate.
9665 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9666 call_dummy_stack_adjust_p.
9667 * vax-tdep.c (vax_gdbarch_init): Ditto.
9668 * v850-tdep.c (v850_gdbarch_init): Ditto.
9669 * sh-tdep.c (sh_gdbarch_init): Ditto.
9670 * s390-tdep.c (s390_gdbarch_init): Ditto.
9671 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9672 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9673 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9674 * mips-tdep.c (mips_gdbarch_init): Ditto.
9675 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9676 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9677 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9678 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9679 * i386-tdep.c (i386_gdbarch_init): Ditto.
9680 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9681 * frv-tdep.c (frv_gdbarch_init): Ditto.
9682 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9683 * cris-tdep.c (cris_gdbarch_init): Ditto.
9684 * avr-tdep.c (avr_gdbarch_init): Ditto.
9685 * arm-tdep.c (arm_gdbarch_init): Ditto.
9686 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9687 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9688 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9689 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9690 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9691 call_dummy_stack_adjust_p.
9692 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9693 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9694 * sparc-tdep.c (sparc32_push_arguments): Update.
9695 * valops.c (hand_function_call): Update.
9696
9697 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9698
9699 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9700 set_gdbarch_char_signed.
9701
9702 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9703
9704 PR cli/548
9705 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9706
9707 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9708
9709 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9710 (_initialize_arm_tdep): Don't set tm_print_insn.
9711
9712 2003-03-24 Adam Fedor <fedor@gnu.org>
9713
9714 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9715 * objc-lang.h: Add multiple inclusion protection.
9716 (start_msglist, add_msglist, end_msglist): Additional declarations.
9717
9718 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9719
9720 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9721 value was renamed to ARM_FLOAT_SOFT_FPA.
9722
9723 2003-03-23 Andrew Cagney <cagney@redhat.com>
9724
9725 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9726 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9727 * gdbarch.h, gdbarch.c: Regenerate.
9728 * valops.c (hand_function_call): Update.
9729 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9730 * frame.c (legacy_saved_regs_this_id): Update.
9731 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9732 * dummy-frame.h: Update.
9733 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9734 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9735 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9736 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9737 * config/m68k/tm-sun3.h: Update.
9738 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9739 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9740 * x86-64-tdep.c (x86_64_init_abi): Update.
9741 * vax-tdep.c (vax_gdbarch_init): Update.
9742 * v850-tdep.c (v850_gdbarch_init): Update.
9743 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9744 * sh-tdep.c (sh_gdbarch_init): Update.
9745 * s390-tdep.c (s390_gdbarch_init): Update.
9746 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9747 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9748 (frame_get_saved_regs): Update.
9749 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9750 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9751 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9752 * mips-tdep.c (mips_gdbarch_init): Update.
9753 * mcore-tdep.c (mcore_gdbarch_init): Update.
9754 * m68k-tdep.c (m68k_gdbarch_init): Update.
9755 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9756 * ia64-tdep.c (ia64_gdbarch_init): Update.
9757 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9758 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9759 (i386_interix_back_one_frame): Update.
9760 * hppa-tdep.c (hppa_gdbarch_init): Update.
9761 (hppa_init_extra_frame_info): Update.
9762 * h8300-tdep.c (h8300_gdbarch_init): Update.
9763 * frv-tdep.c (frv_gdbarch_init): Update.
9764 * cris-tdep.c (cris_gdbarch_init): Update.
9765 * avr-tdep.c (avr_gdbarch_init): Update.
9766 * arm-tdep.c (arm_gdbarch_init): Update.
9767 * alpha-tdep.c (alpha_gdbarch_init): Update.
9768
9769 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9770
9771 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9772 (arm_get_fp_model): Declare.
9773 * arm-tdep.c (fp_model_strings): New string array.
9774 (arm_fp_model, current_fp_model): New variables.
9775 (arm_get_fp_model): New function.
9776 (arm_set_fp): New function.
9777 (set_fp_model_sfunc): New function.
9778 (show_fp_model): New function.
9779 (_initialize_arm_tdep): Add new command to set/show the FPU.
9780 (arm_extract_return_value): Use arm_get_fp_model.
9781 (arm_store_return_value): Likewise.
9782 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9783 to initialize the floating-point data types.
9784 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9785 model is FPA.
9786
9787 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9788
9789 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9790 the current setting of each value.
9791 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9792 new_set and new_show. Use add_setshow_cmd_full and
9793 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9794 commands and add new version as subcommands of "set/show arm".
9795
9796 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9797
9798 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9799 (set_arm_command, show_arm_command): New functions.
9800 (_initialize_arm_tdep): Add them.
9801 (num_disassembly_options): Renamed from num_flavor_options.
9802 (valid_disassembly_styles): Renamed from valid_flavors.
9803 (disassembly_style): Renamed from disassembly_flavor.
9804 (set_disassembly_style_sfunc): Renamed from
9805 set_disassembly_flavor_sfunc.
9806 (set_disassembly_style): Renamed from set_disassembly_flavor.
9807 (arm_othernames): Updated.
9808 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9809 command. Add "set/show arm disassembly" commands. Deprecate
9810 "othernames" command.
9811
9812 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9813
9814 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9815 (arm-tdep.o): Depend on elf_arm_h.
9816
9817 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9818
9819 * Makefile.in (coff_internal_h): Define.
9820 (arm-tdep.o): Update dependencies.
9821
9822 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9823
9824 * arm-tdep.c (prologue_cache): Delete.
9825 (check_prologue_cache, save_prologue_cache): Delete.
9826 (arm_scan_prologue): Don't check or update the prologue_cache.
9827 (arm_gdb_arch_init): Don't initialize it.
9828 (_initialize_arm_tdep): Likewise.
9829
9830 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9831
9832 * MAINTAINERS (tui): Maintainer of tui code.
9833
9834 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9835
9836 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9837 (i386-cygwin-tdep.o): Add dependencies.
9838 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9839 * i386-cygwin-tdep.c: New file.
9840 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9841 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9842
9843 2003-03-20 Andrew Cagney <cagney@redhat.com>
9844
9845 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9846 (handle_inferior_event): Remove code calling
9847 DYNAMIC_TRAMPOLINE_NEXTPC.
9848
9849 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9850 already has a full path.
9851
9852 * main.c (gdb_main): Return 1.
9853 (captured_main): Call error to report an invalid interpreter.
9854
9855 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9856 * alpha-osf1-tdep.c: Include "gdb_string.h".
9857
9858 2003-03-19 J. Brobecker <brobecker@gnat.com>
9859
9860 Continuing work to convert the hppa targets to multiarch partial.
9861
9862 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9863 method, now that hppa_push_dummy_frame has a conformant prototype.
9864 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9865 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9866 for the switch to multiarch partial.
9867
9868 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9869
9870 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9871 when iss is issNull.
9872
9873 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9874
9875 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9876 NUM_REGS bounds check.
9877
9878 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9879
9880 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9881 * mips-tdep.c (gdb_assert.h): Include.
9882 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9883 (mips_register_name): Handle integer registers explicitly. Add
9884 bounds checking.
9885 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9886 (mips_lsi33k_reg_names): Don't list integer registers; they're
9887 handled by mips_register_name() now.
9888 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9889 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9890 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9891 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9892 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9893
9894 2003-03-18 Andrew Cagney <cagney@redhat.com>
9895
9896 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9897 a void pointer.
9898 * gdbtypes.h (print_scalar_formatted): Update declaration.
9899 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9900
9901 2003-03-18 J. Brobecker <brobecker@gnat.com>
9902
9903 * infrun.c (observer.h): Add #include.
9904 (normal_stop): Add call to observer_notify_normal_stop.
9905 * Makefile.in (infrun.o): Add dependency on observer.h.
9906
9907 2003-03-18 J. Brobecker <brobecker@gnat.com>
9908
9909 Continuing work to convert the hppa targets to multiarch partial.
9910 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9911 parameter. Reformat comment.
9912 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9913 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9914 to match new profile.
9915
9916 2003-03-18 J. Brobecker <brobecker@gnat.com>
9917
9918 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9919 appear to be working in any case.
9920
9921 2003-03-18 J. Brobecker <brobecker@gnat.com>
9922
9923 * observer.c (observer_test_first_observer): New static variable.
9924 (observer_test_second_observer): Likewise.
9925 (observer_test_third_observer): Likewise.
9926 (observer_test_first_notification_function): New static function.
9927 (observer_test_second_notification_function): Likewise.
9928 (observer_test_third_notification_function): Likewise.
9929
9930 2003-03-17 J. Brobecker <brobecker@gnat.com>
9931
9932 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9933 * somsolib.c (gdb_assert.h): Likewise.
9934 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9935 (somsolib.o): Likewise.
9936
9937 2003-03-17 Andrew Cagney <cagney@redhat.com>
9938
9939 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9940 BFD. Simplify setting of di.endian.
9941
9942 2003-03-17 Andrew Cagney <cagney@redhat.com>
9943
9944 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9945 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9946
9947 From Elena Zannoni <ezannoni@redhat.com>
9948 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9949 vector and floating-point parameters.
9950 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9951 convention.
9952 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9953
9954 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9955
9956 * MAINTAINERS: Remove my name from several maintainership roles.
9957
9958 2003-03-17 Andrew Cagney <cagney@redhat.com>
9959
9960 Fix frame off-by-one bug.
9961 * frame-unwind.h (frame_this_id_ftype): Replace
9962 frame_unwind_id_ftype.
9963 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9964 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9965 with "prev_register".
9966 * frame-unwind.c (frame_unwind_find_by_pc): Return
9967 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9968 comment.
9969 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9970 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9971 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9972 (dummy_frame_unwind): Update.
9973 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9974 sentinel_frame_register_unwind.
9975 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9976 (sentinel_frame_unwinder): Update.
9977 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9978 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9979 * frame.c (create_sentinel_frame): Update. Initialize
9980 "prologue_cache" instead of "unwind_cache".
9981 (frame_register_unwind): Call this frame's prev_register with the
9982 next frame and this frame's prologue cache.
9983 (get_prev_frame): Simplify. Always call prev frame's this_id with
9984 this frame and prev frame's prologue cache. Document that this
9985 call is shifted one to the left when compared to the
9986 frame_register_unwind call.
9987 (legacy_saved_regs_prev_register): Replace
9988 frame_saved_regs_register_unwind.
9989 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9990 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9991 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9992 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9993 (d10v_frame_unwind): Update.
9994 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9995 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9996 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9997 "saved_regs" with "this_saved_regs".
9998
9999 2003-03-16 Andrew Cagney <cagney@redhat.com>
10000
10001 * frame.c (frame_pop): Don't call target_store_registers. Fix
10002 problem reported by Mark Kettenis.
10003
10004 2003-03-16 Mark Kettenis <kettenis@gnu.org>
10005
10006 * i386-tdep.c (i386_register_type): Renamed from
10007 i386_register_virtual_type. Adjust function signature.
10008 (i386_gdbarch_init): Set register_type instead of
10009 deprecated_max_register_raw_size,
10010 deprecated_max_register_virtual_size and register_virtual_type.
10011
10012 2003-03-14 Andrew Cagney <cagney@redhat.com>
10013
10014 * frame.c (get_prev_frame): When a legacy frame, always call
10015 legacy_get_prev_frame. Simplify unwind code using assumption that
10016 the unwinder is new.
10017 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10018 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10019 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10020
10021 2003-03-14 Andrew Cagney <cagney@redhat.com>
10022
10023 * frame.c (get_saved_register): Delete function.
10024 * frame.h (get_saved_register): Delete declaration.
10025 * xstormy16-tdep.c: Update comment.
10026 * regcache.h: Update comments.
10027 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10028 get_saved_register and extract_address, use
10029 frame_read_unsigned_register.
10030 (sparc_frame_saved_pc): Ditto.
10031 (sparc_get_saved_register): Instead of get_saved_register, use
10032 frame_register.
10033 (sparc_pop_frame): Ditto.
10034 * findvar.c: Update comments.
10035 (value_of_register): Call frame_register instead of
10036 get_saved_register.
10037 (value_from_register): Ditto.
10038 * config/sparc/tm-sparc.h: Update comment.
10039 * breakpoint.c: Update comment.
10040
10041 2003-03-14 Andrew Cagney <cagney@redhat.com>
10042
10043 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10044 GET_SAVED_REGISTER.
10045 * gdbarch.h, gdbarch.c: Re-generate.
10046 * frame.h: Update comments.
10047 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10048 * x86-64-tdep.c (x86_64_init_abi): Update.
10049 * sparc-tdep.c (sparc_gdbarch_init): Update.
10050 * sh-tdep.c (sh_gdbarch_init): Update.
10051 * mips-tdep.c (mips_gdbarch_init): Update.
10052 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10053 * cris-tdep.c (cris_gdbarch_init): Update.
10054 * ia64-tdep.c (ia64_gdbarch_init): Update.
10055 * frame.c (frame_register): Update.
10056 (get_saved_register): Update.
10057 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
10058
10059 2003-03-13 Andrew Cagney <cagney@redhat.com>
10060
10061 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10062 * gdbarch.h, gdbarch.c: Regenerate.
10063 * valops.c (hand_function_call): Update comment.
10064 * stack.c (return_command): Update comment.
10065 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10066 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10067 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10068 * x86-64-tdep.c (x86_64_init_abi): Update.
10069 * vax-tdep.c (vax_gdbarch_init): Update.
10070 * v850-tdep.c (v850_gdbarch_init): Update.
10071 * sparc-tdep.c (sparc_gdbarch_init): Update.
10072 * sh-tdep.c (sh_gdbarch_init): Update.
10073 * s390-tdep.c (s390_gdbarch_init): Update.
10074 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10075 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10076 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10077 * mips-tdep.c (mips_gdbarch_init): Update.
10078 * mcore-tdep.c (mcore_gdbarch_init): Update.
10079 * m68k-tdep.c (m68k_gdbarch_init): Update.
10080 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10081 * ia64-tdep.c (ia64_gdbarch_init): Update.
10082 * i386-tdep.c (i386_gdbarch_init): Update.
10083 * hppa-tdep.c (hppa_gdbarch_init): Update.
10084 * h8300-tdep.c (h8300_gdbarch_init): Update.
10085 * frv-tdep.c (frv_gdbarch_init): Update.
10086 * cris-tdep.c (cris_gdbarch_init): Update.
10087 * avr-tdep.c (avr_gdbarch_init): Update.
10088 * arm-tdep.c (arm_gdbarch_init): Update.
10089 * alpha-tdep.c (alpha_gdbarch_init): Update.
10090
10091 2003-03-13 Andrew Cagney <cagney@redhat.com>
10092
10093 * frame.c (legacy_frame_p): New function.
10094 (get_prev_frame): Use legacy_frame_p.
10095 * frame.h (legacy_frame_p): Declare.
10096
10097 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10098
10099 * MAINTAINERS (write after approval): Alphabetically
10100 listing corrected.
10101
10102 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10103
10104 * MAINTAINERS (write after approval): Add myself.
10105
10106 2003-03-12 Andrew Cagney <cagney@redhat.com>
10107
10108 * frame.c (get_prev_frame): Rename the frame parameter to
10109 "this_frame".
10110 (get_next_frame, legacy_get_prev_frame): Ditto.
10111
10112 2003-03-12 Andrew Cagney <cagney@redhat.com>
10113
10114 * frame.c (get_current_frame): Check target_has_registers before
10115 checking target_has_stack.
10116 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10117 instead of deprecated_selected_frame.
10118 * findvar.c (value_of_register): Pass "frame", not
10119 deprecated_selected_frame, to value_of_builtin_reg.
10120
10121 2003-03-12 Andrew Cagney <cagney@redhat.com>
10122
10123 * regcache.c (regcache_cooked_write_signed): New function.
10124 (regcache_cooked_write_unsigned): New function.
10125 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10126 (regcache_cooked_read_signed): Fix regnum in range assertion.
10127 * regcache.h (regcache_cooked_write_signed): Declare.
10128 (regcache_cooked_write_unsigned): Declare.
10129
10130 2003-03-12 Andrew Cagney <cagney@redhat.com>
10131
10132 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10133 * gdbarch.h, gdbarch.c: Re-generate.
10134 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10135 * x86-64-tdep.h: Update.
10136 * x86-64-tdep.c (x86_64_init_abi): Update.
10137 * v850-tdep.c (v850_gdbarch_init): Update.
10138 * sparc-tdep.c (sparc_gdbarch_init): Update.
10139 * sh-tdep.c (sh_gdbarch_init): Update.
10140 * s390-tdep.c (s390_gdbarch_init): Update.
10141 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10142 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10143 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10144 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10145 * mips-tdep.c (mips_gdbarch_init): Update.
10146 * mcore-tdep.c (mcore_gdbarch_init): Update.
10147 * m68k-tdep.c (m68k_gdbarch_init): Update.
10148 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10149 * ia64-tdep.c (ia64_gdbarch_init): Update.
10150 * i386-tdep.c (i386_gdbarch_init): Update.
10151 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10152 * hppa-tdep.c (hppa_gdbarch_init): Update.
10153 * h8300-tdep.c (h8300_gdbarch_init): Update.
10154 * frv-tdep.c (frv_gdbarch_init): Update.
10155 * cris-tdep.c (cris_gdbarch_init): Update.
10156 * avr-tdep.c (avr_gdbarch_init): Update.
10157 * arm-tdep.c (arm_gdbarch_init): Update.
10158 * alpha-tdep.c (alpha_gdbarch_init): Update.
10159 * sh-tdep.c (sh_init_extra_frame_info): Update.
10160 (sh64_init_extra_frame_info): Update.
10161 * ns32knbsd-nat.c (frame_num_args): Update.
10162 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10163 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10164 (xstormy16_frame_chain_valid): Update.
10165 * vax-tdep.c (vax_saved_pc_after_call): Update.
10166 * v850-tdep.c (v850_frame_chain): Update.
10167 (v850_pop_frame): Update.
10168 (v850_init_extra_frame_info): Update.
10169 * sparc-tdep.c (setup_arbitrary_frame): Update.
10170 * ns32k-tdep.c (umax_frame_num_args): Update.
10171 * s390-tdep.c (s390_pop_frame_regular): Update.
10172 * mn10300-tdep.c (mn10300_frame_chain): Update.
10173 (mn10300_pop_frame_regular): Update.
10174 (mn10300_init_extra_frame_info): Update.
10175 * mips-tdep.c (mips_init_frame_pc_first): Update.
10176 (mips_frame_chain): Update.
10177 (mips_pop_frame): Update.
10178 * mcore-tdep.c (mcore_frame_chain): Update.
10179 (mcore_pop_frame): Update.
10180 (mcore_init_extra_frame_info): Update.
10181 * arch-utils.c (init_frame_pc_default): Update.
10182 * m68k-tdep.c (isi_frame_num_args): Update.
10183 (delta68_frame_num_args): Update.
10184 (news_frame_num_args): Update.
10185 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10186 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10187 (alpha_frame_chain): Update.
10188 (alpha_pop_frame): Update.
10189 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10190 (hppa_init_extra_frame_info): Update.
10191 (hppa_frame_chain): Update.
10192 (hppa_frame_chain_valid): Update.
10193 * cris-tdep.c (cris_init_extra_frame_info): Update.
10194 * avr-tdep.c (avr_init_extra_frame_info): Update.
10195 * arm-tdep.c (arm_frame_chain_valid): Update.
10196 (arm_init_extra_frame_info): Update.
10197 (arm_pop_frame): Update.
10198 * frame.c (frame_pc_unwind): Update.
10199 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10200 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10201 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10202 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10203 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10204 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10205
10206 2003-03-12 Andrew Cagney <cagney@redhat.com>
10207
10208 Eliminate the need for POP_FRAME.
10209 * frame.c (do_frame_unwind_register): New function.
10210 (frame_pop): When no POP_FRAME, pop the frame using register
10211 unwind and a scratch regcache.
10212 (frame_saved_regs_pop): Delete function.
10213 (trad_frame_unwinder): Update.
10214 * d10v-tdep.c (d10v_frame_pop): Delete function.
10215 (d10v_frame_unwind): Update.
10216 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10217 (sentinel_frame_unwinder): Update.
10218 * dummy-frame.c (dummy_frame_pop): Delete function.
10219 (dummy_frame_unwind): Update.
10220 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10221 (struct frame_unwind): Update.
10222
10223 2003-03-11 Kevin Buettner <kevinb@redhat.com>
10224
10225 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10226 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10227 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10228 Do range checks on register number obtained from debugging info.
10229 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10230 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10231 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10232 mapping function.
10233 (do_fp_register_row): Fix typo which caused double type to be
10234 used when attempting to unpack a float.
10235
10236 2003-03-11 J. Brobecker <brobecker@gnat.com>
10237
10238 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10239
10240 2003-03-11 Andrew Cagney <cagney@redhat.com>
10241
10242 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10243 frame. Problem found by Corinna Vinschen.
10244
10245 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10246
10247 * doublest.c (floatformat_from_length): Accept also
10248 the real size of 'long double' type.
10249
10250 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
10251
10252 From Klee Dienes <kdienes@apple.com>:
10253 * breakpoint.c (bpstat_copy): Copy the command lines as well
10254 as the old value, to match what is freed in bpstat_clear.
10255
10256 2003-03-10 David Carlton <carlton@math.stanford.edu>
10257
10258 * minsyms.c (add_minsym_to_hash_table): Replace
10259 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10260 (compare_minimal_symbols, compact_minimal_symbols)
10261 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10262 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10263 of DEPRECATED_SYMBOL_MATCHES_NAME.
10264 (lookup_minimal_symbol_solib_trampoline): Ditto.
10265
10266 2003-03-10 Andrew Cagney <cagney@redhat.com>
10267
10268 * regcache.h (regcache_cooked_read_ftype): Define.
10269 (regcache_save, regcache_restore): Add a cooked_read parameter.
10270 * regcache.c (regcache_save, regcache_restore): Update.
10271 (do_cooked_read): New function.
10272 (regcache_cpy): Pass do_cooked_read to regcache_save and
10273 regcache_restore.
10274
10275 2003-03-10 Andrew Cagney <cagney@redhat.com>
10276
10277 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10278 * gdbarch.h, gdbarch.c: Re-generate.
10279 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10280 * x86-64-tdep.h: Update.
10281 * x86-64-tdep.c (x86_64_init_abi): Update.
10282 * v850-tdep.c (v850_gdbarch_init): Update.
10283 * sparc-tdep.c (sparc_gdbarch_init): Update.
10284 * sh-tdep.c (sh_gdbarch_init): Update.
10285 * s390-tdep.c (s390_gdbarch_init): Update.
10286 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10287 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10288 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10289 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10290 * mips-tdep.c (mips_gdbarch_init): Update.
10291 * mcore-tdep.c (mcore_gdbarch_init): Update.
10292 * m68k-tdep.c (m68k_gdbarch_init): Update.
10293 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10294 * ia64-tdep.c (ia64_gdbarch_init): Update.
10295 * i386-tdep.c (i386_gdbarch_init): Update.
10296 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10297 * hppa-tdep.c (hppa_gdbarch_init): Update.
10298 * h8300-tdep.c (h8300_gdbarch_init): Update.
10299 * frv-tdep.c (frv_gdbarch_init): Update.
10300 * cris-tdep.c (cris_gdbarch_init): Update.
10301 * avr-tdep.c (avr_gdbarch_init): Update.
10302 * arm-tdep.c (arm_gdbarch_init): Update.
10303 * alpha-tdep.c (alpha_gdbarch_init): Update.
10304 * sh-tdep.c (sh_init_extra_frame_info): Update.
10305 (sh64_init_extra_frame_info): Update.
10306 * ns32knbsd-nat.c (frame_num_args): Update.
10307 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10308 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10309 (xstormy16_frame_chain_valid): Update.
10310 * vax-tdep.c (vax_saved_pc_after_call): Update.
10311 * v850-tdep.c (v850_frame_chain): Update.
10312 (v850_pop_frame): Update.
10313 (v850_init_extra_frame_info): Update.
10314 * sparc-tdep.c (setup_arbitrary_frame): Update.
10315 * ns32k-tdep.c (umax_frame_num_args): Update.
10316 * s390-tdep.c (s390_pop_frame_regular): Update.
10317 * mn10300-tdep.c (mn10300_frame_chain): Update.
10318 (mn10300_pop_frame_regular): Update.
10319 (mn10300_init_extra_frame_info): Update.
10320 * mips-tdep.c (mips_init_frame_pc_first): Update.
10321 (mips_frame_chain): Update.
10322 (mips_pop_frame): Update.
10323 * mcore-tdep.c (mcore_frame_chain): Update.
10324 (mcore_pop_frame): Update.
10325 (mcore_init_extra_frame_info): Update.
10326 * arch-utils.c (init_frame_pc_default): Update.
10327 * m68k-tdep.c (isi_frame_num_args): Update.
10328 (delta68_frame_num_args): Update.
10329 (news_frame_num_args): Update.
10330 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10331 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10332 (alpha_frame_chain): Update.
10333 (alpha_pop_frame): Update.
10334 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10335 (hppa_init_extra_frame_info): Update.
10336 (hppa_frame_chain): Update.
10337 (hppa_frame_chain_valid): Update.
10338 * cris-tdep.c (cris_init_extra_frame_info): Update.
10339 * avr-tdep.c (avr_init_extra_frame_info): Update.
10340 * arm-tdep.c (arm_frame_chain_valid): Update.
10341 (arm_init_extra_frame_info): Update.
10342 (arm_pop_frame): Update.
10343 * frame.c (frame_pc_unwind): Update.
10344 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10345 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10346 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10347 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10348 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10349 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10350
10351 2003-03-10 Andrew Cagney <cagney@redhat.com>
10352
10353 * gdbarch.sh (gdbarch_unwind_pc): New method.
10354 * gdbarch.h, gdbarch.c: Regenerate.
10355 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10356 but use read_pc and FRAME_SAVED_PC as fall backs.
10357 (frame_saved_regs_pc_unwind): Delete function.
10358 (trad_frame_unwinder): Update.
10359 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10360 (struct frame_unwind): Update.
10361 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10362 (dummy_frame_unwind): Update.
10363 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10364 (sentinel_frame_unwinder): Update.
10365 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10366 (d10v_frame_unwind): Update.
10367 (d10v_unwind_pc): New function.
10368 (d10v_gdbarch_init): Set unwind_pc.
10369
10370 2003-03-10 Andrew Cagney <cagney@redhat.com>
10371
10372 * gdbarch.h: Re-generate.
10373
10374 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10375 PC.
10376 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10377 the PC register.
10378
10379 2003-03-08 Mark Kettenis <kettenis@gnu.org>
10380
10381 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10382
10383 2003-03-08 Andrew Cagney <cagney@redhat.com>
10384
10385 * cli-out.c: Update copyright.
10386 (cli_out_data): Define typedef. Use instead of ui_out_data.
10387
10388 2003-03-08 Andrew Cagney <cagney@redhat.com>
10389
10390 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10391 the result.
10392
10393 2003-03-07 Andrew Cagney <cagney@redhat.com>
10394
10395 * gdbarch.sh: Don't generate two macro definitions when an
10396 undefined macro taking no arguments.
10397 * gdbarch.h: Regenerate.
10398
10399 2002-03-07 Michal Ludvig <mludvig@suse.cz>
10400
10401 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10402 (x86_64_unwind_dummy_id): New functions.
10403 (x86_64_init_abi): Register these two new functions.
10404
10405 2003-03-07 Michal Ludvig <mludvig@suse.cz>
10406
10407 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
10408 (x86_64_skip_prologue): Move prologue detection to
10409 separate function.
10410 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10411
10412 2003-03-05 Andrew Cagney <cagney@redhat.com>
10413
10414 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10415 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10416 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10417 to use unwind_dummy_id when a dummy frame.
10418 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10419 predicate.
10420 * gdbarch.h, gdbarch.c: Regneerate.
10421
10422 2003-03-05 Andrew Cagney <cagney@redhat.com>
10423
10424 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10425 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10426 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10427 values.
10428
10429 2003-03-05 Andrew Cagney <cagney@redhat.com>
10430
10431 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10432 (struct d10v_unwind_cache): Delete field "frameless". Replace
10433 "next_addr" with "sp_offset". Add "r11_offset".
10434 (d10v_frame_unwind_cache): Update.
10435 (prologue_find_regs): Update. When "mv r11, sp", save the
10436 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10437 RN was saved in r11_offset.
10438
10439 2003-03-05 Andrew Cagney <cagney@redhat.com>
10440
10441 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10442 cached PC value in the next frame.
10443
10444 2003-03-05 Andrew Cagney <cagney@redhat.com>
10445
10446 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10447 "id_unwind_cache" with "id".
10448 (frame_id_unwind): Delete declaration.
10449 * frame.c (frame_id_unwind): Delete function.
10450 (get_prev_frame): Call the frame id unwind method directly. Store
10451 the returned next frame's ID value in NEXT_FRAME. Note that there
10452 is a problem with the wrong unwind ID being called with the wrong
10453 unwind cache.
10454
10455 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10456
10457 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10458
10459 2003-03-05 James Ingham <jingham@apple.com>
10460 Daniel Jacobowitz <drow@mvista.com>
10461
10462 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10463 (auto_cp_abi): New variable.
10464 (current_cp_abi, num_cp_abis): Make static.
10465 (CP_ABI_MAX): Define.
10466 (cp_abis): Turn into an array.
10467 (value_virtual_fn_field): Fix formatting.
10468 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10469 takes a pointer.
10470 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10471 (list_cp_abis, _initialize_cp_abi): New functions.
10472 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10473 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10474 switch_to_cp_abi. Update prototype for register_cp_abi.
10475 * Makefile.in (cp-abi.o): Update dependencies.
10476 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10477 instead of switch_to_cp_abi.
10478 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10479 register_cp_abi.
10480 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10481 register_cp_abi.
10482 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10483
10484 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10485
10486 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10487 * dwarf2loc.c: Include "regcache.h".
10488 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10489 register_size.
10490 * Makefile.in (dwarf2loc.o): Update dependencies.
10491
10492 2003-03-04 Theodore A. Roth <troth@openavr.org>
10493
10494 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10495 number of io registers reported by remote target is not a multiple of
10496 step.
10497
10498 2003-03-04 David Carlton <carlton@math.stanford.edu>
10499
10500 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10501 (lookup_symbol_aux_psymtabs): Update call to
10502 lookup_partial_symbol.
10503 (lookup_transparent_type, find_main_psymtab)
10504 (make_symbol_overload_list): Ditto.
10505
10506 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10507
10508 * MAINTAINERS (Write after approval): Update my email address.
10509
10510 2003-03-03 Andrew Cagney <cagney@redhat.com>
10511
10512 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10513 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10514 predicate. Replace MAX_REGISTER_RAW_SIZE.
10515 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10516 MAX_REGISTER_VIRTUAL_SIZE.
10517 * regcache.c (legacy_max_register_raw_size): New function.
10518 (legacy_max_register_virtual_size): New function.
10519 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10520 (MAX_REGISTER_RAW_SIZE): Define.
10521 (legacy_max_register_raw_size): Declare.
10522 (legacy_max_register_virtual_size): Declare.
10523 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10524 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10525 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10526 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10527 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10528 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10529 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10530 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10531 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10532 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10533 * vax-tdep.c (vax_gdbarch_init): Update.
10534 * v850-tdep.c (v850_gdbarch_init): Update.
10535 * sparc-tdep.c (sparc_gdbarch_init): Update.
10536 * sh-tdep.c (sh_gdbarch_init): Update.
10537 * s390-tdep.c (s390_gdbarch_init): Update.
10538 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10539 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10540 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10541 * mips-tdep.c (mips_gdbarch_init): Update.
10542 * mcore-tdep.c (mcore_gdbarch_init): Update.
10543 * m68k-tdep.c (m68k_gdbarch_init): Update.
10544 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10545 * ia64-tdep.c (ia64_gdbarch_init): Update.
10546 * i386-tdep.c (i386_gdbarch_init): Update.
10547 * hppa-tdep.c (hppa_gdbarch_init): Update.
10548 * h8300-tdep.c (h8300_gdbarch_init): Update.
10549 * frv-tdep.c (frv_gdbarch_init): Update.
10550 * cris-tdep.c (cris_gdbarch_init): Update.
10551 * avr-tdep.c (avr_gdbarch_init): Update.
10552 * arm-tdep.c (arm_gdbarch_init): Update.
10553 * alpha-tdep.c (alpha_gdbarch_init): Update.
10554 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10555 max_register_raw_size or max_register_virtual_size.
10556
10557 2003-03-03 David Carlton <carlton@math.stanford.edu>
10558
10559 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10560 SYMBOL_MATCHES_NAME, add comment.
10561 (SYMBOL_MATCHES_NATURAL_NAME): New.
10562 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10563 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10564 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10565 * symtab.c (lookup_partial_symbol): Use
10566 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10567 unhelpful comment.
10568 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10569 SYMBOL_MATCHES_NAME.
10570 Fix for PR c++/33.
10571
10572 2003-03-03 David Carlton <carlton@math.stanford.edu>
10573
10574 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10575 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10576 by regexp matching against SYMBOL_NATURAL_NAME.
10577
10578 2003-03-03 David Carlton <carlton@math.stanford.edu>
10579
10580 * linespec.c (find_method): Extract code into collect_methods.
10581 (collect_methods): New.
10582
10583 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10584
10585 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10586 get_frame_base.
10587
10588 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10589 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10590
10591 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10592
10593 * arch-utils.c (generic_register_byte): Fix to use the loop index
10594 and not regnum when summing the size of all registers up to regnum.
10595
10596 2003-03-01 Andrew Cagney <cagney@redhat.com>
10597
10598 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10599 FRAME_INIT_SAVED_REGS.
10600 * gdbarch.h, gdbarch.c: Regenerate.
10601 * stack.c (frame_info): Update.
10602 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10603 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10604 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10605 * ns32k-tdep.c (ns32k_pop_frame): Update.
10606 * mips-tdep.c (mips_pop_frame): Update.
10607 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10608 * ia64-tdep.c (ia64_frame_chain): Update.
10609 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10610 (ia64_frameless_function_invocation): Update.
10611 (ia64_init_extra_frame_info): Update.
10612 (ia64_pop_frame_regular): Update.
10613 * frame.h (struct frame_info): Update comment.
10614 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10615 * frame.c (frame_saved_regs_register_unwind): Update.
10616 (frame_saved_regs_register_unwind): Update.
10617 (deprecated_generic_get_saved_register): Update.
10618 * cris-tdep.c: Update comment.
10619 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10620 Rename macro.
10621 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10622 * x86-64-tdep.c (x86_64_init_abi): Update.
10623 * vax-tdep.c (vax_gdbarch_init): Update.
10624 * v850-tdep.c (v850_gdbarch_init): Update.
10625 * sparc-tdep.c (sparc_gdbarch_init): Update.
10626 * sh-tdep.c (sh_gdbarch_init): Update.
10627 * s390-tdep.c (s390_gdbarch_init): Update.
10628 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10629 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10630 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10631 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10632 * mips-tdep.c (mips_gdbarch_init): Update.
10633 * mcore-tdep.c (mcore_gdbarch_init): Update.
10634 * m68k-tdep.c (m68k_gdbarch_init): Update.
10635 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10636 * ia64-tdep.c (ia64_gdbarch_init): Update.
10637 * i386-tdep.c (i386_gdbarch_init): Update.
10638 * frv-tdep.c (frv_gdbarch_init): Update.
10639 * avr-tdep.c (avr_gdbarch_init): Update.
10640 * arm-tdep.c (arm_gdbarch_init): Update.
10641 * alpha-tdep.c (alpha_gdbarch_init): Update.
10642
10643 2003-03-01 Andrew Cagney <cagney@redhat.com>
10644
10645 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10646 option enum and switch. When no windows, set the interpreter to
10647 INTERP_CONSOLE.
10648
10649 2003-03-01 Andrew Cagney <cagney@redhat.com>
10650
10651 * main.c (captured_main): Replace magic option characters with an
10652 enum.
10653
10654 2003-03-01 Andrew Cagney <cagney@redhat.com>
10655
10656 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10657 INIT_EXTRA_FRAME_INFO.
10658 * gdbarch.h, gdbarch.c: Regenerate.
10659 * arm-tdep.c: Update comments.
10660 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10661 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10662 * frame.h, avr-tdep.c: Ditto.
10663 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10664 (create_new_frame, legacy_get_prev_frame): Ditto.
10665 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10666 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10667 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10668 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10669 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10670 * v850-tdep.c (v850_gdbarch_init): Ditto.
10671 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10672 * sh-tdep.c (sh_gdbarch_init): Ditto.
10673 * s390-tdep.c (s390_gdbarch_init): Ditto.
10674 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10675 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10676 * mips-tdep.c (mips_gdbarch_init): Ditto.
10677 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10678 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10679 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10680 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10681 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10682 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10683 * frv-tdep.c (frv_gdbarch_init): Ditto.
10684 * cris-tdep.c (cris_gdbarch_init): Ditto.
10685 * avr-tdep.c (avr_gdbarch_init): Ditto.
10686 * arm-tdep.c (arm_gdbarch_init): Ditto.
10687 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10688 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10689
10690 2003-03-01 Andrew Cagney <cagney@redhat.com>
10691
10692 * gdbarch.sh (register_type): New function with predicate.
10693 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10694 * gdbarch.h, gdbarch.c: Re-generate.
10695 * arch-utils.c (generic_register_byte): Use generic_register_size.
10696 (generic_register_size): When available, use
10697 gdbarch_register_type.
10698 * regcache.c (init_regcache_descr): When available, initialize the
10699 register type array using gdbarch_register_type. If the
10700 architecture supplies gdbarch_register_type, do not use the legacy
10701 regcache layout.
10702 * d10v-tdep.c (d10v_register_type): Replace
10703 d10v_register_virtual_type.
10704 (d10v_gdbarch_init): Set register_type instead of
10705 register_virtual_type.
10706
10707 2003-03-01 Andrew Cagney <cagney@redhat.com>
10708
10709 * Makefile.in (ax-gdb.o): Update dependencies.
10710 * ax-gdb.c: Include "regcache.h".
10711 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10712 * findvar.c (value_of_register): Ditto.
10713 * infcmd.c (default_print_registers_info): Ditto.
10714
10715 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10716
10717 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10718 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10719
10720 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10721
10722 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10723 of STREQ.
10724
10725 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10726
10727 * Makefile.in (dwarf2loc.o): Update dependencies.
10728 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10729 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10730 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10731 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10732 (locexpr_tracepoint_var_ref): New function.
10733 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10734
10735 2003-02-28 Andrew Cagney <cagney@redhat.com>
10736
10737 * regcache.c (register_size): New function.
10738 * regcache.h (register_size): Declare
10739 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10740 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10741
10742 2003-02-28 David Carlton <carlton@math.stanford.edu>
10743
10744 * linespec.c (decode_compound): Extract code into find_method.
10745 (find_method): New.
10746
10747 2003-02-28 J. Brobecker <brobecker@gnat.com>
10748
10749 * Makefile.in: Add rules to build and link in observer.o.
10750
10751 2003-02-27 J. Brobecker <brobecker@gnat.com>
10752
10753 * observer.c: Minor comments edits.
10754
10755 2003-02-27 J. Brobecker <brobecker@gnat.com>
10756
10757 * observer.h, observer.c: New file.
10758
10759 2003-02-27 Andrew Cagney <cagney@redhat.com>
10760
10761 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10762
10763 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10764
10765 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10766 (M6812_OP_STS_EXT): Likewise.
10767 (m6811_prologue): Use the above to recognize prologue.
10768 (m6812_prologue): Likewise.
10769
10770 2003-02-27 David Carlton <carlton@math.stanford.edu>
10771
10772 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10773 SYMBOL_PRINT_NAME.
10774 (compare_psymbols): Ditto.
10775 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10776
10777 2003-02-27 Michael Snyder <msnyder@redhat.com>
10778
10779 * f-lang.c (build_fortran_types): New function.
10780 (_initialize_f_language): Gdbarch-register built-in fortran types.
10781 * doublest.c (extract_floating): Fix warning text.
10782
10783 2003-02-27 Andrew Cagney <cagney@redhat.com>
10784
10785 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10786 predicate. Replaces PUSH_DUMMY_FRAME.
10787 * gdbarch.h, gdbarch.c: Regnerate.
10788 * valops.c (hand_function_call): Update. Call
10789 generic_push_dummy_frame directly.
10790 * vax-tdep.c (vax_gdbarch_init): Update.
10791 * sparc-tdep.c (sparc_gdbarch_init): Update.
10792 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10793 * m68k-tdep.c (m68k_gdbarch_init): Update.
10794 * hppa-tdep.c (hppa_gdbarch_init): Update.
10795 * alpha-tdep.c (alpha_gdbarch_init): Update.
10796 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10797 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10798 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10799 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10800 push_dummy_frame to generic_push_dummy_frame.
10801 * v850-tdep.c (v850_gdbarch_init): Ditto.
10802 * sh-tdep.c (sh_gdbarch_init): Ditto.
10803 * s390-tdep.c (s390_gdbarch_init): Ditto.
10804 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10805 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10806 * mips-tdep.c (mips_gdbarch_init): Ditto.
10807 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10808 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10809 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10810 * i386-tdep.c (i386_gdbarch_init): Ditto.
10811 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10812 * frv-tdep.c (frv_gdbarch_init): Ditto.
10813 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10814 * cris-tdep.c (cris_gdbarch_init): Ditto.
10815 * avr-tdep.c (avr_gdbarch_init): Ditto.
10816 * arm-tdep.c (arm_gdbarch_init): Ditto.
10817
10818 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10819
10820 * mips-tdep.c (show_mips_abi): New function.
10821 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10822 command ``show mips abi''.
10823
10824 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10825
10826 From Elena Zannoni <ezannoni@redhat.com>
10827 * dbxread.c (process_one_symbol): Only record line 0 if one or
10828 more sline entries have been seen for the function.
10829
10830 2003-02-26 Michael Chastain <mec@shout.net>
10831
10832 * configure: Regenerate with autoconf 000227.
10833
10834 2003-02-26 Michael Chastain <mec@shout.net>
10835
10836 Close PR build/660.
10837 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10838 for old libc5/glibc.
10839 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10840
10841 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10842
10843 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10844 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10845
10846 2003-02-26 Michael Chastain <mec@shout.net>
10847
10848 * configure.in: New variable HAVE_UINTPTR_T.
10849 * configure, config.in: Regenerated.
10850
10851 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10852
10853 Fix PR build/1097.
10854 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10855
10856 2003-02-25 Andrew Cagney <cagney@redhat.com>
10857
10858 * frame.c (get_prev_frame): Add comment on check for
10859 inside_entry_func. Only check for inside_entry_file when not a
10860 dummy and not a sentinel. Check that the new frame is not inner
10861 to the old frame.
10862
10863 2003-02-25 Andrew Cagney <cagney@redhat.com>
10864
10865 * frame.c (frame_debug): New variable.
10866 (_initialize_frame): Add "set/show debug frame" command.
10867 (get_prev_frame): When frame_debug, print reason why unwind
10868 failed.
10869
10870 2003-02-25 Michael Chastain <mec@shout.net>
10871
10872 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10873 to avoid uintptr_t definition problems.
10874
10875 2003-02-25 David Carlton <carlton@math.stanford.edu>
10876
10877 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10878 (SYMBOL_LINKAGE_NAME): Ditto.
10879 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10880 SYMBOL_LINKAGE_NAME.
10881 (struct general_symbol_info): Expand comment.
10882 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10883 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10884 (SYMBOL_MATCHES_REGEXP): Ditto.
10885 * symtab.c (symbol_natural_name): New function.
10886 * objfiles.h: Replace all uses of SYMBOL_NAME by
10887 DEPRECATED_SYMBOL_NAME.
10888 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10889 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10890 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10891 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10892 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10893 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10894 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10895 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10896 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10897 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10898 * ada-exp.y: Ditto.
10899 * ada-exp.y: Update copyright.
10900 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10901 * cp-valprint.c: Ditto.
10902
10903 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10904
10905 * infptrace.c (detach): Do not flag error if ptrace detach fails
10906 and errno is set to ESRCH.
10907
10908 2003-02-24 Andrew Cagney <cagney@redhat.com>
10909
10910 * infptrace.c (udot_info): Change type of udot_off to long. Use
10911 paddr when printing udot_off's value.
10912
10913 2003-02-24 David Carlton <carlton@math.stanford.edu>
10914
10915 * symtab.c (make_symbol_overload_list): Only read in partial
10916 symtabs containing a matching partial symbol.
10917
10918 2003-02-24 David Carlton <carlton@math.stanford.edu>
10919
10920 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10921 do the comparison, not strcmp.
10922 * symfile.c (compare_psymbols): Ditto.
10923 * defs.h: Declare strcmp_iw_ordered.
10924 * utils.c (strcmp_iw_ordered): New function.
10925
10926 2003-02-24 Jim Blandy <jimb@redhat.com>
10927
10928 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10929 support, shared libs): Remove my name from here, to better reflect
10930 reality.
10931
10932 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10933
10934 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10935 (target_ops): Add to_have_continuable_watchpoint.
10936 * target.c (update_current_target): Add INHERIT line for
10937 to_have_continuable_watchpoint.
10938 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10939 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10940 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10941 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10942
10943 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10944
10945 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10946 maintainership.
10947
10948 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10949
10950 * solib.c (solib_open): Call target defined search function after
10951 failing with solib-search-path.
10952 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10953 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10954
10955 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10956
10957 * MAINTAINERS: Add myself to Write After section.
10958
10959 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10960
10961 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10962
10963 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10964
10965 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10966 (m68hc11_add_reggroups): New function.
10967 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10968 (m68hc11_gdbarch_init): Install the reggroups.
10969 (_initialize_m68hc11_tdep): Initialize them.
10970
10971 2003-02-21 James E Wilson <wilson@tuliptree.org>
10972
10973 * MAINTAINERS: Update my email address.
10974
10975 2003-02-21 David Carlton <carlton@math.stanford.edu>
10976
10977 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10978
10979 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10980
10981 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10982 * symtab.h: Add opaque declarations of struct axs_value and
10983 struct agent_expr.
10984 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10985 (struct location_funcs): New type.
10986 (struct symbol): Add "loc" to aux_value.
10987 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10988 * dwarf2read.c: Include "dwarf2expr.h".
10989 (dwarf2_symbol_mark_computed): New function.
10990 (read_func_scope): Use it.
10991 (var_decode_location): New function.
10992 (new_symbol): Use it.
10993 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10994
10995 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10996 (dwarf2expr_h, dwarf2loc_h): New variables.
10997 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10998 (dwarf2expr.o, dwarf2loc.o): New rules.
10999 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11000 * buildsym.c (finish_block): Handle LOC_COMPUTED and
11001 LOC_COMPUTED_ARG.
11002 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11003 * m2-exp.y (yylex): Likewise.
11004 * printcmd.c (address_info, print_frame_args): Likewise.
11005 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11006 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11007 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11008 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11009 * symtab.c (lookup_block_symbol): Likewise.
11010
11011 2003-02-20 Adam Fedor <fedor@gnu.org>
11012
11013 * symtab.h: Remove objc_specific struct
11014 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11015 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11016 Have language_objc use cplus_specific struct.
11017
11018 2003-02-20 Tom Tromey <tromey@redhat.com>
11019
11020 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11021 TYPE_NAME, when printing a String value. PR java/1075.
11022
11023 2003-02-20 Adam Fedor <fedor@gnu.org>
11024
11025 * objc-lang.h (find_methods): Remove declaration.
11026 * objc-lang.c (find_methods): Make static.
11027
11028 2003-02-20 Christopher Faylor <cgf@redhat.com>
11029
11030 * win32-nat.c (get_image_name): Check return value from
11031 ReadProcessMemory.
11032 (child_xfer_memory): Ditto.
11033
11034 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
11035
11036 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11037 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11038 '${exec_prefix}' (in addition to the expansion thereof) as
11039 relocatable.
11040 * configure: Rebuilt.
11041
11042 2003-02-20 David Carlton <carlton@math.stanford.edu>
11043
11044 * symtab.c (search_symbols): Revert the search_symbols part of my
11045 2002-12-23 patch. Add comment.
11046
11047 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11048
11049 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11050 * dbxread.c (elfstab_build_psymtabs): Don't call
11051 install_minimal_symbols.
11052 (stabsect_build_psymtabs): Likewise.
11053 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11054 earlier.
11055 * somread.c (som_symfile_read): Call install_minimal_symbols
11056 and do_cleanups earlier.
11057 * nlmread.c (nlm_symfile_read): Likewise.
11058 * mdebugread.c (elfmdebug_build_psymtabs): Call
11059 install_minimal_symbols and make appropriate cleanups.
11060
11061 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11062
11063 * solib.c (reload_shared_libraries): New function.
11064 (_initialize_solib): Add callbacks for ``set solib-search-path''
11065 and ``set solib-absolute-prefix''.
11066
11067 2003-02-20 David Carlton <carlton@math.stanford.edu>
11068
11069 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11070 expand comment.
11071 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11072 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11073 * ada-typeprint.c (ada_typedef_print): Ditto.
11074 * ax-gdb.c (gen_var_ref): Ditto.
11075 * breakpoint.c (print_one_breakpoint): Ditto.
11076 * buildsym.c (finish_block): Ditto.
11077 * c-valprint.c (c_val_print): Ditto.
11078 * expprint.c (print_subexp): Ditto.
11079 * findvar.c (locate_var_value): Ditto.
11080 * infcmd.c (jump_command): Ditto.
11081 * linespec.c (decode_line_2, decode_compound): Ditto.
11082 * maint.c (maintenance_translate_address): Ditto.
11083 * objc-lang.c (compare_selectors, compare_classes): Ditto.
11084 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11085 Ditto.
11086 * p-valprint.c (pascal_val_print): Ditto.
11087 * stabsread.c (define_symbol): Ditto.
11088 * stack.c (print_frame, frame_info, print_block_frame_locals)
11089 (print_frame_arg_vars, return_command): Ditto.
11090 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11091 * symmisc.c (print_symbol): Ditto.
11092 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11093 (compare_search_syms, print_symbol_info, print_msymbol_info)
11094 (rbreak_command): Ditto.
11095 * tracepoint.c (tracepoints_info): Ditto.
11096 * typeprint.c (typedef_print): Ditto.
11097 * valops.c (value_of_variable, hand_function_call): Ditto.
11098 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11099 * ada-typeprint.c: Update Copyright.
11100 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11101 * tracepoint.c, cli/cli-cmds.c: Ditto.
11102
11103 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11104
11105 * frame.c (generic_unwind_get_saved_register): Make non-static.
11106 * frame.h (generic_unwind_get_saved_register): Declare.
11107 * mips-tdep.c (read_next_frame_reg): Fetch register from
11108 current regcache when frame is NULL.
11109 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11110 that must be NULL.
11111 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11112 instead of frame_register_unwind().
11113
11114 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11115
11116 * remote-sim.c (gdbsim_insert_breakpoint)
11117 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11118 code.
11119
11120 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11121
11122 * remote.c (_initialize_remote): Add commands "set/show remote
11123 hardware-watchpoint-limit" and "set/show remote
11124 hardware-breakpoint-limit".
11125 (remote_hw_watchpoint_limit): Initialize to -1.
11126 (remote_hw_breakpoint_limit): Ditto.
11127 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11128
11129 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11130
11131 * coff-pe-read.c: New file - support reading of minimal symbols from a
11132 portable executable using the export table.
11133 * coff-pe-read.h: New file.
11134 * coffread.c: Include coff-pe-read.h.
11135 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11136 debugging symbols found.
11137 * Makefile.in (SFILES): Add coff-pe-read.o.
11138 (coff_pe_read_h): Define.
11139 (COMMON_OBS): Add coff-pe-read.o.
11140 (coffread.o): Add coff_pe_read_h dependency.
11141 (coff-pe-read.o): New target.
11142
11143 2003-02-19 David Carlton <carlton@math.stanford.edu>
11144
11145 * Makefile.in (SFILES): Add block.c.
11146 (block_h): New.
11147 (COMMON_OBS): Add block.o.
11148 (block.o): New.
11149 (x86-64-tdep.o): Add $(block_h).
11150 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11151 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11152 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11153 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11154 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11155 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11156 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11157 * value.h: Add opaque declaration for struct block.
11158 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11159 * ada-lang.h: Ditto.
11160 * x86-64-tdep.c: #include "block.h"
11161 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11162 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11163 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11164 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11165 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11166 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11167 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11168 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11169 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11170 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11171 * symtab.c (block_function): Ditto.
11172 (contained_in): Ditto.
11173 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11174 block.h. Add opaque declaration for struct block.
11175 * symtab.h: Move block_function and contained_in declarations to
11176 block.h. Add opaque declarations for struct block, struct
11177 blockvector.
11178 (struct block): Move to block.h.
11179 (struct blockvector): Ditto.
11180 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11181 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11182 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11183 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11184 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11185 Ditto.
11186 * block.c: New file.
11187 * block.h: New file.
11188
11189 2003-02-19 Theodore A. Roth <troth@openavr.org>
11190
11191 * avr-tdep.c (avr_extract_return_value): Remove function.
11192 (avr_store_return_value): Remove function.
11193 (avr_extract_struct_value_address): Remove function.
11194 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11195
11196 2003-02-19 Andrew Cagney <ac131313@redhat.com>
11197
11198 * rs6000-tdep.c: Include "gdb_assert.h".
11199 (registers_e500): Add "acc" and "spefscr".
11200 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11201 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11202 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11203 really is "r0".
11204 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11205
11206 2003-02-18 Keith Seitz <keiths@redhat.com>
11207
11208 * Makefile.in: Add gdbtk-interps.c.
11209
11210 2003-02-18 Kevin Buettner <kevinb@redhat.com>
11211
11212 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11213 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11214
11215 2003-02-18 Andrew Cagney <cagney@redhat.com>
11216
11217 * symtab.h (struct objfile): Add opaque declaration.
11218
11219 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
11220
11221 From Jim Ingham <jingham@apple.com>:
11222 * dbxread.c (process_one_symbol): Use last_function_start rather
11223 than function_start_offset to find the real beginning of the
11224 current function. The latter is just the text section offset on
11225 some systems, the former is always the real function start.
11226
11227 2003-02-17 Andrew Cagney <cagney@redhat.com>
11228
11229 * configure.in: Revert ${target} != ${host}.
11230
11231 2003-02-17 Andrew Cagney <ac131313@redhat.com>
11232
11233 * configure.in (Makefile): Use the test ${target} != ${host},
11234 instead of the absence of the "nm.h" file, to determine of the
11235 configuration non-native.
11236 * configure: Regenerate.
11237
11238 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
11239
11240 From Brian Ford <ford@vss.fsi.com>
11241
11242 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11243 conditionalize tui_active test.
11244 (lookup_cmd_1): Ditto.
11245
11246 2003-02-14 Mark Kettenis <kettenis@gnu.org>
11247
11248 * configure.in: Add check for _etext.
11249 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11250 available.
11251 * config.in, configure: regenerated.
11252
11253 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
11254
11255 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11256
11257 2003-02-14 Andrew Cagney <ac131313@redhat.com>
11258
11259 * main.c (tui_version): Delete variable.
11260 (captured_main): When --tui, set interpreter_p to "tui" instead of
11261 enabling tui_version.
11262 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11263 tui_version.
11264 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11265 * cli/cli-cmds.c (disassemble_command): Ditto.
11266 * defs.h (tui_version): Delete declaration.
11267 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11268 (tui-interp.o): Add rules.
11269 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11270
11271 2003-02-14 Christopher Faylor <cgf@redhat.com>
11272
11273 * win32-nat.c (register_loaded_dll): Correctly set address range for
11274 just-loaded dll.
11275
11276 2003-02-12 Jason Molenda (jmolenda@apple.com)
11277
11278 * symmisc.c (print_objfile_statistics): Include information about
11279 the number of psymtabs and symtabs in each object file.
11280
11281 2003-02-13 Keith R Seitz <keiths@redhat.com>
11282
11283 * main.h (struct captured_main_args): Add interpreter_p.
11284 * main.c (captured_main): Initialize interpreter_p from context.
11285 * gdb.c (main): Set interpreter_p argument.
11286 * Makefile.in (gdb.o): Add dependency for interps.h.
11287
11288 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11289
11290 * event-top.c (cli_command_loop): Delete declaration.
11291 (_initialize_event_loop): Delete function setting event_loop_hook.
11292 * event-top.h (cli_command_loop): Declare. Update copyright.
11293 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11294 * interps.c (current_interp_command_loop): When event_loop_p, call
11295 cli_command_loop.
11296
11297 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11298
11299 * interps.h (interp_command_loop_ftype): Change return type to
11300 void.
11301
11302 2003-02-12 Michal Ludvig <mludvig@suse.cz>
11303
11304 * x86-64-tdep.c (x86_64_extract_return_value)
11305 (x86_64_store_return_value): Use regcache instead of regbuf.
11306 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11307 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11308
11309 2003-02-11 Andrew Cagney <ac131313@redhat.com>
11310
11311 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11312 * aclocal.m4: Regenerate.
11313 * configure: Regenerate.
11314
11315 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11316 TCL_LD_SEARCH_FLAGS.
11317
11318 2003-02-10 Michal Ludvig <mludvig@suse.cz>
11319
11320 * dwarf2cfi.c: Reindented.
11321
11322 2003-02-09 Andrew Cagney <ac131313@redhat.com>
11323
11324 * interps.c (clear_interpreter_hooks): Convert function definition
11325 to ISO C.
11326
11327 2003-02-07 David Carlton <carlton@math.stanford.edu>
11328
11329 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11330
11331 2003-02-07 Kevin Buettner <kevinb@redhat.com>
11332
11333 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11334 (struct type): ...to here.
11335 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11336 field.
11337 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11338 (replace_type): Set length on all type variants for a given type.
11339
11340 2003-02-07 Andrew Cagney <ac131313@redhat.com>
11341
11342 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11343 <sys/stat.h>.
11344 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
11345
11346 2003-02-06 Andrew Cagney <ac131313@redhat.com>
11347
11348 * Makefile.in (symm-nat.o): Update dependencies.
11349 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11350 (lynx-nat.o, ia64-linux-nat.): Ditto.
11351 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11352 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11353 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11354
11355 * Makefile.in (inflow_h): Define.
11356 (procfs.o, inflow.o, procfs.o): Update dependencies.
11357 * inftarg.c (child_stop): Delete extern declaration of
11358 inferior_process_group. Include "inflow.h".
11359 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11360 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11361 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11362 (our_process_group, inferior_process_group): Extern declarations.
11363
11364 * procfs.c: Include "gdb_assert.h".
11365
11366 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11367 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11368 * jv-typeprint.c (java_type_print_base): Ditto.
11369 * typeprint.c (typedef_print): Eliminate STREQ.
11370 * cli/cli-script.c (define_command, define_command): Ditto.
11371 * main.c (captured_main): Ditto.
11372 * values.c (lookup_internalvar): Ditto.
11373 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11374 within `if' conditional.
11375 * linespec.c (decode_line_2): Ditto.
11376 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11377 (bfd_openw_with_cleanup): Ditto.
11378
11379 2003-02-07 Mark Kettenis <kettenis@gnu.org>
11380
11381 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11382 legacy_extract_return_value and store_return_value to
11383 legacy_return_value.
11384
11385 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11386
11387 * win32-nat.c (get_relocated_section_addrs): New function. Find
11388 section load addresses for symbol handling in relocated DLLs.
11389 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11390
11391 2003-02-05 Fred Fish <fnf@intrinsity.com>
11392
11393 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11394 '=' and '!='.
11395 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11396 with '&' and '=='.
11397 (angel_RDI_info): Ditto.
11398 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11399 with '&' and '!='.
11400 (threads_continue_all_with_signals): Ditto.
11401
11402 2003-02-05 Jim Ingham <jingham@apple.com>
11403 Keith Seitz <keiths@redhat.com>
11404 Elena Zannoni <ezannoni@redhat.com>
11405 Andrew Cagney <ac131313@redhat.com>
11406
11407 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11408 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11409 (SUBDIR_MI_OBS): Add "mi-interp.o".
11410 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11411 (SFILES): Add "interps.c".
11412 (COMMON_OBS): Add "interps.o".
11413 (interps_h, mi_main_h): Define.
11414 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11415 (mi-main.o, main.o, event-top.o): Update dependencies.
11416 * cli/cli-interp.c: New file.
11417 * interps.h, interps.c: New files.
11418 * top.c: (gdb_init): Don't install the default interpreter, handed
11419 by captured_main.
11420 * main.c: Include "interps.h".
11421 (interpreter_p): Note that it should malloc'ed.
11422 (captured_command_loop): Call current_interp_command_loop.
11423 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11424 xfree and xstrdup when updating interpreter_p. Install the
11425 default interpreter. Add hack to stop mi1's copyright notice
11426 being encoded.
11427 * event-top.h (gdb_setup_readline): Declare.
11428 (gdb_disable_readline): Declare.
11429 * event-top.c: Include "interps.h".
11430 (display_gdb_prompt): Call current_interp_display_prompt_p.
11431 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11432 gdb_stdlog, and gdb_stdtarg.
11433 (_initialize_event_loop): Don't call gdb_setup_readline.
11434 * cli-out.c (cli_out_set_stream): New function.
11435 * cli-out.h (cli_out_set_stream): Declare.
11436
11437 2003-02-06 Mark Kettenis <kettenis@gnu.org>
11438
11439 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11440 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11441 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11442 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11443 config/i386/i386v42mp.mt: Removed.
11444
11445 2003-02-05 Mark Kettenis <kettenis@gnu.org>
11446
11447 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11448 GDB_OSABI_SOLARIS.
11449
11450 2003-02-05 Michael Chastain <mec@shout.net>
11451
11452 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11453 2.12.1 and earlier versions.
11454
11455 2003-02-05 Andrew Cagney <ac131313@redhat.com>
11456
11457 Remove orphaned hosts, targets and files.
11458 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11459 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11460 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11461 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11462 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11463 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11464 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11465 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11466 * config/sparc/tm-sp64sim.h: Delete.
11467 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11468 hosts.
11469 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11470 mips*-dec-mach3* targets.
11471
11472 2003-02-04 Michael Chastain <mec@shout.net>
11473
11474 * NEWS: Fix typo: sepcifying -> specifying.
11475
11476 2003-02-04 Michael Chastain <mec@shout.net>
11477
11478 * dwarfread.c: Add documentation on the state of dwarf-1,
11479 looking towards obsoletion.
11480
11481 2003-02-03 Michael Chastain <mec@shout.net>
11482
11483 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11484 gdb/testsuite/gdb.c++/pr-1023.exp.
11485
11486 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11487
11488 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11489 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11490
11491 * utils.c (init_page_info): Delete reference to MPW in comments.
11492 * main.c (captured_main): Delete #ifdef MPW.
11493
11494 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11495
11496 * NEWS: Note that the m32r-*-elf* is obsolete.
11497 * monitor.c (monitor_expect): Obsolete reference to m32r.
11498 * configure.tgt: Mark m32r-*-elf* as obsolete.
11499 * MAINTAINERS: Mark m32k as obsolete.
11500 * m32r-rom.c: Obsolete file.
11501 * config/m32r/m32r.mt: Obsolete file.
11502 * config/m32r/tm-m32r.h: Obsolete file.
11503 * m32r-stub.c: Obsolete file.
11504 * m32r-tdep.c: Obsolete file.
11505
11506 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11507
11508 * NEWS: Mention that the z8k-zilog-none is obsolete.
11509 * MAINTAINERS: Mark z8k as obsolete.
11510 * configure.tgt: Obsolete the z8k-*-coff* target.
11511 * config/z8k/z8k.mt: Obsolete file.
11512 * config/z8k/tm-z8k.h: Obsolete file.
11513 * z8k-tdep.c: Obsolete file.
11514
11515 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11516
11517 * NEWS: Mention that the mn10200-elf is obsolete.
11518 * configure.tgt: Obsolete mn10200-*-* target.
11519 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11520 mention that the mn10200 is obsolete.
11521 * breakpoint.h: Ditto.
11522 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11523 * config/mn10200/mn10200.mt: Obsolete file.
11524 * config/mn10200/tm-mn10200.h: Obsolete file.
11525 * mn10200-tdep.c: Obsolete file.
11526
11527 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11528
11529 * MAINTAINERS: Mark h8500 as obsolete.
11530 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11531 * findvar.c (value_from_register): Ditto.
11532 * h8500-tdep.c: Mark file as obsolete.
11533 * config/h8500/h8500.mt: Ditto.
11534 * config/h8500/tm-h8500.h: Ditto.
11535 * NEWS: Mention that h8500 is obsolete.
11536
11537 2003-02-04 David Carlton <carlton@math.stanford.edu>
11538
11539 * objfiles.c (allocate_objfile): Always set name. Add comment at
11540 start of function.
11541 * jv-lang.c (get_dynamics_objfile): Add comment.
11542
11543 2003-02-04 David Carlton <carlton@math.stanford.edu>
11544
11545 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11546 * printcmd.c (build_address_symbolic): Replace uses of
11547 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11548 SYMBOL_NAME, and asm_demangle.
11549 Update copyright.
11550
11551 2003-02-04 David Carlton <carlton@math.stanford.edu>
11552
11553 * linespec.c (decode_compound): Extract code into
11554 lookup_prefix_sym.
11555 (lookup_prefix_sym): New function.
11556
11557 2003-02-04 David Carlton <carlton@math.stanford.edu>
11558
11559 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11560 FLOAT_COERCION_BADNESS.
11561 * gdbtypes.c (rank_one_type): Replace all uses of
11562 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11563
11564 2003-02-04 Jim Blandy <jimb@redhat.com>
11565
11566 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11567 section, let dwarf_macinfo_section point to it, not
11568 dwarf_loc_section.
11569
11570 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11571
11572 Pointed out by Anton Blanchard <anton@samba.org>.
11573 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11574 (ppc_linux_at_sigtramp_return_path): Use it.
11575
11576 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11577
11578 * defs.h (streq): Add prototype.
11579 * utils.c (streq): New function.
11580
11581 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11582 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11583 * mdebugread.c (new_symbol): Likewise.
11584 * stabsread.c (define_symbol): Likewise.
11585 * coffread.c (process_coff_symbol): Likewise.
11586 * dwarfread.c (new_symbol): Likewise.
11587
11588 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11589 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11590 here.
11591 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11592 SYMBOL_INIT_DEMANGLED_NAME.
11593 * objfiles.c: Include "hashtab.h".
11594 (allocate_objfile): Call htab_set_functions_ex for the
11595 demangled_names_hash.
11596 (free_objfile): Call htab_delete for the demangled_names_hash.
11597 * objfiles.h (struct htab): Add declaration.
11598 (struct objfile): Add demangled_names_hash.
11599 * symfile.c: Include "hashtab.h".
11600 (reread_symbols): Call htab_delete for the demangled_names_hash.
11601 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11602 SYMBOL_NAME in the bcache.
11603 * symtab.c: Include "hashtab.h". Update comments.
11604 (create_demangled_names_hash, symbol_set_names): New functions.
11605 (symbol_find_demangled_name): New function, broken out from
11606 symbol_init_demangled_names.
11607 (symbol_init_demangled_names): Use it.
11608 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11609 (SYMBOL_SET_NAMES): New macro.
11610 (symbol_set_names): Add prototype.
11611
11612 2003-02-03 Jim Blandy <jimb@redhat.com>
11613
11614 Use a single, consistent representation for an empty minimal
11615 symbol table in an objfile.
11616 * objfiles.c (terminate_minimal_symbol_table): New function.
11617 (allocate_objfile): Call it.
11618 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11619 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11620 non-NULL.
11621 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11622 objfile has minimal symbols, compare minimal_symbol_count to zero,
11623 instead of comparing msymbols with NULL.
11624 * objfiles.c (have_minimal_symbols): Same.
11625 * solib-sunos.c (solib_add_common_symbols): Call
11626 terminate_minimal_symbol_table.
11627 * symfile.c (reread_symbols): Same.
11628
11629 2003-02-03 Kevin Buettner <kevinb@redhat.com>
11630
11631 * s390-tdep.c (s390_address_class_type_flags)
11632 (s390_address_class_type_flags_to_name)
11633 (s390_address_class_name_to_type_flags): New functions.
11634 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11635 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11636
11637 2003-02-03 Michael Snyder <msnyder@redhat.com>
11638
11639 * arm-tdep.c: Fix spell-o in comment.
11640
11641 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11642
11643 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11644 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11645 error messages to contain BFD filename.
11646
11647 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11648
11649 Fix PR gdb/742 gdb/743 gdb/877
11650 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11651 (do_mixed_source_and_assembly): Use
11652 make_cleanup_ui_out_tuple_begin_end and
11653 make_cleanup_ui_out_tuple_begin_end.
11654 (do_mixed_source_and_assembly): Ditto.
11655 * thread.c (do_captured_list_thread_ids): Ditto.
11656 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11657 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11658 ui_out_tuple_end): Delete prototypes.
11659 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11660 ui_out_list_end, ui_out_tuple_end): Delete.
11661
11662 From Kevin Buettner <kevinb@redhat.com>:
11663 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11664 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11665 (do_cleanup_table_end): New functions.
11666 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11667 Use cleanups to invoke_ui_out_tuple_end().
11668 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11669 * cli/cli-setshow.c (cmd_show_list): Use
11670 make_cleanup_ui_out_tuple_begin_end.
11671
11672 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11673
11674 * frame.c (frame_unwind_register): New function.
11675 (frame_unwind_unsigned_register): Use.
11676 (frame_unwind_signed_register): Use.
11677 (frame_read_register): New function.
11678 * frame.h (frame_unwind_register): Declare.
11679 (frame_read_register): Declare.
11680
11681 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11682 and frame_unwind_register instead of read_memory, write_register
11683 and deprecated_write_register_bytes.
11684
11685 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11686
11687 * frame.h: Note that namelen can be negative.
11688 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11689 NAME's length.
11690
11691 * NEWS: Mention that the d10v's `regs' command is deprecated.
11692 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11693 (d10v_print_registers_info): New function.
11694 (show_regs): Call d10v_print_registers_info.
11695 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11696
11697 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11698
11699 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11700 lost in the previous patch.
11701
11702 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11703
11704 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11705 * stack.c (print_frame_info_base): Output complete FRAME tuple
11706 for synthesized frames.
11707
11708 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11709
11710 * mips-nat.c (zerobuf): Delete.
11711 (fetch_inferior_registers): Alloc local zerobuf.
11712 (fetch_core_registers): Alloc local zerobuf.
11713 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11714 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11715 * thread-db.c (thread_db_store_registers): Ditto.
11716 * sh-tdep.c (sh_do_register): Ditto.
11717 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11718 * remote-sim.c (gdbsim_store_register): Ditto.
11719 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11720 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11721 * monitor.c (monitor_supply_register): Ditto.
11722 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11723 * mips-nat.c (fetch_inferior_registers): Ditto.
11724 * m68klinux-nat.c (fetch_register): Ditto.
11725 * lynx-nat.c (fetch_inferior_registers): Ditto.
11726 (fetch_inferior_registers): Ditto.
11727 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11728 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11729 (hpux_thread_store_registers): Ditto.
11730 * hppah-nat.c (fetch_register): Ditto.
11731 * hppab-nat.c (fetch_register): Ditto.
11732 * hppa-tdep.c (pa_register_look_aside): Ditto.
11733 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11734 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11735
11736 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11737
11738 * gdbarch.sh: Explictly specify all method levels. When a
11739 variable with an empty level, provide a non-multi-arch default.
11740 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11741 * gdbarch.h: Re-generate.
11742 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11743 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11744
11745 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11746
11747 * defs.h (host_pointer_to_address): Delete declaration.
11748 (address_to_host_pointer): Delete declaration.
11749 * utils.c (host_pointer_to_address): Delete function.
11750 (address_to_host_pointer): Delete function.
11751 * procfs.c (procfs_address_to_host_pointer): New function.
11752 * procfs.c (proc_set_watchpoint): Use.
11753 (procfs_can_use_hw_breakpoint): Update comments.
11754 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11755 (som_solib_add): Use.
11756 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11757 * hppa-tdep.c (unwind_command): Use.
11758
11759 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11760
11761 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11762 strlen d_name.
11763
11764 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11765 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11766 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11767 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11768 (define_symbol): Update.
11769 * symfile.c (generic_load): Remove references to nindy.
11770 * symtab.c: Remove references to nindy.
11771
11772 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11773
11774 * infcmd.c (print_float_info): Delete code conditional on
11775 FLOAT_INFO.
11776 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11777 * config/m68k/nm-apollo68b.h: Ditto.
11778 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11779 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11780 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11781
11782 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11783
11784 * config/i386/tm-i386os9k.h: Removed.
11785
11786 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11787 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11788 they're identical to i[3456]86-*-sysv* now.
11789 * config/i386/i386v32.mh: Removed.
11790 * config/i386/xm-i386v32.h: Removed.
11791 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11792
11793 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11794
11795 * config/i386/i386dgux.mh: Removed.
11796 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11797
11798 * configure.in: Fix typo.
11799 * configure: Regenerated.
11800
11801 2003-01-31 David Carlton <carlton@math.stanford.edu>
11802
11803 * dwarf2read.c (dwarf2_locate_sections): Set
11804 dwarf_ranges_section.
11805
11806 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11807
11808 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11809 * utils.c: Update comments documenting legitimate uses of PTR.
11810
11811 * utils.c: Re-indent.
11812
11813 * config/djgpp/fnchange.lst: Delete nindy files.
11814 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11815 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11816 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11817 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11818 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11819 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11820 * Makefile.in (init.c): Remove nindy references.
11821 (saber_gdb): Delete rule.
11822 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11823 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11824 and a68v-nat.c.
11825 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11826 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11827 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11828 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11829 nindy-share/stop.h.
11830 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11831 * saber.suppress: Delete file.
11832
11833 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11834
11835 * dbxread.c (stabs_data): New static variable.
11836 (fill_symbuf): Support an in-memory buffer for stabs data.
11837 (stabs_seek): New function.
11838 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11839 (read_ofile_symtab): Use stabs_seek.
11840 (elfstab_build_psymtabs): Take an asection* instead of
11841 an offset and size. Relocate the stabs data if necessary.
11842 Save the section* for dbx_psymtab_to_symtab.
11843 * dwarf2read.c: Add section variables for each debug section.
11844 (dwarf2_locate_sections): Fill them in.
11845 (dwarf2_read_section): Take an asection* argument.
11846 Relocate the section contents if necessary.
11847 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11848 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11849 it to dwarf2_read_section.
11850 (dwarf2_build_frame_info): Update callers.
11851 * elfread.c (elf_symfile_read): Update call to
11852 elfstab_build_psymtabs.
11853 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11854 (DBX_STAB_SECTION): New macro.
11855 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11856 * symfile.c (symfile_dummy_outputs): New function.
11857 (symfile_relocate_debug_section): New function.
11858 * symfile.h (symfile_relocate_debug_section): Add prototype.
11859
11860 2003-01-31 Richard Henderson <rth@redhat.com>
11861
11862 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11863 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11864 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11865 * alpha-tdep.c (alpha_register_name): Add "unique".
11866 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11867 (ALPHA_UNIQUE_REGNUM): New.
11868 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11869
11870 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11871
11872 * README: Remove reference to Ericsson 1800 monitor.
11873 * Makefile.in (remote-es.o): Delete rule.
11874 (ALLDEPFILES): Delete remote-es.c.
11875 * remote-es.c: Delete file.
11876 * config/m68k/es1800.mt: Delete file.
11877 * config/djgpp/fnchange.lst: Update.
11878 * configure.tgt: Delete m68*-ericsson-* target.
11879
11880 2003-01-31 Adam Fedor <fedor@gnu.org>
11881
11882 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11883 Remove duplicate/shadowing variable of same name.
11884
11885 2003-01-30 Jim Blandy <jimb@redhat.com>
11886
11887 * symfile.c (find_separate_debug_file): Assert that the objfile's
11888 directory name we compute ends with a slash, and then assume that
11889 that's so everywhere we use it.
11890
11891 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11892
11893 * valops.c (value_assign): Flush frame cache after stores to memory
11894 also.
11895
11896 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11897
11898 * Makefile.in (mon960-rom.o): Delete rule.
11899 * mon960-rom.c: Delete file.
11900
11901 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11902
11903 * d10v-tdep.c: Include "frame-unwind.h".
11904 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11905 list.
11906 (next_addr, uses_frame): Delete.
11907 (struct d10v_unwind_cache): Define.
11908 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11909 Use info instead of next_addr and uses_frame globals.
11910 (d10v_frame_init_saved_regs): Delete function.
11911 (d10v_init_extra_frame_info): Delete function.
11912 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11913 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11914 init_frame_pc or frame_saved_pc.
11915 (d10v_pop_frame): Delete function.
11916 (do_d10v_pop_frame): Delete function.
11917 (d10v_frame_chain): Delete function.
11918 (d10v_frame_chain_valid): Delete function.
11919 (d10v_frame_pc_unwind): New function.
11920 (d10v_frame_id_unwind): New function.
11921 (saved_regs_unwinder): New function.
11922 (d10v_frame_register_unwind): New function.
11923 (d10v_frame_pop): New function.
11924 (d10v_frame_unwind): New variable.
11925 (d10v_frame_p): New function.
11926 (d10v_frame_saved_pc): Delete function.
11927 * Makefile.in (d10v-tdep.o): Update dependencies.
11928
11929 2003-01-30 J. Brobecker <brobecker@gnat.com>
11930
11931 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11932 causing some regressions due to a change in the default value
11933 for this macro.
11934
11935 2003-01-29 Richard Henderson <rth@redhat.com>
11936 Elena Zannoni <ezannoni@redhat.com>
11937 Daniel Jacobowitz <drow@mvista.com>
11938
11939 Fix PR gdb/961.
11940 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11941 variables.
11942 (RANGES_SECTION): New.
11943 (dwarf_ranges_buffer): New variable.
11944 (struct comp_unit_head): Add member "die".
11945 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11946 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11947 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11948 (dwarf2_locate_sections): Likewise.
11949 (dwarf2_build_psymtabs): Read .debug_ranges.
11950 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11951 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11952 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11953 Look for DW_AT_ranges and return the bounding box.
11954
11955 2003-01-29 Brian Ford <ford@vss.fsi.com>
11956
11957 * win32-nat.c (cygwin_pid): Removed as unused.
11958 (child_attach): Try fall back to Cygwin pid.
11959
11960 2003-01-29 Jim Blandy <jimb@redhat.com>
11961
11962 * objfiles.h (struct objfile): Doc fix.
11963
11964 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11965
11966 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11967 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11968 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11969 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11970 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11971 (FRAME_SAVED_PC): Change to a function with predicate.
11972 * gdbarch.h, gdbarch.c: Re-generate.
11973
11974 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11975
11976 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11977
11978 * complaints.c (complain): Delete function.
11979 * complaints.h (struct deprecated_complaint): Delete definition.
11980 (complain): Delete declaration.
11981
11982 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11983
11984 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11985 dummy frames.
11986
11987 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11988
11989 * sentinel-frame.h, sentinel-frame.c: New files.
11990 * Makefile.in (frame.o): Update dependencies.
11991 (SFILES): Add sentinel-frame.c.
11992 (sentinel_frame_h): Define.
11993 (COMMON_OBS): Add sentinel-frame.o.
11994 (sentinel-frame.o): Specify dependencies.
11995 * frame.c: Include "sentinel-frame.h".
11996 (frame_register_unwind): Rewrite assuming that there is always a a
11997 ->next frame.
11998 (frame_register, generic_unwind_get_saved_register): Ditto.
11999 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12000 (create_sentinel_frame, unwind_to_current_frame): New functions.
12001 (get_current_frame): Rewrite using create_sentinel_frame and
12002 unwind_to_current_frame. When possible, always create a frame.
12003 (create_new_frame): Set next to the sentinel frame.
12004 (get_next_frame): Rewrite. Don't go below the level 0 frame.
12005 (deprecated_update_frame_pc_hack): Update the next frame's PC and
12006 ID cache when necessary.
12007 (frame_saved_regs_id_unwind): Use frame_relative_level.
12008 (deprecated_generic_get_saved_register): Use frame_relative_level,
12009 get_frame_saved_regs, get_frame_pc, get_frame_base and
12010 get_next_frame.
12011 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12012 frame_register.
12013
12014 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12015
12016 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12017
12018 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12019
12020 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12021 (maintenance_set_profile_cmd): Use error () instead of warning ().
12022
12023 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12024
12025 * configure.in: Check that -pg works if using --enable-profiling.
12026 Check for monstartup and _mcleanup regardless of --enable-profiling.
12027 * maint.c: Check for monstartup and _mcleanup before using them.
12028 * config.in: Regenerated.
12029 * configure: Regenerated.
12030
12031 2003-01-24 Nick Clifton <nickc@redhat.com>
12032
12033 * Add sh2e support:
12034
12035 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12036
12037 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12038 (sh2e_show_regs): New.
12039 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12040 * config/sh/tm-sh.h: Added sh2e to comments.
12041
12042 2003-01-23 Jim Blandy <jimb@redhat.com>
12043
12044 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12045 symbols found)" message here; we haven't checked for a separate
12046 debug info file yet, so we don't know yet.
12047 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12048 we've looked everywhere. Also, there's no need to print a special
12049 message when we're loading the separate debug info file: the one
12050 symbol_file_add prints is fine.
12051
12052 2003-01-23 Alexander Larsson <alexl@redhat.com>
12053 Jim Blandy <jimb@redhat.com>
12054
12055 Add support for executables whose debug info has been separated
12056 out into a separate file, leaving only a link behind.
12057 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12058 and separate_debug_objfile_backlink.
12059 (put_objfile_before): New declaration.
12060 * symfile.c: #include "filenames.h".
12061 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12062 debug info in a separate file, read that, too. Save the addrs
12063 argument, so we can use it again to read the separated debug info;
12064 syms_from_objfile modifies the table we pass it.
12065 (reread_symbols): After re-reading an objfile, call
12066 reread_separate_symbols to refresh its separate debug info
12067 objfile, if it has one.
12068 (reread_separate_symbols, find_separate_debug_file,
12069 get_debug_link_info, separate_debug_file_exists): New functions.
12070 (debug_file_directory): New global var.
12071 (_initialize_symfile): Initialize debug_file_directory, and
12072 provide the new `set debug-file-directory' command to let the user
12073 change it.
12074 * objfiles.c (free_objfile): If this objfile has its debug info in
12075 a separate objfile, free that one too. If this is itself a
12076 separate debug info objfile, clear our parent's backlink.
12077 (put_objfile_before): New function.
12078 * utils.c (gnu_debuglink_crc32): New function.
12079 * defs.h (gnu_debuglink_crc32): New declaration.
12080 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12081 * configure.in: Handle --with-separate-debug-dir config option.
12082 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12083 * acconfig.h (DEBUGDIR): New macro.
12084 * configure, aclocal.m4, config.in: Regenerated.
12085
12086 2003-01-22 Jim Blandy <jimb@redhat.com>
12087
12088 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12089 like the old symbol_file_add, but taking new arguments: you can
12090 now pass in either a `struct section_addr_info' list to say where
12091 each section is loaded, or a `struct section_offsets' table. Pass
12092 these new arguments through to syms_from_objfile as appropriate.
12093 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
12094 with the appropriate quiescent values for the new arguments.
12095
12096 * symfile.c: #include "gdb_assert.h".
12097 (syms_from_objfile): Add the ability to pass in a section offset
12098 table directly, as an alternative to the section_addr_info table.
12099 Document arguments better.
12100 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12101 * symfile.h (syms_from_objfile): Update declaration.
12102 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12103 syms_from_objfile.
12104 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12105
12106 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
12107
12108 Original patch by Tom Tromey <tromey@cygnus.com> and
12109 Jason Molenda <jmolenda@apple.com>.
12110 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12111 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12112 * NEWS: Mention profiling.
12113 * configure.in (--enable-gdbtk): Fix typo.
12114 (--enable-profiling): New. Set PROFILE_CFLAGS.
12115 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12116 Fill in function.
12117 (profiling_state): New variable.
12118 (mcleanup_wrapper): New function.
12119 (_initialize_maint): Remove NOTYET, fix call to
12120 add_setshow_boolean_cmd for "maint set profile".
12121 * configure: Regenerated.
12122
12123 2003-01-21 Martin M. Hunt <hunt@redhat.com>
12124
12125 * Makefile.in (install-gdbtk): Install PNG images too.
12126
12127 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12128
12129 * exec.c (text_start): Delete global variable.
12130 (exec_file_attach): Make text_start local to the function.
12131 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12132 * valops.c (hand_function_call): Delete code that handles
12133 BEFORE_TEXT_END and AFTER_TEXT_END.
12134 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12135 of CALL_DUMMY_LOCATION.
12136 * gdbarch.c: Regenerate.
12137 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12138 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12139 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12140 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12141 (text_end): Delete extern declaration.
12142
12143 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12144
12145 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12146 * blockframe.c (backtrace_below_main): Move to "frame.c".
12147 (frame_chain_valid): Delete check for backtrace_below_main.
12148 (_initialize_blockframe): Delete initialization, move ``set
12149 backtrace-below-main'' command to "frame.c".
12150 (do_flush_frames_sfunc): Delete function.
12151 * frame.c: Include "command.h" and "gdbcmd.h".
12152 (frame_type_from_pc): New function.
12153 (create_new_frame): Use frame_type_from_pc.
12154 (legacy_get_prev_frame): New function.
12155 (get_prev_frame): Rewrite. When an old style frame, call
12156 legacy_get_prev_frame. Otherwize, unwind the PC first.
12157 (_initialize_frame): Add ``set backtrace-below-main'' command.
12158 * Makefile.in (frame.o): Update dependencies.
12159
12160 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12161
12162 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12163 DEPRECATED_REGISTERS_INFO.
12164
12165 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12166
12167 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12168 Maintainers'. Update `Various Maintainers'.
12169
12170 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12171
12172 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12173 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12174 Suppress actual parameters when `-'.
12175 * gdbarch.h, gdbarch.c: Regenerate.
12176
12177 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12178
12179 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12180 code handling dummy frames.
12181
12182 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12183
12184 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12185 (struct frame_unwind): Add field pop.
12186 * frame.h (frame_pop): Declare.
12187 * frame.c (frame_saved_regs_pop): New function.
12188 (trad_frame_unwinder): Add frame_saved_regs_pop.
12189 (frame_pop): New function.
12190 * dummy-frame.c (dummy_frame_pop): New function.
12191 (discard_innermost_dummy): New function.
12192 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12193 (dummy_frame_unwind): Add dummy_frame_pop.
12194 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12195 * valops.c (hand_function_call): Ditto.
12196 * stack.c (return_command): Ditto.
12197
12198 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12199
12200 * cris-tdep.c: Fix function declaration indentation.
12201 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12202 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12203 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12204 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12205 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12206 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12207
12208 2003-01-18 Michael Chastain <mec@shout.net>
12209
12210 * README (Unpacking and Installation -- quick overview):
12211 Warn against ".../gdb-5.3/gdb/configure".
12212
12213 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12214
12215 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12216 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12217 (struct frame_unwind): Declare opaque.
12218 (dummy_frame_p): Declare function.
12219 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12220 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12221 * dummy-frame.c: Include "frame-unwind.h".
12222 (dummy_frame_p): New function.
12223 (dummy_frame_unwind): New variable.
12224 * frame.c: Include "frame-unwind.h".
12225 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12226 to use the new unwind field.
12227 (set_unwind_by_pc): Delete function.
12228 (create_new_frame, get_prev_frame): Set unwind field using
12229 frame_unwind_find_by_pc.
12230 (trad_frame_unwind, trad_frame_unwinder): New variables.
12231 * frame.h (trad_frame_unwind): Declare variable.
12232 (frame_id_unwind_ftype): Delete declaration.
12233 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12234 (struct frame_unwind): Declare opaque.
12235 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12236 register_unwind with a single unwind pointer.
12237 * frame-unwind.h, frame-unwind.c: New files.
12238 * Makefile.in (SFILES): Add frame-unwind.c.
12239 (frame_unwind_h): Define.
12240 (COMMON_OBS): Add frame-unwind.o.
12241 (frame-unwind.o): Specify dependencies.
12242 (frame.o, dummy-frame.o): Update dependencies.
12243
12244 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12245
12246 * ada-valprint.c: Eliminate PTR.
12247 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12248 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12249 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12250 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12251 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12252 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12253 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
12254
12255 2003-01-17 Andrew Cagney <ac131313@redhat.com>
12256
12257 * main.c (captured_main): Don't use PTR.
12258 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12259 * gdbtypes.c (lookup_primitive_typename): Ditto.
12260 (lookup_struct_elt_type): Ditto.
12261 * f-valprint.c (info_common_command): Ditto.
12262 (list_all_visible_commons): Ditto.
12263 * jv-typeprint.c (java_type_print_base): Ditto.
12264
12265 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12266 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12267 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12268 i386-interix-nat.c and i386-interix-tdep.c. Rename
12269 m68klinux-nat.c and m68klinux-tdep.c. Rename
12270 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12271 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12272 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12273 * main.c (captured_main): Use xfree, not free.
12274
12275 2003-01-16 Andrew Cagney <ac131313@redhat.com>
12276
12277 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12278 ID back using a parameter.
12279 * frame.c (frame_id_unwind): Update call.
12280 (frame_saved_regs_id_unwind): Update.
12281 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12282 * dummy-frame.h (struct frame_id): Add opaque declaration.
12283 (dummy_frame_id_unwind): Update declaration.
12284
12285 2003-01-15 Andrew Cagney <ac131313@redhat.com>
12286
12287 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12288
12289 2003-01-15 Stephen P. Smith <ischis2@cox.net>
12290
12291 * MAINTAINERS (Stephen P. Smith): Updated email address.
12292
12293 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
12294
12295 Fix PR gdb/898
12296 * breakpoint.c (until_break_command): Add new argument. Use it to
12297 decide whether to stop only at the current frame or not.
12298 * breakpoint.h (until_break_command): Update prototype.
12299 * infcmd.c (until_command): Add new argument to until_break_command
12300 call.
12301 (advance_command): New function.
12302 (_initialize_infcmd): Update help string for 'until' command.
12303 Add new 'advance' command.
12304
12305 2003-01-14 David Carlton <carlton@math.stanford.edu>
12306
12307 * linespec.c (decode_line_1): Normalize comments.
12308 (set_flags): Ditto.
12309 (locate_first_half): Ditto.
12310 (decode_compound): Ditto.
12311 (symtab_from_filename): Ditto.
12312 (decode_all_digits): Ditto.
12313 (decode_dollar): Ditto.
12314 (find_methods): Ditto.
12315 (find_toplevel_char): Ditto.
12316
12317 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12318
12319 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12320 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12321 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12322 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12323 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12324 * language.c, language.h, m32r-tdep.c: Update copyright.
12325 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12326 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12327 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12328 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12329 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12330 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12331
12332 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12333
12334 * stabsread.h (process_later, resolve_cfront_continuation):
12335 Obsolete.
12336 Update copyright years.
12337 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12338 Update copyright year.
12339 * dbxread.c(struct cont_elem): Obsolete.
12340 (process_later, process_now): Obsolete functions.
12341 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12342 Update copyright year.
12343 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12344 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12345 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12346 (parse_partial_symbols): Obsolete cfront support.
12347 * stabsread.c
12348 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12349 macros.
12350 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12351 read_cfront_baseclasses, read_cfront_member_functions,
12352 resolve_cfront_continuation,read_cfront_static_fields,
12353 copy_cfront_struct_fields): Obsolete functions.
12354 (define_symbol, read_one_struct_field): Obsolete cfront support.
12355 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12356 Update Copyright year.
12357
12358 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12359
12360 * stack.c (print_frame_info, print_stack_frame_base_stub,
12361 print_stack_frame_base, show_and_print_stack_frame_stub,
12362 show_and_print_stack_frame, print_only_stack_frame_stub,
12363 print_only_stack_frame): Delete functions.
12364 (print_stack_frame_stub): Call print_frame_info instead of
12365 print_frame_info_base.
12366 (print_frame_info_base): Rename to print_frame_info.
12367 (backtrace_command_1): Call print_frame_info, instead of
12368 print_frame_info_base.
12369 (current_frame_command): Call print_stack_frame, instead of
12370 print_only_stack_frame.
12371 (frame_command): Call print_stack_frame, instead of
12372 show_and_print_stack_frame.
12373 (up_command): Ditto.
12374 (down_command): Ditto.
12375 * frame.h (print_only_stack_frame): Delete prototype.
12376 * infrun.c (normal_stop): Call print_stack_frame, instead of
12377 show_and_print_stack_frame.
12378 * thread.c (info_threads_command): Call print_stack_frame, instead
12379 of print_only_stack_frame.
12380
12381 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12382
12383 * README (Graphical interface to GDB): Update URL. Point at
12384 gdb/links/.
12385
12386 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12387 version match.
12388
12389 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12390
12391 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12392 lines.
12393
12394 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12395
12396 * thread-db.c (attach_thread): Prototype.
12397 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12398 thread information (ti), and valid flags (th_valid, ti_valid).
12399 (attach_thread): Move target_pid_to_str call to after the thread
12400 is added to GDB's list. Initialize the cache.
12401 (thread_get_info_callback, thread_db_map_id2thr)
12402 (thread_db_get_info): New functions.
12403 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12404 (thread_db_store_registers, thread_db_thread_alive)
12405 (thread_db_get_thread_local_address): Use them.
12406 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12407 of calling error() for threads in unknown state.
12408
12409 (clear_lwpid_callback): New function.
12410 (thread_db_resume): Use it to clear the cache.
12411
12412 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12413
12414 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12415 (resume_callback): Remove dead code.
12416
12417 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12418
12419 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12420 predicate.
12421 * gdbarch.h, gdbarch.c: Regenerate.
12422 * stack.c (frame_info): Only initialize the saved registers when
12423 FRAME_INIT_SAVED_REGS_P.
12424 * frame.c (frame_saved_regs_register_unwind): Assert
12425 FRAME_INIT_SAVED_REGS_P.
12426 (deprecated_generic_get_saved_register): Ditto.
12427
12428 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12429
12430 * source.c (openp): Squelch warning about "filename".
12431
12432 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12433
12434 * source.c (openp): If the file does not exist don't necessarily
12435 search the path.
12436
12437 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12438
12439 Fix PR gdb/872.
12440 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12441 (integer_types_same_name_p): New function.
12442 (rank_one_type): Use it.
12443 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12444
12445 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12446
12447 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12448 variables.
12449 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12450 * configure.in: Add --with-sysroot.
12451 * configure: Regenerated.
12452 * main.c (gdb_sysroot): New variable.
12453 (captured_main): Initialize gdb_sysroot.
12454 * defs.h (gdb_sysroot): New extern declaration.
12455 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12456
12457 2003-01-12 Michael Chastain <mec@shout.net>
12458
12459 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12460
12461 2003-01-12 Michael Chastain <mec@shout.net>
12462
12463 * top.c (print_gdb_version): Bump copyright year to 2003.
12464
12465 2003-01-12 David Carlton <carlton@bactrian.org>
12466
12467 * linespec.c (symtab_from_filename): Rename variable 's' to
12468 'file_symtab'.
12469
12470 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12471
12472 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12473 dummy frame.
12474 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12475
12476 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12477
12478 * d10v-tdep.c: Include "gdb_assert.h".
12479 (d10v_store_return_value): Rewrite to match current interface.
12480 (d10v_extract_struct_value_address): Ditto.
12481 (d10v_extract_return_value): Ditto.
12482 (d10v_gdbarch_init): Set store_restore_value,
12483 extract_struct_value_address and extract_return_value.
12484
12485 2003-01-12 J. Brobecker <brobecker@gnat.com>
12486
12487 * hpread.c (set_namestring): New procedure replacing the
12488 SET_NAMESTRING macro.
12489 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12490 by calls to set_namestring.
12491
12492 2003-01-11 J. Brobecker <brobecker@gnat.com>
12493
12494 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12495 a compilation warning.
12496 (hpread_process_one_debug_symbol): Likewise.
12497
12498 2003-01-10 David Carlton <carlton@math.stanford.edu>
12499
12500 * linespec.c (decode_line_1): Rename variable 's' to
12501 'file_symtab'.
12502 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12503 (decode_dollar): Ditto.
12504 (decode_variable): Ditto.
12505 (symbol_found): Ditto.
12506
12507 2003-01-09 Michael Chastain <mec@shout.net>
12508
12509 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12510
12511 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
12512
12513 * win32-nat.c (set_process_privilege): New function.
12514 (child_attach): Call set_process_privilege() to enable the
12515 SE_DEBUG_NAME user privilege if available in process token.
12516
12517 2003-01-10 J. Brobecker <brobecker@gnat.com>
12518
12519 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12520 compilation error in the previous revision.
12521
12522 2003-01-09 David Carlton <carlton@math.stanford.edu>
12523
12524 * linespec.c: Update copyright.
12525
12526 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
12527
12528 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12529 than inferior_ptid.
12530 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12531
12532 2003-01-09 Andrew Cagney <ac131313@redhat.com>
12533
12534 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12535 Update comments.
12536 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12537 (frame_saved_regs_zalloc): Update.
12538 (frame_saved_regs_register_unwind): Update.
12539 (create_new_frame): Update.
12540 (get_prev_frame): Update.
12541 (frame_extra_info_zalloc): Update.
12542 (deprecated_get_frame_saved_regs): Update.
12543 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12544 * cris-tdep.c: Update comment.
12545
12546 * somsolib.h: Fix function indentation.
12547 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12548 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12549 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12550 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12551 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12552
12553 * infrun.c (follow_fork): Use ISO C definition.
12554 * expprint.c (print_subexp): Use xfree instead of free.
12555 * charset.c: Include "gdb_string.h" instead of <string.h>.
12556 (register_iconv_charsets): Use ISO C definition.
12557 (host_charset, target_charset): Ditto.
12558 * Makefile.in (charset.o): Update dependencies.
12559 (mi-cmd-env.o): Update dependencies.
12560
12561 2003-01-08 Andrew Cagney <cagney@redhat.com>
12562
12563 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12564 get_frame_base.
12565
12566 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12567
12568 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12569 build directories. Save edited gdb output in Mbuild.log. If a
12570 build fails, remove any final GDB executable.
12571
12572 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12573
12574 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12575 replacing hex constants with function names and stripping leading
12576 file name directory prefixes.
12577
12578 2003-01-08 Andrew Cagney <cagney@redhat.com>
12579
12580 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12581 get_frame_base.
12582
12583 2003-01-08 David Carlton <carlton@math.stanford.edu>
12584
12585 * linespec.c (decode_line_1): Move code into decode_variable.
12586 (decode_variable): New function.
12587
12588 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12589
12590 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12591
12592 2003-01-08 Andrew Cagney <cagney@redhat.com>
12593
12594 * cris-tdep.c (cris_frame_init_saved_regs): Use
12595 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12596 saved_regs buffer.
12597 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12598 (sh64_nofp_frame_init_saved_regs): Ditto.
12599 (sh_fp_frame_init_saved_regs): Ditto.
12600 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12601 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12602 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12603 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12604
12605 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12606
12607 * minsyms.c (lookup_minimal_symbol): Update comment.
12608 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12609 (lookup_minimal_symbol_solib_trampoline): Likewise.
12610
12611 2003-01-08 Andrew Cagney <cagney@redhat.com>
12612
12613 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12614 frame_relative_level.
12615
12616 * alpha-tdep.c: Use get_frame_extra_info.
12617 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12618 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12619 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12620 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12621
12622 * alpha-tdep.c: Use get_next_frame.
12623 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12624 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12625 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12626 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12627 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12628 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12629 * xstormy16-tdep.c: Ditto.
12630
12631 2003-01-07 Andrew Cagney <cagney@redhat.com>
12632
12633 * alpha-tdep.c: Use get_frame_base.
12634 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12635 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12636 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12637 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12638 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12639 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12640 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12641 * config/sparc/tm-sparc.h: Ditto.
12642
12643 2003-01-07 Andrew Cagney <cagney@redhat.com>
12644
12645 * frame.c (deprecated_get_frame_context): New function.
12646 (deprecated_set_frame_context): New function.
12647 * frame.h (deprecated_get_frame_context): Declare.
12648 (deprecated_set_frame_context): Declare.
12649 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12650 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12651
12652 2003-01-07 Andrew Cagney <cagney@redhat.com>
12653
12654 * frame.c (deprecated_set_frame_next_hack): New function.
12655 (deprecated_set_frame_prev_hack): New function.
12656 * frame.h (deprecated_set_frame_next_hack): Declare.
12657 (deprecated_set_frame_prev_hack): Declare.
12658 * mcore-tdep.c (analyze_dummy_frame): Use
12659 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12660 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12661
12662 2003-01-07 David Carlton <carlton@math.stanford.edu>
12663
12664 * linespec.c (decode_line_1): Move code into decode_dollar.
12665 (decode_dollar): New function.
12666
12667 2003-01-07 Andrew Cagney <cagney@redhat.com>
12668
12669 * arm-tdep.c (arm_init_extra_frame_info): Use
12670 deprecated_update_frame_base_hack.
12671 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12672 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12673 (fix_frame_pointer): Ditto.
12674 (mn10300_analyze_prologue): Ditto.
12675
12676 2003-01-07 Andrew Cagney <cagney@redhat.com>
12677
12678 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12679 extra_info using frame_extra_info_zalloc.
12680 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12681 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12682 (sh64_init_extra_frame_info): Ditto.
12683 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12684 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12685 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12686 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12687 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12688 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12689 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12690 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12691 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12692 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12693 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12694 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12695
12696 * mn10300-tdep.c (analyze_dummy_frame): Use
12697 deprecated_set_frame_extra_info_hack.
12698 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12699
12700 2003-01-07 J. Brobecker <brobecker@gnat.com>
12701
12702 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12703 class is not scText. These do not define "real" procedures.
12704 (parse_partial_symbols): Likewise.
12705
12706 2003-01-06 Michael Snyder <msnyder@redhat.com>
12707
12708 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12709
12710 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12711
12712 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12713 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12714 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12715 deprecated_frame_xmalloc_with_cleanup.
12716 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12717 deprecated_frame_xmalloc.
12718 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12719 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12720
12721 2003-01-06 Andrew Cagney <cagney@redhat.com>
12722
12723 * x86-64-linux-tdep.c: Include "osabi.h".
12724 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12725
12726 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12727
12728 2003-01-06 Andrew Cagney <cagney@redhat.com>
12729
12730 * MAINTAINERS (Target Instruction Set Architectures): Update
12731 arm-elf. Can be built with -Werror, has been multiarched.
12732
12733 * value.h (unpack_long): Make buffer parameter constant.
12734 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12735 * scm-lang.h (scm_parse): Ditto.
12736 * defs.h (extract_typed_address, extract_address): Ditto.
12737 (extract_long_unsigned_integer): Ditto.
12738 * inferior.h (unsigned_pointer_to_address): Ditto.
12739 (signed_pointer_to_address): Ditto.
12740 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12741 * gdbarch.h, gdbarch.c: Regenerate.
12742 * findvar.c (extract_long_unsigned_integer): Update.
12743 (extract_address): Update.
12744 (extract_typed_address): Update.
12745 (unsigned_pointer_to_address): Update.
12746 * values.c (unpack_long): Update.
12747 (unpack_double): Update.
12748 (unpack_pointer): Update.
12749 (unpack_field_as_long): Update.
12750 * d10v-tdep.c (d10v_pointer_to_address): Update.
12751 * avr-tdep.c (avr_pointer_to_address): Update.
12752 * scm-lang.c (scm_unpack): Update.
12753 * findvar.c (signed_pointer_to_address): Update.
12754
12755 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12756
12757 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12758 since it is in i386-tdep.c.
12759
12760 2003-01-06 J. Brobecker <brobecker@gnat.com>
12761
12762 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12763 failure introduced in the previous change.
12764
12765 2003-01-05 Michael Chastain <mec@shout.net>
12766
12767 * README: Remove references to deleted remote-*.c files:
12768 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12769 remote-nrom.c, remote-os9k.c, remote-udi.c.
12770
12771 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12772
12773 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12774 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12775 i386_get_longjmp_target.
12776
12777 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12778
12779 * arm-tdep.c (prologue_cache): Change to a pointer.
12780 (_initialize_arm_tdep): Allocate prologue_cache.
12781 (check_prologue_cache): Update.
12782 (save_prologue_cache): Update.
12783 (arm_gdbarch_init): Update.
12784
12785 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12786
12787 * stabsread.c (update_method_name_from_physname): Call complaint()
12788 instead of error.
12789
12790 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12791
12792 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12793 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12794 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12795
12796 * blockframe.c: Include "gdbcmd.h" and "command.h".
12797 (backtrace_below_main): New variable.
12798 (file_frame_chain_valid, func_frame_chain_valid)
12799 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12800 (generic_func_frame_chain_valid): Remove functions.
12801 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12802 (_initialize_blockframe): New function.
12803 * Makefile.in (blockframe.o): Update dependencies.
12804 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12805 comment. Call frame_chain_valid ().
12806 * frame.h: Remove old prototypes. Add prototype for
12807 frame_chain_valid and update comments to match.
12808 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12809 Remove old comment.
12810 * gdbarch.h: Regenerated.
12811 * gdbarch.c: Regenerated.
12812
12813 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12814 set_gdbarch_frame_chain_valid.
12815 * avr-tdep.c (avr_gdbarch_init): Likewise.
12816 * cris-tdep.c (cris_gdbarch_init): Likewise.
12817 * frv-tdep.c (frv_gdbarch_init): Likewise.
12818 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12819 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12820 (i386_nw_init_abi): Likewise.
12821 (i386_gdbarch_init): Likewise.
12822 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12823 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12824 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12825 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12826 * mips-tdep.c (mips_gdbarch_init): Likewise.
12827 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12828 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12829 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12830 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12831 * s390-tdep.c (s390_gdbarch_init): Likewise.
12832 * sh-tdep.c (sh_gdbarch_init): Likewise.
12833 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12834 * v850-tdep.c (v850_gdbarch_init): Likewise.
12835 * vax-tdep.c (vax_gdbarch_init): Likewise.
12836 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12837
12838 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12839 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12840 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12841 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12842 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12843 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12844 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12845 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12846
12847 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12848
12849 * Makefile.in (acconfig_h): Remove incorrect macro.
12850 (config_h): Define.
12851 (osabi.o): Update dependencies.
12852 * configure.tgt: Set gdb_osabi based on target triplet.
12853 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12854 * configure: Regenerated.
12855 * config.in: Regenerated.
12856 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12857 (GDB_OSABI_DEFAULT): Define if not already defined.
12858 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12859 (set_osabi_string): New variables.
12860 (gdbarch_register_osabi): Add new OS ABI to
12861 gdb_osabi_available_names.
12862 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12863 (set_osabi, show_osabi): New functions.
12864 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12865
12866 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12867
12868 * arch-utils.c (gdbarch_info_init): Set osabi to
12869 GDB_OSABI_UNINITIALIZED.
12870 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12871 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12872 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12873 * gdbarch.c: Regenerated.
12874 * gdbarch.h: Regenerated.
12875 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12876 there's no BFD.
12877 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12878 * osabi.h (enum gdb_osabi): Move to defs.h.
12879 (gdbarch_init_osabi): Update prototype.
12880 * defs.h (enum gdb_osabi): Moved here.
12881 * Makefile.in: Update dependencies.
12882
12883 * alpha-tdep.h: Don't include "osabi.h".
12884 (struct gdbarch_tdep): Remove osabi member.
12885 * alpha-tdep.c: Include "osabi.h".
12886 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12887 iterate over arches. Update call to gdbarch_init_osabi.
12888 (alpha_dump_tdep): Don't dump osabi.
12889 * alpha-linux-tdep.c: Include "osabi.h".
12890 * alpha-osf1-tdep.c: Include "osabi.h".
12891 * alphafbsd-tdep.c: Include "osabi.h".
12892 * alphanbsd-tdep.c: Include "osabi.h".
12893
12894 * arm-tdep.h: Don't include "osabi.h".
12895 (struct gdbarch_tdep): Remove osabi member.
12896 * arm-tdep.c: Include "osabi.h".
12897 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12898 iterate over arches. Update call to gdbarch_init_osabi.
12899 (arm_dump_tdep): Don't dump osabi.
12900 * arm-linux-tdep.c: Include "osabi.h".
12901 * armnbsd-tdep.c: Include "osabi.h".
12902
12903 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12904 Update call to gdbarch_init_osabi.
12905
12906 * i386-tdep.h: Don't include "osabi.h".
12907 (struct gdbarch_tdep): Remove osabi member.
12908 * i386-tdep.c: Include "osabi.h".
12909 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12910 iterate over arches. Update call to gdbarch_init_osabi.
12911 (i386_dump_tdep): Don't dump osabi.
12912 * i386-linux-tdep.c: Include "osabi.h".
12913 * i386-sol2-tdep.c: Include "osabi.h".
12914 * i386bsd-tdep.c: Include "osabi.h".
12915 * i386gnu-tdep.c: Include "osabi.h".
12916 * i386ly-tdep.c: Include "osabi.h".
12917 * i386nbsd-tdep.c: Include "osabi.h".
12918 * i386obsd-tdep.c: Include "osabi.h".
12919
12920 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12921 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12922 check osabi when iterating over arches. Update call to
12923 gdbarch_init_osabi.
12924 (mips_dump_tdep): Don't dump osabi.
12925
12926 * ns32k-tdep.h: Don't include "osabi.h".
12927 (struct gdbarch_tdep): Remove.
12928 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12929 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12930 allocate tdep. Update call to gdbarch_init_osabi.
12931 (ns32k_dump_tdep): Remove.
12932 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12933 * ns32knbsd-tdep.c: Include "osabi.h".
12934
12935 * ppc-tdep.h: Don't include "osabi.h".
12936 (struct gdbarch_tdep): Remove osabi member.
12937 * rs6000-tdep.c: Include "osabi.h".
12938 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12939 osabi when iterating over arches. Update call to
12940 gdbarch_init_osabi.
12941 (rs6000_dump_tdep): Don't dump osabi.
12942 * ppc-linux-tdep.c: Include "osabi.h".
12943 * ppcnbsd-tdep.c: Include "osabi.h".
12944
12945 * sh-tdep.h: Don't include "osabi.h".
12946 (struct gdbarch_tdep): Remove osabi member.
12947 * sh-tdep.c: Include "osabi.h".
12948 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12949 iterate over arches. Update call to gdbarch_init_osabi.
12950 (sh_dump_tdep): Don't dump osabi.
12951 * shnbsd-tdep.c: Include "osabi.h".
12952
12953 * sparc-tdep.c: Include "osabi.h".
12954 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12955 iterate over arches. Update call to gdbarch_init_osabi.
12956 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12957 tdep structure.
12958
12959 * vax-tdep.h: Don't include "osabi.h".
12960 (struct gdbarch_tdep): Remove.
12961 * vax-tdep.c: Include "osabi.h".
12962 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12963 iterate over arches. Don't allocate tdep. Update call
12964 to gdbarch_init_osabi.
12965 (vax_dump_tdep): Remove.
12966 (_initialize_vax_tdep): Update call to gdbarch_register.
12967
12968 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12969
12970 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12971 entirely.
12972 (breakpoint_re_set_one): Don't fetch the value for a disabled
12973 watchpoint.
12974
12975 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12976
12977 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12978 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12979 (COERCE_FLOAT_TO_DOUBLE): Remove.
12980 * gdbarch.c: Regenerate.
12981 * gdbarch.h: Regenerate.
12982 * Makefile.in: Remove value_h from gdbarch_h.
12983 * valops.c (coerce_float_to_double): New variable.
12984 (default_coerce_float_to_double): Remove.
12985 (standard_coerce_float_to_double): Remove.
12986 (value_arg_coerce): Use coerce_float_to_double.
12987 (_initialize_valops): Add "set coerce-float-to-double".
12988 * value.h (default_coerce_float_to_double): Remove prototype.
12989 (standard_coerce_float_to_double): Remove prototype.
12990
12991 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12992 prototyped.
12993 * mdebugread.c (parse_symbol): Likewise.
12994 * stabsread.c (define_symbol): Mark all functions as prototyped.
12995
12996 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12997 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12998 set_gdbarch_coerce_float_to_double.
12999 * arm-tdep.c (arm_gdbarch_init): Likewise.
13000 * frv-tdep.c (frv_gdbarch_init): Likewise.
13001 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13002 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13003 * mips-tdep.c (mips_gdbarch_init): Likewise.
13004 (mips_coerce_float_to_double): Remove.
13005 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13006 (rs6000_coerce_float_to_double): Remove.
13007 * s390-tdep.c (s390_gdbarch_init): Likewise.
13008 * sh-tdep.c (sh_gdbarch_init): Likewise.
13009 (sh_coerce_float_to_double): Remove.
13010 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13011 (sparc_coerce_float_to_double): Remove.
13012 * v850-tdep.c (v850_gdbarch_init): Likewise.
13013 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13014 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13015 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13016 (hppa_coerce_float_to_double): Remove prototype.
13017 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13018
13019 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13020
13021 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13022
13023 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13024
13025 Suggested by Stewart Brown <sb24@avaya.com>:
13026 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13027 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13028 (c_type_print_varspec_suffix): Likewise.
13029
13030 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13031
13032 * configure.in: Don't set and AC_SUBST SUBDIRS.
13033 * configure: Regenerated.
13034
13035 * configure.in: Remove code dealing with shared libraries.
13036 * Makefile.in: Remove HLDFLAGS and HLDENV.
13037 * configure: Regenerated.
13038
13039 2003-01-04 Andrew Cagney <ac131313@redhat.com>
13040
13041 * frame.c (deprecated_frame_xmalloc): New function.
13042 (deprecated_set_frame_saved_regs_hack): New function.
13043 (deprecated_set_frame_extra_info_hack): New function.
13044 * frame.h (deprecated_frame_xmalloc): Declare.
13045 (deprecated_set_frame_saved_regs_hack): Declare.
13046 (deprecated_set_frame_extra_info_hack): Declare.
13047
13048 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13049
13050 * configure.in: Move code that provides the --enable-gdbtk option
13051 right after the code that handles the --enable-tui option, and
13052 polish it somewhat.
13053 * configure: Regenerated.
13054
13055 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13056 AC_CHECK_FUNCS and remove the old check for pread64.
13057 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13058 * acconfig.h (_GNU_SOURCE): Add.
13059 (HAVE_PREAD64): Remove.
13060 * configure, aclocal.m4, config.in: Regenerated.
13061
13062 2003-01-03 Andrew Cagney <ac131313@redhat.com>
13063
13064 * alpha-tdep.c: Use get_frame_saved_regs.
13065 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13066 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13067 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13068 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13069 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13070
13071 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13072
13073 * configure.in: Remove all use of the SUBDIRS variable; add
13074 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13075 code providing the --enable-multi-ice option, and move it right in
13076 front of the code that checks whether gdbserver is supported.
13077 Polish that too.
13078 * configure: Regenerated.
13079 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13080 @SUBDIRS@.
13081
13082 2003-01-03 Andrew Cagney <cagney@redhat.com>
13083
13084 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13085 * avr-tdep.c, cris-tdep.c: Ditto.
13086 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13087 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13088
13089 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13090
13091 * configure.in: Remove --enable-netrom option.
13092 * configure: Regenerated.
13093
13094 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13095
13096 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13097 declaration for `struct re_pattern_buffer' instead.
13098 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13099
13100 2003-01-03 J. Brobecker <brobecker@gnat.com>
13101
13102 * mdebugread.c (parse_symbol): Count until the stEnd matching
13103 the structure name.
13104
13105 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13106
13107 * configure.in: Remove --with-cpu option.
13108 subscripts. Remove evil changequotes here.
13109 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13110 * config.in, configure: Regenerated.
13111
13112 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13113 * configure.in: Cleanup section that sources GDB and BFD configure
13114 subscripts. Remove evil changequotes here.
13115 * config.in, configure: Regenerated.
13116
13117 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13118
13119 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13120 frame accessor methods.
13121 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13122 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13123 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13124 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13125 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13126 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13127 * z8k-tdep.c: Ditto.
13128
13129 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13130
13131 * configure.in: Remove UI_OUT configuration code.
13132 * ada-lang.c: Update assuming UI_OUT is always true.
13133 * Makefile.in (UIOUT_CFLAGS): Remove.
13134 * configure: Regenerated.
13135 * TODO: Remove blurb about elimination of -DUI_OUT.
13136
13137 * configure.in: Move code that provides the --enable-gdbcli,
13138 --enable-gdbmi options right before the code that handles the
13139 --enable-tui option. Polish a bit.
13140 * configure: Regenerated.
13141
13142 * configure.in: Rewrite check for GNU regex and the
13143 --without-included regex option, and move it into the "Checks for
13144 library functions" section. This makes us use the system regex
13145 again by default on systems with version 2 of the GNU C library.
13146 This was apparently broken.
13147 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13148 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13149 * config.in, configure: Regenerated.
13150
13151 * configure.in: Move code that provides the --enable-tui option
13152 before the "Checks for libraries" section. Polish the code
13153 somewhat and set need_curses to yes if we build the TUI. Rewrite
13154 code that looks for a library providing termcap functionality to
13155 match more closely what's done in the Readline library, and move
13156 it into to the "Checks for libraries" section.
13157 * configure: Regenerated.
13158 * Makefile.in (TERMCAP): Remove variable.
13159 * config/i386/go32.mh (TERMCAP): Remove variable.
13160
13161 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13162
13163 * MAINTAINERS: Mention gdb_mbuild.sh.
13164 * gdb_mbuild.sh: Rewrite.
13165
13166 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13167
13168 * configure.in: Fix typo in last change.
13169 * config.in, configure: Regenerated.
13170
13171 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13172
13173 * valarith.c (value_binop): Delete obsolete code and comments.
13174 * configure.host: Ditto.
13175 * buildsym.h (make_blockvector): Ditto.
13176 * buildsym.c (make_blockvector): Ditto.
13177 * defs.h (enum language): Ditto.
13178 (chill_demangle): Ditto.
13179 * elfread.c (elf_symtab_read): Ditto.
13180 * dwarfread.c (CHILL_PRODUCER): Ditto.
13181 (set_cu_language): Ditto.
13182 (handle_producer): Ditto.
13183 * expprint.c (print_subexp): Ditto.
13184 * gdbtypes.c (chill_varying_type): Ditto.
13185 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13186 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13187 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13188 (chill_varying_type): Ditto.
13189 * language.h (_LANG_chill): Ditto.
13190 * language.c (binop_result_type, integral_type): Ditto.
13191 (character_type, string_type, structured_type): Ditto.
13192 (lang_bool_type, binop_type_check): Ditto.
13193 * stabsread.h (os9k_stabs): Ditto.
13194 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13195 (define_symbol, read_type, read_struct_fields): Ditto.
13196 (read_array_type, read_enum_type, read_huge_number): Ditto.
13197 (read_range_type, start_stabs): Ditto.
13198 * symfile.c (init_filename_language_table): Ditto.
13199 (add_psymbol_with_dem_name_to_list): Ditto.
13200 * symtab.c (symbol_init_language_specific): Ditto.
13201 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13202 * symtab.h (struct general_symbol_info): Ditto.
13203 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13204 * typeprint.c (typedef_print): Ditto.
13205 * utils.c (fprintf_symbol_filtered): Ditto.
13206 * valops.c (value_cast, search_struct_field, value_slice): Delete
13207 obsolete code.
13208 (varying_to_slice): Delete function.
13209 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13210 (varying_to_slice): Delete declaration.
13211 * MAINTAINERS: Update.
13212
13213 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13214
13215 * configure.in: Reorganize "Checks for library functions section"
13216 a bit. Remove check for `btowc' and `isascii' functions.
13217 * configure: Regenerated.
13218
13219 * acconfig.h (_MSE_INT_H): Remove.
13220 * configure.in: Create "Checks for header files" section, and move
13221 appropriate tests there. Don't check for objlist.h, wchar.h,
13222 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13223 misdetection fix. Also add "Checks for types", "Checks for
13224 compiler characteristics" and "Checks for library functions"
13225 sections.
13226 * config.in, configure: Regenerated.
13227
13228 * configure.in: Create "Checks for programs" section, and move
13229 appropriate tests there.
13230
13231 2003-01-01 Mark Kettenis <kettenis@gnu.org>
13232
13233 * configure.in: Create "Checks for libraries" section, and move
13234 appropriate tests there. Cleanup check for wctype in libw. Use
13235 AC_SEARCH_LIBS to see whether we need libsocket.
13236 * configure: Regenerated.
13237
13238 For older changes see ChangeLog-2002
13239 \f
13240 Local Variables:
13241 mode: change-log
13242 left-margin: 8
13243 fill-column: 74
13244 version-control: never
13245 End: