2003-09-11 David Carlton <carlton@kealia.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5c4e30ca
DC
12003-09-11 David Carlton <carlton@kealia.com>
2
3 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
4 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
5 (recursive_dump_type): Ditto.
6 * printcmd.c (print_formatted): Ditto.
7 * typeprint.c (print_type_scalar): Ditto.
8 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
9 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
10 * cp-support.h: Declare cp_check_possible_namespace_symbols,
11 maint_cplus_cmd_list.
12 * cp-support.c: Make maint_cplus_cmd_list extern.
13 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
14 command.h.
15 (lookup_symbol_file): Look in possible namespace blocks when
16 appropriate.
17 (initialize_namespace_symtab): New.
18 (get_possible_namespace_block, free_namespace_block)
19 (check_possible_namespace_symbols)
20 (check_possible_namespace_symbols_loop)
21 (check_one_possible_namespace_symbol)
22 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
23 (_initialize_cp_namespace): Ditto.
24 * block.h: Declare allocate_block.
25 * block.c (allocate_block): New.
26 * jv-lang.c (get_java_class_symtab): Allocate blocks via
27 allocate_block.
28 * symfile.h: Update declaration of add_psymbol_to_list.
29 * symfile.c (add_psymbol_to_list): Return the partial symbol in
30 question.
31 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
32 scan_partial_symbols_call.
33 (scan_partial_symbols): Add NAMESPACE argument; update calls to
34 helper functions.
35 (add_partial_symbol): If necessary, scan mangled names for names
36 of namespaces.
37 (add_partial_namespace): Add NAMESPACE argument; generate partial
38 symbols associated to namespaces.
39 (add_partial_enumeration): Add NAMESPACE argument.
40 (new_symbol): Allow namespace syms.
41 (read_namespace): Generate namespace syms.
42 * objfiles.h: Add opaque declaration of struct symtab.
43 (struct objfile): Add cp_namespace_symtab member.
44 * objfiles.c (allocate_objfile): Set
45 objfile->cp_namespace_symtab.
46 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
47 dictionary_h, command_h.
48
33a7c2fc
AC
492003-09-11 Andrew Cagney <cagney@redhat.com>
50
51 * rs6000-tdep.c (rs6000_push_dummy_call): Use
52 regcache_raw_write_signed to set SP_REGNUM, move the operation to
53 near the function's end.
54 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
55 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
56 regcache_raw_write_signed to set SP_REGNUM.
57
63cd24fe
EZ
582003-09-11 Elena Zannoni <ezannoni@redhat.com>
59
60 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
61 orig_addrs is set up properly.
62
f27dd7fd
AC
632003-09-11 Andrew Cagney <cagney@redhat.com>
64
65 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
66 * gdbarch.h, gdbarch.c: Re-generate.
67 * infcall.c (call_function_by_hand): Update.
68 * hppa-tdep.c (hppa_push_arguments): Update.
69 * ada-lang.c (place_on_stack): Update.
70 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
71 * sparc-tdep.c (sparc_gdbarch_init): Update.
72 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
73 * hppa-tdep.c (hppa_gdbarch_init): Update.
74 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
75 stack_align.
76
f630a401
DJ
772003-09-11 Daniel Jacobowitz <drow@mvista.com>
78
79 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
80 register do need a frame.
81
0ddabb4c
AC
822003-09-11 Andrew Cagney <cagney@redhat.com>
83
84 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
85 buildable since GDB 5.0.
86 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
87 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
88 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
89 * irix4-nat.c: Delete file.
90 * config/mips/irix4.mh: Delete file.
91 * config/mips/irix3.mh: Delete file.
92 * config/mips/irix3.mt: Delete file.
93 * config/mips/tm-irix3.h: Delete file.
94 * config/mips/nm-irix3.h: Delete file.
95 * config/mips/xm-irix3.h: Delete file.
96 * config/mips/nm-irix4.h: Delete file.
97 * config/mips/xm-irix4.h: Delete file.
98 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
99
fde2cceb
JB
1002003-09-10 J. Brobecker <brobecker@gnat.com>
101
102 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
103 * Makefile.in (hppa-tdep.o): Update dependencies.
104
66f667f5
JW
1052003-09-10 James E Wilson <wilson@specifixinc.com>
106
ef5fd69f
JW
107 * MAINTAINERS: Change my e-mail address. Move to paper trail
108 section.
66f667f5 109
53e8aaea
KB
1102003-09-10 Kevin Buettner <kevinb@redhat.com>
111
112 * MAINTAINERS (frv): New ISA entry.
113
dcc6aaff
KB
1142003-09-10 Kevin Buettner <kevinb@redhat.com>
115
116 * frv-tdep.c (dis-asm.h): Include.
117 * Makefile.in (frv-tdep.o): Update dependencies.
118
932644f0
JJ
1192003-09-09 Jeff Johnston <jjohnstn@redhat.com>
120
121 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
122 Fix typo for high range of floating registers.
123
91c24f0a
DC
1242003-09-09 David Carlton <carlton@kealia.com>
125
126 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
127 highpc initialization here out of scan_partial_symbols.
128 (scan_partial_symbols): Restructure into a recursive version,
129 calling add_partial_namespace and add_partial_enumeration when
130 appropriate.
131 (add_partial_namespace): New.
132 (add_partial_enumeration, locate_pdi_sibling): Ditto.
133
c9263853
AC
1342003-09-09 Andrew Cagney <cagney@redhat.com>
135
e56a0ecc
AC
136 * rs6000-tdep.c (ppc_push_return_address): Delete function.
137 (rs6000_push_dummy_call): Set LR to BP_ADDR.
138 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
139 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
140
794a477a
AC
141 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
142 (rs6000_push_dummy_call): Set the "TOC" register.
143
c9263853
AC
144 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
145 methods "max_register_raw_size", "max_register_virtual_size" or
146 "register_virtual_size".
147
afa7d0b2
ILT
1482003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
149
150 * MAINTAINERS: Update my e-mail address.
151
7a41266b
AC
1522003-09-09 Andrew Cagney <cagney@redhat.com>
153
154 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
155 (rs6000_push_dummy_call): Store the struct return address.
156 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
157
77b2b6d4
AC
1582003-09-09 Andrew Cagney <cagney@redhat.com>
159
160 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
161 "ppc_sysv_abi_push_arguments".
162 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
163 "ppc_sysv_abi_push_arguments".
164 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
165 instead of "push_arguments".
166 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
167
e8a7b686
AC
1682003-09-09 Andrew Cagney <cagney@redhat.com>
169
170 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
171 instead of CALL_DUMMY_ADDRESS.
172
f86f5ca3
PH
1732003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
174
175 * p-lang.c: Eliminate "register".
176 * c-lang.c: Ditto.
177 * expprint.c: Ditto.
178 * f-lang.c: Ditto.
179 * jv-lang.c: Ditto.
180 * language.c: Ditto.
181 * m2-lang.c: Ditto.
182 * parse.c: Ditto.
183 * scm-lang.c: Ditto.
184 * objc-lang.c: Ditto.
185
83ee270e
NC
1862003-09-09 Nick Clifton <nickc@redhat.com>
187
188 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
189
a89aa300
AC
1902003-09-04 Andrew Cagney <cagney@redhat.com>
191
192 * avr-tdep.c: Include "dis-asm.h".
193 * cris-tdep.c: Include "dis-asm.h".
194 (cris_delayed_get_disassembler): Use "struct disassemble_info"
195 instead of corresponding typedef.
196 * h8300-tdep.c: Include "dis-asm.h".
197 * ia64-tdep.c: Include "dis-asm.h".
198 * i386-tdep.c: Include "dis-asm.h".
199 (i386_print_insn): Use "struct disassemble_info" instead of
200 corresponding typedef.
201 * m68k-tdep.c: Include "dis-asm.h".
202 * mcore-tdep.c: Include "dis-asm.h".
203 * mips-tdep.c: Include "dis-asm.h".
204 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
205 instead of corresponding typedef.
206 * ns32k-tdep.c: Include "dis-asm.h".
207 * s390-tdep.c: Include "dis-asm.h".
208 * sparc-tdep.c: Include "dis-asm.h".
209 * vax-tdep.c: Include "dis-asm.h".
210 * v850-tdep.c: Include "dis-asm.h".
211 * mn10300-tdep.c: Include "dis-asm.h".
212 * rs6000-tdep.c: Include "dis-asm.h".
213 * xstormy16-tdep.c: Include "dis-asm.h".
214 (_initialize_xstormy16_tdep): Delete "extern" declaration of
215 print_insn_xstormy16.
216 * Makefile.in (v850-tdep.o): Update dependencies.
217 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
218 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
219 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
220 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
221 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
222 (gdbarch_h): Remove $(dis_asm_h).
223 * disasm.c: Include "dis-asm.h".
224 (dis_asm_read_memory): Use "struct disassemble_info" instead of
225 corresponding typedef.
226 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
227 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
228 * gdbarch.sh: Do not include "dis-asm.h".
229 (struct disassemble_info): Declare opaque.
230 (TARGET_PRINT_INSN): Update declaration.
231 * gdbarch.h, gdbarch.c: Re-generate.
232
88a82a65
AC
2332003-09-08 Andrew Cagney <cagney@redhat.com>
234
235 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
236 CALL_DUMMY_ADDRESS, change to a predicate.
237 * gdbarch.h, gdbarch.c: Re-generate.
238 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
239 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
240 * infcall.c (call_function_by_hand): Ditto.
241 * sparc-tdep.c (sparc_push_return_address): Ditto.
242 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
243 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
244 CALL_DUMMY_ADDRESS with entry_point_address.
245 * v850-tdep.c (v850_push_return_address): Ditto.
246 * s390-tdep.c (s390_push_return_address): Ditto.
247 * rs6000-tdep.c (ppc_push_return_address): Ditto.
248 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
249 * mcore-tdep.c (mcore_push_return_address): Ditto.
250 * cris-tdep.c (cris_push_return_address): Ditto.
251 * arm-tdep.c (arm_push_return_address): Ditto.
252
3e2c4033
AC
2532003-09-08 Andrew Cagney <cagney@redhat.com>
254
255 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
256 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
257 and REG_UNMODIFIED to REG_SAME_VALUE.
258 (execute_cfa_program): Update.
259 (dwarf2_frame_cache): Update. Initialize table to
260 REG_UNSPECIFIED, complain if CFI fails to specify a register's
261 location.
262 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
263
39efb398
AC
2642003-09-08 Andrew Cagney <cagney@redhat.com>
265
266 * gnu-nat.c: Remove "inline" function attribute.
267 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
268
f5cb5aca
KB
2692003-09-08 Kevin Buettner <kevinb@redhat.com>
270
271 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
272 target.
273
1cb761c7
KB
2742003-09-08 Kevin Buettner <kevinb@redhat.com>
275
276 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
277 (frame_extra_info): Rename this struct to frv_unwind_cache.
278 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
279 Add fields ``prev_sp'' and ``base''.
280 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
281 (frv_saved_pc_after_call, frv_init_extra_frame_info)
282 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
283 Delete.
284 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
285 Revise all callers. Fill in the unwind cache argument and make
286 other adjustments to account for new frame mechanisms.
287 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
288 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
289 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
290 (frv_frame_unwind, frv_frame_base): New structs.
291 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
292 additional arguments expected by this method and adjust function
293 body accordingly.
294 (frv_gdbarch_init): Remove calls to the following functions:
295 set_gdbarch_deprecated_init_frame_pc(),
296 set_gdbarch_deprecated_saved_pc_after_call(),
297 set_gdbarch_deprecated_frame_chain(),
298 set_gdbarch_deprecated_frame_saved_pc(),
299 set_gdbarch_deprecated_frame_init_saved_regs(),
300 set_gdbarch_deprecated_push_arguments(),
301 set_gdbarch_deprecated_push_return_address(),
302 set_gdbarch_deprecated_pop_frame(),
303 set_gdbarch_deprecated_call_dummy_words(),
304 set_gdbarch_deprecated_sizeof_call_dummy_words(),
305 set_gdbarch_deprecated_init_extra_frame_info(),
306 set_gdbarch_deprecated_dummy_write_sp(), and
307 set_gdbarch_deprecated_pc_in_call_dummy().
308 Add calls to the following functions:
309 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
310 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
311 frame_base_set_default().
312 * Makefile.in (frv-tdep.o): Update dependencies.
313
68f6cf99
MK
3142003-09-09 Mark Kettenis <kettenis@gnu.org>
315
316 * dwarf2-frame.c (read_encoded_value): Add support for
317 DW_EH_PE_aligned encoding.
318
73b65bb0
DJ
3192003-09-08 Daniel Jacobowitz <drow@mvista.com>
320
321 * infrun.c (normal_stop): Don't print a message if the inferior
322 has exited.
323
7c8a5605
JB
3242003-09-08 Jim Blandy <jimb@redhat.com>
325
326 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
327 * dbxread.c: #include "gdb_assert.h".
328 (read_dbx_symtab): If the objfile has no .data section, use the
329 section index for the .bss section instead.
330
7dd88986
DJ
3312003-09-08 Daniel Jacobowitz <drow@mvista.com>
332
333 * frame.c (deprecated_safe_get_selected_frame): New function.
334 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
335 * findvar.c (read_var_value): Call it.
336
55ff77ac
CV
3372003-09-08 Corinna Vinschen <vinschen@redhat.com>
338
339 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
340 (sh64-tdep.o): Add dependencies.
341 * configure.tgt: Add FIXME to sh-*-linux*.
342 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
343 (sh_gdbarch_init): Always set correct sh_show_regs function
344 pointer. Call sh64_gdbarch_init() if machine type is sh5.
345 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
346 * sh64-tdep.c: New file, containing all sh64 related code from
347 sh-tdep.c.
348 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
349 * config/sh/linux.mt (TDEPFILES): Ditto.
350 * config/sh/nbsd.mt (TDEPFILES): Ditto.
351 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
352 * config/sh/wince.mt (TDEPFILES): Ditto.
353
bfb39158
DJ
3542003-09-07 Daniel Jacobowitz <drow@mvista.com>
355
356 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
357 (stop_wait_callback): Handle !lp->signalled also.
358 (lin_lwp_has_pending, flush_callback): New functions.
359 (lin_lwp_wait): Call flush_callback.
360 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
361 (linux_proc_pending_signals): New function.
362 * linux-nat.h (linux_proc_pending_signals): Add prototype.
363
9407de8e
DJ
3642003-09-07 Daniel Jacobowitz <drow@mvista.com>
365
366 From Nick Kelsey <nickk@ubicom.com>:
367 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
368 when the stop PC is at the beginning of a function also.
369
2ef47cd0
DJ
3702003-09-06 Daniel Jacobowitz <drow@mvista.com>
371
372 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
373 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
374
6f4492c8
MK
3752003-09-06 Mark Kettenis <kettenis@gnu.org>
376
377 * sol-thread.c: Include "gdb_string.h".
378
d3420b2f
MK
3792003-09-03 Mark Kettenis <m.kettenis@osp.nl>
380
381 * gcore.c: Reorder include files in alphabetical order. Include
382 "gdb_assert.h". Various coding style fixes.
383 (derive_stack_segment, derive_heap_segment): Replace check for
384 non-null BOTTOM and TOP with gdb_assert.
385 (derive_heap_segment): Replace check for successful creation of
386 ZERO with gdb_assert.
387 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
388
5220ea4c
AC
3892003-09-04 Andrew Cagney <cagney@redhat.com>
390
391 * thread-db.c (verbose_dlsym): New function.
392 (thread_db_load): Use verbose_dlsym
393 (thread_db_new_objfile): Print that libthread_db was loaded, and
394 that thread debugging was enabled.
395
6e8c2c06
AC
3962003-09-04 Andrew Cagney <cagney@redhat.com>
397
398 * configure.tgt: Add "mips64*-*-*" target. Delete
399 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
400 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
401 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
402 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
403 mips*-sony-*, and mips64*-*-elf* targets.
404 * config/mips/embedl.mt: Delete file.
405 * config/mips/embedl64.mt: Delete file.
406 * config/mips/mips.mt: Delete file.
407 * config/mips/mips64.mt: Delete file.
408 * config/mips/tm-embed.h: Delete file.
409 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
410 * config/mips/embed64.mt: Delete out-of-date comment.
411
3a3bc038
AC
4122003-09-04 Andrew Cagney <cagney@redhat.com>
413
414 * hppa-tdep.c (hppa_gdbarch_init): Set
415 "have_nonsteppable_watchpoint".
416 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
417 * mips-tdep.c (mips_dump_tdep): Do not print
418 HAVE_NONSTEPPABLE_WATCHPOINT.
419 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
420 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
421 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
422 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
423
a957e642
CV
4242003-09-04 Corinna Vinschen <vinschen@redhat.com>
425
426 * breakpoint.c (watchpoint_check): Remove accidentally checked in
427 unused code. Add comment.
428
a6fbcf2f
CV
4292003-09-04 Corinna Vinschen <vinschen@redhat.com>
430
431 * breakpoint.c (watchpoint_check): Check for pc being in an
432 epilogue if watchpoint frame couldn't be found.
433
c14a44d5
AC
4342003-09-04 Andrew Cagney <cagney@redhat.com>
435
436 * Makefile.in: Re-generate all dependencies.
437
f6c40618
AC
4382003-09-03 Andrew Cagney <cagney@redhat.com>
439
440 * arch-utils.h (legacy_print_insn): Delete declaration.
441 * arch-utils.c (legacy_print_insn): Delete function.
442 * disasm.c (deprecated_tm_print_insn_info): Delete.
443 (_initialize_disasm): Delete function, contained code initializing
444 deprecated_tm_print_insn_info.
445 * gdbarch.sh (deprecated_tm_print_insn): Delete.
446 (deprecated_tm_print_insn_info): Delete.
447 (TARGET_PRINT_INSN): Do not provide a default.
448 * gdbarch.h, gdbarch.c: Re-generate.
449
242e8be5
AC
4502003-09-03 Andrew Cagney <cagney@redhat.com>
451
452 * disasm.c (fprintf_disasm): New function.
453 (gdb_disassemble_info): Call "init_disassemble_info", instead of
454 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
455 reverts 2003-08-14 change.
456 (_initialize_disasm): Call "init_disassemble_info", instead of
457 INIT_DISASSEMBLE_INFO_NO_ARCH.
458
3ffc3dda
MS
4592003-09-03 Michael Snyder <msnyder@redhat.com>
460
461 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
462
52d16ba8
AC
4632003-09-03 Andrew Cagney <cagney@redhat.com>
464
465 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
466 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
467 * symfile.c (syms_from_objfile): Update.
468 (reread_symbols): `Update
469 * exec.c (exec_file_attach): Update.
470 (exec_file_attach): Update.
471 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
472 2003-08-29 change.
473 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
474
eb5492fa
DJ
4752003-09-03 Daniel Jacobowitz <drow@mvista.com>
476
477 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
478 trad-frame.h.
479 (arm_get_cache): Delete macro.
480 (struct arm_prologue_cache): Update comments. Make saved_regs into
481 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
482 to prev_sp.
483 (thumb_scan_prologue): Update for cache changes. Don't call
484 DEPRECATED_PC_IN_CALL_DUMMY.
485 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
486 argument and use it in desperation search for our prologue. Do not
487 search past the specified PC.
488 (arm_make_prologue_cache): Simplify.
489
490 (arm_prologue_this_id, arm_prologue_prev_register)
491 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
492 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
493 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
494 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
495 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
496
497 (arm_frame_chain_valid, arm_find_callers_reg)
498 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
499 (arm_pop_frame): Delete obsolete methods.
500 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
501
502 (arm_gdbarch_init): Update for new frame methods. Register prologue
503 and sigtramp unwinders. Set the default frame base method.
504
505 * Makefile.in (arm-tdep.o): Update dependencies.
506 * varobj.c (find_frame_addr_in_frame_chain): Call
507 get_frame_base_address.
508 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
509
24de872b
DJ
5102003-09-03 Daniel Jacobowitz <drow@mvista.com>
511
512 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
513 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
514 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
515 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
516 Take NEXT_FRAME and CACHE arguments. Call
517 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
518 Set unwound_pc in CACHE instead of modifying the frame argument.
519 Don't bother checking the frame type when looking for sigtramp
520 frames.
521 (arm_make_prologue_cache, arm_frame_chain)
522 (arm_init_extra_frame_info): New functions.
523
9b8d791a
DJ
5242003-09-03 Daniel Jacobowitz <drow@mvista.com>
525
526 * arm-tdep.c (arm_get_cache): Define.
527 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
528 unwound_sp, unwound_pc, and saved_regs.
529 (thumb_scan_prologue): Take a cache instead of the frame.
530 (arm_scan_prologue): Likewise.
531 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
532 instead of a temporary frame.
533 (arm_init_extra_frame_info): Allocate and use a cache.
534 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
535
7ee3275f
AC
5362003-09-03 Andrew Cagney <cagney@redhat.com>
537
538 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
539 * config/mips/wince.mt (TM_CLIBS): Ditto.
540 * config/sh/wince.mt (TM_CLIBS): Ditto.
541 * config/pa/hppa64.mt (TM_CLIBS): Delete.
542 * config/sparc/sp64.mt (CC): Delete.
543
57b29be7
AC
5442003-09-03 Andrew Cagney <cagney@redhat.com>
545
546 * defs.h: Do not include "arch-utils.h".
547 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
548 GDB_MULTI_ARCH_PURE.
549 * configure.in (GDB_MULTI_ARCH): Do not define.
550 * configure, config.in: Regenerate.
551 * configure.tgt: Do not set variable "gdb_multi_arch".
552 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
553 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
554 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
555 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
556 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
557 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
558 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
559 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
560 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
561 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
562 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
563 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
564 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
565 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
566 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
567 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
568 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
569 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
570
12e035e2
MC
5712003-08-30 Michael Chastain <mec@shout.net>
572
573 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
574 * config/m68k/nm-hp300hpux.h: Delete.
575 * config/m68k/tm-hp300hpux.h: Delete.
576 * config/m68k/xm-hp300hpux.h: Delete.
577 * config/m68k/xm-hp300bsd.h: Delete.
578 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
579 tm-hp300hpux.h, xm-hp300hpux.h.
580 * somsolib.c: Remove comment about hp300 shared libraries.
581
bda34dc2
MK
5822003-08-31 Mark Kettenis <kettenis@gnu.org>
583
5bca7895
MK
584 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
585 Only define PTRACE_GET_THREAD_AREA is not already defined.
586 Various style fixes in code and comments and some additional
587 spelling fixes in comments. Move after functions dealing with
588 debug registers.
589 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
590 Fix coding-style.
591
bda34dc2
MK
592 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
593 frame_unwind_register_unsigned instead of
594 frame_unwind_unsigned_register.
595
c890192f
MK
5962003-08-30 Mark Kettenis <kettenis@gnu.org>
597
598 * configure.in: Search for gethostbyname in libnsl.
599 * configure: Regenerated.
600
60fac5b8
MK
6012003-08-29 Mark Kettenis <kettenis@gnu.org>
602
e294916c
MK
603 * configure.in: Remove redundant AC_MSG_RESULT in check for
604 uintptr_t in stdint.h.
605 * configure: Regenerated.
606
c40d267a
MK
607 * amd64-nat.h (struct regcache): Add opaque declaration.
608
60fac5b8
MK
609 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
610 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
611 Change "register array" to "register cache" in comments.
612 (x86_64_linux_gregset64_reg_offset): New variable.
613 (GETREGS_SUPPLIES): Remove macro.
614 (supply_gregset): Call amd64_supply_native_gregset instead of
615 x86_64_linux_supply_gregset.
616 (fill_gregset): Rename `regno' to `regnum'. Call
617 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
618 (store_regs): Rename `regno' to `regnum'.
619 (store_fpregs): Rename `regno' to `regnum'.
620 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
621 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
622 Reorganize function a bit.
623 (store_inferior_registers): Rename `regno' to `regnum'. Use
624 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
625 Reorganize function a bit.
626 (_initialize_x86_64_linux_nat): New function.
627 * config/i386/x86-64linux.mh.
628
546143b6
AC
6292003-08-29 Andrew Cagney <cagney@redhat.com>
630
631 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
632 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
633 (target_remove_watchpoint): Delete macro.
634 (target_insert_watchpoint): Delete macro.
635 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
636 (remote_mips_stopped_by_watchpoint): Delete declaration.
637 (remote_mips_remove_watchpoint): Delete declaration.
638 (remote_mips_set_watchpoint): Delete declaration.
639 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
640 * remote-mips.c (_initialize_remote_mips): Set
641 "to_insert_watchpoint", "to_stopped_by_watchpoint",
642 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
643 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
644 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
645 (mips_stopped_by_watchpoint): Rename
646 remote_mips_stopped_by_watchpoint.
647 (mips_can_hardware_watchpoint): Rename
648 remote_mips_can_use_hardware_watchpoint, update function
649 signature.
650
7bace51b
MK
6512003-08-29 Mark Kettenis <kettenis@gnu.org>
652
b0f5c6f2
MK
653 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
654 USER_DS. We haven't given them a register number yet.
655
2a6d284d
MK
656 * amd64-nat.h: New file.
657 * amd64-nat.c: New file.
658 * amd64fbsd-nat.c: Include "amd64-nat.h".
659 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
660 (amd64fbsd32_r_reg_offset): New variable.
661 (supply_gregset): Simply call amd64_supply_native_gregset.
662 (fill_gregset): Rename `regno' to `regnum'. Simply call
663 amd64_collect_native_gregset.
664 (fill_fpregset): Rename `regno' to `regnum'.
665 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
666 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
667 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
668 `fpregset_t'. Call amd64_supply_native_gregset instead of
669 supply_gregset. Call x86_64_supply_fxsave instead of
670 supply_fpregset.
671 (store_inferior_registers): Rename `regno' to `regnum'. Replace
672 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
673 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
674 `fpregset_t'. Call amd64_collect_native_gregset instead of
675 fill_gregset. Call x86_64_collect_fxsave instead of
676 fill_fpregset.
677 (_initialize_am64fbsd_nat): Initialize
678 amd64_native_gregset32_reg_offset and
679 amd64_native_gregset64_reg_offset.
680 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
681
a16d75cc
MK
682 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
683 null pointer. Fix typo in comment.
684
7bace51b
MK
685 * regcache.c (supply_register): Reimplement to call
686 regcache_raw_supply.
687 (regcache_collect): Reimplement by calling regcache_raw_collect.
688
9a661b68
MK
6892003-08-28 Mark Kettenis <kettenis@gnu.org>
690
691 * regcache.c (register_buffer): Consitify first argument.
692 (regcache_raw_supply, regcache_raw_collect): New
693 functions.
694
e94cc8fa
DJ
6952003-08-28 Daniel Jacobowitz <drow@mvista.com>
696
697 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
698 by Nathan J. Williams.
699
c64bd0ce
DJ
7002003-08-28 Daniel Jacobowitz <drow@mvista.com>
701
702 * lin-lwp.c (wait_lwp): New function, copied from
703 stop_wait_callback. Clean up.
704 (stop_wait_callback): Use wait_lwp.
705
e5ab0dce
AC
7062003-08-28 Andrew Cagney <cagney@redhat.com>
707
708 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
709 flavour and disassembler options.
710 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
711 (mips_gdbarch_init): Set "print_insn". Delete initialization of
712 deprecated_tm_print_insn_info.
713
a788de9b
AC
7142003-08-27 Andrew Cagney <cagney@redhat.com>
715
716 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
717 Use target_read_memory.
718 (s390_get_frame_info): Update. Do not reference
719 deprecated_tm_print_insn_info.
720 (s390_check_function_end, s390_is_sigreturn): Ditto.
721
36482093
AC
7222003-08-27 Andrew Cagney <cagney@redhat.com>
723
724 * Makefile.in (cris-tdep.o): Update dependencies.
725 * cris-tdep.c: Include "gdb_assert.h".
726 (cris_gdbarch_init): Set print_insn.
727 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
728 (cris_delayed_get_disassembler): Simplify, directly call the
729 disassembler returned by cris_get_disassembler.
730 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
731 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
732 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
733 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
734 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
735 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
736 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
737 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
738 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
739 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
740 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
741 (gdb_print_insn_sparc): Delete function.
742 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
743 deprecated_tm_print_insn_info.
744 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
745 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
746 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
747 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
748 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
749 * s390-tdep.c (gdb_print_insn_s390): Delete function.
750 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
751 (s390_gdbarch_init): Set print_insn.
752
0285512f
AC
7532003-08-27 Andrew Cagney <cagney@redhat.com>
754
755 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
756 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
757 * infcall.c (call_function_by_hand): Convert the entry point
758 address into a code address.
759
cdcd5552
AC
7602003-08-27 Andrew Cagney <cagney@redhat.com>
761
762 * dsrec.c: Include "gdb_string.h".
763 * Makefile.in (dsrec.o): Update dependencies.
764
e85cddad
MC
7652003-08-27 Michael Chastain <mec@shout.net>
766
767 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
768
8bbfbb23
AC
7692003-08-27 Andrew Cagney <cagney@redhat.com>
770
771 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
772 (alpha_osf1_init_abi): Do not set call_dummy_address.
773
ba058b66
DC
7742003-08-27 David Carlton <carlton@kealia.com>
775
776 From Randolph Chung <tausq@debian.org>:
777 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
778 compiles with -Wformat-nonliteral -Werror.
779
87f84c9d
JB
7802003-08-26 Jim Blandy <jimb@redhat.com>
781
782 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
783 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
784 bfd_lookup_symbol, since we only want symbols in code sections.
785 (look_for_base): Pass zero as the SECT_FLAGS argument to
786 bfd_lookup_symbol, since we're not concerned about which section
787 the symbol is in.
788
102d615a
JJ
7892003-08-26 Jeff Johnston <jjohnstn@redhat.com>
790
791 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
792 we are frameless or the return address register is already known.
793
cc7ad3ea
AC
7942003-08-26 Andrew Cagney <cagney@redhat.com>
795
796 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
797 in size. Add comments.
798
af8b88dd
JJ
7992003-08-26 Jeff Johnston <jjohnstn@redhat.com>
800
801 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
802 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
803
e0a4f5a1
JM
8042003-08-26 Jason Merrill <jason@redhat.com>
805
806 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
807 case out of #ifdef MIPS block.
808
4ae9ee8e
DJ
8092003-08-25 Daniel Jacobowitz <drow@mvista.com>
810
811 PR java/1322
812 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
813 available before calling SECT_OFF_TEXT.
3c164570 814 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 815
004d836a
JJ
8162003-08-25 Jeff Johnston <jjohnstn@redhat.com>
817
818 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
819 bof, and nat0-nat127 as pseudo-registers.
820 (ia64_frame_cache): New struct used to cache frame info.
821 (ia64_register_reggroup_p): New routine used to override default
822 register grouping so registers without names are still saved and
823 restored.
824 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
825 pseudo values.
826 (ia64_pseudo_register_read): New routine to read pseudo-registers.
827 (ia64_pseudo_register_write): New routine to write pseudo-registers.
828 (ia64_alloc_frame_cache): New routine to create a new
829 ia64_frame_cache.
830 (examine_prologue): Change prototype to add next_frame pointer.
831 Assume frameless until otherwise proven. Verify that the cfm for
832 current frame matches the cfm that should occur for the prologues
833 alloc insn and if equal, mark as not frameless. At end of routine,
834 if not frameless, calculate registers for the previous frame and store
835 in the cache, if a cache is provided.
836 (ia64_skip_prologue): Use new prototype when calling examine_prologue
837 and pass 0 for next_frame.
838 (ia64_store_return_value): Change to use convert_typed_floating()
839 instead of calling ia64_convert_to_raw().
840 (ia64_extract_return_value): Change to use convert_typed_floating()
841 instead of calling ia64_convert_to_virtual().
842 (ia64_frame_cache): New routine to support new frame model.
843 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
844 (ia64_frame_sniffer): Ditto.
845 (ia64_sigtramp_frame_init_saved_regs): Ditto.
846 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
847 (ia64_sigtramp_frame_prev_register): Ditto.
848 (ia64_sigtramp_frame_sniffer): Ditto.
849 (ia64_frame_base_address): Ditto.
850 (ia64_extract_struct_value_address): Change to issue error message.
851 (ia64_frame_align): New routine to align sp.
852 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
853 (ia64_push_arguments): Removed. Logic moved to
854 ia64_push_dummy_call().
855 (ia64_push_return_address): Ditto.
856 (ia64_unwind_dummy_id): New function.
857 (ia64_unwind_pc): Ditto.
858 (ia64_convert_register_p): Ditto.
859 (ia64_register_to_value): Ditto.
860 (ia64_value_to_register): Ditto.
861 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
862 (ia64_register_byte, ia64_register_raw_size): Ditto.
863 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
864 (ia64_saved_pc_after_call): Ditto.
865 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
866 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
867 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
868 (ia64_register_convert_to_raw): Ditto.
869 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
870 (ia64_init_extra_frame_info): Ditto.
871 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
872 (ia64_gdbarch_init): Remove registering of deprecated functions that
873 are no longer used. Add registration of new gdbarch functions.
874 Remove registering deprecated_write_sp. Replace
875 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
876 Delete set_gdbarch_deprecated_register_convertible(),
877 set_gdbarch_deprecated_register_convert_to_virtual(), and
878 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
879 set_gdbarch_deprecated_register_size(),
880 set_gdbarch_deprecated_register_bytes(),
881 set_gdbarch_pcregnum(),
882 set_gdbarch_deprecated_register_byte(),
883 set_gdbarch_deprecated_register_raw_size(),
884 set_gdbarch_deprecated_max_register_raw_size(),
885 set_gdbarch_deprecated_register_virtual_size(),
886 and set_gdbarch_deprecated_max_register_virtual_size() calls.
887 Replace set_gdbarch_deprecated_extract_return_value() with
888 set_gdbarch_extract_return_value(). Remove calls to:
889 set_gdbarch_deprecated_saved_pc_after_call();
890 set_gdbarch_deprecated_frame_chain(),
891 set_gdbarch_deprecated_frame_saved_pc(),
892 set_gdbarch_deprecated_frame_init_saved_regs(),
893 set_gdbarch_deprecated_get_saved_register(),
894 set_gdbarch_deprecated_call_dummy_words(),
895 set_gdbarch_deprecated_sizeof_call_dummy_words(),
896 set_gdbarch_deprecated_init_extra_frame_info(),
897 set_gdbarch_deprecated_frame_args_address(),
898 set_gdbarch_deprecated_frame_locals_address(),
899 and set_gdbarch_deprecated_dummy_write_sp().
900 Add set_gdbarch_convert_register_p(),
901 set_gdbarch_register_to_value(),
902 set_gdbarch_value_to_register(),
903 set_gdbarch_push_dummy_call(),
904 set_gdbarch_frame_align(),
905 set_gdbarch_unwind_dummy_id(),
906 set_gdbarch_unwind_pc(),
907 frame_unwind_append_sniffer(),
908 frame_unwind_append_sniffer(),
909 and frame_base_set_default().
910
aede7613
CD
9112003-08-25 Chris Demetriou <cgd@broadcom.com>
912
913 * configure.tgt: Document need for special "mipsisa64" handling.
914 (mipsisa64*-*-linux64): Handle as target linux64.
915 (mipsisa64*-*-*): Handle as target embed64.
916
43c3a82e
MC
9172003-08-18 Michael Chastain <mec@shout.net>
918
919 * PROBLEMS: Document pr gdb/1322, the Java anonymous
920 objfile bug.
921
6564f77d
MK
9222003-08-24 Mark Kettenis <kettenis@gnu.org>
923
2de139ba
MK
924 * i387-tdep.h: Update copyright date.
925 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
926
6564f77d
MK
927 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
928 CFLAGS games to reflect reality.
929
42cf1509
AC
9302003-08-24 Andrew Cagney <cagney@redhat.com>
931
932 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
933 GDB_MULTI_ARCH is always non-zero.
934 * osabi.c (_initialize_gdb_osabi): Ditto.
935 (gdbarch_init_osabi): Ditto.
936 * sparc-tdep.c: Ditto for #if code.
937
0485f6ad
MK
9382003-08-23 Mark Kettenis <kettenis@gnu.org>
939
940 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
941 Update comments.
942 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
943 comments.
944 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
945 x86_64_supply_fxsave.
946 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
947 x86_64_supply_fxsave.
948 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
949 x86_64_supply_fxsave.
950
c7716133
AJ
9512003-08-23 Andreas Jaeger <aj@suse.de>
952
953 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
954 i387_supply_fxsave.
955
ed504bdf
MK
9562003-08-23 Mark Kettenis <kettenis@gnu.org>
957
958 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
959 i387_supply_register.
960 (go32_fetch_registers): Adjust call to i387_supply_fsave.
961 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
962 i387_supply_fsave.
963 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
964 i387_supply_fxsave.
965 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
966 i387_supply_fsave.
967 * i386bsd-nat.c (supply_fpregset): Adjust call to
968 i387_supply_fsave.
969 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
970 call to i387_supply_fxsave. Call i387_supply_fsave instead of
971 supply_fpregset.
972 (store_inferior_registers): Remove extraneous whitespace. Call
973 i387_fill_fsave instead of fill_fpregset.
974 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
975 (supply_fpregset): Likewise.
976 * i386v4-nat.c (supply_fpregset): Adjust call to
977 i387_supply_fsave.
978 * i386-interix-nat.c (supply_fpregset): Adjust call to
979 i387_supply_fsave.
980 * i386-linux-nat.c (supply_fpregset): Adjust call to
981 i387_supply_fsave.
982 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
983 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
984 i387supply_fsave and i387_supply_fxsave.
985 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
986 Incorporate code from `i387_supply_register.
987 (i387_supply_register): Remove.
988 (i387_supply_fxsave): Add `regnum' argument.
989 Update comments.
990 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
991 prototype.
992 (i387_supply_register): remove prototype.
993 Update comments.
994
4be5d520
MC
9952003-08-22 Michael Chastain <mec@shout.net>
996
997 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
998 Add lines for files in gdb/testsuite/gdb.cp/* that are
999 still not 8.3 unique.
1000
7ed85d26
DJ
10012003-08-22 Daniel Jacobowitz <drow@mvista.com>
1002
1003 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1004 TYPE_VPTR_FIELDNO is valid.
1005
eb0d3137
MK
10062003-08-19 Mark Kettenis <kettenis@gnu.org>
1007
1008 * utils.c (set_width_command): Remove prototypes.
1009 (set_screen_size): New prototype.
1010 (init_page_info): Simplify by fetching the screen size from
1011 Readline. Call set_screen_size.
1012 (set_screen_size): New function.
1013 (set_width): Add missing whitespace in comment.
1014 (set_width_command): Call set_screen_size.
1015 (set_height_command): New function.
1016 (initialize_utils): Fix formatting. Make "set height" command
1017 call set_height_command. Remove redundant code that turns off
1018 pagination if output isn't a terminal. Remove redundant call to
1019 set_width_command.
1020
7e6d0ac8
MK
10212003-08-22 Mark Kettenis <kettenis@gnu.org>
1022
3567a8ea
MK
1023 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1024 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1025 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1026 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1027 `case' keyword.
1028 (sparc64_register_info): Give the reister with number
1029 SPARC64_STATE_REGNUM a name.
1030 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1031 %asi and %ccr.
1032 (sparc64_push_dummy_call): Take BIAS into account when checking
1033 stcak alignment.
1034 (sparc_software_single_step): Remove assertions that check whether
1035 NPC and NNPC were zero.
1036 (sparc_supply_rwindow): Make public. Merge functionality with
1037 sparc64_supply_rwindow.
1038 (sparc_fill_rwindow): Make public. Merge functionality with
1039 sparc64_fill_rwindow.
1040 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1041 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1042 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1043 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1044 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1045
7e6d0ac8
MK
1046 * reggroups.c: Add whitespace after declarations of local
1047 variables in functions.
1048
72e5f484
MC
10492003-08-21 Michael Chastain <mec@shout.net>
1050
1051 * gdbtypes.h: Change array bound type from an int to enum.
1052
435ac228
AC
10532003-08-21 Andrew Cagney <cagney@redhat.com>
1054
1055 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1056 * config/sparc/tm-sparc.h: Ditto.
1057 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1058 unconditionally.
1059 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1060
0d0e1a63
MK
10612003-07-13 Mark Kettenis <kettenis@gnu.org>
1062
1063 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1064 (register_objfile_data, set_objfile_data, objfile_data): New
1065 prototypes.
1066 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1067 prototypes.
1068 (allocate_objfile): Call objfile_alloc_data.
1069 (free_objfile): Call objfile_free_data.
1070 (struct objfile_data): New.
1071 (struct objfile_data_registration): New.
1072 (struct objfile_data_registry): New.
1073 (objfile_data_registry): New variable.
1074 (register_objfile_data): New function.
1075 (objfile_alloc_data, objfile_free_data): New functions.
1076 (set_objfile_data, objfile_data): New functions.
1077 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1078 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1079 (_initialize_dwarf2_frame): New function and prototype.
1080
d90cf509
AC
10812003-08-21 Andrew Cagney <cagney@redhat.com>
1082
1083 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1084 a specific architecture.
1085 * arch-utils.h (set_architecture_from_arch_mach): Delete
1086 declaration.
1087 (target_architecture_hook): Delete declaration.
1088 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1089 (default_float_format): Assume GDB_MULTI_ARCH.
1090 (default_double_format): Assume GDB_MULTI_ARCH.
1091 (set_endian_from_file): Delete function.
1092 (arch_ok): Delete function.
1093 (set_arch): Delete function.
1094 (set_architecture_from_arch_mach): Delete function.
1095 (set_architecture_from_file): Delete function.
1096 (set_architecture): Assume GDB_MULTI_ARCH.
1097 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1098
8b39fe56
MK
10992003-08-21 Mark Kettenis <kettenis@gnu.org>
1100
1101 Rewrite FreeBSD/sparc64 native configuration.
1102 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1103 * sparc64fbsd-nat.c: New file.
1104 * sparc64fbsd-tdep.c: New file.
1105 * sparc64-tdep.c sparc64-tdep.h: New files.
1106 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1107 sparc64fbsd-tdep.o): New dependencies.
1108 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1109 and sparc64fbsd-tdep.c.
1110 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1111 * config/sparc/fbsd.mh: Remove copyright notice.
1112 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1113 sparcbsd-nat.o.
1114 * config/sparc/fbsd.mt: Remove copyright notice.
1115 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1116 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1117 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1118 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1119 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1120 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1121 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1122 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1123 "sparc/tm-sp64.h".
1124 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1125 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1126
a7f19c79
MC
11272003-08-21 Michael Chastain <mec@shout.net>
1128
1129 * symtab.h: Add doco on the space critical structures and
1130 some measurements of space usage.
1131
da08ea5b
MS
11322003-08-21 Michael Snyder <msnyder@redhat.com>
1133
1134 * tracepoint.c (trace_dump_command): Trace break address
1135 is subject to DECR_PC_AFTER_BREAK.
1136 (set_traceframe_context): Make "trace_line" an int.
1137 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1138
6df2bf50
MS
11392003-08-20 Michael Snyder <msnyder@redhat.com>
1140
1141 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1142 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1143 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1144 argument passing.
1145 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1146 functions, replace sh_push_dummy_call.
1147 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1148
0955bbf0
MC
11492003-08-20 Michael Chastain <mec@shout.net>
1150
1151 * gdbtypes.h (struct main_type): Rearrange to save space.
1152
260a4188
MS
11532003-08-20 Michael Snyder <msnyder@redhat.com>
1154
1155 * trad-frame.c: Comment typo fix.
1156
8baa6f92
KB
11572003-08-20 Michael Snyder <msnyder@redhat.com>
1158 Kevin Buettner <kevinb@redhat.com>
1159
1160 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1161 (frv_frame_init_saved_regs): Add declaration.
1162 (frame_extra_info): Add new field ``saved_regs''.
1163 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1164 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1165 Update frame related code.
1166 (frv_extract_struct_value_address): Adjust formatting.
1167 * Makefile.in (frv-tdep.o): Update dependencies.
1168 * config/frv/tm-frv.h (target_insert_watchpoint)
1169 (target_remove_watchpoint, target_insert_hw_breakpoint)
1170 (target_remove_hw_breakpoint): Delete these macros.
1171 (remote_insert_watchpoint, remote_remove_watchpoint)
1172 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1173 these declarations.
1174
87193939
MC
11752003-08-20 Michael Chastain <mec@shout.net>
1176
1177 * defs.h (ENUM_BITFIELD): New macro.
1178 * symtab.h (ENUM_BITFIELD): Use it.
1179 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1180
062103ba
SA
11812003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1182
1183 * MAINTAINERS (write after approval): Add myself.
1184
8b148df9
AC
11852003-08-18 Andrew Cagney <cagney@redhat.com>
1186
1187 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1188 * gdbarch.h, gdbarch.c: Re-generate.
1189 * infcall.c (call_function_by_hand): Adjust the SP by
1190 frame_red_zone_size before allocating any stack space.
1191 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1192 * x86-64-tdep.c (x86_64_frame_align): New function.
1193 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1194
1195 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1196 Remove code adjusting SP so that it skips over the Red Zone.
1197
954a4db8
MK
11982003-08-18 Mark Kettenis <kettenis@gnu.org>
1199
1200 * NEWS (New native configurations): Mention FreeBSD/amd64.
1201
1a241548
AC
12022003-08-18 Andrew Cagney <cagney@redhat.com>
1203
1204 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1205 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1206 "m68k_frame_p".
1207 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1208
f82b2acd
MK
12092003-08-18 Mark Kettenis <kettenis@gnu.org>
1210
1211 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1212
4056d258
ML
12132003-08-18 Michal Ludvig <mludvig@suse.cz>
1214
1215 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1216 Define.
1217 * i386-linux-nat.c: Include "linux-nat.h".
1218 (child_post_startup_inferior): New function.
1219
99ab4326
MK
12202003-08-18 Mark Kettenis <kettenis@gnu.org>
1221
1222 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1223 at the start of a frameless function. This probably fixes PR
1224 backtrace/1338.
1225
c8d5f0d6
MC
12262003-08-17 Michael Chastain <mec@shout.net>
1227
1228 * symfile.c (find_sym_fns): Remove special case for apollo target.
1229
9016a515
DJ
12302003-08-17 Daniel Jacobowitz <drow@mvista.com>
1231
1232 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1233 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1234 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1235 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1236 (linux_supports_tracevforkdone): New function.
1237 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1238 TRACEVFORKDONE.
1239 (child_follow_fork): Handle vfork.
1240 (linux_handle_extended_wait): Likewise. Also handle exec.
1241 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1242 * NEWS: Mention fork tracing.
1243
c538c11c
DJ
12442003-08-17 Daniel Jacobowitz <drow@mvista.com>
1245
1246 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1247
4de4c07c
DJ
12482003-08-17 Daniel Jacobowitz <drow@mvista.com>
1249
1250 * Makefile.in (i386-linux-nat.o): Update dependencies.
1251 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1252 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1253 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1254 * i386-linux-nat.c: Include "linux-nat.h".
1255 (child_post_startup_inferior): New function.
1256 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1257 * infptrace.c (kill_inferior): Wrap in #ifdef.
1258 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1259 attaching to each LWP.
1260 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1261 (init_lin_lwp_ops): Fill in some more operations.
1262 * linux-nat.h (linux_enable_event_reporting)
1263 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1264 prototypes.
1265 * linux-nat.c (linux_enable_event_reporting): New function.
1266 (child_post_attach, linux_child_post_startup_inferior)
1267 (child_post_startup_inferior, child_follow_fork)
1268 (linux_handle_extended_wait, kill_inferior): New functions.
1269
7996bcec
AC
12702003-08-16 Andrew Cagney <cagney@redhat.com>
1271
1272 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1273 * gdbarch.h, gdbarch.c: Re-generate.
1274
3d48a7a0
MK
12752003-08-16 Mark Kettenis <kettenis@gnu.org>
1276
1277 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1278
7989c619
AC
12792003-08-16 Andrew Cagney <cagney@redhat.com>
1280
1281 * NEWS: Mention that "set prompt-escape-char" was deleted.
1282 * top.c (get_prompt_1): Delete function.
1283 (gdb_prompt_escape):
1284 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1285 prompt-escape-char" command.
1286 (MAX_PROMPT_SIZE): Delete macro.
1287 (get_prompt): Simplify, do not call get_prompt_1.
1288
07978cd8
AC
12892003-08-16 Andrew Cagney <cagney@redhat.com>
1290
1291 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1292 -Werror. -Wformat-nonliteral problems.
1293
3ff7cf9e
JB
12942003-08-15 J. Brobecker <brobecker@gnat.com>
1295
1296 Further multiarching work mostly for hppa64-*-hpux11:
1297 * hppa-tdep.h: New file.
1298 * hppa-tdep.c: #include hppa-tdep.c.
1299 (hppa32_num_regs): Renamed from hppa_num_regs.
1300 (hppa64_num_regs): New constant.
1301 (hppa64_call_dummy_breakpoint_offset): New constant.
1302 (hppa32_call_dummy_length): New constant.
1303 (hppa64_call_dummy_length): New constant.
1304 (hppa32_stack_align): Make name 32bit explicit.
1305 (hppa32_register_virtual_type): Likewise.
1306 (hppa32_extract_return_value): Likewise.
1307 (hppa32_use_struct_convention): Likewise.
1308 (hppa32_store_return_value): Likewise.
1309 (hppa64_register_virtual_type): New function.
1310 (hppa64_extract_return_value): New function.
1311 (hppa64_use_struct_convention): New function.
1312 (hppa64_store_return_value): New function.
1313 (hppa_frame_locals_address): Remove declaration, function does
1314 not exist anymore.
1315 (hppa_register_byte): Add support for PA64 ABI.
1316 (hppa_gdbarch_init): Add support for PA64 ABI.
1317 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1318 Make name 32bit explicit.
1319 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1320 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1321 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1322 (hppa64_hpux_frame_base_before_sigtramp): New function.
1323 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1324 * config/pa/tm-hppa64.h: Remove macros that are no longer
1325 necessary now that the gdbarch vector is properly setup.
1326 Transform some macros into function calls. Some minor cleanup.
1327 * config/pa/tm-hppah.h: Update function calls in macros
1328 following the function renaming in hppa-hpux-tdep.c.
1329 * Makefile.in (hppa_tdep_h): New variable.
1330 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1331
5d05ca6d
MS
13322003-08-14 Michael Snyder <msnyder@redhat.com>
1333
1334 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1335
37ba2569
JB
13362003-08-13 J. Brobecker <brobecker@gnat.com>
1337
1338 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1339 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1340 routine.
1341
aed7f26a
MS
13422003-08-13 Michael Snyder <msnyder@redhat.com>
1343
1344 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1345 (frv_saved_pc_after_call): Use deprecated ftype.
1346 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1347 (frv_remote_translate_xfer_address): Remove.
1348 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1349
752d4ac1
JB
13502003-08-13 J. Brobecker <brobecker@gnat.com>
1351
1352 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1353 initialization after the common gdbarch initialization, not before.
1354
1426ac1d
JB
13552003-08-13 J. Brobecker <brobecker@gnat.com>
1356
1357 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1358 (ADDR_BITS_REMOVE): Remove, redundant.
1359
b6fbdd1d
JB
13602003-08-13 J. Brobecker <brobecker@gnat.com>
1361
1362 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1363 gdbarch method to clear the 2 low bits of text addresses.
1364
44160db3
AC
13652003-08-12 Andrew Cagney <cagney@redhat.com>
1366
1367 * Makefile.in (dsrec.o): Update dependencies.
1368 * dsrec.c: Include "gdb_assert.h".
1369 (make_srec): Use snprintf instead of sprintf, use a literal format
1370 string.
1371
bcf7d3ca
AC
13722003-08-12 Andrew Cagney <cagney@redhat.com>
1373
1374 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1375 FRAME_OBSTACK_ZALLOC.
1376
49ed40de
KB
13772003-08-12 Kevin Buettner <kevinb@redhat.com>
1378
1379 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1380 SSE registers.
1381
b246147c
MK
13822003-08-10 Mark Kettenis <kettenis@gnu.org>
1383
1384 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1385 amd64fbsd_sc_reg_offset): Add extern declarations.
1386 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1387 declarations.
1388
d95fdc0d
BE
13892003-08-11 Ben Elliston <bje@wasabisystems.com>
1390
1391 * MAINTAINERS (write after approval): Update my mail address.
1392
cf6a0e73
AC
13932003-08-10 Andrew Cagney <cagney@redhat.com>
1394
1395 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1396
f837910f
MK
13972003-08-10 Mark Kettenis <kettenis@gnu.org>
1398
e2dbbd2d
MK
1399 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1400 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1401 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1402 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1403 i386bsd_sc_reg_offset): Add extern declarations.
1404 * i386obsd-nat.c: Include "i386-tdep.h"
1405 (_initialize_i386obsd_nat): Remove extern declarations.
1406 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1407 declarations.
1408 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1409 declarations.
1410
f837910f
MK
1411 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1412 instead of frame_read_register.
1413 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1414 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1415 SP_REGNUM.
1416 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1417 instead of frame_unwind_unsigned_register. Use
1418 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1419 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1420 instead of read_register. Use builtin_type_void_data_ptr instead
1421 of builtin_type_void_func_ptr when extracting the address of the
1422 jmp_buf.
1423 (i386_extract_return_value, i386_store_return_value,
1424 i386_pseudo_register_read, i386_pseudo_register_write): Use
1425 register_size instead REGISTER_RAW_SIZE.
1426
edcf254d
AC
14272003-08-10 Andrew Cagney <cagney@redhat.com>
1428
1429 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1430 sprintf. Make "name" constant.
1431
26604a34
MK
14322003-08-10 Mark Kettenis <kettenis@gnu.org>
1433
192285c6
MK
1434 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1435 instead of frame_read_register.
f837910f
MK
1436 (i387_print_float_info): Use get_frame_register and
1437 get_frame_register_unsigned instead of frame_register_read.
192285c6 1438
f0925262
MK
1439 * i386fbsd-nat.c: Include "i386-tdep.h".
1440 (child_resume): Make `eflags' an ULONGEST. Use
1441 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1442 instead of register_read and register_write.
1443
a144416f
MK
1444 * i386bsd-nat.c (fetch_inferior_registers,
1445 store_inferior_registers): Don't use && at the end of a line.
1446 (_initialize_i386bsd_nat): Fix typo.
1447
fec74868
MK
1448 * frame.c (_initialize_frame): Add missing backslash.
1449
87232496
MK
1450 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1451 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1452 and supply_register instead of manipulating the register buffer
1453 directly.
1454
c9b9de0b
MK
1455 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1456 * config/i386/nm-i386sol2.h
1457 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1458
26604a34
MK
1459 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1460 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1461 instructions that GCC likes to mingle into the prologue. Fixes
1462 gdb/1253 and gdb/1255.
1463
25d29d70
AC
14642003-08-09 Andrew Cagney <cagney@redhat.com>
1465
1466 Fix GDB PR cli/926.
1467 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1468 * command.h (add_setshow_uinteger_cmd): Declare.
1469 * frame.c (set_backtrace_cmd): New function.
1470 (show_backtrace_cmd): New function.
1471 * frame.c (_initialize_frame): Replace "set/show
1472 backtrace-below-main" with "set/show backtrace past-main". Add
1473 command "set/show backtrace limit".
1474 (backtrace_past_main): Rename "backtrace_below_main".
1475 (backtrace_limit): New variable.
1476 (get_prev_frame): Update. Check the backtrace_limit.
1477
9ebf4acf
AC
14782003-08-09 Andrew Cagney <cagney@redhat.com>
1479
1480 * defs.h (xstrprintf): Declare.
1481 * utils.c (xstrprintf): New function.
1482 * breakpoint.c (insert_breakpoints): Replace sprintf and
1483 non-literal format strings, with xstrprintf and cleanups.
1484 (delete_breakpoint,breakpoint_re_set): Ditto.
1485 (commands_command, insert_breakpoints): Ditto.
1486 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1487 (break_at_finish_command_1): Ditto.
1488
3771659b
AC
14892003-08-09 Andrew Cagney <cagney@redhat.com>
1490
1491 * MAINTAINERS (language support): List Adam Fedor as Objective C
1492 maintainer.
1493
b4263afa
JB
14942003-08-08 J. Brobecker <brobecker@gnat.com>
1495
1496 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1497 are now multiarched.
1498
d84defb1
JB
14992003-08-08 J. Brobecker <brobecker@gnat.com>
1500
1501 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1502 longer necessary now that hppa64 is partially multiarch'ed.
1503
f786f615
AC
15042003-08-08 Andrew Cagney <cagney@redhat.com>
1505
1506 * interps.c (interp_set): Check for a NULL "old_interp".
1507
c938e9b0
L
15082003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1509
1510 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1511 (install-only): Support DESTDIR.
1512 (uninstall): Likewise.
1513 (install-gdbtk): Likewise.
1514
9a146a11
EZ
15152003-08-08 Elena Zannoni <ezannoni@redhat.com>
1516
1517 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1518 contains something meaningful at all times.
1519
1520Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1521
62599e99 1522 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1523
56296155
BC
1524Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1525
62599e99 1526 * MAINTAINERS (write after approval): Added self.
56296155 1527
9710e734
AC
15282003-08-07 Andrew Cagney <cagney@redhat.com>
1529
1530 * inferior.h (AT_SYMBOL): Define.
1531 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1532 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1533 * mips-tdep.c (mips_call_dummy_address): Delete function.
1534 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1535 set call_dummy_address.
1536
98b3ab73
AC
15372003-08-07 Andrew Cagney <cagney@redhat.com>
1538
1539 * language.c (op_error): Delete function.
1540 (binop_type_check): Delete function.
1541 * language.h (type_op_error, range_op_error): Delete macros.
1542 (op_error): Delete declaration.
1543
2fcf52f0
AC
15442003-08-07 Andrew Cagney <cagney@redhat.com>
1545
1546 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1547
abd4220e 15482003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1549
abd4220e 1550 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1551 (x86_64_push_arguments): Skip the red zone.
abd4220e 1552
9dd5f34f
AC
15532003-08-05 Andrew Cagney <cagney@redhat.com>
1554
1555 * reggroups.c (reggroup_next): Check for the final entry.
1556
e5e78edc
AC
15572003-08-04 Andrew Cagney <cagney@redhat.com>
1558
ab4e3d93
AC
1559 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1560 * cli/cli-script.c (define_command): Call query directly, instead
1561 of passing it a buffer.
1562 * ocd.c (ocd_error): Pass error a constant format string.
1563 * remote-mips.c (mips_error): Use fputs_filtered.
1564
1062ca82
AC
1565 * solib-svr4.c (_initialize_svr4_solib): Update
1566 register_gdbarch_data call.
1567 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1568
fcc1c85c
AC
1569 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1570 (register_gdbarch_data): Delete "free" parameter. Update
1571 comments.
1572 * gdbarch.h, gdbarch.c: Re-generate.
1573 * reggroups.c (_initialize_reggroup): Update.
1574 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1575 * frame-base.c (_initialize_frame_base): Update.
1576 * frame-unwind.c (_initialize_frame_unwind): Update.
1577 * user-regs.c (_initialize_user_regs): Update.
1578 * remote.c (_initialize_remote): Update.
1579 * regcache.c (_initialize_regcache): Update.
1580
116f06ea
AC
1581 * regcache.c (xfree_regcache_descr): Delete function.
1582 (_initialize_regcache): Update call to register_gdbarch_data.
1583 (init_regcache_descr, init_legacy_regcache_descr): Use
1584 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1585
e5e78edc
AC
1586 * remote.c (free_remote_state): Delete function.
1587 (_initialize_remote): Update register_gdbarch_data.
1588 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1589 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1590
6c7d17ba
AC
15912003-08-04 Andrew Cagney <cagney@redhat.com>
1592
1593 * reggroups.c (struct reggroup_el): Define.
1594 (struct reggroups): Delete field "nr_group". Replace array
1595 "group" with a "first" to "last" linked list.
1596 (reggroups_init): Update. Allocate using gdbarch's obstack.
1597 (reggroups_free): Delete function.
1598 (add_group): Update. Add "el" parameter.
1599 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1600 (default_groups): Update.
1601 (reggroup_next): Replace reggroups.
1602 (reggroups_dump): Update.
1603 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1604 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1605 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1606
89b7795b
DJ
16072003-08-04 Daniel Jacobowitz <drow@mvista.com>
1608
1609 * Makefile.in (tui-interp.o): Update dependencies.
1610
306d9ac5
DC
16112003-08-04 David Carlton <carlton@kealia.com>
1612
1613 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1614 to internal_error call.
1615 * source.c (forward_search_command): Add "%s" format argument.
1616 (reverse_search_command): Ditto.
1617 * top.c (quit_confirm): Ditto.
1618 * cli/cli-setshow.c (do_setshow_command): Ditto.
1619 * cp-valprint.c (cp_print_class_method): Replace
1620 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1621 (cp_print_class_member): Ditto.
1622 * event-top.c (command_line_handler): Ditto.
1623 * linux-proc.c (linux_info_proc_cmd): Ditto.
1624 * p-typeprint.c (pascal_type_print_base): Ditto.
1625 * p-valprint.c (pascal_object_print_class_method): Ditto.
1626 (pascal_object_print_class_member): Ditto.
1627 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1628 * remote.c (remote_cisco_section_offsets): Ditto.
1629 * top.c (command_line_input): Ditto.
1630 * utils.c (vwarning,error_stream,quit): Ditto.
1631 * valprint.c (print_floating,print_binary_chars)
1632 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1633
57bfe177
AC
16342003-08-04 Andrew Cagney <cagney@redhat.com>
1635
1636 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1637
e546b999
AC
16382003-08-02 Andrew Cagney <cagney@redhat.com>
1639
1640 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1641 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1642 amd64fbsd-nat.c.
1643
91092ee5
AC
16442003-08-02 Andrew Cagney <cagney@redhat.com>
1645
1646 * Makefile.in: Update all dependencies and definitions.
1647
889f28e2
AF
16482003-08-02 Adam Fedor <fedor@gnu.org>
1649
1650 * linespec.c (is_objc_method_format): New function
1651 (decode_line_1, locate_first_half): Use it.
1652 Fixes PR objc/1298
1653
880bc914
AC
16542003-08-01 Andrew Cagney <cagney@redhat.com>
1655
1656 * NEWS: Mention that m32r is multi-arch.
1657 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1658 * configure.tgt: Recognize m32r-*-*.
1659 * config/m32r/tm-m32r.h: Delete file.
1660 * config/m32r/m32r.mt: New file.
1661 * m32r-rom.c (m32r_upload_command): Use hostent only when
1662 gethostname succeeds, in order to avoid a compilation
1663 warning.
1664 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1665 compiler warning.
1666
19f59343
MS
16672003-08-01 Michael Snyder <msnyder@redhat.com>
1668
1669 * sh-tdep.c (sh_frame_align): New gdbarch method.
1670 (sh_gdbarch_init): Set up frame_align method.
1671
4e7d7511
MS
16722003-07-31 Michael Snyder <msnyder@redhat.com>
1673
1674 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1675 which is already covered by the new frames infrastructure.
1676
63022984
AC
16772003-07-31 Andrew Cagney <cagney@redhat.com>
1678
1679 * user-regs.c (struct user_reg): Add "next" link.
1680 (struct user_regs): Replace "user" with "first" and "last" links.
1681 (append_user_reg): Add pre-allocated "reg" parameter.
1682 (builtin_user_regs): Provide initial value for "last".
1683 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1684 (user_regs_init): Allocate memory from the gdbarch obstack.
1685 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1686 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1687 linked list.
1688 (usernum_to_user_reg): New function.
1689 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1690 (value_of_user_reg): Use usernum_to_user_reg.
1691 (user_regs_free): Delete function.
1692 (_initialize_user_regs): Update register_gdbarch_data call.
1693
7cf6e574
DJ
16942003-07-31 Daniel Jacobowitz <drow@mvista.com>
1695
1696 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1697
c48a845b
MS
16982003-07-30 Michael Snyder <msnyder@redhat.com>
1699
4e7d7511 1700 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1701 * infcall.c (call_function_by_hand): Pass struct_addr to
1702 value_being_returned.
1703 * infcmd.c (print_return_value): Pass zero as struct_addr.
1704 * values.c (value_being_returned): If struct_addr is passed,
1705 use it instead of trying to recover it from the inferior.
1706
f0d8db19
KB
17072003-07-30 Kevin Buettner <kevinb@redhat.com>
1708
1709 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1710 the prologue analyzer won't need to attempt to extract the pc
1711 value from the woefully incomplete dummy frame.
1712 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1713 possible. Disable code which modifies the frame.
1714
e5c113a1
AC
17152003-07-28 Andrew Cagney <cagney@redhat.com>
1716
1717 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1718 to level 2.
1719 (annotate_breakpoints_table, annotate_record): Ditto.
1720 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1721 (annotate_field_name_end, annotate_field_value): Ditto.
1722 (annotate_field_end, annotate_frame_source_begin): Ditto.
1723 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1724 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1725 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1726 (annotate_frame_address_end, annotate_frame_address): Ditto.
1727 (annotate_frame_args, annotate_frame_end): Ditto.
1728 (annotate_frame_where, annotate_arg_begin): Ditto.
1729 (annotate_arg_name_end, annotate_arg_value): Ditto.
1730 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1731 (annotate_function_call, annotate_signal_name): Ditto.
1732 (annotate_signal_string, annotate_signal_name_end): Ditto.
1733 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1734 (annotate_value_begin, annotate_value_history_value): Ditto.
1735 (annotate_value_history_end, annotate_value_end): Ditto.
1736 (annotate_display_begin, annotate_display_number_end): Ditto.
1737 (annotate_display_format, annotate_display_expression): Ditto.
1738 (annotate_display_expression_end, annotate_display_value): Ditto.
1739 (annotate_display_end, annotate_array_section_begin): Ditto.
1740 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1741 (annotate_elt, annotate_array_section_end): Ditto.
1742
bb1db049
AC
17432003-07-28 Andrew Cagney <cagney@redhat.com>
1744
1745 * regcache.c (struct regcache_descr): Update comments on
1746 nr_raw_registers.
1747 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1748 sizeof_raw_register_valid_p.
1749 (init_regcache_descr): Set nr_raw_registers and
1750 sizeof_raw_register_valid_p before calling
1751 init_legacy_regcache_descr.
1752
20e6603c
AC
17532003-07-28 Andrew Cagney <cagney@redhat.com>
1754
1755 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1756 MOD NUM_REGS.
1757
db742940
DJ
17582003-07-28 Daniel Jacobowitz <drow@mvista.com>
1759
1760 * thread.c (info_threads_command): Use get_selected_frame ().
1761 Check that there is at least one non-sentinel frame.
1762
ce7f4371
SC
17632003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1764
1765 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1766 (m68hc11_pop_frame): Remove.
1767 (m68hc11_frame_saved_pc): Remove.
1768 (m68hc11_frame_chain): Remove.
1769 (m68hc11_frame_init_saved_regs): Remove.
1770 (m68hc11_init_extra_frame_info): Remove.
1771 (m68hc11_store_struct_return): Remove.
1772 (m68hc11_saved_pc_after_call): Remove.
1773
1ea653ae
SC
17742003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1775
1776 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1777 frame unwind information.
1778 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1779 and adapted for frame unwinding.
1780 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1781 (m68hc11_unwind_pc): New function.
1782 (m68hc11_frame_unwind_cache): New function to analyze frames.
1783 (m68hc11_frame_this_id): New function to create new frame struct.
1784 (m68hc11_frame_prev_register): New function to unwind a register from
1785 the frame.
1786 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1787 (m68hc11_frame_p): New function for the above.
1788 (m68hc11_frame_base_address): New function to return fp of frame.
1789 (m68hc11_frame_args_address): Update for frame.
1790 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1791 (m68hc11_unwind_sp): New function.
1792 (m68hc11_unwind_dummy_id): New function.
1793 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1794 calls.
1795
c8a7f6ac
SC
17962003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1797
1798 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1799 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1800 when we are beyond the current pc.
1801
3dc990bf
SC
18022003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1803
1804 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1805 from m68hc11_push_arguments.
1806 (m68hc11_push_arguments): Remove.
1807 (m68hc11_push_return_address): Remove.
1808 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1809 handlers; remove deprecated_extra_stack_alignment_needed.
1810
222e5d1d
AC
18112003-07-27 Andrew Cagney <cagney@redhat.com>
1812
1813 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1814 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1815 REAL_PC and not the pointer.
1816 * hppa-hpux-tdep.c: Include frame.h
1817
a7e9a47e
AC
18182003-07-27 Andrew Cagney <cagney@redhat.com>
1819
1820 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1821 GDB_MULTI_ACH_PARTIAL.
1822
7e3dd49e
AC
18232003-07-27 Andrew Cagney <cagney@redhat.com>
1824
1825 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1826 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1827 operator at start and not end of line.
1828 (decode_prologue): Ditto.
1829 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1830 frame_unwind_register_unsigned instead of
1831 frame_unwind_unsigned_register.
1832 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1833 read_register.
1834 (m32r_push_dummy_call): Use register_size instead of
1835 REGISTER_RAW_SIZE.
1836 (m32r_frame_sniffer): Replace m32r_frame_p.
1837 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1838 * m32r-rom.c (report_transfer_performance): Delete extern
1839 declaration.
1840 (m32r_load, m32r_upload_command): Use print_transfer_performance
1841 instead of report_transfer_performance.
1842 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1843 / add_show_from_set.
1844
0880807f
AC
18452003-07-26 Andrew Cagney <cagney@redhat.com>
1846
1847 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1848 store_return_value and extract_struct_value_address.
1849
64ae9269
DJ
18502003-07-26 Daniel Jacobowitz <drow@mvista.com>
1851
1852 PR c++/1267
1853 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1854 NULL, default to the section containing PC.
1855
e286caf2
SC
18562003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1857
1858 * NEWS: Mention "regs" deprecated for m68hc11 too.
1859
1860 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1861 (m68hc11_print_register): New function to print out one register.
1862 (m68hc11_print_registers_info): New function to print registers.
1863 (show_regs): Deprecate and use the above.
1864 (m68hc11_gdbarch_init): Install the print_registers_info.
1865
705b278b
JJ
18662003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1867
1868 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1869 that we have a SIGTRAP before returning non-zero.
1870
63cd4198
EZ
18712003-07-23 Michal Ludvig <mludvig@suse.cz>
1872 Elena Zannoni <ezannoni@redhat.com>
1873
1874 * linespec.c (decode_line_2): Avoid crash if
1875 find_function_start_sal() returns empty record.
1876
6926787d
AS
18772003-07-23 Andreas Schwab <schwab@suse.de>
1878
1879 * ia64-tdep.c (ia64_print_insn): New function.
1880 (ia64_gdbarch_init): Set print_insn to it.
1881 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1882 deprecated_tm_print_insn_info.
1883
708cc1b6
MS
18842003-07-22 Michael Snyder <msnyder@redhat.com>
1885
1886 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1887 handle 8-bit returns (long long).
1888 (h8300h_extract_return_value): Ditto.
1889 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1890
aebd7893
AC
18912003-07-22 Andrew Cagney <cagney@redhat.com>
1892
1893 * gdbarch.c Include "gdb_obstack.h".
1894 (struct gdbarch): Add an "obstack".
1895 (alloc_gdbarch_data): Allocate the gdbarch data using
1896 GDBARCH_OBSTACK_CALLOC.
1897 (free_gdbarch_data): Delete function.
1898 (gdbarch_obstack_zalloc): New function.
1899 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1900 Assert that the architecture is not initialized.
1901 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1902 vector from the obstack.
1903 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1904 architecture obstack.
1905 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1906 (set_gdbarch_data): Assert that the data is not initialized.
1907 (struct gdbarch_data): Delete member "free".
1908 (register_gdbarch_data): Do not initialize "free".
1909 * gdbarch.h, gdbarch.c: Re-generate.
1910
153721e6
AC
19112003-07-22 Andrew Cagney <cagney@redhat.com>
1912
1913 * configure.in (build_warnings): Add -Wformat-nonliteral.
1914 * configure: Re-generate.
1915
c193f044 19162003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
1917
1918 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 1919
c3228f12
EZ
19202003-07-22 Elena Zannoni <ezannoni@redhat.com>
1921
1922 * findvar.c (read_var_value): Remove case for thread local storage
1923 variables. It is now entirely handled by the dwarf2 location
1924 expression code.
1925 * printcmd.c (address_info): Ditto.
1926 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1927 enumeration value.
1928 (struct symbol): Remove objfile field, which was used by
1929 LOC_THREAD_LOCAL_STATIC only.
1930 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1931 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1932 usage of objfile pointer.
1933 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1934 thread local variables.
1935 Add include of objfiles.h.
1936 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1937 storage variables.
1938 * Makefile.in (dwarf2loc.o): Update dependencies.
1939
aef9bcd2
AC
19402003-07-22 Andrew Cagney <cagney@redhat.com>
1941
1942 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1943 get_frame_base.
1944 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1945 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1946 (struct value): Add opaque declaration.
1947 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1948
d95a8903
AC
19492003-07-21 Andrew Cagney <cagney@redhat.com>
1950
1951 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1952 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1953
4db73d49
SC
19542003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1955
1956 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1957 regcache_cooked_read_unsigned instead of read_register.
1958 (m68hc11_saved_pc_after_call): Likewise.
1959 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1960 instead of write_register.
1961 (m68hc11_register_type): New function.
1962 (m68hc11_register_virtual_type): Remove.
1963 (m68hc11_store_return_value): Convert to use the regcache.
1964 (m68hc11_extract_struct_value_address): Likewise.
1965 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1966 m68hc11_register_type; undeprecate store_return_value and
1967 extract_struct_value_address.
1968
ef2b8fcd
SC
19692003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1970
1971 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1972 and translate to use regcache.
1973 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1974
625b0b97
AC
19752003-07-18 Andrew Cagney <cagney@redhat.com>
1976
1977 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1978 * gdbarch.h, gdbarch.c: Re-generate.
1979 * i386-tdep.c (i386_gdbarch_init): Do not set
1980 DWARF2_BUILD_FRAME_INFO.
1981 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1982 unconditionally.
1983 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1984 DWARF2_BUILD_FRAME_INFO.
1985
22b0d388
AC
19862003-07-18 Andrew Cagney <cagney@redhat.com>
1987
1988 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1989 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1990
1ce5d6dd
AC
19912003-07-18 Andrew Cagney <cagney@redhat.com>
1992
1993 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1994 frame_unwind_address_in_block, instead of frame_pc_unwind.
1995 (dwarf2_frame_cache): Ditto.
1996
e6e5e94c
AC
19972003-07-18 Andrew Cagney <cagney@redhat.com>
1998
1999 * user-regs.h (struct gdbarch): Declare opaque.
2000 * ui-out.h (struct ui_file): Declare opaque.
2001 * dwarf2-frame.h (struct frame_info): Declare opaque.
2002
5483d879
KW
20032003-07-18 Kris Warkentin <kewarken@qnx.com>
2004
2005 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2006 #include "...".
2007 (procfs_meminfo): Change strerror to safe_strerror.
2008 (procfs_can_run): Remove K&R badness.
2009
278a7cf7
MS
20102003-07-17 Michael Snyder <msnyder@redhat.com>
2011
2012 * remote-sim.c: Comment typo fix.
2013
606e3b82
AC
20142003-07-17 Andrew Cagney <cagney@redhat.com>
2015
2016 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2017 configure.
2018 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2019 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2020 GDB_MULTI_ARCH_PARTIAL.
2021
c43af07c
EZ
20222003-07-17 Elena Zannoni <ezannoni@redhat.com>
2023
2024 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2025 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2026 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2027
3b85b0f1
TR
20282003-07-16 Theodore A. Roth <troth@openavr.org>
2029
2030 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2031 found.
2032 (avr_frame_unwind_cache): Don't unwind FP for main.
2033 Update a comment.
2034 Save the computed prev_sp.
2035 (avr_saved_regs_unwinder): Remove function.
2036 (avr_frame_prev_register): Use PC unwind logic from
2037 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2038
336d1bba
AC
20392003-07-16 Andrew Cagney <cagney@redhat.com>
2040
2041 * frame-base.h (frame_base_p_ftype): Delete definition.
2042 (frame_base_append_predicate): Delete declaration.
2043 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2044 (frame_unwind_append_predicate): Delete declaration.
2045 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2046 (append_predicate): Delete parameter "p".
2047 (frame_unwind_append_predicate): Delete function.
2048 (frame_unwind_append_sniffer): Update call to append_predicate.
2049 (frame_unwind_free): Delete function.
2050 (_initialize_frame_unwind): Pass NULL as "free" to
2051 register_gdbarch_data.
2052 (frame_unwind_init): Append the dummy_frame_sniffer.
2053 (frame_unwind_find_by_frame): Simplify.
2054 * frame-base.c (struct frame_base_table): Delete field "p".
2055 (append_predicate): Delete parameter "p".
2056 (frame_base_append_predicate): Delete function.
2057 (frame_base_append_sniffer): Update call to append_predicate.
2058 (frame_base_free): Delete function.
2059 (frame_base_find_by_frame): Simplify.
2060 (_initialize_frame_base): Pass NULL as "free" to
2061 register_gdbarch_data.
2062 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2063 (x86_64_sigtramp_frame_sniffer): Replace
2064 "x86_64_sigtramp_frame_p".
2065 (x86_64_init_abi): Set the frame unwind sniffers.
2066 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2067 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2068 (m68k_gdbarch_init): Set the frame unwind sniffers.
2069 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2070 "i386_sigtramp_frame_p".
2071 (i386_frame_sniffer): Replace "i386_frame_p".
2072 (i386_gdbarch_init): Set the frame unwind sniffers.
2073 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2074 (avr_gdbarch_init): Set the frame unwind sniffers.
2075 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2076 "alpha_sigtramp_frame_p"
2077 (alpha_heuristic_frame_sniffer): Replace
2078 "alpha_heuristic_frame_p".
2079 (alpha_gdbarch_init): Set the frame unwind sniffers.
2080 (alpha_dwarf2_init_abi): Ditto.
2081 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2082 "alpha_debug_frame_p".
2083 (alpha_mdebug_frame_base_sniffer): Replace
2084 "alpha_mdebug_frame_base_p".
2085 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2086 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2087 (d10v_gdbarch_init): Set the frame unwind sniffer.
2088 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2089 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2090 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2091 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2092 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2093 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2094
48db5a3c
CV
20952003-07-16 Michael Snyder <msnyder@redhat.com>
2096
2097 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2098 should go thru sh_dsp_register_sim_regno, else the dsp regs
2099 will not get the right values.
2100
21012003-07-16 Corinna Vinschen <vinschen@redhat.com>
2102
2103 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2104 deprecated_store_floating by call to store_typed_floating.
2105 (sh_sh4_register_convert_to_raw): Substitute call to
2106 deprecated_extract_floating by call to extract_typed_floating.
2107
21082003-07-16 Corinna Vinschen <vinschen@redhat.com>
2109
2110 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2111
21122003-07-16 Corinna Vinschen <vinschen@redhat.com>
2113
2114 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2115 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2116 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2117 as possible.
2118 (do_pseudo_register): Remove.
2119 (sh_push_dummy_code): New function.
2120 (sh64_store_struct_return): Rename from sh_store_struct_return.
2121 Only called for sh64 now.
2122 (sh_extract_struct_value_address): Regcache'ify.
2123 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2124 and accomodate new tasks.
2125 (sh64_push_return_address): Rename from sh_push_return_address.
2126 Only called for sh64 now.
2127 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2128 Regcache'ify.
2129 (sh3e_sh4_extract_return_value): Regcache'ify.
2130 (sh_default_store_return_value): Ditto.
2131 (sh3e_sh4_store_return_value): Ditto.
2132 (sh_default_register_byte): Remove.
2133 (sh_sh4_register_byte): Remove.
2134 (sh_default_register_raw_size): Remove.
2135 (sh_sh4_register_raw_size): Remove.
2136 (sh_register_virtual_size): Remove.
2137 (sh_sh3e_register_virtual_type): Remove.
2138 (sh_sh3e_register_type): New function.
2139 (sh_sh4_register_virtual_type): Remove.
2140 (sh_sh4_register_type): New function.
2141 (sh_default_register_virtual_type): Remove.
2142 (sh_default_register_type): New function.
2143 (do_fv_register_info): Add parameters to accomodate call from
2144 sh_print_registers_info.
2145 (do_dr_register_info): Ditto.
2146 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2147 Add parameters to accomodate call from sh_print_registers_info.
2148 (sh_do_fp_register): Ditto.
2149 (sh64_do_pseudo_register): Call do_dr_register_info,
2150 do_fv_register_info and sh_do_fp_register with default parameters.
2151 (sh_do_register): Add parameters to accomodate call from
2152 sh_print_registers_info.
2153 (sh_print_register): Ditto.
2154 (sh_print_registers_info): Rename from sh_do_registers_info.
2155 Add parameters to be used as gdbarch_print_registers_info
2156 implementation. Accomodate removed do_pseudo_register function
2157 pointer.
2158 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2159 function pointer. Call sh_print_register with default parameters.
2160 (sh64_do_registers_info): Call sh_print_registers_info instead of
2161 sh_do_registers_info.
2162 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2163 detection of deprecated vs. non-deprecated functionality.
2164 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2165 function pointer assignments by direct function calls.
2166
e8a89fe2
AC
21672003-07-15 Andrew Cagney <cagney@redhat.com>
2168
2169 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2170 (frame_register_unwind, create_new_frame): Ditto.
2171 (legacy_get_prev_frame, get_frame_type): Ditto.
2172 (get_frame_base_address): Use frame_base_find_by_frame.
2173 (get_frame_locals_address): Use frame_base_find_by_frame.
2174 (get_frame_args_address): Use frame_base_find_by_frame.
2175 * frame-base.h (frame_base_sniffer_ftype): Declare.
2176 (frame_base_append_sniffer): Declare.
2177 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2178 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2179 (frame_base_append_sniffer): New function.
2180 (frame_base_append_predicate): Add a NULL sniffer.
2181 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2182 (struct frame_base_table): Add "sniffer".
2183 (frame_base_free): Free the "sniffer" table.
2184 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2185 (frame_unwind_append_sniffer): Declare.
2186 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2187 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2188 (struct frame_unwind_table): Add "sniffer", delete "middle".
2189 (append_predicate): Add "sniffer" parameter, append the sniffer.
2190 (frame_unwind_init): Update append_predicate call.
2191 (frame_unwind_append_sniffer): New function.
2192 (frame_unwind_append_predicate): Update append_predicate call.
2193 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2194
0714963c
AC
21952003-07-15 Andrew Cagney <cagney@redhat.com>
2196
2197 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2198 before code inhibiting repeated unwind attempts. Add to
2199 commentary on that test's problems.
2200 * blockframe.c (inside_main_func): Look for "main" in the minimal
2201 symbol table.
2202 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2203 identical.
2204
d9170e22
AC
22052003-07-15 Andrew Cagney <cagney@redhat.com>
2206
2207 * complaints.c (struct explanation): Define.
2208 (struct complaints): Change type of "explanation" to "struct
2209 explanation".
2210 (symfile_explanations): Convert to a "struct explanation" table.
2211 (vcomplaint): Update.
2212
eba29c8c
ML
22132003-07-15 Michal Ludvig <mludvig@suse.cz>
2214
2215 * x86-64-linux-nat.c (regmap): Removed.
2216 (supply_gregset, fill_gregset): Call
2217 x86_64_linux_(fill,supply)_gregset functions.
2218 * x86-64-linux-tdep.c (USER_*): New defines.
2219 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2220 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2221 New functions.
2222 (fetch_core_registers): Ditto.
2223 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2224 * x86-64-linux-tdep.h: New file.
2225 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2226 and core-regset.o.
2227 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2228
68cc0bfb
MK
22292003-07-13 Mark Kettenis <kettenis@gnu.org>
2230
88a115f7
MK
2231 * x86-64-tdep.c (x86_64_store_return_value): Use
2232 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 2233
68cc0bfb
MK
2234 * configure.host: Add x86_64-*-freebsd*.
2235 * configure.tgt: Add x86_64-*-freebsd*.
2236 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2237 * amd64fbsd-nat.c: New file.
2238 * amd64fbsd-tdep.c: New file.
2239 * config/i386/nm-fbsd64.h: New file.
2240 * config/i386/fbsd64.mh: New file.
2241 * config/i386/fbsd64.mt: New file.
2242
138e7be5
MK
22432003-07-11 Mark Kettenis <kettenis@gnu.org>
2244
2245 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2246 `sc_regs_offset' and `sc_fpregs_offset'.
2247 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2248 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2249 (alpha_sigtramp_register_address): Rewrite to use new members of
2250 `struct gdbarch_tdep'.
2251 (alpha_gdbarch_init): Initialize new members of struct
2252 gdbarch_tdep'.
2253 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2254 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2255 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2256 (alphafbsd_pc_in_sigtramp): Implement.
2257 (alphafbsd_sigtramp_offset): New function.
2258 (alphafbsd_sigcontext_addr): New function.
2259 (alphafbsd_init_abi): Initialize signal trampoline related members
2260 of `struct gdbarch_tdep'.
2261 (_initialize_alphafbsd_tdep): Add prototype.
2262
95303a68
TR
22632003-07-11 Theodore A. Roth <troth@openavr.org>
2264
ba292e4c
TR
2265 * Makefile.in (install-only): Quote sed expression when generating
2266 transformed_name.
95303a68 2267
6896c0c7
RH
22682003-07-11 Richard Henderson <rth@redhat.com>
2269
2270 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2271 * dwarf2-frame.c: Include complaints.h.
2272 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2273 variable initialization; return NULL on error.
2274 (decode_frame_entry): New.
2275
8edd5d01
AC
22762003-07-11 Andrew Cagney <cagney@redhat.com>
2277
c4a09524
AC
2278 * frame.h (frame_address_in_block): Delete declaration.
2279 * blockframe.c (frame_address_in_block): Delete function.
2280 (get_frame_block): Use get_frame_address_in_block.
2281 (block_innermost_frame): Ditto.
2282 * stack.c (print_frame, backtrace_command_1): Ditto.
2283
8edd5d01
AC
2284 * frame.h (get_frame_address_in_block): Declare.
2285 (frame_unwind_address_in_block): Declare.
2286 * frame.c (frame_unwind_address_in_block): New function.
2287 (get_frame_address_in_block): New function.
2288
f7968451
AC
22892003-07-10 Andrew Cagney <cagney@redhat.com>
2290
2291 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2292 pre-default. Note: re-generate has no effect.
2293
ae99b398
AC
22942003-07-10 Andrew Cagney <cagney@redhat.com>
2295
2296 * gdbarch.sh: When a variable, but not a function, compare against
2297 0. Fix problem in previous patch.
2298 * gdbarch.c: Re-generate.
2299
956ac328
AC
23002003-07-10 Andrew Cagney <cagney@redhat.com>
2301
2302 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2303 functions against NULL, not 0.
2304 * gdbarch.c: Re-generate.
2305
287c3240
FF
23062003-07-10 Fred Fish <fnf@ninemoons.com>
2307
2308 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2309 null string instead of a null pointer.
2310 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2311
32f63c4b
MS
23122003-07-09 Michael Snyder <msnyder@redhat.com>
2313
2314 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2315
402ecd56
MK
23162003-07-09 Mark Kettenis <kettenis@gnu.org>
2317
2318 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2319 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2320 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2321 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2322 * x86-64-tdep.c: ... from here.
2323
c481dac7
AS
23242003-07-09 Andreas Schwab <schwab@suse.de>
2325
2326 * m68k-tdep.h (enum struct_return): Define.
2327 (struct gdbarch_tdep): Add struct_return.
2328 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2329 bytes are padded to the right, not to the left. Pass struct value
2330 address in register %a1, not on stack.
2331 (m68k_use_struct_convention): New function.
2332 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2333 struct_return in tdep to pcc_struct_return.
2334 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2335 reg_struct_return.
2336
64176fa3
JB
23372003-07-09 Joel Brobecker <brobecker@gnat.com>
2338
2339 * somread.c (som_symfile_offsets): Fix compilation error.
2340
96a4ee76
AC
23412003-07-09 Andrew Cagney <cagney@redhat.com>
2342
2343 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2344 Add comments about the checks.
2345
1517c6d1
AC
23462003-07-08 Andrew Cagney <cagney@redhat.com>
2347
2348 * Makefile.in: Make dependency section headers consistent.
2349 (config_h): Move to $BUILD headers section.
2350 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2351 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2352 (ada-exp.tab.c): Move to YACC/LEX section.
2353 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2354 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2355
dc5dd1eb
KW
23562003-07-08 Kris Warkentin <kewarken@qnx.com>
2357
2358 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
2359 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2360 of strerror with safe_strerror, use ISO C function definitions,
2361 and replace instances of sprintf with snprintf.
dc5dd1eb 2362
612dde91
AC
23632003-07-07 Andrew Cagney <cagney@redhat.com>
2364
2365 * frame.c (get_prev_frame): Enable check for identical frames.
2366 Update comments. Update error messages.
2367
492c11d3
JB
23682003-07-07 Joel Brobecker <brobecker@gnat.com>
2369
2370 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2371
376a5a49
JB
23722003-07-07 Joel Brobecker <brobecker@gnat.com>
2373
2374 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2375 sort_symtab_syms, no longer necessary.
2376
22b4a9ad
JB
23772003-07-07 Joel Brobecker <brobecker@gnat.com>
2378
2379 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2380
5bbcb741
JB
23812003-07-07 Joel Brobecker <brobecker@gnat.com>
2382
2383 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2384 (mips_register_byte): Likewise.
2385
c139e7d9
DJ
23862003-07-07 Daniel Jacobowitz <drow@mvista.com>
2387
2388 * Makefile.in (sparc_tdep_h): New.
2389 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2390 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2391 * sparc-linux-nat.c: Include "sparc-tdep.h".
2392 * sparc-nat.c: Likewise.
2393 * sparc-tdep.c: Likewise.
2394 * sparc64nbsd-nat.c: Likewise.
2395 * sparcnbsd-nat.c: Likewise.
2396 * sparcnbsd-tdep.c: Likewise.
2397 * sparc-tdep.h: New file.
2398 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2399 and sparc_npc_regnum.
2400
fd8f87c5
DJ
24012003-07-07 Daniel Jacobowitz <drow@mvista.com>
2402
2403 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2404 (mips_linux_cannot_store_register): List supported instead of
2405 unsupported registers.
2406
13adf674
DJ
24072003-07-07 Daniel Jacobowitz <drow@mvista.com>
2408
2409 * disasm.c (dump_insns): Separate instructions from addresses.
2410
8de307e0
AS
24112003-07-07 Andreas Schwab <schwab@suse.de>
2412
2413 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2414 dependencies.
2415 * m68k-tdep.c (NUM_FREGS): Delete.
2416 (SIG_PC_FP_OFFSET): Delete.
2417 (TARGET_M68K): Delete.
2418 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2419 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2420 P_MOVEL_SP, P_MOVEML_SP): Define.
2421 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2422 P_TRAP): Delete.
2423 (m68k_register_raw_size): Delete.
2424 (m68k_register_virtual_size): Delete.
2425 (m68k_register_type): Renamed from m68k_register_virtual_type and
2426 add gdbarch argument.
2427 (m68k_store_struct_return): Delete.
2428 (m68k_deprecated_extract_return_value): Delete.
2429 (m68k_deprecated_extract_struct_value_address): Delete.
2430 (m68k_frame_chain): Delete.
2431 (m68k_frame_saved_pc): Delete.
2432 (m68k_fix_call_dummy): Delete.
2433 (m68k_push_dummy_frame): Delete.
2434 (m68k_pop_frame): Delete.
2435 (m68k_extract_return_value): New function.
2436 (m68k_store_return_value): Rewrite using regcache.
2437 (m68k_extract_struct_value_address): Rewrite using regcache.
2438 (m68k_push_dummy_call): New function.
2439 (struct m68k_frame_cache): Define.
2440 (m68k_alloc_frame_cache): New function.
2441 (m68k_analyze_frame_setup): New function.
2442 (m68k_analyze_register_saves): New function.
2443 (m68k_analyze_prologue): New function.
2444 (m68k_skip_prologue): Rewrite using above functions.
2445 (m68k_unwind_pc): New function.
2446 (m68k_frame_cache): New function.
2447 (m68k_frame_this_id): New function.
2448 (m68k_frame_prev_register): New function.
2449 (m68k_frame_unwind): New variable.
2450 (m68k_frame_p): New function.
2451 (m68k_sigtramp_frame_cache): New function.
2452 (m68k_sigtramp_frame_this_id): New function.
2453 (m68k_sigtramp_frame_prev_register): New function.
2454 (m68k_sigtramp_frame_unwind): New variable.
2455 (m68k_sigtramp_frame_p): New function.
2456 (m68k_frame_base_address): New function.
2457 (m68k_frame_base): New function.
2458 (m68k_unwind_dummy_id): New function.
2459 (fill_gregset): Use regcache_collect.
2460 (fill_fpregset): Likewise.
2461 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2462 defined.
2463 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2464 deprecated_init_frame_pc, deprecated_store_struct_return,
2465 deprecated_extract_return_value, deprecated_store_return_value,
2466 deprecated_frame_chain, deprecated_frame_saved_pc,
2467 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2468 deprecated_register_virtual_size,
2469 deprecated_max_register_raw_size,
2470 deprecated_max_register_virtual_size,
2471 deprecated_register_virtual_type, deprecated_register_size,
2472 deprecated_register_byte, deprecated_register_bytes,
2473 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2474 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2475 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2476 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2477 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2478 deprecated_push_dummy_frame, deprecated_pop_frame,
2479 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2480 only if SYSCALL_TRAP is defined. Set extract_return_value,
2481 store_return_value, extract_struct_value_address, register_type,
2482 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2483 predicates.
2484 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2485 M68K_MAX_REGISTER_SIZE): Define.
2486 (struct m68k_sigtramp_info): Define.
2487 (struct gdbarch_tdep): Add get_sigtramp_info.
2488 * m68klinux-nat.c (fetch_register): Use register_size instead of
2489 REGISTER_RAW_SIZE. Don't put assignment in if.
2490 (store_register): Likewise.
2491 (fetch_inferior_registers): Likewise.
2492 (store_inferior_registers): Likewise.
2493 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2494 (m68k_linux_frame_saved_pc): Delete.
2495 (m68k_linux_sigcontext_reg_offset,
2496 m68k_linux_ucontext_reg_offset): Define.
2497 (m68k_linux_get_sigtramp_info): New function.
2498 (m68k_linux_extract_return_value): Rewrite using regcache.
2499 (m68k_linux_store_return_value): Likewise.
2500 (m68k_linux_extract_struct_value_address): Likewise.
2501 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2502 Don't set deprecated_frame_saved_pc,
2503 deprecated_extract_return_value, deprecated_store_return_value,
2504 deprecated_extract_struct_value_address. Set
2505 extract_return_value, store_return_value,
2506 extract_struct_value_address.
2507
eb8bc282
AC
25082003-07-07 Andrew Cagney <cagney@redhat.com>
2509
2510 * expprint.c: Include "user-regs.h" instead of "frame.h".
2511 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2512 frame_map_regnum_to_name.
2513 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2514 (frame_map_name_to_regnum): Simplify, call
2515 user_reg_map_name_to_regnum.
2516 (frame_map_regnum_to_name): Simplify, call
2517 user_reg_map_regnum_to_name.
2518 (frame_register_unwind): Update.
2519 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2520 (_initialize_frame_reg): Call user_reg_add_builtin.
2521 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2522 (value_of_register): Use value_of_user_reg.
2523 * eval.c (evaluate_subexp_standard): Update.
2524 * parse.c (write_dollar_variable): Update.
2525 * d10v-tdep.c (d10v_print_registers_info): Update.
2526 * infcmd.c (registers_info): Update.
2527 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2528 (builtin_regs_h): Delete macro.
2529 (user_regs_h): Define.
2530 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2531 (builtin-regs.o): Delete target.
2532 (user-regs.o): Specify dependencies.
2533 (expprint.o): Update dependencies.
2534 (findvar.o): Update dependencies.
2535 (frame.o): Update dependencies.
2536 (std-regs.o): Update dependencies.
2537
9f476a01
CF
25382003-07-06 Christopher Faylor <cgf@redhat.com>
2539
2540 * win32-nat.c (solib_symbols_add): Use one variable for all section
2541 address stuff. Pass variable rather than address of variable to
2542 safe_symbol_file_add.
2543
a731b831
AS
25442003-07-06 Andreas Schwab <schwab@suse.de>
2545
2546 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2547
9f83329d
JB
25482003-07-04 Joel Brobecker <brobecker@gnat.com>
2549
2550 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2551
27e28cc5
KW
25522003-07-04 Kris Warkentin <kewarken@qnx.com>
2553
2554 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2555
25562003-07-04 Kris Warkentin <kewarken@qnx.com>
2557
2558 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2559 * config/i386/nto.mh: New file.
2560 * config/i386/nm-nto.h: New file.
2561 * configure.host: Add i[3456]86-*-nto*.
2562
100f2e98
JB
25632003-07-03 Joel Brobecker <brobecker@gnat.com>
2564
2565 * remote-vx.c (vx_add_symbols): Fix compilation error.
2566
e23457df
AC
25672003-07-03 Andrew Cagney <cagney@redhat.com>
2568
2569 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2570 * gdbarch.h, gdbarch.c: Re-generate.
2571 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2572 (legacy_register_name): Declare.
2573 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2574 (REGISTER_NAME): Define.
2575 * sparc-tdep.c (legacy_register_name): New function.
2576 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2577 (REGISTER_NAME): Define.
2578 (hppa64_register_name): Declare.
2579 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2580 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2581 (hppa64_register_name): New function.
2582 (hppa_register_name): New function.
2583 * arch-utils.c (legacy_register_name): Delete.
2584 * arch-utils.h (legacy_register_name): Delete.
2585
38caaeec
DJ
25862003-07-03 Daniel Jacobowitz <drow@mvista.com>
2587
2588 * cli/cli-interp.c (cli_interpreter_resume): Update the
2589 cli_uiout's stream to gdb_stdout.
2590
dadd712e
AC
25912003-07-03 Andrew Cagney <cagney@redhat.com>
2592
2593 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2594 predicate.
2595 * gdbarch.h, gdbarch.c: Re-generate.
2596 * regcache.c (init_regcache_descr): Use legacy code when either
2597 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2598
c7f1390e
DJ
25992003-07-02 Daniel Jacobowitz <drow@mvista.com>
2600
2601 * NEWS: Move "set logging" entry into GDB 6.0 section.
2602
4bc8c588
JB
26032003-07-02 Jim Blandy <jimb@redhat.com>
2604
a9dd42f1
JB
2605 * s390-tdep.c (struct frame_extra_info): new member:
2606 'stack_bought_valid'.
2607 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2608 initialize fextra_info->stack_bought.
2609 (s390_frameless_function_invocation): Don't trust the value of
2610 fextra_info_ptr->stack_bought unless
2611 fextra_info->stack_bought_valid is set.
2612
4bc8c588
JB
2613 New S390 prologue analyzer.
2614 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2615 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2616 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2617 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2618 compute_x_addr, s390_on_stack, s390_store,
2619 s390_get_signal_frame_info): New functions.
2620 (S390_NUM_SPILL_SLOTS): New macro.
2621 (s390_get_frame_info): Rewritten.
2622 (is_arg_reg): Deleted.
2623
2624 Break out the decoding of S/390 instructions into separate
2625 functions, to make it more legible, and easier to check
2626 against the spec.
2627 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2628 is_rx, is_rxe): New functions.
2629 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2630 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2631 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2632 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2633 enums for opcode values. (Is this an improvement?)
2634
fd13a04a
AC
26352003-07-02 Andrew Cagney <cagney@redhat.com>
2636
2637 * i386-tdep.c: Revert change committed as part of trad-frame code
2638 below.
2639
3f8091c1
DJ
26402003-07-02 Daniel Jacobowitz <drow@mvista.com>
2641
2642 * breakpoint.c (insert_catchpoint): Make static.
2643
8dd5115e
AS
26442003-07-02 Andreas Schwab <schwab@suse.de>
2645
2646 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2647 former ia64_push_arguments and ia64_push_return_address, and use
2648 regcache functions instead of read/write_register.
2649 (ia64_gdbarch_init): Set push_dummy_call instead of
2650 deprecated_push_arguments and deprecated_push_return_address.
2651
a2229c23
AJ
26522003-07-01 Andreas Jaeger <aj@suse.de>
2653
2654 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2655 before the call.
2656 Set %rax only to number of SSE registers used.
2657
3b3850e8
AC
26582003-07-01 Andrew Cagney <cagney@redhat.com>
2659
2660 * trad-frame.h: Update comments, a -1 .addr is reserved.
2661 (trad_frame_value_p, trad_frame_addr_p): Declare.
2662 (trad_frame_reg_p): Declare.
2663 (trad_frame_set_value): Rename trad_frame_register_value.
2664 (trad_frame_set_unknown): Declare.
2665 * trad-frame.c (trad_frame_realreg_p): New function.
2666 (trad_frame_addr_p, trad_frame_value_p): New function.
2667 (trad_frame_set_unknown): New function.
2668 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2669 (trad_frame_prev_register): Use trad_frame_realreg_p,
2670 trad_frame_addr_p and trad_frame_value_p.
2671 (trad_frame_set_value): Rename trad_frame_register_value.
2672 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2673 and trad_frame_set_value.
a2229c23 2674
4d819d0e
JB
26752003-06-30 Jim Blandy <jimb@redhat.com>
2676
2677 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2678 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2679 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2680 for 16 registers, and then 32 more bytes.
2681 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2682 New macros.
2683 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2684 Move up in the file, since it's now used by is_simple_arg.
2685 (is_simple_arg): Don't assume registers are four bytes long.
2686 Exclude all double arguments. Extended floats are not simple
2687 args.
2688 (is_power_of_two): New function.
2689 (pass_by_copy_ref): Call is_power_of_two, and check that the
2690 length fits in a register, rather than listing all the acceptable
2691 sizes. Extended floats are not passed by reference.
2692 (s390_push_arguments): Don't assume registers are four bytes long.
2693 Reserve an argument register to point to the buffer for structures
2694 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2695 S390_STACK_FRAME_OVERHEAD.
2696
1ad828f1
AS
26972003-06-30 Andreas Schwab <schwab@suse.de>
2698
2699 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2700 format error message.
2701
39b00981
JB
27022003-06-30 Joel Brobecker <brobecker@gnat.com>
2703
2704 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2705
b2a7f303
DC
27062003-06-30 David Carlton <carlton@kealia.com>
2707
2708 Band-aid for PR c++/1245.
2709 * Makefile.in (cp-support.o): Depend on complaints_h.
2710 * cp-support.c: Include complaints.h. Add declaration for
2711 find_last_component.
2712 (cp_find_first_component): Separate code into
2713 cp_find_first_component_aux.
2714 (cp_find_first_component_aux): Call demangled_name_complaint.
2715 (demangled_name_complaint): New.
2716
a257b5bb
AC
27172003-06-30 Andrew Cagney <cagney@redhat.com>
2718
2719 * remote.c (remote_write_bytes): Explicitly compute and then use
2720 the payload size. Update comments to reflect. Fixes problem of
2721 GDB not sending small packets as found by Fred Fish.
2722
0a2cfde4
AC
27232003-06-30 Andrew Cagney <cagney@redhat.com>
2724
2725 * remote.c (remote_async_wait): Fix -Wformat problem.
2726
3fcb8548
AC
27272003-06-29 Andrew Cagney <cagney@redhat.com>
2728
2729 * remote.c (remote_wait): Call error, and not warning, when the
2730 packet is corrupt.
2731 (remote_async_wait): Ditto.
2732
9f9970a3
DJ
27332003-06-29 Daniel Jacobowitz <drow@mvista.com>
2734
2735 * sparc-tdep.c (sparc_y_regnum): Make external again.
2736
83a8ccca
DJ
27372003-06-29 Daniel Jacobowitz <drow@mvista.com>
2738
2739 * cli/cli-logging.c (pop_output_files): Add void to function
2740 definition.
2741
d2cf594a
AC
27422003-06-29 Andrew Cagney <cagney@redhat.com>
2743
2744 * frame.c (frame_register_unwind): Use unsigned char when dumping
2745 the buffer contents.
2746
0fac0b41
DJ
27472003-06-28 Daniel Jacobowitz <drow@mvista.com>
2748
2749 * cli/cli-logging.c: New file.
2750 * cli-out.c (struct ui_out_data): Add original_stream.
2751 (cli_redirect): New function.
2752 (cli_ui_out_impl): Add cli_redirect.
2753 (cli_out_new): Initialize original_stream.
2754 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2755 (uo_redirect, ui_out_redirect): New.
2756 * ui-out.h (struct ui_out_impl): Add redirect member.
2757 (redirect_ftype): New.
2758 (ui_out_redirect): Add prototype.
2759 * Makefile.in: Add rules for cli-logging.c.
2760 * NEWS: Mention "set logging".
2761
88a07d7c
EZ
27622003-06-27 Elena Zannoni <ezannoni@redhat.com>
2763
2764 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2765
4eb58876
AC
27662003-06-27 Andrew Cagney <cagney@redhat.com>
2767
2768 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2769 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2770 * avr-tdep.c (avr_call_dummy_address): Delete function.
2771 (avr_gdbarch_init): Do not set call_dummy_address.
2772
1549f619
EZ
27732003-06-27 Elena Zannoni <ezannoni@redhat.com>
2774
2775 * symfile.c (syms_from_objfile): Move variables to inner block.
2776 Move the checks for the non-mainline case a bit earlier to avoid
2777 doing some useless computations.
2778
3cb3398d
EZ
27792003-06-27 Elena Zannoni <ezannoni@redhat.com>
2780
2781 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2782
3799ccc6
EZ
27832003-06-26 Elena Zannoni <ezannoni@redhat.com>
2784
2785 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2786 sections.
2787
ce1f6491
MC
27882003-06-26 Michael Chastain <mec@shout.net>
2789
2790 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2791 gdb/testsuite/gdb.c++/pr-1210.exp.
2792
d958dfd0
AC
27932003-06-26 Andrew Cagney <cagney@redhat.com>
2794
2795 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2796 altivec_expression.h and altivec_registers.h.
2797
d31431ed
AC
27982003-06-26 Andrew Cagney <cagney@redhat.com>
2799
2800 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2801 info->mach when MIPS16. Patch suggested by Fred Fish.
2802
714b1282
AC
28032003-06-26 Andrew Cagney <cagney@redhat.com>
2804
2805 * utils.c (internal_vproblem): Print the problem to a reason
2806 buffer and then pass to query. Make the msg variable more local.
2807
42efa47a
AC
28082003-06-26 Andrew Cagney <cagney@redhat.com>
2809
2810 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2811 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2812 * gdbarch.h, gdbarch.c: Re-generate.
2813 * frame-base.c (default_frame_args_address): Update. Use
2814 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2815 not available.
2816 (default_frame_locals_address): Ditto for
2817 DEPRECATED_FRAME_LOCALS_ADDRESS.
2818 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2819 (vax_frame_num_args): Update.
2820 (vax_gdbarch_init): Update.
2821 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2822 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2823 * mcore-tdep.c (mcore_gdbarch_init): Update.
2824 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2825 * ia64-tdep.c (ia64_gdbarch_init): Update.
2826 * symtab.h (address_class): Update comments.
2827 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2828 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2829 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2830 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2831 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2832 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2833 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2834 * alpha-mdebug-tdep.c: Update.
2835 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2836
8ffd9b1b
AJ
28372003-06-26 Andreas Jaeger <aj@suse.de>
2838
2839 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2840 of SSE registers so that varargs functions work. Rework handling
2841 of passing arguments on the stack.
2842 (x86_64_store_return_value): Return double and float values in SSE
2843 register.
2844
e8ac10a6
MC
28452003-06-24 Michael Chastain <mec@shout.net>
2846
2847 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2848 the "constructor breakpoints ignored" bug.
2849
986af8e6
DC
28502003-06-25 David Carlton <carlton@kealia.com>
2851
2852 * MAINTAINERS: Update e-mail address.
2853
d64558a5
JB
28542003-06-24 Jim Blandy <jimb@redhat.com>
2855
e538d2d7
JB
2856 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2857
02631ec0
JB
2858 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2859 function.
2860 (ppc_linux_init_abi): Register it as the
2861 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2862
e716d87a
JB
2863 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2864 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2865 method.
2866
d64558a5
JB
2867 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2868 (ppc64_standard_linkage_target): Use it.
2869
449a5da4
AC
28702003-06-23 Andrew Cagney <cagney@redhat.com>
2871
2872 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2873 for 0 "int0" and 4 "int32" sized registers.
2874 * gdbtypes.c (builtin_type_int0): Define.
2875 (build_gdbtypes): Initialize builtin_type_int0.
2876 * gdbtypes.h (builtin_type_int0): Declare.
2877
b2a02dda
SC
28782003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2879
2880 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2881 as characters are unsigned.
2882
fba3138e
DJ
28832003-06-22 Daniel Jacobowitz <drow@mvista.com>
2884
2885 PR gdb/1179
2886 * dwarfread.c (struct_type): Skip static fields without crashing.
2887
f6c8180b
AC
28882003-06-22 Andrew Cagney <cagney@redhat.com>
2889
2890 GDB 6.0 branch created.
f2c06f52
AC
2891 * README: Update.
2892 * PROBLEMS: Update. Empty.
2893 * NEWS: Update.
f6c8180b 2894
ae822768
DJ
28952003-06-22 Daniel Jacobowitz <drow@mvista.com>
2896
2897 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2898 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2899
261de166
AC
29002003-06-22 Andrew Cagney <cagney@redhat.com>
2901
2902 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2903 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2904 Velikov.
2905
30e94205
DJ
29062003-06-22 Daniel Jacobowitz <drow@mvista.com>
2907
2908 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2909 compilers.
2910
9e14d721
DJ
29112003-06-21 Daniel Jacobowitz <drow@mvista.com>
2912
2913 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2914 argument of val_print.
2915 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2916 to the address argument of baseclass_offset or target_read_memory.
2917 Do add it to the argument of cp_print_value_fields.
2918
a4b8ebc8
AC
29192003-06-21 Andrew Cagney <cagney@redhat.com>
2920
2921 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2922 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2923 instead of 0..NUM_REGS.
2924 (mips_register_reggroup_p): New function.
2925 (mips_pseudo_register_write): New function.
2926 (mips_pseudo_register_read): New function.
2927 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2928 based on the register's type.
2929 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2930 cooked.
2931 (mips_get_saved_register): Simplify. Assert that REGNO is a
2932 pseudo / cooked.
2933 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2934 (mips_register_type): Replace mips_register_virtual_type. Map
2935 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2936 when available.
2937 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2938 that the register is cooked / virtual.
2939 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2940 Only get the extra info when needed.
2941 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2942 (mips32_heuristic_proc_desc): Fetch the cooked register.
2943 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2944 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2945 (mips_print_register): Use gdbarch_register_type, instead of
2946 REGISTER_VIRTUAL_TYPE.
2947 (print_gp_register_row): Use gdbarch_register_type, instead of
2948 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2949 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2950 Print the pseudo / cooked registers.
2951 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2952 Print the pseudo / cooked registers.
2953 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2954 REG_NUM is pseudo / cooked.
2955 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2956 (mips_n32n64_xfer_return_value): Ditto.
2957 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2958 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2959 (mips_register_sim_regno): New function.
2960 (mips_gdbarch_init): Set deprecated_register_byte,
2961 register_group_p, pseudo_register_write, pseudo_register_read,
2962 register_sim_regno, and num_pseudo_regs. Set register_type,
2963 instead of register_virtual_type.
2964 * Makefile.in (mips-tdep.o): Update dependencies.
2965 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2966 REGISTER_VIRTUAL_TYPE.
2967 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2968 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2969 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2970 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2971 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2972
325ed089
DJ
29732003-06-21 Daniel Jacobowitz <drow@mvista.com>
2974
2975 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2976 * cli/cli-cmds.c: Include "gdb_vfork.h".
2977 (shell_escape): Use vfork.
2978
f0e7d0e8
AC
29792003-06-21 Andrew Cagney <cagney@redhat.com>
2980
c57bb9fa
AC
2981 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2982 32 bit floating-point register saves.
2983
6e51443a
AC
2984 * frame.h (deprecated_unwind_get_saved_register): Delete.
2985 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2986 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2987 and deprecated_get_next_frame_hack instead of
2988 deprecated_unwind_get_saved_register.
2989
ed183c7c
AC
2990 * mips-tdep.c (mips_dump_tdep): Do not print
2991 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2992
f0e7d0e8
AC
2993 * frame.c (get_frame_register): New function.
2994 (frame_unwind_register_signed): New function.
2995 (get_frame_register_signed): New function.
2996 (frame_unwind_register_unsigned): New function.
2997 (get_frame_register_unsigned): New function.
2998 * frame.h: Add comments on naming schema.
2999 (get_frame_register, frame_unwind_register_signed): Declare.
3000 (get_frame_register_signed, get_frame_register_signed): Declare.
3001 (frame_unwind_register_unsigned): Declare.
3002 (get_frame_register_unsigned): Declare.
3003
2224d941
TR
30042003-06-20 Theodore A. Roth <troth@openavr.org>
3005
3006 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3007
8619218d
TR
30082003-06-20 Theodore A. Roth <troth@openavr.org>
3009
3010 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3011 (avr_read_sp): Ditto.
3012
0b1b50c0
DJ
30132003-06-20 Daniel Jacobowitz <drow@mvista.com>
3014
3015 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3016 * config/arm/nm-linux.h: Likewise.
3017 * config/arm/tm-linux.h: Likewise.
3018 * config/ia64/nm-linux.h: Likewise.
3019 * config/ia64/tm-ia64.h: Likewise.
3020 * config/s390/tm-linux.h: Likewise.
3021 * config/s390/tm-s390.h: Likewise.
3022 * s390-nat.c: Likewise.
3023 * s390-tdep.c: Likewise.
3024
3025 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3026 * config/ia64/linux.mt: Likewise.
3027 * config/m68k/linux.mh: Likewise.
3028 * config/mips/linux.mt: Likewise.
3029 * config/powerpc/linux.mh: Likewise.
3030 * config/sh/linux.mt: Likewise.
3031
c8c18e65
KW
30322003-06-19 Kris Warkentin <kewarken@qnx.com>
3033
3034 * solib.c (solib_open): Change tests for whether to search
3035 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3036 comments.
3037
dcccef2e
TR
30382003-06-19 Theodore A. Roth <troth@openavr.org>
3039
3040 * avr-tdep.c (avr_frame_address): Delete function.
3041 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3042 set_gdbarch_frame_args_address.
3043
5861a190
AC
30442003-06-19 Andrew Cagney <cagney@redhat.com>
3045
3046 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3047 (REGISTER_CONVERT_FROM_TYPE): Delete.
3048 (mips_register_convert_to_type): Delete declaration.
3049 (mips_register_convert_from_type): Delete declaration.
3050 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3051 kernel/.
3052
0274a8ce
MS
30532003-06-19 Michael Snyder <msnyder@redhat.com>
3054
3055 * linux-nat.h: New file.
3056 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 3057 * lin-lwp.c: Include linux-nat.h.
0274a8ce 3058 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 3059 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
3060 (linux_make_note_section): Iterate over lwps instead of threads.
3061 (linux_do_thread_registers): Use lwp instead of merged pid.
3062 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 3063 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
3064 Add dependency on linux_nat_h.
3065
adf5f719
TR
30662003-06-19 Theodore A. Roth <troth@openavr.org>
3067
3068 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3069
6766a268
DJ
30702003-06-19 Daniel Jacobowitz <drow@mvista.com>
3071
3072 * varobj.c (get_type, get_target_type): Use check_typedef.
3073
1171114a
DJ
30742003-06-19 Daniel Jacobowitz <drow@mvista.com>
3075
3076 * breakpoint.c (insert_catchpoint): Call internal_error.
3077
adcf68a2
TR
30782003-06-19 Theodore A. Roth <troth@openavr.org>
3079
3080 * avr-tdep.c (avr_push_dummy_code): Delete function.
3081 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3082
ea67f13b
DJ
30832003-06-19 Daniel Jacobowitz <drow@mvista.com>
3084
3085 * arch-utils.c (default_prepare_to_proceed): Remove.
3086 (generic_prepare_to_proceed): Remove.
3087 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3088 (generic_prepare_to_proceed): Remove prototype.
3089 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3090 * gdbarch.c: Regenerate.
3091 * gdbarch.h: Regenerate.
3092 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3093 * hppah-nat.c (hppa_switched_threads): Remove.
3094 * infrun.c (prepare_to_proceed): New static function, copied from
3095 generic_prepare_to_proceed. Remove select_it argument.
3096 (proceed): Call prepare_to_proceed.
3097 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3098 variables.
3099 (ptrace_wait): Don't set the removed variables.
3100 (hppa_switched_threads): Remove.
3101 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3102 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3103 (lin_lwp_prepare_to_proceed): Remove prototype.
3104 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3105 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3106
4add8633
TR
31072003-06-18 Theodore A. Roth <troth@openavr.org>
3108
3109 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3110 trad-frame.h.
3111 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3112 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3113 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3114 (AVR_PROLOGUE_*): Enumerate prologue types.
3115 (struct frame_extra_info): Remove.
3116 (struct avr_unwind_cache): Define.
3117 (avr_write_sp): Delete function.
3118 (avr_read_fp): Ditto.
3119 (avr_init_extra_frame_info): Ditto.
3120 (avr_pop_frame): Ditto.
3121 (avr_frame_saved_pc): Ditto.
3122 (avr_saved_pc_after_call): Ditto.
3123 (avr_push_return_address): Ditto.
3124 (avr_frame_chain): Ditto.
3125 (avr_store_struct_return): Ditto.
3126 (avr_push_arguments): Ditto.
3127 (avr_scan_prologue): Update comments. Changed to set up the info for
3128 cache unwinding. Now returns end of prologue PC.
3129 (avr_skip_prologue): Better handling of functions lacking a prologue
3130 by using avr_scan_prologue.
3131 (avr_scan_arg_moves): New function.
3132 (avr_saved_regs_unwinder): Ditto.
3133 (avr_frame_unwind_cache): Ditto.
3134 (avr_unwind_pc): Ditto.
3135 (avr_frame_this_id): Ditto.
3136 (avr_frame_prev_register): Ditto.
3137 (avr_frame_p): Ditto.
3138 (avr_frame_base_address ): Ditto.
3139 (avr_unwind_dummy_id): Ditto.
3140 (avr_push_dummy_code): Ditto.
3141 (push_stack_item): Ditto.
3142 (pop_stack_item): Ditto.
3143 (avr_push_dummy_call): Ditto.
3144 (struct stack_item): Define.
3145 (avr_frame_unwind): Declare structure.
3146 (avr_frame_base): Ditto.
3147 (avr_gdbarch_init): Remove calls to
3148 set_gdbarch_deprecated_init_frame_pc,
3149 set_gdbarch_deprecated_target_read_fp,
3150 set_gdbarch_deprecated_dummy_write_sp,
3151 set_gdbarch_deprecated_fp_regnum,
3152 set_gdbarch_deprecated_push_arguments,
3153 set_gdbarch_deprecated_push_return_address,
3154 set_gdbarch_deprecated_pop_frame,
3155 set_gdbarch_deprecated_store_struct_return,
3156 set_gdbarch_deprecated_frame_init_saved_regs,
3157 set_gdbarch_deprecated_init_extra_frame_info,
3158 set_gdbarch_deprecated_frame_chain,
3159 set_gdbarch_deprecated_frame_saved_pc,
3160 set_gdbarch_deprecated_saved_pc_after_call.
3161 Add calls to set_gdbarch_push_dummy_call,
3162 set_gdbarch_push_dummy_code,
3163 frame_unwind_append_predicate,
3164 frame_base_set_default,
3165 set_gdbarch_unwind_dummy_id,
3166 set_gdbarch_unwind_pc.
3167 Wrap a long line.
3168
7be04a68
MS
31692003-06-18 Corinna Vinschen <vinschen@redhat.com>
3170
3171 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3172 registers for H8/300S.
3173 (h8300_print_registers_info): Ditto.
8ffd9b1b 3174 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 3175
ae087d01
DJ
31762003-06-18 Daniel Jacobowitz <drow@mvista.com>
3177
3178 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3179 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3180 (lin_lwp_wait): Likewise. Update comments.
3181 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3182 (pull_pid_from_list, linux_record_stopped_pid): New.
3183
07d8f827
SC
31842003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3185
3186 * ada-lang.c (scan_discrim_bound): Name first argument.
3187 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3188 declared by ALL_BLOCK_SYMBOLS.
3189
7cb47b14
SC
31902003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3191
3192 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3193 ("regcache.h"): Include it.
3194 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3195
6ad8ae5c
DJ
31962003-06-17 Daniel Jacobowitz <drow@mvista.com>
3197
3198 * NEWS: Mention gdbserver detach change and "disconnect" command.
3199 * infcmd.c (disconnect_command): New function.
3200 (_initialize_infcmd): Add ``disconnect'' command.
3201 * remote.c (remote_async_detach): Delete.
3202 (remote_detach): Merge remote_async_detach.
3203 (remote_disconnect): New.
3204 (init_remote_ops): Set to_disconnect.
3205 (init_remote_cisco_ops): Likewise.
3206 (init_remote_async_ops): Likewise. Use remote_detach.
3207 * target.c (cleanup_target): Default to_disconnect.
3208 (update_current_target): Inherit to_disconnect.
3209 (target_disconnect, debug_to_disconnect): New functions.
3210 (setup_target_debug): Set to_disconnect.
3211 * target.h (struct target_ops): Add to_disconnect.
3212 (target_disconnect): Add prototype.
3213
687595f9
DJ
32142003-06-17 Daniel Jacobowitz <drow@mvista.com>
3215
3216 * breakpoint.c (insert_catchpoint): New function.
3217 (insert_breakpoints): Use catch_exceptions to call
3218 insert_catchpoint. Disable catchpoints if they fail to insert.
3219
29239a8f
DJ
32202003-06-17 Daniel Jacobowitz <drow@mvista.com>
3221
3222 * symfile.c (reread_symbols): Clear sym_private.
3223
2cdf3c63
AC
32242003-06-17 Andrew Cagney <cagney@redhat.com>
3225
3226 * trad-frame.h (struct frame_info): Add opaque declaration.
3227 * remote-fileio.h (struct cmd_list_element): Add opaque
3228 declaration.
3229 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3230 comments.
3231
cf0e1e0d
DJ
32322003-06-17 Daniel Jacobowitz <drow@mvista.com>
3233
3234 * remote.c (remote_prepare_to_store): Replace call to
3235 deprecated_read_register_bytes with multiple regcache_raw_read
3236 calls.
3237
192cdb19
KW
32382003-06-17 Kris Warkentin <kewarken@qnx.com>
3239
3240 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3241 (nto_find_and_open_solib): Likewise.
3242 (nto_init_solib_absolute_prefix): Likewise.
3243 (_initialize_nto_tdep): Fix indentation.
3244
89929b45
KW
32452003-06-17 Kris Warkentin <kewarken@qnx.com>
3246
3247 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3248
46019f27
KW
32492003-06-17 Kris Warkentin <kewarken@qnx.com>
3250
3251 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3252
1a38736e
JB
32532003-06-17 Jim Blandy <jimb@redhat.com>
3254
3255 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3256
3605c34a
TR
32572003-06-16 Theodore A. Roth <troth@openavr.org>
3258
3259 * avr-tdep.c (avr_extract_return_value): New function.
3260 (avr_gdbarch_init): Set extract_return_value method.
3261
870b3035
AC
32622003-06-16 Andrew Cagney <cagney@redhat.com>
3263
3264 * frame.h (deprecated_get_next_frame_hack): Declare.
3265 * frame.c (legacy_saved_regs_prev_register): Only require
3266 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3267 there are always saved regs.
3268 (deprecated_generic_get_saved_register): Do not require
3269 DEPRECATED_FRAME_INIT_SAVED_REGS.
3270 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3271 use frame ID unwind instead.
3272 (deprecated_get_next_frame_hack): New function.
3273
63d47a7d
CV
32742003-06-16 Corinna Vinschen <vinschen@redhat.com>
3275
3276 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3277 (h8300_push_dummy_call): ...this function. Some minor optimization.
3278 (h8300_push_return_address): Remove.
3279 (h8300_gdbarch_init): Remove calls to
3280 set_gdbarch_deprecated_dummy_write_sp,
3281 set_gdbarch_deprecated_push_arguments and
3282 set_gdbarch_deprecated_push_return_address.
3283 Add call to set_gdbarch_push_dummy_call.
3284
4bb1dc5e
CV
32852003-06-16 Corinna Vinschen <vinschen@redhat.com>
3286
3287 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3288 (E_PSEUDO_EXR_REGNUM): Ditto.
3289 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 3290 registers into safe registers.
4bb1dc5e
CV
3291 (h8300_skip_prologue): Check for stm instruction to push registers
3292 used for register variables onto stack.
3293 (gdb_print_insn_h8300): Remove.
3294 (h8300_examine_prologue): Add a comment.
3295 (h8300_register_name): Take pseudo registers into account.
3296 (h8300s_register_name): Ditto.
3297 (h8300sx_register_name): Ditto.
3298 (h8300_print_register): Ditto.
3299 (h8300_print_registers_info): Define "nice" printing order.
3300 (h8300_saved_pc_after_call): Take pseudo registers into account.
3301 (h8300_register_type): Ditto. Return type used for remote connection
3302 when requesting real CCR or EXR register, return actual type when
3303 requesting pseudo CCR or EXR.
3304 (h8300_pseudo_register_read): New function.
3305 (h8300_pseudo_register_write): Ditto.
3306 (h8300_dbg_reg_to_regnum): Ditto.
3307 (h8300s_dbg_reg_to_regnum): Ditto.
3308 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3309 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3310 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3311 set_gdbarch_print_insn architecture dependent.
3312 Call set_gdbarch_pseudo_register_read and
3313 set_gdbarch_pseudo_register_write.
3314 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3315
a59fe496
AC
33162003-06-16 Andrew Cagney <cagney@redhat.com>
3317
3318 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3319 * gdbarch.h, gdbarch.c: Re-generate.
3320 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3321 * s390-tdep.c (s390_gdbarch_init): Update.
3322 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3323 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3324 * mips-tdep.c (mips_gdbarch_init): Update.
3325 * mcore-tdep.c (mcore_gdbarch_init): Update.
3326 * cris-tdep.c (cris_gdbarch_init): Update.
3327 * infcall.c (call_function_by_hand): Update.
3328 * ia64-tdep.c (ia64_push_arguments): Update comment.
3329 * frame.c (legacy_get_prev_frame): Do not assume
3330 SAVE_DUMMY_FRAME_TOS_P.
3331 * dummy-frame.c (find_dummy_frame): Update comment.
3332
6f4e5a41
AC
33332003-06-16 Andrew Cagney <cagney@redhat.com>
3334
3335 * regcache.c (do_cooked_read): Do not use register_valid_p.
3336
72fab697
TR
33372003-06-15 Theodore A. Roth <troth@openavr.org>
3338
3339 * avr-tdep.c (avr_register_type): Remove a blank line.
3340 (avr_scan_prologue): Correct some comments.
3341
e3d8b004
TR
33422003-06-15 Theodore A. Roth <troth@openavr.org>
3343
3344 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3345 prologue types.
8ffd9b1b 3346 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
3347 option.
3348 Add code to scan -mcall-prologues for mega devices.
3349
866b76ea
TR
33502003-06-15 Theodore A. Roth <troth@openavr.org>
3351
3352 * avr-tdep.c (avr_register_byte): Delete function.
3353 (avr_register_raw_size): Delete function.
3354 (avr_register_virtual_size): Delete function.
3355 (avr_register_virtual_type): Delete function.
3356 (avr_register_type): New function.
3357 (avr_address_to_pointer): Remove unused code.
3358 (avr_read_fp): Need to read FP as two separate bytes due to change to
3359 avr_register_type() usage.
3360 (avr_gdbarch_init): Don't set deprecated_register_size.
3361 Don't set deprecated_register_bytes.
3362 Don't set deprecated_register_byte.
3363 Don't set deprecated_register_raw_size.
3364 Don't set deprecated_max_register_raw_size.
3365 Don't set deprecated_register_virtual_size.
3366 Don't set deprecated_max_register_virtual_size.
3367 Don't set deprecated_register_virtual_type.
3368 Set register_type method.
3369
3993f6b1
DJ
33702003-06-15 Daniel Jacobowitz <drow@mvista.com>
3371
3372 * Makefile.in (linux-nat.o): Add rule.
3373 * linux-nat.c: New file.
3374 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3375 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3376 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3377 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3378 * config/arm/linux.mh (NATDEPFILES): Likewise.
3379 * config/i386/linux.mh (NATDEPFILES): Likewise.
3380 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3381 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3382 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3383 * config/mips/linux.mh (NATDEPFILES): Likewise.
3384 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3385 * config/s390/s390.mh (NATDEPFILES): Likewise.
3386 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3387
786a90bb
MK
33882003-06-15 Mark Kettenis <kettenis@gnu.org>
3389
3390 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3391 replace out-of-date comment.
3392
3bd3f01e
AC
33932003-06-15 Andrew Cagney <cagney@redhat.com>
3394
3395 * rdi-share/host.h (Fail): Change to a varargs function.
3396 * remote-rdi.c (Fail): Update.
8ffd9b1b 3397
de5b9bb9
MK
33982003-06-15 Mark Kettenis <kettenis@gnu.org>
3399
3400 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3401 (i386_convert_register_p, i386_register_to_value,
3402 i386_register_from_value): Handle types longer than 8 bytes.
3403
d532c08f
MK
34042003-06-15 Mark Kettenis <kettenis@gnu.org>
3405
3406 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3407 Move floating-point code to new function in i387-tdep.c.
3408 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3409 New functions containing code moved here from i386-tdep.c.
3410 * i387-tdep.h: Add opaque declaration for `struct type'.
3411 (i387_register_to_value, i387_value_to_register): New prototypes.
3412 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3413 (x86_64_init_abi): Set convert_register_p, register_to_value and
3414 value_to_register here.
8ffd9b1b 3415
42c466d7
AC
34162003-06-14 Andrew Cagney <cagney@redhat.com>
3417
3418 * mips-tdep.c (mips_register_to_value): Make static.
3419 (mips_value_to_register): Make static.
3420 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3421 * ia64-tdep.c (ia64_register_raw_size): Make static.
3422 (ia64_register_virtual_size): Make static.
3423 (ia64_register_byte): Make static.
3424 * i387-tdep.c: Include "i387-tdep.h".
3425 (print_387_control_word): Delete function.
3426 (print_387_status_word): Delete function.
3427 (print_387_status_bits): Delete function.
3428 (print_387_control_bits): Delete function.
3429 * Makefile.in (i387-tdep.o): Update dependencies.
3430 * rdi-share/host.h (Fail): Declare.
3431 * remote-rdi.c (Fail): Update to match declaration.
3432
2a9cda49
AC
34332003-06-14 Andrew Cagney <cagney@redhat.com>
3434
3435 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3436 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3437 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3438 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3439 * README: Delete reference to remote-array.
3440 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3441 (remote-array.o): Delete target.
3442 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3443 * remote-array.c: Delete file.
3444
ff2e87ac
AC
34452003-06-14 Andrew Cagney <cagney@redhat.com>
3446 Mark Kettenis <kettenis@gnu.org>
3447
3448 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3449 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3450 parameter with "frame".
3451 * gdbarch.h, gdbarch.c: Re-generate.
3452 * frame.h (put_frame_register): Declare.
3453 * frame.c (put_frame_register): New function.
3454 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3455 (legacy_register_to_value): Rewrite, use "frame" to get the
3456 register value.
3457 (legacy_value_to_register): Rewrite, use "frame" to find the
3458 register's location before storing.
3459 * arch-utils.h (legacy_convert_register_p): Update.
3460 (legacy_register_to_value, legacy_value_to_register): Update.
3461 * findvar.c (value_from_register): Rewrite, eliminate use of
3462 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3463 "frame" to REGISTER_TO_VALUE.
3464 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3465 lval_reg_frame_relative + lval_register branch of the switch. Do
3466 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3467 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3468 I386_EDI_REGNUM): New defines.
3469 (i386_next_regnum, i386_convert_register_p,
3470 i386_register_to_value, i386_value_to_register): New functions.
3471 (i386_register_convertible, i386_register_convert_to_virtual,
3472 i386_convert_to_raw): Remove functions.
3473 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3474 value_to_register instead of register_convertible,
3475 register_convert_to_virtual and register_convert_to_raw.
3476 * mips-tdep.c (mips_convert_register_p): New function.
3477 (mips_value_to_register): Replace mips_register_convert_from_type.
3478 (mips_register_to_value): Replace mips_register_convert_to_type.
3479 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3480 register_to_value.
3481 * alpha-tdep.c (alpha_convert_register_p): Update.
3482 (alpha_value_to_register): Update, store the register.
3483 (alpha_register_to_value): Update, fetch the register.
3484
98be1e77
TR
34852003-06-14 Theodore A. Roth <troth@openavr.org>
3486
3487 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3488 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3489 Don't set deprecated_call_dummy_words.
3490 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3491 Don't set remote_translate_xfer_address.
3492 (avr_io_reg_read_command): Remove commented out debug printf.
3493 Wrap a long line.
3494
57bc6122
TR
34952003-06-14 Theodore A. Roth <troth@openavr.org>
3496
3497 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3498 causes gdb to seg fault.
3499
eb01fc62
DJ
35002003-06-14 Daniel Jacobowitz <drow@mvista.com>
3501
3502 * sparc-nat.c (fetch_inferior_registers): Correct
3503 a reference to "registers".
3504
3b3e6bee
DJ
35052003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3506
3507 * Makefile.in (exc_request_U_h): Define
3508 (exc_request_S_h): Likewise.
3509 (msg_reply_S_h): Likewise.
3510 (msg_U_h): Likewise.
3511 (notify_S_h): Likewise.
3512 (process_reply_S_h): Likewise.
3513 (gnu-nat.o): Depend on gdb_obstack_h
3514 * gnu-nat.c: Include "gdb_obstack.h".
3515
b8de8283
AC
35162003-06-13 Andrew Cagney <cagney@redhat.com>
3517
3518 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3519 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3520
f3be58bc
AC
35212003-06-13 Andrew Cagney <cagney@redhat.com>
3522
3523 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3524 when deprecated REGISTER macros can be deleted.
3525 * gdbarch.h, gdbarch.c: Re-generate.
3526
4c0122c8
JB
35272003-06-13 Jim Blandy <jimb@redhat.com>
3528
3529 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3530 Linux entry point symbols for _dl_debug_state, too.
3531
3e210248
AC
35322003-06-13 Andrew Cagney <cagney@redhat.com>
3533
3534 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3535 available, do not use the FP register, and always save the TOS.
3536 * dummy-frame.c (dummy_frame_this_id): Do not assert
3537 SAVE_DUMMY_FRAME_TOS.
3538 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3539 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3540 (i386_push_dummy_call): Add 8 to the returned SP.
3541 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3542 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3543 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3544 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3545 (x86_64_push_dummy_call): Return "sp + 16".
3546 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3547 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3548 save_dummy_frame_tos.
3549
0b65af49
JB
35502003-06-13 Jim Blandy <jimb@redhat.com>
3551
3552 * frv-tdep.c (frv_use_struct_convention): Delete static
3553 declaration for function deleted in my change of 2003-06-12.
3554
4ea2465e
TR
35552003-06-13 Theodore A. Roth <troth@openavr.org>
3556
3557 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3558 (avr_pointer_to_address): Shift code addrs left 1 bit.
3559 (avr_convert_from_func_ptr_addr): Delete function since operation is
3560 better handled by avr_address_to_pointer and avr_pointer_to_address.
3561 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3562
1581182a
MK
35632003-06-13 Mark Kettenis <kettenis@gnu.org>
3564
3565 From Kelley Cook <kelleycook@wideopenwest.com>:
3566 * configure.host: Accept i[34567]86 variants.
3567 * configure.tgt: Likewise.
3568 * nlm/configure.in: Likewise.
3569 * nlm/configure: Regenerated.
3570
7aa1783e
RE
35712003-06-13 Richard Earnshaw <rearnsha@arm.com>
3572
3573 * arm-tdep.c (solib-svr4.h): Dont' include it.
3574 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3575 * arm-linux-tdep.c: ... here. Make static.
3576 (arm_linux_init_abi): Register it.
3577 (solib-svr4.h): Include it.
3578 * Makefile.in: Update dependencies.
3579 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3580 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3581
0261a0d0
CV
35822003-06-13 Corinna Vinschen <vinschen@redhat.com>
3583
3584 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3585 indicate registers used for return values.
3586 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3587 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3588 members.
3589 (h8300_init_extra_frame_info): Ditto.
3590 (h8300_frame_locals_address): Removed.
3591 (h8300_frame_args_address): Removed.
3592 (h8300_extract_return_value): Use new regcache structure. Only care
3593 for 16 bit CPUs.
3594 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3595 (h8300_store_return_value): Use new regcache structure. Only care
3596 for 16 bit CPUs.
3597 (h8300h_store_return_value): Same function for 32 bit CPUs.
3598 (h8300_store_struct_return): Removed.
3599 (h8300_extract_struct_value_address): Use new regcache structure.
3600 (h8300h_extract_struct_value_address): Removed.
3601 (h8300_push_dummy_code): New function.
3602 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3603 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3604 set_gdbarch_store_return_value architecture dependent.
3605 Call set_gdbarch_push_dummy_code and
3606 set_gdbarch_extract_struct_value_address.
3607 Remove calls to set_gdbarch_frame_args_address,
3608 set_gdbarch_frame_locals_address,
3609 set_gdbarch_deprecated_store_struct_return,
3610 set_gdbarch_deprecated_extract_return_value,
3611 set_gdbarch_deprecated_extract_struct_value_address,
3612 set_gdbarch_deprecated_call_dummy_words and
3613 set_gdbarch_deprecated_sizeof_call_dummy_words.
3614
055c394a
CV
36152003-06-13 Corinna Vinschen <vinschen@redhat.com>
3616
3617 * h8300-tdep.c (h8300_register_byte): Remove.
3618 (h8300h_register_byte): Remove.
3619 (h8300_register_virtual_type): Remove. Substitute by...
3620 (h8300_register_type): New function.
3621 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3622 (h8300h_extract_struct_value_address): Ditto.
3623 (h8300_gdbarch_init): Drop calls to
3624 set_gdbarch_deprecated_register_byte and
3625 set_gdbarch_deprecated_register_virtual_type.
3626 Add call to set_gdbarch_register_type.
3627
9c04cab7
AC
36282003-06-13 Andrew Cagney <cagney@redhat.com>
3629
3630 * gdbarch.sh: Update comments on registers.
3631 (deprecated_register_byte): Rename register_byte.
3632 (deprecated_register_raw_size): Rename register_raw_size.
3633 (deprecated_register_virtual_size): Rename register_virtual_size.
3634 (deprecated_register_virtual_type): Rename register_virtual_type.
3635 * gdbarch.h, gdbarch.c: Re-generate.
3636 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3637 * vax-tdep.c (vax_gdbarch_init): Update.
3638 * v850-tdep.c (v850_gdbarch_init): Update.
3639 * sparc-tdep.c (sparc_gdbarch_init): Update.
3640 * sh-tdep.c (sh_gdbarch_init): Update.
3641 * s390-tdep.c (s390_gdbarch_init): Update.
3642 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3643 * ns32k-tdep.c: Update.
3644 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3645 * mips-tdep.c (mips_gdbarch_init): Update.
3646 * mcore-tdep.c (mcore_gdbarch_init): Update.
3647 * m68k-tdep.c (m68k_gdbarch_init): Update.
3648 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3649 * ia64-tdep.c (ia64_gdbarch_init): Update.
3650 * hppa-tdep.c (hppa_gdbarch_init): Update.
3651 * h8300-tdep.c (h8300_gdbarch_init): Update.
3652 * frv-tdep.c (frv_gdbarch_init): Update.
3653 * cris-tdep.c (cris_gdbarch_init): Update.
3654 * avr-tdep.c (avr_gdbarch_init): Update.
3655 * alpha-tdep.c (alpha_gdbarch_init): Update.
3656 * arm-tdep.c (arm_gdbarch_init): Update.
3657
b060cbea
AC
36582003-06-13 Andrew Cagney <cagney@redhat.com>
3659
3660 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3661 mips_o32_use_struct_convention with always_use_struct_convention.
3662
0fc9922a
DC
36632003-06-12 David Carlton <carlton@kealia.com>
3664
3665 * cp-namespace.c (cp_set_block_scope): Comment out
3666 processing_has_namespace_info branch.
3667
1fd35568
JB
36682003-06-12 Jim Blandy <jimb@redhat.com>
3669
f470a70a
JB
3670 Recognize and skip 64-bit PowerPC Linux linkage functions.
3671 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3672 insn_pattern, insns_match_pattern, d_field, ds_field): New
3673 functions, macros, and types for working with PPC instructions.
3674 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3675 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3676 ppc64_skip_trampoline_code): New functions, variables, and macros
3677 for recognizing and skipping linkage functions.
3678 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3679 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3680
49ff75ad
JB
3681 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3682 register offsets for both the 32- and 64-bit interfaces.
3683
bd918c83
JB
3684 Actually finish the job started by my change of 2003-05-29.
3685 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3686 other #definition of this.
3687 (ppc_linux_skip_trampoline_code): Remove declaration.
3688 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3689 static.
3690 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3691 method for GDBARCH.
3692
3693 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3694 'long' on ppc64-*-linux*.
3695
f8c59253
JB
3696 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3697 isn't #defined, assume the register doesn't exist: act as if
3698 tdep->ppc_mq_regnum were -1.
3699
8fbb30b1
JB
3700 * configure.host, configure.tgt: Add entries for
3701 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3702 powerpc/linux.mt.
3703 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3704 New files.
3705
1fd35568
JB
3706 * arch-utils.c (always_use_struct_convention): New function.
3707 * arch-utils.h (always_use_struct_convention): New prototype.
3708 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3709 (alpha_gdbarch_init): Register always_use_struct_convention,
3710 instead of alpha_use_struct_convention.
3711 * cris-tdep.c (cris_use_struct_convention): Delete.
3712 (cris_gdbarch_init): Register always_use_struct_convention,
3713 instead of cris_use_struct_convention.
3714 * frv-tdep.c (frv_use_struct_convention): Delete.
3715 (frv_gdbarch_init): Register always_use_struct_convention,
3716 instead of frv_use_struct_convention.
3717 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3718 (h8300_gdbarch_init): Register always_use_struct_convention,
3719 instead of h8300_use_struct_convention.
e3305dd9 3720 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3721 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3722 instead of mips_o32_use_struct_convention.
3723
e14e6e9c
AC
37242003-06-12 Andrew Cagney <cagney@redhat.com>
3725
3726 * wince.c: Include "mips-tdep.h".
3727 * mips-tdep.h (mips_next_pc): Declare.
3728 * mcore-tdep.c: Make more local functions static.
3729 * Makefile.in (wince.o): Update dependencies.
3730
2335f48e
DC
37312003-06-12 David Carlton <carlton@kealia.com>
3732
3733 * symtab.c (lookup_symbol_aux_minsyms): Replace
3734 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3735 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3736 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3737 SYMBOL_NATURAL_NAME.
3738
f70a7d61
AS
37392003-06-12 Andreas Schwab <schwab@suse.de>
3740
3741 * Makefile.in (tuiDisassem.o): Update dependencies.
3742
b6429628
DC
37432003-06-12 David Carlton <carlton@bactrian.org>
3744
3745 * symtab.h: Delete declaration of make_symbol_overload_list.
3746 Add declaration of lookup_partial_symbol.
3747 * symtab.c (remove_params): Move to cp-support.c.
3748 (overload_list_add_symbol, make_symbol_overload_list)
3749 (sym_return_val_size, sym_return_val_index): Ditto.
3750 (lookup_partial_symbol): Make extern.
3751 * cp-support.h: Add declaration of make_symbol_overload_list.
3752 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3753 symtab.h, and block.h.
3754 (remove_params): Move here from symtab.c.
3755 (overload_list_add_symbol, make_symbol_overload_list)
3756 (sym_return_val_size, sym_return_val_index): Ditto.
3757 * valops.c: Include cp-support.h.
3758 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3759 frame_h, and block_h.
3760 (valops.o): Depend on cp_support_h.
3761
084edea5
CV
37622003-06-12 Corinna Vinschen <vinschen@redhat.com>
3763
3764 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3765 substitute by NUM_REGS throughout.
3766 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3767 (h8300s_register_name): New function for H8S registers.
3768 (h8300sx_register_name): Ditto for H8SX registers.
3769 (h8300_print_register): Revise register printing, avoid depending
3770 on 32 bit long.
0261a0d0 3771 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3772 (h8300h_register_byte): New function for any other architecture.
3773 (h8300_register_raw_size): Remove.
3774 (h8300_register_virtual_type): Revise to return actually useful
3775 type.
3776 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3777 (h8300h_extract_struct_value_address): New function for any other
3778 architecture.
3779 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3780 set_gdbarch_register_name, set_gdbarch_register_byte,
3781 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3782 Remove calls to set_gdbarch_deprecated_register_size,
3783 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3784 set_gdbarch_deprecated_max_register_raw_size,
3785 set_gdbarch_register_virtual_size and
3786 set_gdbarch_deprecated_max_register_virtual_size entirely.
3787 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3788 set_gdbarch_long_double_bit.
3789
06194148
JJ
37902003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3791
8ffd9b1b
AJ
3792 * doublest.c (convert_doublest_to_floatformat): When dealing
3793 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
3794 processing a full 32 bits of mantissa.
3795
de4f826b
DC
37962003-06-11 David Carlton <carlton@bactrian.org>
3797
3798 * dictionary.h: New.
3799 * dictionary.c: New.
3800 * block.h: Add opaque declaration for struct dictionary.
3801 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3802 'sym' members.
3803 (BLOCK_DICT): New macro.
3804 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3805 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3806 BLOCK_SHOULD_SORT.
3807 (ALL_BLOCK_SYMBOLS): Update definition.
3808 * Makefile.in (SFILES): Add dictionary.c.
3809 (dictionary_h): New.
3810 (COMMON_OBS): Add dictionary.o.
3811 (dictionary.o): New.
3812 (ada-lang.o): Depend on dictionary_h.
3813 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3814 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3815 (mi-cmd-stack.o): Ditto.
3816 (gdbtk-cmds.o): Update dependencies.
3817 (gdbtk-stack.o): Ditto.
3818 * ada-lang.c: Include dictionary.h.
3819 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3820 (fill_in_ada_prototype, debug_print_block): Ditto.
3821 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3822 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3823 'is_sorted'.
3824 * mdebugread.c: Include dictionary.h.
3825 (struct parse_stack): Delete 'maxsyms' member.
3826 (parse_symbol): Update calls to new_block. Delete calls to
3827 shrink_block. Use dictionary methods.
3828 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3829 Update calls to new_symtab. Don't maintain maxsyms data.
3830 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3831 (add_symbol): Just call dict_add_symbol.
3832 (new_symtab): Delete 'maxsyms' argument.
3833 (new_symtab): Update calls to new_block.
3834 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3835 (shrink_block): Delete function.
3836 (fixup_sigtramp): Update call to new_block. Add symbol via
3837 dict_add_symbol.
3838 * jv-lang.c: Include dictionary.h.
3839 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3840 appropriately. Set class_symtab->free_func. Make sure the
3841 blockvector is big enough to hold two blocks.
3842 (add_class_symtab_symbol): Use dictionary methods.
3843 (free_class_block): New function.
3844 (type_from_class): Replace explicit iteration by
3845 ALL_BLOCK_SYMBOLS.
3846 * symtab.h (struct symtab): Replace 'free_ptr' method by
3847 'free_func'.
3848 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3849 sort_symtab_syms.
3850 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3851 sort_symtab_syms.
3852 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3853 Include dictionary.h.
3854 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3855 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3856 sort_symtab_syms.
3857 * objfiles.c: Include dictionary.h.
3858 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3859 * buildsym.c: Include dictionary.h.
3860 (finish_block): Use dictionary methods.
3861 (end_symtab): Set free_func to NULL, not free_ptr.
3862 * tracepoint.c: Include dictionary.h.
3863 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3864 (scope_info): Ditto.
3865 * stack.c: Include dictionary.h.
3866 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3867 (print_block_frame_labels, print_frame_arg_vars)
3868 (print_frame_args): Ditto.
3869 * symmisc.c (free_symtab_block): Use dictionary methods.
3870 (dump_symtab): Ditto.
3871 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3872 Include dictionary.h.
3873 * symfile.h: Delete declarations of sort_block_syms,
3874 sort_symtab_syms.
3875 * symfile.c (sort_block_syms): Delete.
3876 (sort_symtab_syms): Delete.
3877 * symtab.c: Include dictionary.h.
3878 (lookup_block_symbol): Use dictionary iterators.
3879 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3880 (search_symbols, make_symbol_completion_list): Ditto.
3881 (make_symbol_overload_list): Ditto.
3882 * valops.c (value_of_local): Use dict_empty.
3883 Include dictionary.h.
3884
a31f978c
JB
38852003-06-11 J. Brobecker <brobecker@gnat.com>
3886
3887 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3888
526e70c0
DC
38892003-06-11 David Carlton <carlton@bactrian.org>
3890
3891 * block.h (BLOCK_SHOULD_SORT): Delete.
3892 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3893 blocks.
3894 * ada-lang.c (ada_add_block_symbols): Ditto.
3895 * symfile.c (sort_block_syms): Delete.
3896 (sort_symtab_syms): Ditto.
3897 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3898 declarations.
3899 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3900 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3901 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3902 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3903 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3904 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3905 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3906
33c08150
JJ
39072003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3908
8ffd9b1b 3909 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
3910 bits to 128.
3911
781a750d
AC
39122003-06-11 Andrew Cagney <cagney@redhat.com>
3913
3914 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3915 REGISTER_CONVERTIBLE.
3916 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3917 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3918 * gdbarch.h, gdbarch.c: Re-generate.
3919 * arch-utils.h (deprecated_register_convertible_not): Rename
3920 generic_register_convertible_not.
3921 * arch-utils.c (deprecated_register_convertible_not): Rename
3922 generic_register_convertible.
3923 (legacy_convert_register_p, legacy_register_to_value): Update.
3924 * sh-tdep.c (sh64_push_arguments): Update.
3925 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3926 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3927 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3928 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3929 * arch-utils.c (legacy_value_to_register): Update.
3930 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3931 (rs6000_register_convert_to_raw): Make parameter "from" const.
3932 * mips-tdep.c (mips_gdbarch_init): Update.
3933 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3934 * infcmd.c (default_print_registers_info): Update.
3935 * ia64-tdep.c (ia64_gdbarch_init): Update.
3936 (ia64_register_convert_to_raw): Make parameter "from" const.
3937 * i386-tdep.c (i386_gdbarch_init): Update.
3938 (i386_register_convert_to_raw): Update.
3939
cd90e54f
AC
39402003-06-11 Andrew Cagney <cagney@redhat.com>
3941
3942 * remote-fileio.c: Include "remote-fileio.h".
3943 * Makefile.in (remote-fileio.o): Update dependencies.
3944 (remote_fileio_h): Fix typo.
3945
a78f21af
AC
39462003-06-11 Andrew Cagney <cagney@redhat.com>
3947
3948 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3949 (xstormy16_save_dummy_frame_tos): Make static.
3950 (_initialize_xstormy16_tdep): Add declaration.
3951 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3952 * v850-tdep.c: Make local functions static.
3953 (_initialize_v850_tdep): Add declaration.
3954 * sparc-tdep.c: Make local functions static.
3955 (_initialize_sparc_tdep): Add declaration.
3956 * sh-tdep.c: Make local functions static.
3957 (_initialize_sh_tdep): Add declaration.
3958 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3959 * s390-tdep.c: Make local functions static.
3960 (_initialize_s390_tdep): Add declaration.
3961 * dbxread.c (find_stab_function_addr): Make static.
3962 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3963 * ocd.c (_initialize_remote_ocd): Add declaration.
3964 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3965 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3966 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3967 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3968 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3969 * remote-array.c (_initialize_array): Add declaration.
3970 (_initialize_remote_monitors): Add declaration.
3971 * remote-mips.c: Make local functions static.
3972 (_initialize_remote_mips): Add declaration.
3973 * mcore-tdep.c: Make all local functions static.
3974 (_initialize_mcore_tdep): Add declaration.
3975 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3976 * abug-rom.c (_initialize_abug_rom): Add declaration.
3977 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3978 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3979 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3980 * remote-est.c (_initialize_est): Add declaration.
3981 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3982 (m68hc11_call_dummy_address): Make static.
3983 * ia64-tdep.c: Make local functions static.
3984 (_initialize_ia64_tdep): Add declaration.
3985 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3986 * monitor.c (monitor_wait_filter): Make static.
3987 (_initialize_remote_monitors): Add declaration.
3988 * remote-hms.c (_initialize_remote_hms): Add declaration.
3989 * remote-e7000.c (fetch_regs_from_dump): Make static.
3990 (expect_n): Make static.
3991 (_initialize_remote_e7000): Add declaration.
3992 * ser-e7kpc.c: Always include "defs.h".
3993 (_initialize_ser_e7000pc): Add declaration.
3994 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3995 * cris-tdep.c: Make all but one function static.
3996 (_initialize_cris_tdep): Add declaration.
3997 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3998 * solib.c (update_solib_list): Make static.
3999 (_initialize_solib): Add declaration.
4000 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4001 (_initialize_avr_tdep): Add declaration.
4002 * remote-rdi.c (voiddummy): Make static.
4003 (_initialize_remote_rdi): Add declaration.
4004 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4005 * remote-rdp.c (send_rdp): Make static.
4006 (_initialize_remote_rdp): Add declaration.
4007 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4008
cbcdb1f5
CV
40092003-06-11 Corinna Vinschen <vinschen@redhat.com>
4010
4011 * remote-fileio.c: Make ari happy.
4012
a191ea8d
JB
40132003-06-10 J. Brobecker <brobecker@gnat.com>
4014
4015 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4016 fetching the trailing bytes of the buffer we are about to write.
4017
0ef75e11
AC
40182003-06-10 Andrew Cagney <cagney@redhat.com>
4019
4020 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4021 * Makefile.in (remote-fileio.o): Update dependencies.
4022 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4023 include <setjmp.h>, or <sys/types.h> conditional on USG.
4024 (remote_fio_jmp_buf): Delete global variable.
4025
449092f6 40262003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 4027 Martin M. Hunt <hunt@redhat.com>
449092f6 4028
559fa028
AC
4029 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4030 (SFILES): Add remote-fileio.c.
4031 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4032 dependencies for building remote.o.
449092f6
CV
4033 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4034 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 4035 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
4036 static storage class.
4037 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4038 'F' packet.
4039 (_initialize_remote): Call initialize_remote_fileio().
4040 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
4041 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4042 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4043 (captured_main): Initialize new ui_files.
4044 * ui-file.c: Add read and fgets input functions.
4045 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4046 (null_file_read): New function.
4047 (ui_file_read): New function.
4048 (set_ui_file_read): New function.
4049 (stdio_file_read): New function.
4050 * ui-file.h: New type ui_file_read_ftype.
4051 (set_ui_file_read): Declare.
4052 (ui_file_read): Declare.
4053
248de703
AC
40542003-06-09 Andrew Cagney <cagney@redhat.com>
4055
4056 * frame.h (deprecated_unwind_get_saved_register): Rename
4057 generic_unwind_get_saved_register, update comments.
4058 * mips-tdep.c (mips_get_saved_register): Update.
4059 * frame.c (deprecated_unwind_get_saved_register): Update.
4060
0ed8aa57
AC
40612003-06-09 Andrew Cagney <cagney@redhat.com>
4062
4063 * vax-tdep.c (vax_frame_locals_address): Delete function.
4064 (vax_gdbarch_init): Do not set frame_locals_address.
4065 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4066 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4067 * s390-tdep.c (s390_frame_args_address): Delete function.
4068 (s390_gdbarch_init): Do not set frame_args_address or
4069 frame_locals_address.
4070 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4071 (ns32k_gdbarch_init): Do not set frame_locals_address.
4072 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4073 (hppa_frame_locals_address): Delete function.
4074 (hppa_gdbarch_init): Do not set frame_args_address, or
4075 frame_locals_address.
4076 * arm-tdep.c (arm_frame_args_address): Delete.
4077 (arm_frame_locals_address): Delete.
4078 (arm_gdbarch_init): Do not set frame_args_address, or
4079 frame_locals_address.
4080
983a287a
AC
40812003-06-09 Andrew Cagney <cagney@redhat.com>
4082
4083 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4084 * gdbarch.h, gdbarch.c: Re-generate.
4085 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4086 * arch-utils.c (frame_num_args_unknown): Delete function.
4087 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4088 (frame_info): Use FRAME_NUM_ARGS_P.
4089 * arm-tdep.c (arm_frame_num_args): Delete function.
4090 (arm_gdbarch_init): Do not set frame_num_args.
4091 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4092 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4093 (hppa_gdbarch_init): Do not set frame_num_args.
4094 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4095 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4096 frame_num_args to default frame_num_args_unknown.
4097 * v850-tdep.c (v850_gdbarch_init): Ditto.
4098 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4099 * sh-tdep.c (sh_gdbarch_init): Ditto.
4100 * s390-tdep.c (s390_gdbarch_init): Ditto.
4101 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4102 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4103 * mips-tdep.c (mips_gdbarch_init): Ditto.
4104 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4105 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4106 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4107 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4108 * i386-tdep.c (i386_gdbarch_init): Ditto.
4109 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4110 * frv-tdep.c (frv_gdbarch_init): Ditto.
4111 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4112 * cris-tdep.c (cris_gdbarch_init): Ditto.
4113 * avr-tdep.c (avr_gdbarch_init): Ditto.
4114 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4115
8d3b0994
AC
41162003-06-09 Andrew Cagney <cagney@redhat.com>
4117
4118 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4119 (print_frame_args): Moved to "stack.c".
4120 * stack.c: Include "gdb_assert.h".
4121 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4122 (print_frame_args): Moved from "printcmd.c".
4123 * frame.h (print_frame_args): Delete declaration.
4124 * Makefile.in (stack.o): Update dependencies.
4125
25e3a86b
AC
41262003-06-08 Andrew Cagney <cagney@redhat.com>
4127
4128 * frame.c (get_prev_frame): Remove reference to
4129 frame_args_address_correct in comments.
4130 * frame-base.c (default_frame_args_address): Delete code
4131 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4132 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4133 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4134 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4135 (vax_frame_args_address_correct): Delete declaration.
4136
a9e5fdc2
AC
41372003-06-08 Andrew Cagney <cagney@redhat.com>
4138
4139 * gdbarch.sh (UNWIND_SP): Add.
4140 * gdbarch.h, gdbarch.c: Re-generate.
4141 * frame.c (frame_sp_unwind): New function.
4142 (get_frame_sp): New function.
4143 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4144 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4145 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4146 value.
4147 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4148 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4149
8983bd83
AC
41502003-06-08 Andrew Cagney <cagney@redhat.com>
4151
7fec2c59
AC
4152 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4153 REMOTE_BREAKPOINT.
4154 * remote.c: Update.
4155 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4156 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4157 * config/m68k/tm-sun3.h: Update.
4158 * config/m68k/tm-m68klynx.h: Update.
4159 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4160
8983bd83
AC
4161 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4162 trad_frame". Update comments.
4163 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4164 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4165 (trad_frame_register_value, trad_frame_prev_register): Update.
4166
b9362cc7
AC
41672003-06-08 Andrew Cagney <cagney@redhat.com>
4168
4169 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4170 from GCC's acinclude.m4.
4171 * configure.in: Check for getopt's delcaration.
8ffd9b1b 4172 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
4173 * main.c (error_init): Delete declaration.
4174 * defs.h (error_init): Declare.
4175 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4176 (rs6000_convert_from_func_ptr_addr): Make static.
4177 (_initialize_rs6000_tdep): Add declaration.
4178 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4179 (show_commands, set_verbose, show_history): Delete declaration.
4180 * top.h (set_verbose): Add declaration.
4181 (show_history, set_history, show_commands): Add declaration.
4182 (do_restore_instream_cleanup): Add declaration.
4183 * objc-lang.c (specialcmp): Make static.
4184 (print_object_command): Make static.
4185 (find_objc_msgsend): Make static.
4186 (find_objc_msgcall_submethod_helper): Make static.
4187 (find_objc_msgcall_submethod): Make static.
4188 (_initialize_objc_language): Add declaration.
4189 (find_implementation_from_class): Make static.
4190 (find_implementation): Make static.
4191 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4192 * objc-lang.h (lookup_struct_typedef): Add declaration.
4193 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4194 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4195 (do_restore_user_call_depth): Make static.
4196 (do_restore_instream_cleanup): Delete declaration.
4197 (dont_repeat): Delete declaration.
4198 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4199 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4200 * reggroups.c (_initialize_reggroup): Add declaration.
4201 * cp-support.c (_initialize_cp_support): Add declaration.
4202 * cp-abi.c (_initialize_cp_abi): Add declaration.
4203 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4204 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4205 (_initialize_gnu_v3_abi): Add declaration.
4206 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4207 (_initialize_gnu_v2_abi): Add declaration.
4208 * frame-base.c (_initialize_frame_base): Add declaration.
4209 * doublest.c (floatformat_from_length): Make static.
4210 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4211 * frame.c (create_sentinel_frame): Make static.
4212 (_initialize_frame): Add declaration.
4213 * top.c (do_catch_errors): Make static.
4214 (gdb_rl_operate_and_get_next_completion): Make static.
4215 * typeprint.c: Include "typeprint.h".
4216 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4217 (sentinel_frame_this_id): Make static.
4218 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4219 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4220 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4221 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4222 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4223 * maint.c (maintenance_print_architecture): Make static.
4224 * signals/signals.c (_initialize_signals): Add declaration.
4225 * std-regs.c (_initialize_frame_reg): Add declaration.
4226 * jv-exp.y (push_variable): ISO C definition.
4227 (push_qualified_expression_name): Ditto.
4228 * memattr.c (_initialize_mem): Add declaration.
4229 * remote.c (remote_check_watch_resources): Make static.
4230 (remote_stopped_by_watchpoint): Make static.
4231 (remote_stopped_data_address): Make static.
4232 * d10v-tdep.c (nr_dmap_regs): Make static.
4233 (a0_regnum): Make static.
4234 (d10v_frame_unwind_cache): Make static.
4235 (d10v_frame_p): Make static.
4236 * osabi.c (show_osabi): Make static.
4237 (_initialize_gdb_osabi): Add extern declaration.
4238 * gdbtypes.c (make_qualified_type): Make static.
4239 (safe_parse_type): Make static.
4240 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4241 * macrotab.c (macro_bcache_free): Make static.
4242 * interps.c (interp_set_quiet): Make static.
4243 (interpreter_exec_cmd): Make static.
4244 * stack.h (select_frame_command): New file.
4245 * stack.c: Include "stack.h".
4246 (select_frame_command_wrapper): Delete function.
4247 (select_frame_command): Make global.
4248 * infcall.c: Include "infcall.h".
4249 * linespec.c: Include "linespec.h".
4250 * symfile.c (sections_overlap): Make static.
4251 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4252 * charset.c (_initialize_charset): Add missing prototype.
4253 * regcache.c (init_legacy_regcache_descr): Make static.
4254 (do_regcache_xfree): Make static.
4255 (regcache_xfer_part): Make static.
4256 (_initialize_regcache): Add missing prototype.
4257 * breakpoint.c (parse_breakpoint_sals): Make static.
4258 (breakpoint_sals_to_pc): Make static.
4259 * interps.h (clear_interpreter_hooks): ISO C declaration.
4260 * Makefile.in (stack_h): Define.
4261 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4262 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4263
a0f267c7
AC
42642003-06-08 Andrew Cagney <cagney@redhat.com>
4265
4266 * Makefile.in (d10v-tdep.o): Update dependencies.
4267 (SFILES): Add trad-frame.c.
4268 (trad_frame_h): Define.
4269 (COMMON_OBS): Add trad-frame.o.
4270 (trad-frame.o): Specify dependencies.
4271 * d10v-tdep.c: Include "trad-frame.h".
4272 (saved_regs_unwinder): Delete function.
4273 (d10v_frame_prev_register): Use trad_frame_prev_register.
4274 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4275 trad_frame", delete "regs" and "prev_sp".
4276 (prologue_find_regs): Use trad-frame.
4277 * trad-frame.h, trad-frame.c: New files.
4278
4538b4f4
MK
42792003-06-08 Mark Kettenis <kettenis@gnu.org>
4280
4281 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4282
a0273b2f
AF
42832003-06-07 Adam Fedor <fedor@gnu.org>
4284
4285 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4286 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4287 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4288 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 4289 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
4290 Use it.
4291
3a6c3343
AC
42922003-06-07 Andrew Cagney <cagney@redhat.com>
4293
4294 * symfile.h: Re-indent, clean up comments.
4295
b46e02f6
AC
42962003-06-07 Andrew Cagney <cagney@redhat.com>
4297
4298 * inferior.h (deprecated_write_sp): Replace
4299 generic_target_write_sp.
4300 * regcache.c (deprecated_write_sp): Replace
4301 generic_target_write_sp.
4302 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4303 * vax-tdep.c (vax_gdbarch_init): Update.
4304 * v850-tdep.c (v850_gdbarch_init): Update.
4305 * sparc-tdep.c (sparc_gdbarch_init): Update.
4306 * sh-tdep.c (sh_gdbarch_init): Update.
4307 * s390-tdep.c (s390_gdbarch_init): Update.
4308 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4309 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4310 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4311 * mcore-tdep.c (mcore_gdbarch_init): Update.
4312 * m68k-tdep.c (m68k_gdbarch_init): Update.
4313 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4314 * ia64-tdep.c (ia64_gdbarch_init): Update.
4315 * h8300-tdep.c (h8300_gdbarch_init): Update.
4316 * frv-tdep.c (frv_gdbarch_init): Update.
4317 * cris-tdep.c (cris_gdbarch_init): Update.
4318 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4319
a42e117c
AC
43202003-06-07 Andrew Cagney <cagney@redhat.com>
4321
4322 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4323 Assert that PC_REGNUM is valid.
4324 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4325
bd1ce8ba
AC
43262003-06-07 Andrew Cagney <cagney@redhat.com>
4327
4328 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4329 * gdbarch.h, gdbarch.c: Regenerate.
4330 * mn10300-tdep.c: Include "gdb_assert.h".
4331 (mn10300_read_fp): New function.
4332 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4333 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4334 * ia64-tdep.c: Include "gdb_assert.h".
4335 (ia64_read_fp): New function.
4336 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4337 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4338 * regcache.c (generic_target_read_sp): Delete function.
4339 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4340 * inferior.h (generic_target_read_sp): Delete declaration.
4341 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4342 generic_target_read_sp.
4343 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4344 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4345 * sh-tdep.c (sh_gdbarch_init): Ditto.
4346 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4347 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4348
ec5cbaec
AC
43492003-06-07 Andrew Cagney <cagney@redhat.com>
4350
4351 * gdbarch.sh: Comment each field of startup_gdbarch.
4352 * gdbarch.h, gdbarch.c: Re-generate.
4353
cde9ea48
AC
43542003-06-07 Andrew Cagney <cagney@redhat.com>
4355
4356 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4357 * gdbarch.h, gdbarch.c: Re-generate.
4358 * regcache.c: Update comments on read_pc et.al.
4359 (generic_target_read_pc): Delete function.
4360 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4361 * inferior.h (generic_target_read_pc): Delete declaration.
4362 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4363 generic_target_read_pc.
4364 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4365 * sh-tdep.c (sh_gdbarch_init): Ditto.
4366 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4367 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 4368
9a90a780
AC
43692003-06-07 Andrew Cagney <cagney@redhat.com>
4370
4371 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4372 "index" with "special_local_sect". Use strcmp instead of STREQ.
4373 Append period to coments.
4374
a39a16c4
MM
43752003-06-06 Mark Mitchell <mark@codesourcery.com>
4376
4377 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4378 (elfstab_offset_sections): Likewise.
4379 * gdb-stabs.h (stab_section_info): Likewise.
4380 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4381 * objfiles.c (objfile_relocate): Likewise.
4382 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4383 * remote.c (get_offsets): Likewise.
4384 (remote_cisco_objfile_relocate): Likewise.
4385 * somread.c (som_symfile_offsets): Likewise.
4386 * symfile.c (alloc_section_addr_info): New function.
4387 (build_section_addr_info_from_section_tab): Use it.
4388 (free_section_addr_info): Adjust.
4389 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4390 (syms_from_objfile): Allocate local_addr dynamically.
4391 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4392 dynamically.
4393 (add_symbol_file_command): Allocate sect_opts dynamically.
4394 (reread_symbols): Avoid use of SECT_OFF_MAX.
4395 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4396 (alloc_section_addr_info): Declare it.
4397 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4398 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4399 dynamically.
4400 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4401
20c6c2f8
AC
44022003-06-06 Andrew Cagney <cagney@redhat.com>
4403
4404 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4405 (d10v_frame_unwind_cache): Do not set "return_pc".
4406
884a26c8
MS
44072003-06-06 Michael Snyder <msnyder@redhat.com>
4408
4409 * h8300-tdep.c: Make tidy (long lines).
4410
088ce440
ML
44112003-06-06 Michal Ludvig <mludvig@suse.cz>
4412
8ffd9b1b 4413 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4414 to regcache_collect().
4415
7d773d96
JB
44162003-06-05 J. Brobecker <brobecker@gnat.com>
4417
4418 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4419 pc_in_sigtramp multiarch method.
4420 (hppa_hpux_som_init_abi): Use it.
4421 (hppa_hpux_elf_init_abi): Likewise.
4422 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4423 macro has been multiarched.
4424 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4425 macro here, as hppa64 isn't multiarched yet.
4426
1df6926e
AC
44272003-06-05 Andrew Cagney <cagney@redhat.com>
4428
4429 * Makefile.in (value_h): Add $(frame_h).
4430 * value.h: Include "frame.h".
4431 (struct value): Replace "frame_addr" with "frame_id".
4432 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4433 * values.c (allocate_value): Use VALUE_FRAME_ID.
4434 (value_copy): Use VALUE_FRAME_ID.
4435 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4436 * valops.c (value_assign): Update. Use frame_find_by_id.
4437
6b53acc6
ML
44382003-06-05 Michal Ludvig <mludvig@suse.cz>
4439
4440 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4441 in each pass.
4442
4d9850d3
JJ
44432003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4444
4445 * thread-db.c (check_event): For create/death event breakpoints,
4446 loop through all messages to ensure that we read the message
4447 corresponding to the breakpoint we are at.
4448
8efca6ba
MS
44492003-06-04 Michael Snyder <msnyder@redhat.com>
4450
4451 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4452
0912c7f2
MK
44532003-06-04 Mark Kettenis <kettenis@gnu.org>
4454
4455 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4456 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4457 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4458 when handling .eh_frame sections.
4459
4e370325
JB
44602003-06-04 J. Brobecker <brobecker@gnat.com>
4461
4462 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4463 prepare_to_proceed procedure instead of the hppa-specific one.
4464 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4465
b757528f 44662003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4467
b757528f
JJ
4468 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4469 * config.in: Regenerated.
4470 * configure.in: Add test for syscall function and check for
4471 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4472 * configure: Regenerated.
4473 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4474 <sys/syscall.h>.
4475 (kill_lwp): New function that uses tkill syscall or
4476 uses kill, depending on whether threading model is nptl or not.
4477 All callers of kill() changed to use kill_lwp().
4478 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4479 see if all threads have already exited in the nptl model.
4480 (stop_and_resume_callback): New callback function used by the
4481 lin_lwp_wait thread exit handling code.
4482 (stop_wait_callback): Check for threads already having exited and
4483 delete such threads fromt the lwp list when discovered.
4484 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4485
b757528f
JJ
4486 Roland McGrath <roland@redhat.com>
4487 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4488 nptl libthread_db.
4489
087779b1
RH
44902003-06-03 Richard Henderson <rth@redhat.com>
4491
b21fd293
RH
4492 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4493 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4494 (alpha_sigtramp_frame_prev_register): Likewise.
4495 (alpha_heuristic_frame_prev_register): Likewise.
4496 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4497
8ffd9b1b 4498 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4499 alpha-specific register id names.
4500 (alpha_mdebug_frame_unwind_cache): Likewise.
4501 (alpha_mdebug_frame_prev_register): Likewise.
4502
baa490c4
RH
45032003-06-03 Richard Henderson <rth@redhat.com>
4504
4505 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4506 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4507 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4508 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4509 unwind routines.
4510 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4511 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4512 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4513
4514 * alpha-linux-tdep.c: Remove unnecessary includes.
4515 * Makefile.in (alpha-linux-tdep.o): Update.
4516
45172003-06-03 Richard Henderson <rth@redhat.com>
4518
4519 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4520 (alphabsd_fill_fpreg): Likewise.
4521
f534e522
JB
45222003-06-03 J. Brobecker <brobecker@gnat.com>
4523
4524 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4525 references to struct frame_info fields by calls to the equivalent
4526 accessors. Necessary now that frame_info is opaque.
4527
4035536b
JB
45282003-06-03 J. Brobecker <brobecker@gnat.com>
4529
4530 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4531 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4532 structure, field no longer exists.
4533
0bd79c5c
JB
45342003-06-03 J. Brobecker <brobecker@gnat.com>
4535
4536 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4537 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4538
37bb6d9f
JB
45392003-06-03 J. Brobecker <brobecker@gnat.com>
4540
4541 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4542 references to struct frame_info fields by calls to the equivalent
4543 accessors. Necessary now that frame_info is opaque.
4544
852ee05c
JB
45452003-06-03 J. Brobecker <brobecker@gnat.com>
4546
4547 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4548 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4549 structure, field no longer exists.
4550
7d58c67d
TR
45512003-06-03 Theodore A. Roth <troth@openavr.org>
4552
8ffd9b1b 4553 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4554 accumulation of the size of all registers instead of blindly using
4555 DEPRECATED_REGISTER_BYTES.
4556
0a48e7e8
MS
45572003-06-03 Michael Snyder <msnyder@redhat.com>
4558
4559 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4560 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4561 for h8300sx.
4562
9798ab0d
JB
45632003-06-03 J. Brobecker <brobecker@gnat.com>
4564
4565 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4566 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4567
00b037e2
AC
45682003-06-03 Andrew Cagney <cagney@redhat.com>
4569
4570 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4571 (sparc_convert_to_raw): Delete function.
4572 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4573 register_convert_to_virtual.
4574
043b2f77
JJ
45752003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4576
4577 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4578 layer if not dealing with a statically-linked threaded program.
4579
f43caff8
KW
45802003-06-03 Kris Warkentin <kewarken@qnx.com>
4581
4582 * solib.c (solib_open): Update comment to reflect actual search order.
4583
ae1e7417
AC
45842003-06-03 Andrew Cagney <cagney@redhat.com>
4585
4586 * frame.c (get_frame_memory_signed): New function.
4587 (get_frame_memory, get_frame_memory_unsigned): New function.
4588 (get_frame_arch): New function.
4589 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4590 (get_frame_memory, get_frame_unsigned_memory): Declare.
4591 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4592 get_frame_memory_unsigned and get_frame_arch.
4593 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4594
cb123844
RG
45952003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4596
4597 * MAINTAINERS (write after approval): Add myself.
4598
1bb792e9
JB
45992003-06-03 Jim Blandy <jimb@redhat.com>
4600
4601 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4602 elements of gregset_t are 64 bits each, but access registers
4603 are still 32 bits, so they're packed two per gregset_t
4604 element. Unpack/pack them properly.
4605
aee8d8ba
DC
46062003-06-02 David Carlton <carlton@bactrian.org>
4607
4608 * linespec.c (find_methods): Break out code into
4609 add_matching_methods and add_constructors.
4610 (add_matching_methods): New.
4611 (add_constructors): Ditto.
4612
bf7488d2
AC
46132003-06-02 Andrew Cagney <cagney@redhat.com>
4614
bf7488d2
AC
4615 * sparc-tdep.c (sparc_print_registers): Delete call to
4616 REGISTER_CONVERTIBLE.
4617 (sparc_gdbarch_init): Do not set register_convertible.
4618 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4619 * frv-tdep.c (frv_gdbarch_init): Ditto.
4620 * cris-tdep.c (cris_gdbarch_init): Ditto.
4621
adedef68
EZ
46222003-06-02 Elena Zannoni <ezannoni@redhat.com>
4623
8ffd9b1b 4624 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4625 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4626 (syms_from_objfile): Ditto.
4627
650fcc91
AS
46282003-06-03 Andreas Schwab <schwab@suse.de>
4629
4630 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4631 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4632
df4a182b
RH
46332003-06-02 Richard Henderson <rth@redhat.com>
4634
4635 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4636 a member of all_reggroup.
4637
c483c494
RH
46382003-06-02 Richard Henderson <rth@redhat.com>
4639
4640 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4641 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4642 (alpha_lds, alpha_sts): New.
4643 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4644 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4645 restructure and fail for type sizes other than 4 or 8.
4646 (alpha_value_to_register): Similarly.
4647 (alpha_extract_return_value): Use alpha_sts.
4648 (alpha_store_return_value): Use alpha_lds.
4649 (alpha_gdbarch_init): Update hooks.
4650
b38b6be2
RH
46512003-06-02 Richard Henderson <rth@redhat.com>
4652
4653 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4654 regnum identifiers.
4655 (alpha_sigtramp_register_address): Likewise.
4656
98a8e1e5
RH
46572003-06-02 Richard Henderson <rth@redhat.com>
4658
4659 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4660 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4661 * alpha-tdep.h: Declare them.
4662
4663 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4664 Remove zerobuf. Don't error on UNIQUE.
4665 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4666 (ALPHA_REGSET_UNIQUE): Provide default.
4667 (supply_gregset): Use alpha_supply_int_regs.
4668 (fill_gregset): Use alpha_fill_int_regs.
4669 (supply_fpregset): Use alpha_supply_fp_regs.
4670 (fill_fpregset): Use alpha_fill_fp_regs.
4671 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4672 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4673 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4674 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4675 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4676 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4677
67dfac52
RH
46782003-06-02 Richard Henderson <rth@redhat.com>
4679
f75d70cc
RH
4680 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4681
67dfac52
RH
4682 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4683 (alpha_store_return_value): Likewise.
4684
0cf566ec
DC
46852003-06-02 David Carlton <carlton@math.stanford.edu>
4686
4687 * block.c (contained_in): Add 'const' to arguments.
4688 (block_function): Ditto.
4689 * block.h: Update declarations for block_function and
4690 contained_in.
4691
cdef89d0
DC
46922003-06-02 David Carlton <carlton@math.stanford.edu>
4693
4694 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4695 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4696 * p-valprint.c (pascal_val_print): Ditto.
4697 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4698
72667056
RH
46992003-06-02 Richard Henderson <rth@redhat.com>
4700
98a8e1e5
RH
4701 * alpha-tdep.c (alpha_push_dummy_call): Use
4702 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4703
8ffd9b1b 4704 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4705 sign-extension of 32-bit values.
4706 (alpha_store_return_value): Similarly.
0ede8eca 4707
98a8e1e5
RH
4708 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4709 (alpha_extract_return_value): Likewise.
4710 (alpha_store_return_value): Likewise.
7b5e1cb3 4711
98a8e1e5
RH
4712 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4713 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4714
98a8e1e5
RH
4715 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4716 (alpha_extract_struct_value_address): Likewise.
4717 (alpha_store_return_value): Likewise.
4718 (alpha_store_struct_return): Remove.
4719 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4720
98a8e1e5
RH
4721 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4722 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4723 macros where appropriate.
4724 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4725 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4726
98a8e1e5
RH
4727 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4728 for SP, GP; void_func_ptr for PC; non-language-specific types
4729 for all others.
4730 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4731
6dd77b81
RH
47322003-06-02 Richard Henderson <rth@redhat.com>
4733
4734 * top.h (lim_at_start): Declare.
4735 * main.c (captured_main): Set it.
4736 * top.c (lim_at_start): Define.
4737 (command_loop): Use it instead of &environ.
4738 * event-top.c (command_handler): Likewise.
4739
f4dbdb54
JT
47402003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4741
4742 * mipsnbsd-tdep.c: Update copyright years.
4743 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4744
8f285956
RH
47452003-06-01 Richard Henderson <rth@redhat.com>
4746
98a8e1e5
RH
4747 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4748 (alpha-linux-tdep.o): Update dependencies.
4749 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4750 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4751
615967cb
RH
47522003-06-01 Richard Henderson <rth@redhat.com>
4753
98a8e1e5
RH
4754 * alpha-tdep.c (alpha_register_reggroup_p): New.
4755 (alpha_gdbarch_init): Register it.
615967cb 4756
b59661bd
AC
47572003-06-02 Andrew Cagney <cagney@redhat.com>
4758
4759 * dwarfread.c: Eliminate "register"
4760 (decode_die_type): Eliminate assignment within "if".
4761 (struct_type, decode_array_element_type): Ditto.
4762 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4763 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4764 (decode_modified_type, completedieinfo): Ditto.
4765 * block.c: Eliminate "register".
4766 (blockvector_for_pc_sect): Eliminate assignment within "if".
4767 * cp-support.h (struct symbol): Opaque declaration.
4768 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4769
5ef165c2
RH
47702003-06-01 Richard Henderson <rth@redhat.com>
4771
98a8e1e5
RH
4772 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4773 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4774
143985b7
AF
47752003-06-01 Adam Fedor <fedor@gnu.org>
4776
4777 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4778 * gdbarch.[ch]: Regenerate.
4779 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4780 (hppa_gdbarch_init): Set it in the gdbarch vector.
4781 * i386-tdep.c (i386_fetch_pointer_argument): New
4782 (i386_gdbarch_init): Set it into gdbarch.
4783 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4784 (rs6000_gdbarch_init): Set it in gdbarch.
4785 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4786 (sparc_gdbarch_init): Set it in gdbarch.
4787
ae0167b9
AC
47882003-06-01 Andrew Cagney <cagney@redhat.com>
4789
7c0b4a20
AC
4790 * defs.h (extract_address): Delete declaration.
4791 * findvar.c (extract_address): Delete function.
4792 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4793 extract_address with the inline equivalent,
4794 extract_unsigned_integer.
4795 (xstormy16_extract_struct_value_address): Ditto.
4796 (xstormy16_pointer_to_address): Ditto.
4797 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4798 * v850-tdep.c (v850_push_arguments): Ditto.
4799 (v850_extract_return_value): Ditto.
4800 (v850_extract_struct_value_address): Ditto.
4801 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4802 (sparcnbsd_get_longjmp_target_64): Ditto.
4803 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4804 (get_longjmp_target): Ditto.
4805 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4806 (sh64_extract_struct_value_address): Ditto.
4807 (sh_push_arguments): Ditto.
4808 (sh64_push_arguments): Ditto.
4809 * remote-vxsparc.c (vx_read_register): Ditto.
4810 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4811 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4812 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4813 * mipsv4-nat.c (get_longjmp_target): Ditto.
4814 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4815 * mips-nat.c (get_longjmp_target): Ditto.
4816 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4817 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4818 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4819 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4820 * irix5-nat.c (get_longjmp_target): Ditto.
4821 * irix4-nat.c (get_longjmp_target): Ditto.
4822 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4823 (ia64_push_arguments): Ditto.
4824 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4825 * h8300-tdep.c (h8300_push_arguments): Ditto.
4826 (h8300_store_return_value): Ditto.
4827 (h8300_extract_struct_value_address): Ditto.
4828 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4829 (frv_push_arguments): Ditto.
4830 * avr-tdep.c (avr_pointer_to_address): Ditto.
4831 (avr_push_arguments): Ditto.
4832 * arm-tdep.c (arm_push_dummy_call): Ditto.
4833 (arm_get_longjmp_target): Ditto.
4834 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4835 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4836 (alpha_get_longjmp_target): Ditto.
4837
ae0167b9
AC
4838 * solib-irix.c (extract_mips_address): Inline extract_address,
4839 replacing it with extract_signed_integer.
4840 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4841 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4842 (first_link_map_member, open_symbol_file_object): Ditto.
4843 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4844 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4845 (LM_NEXT, LM_NAME): Ditto.
4846
44d88583
RH
48472003-06-01 Richard Henderson <rth@redhat.com>
4848
98a8e1e5
RH
4849 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4850 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4851 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4852 (alpha_cannot_store_register): Likewise.
4853 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4854 * alpha-nat.c (supply_gregset): Likewise.
4855 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 4856
310e9b6a
AC
48572003-06-01 Andrew Cagney <cagney@redhat.com>
4858
4859 * infcall.c (call_function_by_hand): Update comment on
4860 DEPRECATED_DUMMY_WRITE_SP.
4861
4862 * mips-tdep.c (mips_gdbarch_init): Do not set
4863 deprecated_dummy_write_sp.
4864 (mips_eabi_push_dummy_call): Set the SP register.
4865 (mips_o64_push_dummy_call): Set the SP register.
4866 (mips_o32_push_dummy_call): Set the SP register.
4867 (mips_n32n64_push_dummy_call): Set the SP register.
4868
5ab84872
RH
48692003-06-01 Richard Henderson <rth@redhat.com>
4870
98a8e1e5
RH
4871 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4872 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4873 (supply_gregset): Likewise.
4874 * alpha-tdep.c (alpha_store_return_value): Likewise.
4875 (alpha_get_longjmp_target): Likewise.
4876 (alpha_register_name): Constify array.
4877 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4878 deprecated_register_size, deprecated_register_bytes,
4879 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4880 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4881 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 4882
09cc52fd
RH
48832003-06-01 Richard Henderson <rth@redhat.com>
4884
4885 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4886 from arg_reg_buffer to regcache to avoid double conversion.
4887
c7f16359
MK
48882003-06-01 Mark Kettenis <kettenis@gnu.org>
4889
4890 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4891 SP_REGNUM.
4892 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4893 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4894
7131cb6e
RH
48952003-06-01 Richard Henderson <rth@redhat.com>
4896
98a8e1e5
RH
4897 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4898 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 4899
f3e0f90b
RH
49002003-06-01 Richard Henderson <rth@redhat.com>
4901
98a8e1e5
RH
4902 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4903 not overlapping PC_REGNUM.
f3e0f90b 4904
c88e30c0
RH
49052003-06-01 Richard Henderson <rth@redhat.com>
4906
98a8e1e5
RH
4907 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4908 alpha_push_arguments. Don't dump argument register data to
4909 the target stack. Fix float and 128-bit long double semantics.
4910 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4911 (alpha_fix_call_dummy): Remove.
4912 (alpha_call_dummy_words): Remove.
4913 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 4914
f1a559ae
RH
49152003-06-01 Richard Henderson <rth@redhat.com>
4916
4917 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4918
5e045346
AC
49192003-06-01 Andrew Cagney <cagney@redhat.com>
4920
95404a3e
AC
4921 * mips-tdep.c (is_mips16_addr): New function.
4922 (make_mips16_addr, unmake_mips16_addr): New functions.
4923 (pc_is_mips16, mips_fetch_instruction): Use.
4924 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4925 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4926 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4927 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4928 TARGET_MIPS.
4929 * config/mips/tm-mips.h: Update copyright.
4930 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4931 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4932 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4933 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4934 (TM_PRINT_INSN_MACH): Delete.
4935 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4936
5e045346
AC
4937 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4938 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4939 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4940 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4941 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4942 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4943 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4944 mips*-*-riscos* and mips*-*-sysv* onto mips.
4945 * config/mips/mips64.mt: New file.
4946 * config/mips/mips.mt: New file.
4947 * config/mips/littlemips.mt: Delete file.
4948 * config/mips/decstation.mt: Delete file.
4949 * config/mips/vr4300el.mt: Delete file.
4950 * config/mips/vr5000el.mt: Delete file.
4951 * config/mips/vr5000.mt: Delete file.
4952 * config/mips/vr4100.mt: Delete file.
4953 * config/mips/vr4xxxel.mt: Delete file.
4954 * config/mips/vr4300.mt: Delete file.
4955 * config/mips/vr4xxx.mt: Delete file.
4956 * config/mips/bigmips.mt: Delete file.
4957 * config/mips/bigmips64.mt: Delete file.
4958 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4959 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4960 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4961 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4962 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4963 "tm-bigmips.h".
4964 * config/mips/tm-irix3.h: Ditto.
4965 * config/mips/tm-mipsv4.h: Ditto.
4966 * config/mips/tm-embed.h: Ditto.
4967 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4968 "tm-bigmips64.h".
4969 * config/mips/tm-vr5000el.h: Delete file.
4970 * config/mips/tm-tx39l.h: Delete file.
4971 * config/mips/tm-vr4300el.h: Delete file.
4972 * config/mips/tm-vr4xxxel.h: Delete file.
4973 * config/mips/tm-vr4300.h: Delete file.
4974 * config/mips/tm-vr4100.h: Delete file.
4975 * config/mips/tm-vr4xxx.h: Delete file.
4976 * config/mips/tm-vr5000.h: Delete file.
4977 * config/mips/tm-embedl64.h: Delete file.
4978 * config/mips/tm-embedl.h: Delete file.
4979 * config/mips/tm-embed64.h: Delete file.
4980 * config/mips/tm-bigmips64.h: Delete file.
4981 * config/mips/tm-bigmips.h: Delete file.
4982
2473a4a9
MK
49832003-06-01 Mark Kettenis <kettenis@gnu.org>
4984
97a5b208
MK
4985 Fix gdb/1216.
4986 * shnbsd-nat.c: Include "sh-tdep.h".
4987
2473a4a9
MK
4988 From Richard Henderson <rth@redhat.com>:
4989 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4990
e0f7ec59
AC
49912003-05-31 Andrew Cagney <cagney@redhat.com>
4992
4993 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4994 forward declaration.
4995 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4996 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4997 (mips_find_saved_regs): Use set_reg_offset.
4998 (mips_frame_init_saved_regs): Delete function.
4999 (mips_pop_frame): Call mips_find_saved_regs instead of
5000 DEPRECATED_FRAME_INIT_SAVED_REGS.
5001
68dcc709
AC
50022003-05-31 Andrew Cagney <cagney@redhat.com>
5003
5004 * mips-tdep.c (mips_gdbarch_init): Do not set
5005 deprecated_max_register_raw_size, register_virtual_size, and
5006 deprecated_max_register_virtual_size.
5007
cfc14b3a
MK
50082003-05-31 Mark Kettenis <kettenis@gnu.org>
5009
6405b0a6
MK
5010 * i386-tdep.c: Include "dwarf2-frame.h".
5011 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5012 * Makefile.in (i386-tdep.o): Update dependencies.
5013
cfc14b3a
MK
5014 * dwarf2-frame.c, dwarf2-frame.h: New files.
5015 * Makefile.in (SFILES): Add dwarf2-frame.c.
5016 (dwarf2_frame_h): Define.
5017 (COMMON_OBS): Add dwarf2-frame.o.
5018 (dwarf2-frame.o): Add dependencies.
5019
6a2751d2
AJ
50202003-05-31 Andreas Jaeger <aj@suse.de>
5021
5022 * x86-64-linux-nat.c: Fix comment.
5023
1c3545ae
MK
50242003-05-31 Mark Kettenis <kettenis@gnu.org>
5025
10f93086
MK
5026 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5027 function signature.
5028
1c3545ae
MK
5029 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5030 have a sigcontext_addr handler.
5031 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5032 sigcontext_addr handler.
5033
e11c53d2
AC
50342003-05-31 Andrew Cagney <cagney@redhat.com>
5035
5036 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5037 (print_fp_register_row): Replace do_fp_register_row.
5038 (mips_print_fp_register): Add "file" and "frame" parameters.
5039 (mips_print_register): Add "file" and "frame" parameters.
5040 (mips_print_registers_info): Replace mips_do_registers_info.
5041 (mips_gdbarch_init): Set print_registers_info instead of
5042 deprecated_do_registers_info.
5043 (mips_read_fp_register_single): Add "frame" parameter.
5044 (mips_read_fp_register_double): Add "frame" parameter.
5045
a3386186
MK
50462003-05-31 Mark Kettenis <kettenis@gnu.org>
5047
70913449
MK
5048 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5049 Fixes a bug where GDB would print the wrong register names for
5050 targets without SSE.
5051
2b5e0749
MK
5052 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5053 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5054 registers.
5055
5056 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5057 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5058 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5059 TDEP->sc_sp_offset.
5060
a3386186
MK
5061 From Michal Ludvig <mludvig@suse.cz>:
5062 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5063 and `sc_num_regs'.
5064 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5065 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5066 I386_ST0_REGNUM): Move here from...
5067 * i386-tdep.c: ... here.
5068 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5069 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5070 registers if possible.
5071 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5072 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5073 Remove variables.
5074 (i386bsd_sc_reg_offset): New variable.
5075 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5076 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5077 TDEP->sc_sp_offset.
5078 (i386fbsd_sc_reg_offset): New variable.
5079 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5080 TDEP->sc_num_regs.
5081 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5082 variables.
5083 (i386fbsd4_sc_reg_offset): New variable.
5084 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5085 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5086 TDEP->sc_sp_offset.
5087 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5088 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5089 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5090 Remove variables.
5091 (i386nbsd_sc_reg_offset): New variable.
5092 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5093 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5094 TDEP->sc_sp_offset.
5095 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5096 Remove variables.
5097 (i386obsd_sc_reg_offset): New variable.
5098 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5099 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5100 TDEP->sc_sp_offset.
5101 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5102 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5103 for frame pointer offset in `struct sigcontext'.
5104
25ab4790
AC
51052003-05-31 Andrew Cagney <cagney@redhat.com>
5106
5107 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5108 architecture methods call_dummy_words, sizeof_call_dummy_words,
5109 push_return_address, store_struct_return, and fix_call_dummy. Set
5110 push_dummy_call instead of deprecated_push_arguments.
5111 (mips_store_struct_return): Delete function.
5112 (mips_fix_call_dummy): Delete function.
5113 (mips_push_return_address): Delete function.
5114 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5115 RA_REGNUM and T9_REGNUM.
5116 (mips_n32n64_push_dummy_call): Ditto for
5117 mips_n32n64_push_arguments.
5118 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5119 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5120
6a65450a
AC
51212003-05-31 Andrew Cagney <cagney@redhat.com>
5122
5123 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5124 "dummy_addr" to "bp_addr".
5125 * infcall.c (call_function_by_hand): Pass "funaddr" to
5126 gdbarch_push_dummy_call.
5127 * gdbarch.h, gdbarch.c: Re-generate.
5128 * i386-tdep.c (i386_push_dummy_call): Update.
5129 * arm-tdep.c (arm_push_dummy_call): Update.
5130 * d10v-tdep.c (d10v_push_dummy_call): Update.
5131
c4f35dd8
MK
51322003-05-31 Mark Kettenis <kettenis@gnu.org>
5133
5134 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5135 variable declarations.
5136 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5137 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5138 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5139 x86_64_init_frame_pc, x86_64_init_frame_pc,
5140 x86_64_function_has_prologue): Remove prototypes.
5141 (X86_64_NUM_GREGS): New define.
5142 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5143 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5144 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5145 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5146 XMM1_REGNUM): Remove defines.
5147 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5148 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5149 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5150 X86_64_XMM1_REGNUM): New defines.
5151 (struct x86_64_register_info): Renamed from `struct
5152 register_info'. Remove `size' member.
5153 (x86_64_register_info_table): Remove variable.
5154 (x86_64_register_info): New variable.
5155 (X86_64_NUM_REGS): New define.
5156 (X86_64_NUM_GREGS): Remove define.
5157 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5158 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5159 Remove variables.
5160 (x86_54_dwarf2_reg_to_regnum): Remove function.
5161 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5162 (x86_64_dwarf_reg_to_regnum): New function.
5163 (x86_64_register_name): Rewrite.
5164 (x86_64_register_raw_size): Remove function.
5165 (x86_64_register_byte_table): Remove variable.
5166 (x86_64_register_byte): Remove function.
5167 (x86_64_register_virtual_type): Remove function.
5168 (x86_64_register_type): New function.
5169 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5170 x86_64_register_convert_to_raw): Remove functions.
5171 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5172 (x86_64_use_struct_convention): Make static. Adjust for renamed
5173 defines.
5174 (x86_64_frame_init_saved_regs): Remove function.
5175 (x86_64_push_arguments): Make static. Change to accept a regcache
5176 as argument.
5177 (x86_64_store_return_value, x86_64_extract_return_value): Make
5178 static. Rewrite based on i386 counterparts.
5179 (x86_64_push_dummy_call): New function.
5180 (X86_64_NUM_SAVED_REGS): New define.
5181 (x86_64_register_number): Remove function.
5182 (x86_64_store_struct_return): Remove function.
5183 (x86_64_frameless_function_invocation,
5184 x86_64_function_has_prologue): Remove functions.
5185 (PROLOG_BUFSIZE): Remove define.
5186 (struct x86_64_frame_cache): New structure.
5187 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5188 x86_64_frame_cache, x86_64_frame_this_id,
5189 x86_64_frame_prev_register, x86_64_frame_p,
5190 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5191 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5192 functions.
5193 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5194 variables.
5195 (x86_64_skip_prologue): Rewrite in terms of
5196 x86_64_analyze_prologue.
5197 (x86_64_frame_base_address): New function.
5198 (x86_64_frame_base): New variable.
5199 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5200 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5201 set deprecated_fp_regnum, deprecated_register_size,
5202 deprecated_register_bytes, register_raw_size, register_byte,
5203 register_virtual_type, register_convertiable,
5204 register_convert_to_virtual, convert_to_raw,
5205 deprecated_get_saved_register, deprecated_target_read_fp,
5206 deprecated_push_arguments, deprecated_push_return_address,
5207 deprecated_pop_frame, deprecated_store_struct_return,
5208 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5209 frameless_function_invocation, deprecated_frame_saved_pc,
5210 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5211 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5212 deprecated_init_frame_pc and virtual_frame_pointer. Call
5213 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5214 and x86_64_frame_p. Call frame_base_set_default to register
5215 x86_64_frame_base.
5216 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5217 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5218 (_initialize_x86_64_tdep): Remove function.
5219 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5220 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5221 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5222 define.
5223 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5224 (x86_64_linux_sigcontext_addr): Rewrite.
5225 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5226 x86_64_linux_frame_saved_pc): Remove functions.
5227 (x86_64_linux_pc_in_sigtramp): Renamed from
5228 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5229 trampoline.
5230 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5231 Remove_functions.
5232 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5233 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5234 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5235 (x86_64_regmap): Rename to regmap.
5236 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5237 x86_64_num_gregs.
5238 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5239 x86_64_regmap.
5240 (x86_64_fxsave_offset): Remove function.
5241 (supply_fpregset): Simply call x86_64_supply_fxsave.
5242 (fill_fpregset): Simply call x86_64_fill_fxsave.
5243 (fetch_inferior_registers, store_inferior_registers): Avoid
5244 asignment in if-statement.
5245 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5246 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5247 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5248 (fetch_core_registers): Remove function.
5249 (linux_elf_core_fns): Remove.
5250 (offsetoff): Don't define.
5251 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5252 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5253 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5254 add core-regset.o.
5255 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5256 protection against multiple includes instead of NM_X86_64_h. Add
5257 various comments. Include "config/nm-linux.h". Don't include
5258 <signal.h>.
5259 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5260 GET_THREAD_SIGNALS): Remove defines.
5261 (x86_64_register_u_addr, kernel_u_size,
5262 lin_thread_get_thread_signals): Remove prototypes.
5263 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5264 [HAVE_LINK_H]: Don't include "solib.h".
5265 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5266 * config/i386/tm-x86-64linux.h: Fix comments.
5267 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5268 x86-64-tdep.o): Update dependencies.
5269
c25083af
AC
52702003-05-30 Andrew Cagney <cagney@redhat.com>
5271
c8f55a7b
AC
5272 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5273 Change parameter type to a "struct regcache *".
5274
c25083af
AC
5275 * gdbarch.sh: Regardless of the multi-arch level, always define
5276 the macro when not already defined.
5277 * gdbarch.h, gdbarch.c: Re-generate.
5278
fbe586ae
RH
52792003-05-30 Richard Henderson <rth@redhat.com>
5280
5281 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5282 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5283 (alpha_mdebug_frame_this_id): Likewise.
5284 (alpha_mdebug_frame_prev_register): Likewise.
5285 (alpha_mdebug_frame_base_address): Likewise.
5286 (alpha_mdebug_frame_locals_address): Likewise.
5287 (alpha_mdebug_frame_args_address): Likewise.
5288 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5289 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5290 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5291 loop increment.
5292 (alpha_heuristic_frame_this_id): Make static.
5293 (alpha_heuristic_frame_prev_register): Likewise.
5294 (alpha_heuristic_frame_base_address): Likewise.
5295 * alpha-tdep.h: Update.
5296
acd5c798
MK
52972003-05-30 Mark Kettenis <kettenis@gnu.org>
5298
5299 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5300 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5301 defenitions.
5302 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5303 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5304 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5305 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5306 I386_ST0_REGNUM): New defines.
5307 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5308 codestream_get): Remove define.
5309 (codestream_next_addr, condestream_addr, condestream_buf,
5310 codestream_off, codestream_cnt): Remove variables.
5311 (codestream_fill, codestream_seek, codestream_read): Remove
5312 functions.
5313 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5314 functionality.
5315 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5316 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5317 i386_frame_saved_pc, i386_saved_pc_after_call,
5318 i386_frame_num_args, i386_frame_init_saved_regs,
5319 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5320 i386_push_arguments): Remove functions.
5321 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5322 functionality. Use i386_analyze_prologue instead of
5323 i386_get_frame_setup.
5324 (I386_NUM_SAVED_REGS): New define.
5325 (struct i386_frame_cache): New structure.
5326 (i386_alloc_frame_cache, i386_analyze_struct_return,
5327 i386_skip_probe, i386_analyze_frame_setup,
5328 i386_analyze_register_saves, i386_analyze_prologue,
5329 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5330 i386_frame_prev_register, i386_sigtramp_frame_cache,
5331 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5332 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5333 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5334 New functions.
5335 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5336 New variables.
5337 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5338 I386_EAX_REGNUM and I386_EDX_REGNUM.
5339 (i386_extract_return_value, i386_store_return_value): Use
5340 I386_ST0_REGNUM where appropriate.
5341 (i386_extract_struct_value_address): Rewrite to use extract_address.
5342 (i386_svr4_pc_in_sigtramp): Add comment.
5343 (i386_svr4_sigcontext_addr): Rewrite.
5344 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5345 TDEP->sc_sp_offset.
5346 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5347 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5348 of new defines. Set push_dummy_call, don't set
5349 deprecated_push_arguments, deprecated_push_return_address,
5350 deprecated_pop_frame. Don't set parm_boundary. Don't set
5351 deprecated_frame_chain, deprecated_frame_saved_pc,
5352 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5353 save_dummy_frame_tos, unwind_pc. Call
5354 frame_unwind_append_predicate and frame_base_set_default. Don't
5355 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5356 Don't set frameless_function_invocation. Don't set
5357 deprecated_register_bytes, deprecated_register_size,
5358 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5359 * i386-linux-tdep.c: Fix formatting in some comments.
5360 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5361 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5362 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5363 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5364 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5365 redundant parentheses.
5366 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5367 (i386_linux_sigcontext_addr): Use it. Rewrite.
5368 (find_minsym_and_objfile): Change name of second argument.
5369 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5370 changed. Use frame_pc_unwind instead of
5371 DEPRECATED_SAVED_PC_AFTER_CALL.
5372 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5373 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5374 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5375 unwinder.
5376 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5377 "dummy-frame.h".
5378 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5379 (_initialize_i386_cygwin_tdep): New prototype.
5380 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5381 deprecated_frame_chain_valid.
5382 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5383 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5384 Rely on the SVR4 defaults.
5385 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5386 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5387
c89b70f1
AC
53882003-05-30 Andrew Cagney <cagney@redhat.com>
5389
5390 * infcall.c (call_function_by_hand): Always call
5391 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5392
85b32d22
RH
53932003-05-30 Richard Henderson <rth@redhat.com>
5394
c89b70f1
AC
5395 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5396 increment.
85b32d22 5397
bfe51b1e
JB
53982003-05-29 Jim Blandy <jimb@redhat.com>
5399
5400 Use gdbarch methods for solib stuff on PowerPC Linux.
5401 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5402 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5403 show through.
5404 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5405 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5406 giving the same effect as the #definitions above.
5407
1abf022c
AF
54082003-05-29 Adam Fedor <fedor@gnu.org>
5409
5410 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5411 (find_implementation_from_class): Replace it with the standard
5412 case i.e. do nothing.
5413
d2427a71
RH
54142003-05-29 Richard Henderson <rth@redhat.com>
5415
5416 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5417 (alpha_linux_sigtramp_offset): Use it. Make static.
5418 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5419 update for new frame model.
5420 * alpha-mdebug-tdep.c: New file.
5421 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5422 (alpha_osf1_init_abi): Install it.
5423 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5424 (linked_proc_desc_table): Remove.
5425 (alpha_frame_past_sigtramp_frame): Remove.
5426 (alpha_dynamic_sigtramp_offset): Remove.
5427 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5428 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5429 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5430 (push_sigtramp_desc): Remove.
5431 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5432 (alpha_cannot_store_register): Likewise.
5433 (alpha_sigcontext_addr): Remove.
5434 (alpha_find_saved_regs): Remove.
5435 (alpha_frame_init_saved_regs): Remove.
5436 (alpha_init_frame_pc_first): Remove.
5437 (read_next_frame_reg): Remove.
5438 (alpha_frame_saved_pc): Remove.
5439 (alpha_saved_pc_after_call): Remove.
5440 (temp_proc_desc, temp_saved_regs): Remove.
5441 (alpha_about_to_return): Remove.
5442 (cached_proc_desc): Remove.
5443 (alpha_frame_chain): Remove.
5444 (alpha_print_extra_frame_info): Remove.
5445 (alpha_init_extra_frame_info): Remove.
5446 (alpha_frame_locals_address): Remove.
5447 (alpha_frame_args_address): Remove.
5448 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5449 (alpha_push_dummy_frame): Remove.
5450 (alpha_pop_frame): Remove.
5451 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5452 (alpha_read_insn): New.
5453 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5454 for different insn encodings.
5455 (alpha_in_lenient_prologue): Remove.
5456 (struct alpha_sigtramp_unwind_cache): New.
5457 (alpha_sigtramp_frame_unwind_cache): New.
5458 (alpha_sigtramp_register_address): New.
5459 (alpha_sigtramp_frame_this_id): New.
5460 (alpha_sigtramp_frame_prev_register): New.
5461 (alpha_sigtramp_frame_unwind): New.
5462 (alpha_sigtramp_frame_p): New.
5463 (struct alpha_heuristic_unwind_cache): New.
5464 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5465 don't count nop insns that occur between functions.
5466 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5467 heuristic_proc_desc, but without the mdebug wrapping.
5468 (alpha_heuristic_frame_this_id): New.
5469 (alpha_heuristic_frame_prev_register): New.
5470 (alpha_heuristic_frame_unwind): New.
5471 (alpha_heuristic_frame_p): New.
5472 (alpha_heuristic_frame_base_address): New.
5473 (alpha_heuristic_frame_base): New.
5474 (alpha_unwind_dummy_id): New.
5475 (alpha_unwind_pc): New.
5476 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5477 frame related deprecated initializations; install replacements.
5478 (alpha_dump_tdep): Remove.
5479 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5480 (alpha_read_insn, alpha_after_prologue,
5481 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5482 alpha_heuristic_frame_prev_register,
5483 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5484 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5485 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5486 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5487
93ec1121
AC
54882003-05-29 Andrew Cagney <cagney@redhat.com>
5489
5490 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5491 dependant on the availability of ASSERT_FUNCTION.
5492 (ASSERT_FUNCTION): Do not define when there is no function name.
5493
98f08d3d
KB
54942003-05-29 Kevin Buettner <kevinb@redhat.com>
5495
5496 From Jimi X <jimix@watson.ibm.com>:
5497 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5498
0897f59b
JB
54992003-05-28 Jim Blandy <jimb@redhat.com>
5500
5501 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5502 argument to ptrace to int; the system headers should give it the
5503 right type, and pointers don't fit in ints on powerpc64-*-*.
5504
14898363
L
55052003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5506
5507 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5508 DW_TAG_catch_block.
5509
a7a48797
EZ
55102003-05-26 Elena Zannoni <ezannoni@redhat.com>
5511
5512 * stabsread.c (dbx_lookup_type): Make static.
5513 (read_type): Ditto.
5514 (add_undefined_type): Ditto.
5515 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5516 not export.
5517
f5479e9c
EZ
55182003-05-26 Elena Zannoni <ezannoni@redhat.com>
5519
5520 * hpread.c (hpread_has_name): Make static.
5521 (hpread_psymtab_to_symtab): Ditto.
5522 (file_exists): Ditto.
5523 (hpread_call_pxdb): Ditto.
5524 (hpread_pxdb_needed): Ditto.
5525 (hpread_quick_traverse): Ditto.
5526 (hpread_get_header): Ditto.
5527 (hpread_get_lntt): Ditto.
5528 (hpread_get_slt): Ditto.
5529 (class_of): Ditto.
5530
eb2e12d7
AS
55312003-05-25 Andreas Schwab <schwab@suse.de>
5532
78bf922a
AS
5533 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5534 stack_align and deprecated_extra_stack_alignment_needed.
5535 (m68k_stack_align): Delete.
5536
eb2e12d7
AS
5537 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5538 (m68k_register_virtual_size): Likewise.
5539 (altos_skip_prologue): Remove obsolete function.
5540 (isi_frame_num_args): Likewise.
5541 (news_frame_num_args): Likewise.
5542 (m68k_fix_call_dummy): Make static.
5543 (m68k_push_dummy_frame): Likewise.
5544 (m68k_pop_frame): Likewise.
5545 (m68k_skip_prologue): Likewise.
5546 (m68k_frame_init_saved_regs): Likewise.
5547 (m68k_saved_pc_after_call): Likewise.
5548 (m68k_get_longjmp_target): Make multi-arch.
5549 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5550 structure. Register m68k_get_longjmp_target if enabled.
5551 * m68k-tdep.h (struct gdbarch_tdep): Define.
5552 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5553
5554 * Makefile.in (config.status): Also depend on configure.tgt
5555 and configure.host.
5556 (m68klinux-tdep.o): Update dependencies.
5557 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5558 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5559 (M68K_LINUX_JB_PC): Define.
5560 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5561 and take additional parameter.
5562 (m68k_linux_sigtramp_saved_pc): Update.
5563 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5564 m68k_linux_pc_in_sigtramp, in_plt_section,
5565 find_solib_trampoline_target.
5566 * config/m68k/tm-linux.h: Don't include any tm headers.
5567 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5568 (JB_ELEMENT_SIZE): Likewise.
5569 (JB_PC): Likewise.
5570 (GET_LONGJMP_TARGET): Likewise.
5571 (IN_SIGTRAMP): Likewise.
5572 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5573
eb2c22dc
MK
55742003-05-25 Mark Kettenis <kettenis@gnu.org>
5575
5576 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5577 (sparc32_push_arguments): Re-implement by calling
5578 sparc32_do_push_arguments.
5579
44b7b84e
MK
55802003-05-25 Mark Kettenis <kettenis@gnu.org>
5581
5582 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5583 SPARC_O1_REGNUM): New defines.
5584 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5585 (sparc32_store_return_value): New function.
5586 (sparc_extract_struct_value_address): Rewrite to operate on a
5587 regcache.
5588 (sparc_gdbarch_init): Don't set
5589 deprecated_extract_struct_value_address. Set
5590 extract_struct_value_address instead. Don't set
5591 deprecated_extract_return_value and deprecated_store_return_value
5592 for 32-bit targets. Set extract_return_value and
5593 store_return_value instead.
5594 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5595 DEPRECTAED_EXTRACT_RETURN_VALUE,
5596 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5597 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5598 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5599 (sparc_store_return_value): Remove prototype.
5600 (sparc32_store_return_value): New prototype.
5601 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5602 Adjust prototypes.
5603
f6ad61e3
MK
56042003-05-24 Mark Kettenis <kettenis@gnu.org>
5605
5606 * sparcnbsd-tdep.c: Include "gdb_string.h".
5607
b276f1bb
AC
56082003-05-23 Andrew Cagney <cagney@redhat.com>
5609
5610 * p-valprint.c (pascal_val_print): Replace extract_address with
5611 the inline equivalent extract_unsigned_integer.
5612 * jv-valprint.c (java_value_print): Ditto.
5613 * ada-valprint.c (ada_val_print_1): Ditto.
5614 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5615
e76c5fcc
TR
56162003-05-23 Theodore A. Roth <troth@openavr.org>
5617
5618 * blockframe.c (frameless_look_for_prologue): Remove unused
5619 after_prologue variable.
5620
2cdd89cb
MK
56212003-05-23 Mark Kettenis <kettenis@gnu.org>
5622
5623 * blockframe.c (get_pc_function_start): Rewrite to avoid
5624 asignments in if-statements.
5625
182d43bc
EZ
56262003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5627
5628 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 5629 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5630 files, don't relocate absolute symbols (and do use mst_abs).
5631
e8f3fcdd
AC
56322003-05-23 Andrew Cagney <cagney@redhat.com>
5633
5634 * objc-lang.c: Include "gdb_assert.h".
5635 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5636 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5637 (gdb_check, gdb_check_fatal): Delete functions.
5638 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5639 gdb_assert.
5640 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5641 * Makefile.in (objc-lang.o): Update dependencies.
5642
3c23e6fb
ILT
56432003-05-22 Ian Lance Taylor <ian@airs.com>
5644
5645 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5646 with fprintf_filtered, not fprintf_unfiltered.
5647
af1342ab
AC
56482003-05-22 Andrew Cagney <cagney@redhat.com>
5649
5650 * stack.c (frame_info): Inline extract_address, replacing it with
5651 extract_unsigned_integer.
5652 * findvar.c (unsigned_pointer_to_address): Ditto.
5653 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5654 * dwarf2expr.c (dwarf2_read_address): Ditto.
5655 * frame.c (frame_pc_unwind): Update comment.
5656 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5657
47e242ec
JJ
56582003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5659
5660 * infptrace.c (detach): Call print_sys_errmsg rather than
5661 perror_with_name to issue warning message when errno is non-zero
5662 after calling ptrace detach.
5663
e2ac8128
JB
56642003-05-21 J. Brobecker <brobecker@gnat.com>
5665
5666 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5667 macro definitions from here...
5668 * hppa-tdep.c: ...to there.
5669
92b3541e
KB
56702003-05-20 Kevin Buettner <kevinb@redhat.com>
5671
5672 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5673 register_ptrace_addr(). Fix all callers.
5674
55809acb
AS
56752003-05-21 Andreas Schwab <schwab@suse.de>
5676
5677 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5678 dependencies.
5679 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5680 end.
5681 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5682 (_initialize_m68k_linux_tdep): New function.
5683 (m68k_linux_frame_saved_pc): Make static.
5684 (m68k_linux_extract_return_value): Likewise.
5685 (m68k_linux_store_return_value): Likewise.
5686 (m68k_linux_extract_struct_value_address): Likewise.
5687 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5688 Remove.
5689 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5690 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5691 (DEPRECATED_FRAME_SAVED_PC): Remove.
5692
0fbc10f7
KW
56932003-05-20 Kris Warkentin <kewarken@qnx.com>
5694
5695 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5696 regset numbering rather than our own.
5697
58da2eb2
DC
56982003-05-19 David Carlton <carlton@bactrian.org>
5699
5700 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5701
1fcb5155
DC
57022003-05-19 David Carlton <carlton@bactrian.org>
5703
5704 Partial fix for PR c++/827.
5705 * cp-support.h: Include symtab.h.
5706 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5707 * cp-namespace.c: Update contributors.
5708 (cp_lookup_symbol_nonlocal): New.
5709 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5710 (lookup_symbol_file): Ditto.
5711 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5712 * block.h: Declare block_scope, block_using, block_global_block.
5713 * block.c (block_scope): New.
5714 (block_using, block_global_block): Ditto.
5715 * Makefile.in (cp_support_h): Depend on symtab_h.
5716 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5717
5f9a71c3
DC
57182003-05-19 David Carlton <carlton@bactrian.org>
5719
5720 * language.h (struct language_defn): Add 'la_value_of_this'
5721 and 'la_lookup_symbol_nonlocal' members.
5722 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5723 lookup_symbol_static, lookup_symbol_global,
5724 lookup_symbol_aux_block.
5725 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5726 if we should search fields of this and how to do static/global
5727 lookup.
5728 (lookup_symbol_aux_block): Make extern.
5729 (basic_lookup_symbol_nonlocal): New.
5730 (lookup_symbol_static, lookup_symbol_global): Ditto.
5731 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5732 'la_lookup_symbol_nonlocal' members.
5733 * c-lang.c (c_language_defn, cplus_language_defn)
5734 (asm_language_defn, minimal_language_defn): Ditto.
5735 * jv-lang.c (java_language_defn): Ditto.
5736 * language.c (unknown_language_defn, auto_language_defn)
5737 (local_language_defn): Ditto.
5738 * m2-lang.c (m2_language_defn): Ditto.
5739 * objc-lang.c (objc_language_defn): Ditto.
5740 * scm-lang.c (scm_language_defn): Ditto.
5741 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5742 * p-lang.c (pascal_language_defn): Ditto for both.
5743 * Makefile.in (f-lang.o): Depend on value_h.
5744 (p-lang.o): Ditto.
5745
89a9d1b1
DC
57462003-05-19 David Carlton <carlton@bactrian.org>
5747
5748 * block.h: Declare block_static_block.
5749 * block.c (block_static_block): New.
5750 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5751 lookup_symbol_aux_local, calling block_static_block instead.
5752 (lookup_symbol_aux_local): Delete 'static_block' argument.
5753
eed3f8ab
DC
57542003-05-19 David Carlton <carlton@bactrian.org>
5755
5756 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5757
a09d8bda
ML
57582003-05-19 Michal Ludvig <mludvig@suse.cz>
5759
5760 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5761 register numbers mapping.
5762
69636828
AF
57632003-05-18 Adam Fedor <fedor@gnu.org>
5764
5765 * symtab.c (completion_list_objc_symbol): New function.
5766 (make_symbol_completion_list): Use it to add ObjC symbols
5767 when looking though the list.
5768 (language_search_unquoted_string): New function.
5769 (make_file_symbol_completion_list): Use it.
5770
55baeb84
AS
57712003-05-18 Andreas Schwab <schwab@suse.de>
5772
d0b45d99
AS
5773 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5774 dependencies.
5775 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5776 as m68k_linux_extract_return_value.
5777 (DEPRECATED_STORE_RETURN_VALUE): Define as
5778 m68k_linux_store_return_value.
5779 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5780 m68k_linux_extract_struct_value_address.
5781 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5782 get_next_frame, get_frame_base, get_frame_pc.
5783 (m68k_linux_frame_saved_pc): Use get_frame_base.
5784 (m68k_linux_extract_return_value): New function.
5785 (m68k_linux_store_return_value): New function.
5786 (m68k_linux_extract_struct_value_address): New function.
5787 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5788
55baeb84
AS
5789 * c-exp.y (typebase): Remove duplicate occurence of
5790 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 5791 of lookup_signed_typename.
55baeb84 5792
b6b08ebf
MK
57932003-05-18 Mark Kettenis <kettenis@gnu.org>
5794
5795 * dwarf2loc.c (find_location_expression): Change type of second
5796 argument to `size_t *'.
5797 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5798 for size variable.
5799
5ad1c190
DC
58002003-05-18 David Carlton <carlton@bactrian.org>
5801
5802 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5803 'linkage_name'. Add comment.
5804 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5805 'linkage_name'.
5806 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5807 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5808 (lookup_block_symbol): Ditto.
5809
b8b527c5
AC
58102003-05-16 Andrew Cagney <cagney@redhat.com>
5811
5812 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5813 * gdbarch.h, gdbarch.c: Re-generate.
5814 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5815 * TODO (REGISTER_BYTES): Delete reference.
5816 * alpha-tdep.c (alpha_gdbarch_init): Update.
5817 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5818 * x86-64-tdep.c (x86_64_init_abi): Update.
5819 * vax-tdep.c (vax_gdbarch_init): Update.
5820 * v850-tdep.c (v850_gdbarch_init): Update.
5821 * sparc-tdep.c (sparc_gdbarch_init): Update.
5822 * sh-tdep.c (sh_gdbarch_init): Update.
5823 * s390-tdep.c (s390_gdbarch_init): Update.
5824 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5825 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5826 (ns32k_gdbarch_init_32382): Update.
5827 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5828 * mcore-tdep.c (mcore_gdbarch_init): Update.
5829 * m68k-tdep.c (m68k_gdbarch_init): Update.
5830 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5831 * ia64-tdep.c (ia64_gdbarch_init): Update.
5832 * i386-tdep.c (i386_gdbarch_init): Update.
5833 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5834 * hppa-tdep.c (hppa_gdbarch_init): Update.
5835 * h8300-tdep.c (h8300_gdbarch_init): Update.
5836 * frv-tdep.c (frv_gdbarch_init): Update.
5837 * cris-tdep.c (cris_gdbarch_init): Update.
5838 * avr-tdep.c (avr_gdbarch_init): Update.
5839 * arm-tdep.c (arm_gdbarch_init): Update.
5840 * sparc-tdep.c (sparc_pop_frame): Update.
5841 * rs6000-tdep.c (rs6000_pop_frame): Update.
5842 * remote.c (init_remote_state): Update.
5843 (remote_prepare_to_store): Update.
5844 * remote-vx.c (vx_prepare_to_store): Update.
5845 * remote-sds.c (sds_fetch_registers): Update.
5846 (sds_prepare_to_store): Update.
5847 * remote-array.c: Update.
5848 * regcache.c (init_legacy_regcache_descr): Update.
5849 (init_regcache_descr): Update.
5850 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5851 (mips_o64_extract_return_value): Update.
5852 * irix5-nat.c (fetch_core_registers): Update.
5853 * irix4-nat.c (fetch_core_registers): Update.
5854 * i386-tdep.h: Update.
5855 * hppa-tdep.c (pa_do_registers_info): Update.
5856 (pa_do_strcat_registers_info): Update.
5857 * cris-tdep.c (cris_register_bytes_ok): Update.
5858 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5859 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5860 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5861 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5862 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5863 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5864 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5865 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5866 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5867 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5868 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5869 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5870 (REGISTER_BYTES_OK): Update.
5871 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5872 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5873
ee2842e2
ILT
58742003-05-16 Ian Lance Taylor <ian@airs.com>
5875
5876 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5877 (vax_print_insn, print_insn_arg): Remove static functions.
5878 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5879 print_insn_vax from opcodes library.
5880 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5881
973177d3
AC
58822003-05-15 Andrew Cagney <cagney@redhat.com>
5883
aaab4dba
AC
5884 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5885 * target.h (memory_breakpoint_from_pc): Delete declaration.
5886 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5887 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5888 * monitor.c (monitor_insert_breakpoint): Use
5889 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5890 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5891 * gdbarch.h, gdbarch.c: Re-generate.
5892 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5893 (sparc_gdbarch_init): Set breakpoint_from_pc to
5894 sparc_breakpoint_from_pc.
5895 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5896 (BREAKPOINT_FROM_PC): Define.
5897 (sparc_breakpoint_from_pc): Declare.
5898 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5899 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5900 (BREAKPOINT_FROM_PC): Define.
5901 (BREAKPOINT): Delete macro.
5902 * target.h: Update comment.
5903 * s390-tdep.c (s390_gdbarch_init): Update comments.
5904 * remote.c: Update comments.
5905 * remote-mips.c: Update comments.
5906 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5907 * mem-break.c: Update comment.
5908 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5909 (ia64_memory_insert_breakpoint): Update.
5910 * config/sparc/tm-sparc.h: Update comment.
5911 * config/pa/tm-hppa64.h: Update comment.
5912 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5913 (rs6000_breakpoint_from_pc): Update.
5914 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5915 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5916 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5917 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5918 (mips_breakpoint_from_pc): Update.
5919 (mips_dump_tdep): Update.
5920
e06963ff
AC
5921 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5922 * minsyms.c (lookup_minimal_symbol): Inline
5923 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5924
973177d3
AC
5925 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5926 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5927 * p-lang.c (pascal_printstr): Ditto.
5928 * objc-lang.c (objc_printstr): Ditto.
5929 * m2-lang.c (m2_printstr): Ditto.
5930 * jv-valprint.c (java_print_value_fields): Ditto.
5931 * f-lang.c (f_printstr): Ditto.
5932 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5933 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5934 for repeat_count_threshold.
5935 * Makefile.in (cp-valprint.o): Update dependencies.
5936
5ea2bd7f 59372003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5938
5ea2bd7f
JJ
5939 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5940 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
5941 they start with mov r2,r12. Support skipping over indirect stores
5942 of the input registers. Upon hitting a non-nop branch instruction
5943 or predicated instruction, bail out by setting lim_pc to the current
5944 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
5945 beyond our calculated value and we have trust_limit set,
5946 use the lim_pc value.
5947
cc8c88f3
AC
59482003-05-15 Andrew Cagney <cagney@redhat.com>
5949
5950 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5951 generic_find_dummy_frame.
5952 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5953 (deprecated_generic_find_dummy_frame): Update.
5954 (deprecated_read_register_dummy): Update.
5955 * frame.c (deprecated_generic_get_saved_register): Update.
5956
909cd28e
TR
59572003-05-15 Theodore A. Roth <troth@openavr.org>
5958
5959 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5960 (avr_gdbarch_init): Set breakpoint_from_pc method.
5961
b923b08d
AC
59622003-05-15 Andrew Cagney <cagney@redhat.com>
5963
5964 * regcache.c (build_regcache): Set deprecated_register_valid
5965 directly.
5966 (deprecated_grub_regcache_for_register_valid): Delete function.
5967 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5968 declaration.
5969
ae2f03ac 59702003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
5971
5972 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
5973 * symtab.c (lookup_symbol_aux): Delete calls to
5974 lookup_symbol_aux_minsyms.
5975 (lookup_symbol_aux_minsyms): Comment out function and
5976 prototype. Delete lookup by mangled name.
ae2f03ac 5977
18ec9831
KB
59782003-05-14 Kevin Buettner <kevinb@redhat.com>
5979
5980 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5981 correctly indicate an empty stack and ``stack_allocated'' to the
5982 indicate the number of elements initially allocated.
5983 (dwarf_expr_grow_stack): Simplify method for computing new
5984 stack size. Don't loop infinitely if ``stack_len'' is zero.
5985 (execute_stack_op): Move ``ctx->in_reg'' initialization
5986 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5987 be used in conjuction with DW_OP_piece. Revise error message
5988 accordingly.
5989
de18ac1f
TR
59902003-05-14 Theodore A. Roth <troth@openavr.org>
5991
5992 * MAINTAINERS: Update my email address.
5993 * avr-tdep.c: Ditto.
5994
176620f1
EZ
59952003-05-14 Elena Zannoni <ezannoni@redhat.com>
5996
5997 * symtab.h (enum domain_enum): Rename from namespace_enum.
5998 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5999 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6000 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6001 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6002 TYPES_NAMESPACE, METHODS_NAMESPACE.
6003 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6004 (struct symbol, struct partial_symbol): Rename field
6005 'namespace_enum namespace' to 'domain_enum domain'.
6006 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6007 Delete old define kludge for namespace.
6008
6009 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6010 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6011 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6012 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6013 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6014 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6015 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6016 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6017 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6018 occurrences of the above.
6019
b7f31508
ILT
60202003-05-14 Ian Lance Taylor <ian@airs.com>
6021
6022 * Makefile.in (install-only): Use $(SHELL) when running
6023 mkinstalldirs.
6024
2fdbdd39
ILT
60252003-05-13 Ian Lance Taylor <ian@airs.com>
6026
a208d82c
ILT
6027 * MAINTAINERS (write after approval): Add myself.
6028
2fdbdd39
ILT
6029 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6030 second and third arguments.
6031 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6032 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6033
fbd9dcd3
AC
60342003-05-13 Andrew Cagney <cagney@redhat.com>
6035
6036 * defs.h (store_address): Delete declaration.
6037 findvar.c (store_address): Delete function.
6038 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6039 store_unsigned_integer.
6040 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6041 * v850-tdep.c (v850_push_arguments): Ditto.
6042 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6043 * sh-tdep.c (sh64_get_saved_register): Ditto.
6044 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6045 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6046 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6047 (mips_get_saved_register): Ditto.
6048 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6049 (find_func_descr, ia64_push_arguments): Ditto.
6050 * i386-tdep.c (i386_push_arguments): Ditto.
6051 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6052 * frv-tdep.c (frv_push_arguments): Ditto.
6053 * frame.c (legacy_saved_regs_prev_register): Ditto.
6054 (deprecated_generic_get_saved_register): Ditto.
6055 * findvar.c (unsigned_address_to_pointer): Ditto.
6056 * dwarf2read.c (dwarf2_const_value): Ditto.
6057 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6058 * alpha-tdep.c (alpha_push_arguments): Ditto.
6059
6760f9e6
JB
60602003-05-12 J. Brobecker <brobecker@gnat.com>
6061
6062 * NEWS: Mention that the hppa-hpux port has been partially
6063 multiarched (32bit ABIT only, so far).
6064
30e221b4
AC
60652003-05-11 Andrew Cagney <cagney@redhat.com>
6066
6067 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6068 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6069 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6070 sim/testsuite/sim/arm/misaligned2.ms, and
6071 sim/testsuite/sim/arm/misaligned3.ms.
6072 * disasm.h (struct ui_file): Add opaque struct declaration.
6073 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6074 * frame.h (struct ui_file): Ditto.
6075
dea7f9ba
MK
60762003-05-11 Mark Kettenis <kettenis@gnu.org>
6077
6078 * value.h: Pretty print.
6079
01986c48
MK
60802003-05-10 Mark Kettenis <kettenis@gnu.org>
6081
6082 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6083
123a958e
AC
60842003-05-08 Andrew Cagney <cagney@redhat.com>
6085
6086 * regcache.h (max_register_size): Delete declaration.
6087 * regcache.c (max_register_size): Delete function.
6088 (struct regcache_descr): Delete field "max_register_size".
6089 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6090 registers fit in MAX_REGISTER_SIZE.
6091 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6092 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6093 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6094 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6095 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6096 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6097 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6098 * dve3900-rom.c, hppa-tdep.c: Ditto.
6099
eb294659
DC
61002003-05-08 David Carlton <carlton@math.stanford.edu>
6101
6102 * valops.c (push_word): Fix typo.
6103
d9d9c31f
AC
61042003-05-08 Andrew Cagney <cagney@redhat.com>
6105
6106 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6107 * gdbarch.h: Re-generate.
6108 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6109 (legacy_max_register_raw_size): Delete declaration.
6110 * regcache.c (legacy_max_register_raw_size): Delete function.
6111 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6112 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6113 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6114 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6115 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6116 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6117 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6118 * findvar.c, dwarf2cfi.c: Ditto.
6119
22540ece
AC
61202003-05-08 Andrew Cagney <cagney@redhat.com>
6121
6122 * mips-tdep.c (read_signed_register): New function, moved to here
6123 from "regcache.c".
6124 (read_signed_register_pid): Ditto.
6125 * regcache.c (read_signed_register_pid): Delete function, moved to
6126 "mips-tdep.c".
6127 (read_signed_register): Ditto.
6128 * regcache.h (read_signed_register): Delete declaration.
6129 (read_signed_register_pid): Delete declaration.
6130
0c92afe8
AC
61312003-05-08 Andrew Cagney <cagney@redhat.com>
6132
6133 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6134 * gdbarch.h: Re-generate.
6135 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6136 (legacy_max_register_virtual_size): Delete declaration.
6137 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6138 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6139 * tracepoint.c (memrange_sortmerge): Ditto.
6140 * sparc-tdep.c (sparc_print_registers): Ditto.
6141 * regcache.c (legacy_max_register_virtual_size): Delete function.
6142
6037b830
JB
61432002-05-08 J. Brobecker <brobecker@gnat.com>
6144
6145 * fork-child.c (escape_bang_in_quoted_argument): New function.
6146 (fork_inferior): Escape '!' characters in quoted arguments
6147 only when needed.
6148
5d62c8b1
JB
61492003-05-08 J. Brobecker <brobecker@gnat.com>
6150
6151 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6152 the language of the CU is not currently supported by GDB.
6153
20a0e81d
JB
61542003-05-08 J. Brobecker <brobecker@gnat.com>
6155
6156 * defs.h (language): Add language_minimal enum value.
6157 * c-lang.c (minimal_language_defn): New language definition.
6158 (_initialize_c_language): Add the new minimal language to the list
6159 of languages known to GDB.
6160
710ee10a
KB
61612003-05-08 Kevin Buettner <kevinb@redhat.com>
6162
6163 * frame.c (get_frame_type): Don't attempt to lazily initialize
6164 frame's unwinder for legacy frames.
6165
1750fa04
AC
61662003-05-07 Andrew Cagney <cagney@redhat.com>
6167
6168 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6169 and "regcache" parameters.
6170 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6171
ddf9f258 61722003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6173
6174 * dwarf2read.c (dwarf_decode_lines): Only use output of
6175 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
6176 the current address.
6177
87767c29
AC
61782003-05-07 Andrew Cagney <cagney@redhat.com>
6179
6180 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6181 code.
6182
5e7b2f39
JB
61832003-05-07 Jim Blandy <jimb@redhat.com>
6184
6185 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6186 'maint info symtabs' and 'maint info psymtabs'.
6187 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6188 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6189 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6190 Declarations updated.
6191 * maint.c (maintenance_list_command): Delete.
6192 (_initialize_maint_cmds): Update calls to add_cmd.
6193 * gdbcmd.h (maintenancelistlist): Delete declaration.
6194 * cli/cli-cmds.c (maintenancelistlist): Delete.
6195 (init_cmd_lists): Don't initialize it.
6196 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6197
f6684c31
AC
61982003-05-07 Andrew Cagney <cagney@redhat.com>
6199
6200 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6201 "regcache".
6202 (d10v_print_registers_info): Update.
6203 (d10v_dmap_register, d10v_imap_register): Delete functions.
6204 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6205 and "imap_register".
6206 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6207 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6208 * arch-utils.c (generic_remote_translate_xfer_address): Add
6209 "regcache" and "gdbarch" parameters.
6210 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6211 parameter. Change class to multi-arch.
6212 * gdbarch.h, gdbarch.c: Re-generate.
6213 * remote.c (remote_xfer_memory): Use
6214 gdbarch_remote_translate_xfer_address.
8ffd9b1b 6215
e4846b08
JJ
62162003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6217
6218 * infrun.c (prev_pc): Move declaration ahead of proceed().
6219 (proceed): Refresh prev_pc value before resuming.
6220 (stop_stepping): Remove code to refresh prev_pc.
6221
6b71b8ac
KW
62222003-05-06 Kris Warkentin <kewarken@qnx.com>
6223
6224 * nto-tdep.c: Removed stray comment.
6225
47979a4b
KW
62262003-05-06 Kris Warkentin <kewarken@qnx.com>
6227
6228 * i386-nto-tdep.c: Fix old K&R function definitions.
6229 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6230 Also change add_show_from_set() call to add_setshow_cmd().
6231 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6232
00905d52
AC
62332003-05-05 Andrew Cagney <cagney@redhat.com>
6234
6235 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6236 (fprint_dummy_frames): New function.
6237 (maintenance_print_dummy_frames): New function.
6238 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6239 * frame.c (fprint_frame_id): Make global.
6240 * frame.h (fprint_frame_id): Declare.
6241 * Makefile.in (dummy-frame.o): Update dependencies.
6242
b1e29e33
AC
62432003-05-05 Andrew Cagney <cagney@redhat.com>
6244
6245 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6246 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6247 SIZEOF_CALL_DUMMY_WORDS.
6248 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6249 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6250 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6251 CALL_DUMMY_BREAKPOINT_OFFSET.
6252 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6253 CALL_DUMMY_START_OFFSET.
6254 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6255 * gdbarch.h, gdbarch.c: Re-generate.
6256 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6257 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6258 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6259 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6260 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6261 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6262 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6263 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6264 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6265 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6266 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6267 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6268 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6269 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6270 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
6271
62722003-05-05 Kris Warkentin <kewarken@qnx.com>
6273
6274 * configure.tgt: Add i[3456]86-*-nto*.
6275 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6276 * nto-tdep.c: New file. Neutrino target support routines.
6277 * nto-tdep.h: New file. Neutrino target header.
6278 * config/tm-qnxnto.h: New file.
6279 * config/i386/i386nto.mt: New file.
6280 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 6281
0ce3d317
AC
62822003-05-04 Andrew Cagney <cagney@redhat.com>
6283
6284 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6285 (load_infrun_state): Ditto.
6286 (struct thread_info): Drop "prev_func_name" field.
6287 * thread.c (load_infrun_state): Update.
6288 (save_infrun_state): Update.
6289 * infrun.c (prev_func_name): Delete variable.
6290 (init_wait_for_inferior): Do not clear prev_func_name.
6291 (stop_stepping, keep_going, context_switch): Do not swap
6292 prev_func_name.
6293 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6294 instead of PC_IN_SIGTRAMP.
6295
46654a5b
AC
62962003-05-04 Andrew Cagney <cagney@redhat.com>
6297
6298 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6299 REGISTER_BYTE with register_offset_hack.
6300 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6301 that REGISTER_BYTE is consistent with the regcache.
6302 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6303 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 6304
14b08c1b
MK
63052003-05-04 Mark Kettenis <kettenis@gnu.org>
6306
04c8243f
MK
6307 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6308 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6309
14b08c1b
MK
6310 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6311
c7a11e01
JB
63122003-05-03 J. Brobecker <brobecker@gnat.com>
6313
6314 From Thierry Schneider <tpschneider1@yahoo.com>
6315 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6316 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6317 (mi-cmd-symbol.o): Add rule.
6318
7043d8dc
AC
63192003-05-03 Andrew Cagney <cagney@redhat.com>
6320
6321 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6322 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6323 * gdbarch.h, gdbarch.c: Re-generate.
6324 * d10v-tdep.c (d10v_push_dummy_code): New function.
6325 (d10v_gdbarch_init): Set push_dummy_code.
6326 * infcall.c (legacy_push_dummy_code): New function.
6327 (generic_push_dummy_code): New function.
6328 (push_dummy_code): New function.
6329 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6330 instead of dummy_addr, to push_dummy_call. Move call to
6331 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6332 switch.
6333 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6334
92bf2b80
AC
63352003-05-03 Andrew Cagney <cagney@redhat.com>
6336
6337 * disasm.h (print_insn): Declare.
6338 * disasm.c (init_gdb_disassemble_info): New function.
6339 (gdb_disassembly): Call init_gdb_disassemble_info.
6340 (gdb_print_insn): New function.
6341 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6342 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6343 * mcore-tdep.c: Include "disasm.h"
6344 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6345 * d10v-tdep.c: Include "disasm.h".
6346 (display_trace): Call gdb_print_insn, instead of print_insn.
6347 (print_insn): Delete function.
6348 * printcmd.c: Include "disasm.h".
6349 (print_insn): Delete function.
6350 (print_formatted): Call gdb_print_insn, instead of print_insn.
6351 * Makefile.in (printcmd.o): Update dependencies.
6352 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 6353
27d94c49
AC
63542003-05-02 Andrew Cagney <cagney@redhat.com>
6355
82de1e5b
AC
6356 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6357 PC_REGNUM, re-indent.
6358 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6359 PC_REGNUM isn't set.
6360
27d94c49
AC
6361 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6362 * gdbarch.h, gdbarch.c: Re-generate.
6363 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6364 register_virtual_size, pc_regnum, or register_bytes.
6365 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6366 (d10v_register_type): Use D10V_PC_REGNUM.
6367 (d10v_print_registers_info, d10v_read_pc): Ditto.
6368 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6369 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6370
a9c0dc7f
DC
63712003-05-02 David Carlton <carlton@bactrian.org>
6372
6373 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6374 the name with mstrsave.
6375
e33d66ec
EZ
63762003-05-02 Elena Zannoni <ezannoni@redhat.com>
6377
6378 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6379 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6380 (host_charset_name, target_charset_name): New vars for use by
6381 set/show commands.
6382 (host_charset_enum, target_charset_enum): New enums for set/show
6383 commands.
6384 (set_charset_sfunc, set_host_charset_sfunc,
6385 set_target_charset_sfunc): New functions.
6386 (set_host_charset, set_target_charset): Make static.
6387 (list_charsets, set_host_charset_command,
6388 set_target_charset_command): Delete functions.
6389 (show_charset_command): Rewrite as....
6390 (show_charset): Hook this up with the set/show command mechanism.
6391 (_initialize_charset): Change names of charsets to match the
6392 set/show enums. Use host_charset_name and target_charset_name.
6393 Use set/show mechanism for charset, host-charset, target-charset
6394 commands. Do not make 'show host-charset' and 'show
6395 target-charset' be aliases of 'show charset'.
6396
6397 * charset.h (set_host_charset, set_target_charset): Don't export,
6398 they are not used outside the file.
6399
2b6fd0d8
AC
64002003-05-01 Andrew Cagney <cagney@redhat.com>
6401
6402 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6403 (gdb_disassembly): Make "di" non static, always initialize and
6404 cleanup. Always use dis_asm_read_memory.
6405 (gdb_dis_asm_read_memory): Delete function.
6406
6ae2f580
AC
64072003-05-01 Andrew Cagney <cagney@redhat.com>
6408
6409 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6410 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6411
810ecf9f
AC
64122003-04-30 Andrew Cagney <cagney@redhat.com>
6413
6414 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6415 "tm_print_insn_info".
6416 (TARGET_PRINT_INSN_INFO): Delete macro.
6417 (dis_asm_read_memory): Delete function declaration.
6418 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6419 (tm_print_insn_info): Delete variable definition.
6420 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6421 * gdbarch.h, gdbarch.c: Re-generate.
6422 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6423 "deprecated_tm_print_insn_info".
6424 * mcore-tdep.c (mcore_dump_insn): Ditto.
6425 * mips-tdep.c (mips_gdbarch_init): Ditto.
6426 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6427 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6428 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6429 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6430 instead of TARGET_PRINT_INSN_INFO, add comment.
6431 * s390-tdep.c (s390_get_frame_info): Instead of
6432 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6433 (s390_check_function_end, s390_is_sigreturn): Ditto.
6434 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6435 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6436 * disasm.c: Include "gdbcore.h".
6437 (_initialize_disasm): New function, initialize
6438 "deprecated_tm_print_insn_info".
6439 (deprecated_tm_print_insn_info): New variable.
6440 (dis_asm_read_memory): Moved from "corefile.c", made static.
6441 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6442 * Makefile.in (disasm.o): Update dependencies.
6443
07020390
AC
64442003-04-30 Andrew Cagney <cagney@redhat.com>
6445
6446 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6447
a9fa03de
AF
64482003-04-29 Adam Fedor <fedor@gnu.org>
6449
6450 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6451 * infcall.c (find_function_addr): Make non-static.
6452 * infcall.h (find_function_addr): Declare.
6453 * Makefile.in (eval.o): Update dependencies.
6454
1bae87b9
AF
64552003-04-28 Adam Fedor <fedor@gnu.org>
6456
6457 * symtab.c (symbol_find_demangled_name): Check for and demangle
6458 ObjC symbols.
6459 (symbol_init_demangled_name): Init for language_objc as well.
6460
0ba6dca9
AC
64612003-04-28 Andrew Cagney <cagney@redhat.com>
6462
6463 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6464 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6465 * gdbarch.h, gdbarch.c: Re-generate.
6466 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6467 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6468 * inferior.h (deprecated_read_fp): Rename read_fp.
6469 (generic_target_read_fp): Delete declaration.
6470 * regcache.c (generic_target_read_fp): Delete function.
6471 (deprecated_read_fp): Replace read_fp, use
6472 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6473 * d10v-tdep.c (d10v_read_fp): Delete function.
6474 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6475
6476 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6477 deprecated_target_read_fp to generic_target_read_fp.
6478 * sh-tdep.c (sh_gdbarch_init): Ditto.
6479 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6480 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6481 * frv-tdep.c (frv_gdbarch_init): Ditto.
6482
6483 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6484 deprecated_fp_regnum.
6485 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6486 * vax-tdep.c (vax_gdbarch_init): Ditto.
6487 * v850-tdep.c (v850_gdbarch_init): Ditto.
6488 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6489 * sh-tdep.c (sh_gdbarch_init): Ditto.
6490 * s390-tdep.c (s390_gdbarch_init): Ditto.
6491 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6492 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6493 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6494 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6495 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6496 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6497 * i386-tdep.c (i386_gdbarch_init): Ditto.
6498 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6499 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6500 * frv-tdep.c (frv_gdbarch_init): Ditto.
6501 * cris-tdep.c (cris_gdbarch_init): Ditto.
6502 * avr-tdep.c (avr_gdbarch_init): Ditto.
6503 * arm-tdep.c (arm_gdbarch_init): Ditto.
6504 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6505
6506 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6507 * v850-tdep.c (v850_gdbarch_init): Ditto.
6508 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6509 * sh-tdep.c (sh_gdbarch_init): Ditto.
6510 * s390-tdep.c (s390_gdbarch_init): Ditto.
6511 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6512 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6513 * mips-tdep.c (mips_gdbarch_init): Ditto.
6514 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6515 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6516 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6517 * frv-tdep.c (frv_gdbarch_init): Ditto.
6518 * avr-tdep.c (avr_gdbarch_init): Ditto.
6519 * arm-tdep.c (arm_gdbarch_init): Ditto.
6520
6521 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6522 DEPRECATED_FP_REGNUM.
6523 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6524 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6525 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6526 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6527 (sparc32_register_virtual_type): Ditto.
6528 * sh-tdep.c (sh64_frame_chain): Ditto.
6529 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6530 (sh_nofp_frame_init_saved_regs): Ditto.
6531 (sh64_nofp_frame_init_saved_regs): Ditto.
6532 (sh_fp_frame_init_saved_regs): Ditto.
6533 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6534 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6535 * procfs.c (procfs_fetch_registers): Ditto.
6536 (procfs_store_registers): Ditto.
6537 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6538 (store_inferior_registers, fetch_core_registers): Ditto.
6539 (fetch_kcore_registers, clear_regs): Ditto.
6540 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6541 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6542 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6543 * nlm/i386.c (do_status): Ditto.
6544 * mipsv4-nat.c (supply_gregset): Ditto.
6545 * mips-tdep.c: Ditto for comments.
6546 * mips-nat.c (fetch_inferior_registers): Ditto.
6547 (store_inferior_registers, fetch_core_registers): Ditto.
6548 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6549 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6550 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6551 (i386_do_pop_frame, i386_register_type): Ditto.
6552 * hppa-tdep.c (hppa_frame_chain): Ditto.
6553 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6554 (hppa_pop_frame, hppa_read_fp): Ditto.
6555 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6556 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6557 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6558 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6559 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6560 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6561 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6562 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6563 * blockframe.c: Ditto for comments.
6564 * arch-utils.h: Ditto for comments.
6565 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6566 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6567 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6568 * alpha-tdep.h: Ditto for comments.
6569 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6570 (alpha_cannot_store_register): Ditto.
6571 (alpha_push_dummy_frame): Ditto.
6572 * alpha-nat.c (supply_gregset): Ditto.
6573
6574 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6575 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6576 * config/sparc/tm-sparc.h: Update comment.
6577
6578 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6579 deprecated_read_fp instead of TARGET_READ_FP.
6580 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6581 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6582 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6583 deprecated_read_fp instead of read_fp.
6584 * s390-tdep.c (s390_push_arguments): Ditto.
6585 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6586 * frame.h: Ditto in comments.
6587 * frame.c (legacy_get_prev_frame): Ditto.
6588 * dummy-frame.c (dummy_frame_this_id): Ditto.
6589 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6590
d7a27068
AC
65912003-04-28 Andrew Cagney <cagney@redhat.com>
6592
6593 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6594 * gdbarch.h, gdbarch.c: Re-generate.
6595 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6596 * vax-tdep.c (_initialize_vax_tdep): Update.
6597 * v850-tdep.c (_initialize_v850_tdep): Update.
6598 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6599 * s390-tdep.c (_initialize_s390_tdep): Update.
6600 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6601 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6602 * mips-tdep.c (_initialize_mips_tdep): Update.
6603 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6604 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6605 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6606 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6607 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6608 * frv-tdep.c (_initialize_frv_tdep): Update.
6609 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6610 (_initialize_cris_tdep): Update.
6611 * arch-utils.c (legacy_print_insn): Update.
6612 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6613
d2630e69
AF
66142003-04-26 Adam Fedor <fedor@gnu.org>
6615
6616 * linespec.c (decode_objc): New function to decode ObjC calls
6617 (decode_line_1): Check for ObjC calls (using decode_objc)
6618 * Makefile (linespec.o): Update dependencies.
6619
3086aeae
DJ
66202003-04-26 Daniel Jacobowitz <drow@mvista.com>
6621
6622 * breakpoint.h (struct breakpoint_ops): New.
6623 (struct breakpoint): Add ops member.
6624
6625 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6626 (mention): Use new breakpoint ops member.
6627 (set_raw_breakpoint): Initialize ops field to NULL.
6628 (print_exception_catchpoint, print_one_exception_catchpoint)
6629 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6630 (gnu_v3_exception_catchpoint_ops): New.
6631 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6632
1fbec6c3
AF
66332003-04-25 Adam Fedor <fedor@gnu.org>
6634
6635 * Makefile.in (COMMON_OBS): Add objc-lang.o
6636
0ef21242
AC
66372003-04-25 Andrew Cagney <cagney@redhat.com>
6638
6639 * d10v-tdep.c (print_insn): Delete function.
6640 (display_trace): Use TARGET_PRINT_INSN.
6641 (_initialize_d10v_tdep): Do not set tm_print_insn.
6642 (d10v_gdbarch_init): Set print_insn.
6643
f75493ed
AC
66442003-04-25 Andrew Cagney <cagney@redhat.com>
6645
6646 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6647 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6648 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6649 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6650 (nr_dmap_regs, a0_regnum): ... new functions.
6651 (d10v_print_registers_info): Use a0_regnum, use register_size.
6652 (d10v_register_byte): Delete function.
6653 (d10v_register_raw_size): Delete function.
6654 (d10v_register_type): Use a0_regnum.
6655 (d10v_print_registers_info): Use a0_regnum.
6656 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6657 (d10v_gdbarch_init): Do not set register_byte or
6658 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6659 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6660 extract_address.
6661 (trace_command): Use XCALLOC.
6662 (print_insn): Delete reference to tm_print_insn.
6663 (saved_regs_unwinder): Use store_unsigned_integer instead of
6664 store_address.
6665 * frame.h (FRAME_OBSTACK_CALLOC): Define
6666
2202b100
DC
66672003-04-25 David Carlton <carlton@bactrian.org>
6668
6669 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6670
4e45ca2e
AF
66712003-04-24 Adam Fedor <fedor@gnu.org>
6672
6673 * objc-lang.c: Include "valprint.h"
6674 * Makefile.in (objc-lang.o): Update dependencies.
6675
93de3e7f
AF
66762003-04-24 Adam Fedor <fedor@gnu.org>
6677
8ffd9b1b 6678 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6679 architecture dependant compilation and mark as unimplemented
6680 (until they get put in the gdbarch vector).
6681
0f20eeea
DC
66822003-04-23 David Carlton <carlton@bactrian.org>
6683
6684 * cp-support.c (cp_find_first_component): Accept 'operator' in
6685 more locations.
6686
74cfe982
AC
66872003-04-23 Andrew Cagney <cagney@redhat.com>
6688
6689 * infcall.c (call_function_by_hand): Eliminate redundant
6690 indentation. Move "saved_async" and "old_cleanups" to where they
6691 are needed.
8ffd9b1b 6692
52557533
AC
66932003-04-23 Andrew Cagney <cagney@redhat.com>
6694
6695 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6696 and "buffer". Move the "name" code to where it is needed.
6697
158775de
AC
66982003-04-23 Andrew Cagney <cagney@redhat.com>
6699
6700 * infcall.c (call_function_by_hand): Move variables "start_sp",
6701 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6702 code to ON_STACK switch branch.
8ffd9b1b 6703
ebc7896c
AC
67042003-04-23 Andrew Cagney <cagney@redhat.com>
6705
6706 * infcall.c (call_function_by_hand): Make declaration of "i",
6707 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6708 lint.
6709
d727590f
AC
67102003-04-23 Andrew Cagney <cagney@redhat.com>
6711
6712 * infcall.c (call_function_by_hand): Delete variable
6713 "n_method_args". Localize "param_type"'s declaration to the loop
6714 that it is used. Reinstate code assigning to said variable -
6715 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6716 Rationalize code using "param_type".
6717
d585e13a
AC
67182003-04-22 Andrew Cagney <cagney@redhat.com>
6719
6720 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6721 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6722 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6723 to DEPRECATED_PUSH_RETURN_ADDRESS.
6724
051caad9
KB
67252003-04-22 Kevin Buettner <kevinb@redhat.com>
6726
6727 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6728 on the DWARF2 register number prior to fetching a register.
6729
77296879
JB
67302003-04-22 J. Brobecker <brobecker@gnat.com>
6731
6732 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6733 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6734 this macro was always set to 0.
77296879
JB
6735 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6736 considering the fact that this macro was always set to 0.
6737 * hppa-tdep.h (hppa_store_return_value): Likewise.
6738 (hppa_extract_return_value): Likewise.
6739
4252f1df
JB
67402003-04-22 J. Brobecker <brobecker@gnat.com>
6741
6742 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6743 the hppa-pro target only.
6744
14604c6b
JB
67452003-04-21 J. Brobecker <brobecker@gnat.com>
6746
6747 Ongoing multi-arch conversion effort for HP/UX:
6748 * config/pa/tm-hppa.h: Move all macro that are no longer
6749 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6750 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6751
77eb01d1
JB
67522003-04-21 J. Brobecker <brobecker@gnat.com>
6753
6754 * config/pa/tm-hppa.h: Obsolete a section that was only used
6755 for hppa-pro.
6756
61995b3b
JB
67572003-04-21 J. Brobecker <brobecker@gnat.com>
6758
6759 Ongoing multi-arch conversion for HP/UX.
6760 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6761 if already defined (allows hppa64 to stay non-multiarched for now).
6762 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6763
4aa79dcc
AC
67642003-04-21 Andrew Cagney <cagney@redhat.com>
6765
6766 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6767
0f751ff2
AC
67682003-04-21 Andrew Cagney <cagney@redhat.com>
6769
6770 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6771 "i386_num_mmx_regs".
6772
04714b91
AC
67732003-04-21 Andrew Cagney <cagney@redhat.com>
6774
6775 * infcall.c: New file.
6776 * infcall.h: New file.
6777 * valarith.c: Include "infcall.h".
6778 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6779 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6780 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6781 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6782 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6783 (SFILES): Add "infcall.c"
6784 (COMMON_OBS): Add "infcall.o".
6785 (infcall.o): Specify dependencies.
6786 * value.h (call_function_by_hand): Delete declaration.
6787 * inferior.h (run_stack_dummy): Delete declaration.
6788 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6789 (run_stack_dummy): Move to "infcall.c", merged into
6790 call_function_by_hand.
6791 * valops.c (call_function_by_hand): Moved to "infcall.c".
6792 (find_function_addr, value_arg_coerce): Ditto.
6793 (unwindonsignal_p, coerce_float_to_double): Ditto.
6794 (_initialize_valops): Move "set/show coerce-float-to-double", and
6795 "set/show unwindonsignal" commands to "infcall.c".
6796 * v850-tdep.c, target.h: Update comments.
6797 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6798 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6799 (sh64_init_extra_frame_info): Update comments.
6800 * mn10300-tdep.c: Update comments.
6801 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6802 * config/sparc/tm-sparc.h: Update comments.
6803 * breakpoint.h: Update comments.
6804 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6805 * arm-tdep.c: Update comment.
6806
f9d3c2a8
MK
68072003-04-19 Mark Kettenis <kettenis@gnu.org>
6808
c40e1eab
MK
6809 * i386-tdep.c (i386_num_register_names): New variable.
6810 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6811 (MM0_REGNUM): Remove redundant parentheses in define.
6812 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6813 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6814 i386_mxcsr_regnum_p): Remove redundant parentheses.
6815 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 6816
94ea66b3
MK
6817 * i386-tdep.c (i386_extract_return_value,
6818 i386_store_return_value): Correct check for availability of
6819 floating-point registers.
6820
54299a1d
MK
6821 * i386-tdep.c (i386_frame_num_args): Remove function.
6822 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6823
c86c27af
MK
6824 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6825 mmx_regnum_to_fp_regnum. Adjust all callers.
6826
f9d3c2a8
MK
6827 * i386-tdep.c (i386_get_longjmp_target): Use
6828 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6829 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6830 extract_address.
6831
94ba74a9
MK
68322003-04-19 Mark Kettenis <kettenis@gnu.org>
6833
6834 * core-regset.c: Update comments to reflect reality. Re-order
6835 includes.
6836 (fetch_core_registers): Use switch instead of if. Remove
6837 redundant prototype.
6838
4074e13c
JB
68392003-04-18 Jim Blandy <jimb@redhat.com>
6840
6841 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 6842 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 6843
e3ab4aba
RH
68442003-04-17 Richard Henderson <rth@redhat.com>
6845
6846 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6847
627bf7c1
EZ
68482003-04-17 Michael Snyder <msnyder@redhat.com>
6849 Karen Bennet <bennet@redhat.com>
6850
6851 Committed by Elena Zannoni <ezannoni@redhat.com>
6852 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 6853
514621a9
EZ
68542003-04-17 Elena Zannoni <ezannoni@redhat.com>
6855
6856 * values.c (value_being_returned): Don't fetch the return
fbe586ae 6857 value if the return type is void.
514621a9 6858
b4acd559
JJ
68592003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6860
6861 * thread-db.c: Reindented.
8ffd9b1b 6862
530b167e 68632003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6864
6865 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6866 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
6867 as types.
6868
0a48e7e8
MS
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
8ffd9b1b 6892
ab9fe00e
KB
68932003-04-16 Kevin Buettner <kevinb@redhat.com>
6894
610a3745 6895 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
6896 the size of ``long double'' to 16, instead of 8.
6897
e64a344c
MK
68982003-04-16 Mark Kettenis <kettenis@gnu.org>
6899
6900 * i386-linux-nat.c: Add some whitespace to make things more
6901 readable.
6902 (fetch_register, store_register, fetch_inferior_registers,
6903 store_inferior_registers): Get rid of assignment in if-statement.
6904 (store_register): Fix typo in error message.
6905
25d41031
AC
69062003-04-16 Andrew Cagney <cagney@redhat.com>
6907
6908 * utils.c (xmmalloc): Always allocate something, matches
6909 libiberty/xmalloc's semantics.
6910 (xmrealloc, xmcalloc): Ditto.
6911
c50901fd
AC
69122003-04-16 Andrew Cagney <cagney@redhat.com>
6913
6914 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6915 update comments.
6916 (get_frame_type): Initialize unwind and type when needed.
6917 (get_frame_id, frame_register_unwind): Ditto.
6918
f81824a9
AC
69192003-04-16 Andrew Cagney <cagney@redhat.com>
6920
6921 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6922 obsolete.
6923 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6924 * sparcl-stub.c: Obsolete file.
6925 * config/sparc/tm-sparclet.h: Obsolete file.
6926 * sparclet-stub.c: Obsolete file.
6927 * sparclet-rom.c: Obsolete file.
6928 * sparcl-tdep.c: Obsolete file.
6929 * config/sparc/tm-sparclite.h: Obsolete file.
6930 * config/sparc/sparclite.mt: Obsolete file.
6931 * config/sparc/sparclet.mt: Obsolete file.
6932 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6933 sparc86x-*-* obsolete.
6934
9219021c
DC
69352003-04-15 David Carlton <carlton@math.stanford.edu>
6936
6937 * Makefile.in (SFILES): Add cp-namespace.c.
6938 (COMMON_OBS): Add cp-namespace.o.
6939 (block.o): Depend on gdb_obstack_h and cp_support_h.
6940 (buildsym.o): Depend on cp_support_h.
6941 (cp-namespace.o): New.
6942 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6943 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6944 (dwarf2read.o): Depend on cp_support_h.
6945 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6946 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6947 processing_current_namespace.
6948 (read_namespace): Update processing_current_namespace; check for
6949 anonymous namespaces.
6950 (dwarf2_name): New function.
6951 (dwarf2_extension): Ditto.
6952 * cp-support.h: Update copyright, contributors.
6953 Add inclusion guards.
6954 Add opaque declaration for structs obstack, block, symbol.
6955 (struct using_direct): New struct.
6956 Add declarations for cp_find_first_component,
6957 cp_entire_prefix_len, processing_has_namespace_info,
6958 processing_current_namespace, cp_is_anonymous,
6959 cp_add_using_directive, cp_initialize_namespace,
6960 cp_finalize_namespace, cp_set_block_scope,
6961 cp_scan_for_anonymous_namespaces.
6962 * cp-namespace.c: New file.
6963 * cp-support.c: Update copyright.
6964 Include ctype.h, gdb_assert.h, gdbcmd.h.
6965 New variable maint_cplus_cmd_list.
6966 (cp_find_first_component): New function.
6967 (cp_entire_prefix_len, maint_cplus_command)
6968 (first_component_command, _initialize_cp_support): Ditto.
6969 * buildsym.c: Include cp-support.h.
6970 New variable using_list.
6971 (add_symbol_to_list): Check for anonymous namespaces.
6972 (finish_block): Set block's scope.
6973 (start_symtab): Initialize C++ namespace support.
6974 (end_symtab): Finalize C++ namespace support.
6975 * block.h: Add opaque declarations for structs
6976 block_namespace_info, using_direct, and obstack.
6977 Add declarations for block_set_scope and block_set_using.
6978 (struct block): Add 'language_specific' member.
6979 (BLOCK_NAMESPACE): New macro.
6980 * block.c: Include gdb_obstack.h and cp-support.h.
6981 (struct block_namespace_info): New struct.
6982 (block_set_scope): New function.
6983 (block_set_using, block_initialize_namespace): Ditto.
6984
d5a921c9
KB
69852003-04-14 Kevin Buettner <kevinb@redhat.com>
6986
6987 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6988 (locate_base): Return early if there aren't any link map offsets.
6989 (svr4_solib_create_inferior_hook): Warn if shared library support
6990 is unavailable.
6991
d2a52b27
DC
69922003-04-14 David Carlton <carlton@math.stanford.edu>
6993
6994 * symtab.c (symbol_set_names): Add prefix when storing Java names
6995 in hash table. Fix for PR java/1039.
6996
980cae7a
DC
69972003-04-14 David Carlton <carlton@math.stanford.edu>
6998
6999 * symtab.c (symbol_set_names): Rename 'name' arg to
7000 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7001 * symtab.h: Change 'name' argument in declaration of
7002 symbol_set_names to 'linkage_name'.
7003 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7004
e227b13c
AC
70052003-04-14 Andrew Cagney <cagney@redhat.com>
7006
7007 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7008 return the fully sign-extended register value.
7009 (get_frame_pointer): Ditto.
7010 (mips_pop_frame): Initialize "proc_desc" after checking for a
7011 dummy frame.
7012
36712a20
AC
70132003-04-14 Andrew Cagney <cagney@redhat.com>
7014
7015 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7016 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7017 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7018 (mips_push_register): Delete function.
7019 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7020 PUSH_FP_REGNUM.
7021
44ea7b70
JB
70222003-04-14 Jim Blandy <jimb@redhat.com>
7023
7024 * symmisc.c: #include "gdb_regex.h".
7025 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7026 functions.
7027 * maint.c (maintenance_list_command): New function.
7028 (_initialize_maint_cmds): Register the above as commands.
7029 * symtab.h (maintenance_list_symtabs,
7030 maintenance_list_psymtabs): New declarations.
7031 * cli/cli-cmds.c (maintenancelistlist): New variable.
7032 (init_cmd_lists): Initialize it.
7033 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7034 * gdbcmd.h (maintenancelistlist): New declaration.
7035 * Makefile.in (symmisc.o): Update dependencies.
7036
2d0c7962
EZ
70372003-04-14 Elena Zannoni <ezannoni@redhat.com>
7038
7039 * s390-nat.c: Include asm/types.h for addr_t.
7040
1947a811
CV
70412003-04-14 Corinna Vinschen <vinschen@redhat.com>
7042
7043 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7044 actually incoming type.
7045
adb616d7
AC
70462003-04-13 Andrew Cagney <cagney@redhat.com>
7047
7048 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7049 get_next_frame and get_frame_saved_regs.
7050
9b5e151c
AC
70512003-04-13 Andrew Cagney <cagney@redhat.com>
7052
7053 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7054 of gdbarch_num_regs.
7055
ef6e7e13
AC
70562003-04-13 Andrew Cagney <cagney@redhat.com>
7057
7058 * frame.h: Mention what replaced what in "struct frame_info".
7059 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7060 deprecated_update_frame_base_hack and
7061 deprecated_update_frame_pc_hack.
7062 * hppa-tdep.c: Ditto.
7063
61fbb938
DJ
70642003-04-13 Daniel Jacobowitz <drow@mvista.com>
7065
7066 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7067 to read_reg and update its comment. Remove regnum member.
7068 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7069 Don't call read_reg when setting in_reg. Call read_reg to get
7070 the frame base if it's in a register. Return the register number
7071 on the stack instead of in the context. Remove extra arguments
7072 to read_reg.
7073 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7074 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7075 the register number on the expression stack.
7076 (needs_frame_read_reg): Remove extra arguments.
7077
0d53c4c4
DJ
70782003-04-13 Daniel Jacobowitz <drow@mvista.com>
7079
7080 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7081 made non-static.
7082 (execute_stack_op): All callers updated.
7083 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7084 * dwarf2loc.c (find_location_expression): New function.
7085 (dwarf_expr_frame_base): Call it.
7086 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7087 (dwarf2_tracepoint_var_ref): New function, broken out from
7088 locexpr_tracepoint_var_ref.
7089 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7090 Make static.
7091 (loclist_read_variable, loclist_read_needs_frame): New functions.
7092 (loclist_describe_location, loclist_tracepoint_var_ref): New
7093 functions.
7094 (dwarf2_loclist_funcs): New struct location_funcs.
7095 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7096 (struct dwarf2_locexpr_baton): Add comments.
7097 (dwarf2_loclist_funcs): New extern.
7098 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7099 base_address and base_known.
7100 (dwarf_loc_buffer): New variable.
7101 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7102 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7103 (dwarf2_has_info): Initialize dwarf_loc_offset.
7104 (dwarf2_build_psymtabs): Read in .debug_loc.
7105 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7106 DWARF_LOC_SIZE.
7107 (psymtab_to_symtab_1): Likewise. Move base address calculation
7108 here, from...
7109 (dwarf2_get_pc_bounds): ... here. Use the base address from
7110 cu_header.
7111 (dwarf2_symbol_mark_computed): Handle location lists.
7112
6aca59a3
DJ
71132003-04-13 Daniel Jacobowitz <drow@mvista.com>
7114
7115 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7116 if the linkage name demangled successfully.
7117
aca1fcd0
MK
71182003-04-13 Mark Kettenis <kettenis@gnu.org>
7119
97095916
MK
7120 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7121 disassmbly_flavour): Removed.
7122
aca1fcd0
MK
7123 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7124
562a961f
MK
71252003-04-13 Mark Kettenis <kettenis@gnu.org>
7126
7127 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7128
bd013d54
AC
71292003-04-12 Andrew Cagney <cagney@redhat.com>
7130
7131 * frame.h (struct frame_info): Move definition from here ...
7132 * frame.c (struct frame_info): ... to here.
7133
167ef8b1
AC
71342003-04-12 Andrew Cagney <cagney@redhat.com>
7135
7136 * gdbthread.h (save_infrun_state): Delete parameter
7137 "prev_func_start".
7138 (struct thread_info): Delete field "prev_func_start".
7139 (load_infrun_state): Ditto.
7140 * thread.c (load_infrun_state, save_infrun_state): Update.
7141 * infrun.c (prev_func_start): Delete variable.
7142 (context_switch, init_wait_for_inferior): Update.
7143 (stop_stepping, keep_going): Update.
7144
da3331ec
AC
71452003-04-12 Andrew Cagney <cagney@redhat.com>
7146
7147 * gdbarch.sh: Add missing opaque declarations.
7148 * gdbarch.h: Regnerate.
7149 * symtab.h: Add missing opaque declarations.
7150 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7151 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7152 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7153 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7154 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7155 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7156 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7157 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7158 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7159 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7160 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7161 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7162 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7163
18adea3f
AC
71642003-04-11 Andrew Cagney <cagney@redhat.com>
7165
7166 * frame.c (get_frame_id): Return this frame's "id".
7167 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7168 function start.
7169 (legacy_saved_regs_this_id): Replace function body with
7170 internal-error.
7171 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7172 FRAME_OBSTACK_ZALLOC.
7173 (create_new_frame): Mark the frame ID as valid.
7174
2252e863
AO
71752003-04-11 Alexandre Oliva <aoliva@redhat.com>
7176
7177 * Makefile.in (libbfd_h): Added missing setting.
7178 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7179 according to the selected ABI.
7180
a8245ab8
JJ
71812003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7182
7183 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7184
6913c89a
AC
71852003-04-11 Andrew Cagney <cagney@redhat.com>
7186
7187 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7188 SAVED_PC_AFTER_CALL.
7189 * gdbarch.h, gdbarch.c: Regenerate.
7190 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7191 * x86-64-tdep.c (x86_64_init_abi): Update.
7192 * vax-tdep.c (vax_gdbarch_init): Update.
7193 * v850-tdep.c (v850_gdbarch_init): Update.
7194 * sparc-tdep.c (sparc_gdbarch_init): Update.
7195 * sh-tdep.c (sh_gdbarch_init): Update.
7196 * s390-tdep.c (s390_gdbarch_init): Update.
7197 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7198 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7199 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7200 * mips-tdep.c (mips_gdbarch_init): Update.
7201 * mcore-tdep.c (mcore_gdbarch_init): Update.
7202 * m68k-tdep.c (m68k_gdbarch_init): Update.
7203 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7204 * ia64-tdep.c (ia64_gdbarch_init): Update.
7205 (ia64_saved_pc_after_call): Update declaration.
7206 * i386ly-tdep.c (i386lynx_init_abi): Update.
7207 * i386-tdep.c (i386_gdbarch_init): Update.
7208 * hppa-tdep.c (hppa_gdbarch_init): Update.
7209 * h8300-tdep.c (h8300_gdbarch_init): Update.
7210 * frv-tdep.c (frv_gdbarch_init): Update.
7211 * cris-tdep.c (cris_gdbarch_init): Update.
7212 * avr-tdep.c (avr_gdbarch_init): Update.
7213 * arm-tdep.c (arm_gdbarch_init): Update.
7214 * alpha-tdep.c (alpha_gdbarch_init): Update.
7215 * ns32knbsd-nat.c (frame_num_args): Update.
7216 * ns32k-tdep.c (umax_frame_num_args): Update.
7217 * mips-tdep.c (mips_init_frame_pc_first): Update.
7218 * infrun.c (step_over_function): Update.
7219 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7220 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7221 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7222 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7223 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7224 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7225 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7226 * arch-utils.c (init_frame_pc_default): Update.
7227 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7228 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7229 declaration.
8ffd9b1b 7230
38edeab8
AC
72312003-04-11 Andrew Cagney <cagney@redhat.com>
7232
7233 * i387-tdep.c: Update copyright.
7234 (i387_to_double): Delete function.
7235 (double_to_i387): Delete function.
7236
81f8a206
AC
72372003-04-10 Andrew Cagney <cagney@redhat.com>
7238
7239 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7240 frame's function's address. Simplify.
7241 (d10v_frame_unwind_cache): Check that the frame's function is
7242 non-zero.
7243
6e691f7a
JB
72442003-04-10 Jim Blandy <jimb@redhat.com>
7245
7246 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7247 call to set_gdbarch_deprecated_push_arguments.
7248
7f78e237
AC
72492003-04-10 Andrew Cagney <cagney@redhat.com>
7250
7251 * frame.c (fprint_frame_id): New function.
7252 (fprint_frame_type, fprint_frame): New function.
7253 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7254 (create_sentinel_frame, get_frame_id): Ditto.
7255 (frame_id_p, frame_id_eq): Ditto.
7256 (frame_id_inner, create_new_frame): Ditto.
7257 (legacy_get_prev_frame, get_prev_frame): Ditto.
7258 (deprecated_update_frame_pc_hack): Ditto.
7259 (frame_register_unwind): Ditto.
7260 (deprecated_update_frame_base_hack): Ditto.
7261
f870b49b
CV
72622003-04-10 Corinna Vinschen <vinschen@redhat.com>
7263
7264 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7265 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7266 frame_chain function.
7267 * Makefile.in: Add dependencies due to above change.
7268
7c86889b
CV
72692003-04-10 Corinna Vinschen <vinschen@redhat.com>
7270
7271 * blockframe.c (legacy_frame_chain_valid): Move call to
7272 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7273 inside_entry_file.
7274
d0a55772
AC
72752003-04-09 Andrew Cagney <cagney@redhat.com>
7276
7277 * frame.h (struct frame_id): Replace "pc" and "base" with
7278 "stack_addr" and "code_addr". Update comments.
7279 (frame_id_build): Update parameter names and comment.
7280 (struct frame_info): Replace "id_p" and "id" with "this_id".
7281 * dummy-frame.c (dummy_frame_this_id): Update.
7282 * breakpoint.c (print_one_breakpoint): Update.
7283 * frame.c (get_frame_id): Update.
7284 (get_frame_base, frame_id_build): Update.
7285 (create_sentinel_frame, legacy_get_prev_frame): Update.
7286 (deprecated_update_frame_base_hack): Update.
7287 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7288 (frame_id_inner): Ditto.
7289
ac16bf07
AC
72902003-04-09 Andrew Cagney <cagney@redhat.com>
7291
7292 * defs.h (gdb_print_host_address): Make "addr" parameter a
7293 pointer constant.
7294 * utils.c (gdb_print_host_address): Update.
7295
366cfc9e
KB
72962003-04-09 Kevin Buettner <kevinb@redhat.com>
7297
7298 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7299 register number for R0 is 0.
7300
cd983b5c
JB
73012003-04-09 J. Brobecker <brobecker@gnat.com>
7302
7303 * frame.h (struct gdbarch): Add opaque structure definition
7304 to avoid a compilation warning on LynxOS 4.0.
7305
d1340264
AC
73062003-04-09 Andrew Cagney <cagney@redhat.com>
7307
7308 * frame.h (struct frame_info): Delete field "pc". Replace
7309 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7310 structure.
7311 * frame.c (frame_pc_unwind): Update.
7312 (create_sentinel_frame): Do not set "pc".
7313 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7314 (get_frame_pc): Call frame_pc_unwind.
7315 (deprecated_update_frame_pc_hack): Update.
7316 (create_new_frame): Use "pc" not "->pc".
7317
90a6fffb
AC
73182003-04-09 Andrew Cagney <cagney@redhat.com>
7319
7320 * frame.c (get_frame_id): Eliminate code updating "frame".
7321 (legacy_get_prev_frame): Ditto.
7322 (get_frame_base): Return id.base directly.
7323 (deprecated_update_frame_base_hack): Update "id.base".
7324 * frame.h (struct frame_info): Delete field "frame".
7325
2fbce691
AC
73262003-04-09 Andrew Cagney <cagney@redhat.com>
7327
7328 * NEWS: Mention that the "Sequent family" is obsolete.
7329 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7330 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7331 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7332 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7333 * config/i386/tm-ptx4.h: Obsolete file.
7334 * config/i386/tm-ptx.h: Obsolete file.
7335 * symm-tdep.c: Obsolete file.
7336 * config/i386/symmetry.mt: Obsolete file.
7337 * config/i386/tm-symmetry.h: Obsolete file.
7338 * symm-nat.c: Obsolete file.
7339 * config/i386/nm-symmetry.h: Obsolete file.
7340 * config/i386/xm-symmetry.h: Obsolete file.
7341 * config/i386/symmetry.mh: Obsolete file.
7342 * config/i386/nm-ptx4.h: Obsolete file.
7343 * config/i386/ptx4.mh: Obsolete file.
7344 * config/i386/ptx.mt: Obsolete file.
7345 * config/i386/ptx.mh: Obsolete file.
7346 * config/i386/xm-ptx4.h: Obsolete file.
7347 * config/i386/xm-ptx.h: Obsolete file.
7348
78c43945
AC
73492003-04-09 Andrew Cagney <cagney@redhat.com>
7350
7351 Obsolete mips*-*-mach3*.
7352 * NEWS: Mention that mips*-*-mach3* is obsolete.
7353 * m3-nat.c: Obsolete file.
7354 * config/nm-m3.h: Obsolete file.
7355 * config/mips/tm-mipsm3.h: Obsolete file.
7356 * config/mips/mipsm3.mt: Obsolete file.
7357 * config/mips/mipsm3.mh: Obsolete file.
7358 * config/mips/xm-mipsm3.h: Obsolete file.
7359 * mipsm3-nat.c: Obsolete file.
7360 * configure.host: Obsolete mips-dec-mach3*.
7361 * configure.tgt: Obsolete mips*-*-mach3*.
7362
f1908289
AC
73632003-04-09 Andrew Cagney <cagney@redhat.com>
7364
7365 * doublest.h: Update copyright.
7366 (deprecated_store_floating, deprecated_extract_floating): Rename
7367 store_floating and extract_floating. Update comments.
7368 * doublest.c: Update copyright.
7369 (extract_floating_by_length): Replace extract_floating.
7370 (store_floating_by_length): Replace store_floating.
7371 (deprecated_extract_floating): New function.
7372 (deprecated_store_floating): New function.
7373 (extract_typed_floating): Call extract_floating_by_length.
7374 (store_typed_floating): Call store_floating_by_length.
7375 * x86-64-tdep.c (x86_64_store_return_value): Update.
7376 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7377 (sh64_extract_return_value): Update.
7378 (sh_sh4_register_convert_to_virtual): Update.
7379 (sh_sh64_register_convert_to_virtual): Update.
7380 (sh_sh4_register_convert_to_raw): Update.
7381 (sh_sh64_register_convert_to_raw): Update.
7382 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7383 (rs6000_register_convert_to_raw): Update.
7384 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7385 (ia64_register_convert_to_raw): Update.
7386 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7387 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7388 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7389 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7390 (alpha_register_convert_to_raw): Update.
7391
4443bd83
AC
73922003-04-08 Andrew Cagney <cagney@redhat.com>
7393
7394 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7395 * gdbarch.h, gdbarch.c: Re-generate.
7396 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7397 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7398 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7399 conditionally, use frame_pc_unwind as an alternative. Add
7400 comments.
7401 * arch-utils.c (init_frame_pc_default): Only call
7402 SAVED_PC_AFTER_CALL when available.
7403
c0236d92
EZ
74042003-04-08 Elena Zannoni <ezannoni@redhat.com>
7405
fbe586ae 7406 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7407 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7408 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7409 (start_remote): Ditto.
7410 (handle_inferior_event): Ditto.
7411 (save_inferior_status): Ditto.
7412 (restore_inferior_status): Ditto.
7413 * infcmd.c (attach_command): Ditto.
7414 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7415 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7416 * alpha-tdep.c (heuristic_proc_start): Ditto.
7417 * mips-tdep.c (heuristic_proc_start): Ditto.
7418 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7419 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7420 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7421 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7422 * remote-vx.c (vx_create_inferior): Ditto.
7423
74242003-04-08 Elena Zannoni <ezannoni@redhat.com>
7425
7426 * infrun.c (stop_soon_quietly): Make it an enum, to better
7427 override the default behavior of handle_inferior_event.
7428 (clear_proceed_status): Update uses of stop_soon_quietly to
7429 reflect that it is now an enum.
7430 (start_remote): Ditto.
7431 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7432 is set to handle the new GNU/Linux kernel behavior for
7433 attach/sigstop. Update uses of stop_soon_quietly.
7434 * inferior.h (enum stop_kind): New enum.
7435 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7436 Reset normal handle_inferior_event behavior, afterwards.
7437 * fork-child.c (startup_inferior): Update.
7438 * alpha-tdep.c (heuristic_proc_start): Update.
7439 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7440 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7441 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7442 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7443 * remote-vx.c (vx_create_inferior): Update.
7444 * mips-tdep.c (heuristic_proc_start): Update.
7445
1211bce3
EZ
74462003-04-07 Elena Zannoni <ezannoni@redhat.com>
7447
7448 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7449 be freed more than once, causing wild memory corruptions.
1211bce3 7450 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7451 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7452 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7453 with the "core" target.
1211bce3 7454
f0ef6b29
KB
74552003-04-07 Kevin Buettner <kevinb@redhat.com>
7456
7457 * mips-tdep.c (mips_print_fp_register): New function, created from
7458 do_fp_register_row(). Registers are now (also) printed as hex.
7459 Only one register is printed per row.
7460 (mips_print_register, do_fp_register_row): Print floating point
7461 registers with mips_print_fp_register().
7462
8cf71652
AC
74632003-04-06 Andrew Cagney <cagney@redhat.com>
7464
5e488a7b
AC
7465 * valprint.h (inspect_it): Add extern declaration.
7466 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7467 (selectors_info, classes_info): Ditto.
7468 (find_objc_msgcall): Fix indentation.
7469 (objc_printstr): Delete extern declarations.
7470
8cf71652
AC
7471 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7472
e6ba3bc9
AC
74732003-04-06 Andrew Cagney <cagney@redhat.com>
7474
7475 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7476 Update comment.
7477 * frame.c (legacy_saved_regs_this_id): Update.
7478 (legacy_get_prev_frame): Update.
7479 * xstormy16-tdep.c: Update comment.
7480 * sparc-tdep.c (sparc_frame_chain): Update comment.
7481 * blockframe.c (legacy_frame_chain_valid): Update.
7482
55e1d7e7
AC
74832003-04-06 Andrew Cagney <cagney@redhat.com>
7484
996179ee
AC
7485 * valprint.c (val_print_type_code_int): Delete #ifdef
7486 PRINT_TYPELESS_INTEGER code.
7487
55e1d7e7
AC
7488 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7489 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7490 multi-arch definition.
7491 * gdbarch.h: Re-generate.
7492
43bd9a9e
AC
74932003-04-05 Andrew Cagney <cagney@redhat.com>
7494
7495 Eliminate FRAME_FIND_SAVED_REGS.
7496 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7497 Change FSR parameter to a pointer.
7498 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7499 Assume FSR parameter is a pointer.
7500 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7501 Make fsr a pointer.
7502 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7503 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7504 saved_regs a pointer.
7505 (hppa_frame_saved_pc): Ditto.
7506 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7507 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7508 pointer.
7509 (restore_pc_queue): Make fsr a pointer.
7510 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7511 (hppa_frame_chain): Make saved_regs a pointer, call
7512 hppa_frame_init_saved_regs.
7513 * sparc-tdep.c: Include "gdb_assert.h".
7514 (sparc_frame_find_saved_regs): Replace internal_error with
7515 gdb_assert.
7516 * remote-vxsparc.c (vx_read_register): Delete reference to
7517 FRAME_FIND_SAVED_REGS.
7518 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7519 * gdbarch.h: Regenerate.
7520 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7521 (deprecated_get_frame_saved_regs): Delete declaration.
7522 (struct frame_saved_regs): Delete definition.
7523 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7524 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7525 (hppa_frame_find_saved_regs): Delete declaration.
7526 (FRAME_FIND_SAVED_REGS): Delete macro.
7527 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7528 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7529 FRAME_FIND_SAVED_REGS in comment.
7530
be41e9f4
AC
75312003-04-05 Andrew Cagney <cagney@redhat.com>
7532
7533 * frame.c (frame_func_unwind, get_frame_func): New functions.
7534 * frame.h (get_frame_func, frame_func_unwind): Declare.
7535 (struct frame_info): Add field "prev_func" for caching the
7536 previous frame's function address.
7537 * arm-tdep.c (arm_frameless_function_invocation): Combine
7538 get_pc_function_start and get_frame_pc into get_frame_func.
7539 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7540 (sh64_nofp_frame_init_saved_regs): Ditto.
7541 * s390-tdep.c (s390_function_start): Ditto.
7542 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7543 (rs6000_frameless_function_invocation): Ditto.
7544 (rs6000_frame_saved_pc): Ditto.
7545 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7546 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7547 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7548 (i386_frame_init_saved_regs): Ditto.
7549 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7550 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7551 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7552 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7553 * blockframe.c (frameless_look_for_prologue): Ditto.
7554
a01dd7cc
AC
75552003-04-05 Andrew Cagney <cagney@redhat.com>
7556
7557 * frame.c (legacy_get_prev_frame): Link prev to next at the
7558 function start. Update comments.
7559
5e5592e6
AC
75602003-04-05 Andrew Cagney <cagney@redhat.com>
7561
7562 * frame.c (get_frame_id): Update comment.
7563 (legacy_get_prev_frame): Update comment.
7564 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7565 * gdbarch.h: Regenerate.
7566 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7567 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7568
6fba5002
AC
75692003-04-05 Andrew Cagney <cagney@redhat.com>
7570
7571 * stack.c (print_frame_info): Use get_frame_pc.
7572
7df05f2b
AC
75732003-04-04 Andrew Cagney <cagney@redhat.com>
7574
7575 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7576 the frame's type from the unwinder.
7577 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7578 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7579 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7580 (get_frame_base_address): Use get_frame_type.
7581 (get_frame_locals_address, get_frame_args_address): Ditto.
7582 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7583 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7584 (struct frame_info): Add comment explaining why the frame contains
7585 a "type" field.
7586 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7587 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7588 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7589 NORMAL_FRAME.
7590 * frame-unwind.h: Include "frame.h".
7591 (struct frame_unwind): Add "type" field.
7592 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7593
11889732
AC
75942003-04-04 Andrew Cagney <cagney@redhat.com>
7595
7596 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7597 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7598 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7599 get_frame_base.
7600 (d10v_unwind_dummy_id): Use frame_id_build.
7601 * frame.c (find_frame_sal): Use get_frame_pc.
7602 (create_new_frame): Use deprecated_update_frame_pc_hack and
7603 deprecated_update_frame_base_hack.
7604 (create_sentinel_frame): Add comment about ->pc going away.
7605 (get_prev_frame): Add comment about ->pc going away.
7606 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7607 frame_id_build, deprecated_update_frame_pc_hack and
7608 deprecated_update_frame_base_hack.
7609 (select_frame): Use get_frame_pc.
7610 (legacy_saved_regs_this_id): Use frame_id_build.
7611
50c46a0d
EZ
76122003-04-04 Elena Zannoni <ezannoni@redhat.com>
7613
fbe586ae
RH
7614 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7615 signed integer case.
7616 (classify_argument): Handle enumerations and references.
50c46a0d 7617
50bbdbd9
AC
76182003-04-04 Andrew Cagney <cagney@redhat.com>
7619
7620 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7621 ID to NULL.
7622
36018d2e
AF
76232003-04-01 Adam Fedor <fedor@gnu.org>
7624
7625 * gdb/objc-lang.c (selectors_info): Replace calls to
7626 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7627 SYMBOL_NATURAL_NAME.
7628 (classes_info, find_methods): Likewise.
7629
35cec841
KB
76302003-04-03 Kevin Buettner <kevinb@redhat.com>
7631
7632 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7633 ``mach'' to the value determined by bfd_default_set_arch_mach().
7634
43136899
BR
76352003-04-02 Bob Rossi <bob_rossi@cox.net>
7636
7637 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7638 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7639 (mi-cmd-file.o): Update dependencies.
7640
040b99fd
KB
76412003-04-01 Kevin Buettner <kevinb@redhat.com>
7642
7643 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7644 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7645
9a3d7dfd
AF
76462003-04-01 Adam Fedor <fedor@gnu.org>
7647
7648 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7649 * language.h (struct language_defn): Add la_demangle.
7650 (language_demangle): Declare.
7651 * language.c (language_demangle): New function.
7652 (unk_lang_demangle): Likewise.
7653 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7654 Add ukn_lang_demangle.
9a3d7dfd 7655 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7656 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7657 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7658 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7659 * jv-lang.c (java_demangle): New function
7660 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7661 * objc-lang.c (objc_demangle): Add options argument
7662 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7663 * maint.c (maintenance_demangle): Replace switch with
7664 call to language_demangle.
7665 * utils.c (fprintf_symbol_filtered): Likewise.
7666
5e074003
AC
76672003-04-01 Andrew Cagney <cagney@redhat.com>
7668
7669 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7670 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7671 PRINT_TYPELESS_INTEGER.
7672 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7673 PUSH_RETURN_ADDRESS.
7674
270cb5d6
AC
76752003-04-01 Andrew Cagney <cagney@redhat.com>
7676
7677 * Makefile.in (d10v-tdep.o): Update dependencies.
7678 * d10v-tdep.c: Include "frame-base.h".
7679 (d10v_frame_unwind): Make constant.
7680 (d10v_frame_base_address): New function.
7681 (d10v_frame_base): New variable.
7682 (d10v_gdbarch_init): Set frame_base default.
7683 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7684 comment for base.
7685 (d10v_frame_unwind_cache): Set and use "prev_sp".
7686 (d10v_frame_this_id): Use the previous frame's inner most stack
7687 address and this frame's func address for the frame ID. Use
7688 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7689
6bfb3e36
AC
76902003-04-01 Andrew Cagney <cagney@redhat.com>
7691
7692 * frame.h (get_frame_locals_address, get_frame_args_address):
7693 Refer to the base address, instead of the address of the first
7694 local or parameter.
8ffd9b1b 7695
da62e633
AC
76962003-04-01 Andrew Cagney <cagney@redhat.com>
7697
7698 Add frame debug info addresses:
7699 * frame-base.c: New file.
7700 * frame-base.h: New file.
7701 * frame.h (struct frame_base): Add opaque declaration.
7702 (get_frame_base): Update comment.
7703 (get_frame_base_address): Declare.
7704 (get_frame_locals_address): Declare.
7705 (get_frame_args_address): Declare.
7706 (struct frame_info): Add "base" and "base_cache". Update
7707 comments on the unwinder.
7708 * frame.c: Include "frame-base.h".
7709 (get_frame_locals_address): New function.
7710 (get_frame_base_address): New function.
7711 (get_frame_args_address): New function.
7712 * findvar.c (read_var_value): Use get_frame_locals_address and
7713 get_frame_args_address.
7714 * stack.c (frame_info): Use get_frame_locals_address and
7715 get_frame_args_address.
7716 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7717 moved to "frame-base.c".
7718 * printcmd.c (print_frame_nameless_args): Ditto.
7719 * symtab.h (address_class): Update comments.
7720 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7721 get_frame_base_address.
7722 * dwarf2expr.c (execute_stack_op): Ditto.
7723 * Makefile.in (frame_base_h): Define.
7724 (frame.o): Update dependencies.
7725 (frame-base.o): Add dependencies.
7726 (SFILES): Add frame-base.c.
7727 (COMMON_OBS): Add frame-base.o.
7728
3d30e9c2
AC
77292003-04-01 Andrew Cagney <cagney@redhat.com>
7730
7731 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7732 CALL_DUMMY_LENGTH): Ditto.
7733 * gdbarch.c: Re-generate.
7734 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7735 (CALL_DUMMY_LENGTH): Delete macro.
7736 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7737 * arm-tdep.c (arm_gdbarch_init): Ditto.
7738 * avr-tdep.c (avr_gdbarch_init): Ditto.
7739 * cris-tdep.c (cris_gdbarch_init): Ditto.
7740 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7741 * frv-tdep.c (frv_gdbarch_init): Ditto.
7742 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7743 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7744 * i386-tdep.c (i386_gdbarch_init): Ditto.
7745 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7746 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7747 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7748 * mips-tdep.c (mips_gdbarch_init): Ditto.
7749 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7750 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7751 * s390-tdep.c (s390_gdbarch_init): Ditto.
7752 * sh-tdep.c (sh_gdbarch_init): Ditto.
7753 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7754 * v850-tdep.c (v850_gdbarch_init): Ditto.
7755 * vax-tdep.c (vax_gdbarch_init): Ditto.
7756 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7757
ce0c7262
CV
77582003-04-01 Corinna Vinschen <vinschen@redhat.com>
7759
7760 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7761
73dd234f
AC
77622003-04-01 Andrew Cagney <cagney@redhat.com>
7763
7764 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7765 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7766 * gdbarch.h, gdbarch.c: Re-generate.
7767 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7768 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7769 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7770 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7771 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7772 * infcmd.c (run_stack_dummy): Simplify assuming
7773 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7774 * infrun.c (handle_inferior_event): Ditto.
7775 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7776 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7777 * arm-tdep.c (arm_gdbarch_init): Ditto.
7778 * avr-tdep.c (avr_gdbarch_init): Ditto.
7779 * cris-tdep.c (cris_gdbarch_init): Ditto.
7780 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7781 * frv-tdep.c (frv_gdbarch_init): Ditto.
7782 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7783 * i386-tdep.c (i386_gdbarch_init): Ditto.
7784 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7785 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7786 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7787 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7788 * mips-tdep.c (mips_gdbarch_init): Ditto.
7789 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7790 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7791 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7792 * s390-tdep.c (s390_gdbarch_init): Ditto.
7793 * sh-tdep.c (sh_gdbarch_init): Ditto.
7794 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7795 * v850-tdep.c (v850_gdbarch_init): Ditto.
7796 * vax-tdep.c (vax_gdbarch_init): Ditto.
7797 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7798
97606a13
DJ
77992003-04-01 Daniel Jacobowitz <drow@mvista.com>
7800
7801 * symfile.c (symfile_relocate_debug_section): Update call to
7802 bfd_simple_get_relocated_section_contents.
7803
e8ab51f7
AC
78042003-03-31 Andrew Cagney <cagney@redhat.com>
7805
7806 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7807 * gdbarch.h, gdbarch.c: Regenerate.
7808 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7809 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7810 available.
7811 * frame.h (generic_fix_call_dummy): Delete declaration.
7812 * dummy-frame.h: Update comment.
7813 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7814 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7815 fix_call_dummy.
7816 * sh-tdep.c (sh_gdbarch_init): Ditto.
7817 * s390-tdep.c (s390_gdbarch_init): Ditto.
7818 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7819 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7820 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7821 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7822 * i386-tdep.c (i386_gdbarch_init): Ditto.
7823 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7824 * frv-tdep.c (frv_gdbarch_init): Ditto.
7825 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7826 * cris-tdep.c (cris_gdbarch_init): Ditto.
7827 * avr-tdep.c (avr_gdbarch_init): Ditto.
7828 * arm-tdep.c (arm_gdbarch_init): Ditto.
7829
018d1b48
JB
78302003-03-31 J. Brobecker <brobecker@gnat.com>
7831
7832 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7833 (INIT_FRAME_AP): Likewise.
7834 (EXTRA_FRAME_INFO): Likewise.
7835
e9a2674e
AC
78362003-03-31 Andrew Cagney <cagney@redhat.com>
7837
7838 * gdbarch.sh: Include "symfile.h".
7839 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7840 * gdbarch.h, gdbarch.c: Re-generate.
7841 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7842 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7843 call_dummy_address, the default is at entry_point_address.
7844 * v850-tdep.c (v850_gdbarch_init): Ditto.
7845 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7846 * sh-tdep.c (sh_gdbarch_init): Ditto.
7847 * s390-tdep.c (s390_gdbarch_init): Ditto.
7848 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7849 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7850 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7851 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7852 * i386-tdep.c (i386_gdbarch_init): Ditto.
7853 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7854 * frv-tdep.c (frv_gdbarch_init): Ditto.
7855 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7856 * cris-tdep.c (cris_gdbarch_init): Ditto.
7857 * arm-tdep.c (arm_gdbarch_init): Ditto.
7858
e8a8712a
AC
78592003-03-31 Andrew Cagney <cagney@redhat.com>
7860
7861 * gdbarch.sh (CALL_DUMMY_P): Delete.
7862 * gdbarch.h, gdbarch.c: Re-generate.
7863 * inferior.h (CALL_DUMMY_P): Delete macro.
7864 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7865 * vax-tdep.c (vax_gdbarch_init): Update.
7866 * v850-tdep.c (v850_gdbarch_init): Update.
7867 * sparc-tdep.c (sparc_gdbarch_init): Update.
7868 * sh-tdep.c (sh_gdbarch_init): Update.
7869 * s390-tdep.c (s390_gdbarch_init): Update.
7870 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7871 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7872 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7873 * mips-tdep.c (mips_gdbarch_init): Update.
7874 * mcore-tdep.c (mcore_gdbarch_init): Update.
7875 * m68k-tdep.c (m68k_gdbarch_init): Update.
7876 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7877 * ia64-tdep.c (ia64_gdbarch_init): Update.
7878 * i386-tdep.c (i386_gdbarch_init): Update.
7879 * h8300-tdep.c (h8300_gdbarch_init): Update.
7880 * frv-tdep.c (frv_gdbarch_init): Update.
7881 * d10v-tdep.c (d10v_gdbarch_init): Update.
7882 * cris-tdep.c (cris_gdbarch_init): Update.
7883 * breakpoint.c (deprecated_frame_in_dummy): Update.
7884 * avr-tdep.c (avr_gdbarch_init): Update.
7885 * alpha-tdep.c (alpha_gdbarch_init): Update.
7886 * arm-tdep.c (arm_gdbarch_init): Update.
7887 * dummy-frame.c (dummy_frame_this_id): Update comments.
7888 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7889 * frame.c (legacy_get_prev_frame): Ditto.
7890 * valops.c (call_function_by_hand): Delete function.
7891 (hand_function_call): Rename to call_function_by_hand
7892
ed234cf8
AC
78932003-03-30 Andrew Cagney <cagney@redhat.com>
7894
7895 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 7896 * value.h (struct value): Update comment.
ed234cf8 7897
06c77151
AC
78982003-03-30 Andrew Cagney <cagney@redhat.com>
7899
6c2b5168
AC
7900 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7901 D10V_FP_REGNUM.
7902 (d10v_gdbarch_init): Do not set fp_regnum.
7903
06c77151
AC
7904 * frame.c (get_frame_base): Force ID initialization.
7905 (get_prev_frame): Move computation of the frame ID from here ...
7906 (get_frame_id): ... to here.
7907 (legacy_get_prev_frame): Mark the frame ID as valid.
7908 * frame.h (struct frame_info): Add field "id_p".
7909
97a1a11c
MK
79102003-03-30 Mark Kettenis <kettenis@gnu.org>
7911
7912 * i386-tdep.c (i386_store_struct_return): Removed.
7913 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7914
6c0e89ed
AC
79152003-03-30 Andrew Cagney <cagney@redhat.com>
7916
7917 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7918 * gdbarch.h, gdbarch.c: Regenerate.
7919 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7920 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7921 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7922 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7923 * i386-tdep.c (i386_gdbarch_init): Ditto.
7924 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7925 * cris-tdep.c (cris_gdbarch_init): Ditto.
7926 * vax-tdep.c (vax_gdbarch_init): Ditto.
7927 * s390-tdep.c (s390_gdbarch_init): Ditto.
7928 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7929 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7930 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7931 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7932 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7933 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7934 * sparc-tdep.c (sparc_gdbarch_init): Update.
7935 * sh-tdep.c (sh_gdbarch_init): Update.
7936 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7937 * mips-tdep.c (mips_gdbarch_init): Update.
7938 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7939 * ia64-tdep.c (ia64_gdbarch_init): Update.
7940 * frv-tdep.c (frv_gdbarch_init): Update.
7941 * avr-tdep.c (avr_gdbarch_init): Update.
7942 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7943 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7944 instead of when push_dummy_call is not available.
8ffd9b1b 7945
f7dd6af2
AC
79462003-03-30 Andrew Cagney <cagney@redhat.com>
7947
7948 * infttrace.c: Include "gdbthread.h".
7949 (parent_attach_all): Fix function signature.
7950 (call_ptrace): Update call.
7951 * Makefile.in (infttrace.o): Update dependencies.
7952
28f617b3
AC
79532003-03-30 Andrew Cagney <cagney@redhat.com>
7954
7955 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7956 PUSH_RETURN_ADDRESS.
7957 * gdbarch.h, gdbarch.c: Regenerate.
7958 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7959 * x86-64-tdep.c (x86_64_init_abi): Update.
7960 * v850-tdep.c (v850_gdbarch_init): Update.
7961 * sparc-tdep.c (sparc_gdbarch_init): Update.
7962 * sh-tdep.c (sh_gdbarch_init): Update.
7963 * s390-tdep.c (s390_gdbarch_init): Update.
7964 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7965 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7966 * mips-tdep.c (mips_gdbarch_init): Update.
7967 * mcore-tdep.c (mcore_gdbarch_init): Update.
7968 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7969 * ia64-tdep.c (ia64_gdbarch_init): Update.
7970 * i386-tdep.c (i386_gdbarch_init): Update.
7971 * h8300-tdep.c (h8300_gdbarch_init): Update.
7972 * frv-tdep.c (frv_gdbarch_init): Update.
7973 * cris-tdep.c (cris_gdbarch_init): Update.
7974 * avr-tdep.c (avr_gdbarch_init): Update.
7975 * arm-tdep.c (arm_gdbarch_init): Update.
7976 * valops.c (hand_function_call): Update.
7977
4d628cd7
AC
79782003-03-29 Andrew Cagney <cagney@redhat.com>
7979
7980 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7981 sizeof_call_dummy_words.
7982 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7983 define.
7984 * gdbarch.h: Regenerate.
8ffd9b1b 7985
65e82032
AC
79862003-03-29 Andrew Cagney <cagney@redhat.com>
7987
7988 * infttrace.h: New file.
7989 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7990 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7991 (hpread_read_doc_function_type): Detect an initialized type1.
7992 (hpread_quick_traverse): Initialize mod_name_string.
7993 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7994 (som_solib_get_solib_by_pc): Declare.
7995 (so_lib_thread_start_addr): Declare.
7996 (no_shared_libraries): Declare.
7997 * somread.c (init_import_symbols): Make static. Add forward
7998 declaration.
7999 * config/pa/nm-hppah.h: Include "infttrace.h" for
8000 parent_attach_all.
8001 (hppa_insert_hw_watchpoint): Declare.
8002 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8003 * hppah-nat.c: Include "gdb_string.h".
8004 (parent_attach_all): Delete extern declaration, moved to
8005 "infttrace.h".
8006 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8007 int.
8008 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8009 * Makefile.in (infttrace_h): Define.
8010 (hpread.o): Update dependencies.
8011 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8012 * hppa-hpux-tdep.c: Include "gdb_string.h".
8013 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8014 * infrun.c (handle_inferior_event): Always initialize
8015 stepped_after_stopped_by_watchpoint. Add default and remove
8016 fallthrough in switch statement.
8017 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8018 parameter to int.
8019 (hppa_remove_hw_watchpoint): Ditto.
8020
2c3bbe77
AC
80212003-03-29 Andrew Cagney <cagney@redhat.com>
8022
8023 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8024 offset.
8025
2dd604e7
RE
80262003-03-29 Richard Earnshaw <rearnsha@arm.com>
8027
8028 * arm-tdep.c (arm_push_arguments): Delete.
8029 (struct stack_item): New type.
8030 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8031 (arm_store_struct_return): Delte.
8032 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8033 arm_push_arguments or arm_store_struct_return.
8034
e8933a55
AC
80352003-03-28 Andrew Cagney <cagney@redhat.com>
8036
8037 * Makefile.in (d10v-tdep.o): Update dependencies.
8038 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8039 * d10v-tdep.c: Include "remote.h".
8040 (target_resume_hook): Delete extern declaration.
8041 (target_wait_loop_hook): Ditto.
8042 (tdisassemble_command): Eliminate assignment in "if" conditional.
8043 (d10v_ts2_register_sim_regno): Eliminate call to
8044 legacy_register_sim_regno.
8045 (d10v_ts3_register_sim_regno): Ditto.
8046
6949171e
JJ
80472003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8048
8049 * thread.c: Reindented.
8050 * lin-lwp.c: Ditto.
8051 * linux-proc.c: Ditto.
8052
98c7071f
BR
80532003-03-28 Bob Rossi <bob_rossi@cox.net>
8054
fbe586ae 8055 * MAINTAINERS (write after approval): Add myself.
98c7071f 8056
5edc9ca6
TR
80572003-03-27 Theodore A. Roth <troth@openavr.org>
8058
8059 * objc-exp.y: Add missing semi-colons.
8060
378bfd1b
AC
80612003-03-27 Andrew Cagney <cagney@redhat.com>
8062
8063 * regcache.c (write_sp): Delete function and references.
8064 * inferior.h (write_sp): Delete declaration.
8065 * valops.c (hand_function_call): Replace write_sp with
8066 TARGET_WRITE_SP.
8067 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8068 (sparc_pop_frame): Ditto.
8ffd9b1b 8069
56056df7
AC
80702003-03-27 Andrew Cagney <cagney@redhat.com>
8071
8072 * NEWS: Mention removal of support for hppa*-*-bsd* and
8073 hppa*-*-osf* natives, and hppa*-*-pro* target.
8074 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8075 * config/pa/xm-pa.h: Obsolete file.
8076 * config/pa/xm-hppab.h: Obsolete file.
8077 * config/pa/nm-hppab.h: Obsolete file.
8078 * config/pa/tm-hppab.h: Obsolete file.
8079 * config/pa/tm-hppao.h: Obsolete file.
8080 * config/pa/nm-hppao.h: Obsolete file.
8081 * config/pa/tm-pro.h: Obsolete file.
8082 * config/pa/hppaosf.mt: Obsolete file.
8083 * config/pa/hppaosf.mh: Obsolete file.
8084 * config/pa/hppapro.mt: Obsolete file.
8085 * config/pa/hppabsd.mt: Obsolete file.
8086 * config/pa/hppabsd.mh: Obsolete file.
8087 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8088 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8089 hppa*-*-osf*.
8090
5873a88d
AC
80912003-03-27 Andrew Cagney <cagney@redhat.com>
8092
8093 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8094 push_arguments. Don't set push_return_address or write_sp.
8095 (d10v_push_dummy_call): Replace d10v_push_arguments.
8096 (d10v_push_return_address, d10v_write_sp): Delete function,
8097 handled by push_dummy_call.
8098
b81774d8
AC
80992003-03-26 Andrew Cagney <cagney@redhat.com>
8100
8101 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8102 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8103 regcache and dummy_addr parameters.
8104 * gdbarch.h, gdbarch.c: Re-generate.
8105 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8106 available; assume it will handle stack alignment and return
8107 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8108 legacy_push_arguments.
8109 (legacy_push_arguments): Rename default_push_arguments.
8110 * value.h (legacy_push_arguments): Rename default_push_arguments.
8111 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8112 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8113 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8114 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8115 * config/i386/tm-symmetry.h: Update.
8116 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8117 * x86-64-tdep.c (x86_64_init_abi): Update.
8118 * v850-tdep.c (v850_gdbarch_init): Update.
8119 * sparc-tdep.c (sparc_gdbarch_init): Update.
8120 * sh-tdep.c (sh_gdbarch_init): Update.
8121 * s390-tdep.c (s390_gdbarch_init): Update.
8122 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8123 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8124 * mips-tdep.c (mips_gdbarch_init): Update.
8125 * mcore-tdep.c (mcore_gdbarch_init): Update.
8126 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8127 * ia64-tdep.c (ia64_gdbarch_init): Update.
8128 * i386-tdep.c (i386_gdbarch_init): Update.
8129 * hppa-tdep.c (hppa_gdbarch_init): Update.
8130 * h8300-tdep.c (h8300_gdbarch_init): Update.
8131 * frv-tdep.c (frv_gdbarch_init): Update.
8132 * d10v-tdep.c (d10v_gdbarch_init): Update.
8133 * cris-tdep.c (cris_gdbarch_init): Update.
8134 * avr-tdep.c (avr_gdbarch_init): Update.
8135 * arm-tdep.c (arm_gdbarch_init): Update.
8136 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8137 * alpha-tdep.c (alpha_gdbarch_init): Update.
8138
f541410f
DJ
81392003-03-26 Daniel Jacobowitz <drow@mvista.com>
8140
8141 * signals/signals.c (do_target_signal_to_host): Correct realtime
8142 signal range test.
8143
69f567ae
DJ
81442003-03-26 Daniel Jacobowitz <drow@mvista.com>
8145
8146 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8147 (struct sal_chain, map_catch_names): Remove.
8148 (catch_exception_command_1): Don't call
8149 handle_gnu_4_16_catch_command.
8150
d5d14a5a
DJ
81512003-03-26 Daniel Jacobowitz <drow@mvista.com>
8152
8153 From Mark Dettinger <dettinge@de.ibm.com>:
8154 * dwarf2cfi.c (read_2u): Increment pointer by two.
8155
bdd73e22
DJ
81562003-03-26 Daniel Jacobowitz <drow@mvista.com>
8157
8158 * signals/signals.c: Fix typos in last change.
8159
960cb555
DJ
81602003-03-26 Daniel Jacobowitz <drow@mvista.com>
8161
8162 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8163 not already defined. Use __SIGRTMIN if available.
8164 (target_signal_from_host): Remove SIGRTMIN block.
8165 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8166 the signal is within the realtime range.
8167
f636b87d
AF
81682003-03-25 Adam Fedor <fedor@gnu.org>
8169
8170 * Makefile.in (infrun.o): Add $(language_h)
8171 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8172 for language specific trampolines.
8173 * language.h (struct language_defn): Add skip_trampoline.
8174 (skip_language_trampoline): Declare.
8175 * language.c (unk_lang_trampoline, skip_language_trampoline):
8176 New functions.
8177 (unknown_language_defn, auto_language_defn, local_language_defn):
8178 Add ukn_lang_trampoline.
8179 * ada-lang.c (ada_language_defn): Add NULL for language
8180 specific skip_trampoline.
8181 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8182 scm-lang.c: Likewise.
8183 * objc-lang.c (objc_skip_trampoline): New function.
8184 (objc_language_defn): Add objc_skip_trampoline.
8185
28f617b3 81862003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
8187
8188 * frame.c (get_prev_frame): Delay validating a frame's ID -
8189 non-NULL, didn't go backwards - until an attempt to unwind it to
8190 the previous frame.
8191
f933a9c5
AC
81922003-03-25 Andrew Cagney <cagney@redhat.com>
8193
8194 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8195 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8196 * gdbarch.h, gdbarch.c: Re-generate.
8197 * config/sparc/tm-sparc.h
8198 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8199 * sparc-tdep.c (sparc_gdbarch_init): Set
8200 deprecated_extra_stack_alignment_needed.
8201 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8202 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8203 extra_stack_alignment_needed.
8204 * v850-tdep.c (v850_gdbarch_init): Ditto.
8205 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8206 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8207 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8208 * cris-tdep.c (cris_gdbarch_init): Ditto.
8209 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8210 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 8211
4183d812
AC
82122003-03-25 Andrew Cagney <cagney@redhat.com>
8213
8214 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8215 STORE_STRUCT_RETURN.
8216 * gdbarch.h, gdbarch.c: Regenerate.
8217 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8218 (d10v_push_arguments): Set the struct return register.
8219 (d10v_gdbarch_init): Update.
8220 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8221 * x86-64-tdep.c (x86_64_init_abi): Update.
8222 * vax-tdep.c (vax_gdbarch_init): Update.
8223 * v850-tdep.c (v850_gdbarch_init): Update.
8224 * sparc-tdep.c (sparc_gdbarch_init): Update.
8225 * sh-tdep.c (sh_gdbarch_init): Update.
8226 * s390-tdep.c (s390_gdbarch_init): Update.
8227 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8228 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8229 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8230 * mips-tdep.c (mips_gdbarch_init): Update.
8231 * mcore-tdep.c (mcore_gdbarch_init): Update.
8232 * m68k-tdep.c (m68k_gdbarch_init): Update.
8233 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8234 * ia64-tdep.c (ia64_gdbarch_init): Update.
8235 * i386-tdep.c (i386_gdbarch_init): Update.
8236 * hppa-tdep.c (hppa_gdbarch_init): Update.
8237 * h8300-tdep.c (h8300_gdbarch_init): Update.
8238 * frv-tdep.c (frv_gdbarch_init): Update.
8239 * cris-tdep.c (cris_gdbarch_init): Update.
8240 * avr-tdep.c (avr_gdbarch_init): Update.
8241 * arm-tdep.c (arm_gdbarch_init): Update.
8242 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8243
1bf6d5cc
AC
82442003-03-25 Andrew Cagney <cagney@redhat.com>
8245
8246 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8247 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8248 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8249 * gdbarch.h, gdbarch.c: Regenerate.
8250 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8251 call_dummy_stack_adjust_p.
8252 * vax-tdep.c (vax_gdbarch_init): Ditto.
8253 * v850-tdep.c (v850_gdbarch_init): Ditto.
8254 * sh-tdep.c (sh_gdbarch_init): Ditto.
8255 * s390-tdep.c (s390_gdbarch_init): Ditto.
8256 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8257 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8258 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8259 * mips-tdep.c (mips_gdbarch_init): Ditto.
8260 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8261 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8262 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8263 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8264 * i386-tdep.c (i386_gdbarch_init): Ditto.
8265 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8266 * frv-tdep.c (frv_gdbarch_init): Ditto.
8267 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8268 * cris-tdep.c (cris_gdbarch_init): Ditto.
8269 * avr-tdep.c (avr_gdbarch_init): Ditto.
8270 * arm-tdep.c (arm_gdbarch_init): Ditto.
8271 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8272 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8273 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8274 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8275 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8276 call_dummy_stack_adjust_p.
8277 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8278 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8279 * sparc-tdep.c (sparc32_push_arguments): Update.
8280 * valops.c (hand_function_call): Update.
8281
71c08af0
CV
82822003-03-25 Corinna Vinschen <vinschen@redhat.com>
8283
8284 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8285 set_gdbarch_char_signed.
8286
30757f90
RE
82872003-03-25 Richard Earnshaw <rearnsha@arm.com>
8288
8289 PR cli/548
8290 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8291
03d48a7d
RE
82922003-03-25 Richard Earnshaw <rearnsha@arm.com>
8293
8294 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8295 (_initialize_arm_tdep): Don't set tm_print_insn.
8296
2cf6873c
AF
82972003-03-24 Adam Fedor <fedor@gnu.org>
8298
8299 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8300 * objc-lang.h: Add multiple inclusion protection.
8301 (start_msglist, add_msglist, end_msglist): Additional declarations.
8302
17c0759e
RE
83032003-03-24 Richard Earnshaw <rearnsha@arm.com>
8304
8305 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8306 value was renamed to ARM_FLOAT_SOFT_FPA.
8307
618ce49f
AC
83082003-03-23 Andrew Cagney <cagney@redhat.com>
8309
8310 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8311 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8312 * gdbarch.h, gdbarch.c: Regenerate.
8313 * valops.c (hand_function_call): Update.
8314 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8315 * frame.c (legacy_saved_regs_this_id): Update.
8316 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8317 * dummy-frame.h: Update.
8318 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8319 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8320 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8321 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8322 * config/m68k/tm-sun3.h: Update.
8323 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8324 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8325 * x86-64-tdep.c (x86_64_init_abi): Update.
8326 * vax-tdep.c (vax_gdbarch_init): Update.
8327 * v850-tdep.c (v850_gdbarch_init): Update.
8328 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8329 * sh-tdep.c (sh_gdbarch_init): Update.
8330 * s390-tdep.c (s390_gdbarch_init): Update.
8331 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8332 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8333 (frame_get_saved_regs): Update.
8334 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8335 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8336 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8337 * mips-tdep.c (mips_gdbarch_init): Update.
8338 * mcore-tdep.c (mcore_gdbarch_init): Update.
8339 * m68k-tdep.c (m68k_gdbarch_init): Update.
8340 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8341 * ia64-tdep.c (ia64_gdbarch_init): Update.
8342 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8343 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8344 (i386_interix_back_one_frame): Update.
8345 * hppa-tdep.c (hppa_gdbarch_init): Update.
8346 (hppa_init_extra_frame_info): Update.
8347 * h8300-tdep.c (h8300_gdbarch_init): Update.
8348 * frv-tdep.c (frv_gdbarch_init): Update.
8349 * cris-tdep.c (cris_gdbarch_init): Update.
8350 * avr-tdep.c (avr_gdbarch_init): Update.
8351 * arm-tdep.c (arm_gdbarch_init): Update.
8352 * alpha-tdep.c (alpha_gdbarch_init): Update.
8353
fd50bc42
RE
83542003-03-22 Richard Earnshaw <rearnsha@arm.com>
8355
8356 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8357 (arm_get_fp_model): Declare.
8358 * arm-tdep.c (fp_model_strings): New string array.
8359 (arm_fp_model, current_fp_model): New variables.
8360 (arm_get_fp_model): New function.
8361 (arm_set_fp): New function.
8362 (set_fp_model_sfunc): New function.
8363 (show_fp_model): New function.
8364 (_initialize_arm_tdep): Add new command to set/show the FPU.
8365 (arm_extract_return_value): Use arm_get_fp_model.
8366 (arm_store_return_value): Likewise.
8367 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8368 to initialize the floating-point data types.
8369 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8370 model is FPA.
8371
26304000
RE
83722003-03-22 Richard Earnshaw <rearnsha@arm.com>
8373
8374 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8375 the current setting of each value.
8376 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8377 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8378 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8379 commands and add new version as subcommands of "set/show arm".
8380
afd7eef0
RE
83812003-03-22 Richard Earnshaw <rearnsha@arm.com>
8382
8383 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8384 (set_arm_command, show_arm_command): New functions.
8385 (_initialize_arm_tdep): Add them.
8386 (num_disassembly_options): Renamed from num_flavor_options.
8387 (valid_disassembly_styles): Renamed from valid_flavors.
8388 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8389 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8390 set_disassembly_flavor_sfunc.
8391 (set_disassembly_style): Renamed from set_disassembly_flavor.
8392 (arm_othernames): Updated.
8393 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8394 command. Add "set/show arm disassembly" commands. Deprecate
8395 "othernames" command.
8396
299a7944
RE
83972003-03-22 Richard Earnshaw <rearnsha@arm.com>
8398
8399 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8400 (arm-tdep.o): Depend on elf_arm_h.
8401
c1dac9e6
RE
84022003-03-22 Richard Earnshaw <rearnsha@arm.com>
8403
8404 * Makefile.in (coff_internal_h): Define.
8405 (arm-tdep.o): Update dependencies.
8406
2702d96c
RE
84072003-03-22 Richard Earnshaw <rearnsha@arm.com>
8408
8409 * arm-tdep.c (prologue_cache): Delete.
8410 (check_prologue_cache, save_prologue_cache): Delete.
8411 (arm_scan_prologue): Don't check or update the prologue_cache.
8412 (arm_gdb_arch_init): Don't initialize it.
8413 (_initialize_arm_tdep): Likewise.
8414
27d5d74b
SC
84152003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8416
8417 * MAINTAINERS (tui): Maintainer of tui code.
8418
1762d96d
CV
84192003-03-21 Corinna Vinschen <vinschen@redhat.com>
8420
8421 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8422 (i386-cygwin-tdep.o): Add dependencies.
8423 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8424 * i386-cygwin-tdep.c: New file.
8425 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8426 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8427
4c2e2391
AC
84282003-03-20 Andrew Cagney <cagney@redhat.com>
8429
f20d38b7
AC
8430 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8431 (handle_inferior_event): Remove code calling
8432 DYNAMIC_TRAMPOLINE_NEXTPC.
8433
0022b738
AC
8434 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8435 already has a full path.
8436
864dbc90
AC
8437 * main.c (gdb_main): Return 1.
8438 (captured_main): Call error to report an invalid interpreter.
8439
4c2e2391
AC
8440 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8441 * alpha-osf1-tdep.c: Include "gdb_string.h".
8442
5ef7553b
JB
84432003-03-19 J. Brobecker <brobecker@gnat.com>
8444
8445 Continuing work to convert the hppa targets to multiarch partial.
8446
8447 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8448 method, now that hppa_push_dummy_frame has a conformant prototype.
8449 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8450 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8451 for the switch to multiarch partial.
8452
7bde8967
KB
84532003-03-19 Kevin Buettner <kevinb@redhat.com>
8454
8455 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8456 when iss is issNull.
8457
b006a9e9
KB
84582003-03-18 Kevin Buettner <kevinb@redhat.com>
8459
8460 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8461 NUM_REGS bounds check.
8462
5e2e9765
KB
84632003-03-18 Kevin Buettner <kevinb@redhat.com>
8464
8465 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8466 * mips-tdep.c (gdb_assert.h): Include.
8467 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8468 (mips_register_name): Handle integer registers explicitly. Add
8469 bounds checking.
8470 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8471 (mips_lsi33k_reg_names): Don't list integer registers; they're
8472 handled by mips_register_name() now.
8473 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8474 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8475 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8476 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8477 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8478
a2867626
AC
84792003-03-18 Andrew Cagney <cagney@redhat.com>
8480
8481 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8482 a void pointer.
8483 * gdbtypes.h (print_scalar_formatted): Update declaration.
8484 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8485
06600e06
JB
84862003-03-18 J. Brobecker <brobecker@gnat.com>
8487
8488 * infrun.c (observer.h): Add #include.
8489 (normal_stop): Add call to observer_notify_normal_stop.
8490 * Makefile.in (infrun.o): Add dependency on observer.h.
8491
7daf4f5b
JB
84922003-03-18 J. Brobecker <brobecker@gnat.com>
8493
8494 Continuing work to convert the hppa targets to multiarch partial.
8495 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8496 parameter. Reformat comment.
8497 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8498 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8499 to match new profile.
8500
3371ccc0
JB
85012003-03-18 J. Brobecker <brobecker@gnat.com>
8502
8503 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8504 appear to be working in any case.
8505
4fbe891e
JB
85062003-03-18 J. Brobecker <brobecker@gnat.com>
8507
8508 * observer.c (observer_test_first_observer): New static variable.
8509 (observer_test_second_observer): Likewise.
8510 (observer_test_third_observer): Likewise.
8511 (observer_test_first_notification_function): New static function.
8512 (observer_test_second_notification_function): Likewise.
8513 (observer_test_third_notification_function): Likewise.
8514
a7ff40e7
JB
85152003-03-17 J. Brobecker <brobecker@gnat.com>
8516
8517 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8518 * somsolib.c (gdb_assert.h): Likewise.
8519 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8520 (somsolib.o): Likewise.
8521
26ca4152
AC
85222003-03-17 Andrew Cagney <cagney@redhat.com>
8523
8524 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8525 BFD. Simplify setting of di.endian.
8526
0a613259
AC
85272003-03-17 Andrew Cagney <cagney@redhat.com>
8528
8529 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8530 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8531
8532 From Elena Zannoni <ezannoni@redhat.com>
8533 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8534 vector and floating-point parameters.
8535 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8536 convention.
8537 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8538
1132738f
FN
85392003-03-17 Fernando Nasser <fnasser@redhat.com>
8540
8541 * MAINTAINERS: Remove my name from several maintainership roles.
8542
6dc42492
AC
85432003-03-17 Andrew Cagney <cagney@redhat.com>
8544
8545 Fix frame off-by-one bug.
8546 * frame-unwind.h (frame_this_id_ftype): Replace
8547 frame_unwind_id_ftype.
8548 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8549 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8550 with "prev_register".
8551 * frame-unwind.c (frame_unwind_find_by_pc): Return
8552 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8553 comment.
8554 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8555 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8556 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8557 (dummy_frame_unwind): Update.
8558 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8559 sentinel_frame_register_unwind.
8560 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8561 (sentinel_frame_unwinder): Update.
8562 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8563 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8564 * frame.c (create_sentinel_frame): Update. Initialize
8565 "prologue_cache" instead of "unwind_cache".
8566 (frame_register_unwind): Call this frame's prev_register with the
8567 next frame and this frame's prologue cache.
8568 (get_prev_frame): Simplify. Always call prev frame's this_id with
8569 this frame and prev frame's prologue cache. Document that this
8570 call is shifted one to the left when compared to the
8571 frame_register_unwind call.
8572 (legacy_saved_regs_prev_register): Replace
8573 frame_saved_regs_register_unwind.
8574 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8575 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8576 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8577 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8578 (d10v_frame_unwind): Update.
8579 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8580 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8581 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8582 "saved_regs" with "this_saved_regs".
8583
efd710d6
AC
85842003-03-16 Andrew Cagney <cagney@redhat.com>
8585
8586 * frame.c (frame_pop): Don't call target_store_registers. Fix
8587 problem reported by Mark Kettenis.
8588
4e259f09
MK
85892003-03-16 Mark Kettenis <kettenis@gnu.org>
8590
8591 * i386-tdep.c (i386_register_type): Renamed from
8592 i386_register_virtual_type. Adjust function signature.
8593 (i386_gdbarch_init): Set register_type instead of
8594 deprecated_max_register_raw_size,
8595 deprecated_max_register_virtual_size and register_virtual_type.
8596
055bb976
AC
85972003-03-14 Andrew Cagney <cagney@redhat.com>
8598
8599 * frame.c (get_prev_frame): When a legacy frame, always call
8600 legacy_get_prev_frame. Simplify unwind code using assumption that
8601 the unwinder is new.
8602 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8603 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8604 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8605
ac2adee5
AC
86062003-03-14 Andrew Cagney <cagney@redhat.com>
8607
8608 * frame.c (get_saved_register): Delete function.
8609 * frame.h (get_saved_register): Delete declaration.
8610 * xstormy16-tdep.c: Update comment.
8611 * regcache.h: Update comments.
8612 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8613 get_saved_register and extract_address, use
8614 frame_read_unsigned_register.
8615 (sparc_frame_saved_pc): Ditto.
8616 (sparc_get_saved_register): Instead of get_saved_register, use
8617 frame_register.
8618 (sparc_pop_frame): Ditto.
8619 * findvar.c: Update comments.
8620 (value_of_register): Call frame_register instead of
8621 get_saved_register.
8622 (value_from_register): Ditto.
8623 * config/sparc/tm-sparc.h: Update comment.
8624 * breakpoint.c: Update comment.
8625
129c1cd6
AC
86262003-03-14 Andrew Cagney <cagney@redhat.com>
8627
8628 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8629 GET_SAVED_REGISTER.
8630 * gdbarch.h, gdbarch.c: Re-generate.
8631 * frame.h: Update comments.
8632 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8633 * x86-64-tdep.c (x86_64_init_abi): Update.
8634 * sparc-tdep.c (sparc_gdbarch_init): Update.
8635 * sh-tdep.c (sh_gdbarch_init): Update.
8636 * mips-tdep.c (mips_gdbarch_init): Update.
8637 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8638 * cris-tdep.c (cris_gdbarch_init): Update.
8639 * ia64-tdep.c (ia64_gdbarch_init): Update.
8640 * frame.c (frame_register): Update.
8641 (get_saved_register): Update.
8642 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8643
749b82f6
AC
86442003-03-13 Andrew Cagney <cagney@redhat.com>
8645
8646 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8647 * gdbarch.h, gdbarch.c: Regenerate.
8648 * valops.c (hand_function_call): Update comment.
8649 * stack.c (return_command): Update comment.
8650 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8651 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8652 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8653 * x86-64-tdep.c (x86_64_init_abi): Update.
8654 * vax-tdep.c (vax_gdbarch_init): Update.
8655 * v850-tdep.c (v850_gdbarch_init): Update.
8656 * sparc-tdep.c (sparc_gdbarch_init): Update.
8657 * sh-tdep.c (sh_gdbarch_init): Update.
8658 * s390-tdep.c (s390_gdbarch_init): Update.
8659 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8660 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8661 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8662 * mips-tdep.c (mips_gdbarch_init): Update.
8663 * mcore-tdep.c (mcore_gdbarch_init): Update.
8664 * m68k-tdep.c (m68k_gdbarch_init): Update.
8665 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8666 * ia64-tdep.c (ia64_gdbarch_init): Update.
8667 * i386-tdep.c (i386_gdbarch_init): Update.
8668 * hppa-tdep.c (hppa_gdbarch_init): Update.
8669 * h8300-tdep.c (h8300_gdbarch_init): Update.
8670 * frv-tdep.c (frv_gdbarch_init): Update.
8671 * cris-tdep.c (cris_gdbarch_init): Update.
8672 * avr-tdep.c (avr_gdbarch_init): Update.
8673 * arm-tdep.c (arm_gdbarch_init): Update.
8674 * alpha-tdep.c (alpha_gdbarch_init): Update.
8675
1594fa56
AC
86762003-03-13 Andrew Cagney <cagney@redhat.com>
8677
8678 * frame.c (legacy_frame_p): New function.
8679 (get_prev_frame): Use legacy_frame_p.
8680 * frame.h (legacy_frame_p): Declare.
8681
7717fda3
V
86822003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8683
fbe586ae 8684 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8685 listing corrected.
8686
0c67cbe9
V
86872003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8688
fbe586ae 8689 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8690
03febf99
AC
86912003-03-12 Andrew Cagney <cagney@redhat.com>
8692
8693 * frame.c (get_prev_frame): Rename the frame parameter to
8694 "this_frame".
8695 (get_next_frame, legacy_get_prev_frame): Ditto.
8696
0a1e1ca1
AC
86972003-03-12 Andrew Cagney <cagney@redhat.com>
8698
8699 * frame.c (get_current_frame): Check target_has_registers before
8700 checking target_has_stack.
8701 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8702 instead of deprecated_selected_frame.
8703 * findvar.c (value_of_register): Pass "frame", not
8704 deprecated_selected_frame, to value_of_builtin_reg.
8705
a66a9c23
AC
87062003-03-12 Andrew Cagney <cagney@redhat.com>
8707
8708 * regcache.c (regcache_cooked_write_signed): New function.
8709 (regcache_cooked_write_unsigned): New function.
8710 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8711 (regcache_cooked_read_signed): Fix regnum in range assertion.
8712 * regcache.h (regcache_cooked_write_signed): Declare.
8713 (regcache_cooked_write_unsigned): Declare.
8714
8bedc050
AC
87152003-03-12 Andrew Cagney <cagney@redhat.com>
8716
8717 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8718 * gdbarch.h, gdbarch.c: Re-generate.
8719 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8720 * x86-64-tdep.h: Update.
8721 * x86-64-tdep.c (x86_64_init_abi): Update.
8722 * v850-tdep.c (v850_gdbarch_init): Update.
8723 * sparc-tdep.c (sparc_gdbarch_init): Update.
8724 * sh-tdep.c (sh_gdbarch_init): Update.
8725 * s390-tdep.c (s390_gdbarch_init): Update.
8726 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8727 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8728 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8729 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8730 * mips-tdep.c (mips_gdbarch_init): Update.
8731 * mcore-tdep.c (mcore_gdbarch_init): Update.
8732 * m68k-tdep.c (m68k_gdbarch_init): Update.
8733 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8734 * ia64-tdep.c (ia64_gdbarch_init): Update.
8735 * i386-tdep.c (i386_gdbarch_init): Update.
8736 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8737 * hppa-tdep.c (hppa_gdbarch_init): Update.
8738 * h8300-tdep.c (h8300_gdbarch_init): Update.
8739 * frv-tdep.c (frv_gdbarch_init): Update.
8740 * cris-tdep.c (cris_gdbarch_init): Update.
8741 * avr-tdep.c (avr_gdbarch_init): Update.
8742 * arm-tdep.c (arm_gdbarch_init): Update.
8743 * alpha-tdep.c (alpha_gdbarch_init): Update.
8744 * sh-tdep.c (sh_init_extra_frame_info): Update.
8745 (sh64_init_extra_frame_info): Update.
8746 * ns32knbsd-nat.c (frame_num_args): Update.
8747 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8748 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8749 (xstormy16_frame_chain_valid): Update.
8750 * vax-tdep.c (vax_saved_pc_after_call): Update.
8751 * v850-tdep.c (v850_frame_chain): Update.
8752 (v850_pop_frame): Update.
8753 (v850_init_extra_frame_info): Update.
8754 * sparc-tdep.c (setup_arbitrary_frame): Update.
8755 * ns32k-tdep.c (umax_frame_num_args): Update.
8756 * s390-tdep.c (s390_pop_frame_regular): Update.
8757 * mn10300-tdep.c (mn10300_frame_chain): Update.
8758 (mn10300_pop_frame_regular): Update.
8759 (mn10300_init_extra_frame_info): Update.
8760 * mips-tdep.c (mips_init_frame_pc_first): Update.
8761 (mips_frame_chain): Update.
8762 (mips_pop_frame): Update.
8763 * mcore-tdep.c (mcore_frame_chain): Update.
8764 (mcore_pop_frame): Update.
8765 (mcore_init_extra_frame_info): Update.
8766 * arch-utils.c (init_frame_pc_default): Update.
8767 * m68k-tdep.c (isi_frame_num_args): Update.
8768 (delta68_frame_num_args): Update.
8769 (news_frame_num_args): Update.
8770 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8771 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8772 (alpha_frame_chain): Update.
8773 (alpha_pop_frame): Update.
8774 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8775 (hppa_init_extra_frame_info): Update.
8776 (hppa_frame_chain): Update.
8777 (hppa_frame_chain_valid): Update.
8778 * cris-tdep.c (cris_init_extra_frame_info): Update.
8779 * avr-tdep.c (avr_init_extra_frame_info): Update.
8780 * arm-tdep.c (arm_frame_chain_valid): Update.
8781 (arm_init_extra_frame_info): Update.
8782 (arm_pop_frame): Update.
8783 * frame.c (frame_pc_unwind): Update.
8784 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8785 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8786 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8787 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8788 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8789 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8790
7a25a7c1
AC
87912003-03-12 Andrew Cagney <cagney@redhat.com>
8792
8793 Eliminate the need for POP_FRAME.
8794 * frame.c (do_frame_unwind_register): New function.
8795 (frame_pop): When no POP_FRAME, pop the frame using register
8796 unwind and a scratch regcache.
8797 (frame_saved_regs_pop): Delete function.
8798 (trad_frame_unwinder): Update.
8799 * d10v-tdep.c (d10v_frame_pop): Delete function.
8800 (d10v_frame_unwind): Update.
8801 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8802 (sentinel_frame_unwinder): Update.
8803 * dummy-frame.c (dummy_frame_pop): Delete function.
8804 (dummy_frame_unwind): Update.
8805 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8806 (struct frame_unwind): Update.
8807
2f38ef89
KB
88082003-03-11 Kevin Buettner <kevinb@redhat.com>
8809
8810 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8811 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8812 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8813 Do range checks on register number obtained from debugging info.
8814 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8815 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8816 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8817 mapping function.
8818 (do_fp_register_row): Fix typo which caused double type to be
8819 used when attempting to unpack a float.
8820
552f4abf
JB
88212003-03-11 J. Brobecker <brobecker@gnat.com>
8822
8823 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8824
e0d2ae16
AC
88252003-03-11 Andrew Cagney <cagney@redhat.com>
8826
8827 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8828 frame. Problem found by Corinna Vinschen.
8829
ddbfdd06
PM
88302003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8831
8832 * doublest.c (floatformat_from_length): Accept also
8833 the real size of 'long double' type.
8834
088b2ddc 88352003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 8836
088b2ddc 8837 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
8838 * breakpoint.c (bpstat_copy): Copy the command lines as well
8839 as the old value, to match what is freed in bpstat_clear.
8840
f56f77c1
DC
88412003-03-10 David Carlton <carlton@math.stanford.edu>
8842
8843 * minsyms.c (add_minsym_to_hash_table): Replace
8844 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8845 (compare_minimal_symbols, compact_minimal_symbols)
8846 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8847 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8848 of DEPRECATED_SYMBOL_MATCHES_NAME.
8849 (lookup_minimal_symbol_solib_trampoline): Ditto.
8850
5602984a
AC
88512003-03-10 Andrew Cagney <cagney@redhat.com>
8852
8853 * regcache.h (regcache_cooked_read_ftype): Define.
8854 (regcache_save, regcache_restore): Add a cooked_read parameter.
8855 * regcache.c (regcache_save, regcache_restore): Update.
8856 (do_cooked_read): New function.
8857 (regcache_cpy): Pass do_cooked_read to regcache_save and
8858 regcache_restore.
8859
8bedc050
AC
88602003-03-10 Andrew Cagney <cagney@redhat.com>
8861
8862 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8863 * gdbarch.h, gdbarch.c: Re-generate.
8864 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8865 * x86-64-tdep.h: Update.
8866 * x86-64-tdep.c (x86_64_init_abi): Update.
8867 * v850-tdep.c (v850_gdbarch_init): Update.
8868 * sparc-tdep.c (sparc_gdbarch_init): Update.
8869 * sh-tdep.c (sh_gdbarch_init): Update.
8870 * s390-tdep.c (s390_gdbarch_init): Update.
8871 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8872 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8873 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8874 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8875 * mips-tdep.c (mips_gdbarch_init): Update.
8876 * mcore-tdep.c (mcore_gdbarch_init): Update.
8877 * m68k-tdep.c (m68k_gdbarch_init): Update.
8878 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8879 * ia64-tdep.c (ia64_gdbarch_init): Update.
8880 * i386-tdep.c (i386_gdbarch_init): Update.
8881 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8882 * hppa-tdep.c (hppa_gdbarch_init): Update.
8883 * h8300-tdep.c (h8300_gdbarch_init): Update.
8884 * frv-tdep.c (frv_gdbarch_init): Update.
8885 * cris-tdep.c (cris_gdbarch_init): Update.
8886 * avr-tdep.c (avr_gdbarch_init): Update.
8887 * arm-tdep.c (arm_gdbarch_init): Update.
8888 * alpha-tdep.c (alpha_gdbarch_init): Update.
8889 * sh-tdep.c (sh_init_extra_frame_info): Update.
8890 (sh64_init_extra_frame_info): Update.
8891 * ns32knbsd-nat.c (frame_num_args): Update.
8892 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8893 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8894 (xstormy16_frame_chain_valid): Update.
8895 * vax-tdep.c (vax_saved_pc_after_call): Update.
8896 * v850-tdep.c (v850_frame_chain): Update.
8897 (v850_pop_frame): Update.
8898 (v850_init_extra_frame_info): Update.
8899 * sparc-tdep.c (setup_arbitrary_frame): Update.
8900 * ns32k-tdep.c (umax_frame_num_args): Update.
8901 * s390-tdep.c (s390_pop_frame_regular): Update.
8902 * mn10300-tdep.c (mn10300_frame_chain): Update.
8903 (mn10300_pop_frame_regular): Update.
8904 (mn10300_init_extra_frame_info): Update.
8905 * mips-tdep.c (mips_init_frame_pc_first): Update.
8906 (mips_frame_chain): Update.
8907 (mips_pop_frame): Update.
8908 * mcore-tdep.c (mcore_frame_chain): Update.
8909 (mcore_pop_frame): Update.
8910 (mcore_init_extra_frame_info): Update.
8911 * arch-utils.c (init_frame_pc_default): Update.
8912 * m68k-tdep.c (isi_frame_num_args): Update.
8913 (delta68_frame_num_args): Update.
8914 (news_frame_num_args): Update.
8915 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8916 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8917 (alpha_frame_chain): Update.
8918 (alpha_pop_frame): Update.
8919 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8920 (hppa_init_extra_frame_info): Update.
8921 (hppa_frame_chain): Update.
8922 (hppa_frame_chain_valid): Update.
8923 * cris-tdep.c (cris_init_extra_frame_info): Update.
8924 * avr-tdep.c (avr_init_extra_frame_info): Update.
8925 * arm-tdep.c (arm_frame_chain_valid): Update.
8926 (arm_init_extra_frame_info): Update.
8927 (arm_pop_frame): Update.
8928 * frame.c (frame_pc_unwind): Update.
8929 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8930 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8931 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8932 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8933 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8934 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8935
12cc2063
AC
89362003-03-10 Andrew Cagney <cagney@redhat.com>
8937
8938 * gdbarch.sh (gdbarch_unwind_pc): New method.
8939 * gdbarch.h, gdbarch.c: Regenerate.
8940 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8941 but use read_pc and FRAME_SAVED_PC as fall backs.
8942 (frame_saved_regs_pc_unwind): Delete function.
8943 (trad_frame_unwinder): Update.
8944 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8945 (struct frame_unwind): Update.
8946 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8947 (dummy_frame_unwind): Update.
8948 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8949 (sentinel_frame_unwinder): Update.
8950 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8951 (d10v_frame_unwind): Update.
8952 (d10v_unwind_pc): New function.
8953 (d10v_gdbarch_init): Set unwind_pc.
8954
ef840a37
AC
89552003-03-10 Andrew Cagney <cagney@redhat.com>
8956
a2ce2e56
AC
8957 * gdbarch.h: Re-generate.
8958
ef840a37
AC
8959 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8960 PC.
8961 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8962 the PC register.
8963
08f3424b
MK
89642003-03-08 Mark Kettenis <kettenis@gnu.org>
8965
8966 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8967
1248ede2
AC
89682003-03-08 Andrew Cagney <cagney@redhat.com>
8969
8970 * cli-out.c: Update copyright.
8971 (cli_out_data): Define typedef. Use instead of ui_out_data.
8972
f49bacc8
AC
89732003-03-08 Andrew Cagney <cagney@redhat.com>
8974
8975 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8976 the result.
8977
9b05f993
AC
89782003-03-07 Andrew Cagney <cagney@redhat.com>
8979
8980 * gdbarch.sh: Don't generate two macro definitions when an
8981 undefined macro taking no arguments.
8982 * gdbarch.h: Regenerate.
8ffd9b1b 8983
166f4c7b
ML
89842002-03-07 Michal Ludvig <mludvig@suse.cz>
8985
8986 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8987 (x86_64_unwind_dummy_id): New functions.
8988 (x86_64_init_abi): Register these two new functions.
8989
6d686a84
ML
89902003-03-07 Michal Ludvig <mludvig@suse.cz>
8991
8992 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 8993 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
8994 separate function.
8995 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8996
6314f104
AC
89972003-03-05 Andrew Cagney <cagney@redhat.com>
8998
8999 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9000 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9001 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9002 to use unwind_dummy_id when a dummy frame.
9003 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9004 predicate.
9005 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 9006
ceea5145
AC
90072003-03-05 Andrew Cagney <cagney@redhat.com>
9008
9009 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9010 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9011 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9012 values.
9013
0d843116
AC
90142003-03-05 Andrew Cagney <cagney@redhat.com>
9015
9016 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9017 (struct d10v_unwind_cache): Delete field "frameless". Replace
9018 "next_addr" with "sp_offset". Add "r11_offset".
9019 (d10v_frame_unwind_cache): Update.
9020 (prologue_find_regs): Update. When "mv r11, sp", save the
9021 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9022 RN was saved in r11_offset.
9023
b2579786
AC
90242003-03-05 Andrew Cagney <cagney@redhat.com>
9025
9026 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9027 cached PC value in the next frame.
9028
218e5956
AC
90292003-03-05 Andrew Cagney <cagney@redhat.com>
9030
9031 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9032 "id_unwind_cache" with "id".
9033 (frame_id_unwind): Delete declaration.
9034 * frame.c (frame_id_unwind): Delete function.
9035 (get_prev_frame): Call the frame id unwind method directly. Store
9036 the returned next frame's ID value in NEXT_FRAME. Note that there
9037 is a problem with the wrong unwind ID being called with the wrong
9038 unwind cache.
9039
ed363b1b
DJ
90402003-03-05 Daniel Jacobowitz <drow@mvista.com>
9041
9042 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9043
fe1f4a5e
DJ
90442003-03-05 James Ingham <jingham@apple.com>
9045 Daniel Jacobowitz <drow@mvista.com>
9046
9047 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9048 (auto_cp_abi): New variable.
9049 (current_cp_abi, num_cp_abis): Make static.
9050 (CP_ABI_MAX): Define.
9051 (cp_abis): Turn into an array.
9052 (value_virtual_fn_field): Fix formatting.
9053 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9054 takes a pointer.
9055 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9056 (list_cp_abis, _initialize_cp_abi): New functions.
9057 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9058 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9059 switch_to_cp_abi. Update prototype for register_cp_abi.
9060 * Makefile.in (cp-abi.o): Update dependencies.
9061 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9062 instead of switch_to_cp_abi.
9063 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9064 register_cp_abi.
9065 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9066 register_cp_abi.
9067 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9068
e4adbba9
DJ
90692003-03-05 Daniel Jacobowitz <drow@mvista.com>
9070
9071 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9072 * dwarf2loc.c: Include "regcache.h".
9073 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9074 register_size.
9075 * Makefile.in (dwarf2loc.o): Update dependencies.
9076
91ccbfc1
TR
90772003-03-04 Theodore A. Roth <troth@openavr.org>
9078
9079 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9080 number of io registers reported by remote target is not a multiple of
9081 step.
9082
3d4e8fd2
DC
90832003-03-04 David Carlton <carlton@math.stanford.edu>
9084
9085 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9086 (lookup_symbol_aux_psymtabs): Update call to
9087 lookup_partial_symbol.
9088 (lookup_transparent_type, find_main_psymtab)
9089 (make_symbol_overload_list): Ditto.
9090
ed42d87b
KH
90912003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9092
9093 * MAINTAINERS (Write after approval): Update my email address.
9094
a0ed5532
AC
90952003-03-03 Andrew Cagney <cagney@redhat.com>
9096
9097 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9098 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9099 predicate. Replace MAX_REGISTER_RAW_SIZE.
9100 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9101 MAX_REGISTER_VIRTUAL_SIZE.
9102 * regcache.c (legacy_max_register_raw_size): New function.
9103 (legacy_max_register_virtual_size): New function.
9104 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9105 (MAX_REGISTER_RAW_SIZE): Define.
9106 (legacy_max_register_raw_size): Declare.
9107 (legacy_max_register_virtual_size): Declare.
9108 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9109 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9110 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9111 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9112 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9113 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9114 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9115 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9116 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9117 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9118 * vax-tdep.c (vax_gdbarch_init): Update.
9119 * v850-tdep.c (v850_gdbarch_init): Update.
9120 * sparc-tdep.c (sparc_gdbarch_init): Update.
9121 * sh-tdep.c (sh_gdbarch_init): Update.
9122 * s390-tdep.c (s390_gdbarch_init): Update.
9123 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9124 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9125 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9126 * mips-tdep.c (mips_gdbarch_init): Update.
9127 * mcore-tdep.c (mcore_gdbarch_init): Update.
9128 * m68k-tdep.c (m68k_gdbarch_init): Update.
9129 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9130 * ia64-tdep.c (ia64_gdbarch_init): Update.
9131 * i386-tdep.c (i386_gdbarch_init): Update.
9132 * hppa-tdep.c (hppa_gdbarch_init): Update.
9133 * h8300-tdep.c (h8300_gdbarch_init): Update.
9134 * frv-tdep.c (frv_gdbarch_init): Update.
9135 * cris-tdep.c (cris_gdbarch_init): Update.
9136 * avr-tdep.c (avr_gdbarch_init): Update.
9137 * arm-tdep.c (arm_gdbarch_init): Update.
9138 * alpha-tdep.c (alpha_gdbarch_init): Update.
9139 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9140 max_register_raw_size or max_register_virtual_size.
9141
8e437497
DC
91422003-03-03 David Carlton <carlton@math.stanford.edu>
9143
9144 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9145 SYMBOL_MATCHES_NAME, add comment.
9146 (SYMBOL_MATCHES_NATURAL_NAME): New.
9147 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9148 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9149 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9150 * symtab.c (lookup_partial_symbol): Use
9151 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9152 unhelpful comment.
9153 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9154 SYMBOL_MATCHES_NAME.
9155 Fix for PR c++/33.
9156
25120b0d
DC
91572003-03-03 David Carlton <carlton@math.stanford.edu>
9158
9159 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9160 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9161 by regexp matching against SYMBOL_NATURAL_NAME.
9162
78a11fb4
DC
91632003-03-03 David Carlton <carlton@math.stanford.edu>
9164
9165 * linespec.c (find_method): Extract code into collect_methods.
9166 (collect_methods): New.
9167
645dd519
MK
91682003-03-02 Mark Kettenis <kettenis@gnu.org>
9169
b4700d91
MK
9170 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9171 get_frame_base.
9172
645dd519
MK
9173 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9174 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9175
0aa7e1aa
SC
91762003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9177
8ffd9b1b 9178 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
9179 and not regnum when summing the size of all registers up to regnum.
9180
f30ee0bc
AC
91812003-03-01 Andrew Cagney <cagney@redhat.com>
9182
9183 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9184 FRAME_INIT_SAVED_REGS.
9185 * gdbarch.h, gdbarch.c: Regenerate.
9186 * stack.c (frame_info): Update.
9187 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9188 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9189 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9190 * ns32k-tdep.c (ns32k_pop_frame): Update.
9191 * mips-tdep.c (mips_pop_frame): Update.
9192 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9193 * ia64-tdep.c (ia64_frame_chain): Update.
9194 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9195 (ia64_frameless_function_invocation): Update.
9196 (ia64_init_extra_frame_info): Update.
9197 (ia64_pop_frame_regular): Update.
9198 * frame.h (struct frame_info): Update comment.
9199 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9200 * frame.c (frame_saved_regs_register_unwind): Update.
9201 (frame_saved_regs_register_unwind): Update.
9202 (deprecated_generic_get_saved_register): Update.
9203 * cris-tdep.c: Update comment.
9204 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9205 Rename macro.
9206 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9207 * x86-64-tdep.c (x86_64_init_abi): Update.
9208 * vax-tdep.c (vax_gdbarch_init): Update.
9209 * v850-tdep.c (v850_gdbarch_init): Update.
9210 * sparc-tdep.c (sparc_gdbarch_init): Update.
9211 * sh-tdep.c (sh_gdbarch_init): Update.
9212 * s390-tdep.c (s390_gdbarch_init): Update.
9213 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9214 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9215 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9216 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9217 * mips-tdep.c (mips_gdbarch_init): Update.
9218 * mcore-tdep.c (mcore_gdbarch_init): Update.
9219 * m68k-tdep.c (m68k_gdbarch_init): Update.
9220 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9221 * ia64-tdep.c (ia64_gdbarch_init): Update.
9222 * i386-tdep.c (i386_gdbarch_init): Update.
9223 * frv-tdep.c (frv_gdbarch_init): Update.
9224 * avr-tdep.c (avr_gdbarch_init): Update.
9225 * arm-tdep.c (arm_gdbarch_init): Update.
9226 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9227
42fa7c0f
AC
92282003-03-01 Andrew Cagney <cagney@redhat.com>
9229
9230 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9231 option enum and switch. When no windows, set the interpreter to
9232 INTERP_CONSOLE.
8ffd9b1b 9233
49c7e338
AC
92342003-03-01 Andrew Cagney <cagney@redhat.com>
9235
9236 * main.c (captured_main): Replace magic option characters with an
9237 enum.
9238
e9582e71
AC
92392003-03-01 Andrew Cagney <cagney@redhat.com>
9240
9241 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9242 INIT_EXTRA_FRAME_INFO.
9243 * gdbarch.h, gdbarch.c: Regenerate.
9244 * arm-tdep.c: Update comments.
9245 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9246 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9247 * frame.h, avr-tdep.c: Ditto.
9248 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9249 (create_new_frame, legacy_get_prev_frame): Ditto.
9250 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9251 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9252 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9253 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9254 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9255 * v850-tdep.c (v850_gdbarch_init): Ditto.
9256 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9257 * sh-tdep.c (sh_gdbarch_init): Ditto.
9258 * s390-tdep.c (s390_gdbarch_init): Ditto.
9259 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9260 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9261 * mips-tdep.c (mips_gdbarch_init): Ditto.
9262 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9263 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9264 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9265 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9266 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9267 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9268 * frv-tdep.c (frv_gdbarch_init): Ditto.
9269 * cris-tdep.c (cris_gdbarch_init): Ditto.
9270 * avr-tdep.c (avr_gdbarch_init): Ditto.
9271 * arm-tdep.c (arm_gdbarch_init): Ditto.
9272 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9273 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9274
35cac7cf
AC
92752003-03-01 Andrew Cagney <cagney@redhat.com>
9276
9277 * gdbarch.sh (register_type): New function with predicate.
9278 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9279 * gdbarch.h, gdbarch.c: Re-generate.
9280 * arch-utils.c (generic_register_byte): Use generic_register_size.
9281 (generic_register_size): When available, use
9282 gdbarch_register_type.
9283 * regcache.c (init_regcache_descr): When available, initialize the
9284 register type array using gdbarch_register_type. If the
9285 architecture supplies gdbarch_register_type, do not use the legacy
9286 regcache layout.
9287 * d10v-tdep.c (d10v_register_type): Replace
9288 d10v_register_virtual_type.
9289 (d10v_gdbarch_init): Set register_type instead of
9290 register_virtual_type.
9291
7b83296f
AC
92922003-03-01 Andrew Cagney <cagney@redhat.com>
9293
9294 * Makefile.in (ax-gdb.o): Update dependencies.
9295 * ax-gdb.c: Include "regcache.h".
9296 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9297 * findvar.c (value_of_register): Ditto.
9298 * infcmd.c (default_print_registers_info): Ditto.
9299
eadc1c87
MK
93002003-03-01 Mark Kettenis <kettenis@gnu.org>
9301
9302 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9303 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9304
14143612
MK
93052003-03-01 Mark Kettenis <kettenis@gnu.org>
9306
9307 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9308 of STREQ.
9309
a55cc764
DJ
93102003-02-28 Daniel Jacobowitz <drow@mvista.com>
9311
9312 * Makefile.in (dwarf2loc.o): Update dependencies.
9313 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9314 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9315 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9316 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9317 (locexpr_tracepoint_var_ref): New function.
9318 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9319
08a617da
AC
93202003-02-28 Andrew Cagney <cagney@redhat.com>
9321
9322 * regcache.c (register_size): New function.
9323 * regcache.h (register_size): Declare
9324 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9325 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9326
4224873a
DC
93272003-02-28 David Carlton <carlton@math.stanford.edu>
9328
9329 * linespec.c (decode_compound): Extract code into find_method.
9330 (find_method): New.
9331
ccdc5d7f
JB
93322003-02-28 J. Brobecker <brobecker@gnat.com>
9333
9334 * Makefile.in: Add rules to build and link in observer.o.
9335
974e8ced
JB
93362003-02-27 J. Brobecker <brobecker@gnat.com>
9337
9338 * observer.c: Minor comments edits.
9339
7a28f973
JB
93402003-02-27 J. Brobecker <brobecker@gnat.com>
9341
9342 * observer.h, observer.c: New file.
9343
27cddce2
AC
93442003-02-27 Andrew Cagney <cagney@redhat.com>
9345
9346 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9347
b94a41a1
SC
93482003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9349
9350 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9351 (M6812_OP_STS_EXT): Likewise.
9352 (m6811_prologue): Use the above to recognize prologue.
9353 (m6812_prologue): Likewise.
9354
c8be8951
DC
93552003-02-27 David Carlton <carlton@math.stanford.edu>
9356
9357 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9358 SYMBOL_PRINT_NAME.
9359 (compare_psymbols): Ditto.
9360 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9361
d05bb1fc
MS
93622003-02-27 Michael Snyder <msnyder@redhat.com>
9363
4e845cd3
MS
9364 * f-lang.c (build_fortran_types): New function.
9365 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
9366 * doublest.c (extract_floating): Fix warning text.
9367
f3824013
AC
93682003-02-27 Andrew Cagney <cagney@redhat.com>
9369
9370 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9371 predicate. Replaces PUSH_DUMMY_FRAME.
9372 * gdbarch.h, gdbarch.c: Regnerate.
9373 * valops.c (hand_function_call): Update. Call
9374 generic_push_dummy_frame directly.
9375 * vax-tdep.c (vax_gdbarch_init): Update.
9376 * sparc-tdep.c (sparc_gdbarch_init): Update.
9377 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9378 * m68k-tdep.c (m68k_gdbarch_init): Update.
9379 * hppa-tdep.c (hppa_gdbarch_init): Update.
9380 * alpha-tdep.c (alpha_gdbarch_init): Update.
9381 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9382 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9383 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9384 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9385 push_dummy_frame to generic_push_dummy_frame.
9386 * v850-tdep.c (v850_gdbarch_init): Ditto.
9387 * sh-tdep.c (sh_gdbarch_init): Ditto.
9388 * s390-tdep.c (s390_gdbarch_init): Ditto.
9389 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9390 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9391 * mips-tdep.c (mips_gdbarch_init): Ditto.
9392 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9393 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9394 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9395 * i386-tdep.c (i386_gdbarch_init): Ditto.
9396 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9397 * frv-tdep.c (frv_gdbarch_init): Ditto.
9398 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9399 * cris-tdep.c (cris_gdbarch_init): Ditto.
9400 * avr-tdep.c (avr_gdbarch_init): Ditto.
9401 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9402
ad188201
KB
94032003-02-26 Kevin Buettner <kevinb@redhat.com>
9404
9405 * mips-tdep.c (show_mips_abi): New function.
9406 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9407 command ``show mips abi''.
9408
6b37567a 94092003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9410
6b37567a 9411 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 9412 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9413 more sline entries have been seen for the function.
9414
d3e0a5bf
MC
94152003-02-26 Michael Chastain <mec@shout.net>
9416
9417 * configure: Regenerate with autoconf 000227.
9418
18972eea
MC
94192003-02-26 Michael Chastain <mec@shout.net>
9420
9421 Close PR build/660.
9422 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9423 for old libc5/glibc.
9424 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9425
0bbde931
KW
94262003-02-26 Kris Warkentin <kewarken@qnx.com>
9427
9428 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9429 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9430
27ca5dad
MC
94312003-02-26 Michael Chastain <mec@shout.net>
9432
9433 * configure.in: New variable HAVE_UINTPTR_T.
9434 * configure, config.in: Regenerated.
9435
6f88d630
DJ
94362003-02-26 Daniel Jacobowitz <drow@mvista.com>
9437
9438 Fix PR build/1097.
9439 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9440
b14185ce
AC
94412003-02-25 Andrew Cagney <cagney@redhat.com>
9442
9443 * frame.c (get_prev_frame): Add comment on check for
9444 inside_entry_func. Only check for inside_entry_file when not a
9445 dummy and not a sentinel. Check that the new frame is not inner
9446 to the old frame.
9447
ac2bd0a9
AC
94482003-02-25 Andrew Cagney <cagney@redhat.com>
9449
9450 * frame.c (frame_debug): New variable.
9451 (_initialize_frame): Add "set/show debug frame" command.
9452 (get_prev_frame): When frame_debug, print reason why unwind
9453 failed.
9454
b18a0fd2
MC
94552003-02-25 Michael Chastain <mec@shout.net>
9456
9457 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9458 to avoid uintptr_t definition problems.
9459
22abf04a
DC
94602003-02-25 David Carlton <carlton@math.stanford.edu>
9461
9462 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9463 (SYMBOL_LINKAGE_NAME): Ditto.
9464 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9465 SYMBOL_LINKAGE_NAME.
9466 (struct general_symbol_info): Expand comment.
9467 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9468 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9469 (SYMBOL_MATCHES_REGEXP): Ditto.
9470 * symtab.c (symbol_natural_name): New function.
9471 * objfiles.h: Replace all uses of SYMBOL_NAME by
9472 DEPRECATED_SYMBOL_NAME.
9473 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9474 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9475 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9476 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9477 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9478 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9479 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9480 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9481 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9482 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9483 * ada-exp.y: Ditto.
9484 * ada-exp.y: Update copyright.
9485 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9486 * cp-valprint.c: Ditto.
9487
1a5848f6
JJ
94882003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9489
9490 * infptrace.c (detach): Do not flag error if ptrace detach fails
9491 and errno is set to ESRCH.
9492
7343d46a
AC
94932003-02-24 Andrew Cagney <cagney@redhat.com>
9494
9495 * infptrace.c (udot_info): Change type of udot_off to long. Use
9496 paddr when printing udot_off's value.
9497
49fa1dc2
DC
94982003-02-24 David Carlton <carlton@math.stanford.edu>
9499
9500 * symtab.c (make_symbol_overload_list): Only read in partial
9501 symtabs containing a matching partial symbol.
9502
0fe19209
DC
95032003-02-24 David Carlton <carlton@math.stanford.edu>
9504
9505 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9506 do the comparison, not strcmp.
9507 * symfile.c (compare_psymbols): Ditto.
9508 * defs.h: Declare strcmp_iw_ordered.
9509 * utils.c (strcmp_iw_ordered): New function.
9510
8e3ee7b5
JB
95112003-02-24 Jim Blandy <jimb@redhat.com>
9512
9513 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9514 support, shared libs): Remove my name from here, to better reflect
9515 reality.
9516
7df1a324
KW
95172003-02-24 Kris Warkentin <kewarken@qnx.com>
9518
9519 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9520 (target_ops): Add to_have_continuable_watchpoint.
9521 * target.c (update_current_target): Add INHERIT line for
9522 to_have_continuable_watchpoint.
9523 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9524 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9525 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9526 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9527
d1c76907
EZ
95282003-02-24 Elena Zannoni <ezannoni@redhat.com>
9529
9530 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9531 maintainership.
9532
2610b0bf
KW
95332003-02-24 Kris Warkentin <kewarken@qnx.com>
9534
f46169db
KW
9535 * solib.c (solib_open): Call target defined search function after
9536 failing with solib-search-path.
9537 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9538 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9539
9a3c34fe
KW
95402003-02-24 Kris Warkentin <kewarken@qnx.com>
9541
f46169db 9542 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9543
2417dd25
SC
95442003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9545
9546 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9547
b631436b
SC
95482003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9549
9550 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9551 (m68hc11_add_reggroups): New function.
9552 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9553 (m68hc11_gdbarch_init): Install the reggroups.
9554 (_initialize_m68hc11_tdep): Initialize them.
9555
0aa8c1e4
JW
95562003-02-21 James E Wilson <wilson@tuliptree.org>
9557
9558 * MAINTAINERS: Update my email address.
9559
50ceaba5
DC
95602003-02-21 David Carlton <carlton@math.stanford.edu>
9561
9562 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9563
4c2df51b
DJ
95642003-02-21 Daniel Jacobowitz <drow@mvista.com>
9565
9566 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9567 * symtab.h: Add opaque declarations of struct axs_value and
9568 struct agent_expr.
9569 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9570 (struct location_funcs): New type.
9571 (struct symbol): Add "loc" to aux_value.
9572 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9573 * dwarf2read.c: Include "dwarf2expr.h".
9574 (dwarf2_symbol_mark_computed): New function.
9575 (read_func_scope): Use it.
9576 (var_decode_location): New function.
9577 (new_symbol): Use it.
9578 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9579
9580 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9581 (dwarf2expr_h, dwarf2loc_h): New variables.
9582 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9583 (dwarf2expr.o, dwarf2loc.o): New rules.
9584 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9585 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9586 LOC_COMPUTED_ARG.
9587 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9588 * m2-exp.y (yylex): Likewise.
9589 * printcmd.c (address_info, print_frame_args): Likewise.
9590 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9591 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9592 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9593 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9594 * symtab.c (lookup_block_symbol): Likewise.
9595
5784d15e
AF
95962003-02-20 Adam Fedor <fedor@gnu.org>
9597
9598 * symtab.h: Remove objc_specific struct
9599 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9600 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9601 Have language_objc use cplus_specific struct.
9602
d4cad8db
TT
96032003-02-20 Tom Tromey <tromey@redhat.com>
9604
9605 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9606 TYPE_NAME, when printing a String value. PR java/1075.
9607
2f9a90b4
AF
96082003-02-20 Adam Fedor <fedor@gnu.org>
9609
d38074a8 9610 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9611 * objc-lang.c (find_methods): Make static.
2f9a90b4 9612
6f17862b
CF
96132003-02-20 Christopher Faylor <cgf@redhat.com>
9614
9615 * win32-nat.c (get_image_name): Check return value from
9616 ReadProcessMemory.
9617 (child_xfer_memory): Ditto.
9618
715d1656
AO
96192003-02-20 Alexandre Oliva <aoliva@redhat.com>
9620
9621 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9622 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9623 '${exec_prefix}' (in addition to the expansion thereof) as
9624 relocatable.
9625 * configure: Rebuilt.
9626
b1262a02
DC
96272003-02-20 David Carlton <carlton@math.stanford.edu>
9628
9629 * symtab.c (search_symbols): Revert the search_symbols part of my
9630 2002-12-23 patch. Add comment.
9631
7134143f
DJ
96322002-02-20 Daniel Jacobowitz <drow@mvista.com>
9633
9634 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9635 * dbxread.c (elfstab_build_psymtabs): Don't call
9636 install_minimal_symbols.
9637 (stabsect_build_psymtabs): Likewise.
9638 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9639 earlier.
9640 * somread.c (som_symfile_read): Call install_minimal_symbols
9641 and do_cleanups earlier.
9642 * nlmread.c (nlm_symfile_read): Likewise.
9643 * mdebugread.c (elfmdebug_build_psymtabs): Call
9644 install_minimal_symbols and make appropriate cleanups.
9645
cf466558
KB
96462003-02-20 Kevin Buettner <kevinb@redhat.com>
9647
9648 * solib.c (reload_shared_libraries): New function.
9649 (_initialize_solib): Add callbacks for ``set solib-search-path''
9650 and ``set solib-absolute-prefix''.
9651
de5ad195
DC
96522003-02-20 David Carlton <carlton@math.stanford.edu>
9653
9654 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9655 expand comment.
9656 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9657 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9658 * ada-typeprint.c (ada_typedef_print): Ditto.
9659 * ax-gdb.c (gen_var_ref): Ditto.
9660 * breakpoint.c (print_one_breakpoint): Ditto.
9661 * buildsym.c (finish_block): Ditto.
9662 * c-valprint.c (c_val_print): Ditto.
9663 * expprint.c (print_subexp): Ditto.
9664 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9665 * infcmd.c (jump_command): Ditto.
9666 * linespec.c (decode_line_2, decode_compound): Ditto.
9667 * maint.c (maintenance_translate_address): Ditto.
9668 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9669 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9670 Ditto.
8ffd9b1b
AJ
9671 * p-valprint.c (pascal_val_print): Ditto.
9672 * stabsread.c (define_symbol): Ditto.
de5ad195 9673 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9674 (print_frame_arg_vars, return_command): Ditto.
9675 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9676 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9677 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9678 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9679 (rbreak_command): Ditto.
9680 * tracepoint.c (tracepoints_info): Ditto.
9681 * typeprint.c (typedef_print): Ditto.
9682 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9683 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9684 * ada-typeprint.c: Update Copyright.
9685 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9686 * tracepoint.c, cli/cli-cmds.c: Ditto.
9687
f796e4be
KB
96882003-02-20 Kevin Buettner <kevinb@redhat.com>
9689
9690 * frame.c (generic_unwind_get_saved_register): Make non-static.
9691 * frame.h (generic_unwind_get_saved_register): Declare.
9692 * mips-tdep.c (read_next_frame_reg): Fetch register from
9693 current regcache when frame is NULL.
9694 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9695 that must be NULL.
9696 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9697 instead of frame_register_unwind().
9698
836cc9f4
AC
96992003-02-20 Andrew Cagney <ac131313@redhat.com>
9700
9701 * remote-sim.c (gdbsim_insert_breakpoint)
9702 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9703 code.
9704
501eef12
AC
97052003-02-20 Andrew Cagney <ac131313@redhat.com>
9706
9707 * remote.c (_initialize_remote): Add commands "set/show remote
9708 hardware-watchpoint-limit" and "set/show remote
9709 hardware-breakpoint-limit".
9710 (remote_hw_watchpoint_limit): Initialize to -1.
9711 (remote_hw_breakpoint_limit): Ditto.
9712 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9713
1b6bc7e0
CF
97142003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9715
9716 * coff-pe-read.c: New file - support reading of minimal symbols from a
9717 portable executable using the export table.
9718 * coff-pe-read.h: New file.
9719 * coffread.c: Include coff-pe-read.h.
9720 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9721 debugging symbols found.
9722 * Makefile.in (SFILES): Add coff-pe-read.o.
9723 (coff_pe_read_h): Define.
9724 (COMMON_OBS): Add coff-pe-read.o.
9725 (coffread.o): Add coff_pe_read_h dependency.
9726 (coff-pe-read.o): New target.
9727
fe898f56
DC
97282003-02-19 David Carlton <carlton@math.stanford.edu>
9729
9730 * Makefile.in (SFILES): Add block.c.
9731 (block_h): New.
9732 (COMMON_OBS): Add block.o.
9733 (block.o): New.
9734 (x86-64-tdep.o): Add $(block_h).
9735 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9736 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9737 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9738 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9739 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9740 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9741 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9742 * value.h: Add opaque declaration for struct block.
9743 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9744 * ada-lang.h: Ditto.
9745 * x86-64-tdep.c: #include "block.h"
9746 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9747 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9748 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9749 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9750 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9751 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9752 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9753 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9754 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9755 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9756 * symtab.c (block_function): Ditto.
9757 (contained_in): Ditto.
9758 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9759 block.h. Add opaque declaration for struct block.
9760 * symtab.h: Move block_function and contained_in declarations to
9761 block.h. Add opaque declarations for struct block, struct
9762 blockvector.
9763 (struct block): Move to block.h.
9764 (struct blockvector): Ditto.
9765 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9766 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9767 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9768 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9769 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9770 Ditto.
9771 * block.c: New file.
9772 * block.h: New file.
9773
173345b5
TR
97742003-02-19 Theodore A. Roth <troth@openavr.org>
9775
9776 * avr-tdep.c (avr_extract_return_value): Remove function.
9777 (avr_store_return_value): Remove function.
9778 (avr_extract_struct_value_address): Remove function.
9779 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9780
338ef23d
AC
97812003-02-19 Andrew Cagney <ac131313@redhat.com>
9782
9783 * rs6000-tdep.c: Include "gdb_assert.h".
9784 (registers_e500): Add "acc" and "spefscr".
9785 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9786 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9787 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9788 really is "r0".
9789 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9790
5412f5f3
KS
97912003-02-18 Keith Seitz <keiths@redhat.com>
9792
9793 * Makefile.in: Add gdbtk-interps.c.
9794
881324eb
KB
97952003-02-18 Kevin Buettner <kevinb@redhat.com>
9796
9797 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9798 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9799
6a2f5abf
AC
98002003-02-18 Andrew Cagney <cagney@redhat.com>
9801
9802 * symtab.h (struct objfile): Add opaque declaration.
9803
54c7009d
EZ
98042003-02-18 Elena Zannoni <ezannoni@redhat.com>
9805
9806 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
9807 * dbxread.c (process_one_symbol): Use last_function_start rather
9808 than function_start_offset to find the real beginning of the
9809 current function. The latter is just the text section offset on
9810 some systems, the former is always the real function start.
54c7009d 9811
7ee6d7eb
AC
98122003-02-17 Andrew Cagney <cagney@redhat.com>
9813
9814 * configure.in: Revert ${target} != ${host}.
9815
2846da9b
AC
98162003-02-17 Andrew Cagney <ac131313@redhat.com>
9817
9818 * configure.in (Makefile): Use the test ${target} != ${host},
9819 instead of the absence of the "nm.h" file, to determine of the
9820 configuration non-native.
9821 * configure: Regenerate.
8ffd9b1b 9822
3b27aeea
EZ
98232003-02-14 Elena Zannoni <ezannoni@redhat.com>
9824
fbe586ae 9825 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
9826
9827 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9828 conditionalize tui_active test.
9829 (lookup_cmd_1): Ditto.
9830
b0b1c2c0
MK
98312003-02-14 Mark Kettenis <kettenis@gnu.org>
9832
9833 * configure.in: Add check for _etext.
9834 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9835 available.
9836 * config.in, configure: regenerated.
9837
8f05cde5
DJ
98382003-02-14 Daniel Jacobowitz <drow@mvista.com>
9839
9840 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9841
021e7609
AC
98422003-02-14 Andrew Cagney <ac131313@redhat.com>
9843
9844 * main.c (tui_version): Delete variable.
9845 (captured_main): When --tui, set interpreter_p to "tui" instead of
9846 enabling tui_version.
9847 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9848 tui_version.
9849 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9850 * cli/cli-cmds.c (disassemble_command): Ditto.
9851 * defs.h (tui_version): Delete declaration.
9852 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9853 (tui-interp.o): Add rules.
9854 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9855
e325dcec
CF
98562003-02-14 Christopher Faylor <cgf@redhat.com>
9857
36ffb041 9858 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
9859 just-loaded dll.
9860
c4f90d87
JM
98612003-02-12 Jason Molenda (jmolenda@apple.com)
9862
fbe586ae
RH
9863 * symmisc.c (print_objfile_statistics): Include information about
9864 the number of psymtabs and symtabs in each object file.
c4f90d87 9865
e46e5ccd
KS
98662003-02-13 Keith R Seitz <keiths@redhat.com>
9867
9868 * main.h (struct captured_main_args): Add interpreter_p.
9869 * main.c (captured_main): Initialize interpreter_p from context.
9870 * gdb.c (main): Set interpreter_p argument.
9871 * Makefile.in (gdb.o): Add dependency for interps.h.
9872
fe97fe9c
AC
98732003-02-12 Andrew Cagney <ac131313@redhat.com>
9874
9875 * event-top.c (cli_command_loop): Delete declaration.
9876 (_initialize_event_loop): Delete function setting event_loop_hook.
9877 * event-top.h (cli_command_loop): Declare. Update copyright.
9878 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9879 * interps.c (current_interp_command_loop): When event_loop_p, call
9880 cli_command_loop.
9881
1cdac4ef
AC
98822003-02-12 Andrew Cagney <ac131313@redhat.com>
9883
9884 * interps.h (interp_command_loop_ftype): Change return type to
9885 void.
9886
48037ead
ML
98872003-02-12 Michal Ludvig <mludvig@suse.cz>
9888
9889 * x86-64-tdep.c (x86_64_extract_return_value)
9890 (x86_64_store_return_value): Use regcache instead of regbuf.
9891 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9892 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9893
033afc63
AC
98942003-02-11 Andrew Cagney <ac131313@redhat.com>
9895
9896 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9897 * aclocal.m4: Regenerate.
9898 * configure: Regenerate.
9899
9900 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9901 TCL_LD_SEARCH_FLAGS.
9902
40d02bca
ML
99032003-02-10 Michal Ludvig <mludvig@suse.cz>
9904
9905 * dwarf2cfi.c: Reindented.
9906
11308a41
AC
99072003-02-09 Andrew Cagney <ac131313@redhat.com>
9908
9909 * interps.c (clear_interpreter_hooks): Convert function definition
9910 to ISO C.
9911
e1c1c0f6
DC
99122003-02-07 David Carlton <carlton@math.stanford.edu>
9913
9914 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9915
ab5d3da6
KB
99162003-02-07 Kevin Buettner <kevinb@redhat.com>
9917
9918 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9919 (struct type): ...to here.
9920 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9921 field.
9922 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9923 (replace_type): Set length on all type variants for a given type.
9924
b8a92b82
AC
99252003-02-07 Andrew Cagney <ac131313@redhat.com>
9926
9927 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9928 <sys/stat.h>.
9929 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 9930
5cb316ef
AC
99312003-02-06 Andrew Cagney <ac131313@redhat.com>
9932
2555fe1a
AC
9933 * Makefile.in (symm-nat.o): Update dependencies.
9934 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9935 (lynx-nat.o, ia64-linux-nat.): Ditto.
9936 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9937 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9938 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9939
44270758
AC
9940 * Makefile.in (inflow_h): Define.
9941 (procfs.o, inflow.o, procfs.o): Update dependencies.
9942 * inftarg.c (child_stop): Delete extern declaration of
9943 inferior_process_group. Include "inflow.h".
9944 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9945 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9946 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9947 (our_process_group, inferior_process_group): Extern declarations.
9948
df8f7274
AC
9949 * procfs.c: Include "gdb_assert.h".
9950
5cb316ef
AC
9951 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9952 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9953 * jv-typeprint.c (java_type_print_base): Ditto.
9954 * typeprint.c (typedef_print): Eliminate STREQ.
9955 * cli/cli-script.c (define_command, define_command): Ditto.
9956 * main.c (captured_main): Ditto.
9957 * values.c (lookup_internalvar): Ditto.
9958 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9959 within `if' conditional.
9960 * linespec.c (decode_line_2): Ditto.
9961 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9962 (bfd_openw_with_cleanup): Ditto.
9963
2a28ccea
MK
99642003-02-07 Mark Kettenis <kettenis@gnu.org>
9965
9966 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9967 legacy_extract_return_value and store_return_value to
9968 legacy_return_value.
9969
786b8124
CF
99702003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9971
9972 * win32-nat.c (get_relocated_section_addrs): New function. Find
9973 section load addresses for symbol handling in relocated DLLs.
9974 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9975
b871e4ec
FF
99762003-02-05 Fred Fish <fnf@intrinsity.com>
9977
9978 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9979 '=' and '!='.
9980 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9981 with '&' and '=='.
9982 (angel_RDI_info): Ditto.
9983 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9984 with '&' and '!='.
9985 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 9986
4389a95a 99872003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
9988 Keith Seitz <keiths@redhat.com>
9989 Elena Zannoni <ezannoni@redhat.com>
9990 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
9991
9992 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9993 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9994 (SUBDIR_MI_OBS): Add "mi-interp.o".
9995 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9996 (SFILES): Add "interps.c".
9997 (COMMON_OBS): Add "interps.o".
9998 (interps_h, mi_main_h): Define.
9999 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10000 (mi-main.o, main.o, event-top.o): Update dependencies.
10001 * cli/cli-interp.c: New file.
10002 * interps.h, interps.c: New files.
10003 * top.c: (gdb_init): Don't install the default interpreter, handed
10004 by captured_main.
10005 * main.c: Include "interps.h".
10006 (interpreter_p): Note that it should malloc'ed.
10007 (captured_command_loop): Call current_interp_command_loop.
10008 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10009 xfree and xstrdup when updating interpreter_p. Install the
10010 default interpreter. Add hack to stop mi1's copyright notice
10011 being encoded.
10012 * event-top.h (gdb_setup_readline): Declare.
10013 (gdb_disable_readline): Declare.
10014 * event-top.c: Include "interps.h".
10015 (display_gdb_prompt): Call current_interp_display_prompt_p.
10016 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10017 gdb_stdlog, and gdb_stdtarg.
10018 (_initialize_event_loop): Don't call gdb_setup_readline.
10019 * cli-out.c (cli_out_set_stream): New function.
10020 * cli-out.h (cli_out_set_stream): Declare.
10021
ff3b5810
MK
100222003-02-06 Mark Kettenis <kettenis@gnu.org>
10023
10024 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10025 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10026 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10027 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10028 config/i386/i386v42mp.mt: Removed.
10029
5b729aa5
MK
100302003-02-05 Mark Kettenis <kettenis@gnu.org>
10031
10032 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10033 GDB_OSABI_SOLARIS.
10034
8cc15142
MC
100352003-02-05 Michael Chastain <mec@shout.net>
10036
10037 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10038 2.12.1 and earlier versions.
10039
5aa5d4b9
AC
100402003-02-05 Andrew Cagney <ac131313@redhat.com>
10041
10042 Remove orphaned hosts, targets and files.
10043 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10044 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10045 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10046 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10047 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10048 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10049 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10050 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10051 * config/sparc/tm-sp64sim.h: Delete.
10052 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10053 hosts.
10054 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10055 mips*-dec-mach3* targets.
10056
b68767c1
MC
100572003-02-04 Michael Chastain <mec@shout.net>
10058
10059 * NEWS: Fix typo: sepcifying -> specifying.
10060
5ae7ca1d
MC
100612003-02-04 Michael Chastain <mec@shout.net>
10062
10063 * dwarfread.c: Add documentation on the state of dwarf-1,
10064 looking towards obsoletion.
10065
d08a4280
MC
100662003-02-03 Michael Chastain <mec@shout.net>
10067
10068 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10069 gdb/testsuite/gdb.c++/pr-1023.exp.
10070
e9be73e4
AC
100712003-02-04 Andrew Cagney <ac131313@redhat.com>
10072
10073 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10074 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10075
10076 * utils.c (init_page_info): Delete reference to MPW in comments.
10077 * main.c (captured_main): Delete #ifdef MPW.
10078
05d57f6f
AC
100792003-02-04 Andrew Cagney <ac131313@redhat.com>
10080
8ffd9b1b 10081 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
10082 * monitor.c (monitor_expect): Obsolete reference to m32r.
10083 * configure.tgt: Mark m32r-*-elf* as obsolete.
10084 * MAINTAINERS: Mark m32k as obsolete.
10085 * m32r-rom.c: Obsolete file.
10086 * config/m32r/m32r.mt: Obsolete file.
10087 * config/m32r/tm-m32r.h: Obsolete file.
10088 * m32r-stub.c: Obsolete file.
10089 * m32r-tdep.c: Obsolete file.
10090
8b0e5691
AC
100912003-02-04 Andrew Cagney <ac131313@redhat.com>
10092
10093 * NEWS: Mention that the z8k-zilog-none is obsolete.
10094 * MAINTAINERS: Mark z8k as obsolete.
10095 * configure.tgt: Obsolete the z8k-*-coff* target.
10096 * config/z8k/z8k.mt: Obsolete file.
10097 * config/z8k/tm-z8k.h: Obsolete file.
10098 * z8k-tdep.c: Obsolete file.
10099
67f16606
AC
101002003-02-04 Andrew Cagney <ac131313@redhat.com>
10101
10102 * NEWS: Mention that the mn10200-elf is obsolete.
10103 * configure.tgt: Obsolete mn10200-*-* target.
10104 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10105 mention that the mn10200 is obsolete.
10106 * breakpoint.h: Ditto.
10107 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10108 * config/mn10200/mn10200.mt: Obsolete file.
10109 * config/mn10200/tm-mn10200.h: Obsolete file.
10110 * mn10200-tdep.c: Obsolete file.
10111
fd2299bd
AC
101122003-02-04 Andrew Cagney <ac131313@redhat.com>
10113
10114 * MAINTAINERS: Mark h8500 as obsolete.
10115 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10116 * findvar.c (value_from_register): Ditto.
10117 * h8500-tdep.c: Mark file as obsolete.
10118 * config/h8500/h8500.mt: Ditto.
10119 * config/h8500/tm-h8500.h: Ditto.
10120 * NEWS: Mention that h8500 is obsolete.
10121
eb9a305d
DC
101222003-02-04 David Carlton <carlton@math.stanford.edu>
10123
10124 * objfiles.c (allocate_objfile): Always set name. Add comment at
10125 start of function.
10126 * jv-lang.c (get_dynamics_objfile): Add comment.
10127
406fc7fb
DC
101282003-02-04 David Carlton <carlton@math.stanford.edu>
10129
10130 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10131 * printcmd.c (build_address_symbolic): Replace uses of
10132 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10133 SYMBOL_NAME, and asm_demangle.
10134 Update copyright.
10135
93d91629
DC
101362003-02-04 David Carlton <carlton@math.stanford.edu>
10137
10138 * linespec.c (decode_compound): Extract code into
10139 lookup_prefix_sym.
10140 (lookup_prefix_sym): New function.
10141
1c5cb38e
DC
101422003-02-04 David Carlton <carlton@math.stanford.edu>
10143
10144 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10145 FLOAT_COERCION_BADNESS.
10146 * gdbtypes.c (rank_one_type): Replace all uses of
10147 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10148
0cf824c9
JB
101492003-02-04 Jim Blandy <jimb@redhat.com>
10150
10151 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10152 section, let dwarf_macinfo_section point to it, not
10153 dwarf_loc_section.
10154
a2d356b0
DJ
101552003-02-04 Daniel Jacobowitz <drow@mvista.com>
10156
10157 Pointed out by Anton Blanchard <anton@samba.org>.
10158 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10159 (ppc_linux_at_sigtramp_return_path): Use it.
10160
2de7ced7
DJ
101612003-02-04 Daniel Jacobowitz <drow@mvista.com>
10162
10163 * defs.h (streq): Add prototype.
10164 * utils.c (streq): New function.
10165
10166 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10167 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10168 * mdebugread.c (new_symbol): Likewise.
10169 * stabsread.c (define_symbol): Likewise.
10170 * coffread.c (process_coff_symbol): Likewise.
10171 * dwarfread.c (new_symbol): Likewise.
10172
10173 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10174 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10175 here.
10176 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10177 SYMBOL_INIT_DEMANGLED_NAME.
10178 * objfiles.c: Include "hashtab.h".
10179 (allocate_objfile): Call htab_set_functions_ex for the
10180 demangled_names_hash.
10181 (free_objfile): Call htab_delete for the demangled_names_hash.
10182 * objfiles.h (struct htab): Add declaration.
10183 (struct objfile): Add demangled_names_hash.
10184 * symfile.c: Include "hashtab.h".
10185 (reread_symbols): Call htab_delete for the demangled_names_hash.
10186 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10187 SYMBOL_NAME in the bcache.
10188 * symtab.c: Include "hashtab.h". Update comments.
10189 (create_demangled_names_hash, symbol_set_names): New functions.
10190 (symbol_find_demangled_name): New function, broken out from
10191 symbol_init_demangled_names.
10192 (symbol_init_demangled_names): Use it.
10193 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10194 (SYMBOL_SET_NAMES): New macro.
10195 (symbol_set_names): Add prototype.
10196
15831452
JB
101972003-02-03 Jim Blandy <jimb@redhat.com>
10198
10199 Use a single, consistent representation for an empty minimal
10200 symbol table in an objfile.
10201 * objfiles.c (terminate_minimal_symbol_table): New function.
10202 (allocate_objfile): Call it.
10203 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10204 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 10205 non-NULL.
15831452
JB
10206 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10207 objfile has minimal symbols, compare minimal_symbol_count to zero,
10208 instead of comparing msymbols with NULL.
10209 * objfiles.c (have_minimal_symbols): Same.
10210 * solib-sunos.c (solib_add_common_symbols): Call
10211 terminate_minimal_symbol_table.
10212 * symfile.c (reread_symbols): Same.
8ffd9b1b 10213
ffc65945
KB
102142003-02-03 Kevin Buettner <kevinb@redhat.com>
10215
10216 * s390-tdep.c (s390_address_class_type_flags)
10217 (s390_address_class_type_flags_to_name)
10218 (s390_address_class_name_to_type_flags): New functions.
10219 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10220 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10221
f211c6d4
MS
102222003-02-03 Michael Snyder <msnyder@redhat.com>
10223
10224 * arm-tdep.c: Fix spell-o in comment.
10225
659b0389
ML
102262003-02-03 Michal Ludvig <mludvig@suse.cz>
10227
10228 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10229 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 10230 error messages to contain BFD filename.
659b0389 10231
3b31d625
EZ
102322003-02-02 Elena Zannoni <ezannoni@redhat.com>
10233
997b089a 10234 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
10235 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10236 (do_mixed_source_and_assembly): Use
10237 make_cleanup_ui_out_tuple_begin_end and
10238 make_cleanup_ui_out_tuple_begin_end.
10239 (do_mixed_source_and_assembly): Ditto.
10240 * thread.c (do_captured_list_thread_ids): Ditto.
10241 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10242 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10243 ui_out_tuple_end): Delete prototypes.
10244 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10245 ui_out_list_end, ui_out_tuple_end): Delete.
10246
10247 From Kevin Buettner <kevinb@redhat.com>:
10248 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
10249 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10250 (do_cleanup_table_end): New functions.
10251 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10252 Use cleanups to invoke_ui_out_tuple_end().
10253 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
10254 * cli/cli-setshow.c (cmd_show_list): Use
10255 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 10256
5b181d62
AC
102572003-02-02 Andrew Cagney <ac131313@redhat.com>
10258
10259 * frame.c (frame_unwind_register): New function.
10260 (frame_unwind_unsigned_register): Use.
10261 (frame_unwind_signed_register): Use.
10262 (frame_read_register): New function.
10263 * frame.h (frame_unwind_register): Declare.
10264 (frame_read_register): Declare.
10265
10266 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10267 and frame_unwind_register instead of read_memory, write_register
10268 and deprecated_write_register_bytes.
10269
5f601589
AC
102702003-02-02 Andrew Cagney <ac131313@redhat.com>
10271
10272 * frame.h: Note that namelen can be negative.
10273 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10274 NAME's length.
10275
10276 * NEWS: Mention that the d10v's `regs' command is deprecated.
10277 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10278 (d10v_print_registers_info): New function.
10279 (show_regs): Call d10v_print_registers_info.
10280 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10281
6a3fe0a4
MK
102822003-02-02 Mark Kettenis <kettenis@gnu.org>
10283
10284 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10285 lost in the previous patch.
10286
075559bc
AC
102872003-02-01 Andrew Cagney <ac131313@redhat.com>
10288
10289 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
10290 * stack.c (print_frame_info_base): Output complete FRAME tuple
10291 for synthesized frames.
075559bc 10292
6789195b
AC
102932003-02-02 Andrew Cagney <ac131313@redhat.com>
10294
10295 * mips-nat.c (zerobuf): Delete.
10296 (fetch_inferior_registers): Alloc local zerobuf.
10297 (fetch_core_registers): Alloc local zerobuf.
10298 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10299 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10300 * thread-db.c (thread_db_store_registers): Ditto.
10301 * sh-tdep.c (sh_do_register): Ditto.
10302 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10303 * remote-sim.c (gdbsim_store_register): Ditto.
10304 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10305 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10306 * monitor.c (monitor_supply_register): Ditto.
10307 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10308 * mips-nat.c (fetch_inferior_registers): Ditto.
10309 * m68klinux-nat.c (fetch_register): Ditto.
10310 * lynx-nat.c (fetch_inferior_registers): Ditto.
10311 (fetch_inferior_registers): Ditto.
10312 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10313 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10314 (hpux_thread_store_registers): Ditto.
10315 * hppah-nat.c (fetch_register): Ditto.
10316 * hppab-nat.c (fetch_register): Ditto.
10317 * hppa-tdep.c (pa_register_look_aside): Ditto.
10318 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10319 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10320
e669114a
AC
103212003-02-01 Andrew Cagney <ac131313@redhat.com>
10322
10323 * gdbarch.sh: Explictly specify all method levels. When a
10324 variable with an empty level, provide a non-multi-arch default.
10325 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10326 * gdbarch.h: Re-generate.
10327 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10328 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10329
9a043c1d
AC
103302003-02-01 Andrew Cagney <ac131313@redhat.com>
10331
10332 * defs.h (host_pointer_to_address): Delete declaration.
10333 (address_to_host_pointer): Delete declaration.
10334 * utils.c (host_pointer_to_address): Delete function.
10335 (address_to_host_pointer): Delete function.
10336 * procfs.c (procfs_address_to_host_pointer): New function.
10337 * procfs.c (proc_set_watchpoint): Use.
10338 (procfs_can_use_hw_breakpoint): Update comments.
10339 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10340 (som_solib_add): Use.
10341 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10342 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 10343
7ca9f392
AC
103442003-02-01 Andrew Cagney <ac131313@redhat.com>
10345
94bbfd30
AC
10346 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10347 strlen d_name.
10348
7ca9f392
AC
10349 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10350 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10351 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10352 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10353 (define_symbol): Update.
10354 * symfile.c (generic_load): Remove references to nindy.
10355 * symtab.c: Remove references to nindy.
10356
31a85ea2
AC
103572003-02-01 Andrew Cagney <ac131313@redhat.com>
10358
10359 * infcmd.c (print_float_info): Delete code conditional on
10360 FLOAT_INFO.
10361 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10362 * config/m68k/nm-apollo68b.h: Ditto.
10363 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10364 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10365 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10366
f6e85fc8
MK
103672003-02-01 Mark Kettenis <kettenis@gnu.org>
10368
6015b6a0
MK
10369 * config/i386/tm-i386os9k.h: Removed.
10370
f7a30bdf
MK
10371 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10372 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10373 they're identical to i[3456]86-*-sysv* now.
10374 * config/i386/i386v32.mh: Removed.
10375 * config/i386/xm-i386v32.h: Removed.
10376 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10377
28d52111
MK
10378 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10379
4d3f6bce
MK
10380 * config/i386/i386dgux.mh: Removed.
10381 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10382
f6e85fc8
MK
10383 * configure.in: Fix typo.
10384 * configure: Regenerated.
10385
53955967
DC
103862003-01-31 David Carlton <carlton@math.stanford.edu>
10387
10388 * dwarf2read.c (dwarf2_locate_sections): Set
10389 dwarf_ranges_section.
10390
b1364885
AC
103912003-01-31 Andrew Cagney <ac131313@redhat.com>
10392
8dbb1c65
AC
10393 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10394 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10395
8731e58e
AC
10396 * utils.c: Re-indent.
10397
b1364885
AC
10398 * config/djgpp/fnchange.lst: Delete nindy files.
10399 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10400 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10401 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10402 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10403 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10404 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10405 * Makefile.in (init.c): Remove nindy references.
10406 (saber_gdb): Delete rule.
10407 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10408 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10409 and a68v-nat.c.
10410 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10411 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10412 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10413 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10414 nindy-share/stop.h.
10415 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10416 * saber.suppress: Delete file.
10417
086df311
DJ
104182003-01-31 Daniel Jacobowitz <drow@mvista.com>
10419
10420 * dbxread.c (stabs_data): New static variable.
10421 (fill_symbuf): Support an in-memory buffer for stabs data.
10422 (stabs_seek): New function.
10423 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10424 (read_ofile_symtab): Use stabs_seek.
10425 (elfstab_build_psymtabs): Take an asection* instead of
10426 an offset and size. Relocate the stabs data if necessary.
10427 Save the section* for dbx_psymtab_to_symtab.
10428 * dwarf2read.c: Add section variables for each debug section.
10429 (dwarf2_locate_sections): Fill them in.
10430 (dwarf2_read_section): Take an asection* argument.
10431 Relocate the section contents if necessary.
10432 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10433 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10434 it to dwarf2_read_section.
10435 (dwarf2_build_frame_info): Update callers.
10436 * elfread.c (elf_symfile_read): Update call to
10437 elfstab_build_psymtabs.
10438 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10439 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10440 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10441 * symfile.c (symfile_dummy_outputs): New function.
10442 (symfile_relocate_debug_section): New function.
10443 * symfile.h (symfile_relocate_debug_section): Add prototype.
10444
87d1b352
RH
104452003-01-31 Richard Henderson <rth@redhat.com>
10446
10447 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10448 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10449 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10450 * alpha-tdep.c (alpha_register_name): Add "unique".
10451 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10452 (ALPHA_UNIQUE_REGNUM): New.
10453 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10454
c48861fb
AC
104552003-01-31 Andrew Cagney <ac131313@redhat.com>
10456
10457 * README: Remove reference to Ericsson 1800 monitor.
10458 * Makefile.in (remote-es.o): Delete rule.
10459 (ALLDEPFILES): Delete remote-es.c.
10460 * remote-es.c: Delete file.
10461 * config/m68k/es1800.mt: Delete file.
10462 * config/djgpp/fnchange.lst: Update.
10463 * configure.tgt: Delete m68*-ericsson-* target.
10464
d764a824
AF
104652003-01-31 Adam Fedor <fedor@gnu.org>
10466
10467 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10468 Remove duplicate/shadowing variable of same name.
10469
fe36c4f4
JB
104702003-01-30 Jim Blandy <jimb@redhat.com>
10471
10472 * symfile.c (find_separate_debug_file): Assert that the objfile's
10473 directory name we compute ends with a slash, and then assume that
10474 that's so everywhere we use it.
10475
cb741690
DJ
104762003-01-30 Daniel Jacobowitz <drow@mvista.com>
10477
10478 * valops.c (value_assign): Flush frame cache after stores to memory
10479 also.
10480
96ee5227
AC
104812003-01-30 Andrew Cagney <ac131313@redhat.com>
10482
10483 * Makefile.in (mon960-rom.o): Delete rule.
10484 * mon960-rom.c: Delete file.
10485
7f6104a9
AC
104862003-01-30 Andrew Cagney <ac131313@redhat.com>
10487
10488 * d10v-tdep.c: Include "frame-unwind.h".
10489 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10490 list.
10491 (next_addr, uses_frame): Delete.
10492 (struct d10v_unwind_cache): Define.
10493 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10494 Use info instead of next_addr and uses_frame globals.
10495 (d10v_frame_init_saved_regs): Delete function.
10496 (d10v_init_extra_frame_info): Delete function.
10497 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10498 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10499 init_frame_pc or frame_saved_pc.
10500 (d10v_pop_frame): Delete function.
10501 (do_d10v_pop_frame): Delete function.
10502 (d10v_frame_chain): Delete function.
10503 (d10v_frame_chain_valid): Delete function.
10504 (d10v_frame_pc_unwind): New function.
10505 (d10v_frame_id_unwind): New function.
10506 (saved_regs_unwinder): New function.
10507 (d10v_frame_register_unwind): New function.
10508 (d10v_frame_pop): New function.
10509 (d10v_frame_unwind): New variable.
10510 (d10v_frame_p): New function.
10511 (d10v_frame_saved_pc): Delete function.
10512 * Makefile.in (d10v-tdep.o): Update dependencies.
10513
cad2e848
JB
105142003-01-30 J. Brobecker <brobecker@gnat.com>
10515
10516 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10517 causing some regressions due to a change in the default value
10518 for this macro.
10519
af34e669
DJ
105202003-01-29 Richard Henderson <rth@redhat.com>
10521 Elena Zannoni <ezannoni@redhat.com>
10522 Daniel Jacobowitz <drow@mvista.com>
10523
10524 Fix PR gdb/961.
8ffd9b1b 10525 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10526 variables.
10527 (RANGES_SECTION): New.
10528 (dwarf_ranges_buffer): New variable.
10529 (struct comp_unit_head): Add member "die".
10530 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10531 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10532 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10533 (dwarf2_locate_sections): Likewise.
10534 (dwarf2_build_psymtabs): Read .debug_ranges.
10535 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10536 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10537 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10538 Look for DW_AT_ranges and return the bounding box.
10539
baa93fa6
CF
105402003-01-29 Brian Ford <ford@vss.fsi.com>
10541
10542 * win32-nat.c (cygwin_pid): Removed as unused.
10543 (child_attach): Try fall back to Cygwin pid.
10544
c63f977f
JB
105452003-01-29 Jim Blandy <jimb@redhat.com>
10546
10547 * objfiles.h (struct objfile): Doc fix.
10548
d62d1979
AC
105492003-01-29 Andrew Cagney <ac131313@redhat.com>
10550
10551 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10552 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10553 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10554 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10555 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10556 (FRAME_SAVED_PC): Change to a function with predicate.
10557 * gdbarch.h, gdbarch.c: Re-generate.
10558
1ae18a04
AC
105592003-01-28 Andrew Cagney <ac131313@redhat.com>
10560
52287340
AC
10561 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10562
1ae18a04
AC
10563 * complaints.c (complain): Delete function.
10564 * complaints.h (struct deprecated_complaint): Delete definition.
10565 (complain): Delete declaration.
10566
f2c16bd6
KB
105672003-01-28 Kevin Buettner <kevinb@redhat.com>
10568
10569 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10570 dummy frames.
10571
a94dd1fd
AC
105722003-01-27 Andrew Cagney <ac131313@redhat.com>
10573
10574 * sentinel-frame.h, sentinel-frame.c: New files.
10575 * Makefile.in (frame.o): Update dependencies.
10576 (SFILES): Add sentinel-frame.c.
10577 (sentinel_frame_h): Define.
10578 (COMMON_OBS): Add sentinel-frame.o.
10579 (sentinel-frame.o): Specify dependencies.
10580 * frame.c: Include "sentinel-frame.h".
10581 (frame_register_unwind): Rewrite assuming that there is always a a
10582 ->next frame.
10583 (frame_register, generic_unwind_get_saved_register): Ditto.
10584 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10585 (create_sentinel_frame, unwind_to_current_frame): New functions.
10586 (get_current_frame): Rewrite using create_sentinel_frame and
10587 unwind_to_current_frame. When possible, always create a frame.
10588 (create_new_frame): Set next to the sentinel frame.
10589 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10590 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10591 ID cache when necessary.
10592 (frame_saved_regs_id_unwind): Use frame_relative_level.
10593 (deprecated_generic_get_saved_register): Use frame_relative_level,
10594 get_frame_saved_regs, get_frame_pc, get_frame_base and
10595 get_next_frame.
10596 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10597 frame_register.
10598
5378adc4
DJ
105992003-01-27 Daniel Jacobowitz <drow@mvista.com>
10600
10601 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10602
51ee2ddc
DJ
106032003-01-27 Daniel Jacobowitz <drow@mvista.com>
10604
10605 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10606 (maintenance_set_profile_cmd): Use error () instead of warning ().
10607
d9feb4e7
DJ
106082003-01-27 Daniel Jacobowitz <drow@mvista.com>
10609
10610 * configure.in: Check that -pg works if using --enable-profiling.
10611 Check for monstartup and _mcleanup regardless of --enable-profiling.
10612 * maint.c: Check for monstartup and _mcleanup before using them.
10613 * config.in: Regenerated.
10614 * configure: Regenerated.
10615
2d188dd3
NC
106162003-01-24 Nick Clifton <nickc@redhat.com>
10617
10618 * Add sh2e support:
10619
10620 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10621
10622 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10623 (sh2e_show_regs): New.
10624 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10625 * config/sh/tm-sh.h: Added sh2e to comments.
10626
cb3c37b2
JB
106272003-01-23 Jim Blandy <jimb@redhat.com>
10628
10629 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10630 symbols found)" message here; we haven't checked for a separate
10631 debug info file yet, so we don't know yet.
10632 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10633 we've looked everywhere. Also, there's no need to print a special
10634 message when we're loading the separate debug info file: the one
10635 symbol_file_add prints is fine.
10636
5b5d99cf
JB
106372003-01-23 Alexander Larsson <alexl@redhat.com>
10638 Jim Blandy <jimb@redhat.com>
10639
10640 Add support for executables whose debug info has been separated
10641 out into a separate file, leaving only a link behind.
10642 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10643 and separate_debug_objfile_backlink.
10644 (put_objfile_before): New declaration.
10645 * symfile.c: #include "filenames.h".
10646 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10647 debug info in a separate file, read that, too. Save the addrs
10648 argument, so we can use it again to read the separated debug info;
10649 syms_from_objfile modifies the table we pass it.
10650 (reread_symbols): After re-reading an objfile, call
10651 reread_separate_symbols to refresh its separate debug info
10652 objfile, if it has one.
10653 (reread_separate_symbols, find_separate_debug_file,
10654 get_debug_link_info, separate_debug_file_exists): New functions.
10655 (debug_file_directory): New global var.
10656 (_initialize_symfile): Initialize debug_file_directory, and
10657 provide the new `set debug-file-directory' command to let the user
10658 change it.
10659 * objfiles.c (free_objfile): If this objfile has its debug info in
10660 a separate objfile, free that one too. If this is itself a
10661 separate debug info objfile, clear our parent's backlink.
10662 (put_objfile_before): New function.
10663 * utils.c (gnu_debuglink_crc32): New function.
10664 * defs.h (gnu_debuglink_crc32): New declaration.
10665 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10666 * configure.in: Handle --with-separate-debug-dir config option.
10667 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10668 * acconfig.h (DEBUGDIR): New macro.
10669 * configure, aclocal.m4, config.in: Regenerated.
10670
7e8580c1
JB
106712003-01-22 Jim Blandy <jimb@redhat.com>
10672
7904e09f
JB
10673 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10674 like the old symbol_file_add, but taking new arguments: you can
10675 now pass in either a `struct section_addr_info' list to say where
10676 each section is loaded, or a `struct section_offsets' table. Pass
10677 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10678 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10679 with the appropriate quiescent values for the new arguments.
10680
7e8580c1
JB
10681 * symfile.c: #include "gdb_assert.h".
10682 (syms_from_objfile): Add the ability to pass in a section offset
10683 table directly, as an alternative to the section_addr_info table.
10684 Document arguments better.
10685 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10686 * symfile.h (syms_from_objfile): Update declaration.
10687 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10688 syms_from_objfile.
10689 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10690
d28f9cdf
DJ
106912003-01-22 Daniel Jacobowitz <drow@mvista.com>
10692
10693 Original patch by Tom Tromey <tromey@cygnus.com> and
10694 Jason Molenda <jmolenda@apple.com>.
10695 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10696 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10697 * NEWS: Mention profiling.
10698 * configure.in (--enable-gdbtk): Fix typo.
10699 (--enable-profiling): New. Set PROFILE_CFLAGS.
10700 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10701 Fill in function.
10702 (profiling_state): New variable.
10703 (mcleanup_wrapper): New function.
10704 (_initialize_maint): Remove NOTYET, fix call to
10705 add_setshow_boolean_cmd for "maint set profile".
10706 * configure: Regenerated.
10707
df21e465
MH
107082003-01-21 Martin M. Hunt <hunt@redhat.com>
10709
10710 * Makefile.in (install-gdbtk): Install PNG images too.
10711
73c1f219
AC
107122003-01-21 Andrew Cagney <ac131313@redhat.com>
10713
10714 * exec.c (text_start): Delete global variable.
10715 (exec_file_attach): Make text_start local to the function.
10716 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10717 * valops.c (hand_function_call): Delete code that handles
10718 BEFORE_TEXT_END and AFTER_TEXT_END.
10719 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10720 of CALL_DUMMY_LOCATION.
10721 * gdbarch.c: Regenerate.
10722 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10723 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10724 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10725 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10726 (text_end): Delete extern declaration.
10727
eb4f72c5
AC
107282003-01-21 Andrew Cagney <ac131313@redhat.com>
10729
10730 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10731 * blockframe.c (backtrace_below_main): Move to "frame.c".
10732 (frame_chain_valid): Delete check for backtrace_below_main.
10733 (_initialize_blockframe): Delete initialization, move ``set
10734 backtrace-below-main'' command to "frame.c".
10735 (do_flush_frames_sfunc): Delete function.
10736 * frame.c: Include "command.h" and "gdbcmd.h".
10737 (frame_type_from_pc): New function.
10738 (create_new_frame): Use frame_type_from_pc.
10739 (legacy_get_prev_frame): New function.
10740 (get_prev_frame): Rewrite. When an old style frame, call
10741 legacy_get_prev_frame. Otherwize, unwind the PC first.
10742 (_initialize_frame): Add ``set backtrace-below-main'' command.
10743 * Makefile.in (frame.o): Update dependencies.
10744
778ce8cc
AC
107452003-01-19 Andrew Cagney <ac131313@redhat.com>
10746
10747 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10748 DEPRECATED_REGISTERS_INFO.
10749
01c193c8
AC
107502003-01-19 Andrew Cagney <ac131313@redhat.com>
10751
10752 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10753 Maintainers'. Update `Various Maintainers'.
10754
dedc2a2b
AC
107552003-01-19 Andrew Cagney <ac131313@redhat.com>
10756
10757 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10758 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10759 Suppress actual parameters when `-'.
10760 * gdbarch.h, gdbarch.c: Regenerate.
10761
b7261c70
AC
107622003-01-19 Andrew Cagney <ac131313@redhat.com>
10763
10764 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10765 code handling dummy frames.
10766
dbe9fe58
AC
107672003-01-19 Andrew Cagney <ac131313@redhat.com>
10768
10769 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10770 (struct frame_unwind): Add field pop.
10771 * frame.h (frame_pop): Declare.
10772 * frame.c (frame_saved_regs_pop): New function.
10773 (trad_frame_unwinder): Add frame_saved_regs_pop.
10774 (frame_pop): New function.
10775 * dummy-frame.c (dummy_frame_pop): New function.
10776 (discard_innermost_dummy): New function.
10777 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10778 (dummy_frame_unwind): Add dummy_frame_pop.
10779 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10780 * valops.c (hand_function_call): Ditto.
10781 * stack.c (return_command): Ditto.
10782
570b8f7c
AC
107832003-01-18 Andrew Cagney <ac131313@redhat.com>
10784
10785 * cris-tdep.c: Fix function declaration indentation.
10786 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10787 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10788 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10789 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10790 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10791 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10792
107932003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
10794
10795 * README (Unpacking and Installation -- quick overview):
10796 Warn against ".../gdb-5.3/gdb/configure".
10797
494cca16
AC
107982003-01-18 Andrew Cagney <ac131313@redhat.com>
10799
10800 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10801 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10802 (struct frame_unwind): Declare opaque.
10803 (dummy_frame_p): Declare function.
10804 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10805 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10806 * dummy-frame.c: Include "frame-unwind.h".
10807 (dummy_frame_p): New function.
10808 (dummy_frame_unwind): New variable.
10809 * frame.c: Include "frame-unwind.h".
10810 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10811 to use the new unwind field.
10812 (set_unwind_by_pc): Delete function.
10813 (create_new_frame, get_prev_frame): Set unwind field using
10814 frame_unwind_find_by_pc.
10815 (trad_frame_unwind, trad_frame_unwinder): New variables.
10816 * frame.h (trad_frame_unwind): Declare variable.
10817 (frame_id_unwind_ftype): Delete declaration.
10818 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10819 (struct frame_unwind): Declare opaque.
10820 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10821 register_unwind with a single unwind pointer.
10822 * frame-unwind.h, frame-unwind.c: New files.
10823 * Makefile.in (SFILES): Add frame-unwind.c.
10824 (frame_unwind_h): Define.
10825 (COMMON_OBS): Add frame-unwind.o.
10826 (frame-unwind.o): Specify dependencies.
10827 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 10828
4efb68b1
AC
108292003-01-18 Andrew Cagney <ac131313@redhat.com>
10830
10831 * ada-valprint.c: Eliminate PTR.
10832 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10833 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10834 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10835 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10836 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10837 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10838 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 10839
a84d24ee
AC
108402003-01-17 Andrew Cagney <ac131313@redhat.com>
10841
762f08a3
AC
10842 * main.c (captured_main): Don't use PTR.
10843 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10844 * gdbtypes.c (lookup_primitive_typename): Ditto.
10845 (lookup_struct_elt_type): Ditto.
10846 * f-valprint.c (info_common_command): Ditto.
10847 (list_all_visible_commons): Ditto.
10848 * jv-typeprint.c (java_type_print_base): Ditto.
10849
a84d24ee
AC
10850 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10851 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10852 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10853 i386-interix-nat.c and i386-interix-tdep.c. Rename
10854 m68klinux-nat.c and m68klinux-tdep.c. Rename
10855 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10856 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10857 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10858 * main.c (captured_main): Use xfree, not free.
10859
c170fb60
AC
108602003-01-16 Andrew Cagney <ac131313@redhat.com>
10861
10862 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10863 ID back using a parameter.
10864 * frame.c (frame_id_unwind): Update call.
10865 (frame_saved_regs_id_unwind): Update.
10866 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10867 * dummy-frame.h (struct frame_id): Add opaque declaration.
10868 (dummy_frame_id_unwind): Update declaration.
10869
867f3898
AC
108702003-01-15 Andrew Cagney <ac131313@redhat.com>
10871
10872 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10873
40622be8 108742003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 10875
40622be8 10876 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 10877
ae66c1fc
EZ
108782003-01-14 Elena Zannoni <ezannoni@redhat.com>
10879
997b089a 10880 Fix PR gdb/898
ae66c1fc
EZ
10881 * breakpoint.c (until_break_command): Add new argument. Use it to
10882 decide whether to stop only at the current frame or not.
10883 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 10884 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
10885 call.
10886 (advance_command): New function.
10887 (_initialize_infcmd): Update help string for 'until' command.
10888 Add new 'advance' command.
10889
a04257e6
DC
108902003-01-14 David Carlton <carlton@math.stanford.edu>
10891
10892 * linespec.c (decode_line_1): Normalize comments.
10893 (set_flags): Ditto.
10894 (locate_first_half): Ditto.
10895 (decode_compound): Ditto.
10896 (symtab_from_filename): Ditto.
10897 (decode_all_digits): Ditto.
10898 (decode_dollar): Ditto.
10899 (find_methods): Ditto.
10900 (find_toplevel_char): Ditto.
10901
1bac305b
AC
109022003-01-13 Andrew Cagney <ac131313@redhat.com>
10903
10904 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10905 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10906 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10907 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10908 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10909 * language.c, language.h, m32r-tdep.c: Update copyright.
10910 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10911 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10912 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10913 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10914 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10915 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10916
25caa7a8
EZ
109172003-01-13 Elena Zannoni <ezannoni@redhat.com>
10918
10919 * stabsread.h (process_later, resolve_cfront_continuation):
10920 Obsolete.
10921 Update copyright years.
10922 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10923 Update copyright year.
10924 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 10925 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
10926 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10927 Update copyright year.
10928 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10929 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10930 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10931 (parse_partial_symbols): Obsolete cfront support.
10932 * stabsread.c
10933 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10934 macros.
10935 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10936 read_cfront_baseclasses, read_cfront_member_functions,
10937 resolve_cfront_continuation,read_cfront_static_fields,
10938 copy_cfront_struct_fields): Obsolete functions.
10939 (define_symbol, read_one_struct_field): Obsolete cfront support.
10940 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10941 Update Copyright year.
10942
7789c6f5
EZ
109432003-01-13 Elena Zannoni <ezannoni@redhat.com>
10944
10945 * stack.c (print_frame_info, print_stack_frame_base_stub,
10946 print_stack_frame_base, show_and_print_stack_frame_stub,
10947 show_and_print_stack_frame, print_only_stack_frame_stub,
10948 print_only_stack_frame): Delete functions.
10949 (print_stack_frame_stub): Call print_frame_info instead of
10950 print_frame_info_base.
10951 (print_frame_info_base): Rename to print_frame_info.
10952 (backtrace_command_1): Call print_frame_info, instead of
10953 print_frame_info_base.
10954 (current_frame_command): Call print_stack_frame, instead of
10955 print_only_stack_frame.
10956 (frame_command): Call print_stack_frame, instead of
10957 show_and_print_stack_frame.
10958 (up_command): Ditto.
10959 (down_command): Ditto.
10960 * frame.h (print_only_stack_frame): Delete prototype.
10961 * infrun.c (normal_stop): Call print_stack_frame, instead of
10962 show_and_print_stack_frame.
10963 * thread.c (info_threads_command): Call print_stack_frame, instead
10964 of print_only_stack_frame.
10965
3f5a3016
AC
109662003-01-13 Andrew Cagney <ac131313@redhat.com>
10967
d99ba314
AC
10968 * README (Graphical interface to GDB): Update URL. Point at
10969 gdb/links/.
10970
3f5a3016
AC
10971 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10972 version match.
10973
083ae935
DJ
109742003-01-13 Daniel Jacobowitz <drow@mvista.com>
10975
10976 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10977 lines.
10978
5365276c
DJ
109792003-01-13 Daniel Jacobowitz <drow@mvista.com>
10980
10981 * thread-db.c (attach_thread): Prototype.
10982 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10983 thread information (ti), and valid flags (th_valid, ti_valid).
10984 (attach_thread): Move target_pid_to_str call to after the thread
10985 is added to GDB's list. Initialize the cache.
10986 (thread_get_info_callback, thread_db_map_id2thr)
10987 (thread_db_get_info): New functions.
10988 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10989 (thread_db_store_registers, thread_db_thread_alive)
10990 (thread_db_get_thread_local_address): Use them.
10991 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10992 of calling error() for threads in unknown state.
10993
10994 (clear_lwpid_callback): New function.
10995 (thread_db_resume): Use it to clear the cache.
10996
9fc30b6b
DJ
109972003-01-13 Daniel Jacobowitz <drow@mvista.com>
10998
10999 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11000 (resume_callback): Remove dead code.
11001
8f871025
AC
110022003-01-13 Andrew Cagney <ac131313@redhat.com>
11003
11004 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11005 predicate.
11006 * gdbarch.h, gdbarch.c: Regenerate.
11007 * stack.c (frame_info): Only initialize the saved registers when
11008 FRAME_INIT_SAVED_REGS_P.
11009 * frame.c (frame_saved_regs_register_unwind): Assert
11010 FRAME_INIT_SAVED_REGS_P.
11011 (deprecated_generic_get_saved_register): Ditto.
11012
3f565f1e
DJ
110132003-01-13 Daniel Jacobowitz <drow@mvista.com>
11014
11015 * source.c (openp): Squelch warning about "filename".
11016
072b1022
DJ
110172003-01-13 Daniel Jacobowitz <drow@mvista.com>
11018
11019 * source.c (openp): If the file does not exist don't necessarily
11020 search the path.
11021
973ccf8b
DJ
110222003-01-13 Daniel Jacobowitz <drow@mvista.com>
11023
11024 Fix PR gdb/872.
11025 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11026 (integer_types_same_name_p): New function.
11027 (rank_one_type): Use it.
11028 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11029
030292b7
DJ
110302003-01-13 Daniel Jacobowitz <drow@mvista.com>
11031
11032 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11033 variables.
11034 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11035 * configure.in: Add --with-sysroot.
11036 * configure: Regenerated.
11037 * main.c (gdb_sysroot): New variable.
11038 (captured_main): Initialize gdb_sysroot.
11039 * defs.h (gdb_sysroot): New extern declaration.
11040 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11041
afb5d334
MC
110422003-01-12 Michael Chastain <mec@shout.net>
11043
11044 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11045
751ceeb4
MC
110462003-01-12 Michael Chastain <mec@shout.net>
11047
11048 * top.c (print_gdb_version): Bump copyright year to 2003.
11049
94cd26f8
DC
110502003-01-12 David Carlton <carlton@bactrian.org>
11051
11052 * linespec.c (symtab_from_filename): Rename variable 's' to
11053 'file_symtab'.
11054
1ce79225
AC
110552003-01-12 Andrew Cagney <ac131313@redhat.com>
11056
11057 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11058 dummy frame.
11059 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11060
fa1fd571
AC
110612003-01-12 Andrew Cagney <ac131313@redhat.com>
11062
11063 * d10v-tdep.c: Include "gdb_assert.h".
11064 (d10v_store_return_value): Rewrite to match current interface.
11065 (d10v_extract_struct_value_address): Ditto.
11066 (d10v_extract_return_value): Ditto.
11067 (d10v_gdbarch_init): Set store_restore_value,
11068 extract_struct_value_address and extract_return_value.
11069
68b8d23e
JB
110702003-01-12 J. Brobecker <brobecker@gnat.com>
11071
11072 * hpread.c (set_namestring): New procedure replacing the
11073 SET_NAMESTRING macro.
11074 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11075 by calls to set_namestring.
11076
110772003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
11078
11079 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11080 a compilation warning.
11081 (hpread_process_one_debug_symbol): Likewise.
11082
88d262ca
DC
110832003-01-10 David Carlton <carlton@math.stanford.edu>
11084
11085 * linespec.c (decode_line_1): Rename variable 's' to
11086 'file_symtab'.
11087 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11088 (decode_dollar): Ditto.
11089 (decode_variable): Ditto.
11090 (symbol_found): Ditto.
11091
86669319
MC
110922003-01-09 Michael Chastain <mec@shout.net>
11093
11094 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11095
616a9dc4
CV
110962003-01-07 Corinna Vinschen <vinschen@redhat.com>
11097
11098 * win32-nat.c (set_process_privilege): New function.
11099 (child_attach): Call set_process_privilege() to enable the
11100 SE_DEBUG_NAME user privilege if available in process token.
11101
3269bcfa
JB
111022003-01-10 J. Brobecker <brobecker@gnat.com>
11103
11104 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11105 compilation error in the previous revision.
11106
2b0ee454
DC
111072003-01-09 David Carlton <carlton@math.stanford.edu>
11108
11109 * linespec.c: Update copyright.
11110
b3ba1b44
DJ
111112003-01-09 Daniel Jacobowitz <drow@mvista.com>
11112
11113 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11114 than inferior_ptid.
11115 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11116
4ef3f3be
AC
111172003-01-09 Andrew Cagney <ac131313@redhat.com>
11118
479ab5a0
AC
11119 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11120 Update comments.
11121 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11122 (frame_saved_regs_zalloc): Update.
11123 (frame_saved_regs_register_unwind): Update.
11124 (create_new_frame): Update.
11125 (get_prev_frame): Update.
11126 (frame_extra_info_zalloc): Update.
11127 (deprecated_get_frame_saved_regs): Update.
11128 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11129 * cris-tdep.c: Update comment.
11130
bde58177
AC
11131 * somsolib.h: Fix function indentation.
11132 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11133 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11134 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11135 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11136 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11137
4ef3f3be
AC
11138 * infrun.c (follow_fork): Use ISO C definition.
11139 * expprint.c (print_subexp): Use xfree instead of free.
11140 * charset.c: Include "gdb_string.h" instead of <string.h>.
11141 (register_iconv_charsets): Use ISO C definition.
11142 (host_charset, target_charset): Ditto.
11143 * Makefile.in (charset.o): Update dependencies.
11144 (mi-cmd-env.o): Update dependencies.
11145
1c615f7a
AC
111462003-01-08 Andrew Cagney <cagney@redhat.com>
11147
11148 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11149 get_frame_base.
11150
c9a1dc08
AC
111512003-01-08 Andrew Cagney <ac131313@redhat.com>
11152
11153 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11154 build directories. Save edited gdb output in Mbuild.log. If a
11155 build fails, remove any final GDB executable.
11156
dbad9d94
AC
111572003-01-08 Andrew Cagney <ac131313@redhat.com>
11158
11159 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11160 replacing hex constants with function names and stripping leading
11161 file name directory prefixes.
11162
8d357cca
AC
111632003-01-08 Andrew Cagney <cagney@redhat.com>
11164
11165 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11166 get_frame_base.
11167
bca02a8a
DC
111682003-01-08 David Carlton <carlton@math.stanford.edu>
11169
11170 * linespec.c (decode_line_1): Move code into decode_variable.
11171 (decode_variable): New function.
11172
7f8ab3a0
AC
111732003-01-08 Andrew Cagney <ac131313@redhat.com>
11174
11175 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11176
7b5849cc
AC
111772003-01-08 Andrew Cagney <cagney@redhat.com>
11178
11179 * cris-tdep.c (cris_frame_init_saved_regs): Use
11180 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11181 saved_regs buffer.
11182 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11183 (sh64_nofp_frame_init_saved_regs): Ditto.
11184 (sh_fp_frame_init_saved_regs): Ditto.
11185 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11186 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11187 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11188 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11189
72a5efb3
DJ
111902003-01-08 Daniel Jacobowitz <drow@mvista.com>
11191
11192 * minsyms.c (lookup_minimal_symbol): Update comment.
11193 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11194 (lookup_minimal_symbol_solib_trampoline): Likewise.
11195
11c02a10
AC
111962003-01-08 Andrew Cagney <cagney@redhat.com>
11197
aab3ea25
AC
11198 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11199 frame_relative_level.
11200
da50a4b7
AC
11201 * alpha-tdep.c: Use get_frame_extra_info.
11202 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11203 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11204 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11205 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11206
11c02a10
AC
11207 * alpha-tdep.c: Use get_next_frame.
11208 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11209 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11210 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11211 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11212 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11213 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11214 * xstormy16-tdep.c: Ditto.
8ffd9b1b 11215
1e2330ba
AC
112162003-01-07 Andrew Cagney <cagney@redhat.com>
11217
11218 * alpha-tdep.c: Use get_frame_base.
11219 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11220 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11221 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11222 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11223 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11224 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11225 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11226 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 11227
2d75187b
AC
112282003-01-07 Andrew Cagney <cagney@redhat.com>
11229
11230 * frame.c (deprecated_get_frame_context): New function.
11231 (deprecated_set_frame_context): New function.
11232 * frame.h (deprecated_get_frame_context): Declare.
11233 (deprecated_set_frame_context): Declare.
11234 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11235 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 11236
483d36b2
AC
112372003-01-07 Andrew Cagney <cagney@redhat.com>
11238
11239 * frame.c (deprecated_set_frame_next_hack): New function.
11240 (deprecated_set_frame_prev_hack): New function.
11241 * frame.h (deprecated_set_frame_next_hack): Declare.
11242 (deprecated_set_frame_prev_hack): Declare.
11243 * mcore-tdep.c (analyze_dummy_frame): Use
11244 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11245 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11246
14e91ac5
DC
112472003-01-07 David Carlton <carlton@math.stanford.edu>
11248
11249 * linespec.c (decode_line_1): Move code into decode_dollar.
11250 (decode_dollar): New function.
11251
b0c6b05c
AC
112522003-01-07 Andrew Cagney <cagney@redhat.com>
11253
11254 * arm-tdep.c (arm_init_extra_frame_info): Use
11255 deprecated_update_frame_base_hack.
11256 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11257 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11258 (fix_frame_pointer): Ditto.
11259 (mn10300_analyze_prologue): Ditto.
11260
a00a19e9
AC
112612003-01-07 Andrew Cagney <cagney@redhat.com>
11262
11263 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11264 extra_info using frame_extra_info_zalloc.
11265 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11266 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11267 (sh64_init_extra_frame_info): Ditto.
11268 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11269 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11270 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11271 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11272 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11273 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11274 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11275 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11276 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11277 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11278 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11279 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11280
11281 * mn10300-tdep.c (analyze_dummy_frame): Use
11282 deprecated_set_frame_extra_info_hack.
11283 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11284
1fb4c65b
JB
112852003-01-07 J. Brobecker <brobecker@gnat.com>
11286
11287 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11288 class is not scText. These do not define "real" procedures.
11289 (parse_partial_symbols): Likewise.
11290
9fe7d6bf
MS
112912003-01-06 Michael Snyder <msnyder@redhat.com>
11292
11293 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11294
f6c609c4
AC
112952003-01-06 Andrew Cagney <ac131313@redhat.com>
11296
11297 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11298 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11299 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11300 deprecated_frame_xmalloc_with_cleanup.
11301 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11302 deprecated_frame_xmalloc.
11303 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11304 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11305
d995ff4b
AC
113062003-01-06 Andrew Cagney <cagney@redhat.com>
11307
84dc46cb
AC
11308 * x86-64-linux-tdep.c: Include "osabi.h".
11309 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11310
d995ff4b
AC
11311 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11312
66140c26
AC
113132003-01-06 Andrew Cagney <cagney@redhat.com>
11314
11315 * MAINTAINERS (Target Instruction Set Architectures): Update
11316 arm-elf. Can be built with -Werror, has been multiarched.
11317
11318 * value.h (unpack_long): Make buffer parameter constant.
11319 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11320 * scm-lang.h (scm_parse): Ditto.
11321 * defs.h (extract_typed_address, extract_address): Ditto.
11322 (extract_long_unsigned_integer): Ditto.
11323 * inferior.h (unsigned_pointer_to_address): Ditto.
11324 (signed_pointer_to_address): Ditto.
11325 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11326 * gdbarch.h, gdbarch.c: Regenerate.
11327 * findvar.c (extract_long_unsigned_integer): Update.
11328 (extract_address): Update.
11329 (extract_typed_address): Update.
11330 (unsigned_pointer_to_address): Update.
11331 * values.c (unpack_long): Update.
11332 (unpack_double): Update.
11333 (unpack_pointer): Update.
11334 (unpack_field_as_long): Update.
11335 * d10v-tdep.c (d10v_pointer_to_address): Update.
11336 * avr-tdep.c (avr_pointer_to_address): Update.
11337 * scm-lang.c (scm_unpack): Update.
11338 * findvar.c (signed_pointer_to_address): Update.
11339
b089b3da
ML
113402003-01-06 Michal Ludvig <mludvig@suse.cz>
11341
8ffd9b1b 11342 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
11343 since it is in i386-tdep.c.
11344
aff87235
JB
113452003-01-06 J. Brobecker <brobecker@gnat.com>
11346
11347 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11348 failure introduced in the previous change.
11349
34f5e845
MC
113502003-01-05 Michael Chastain <mec@shout.net>
11351
11352 * README: Remove references to deleted remote-*.c files:
11353 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11354 remote-nrom.c, remote-os9k.c, remote-udi.c.
11355
28bcfd30
MK
113562003-01-05 Mark Kettenis <kettenis@gnu.org>
11357
11358 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11359 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11360 i386_get_longjmp_target.
11361
15a5b3ee
AC
113622003-01-05 Andrew Cagney <ac131313@redhat.com>
11363
11364 * arm-tdep.c (prologue_cache): Change to a pointer.
11365 (_initialize_arm_tdep): Allocate prologue_cache.
11366 (check_prologue_cache): Update.
11367 (save_prologue_cache): Update.
11368 (arm_gdbarch_init): Update.
11369
c263362b
DJ
113702003-01-04 Daniel Jacobowitz <drow@mvista.com>
11371
11372 * stabsread.c (update_method_name_from_physname): Call complaint()
11373 instead of error.
11374
51603483
DJ
113752003-01-04 Daniel Jacobowitz <drow@mvista.com>
11376
11377 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11378 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11379 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11380
11381 * blockframe.c: Include "gdbcmd.h" and "command.h".
11382 (backtrace_below_main): New variable.
11383 (file_frame_chain_valid, func_frame_chain_valid)
11384 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11385 (generic_func_frame_chain_valid): Remove functions.
11386 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11387 (_initialize_blockframe): New function.
11388 * Makefile.in (blockframe.o): Update dependencies.
11389 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11390 comment. Call frame_chain_valid ().
11391 * frame.h: Remove old prototypes. Add prototype for
11392 frame_chain_valid and update comments to match.
11393 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11394 Remove old comment.
11395 * gdbarch.h: Regenerated.
11396 * gdbarch.c: Regenerated.
11397
11398 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11399 set_gdbarch_frame_chain_valid.
11400 * avr-tdep.c (avr_gdbarch_init): Likewise.
11401 * cris-tdep.c (cris_gdbarch_init): Likewise.
11402 * frv-tdep.c (frv_gdbarch_init): Likewise.
11403 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11404 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11405 (i386_nw_init_abi): Likewise.
11406 (i386_gdbarch_init): Likewise.
11407 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11408 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11409 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11410 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11411 * mips-tdep.c (mips_gdbarch_init): Likewise.
11412 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11413 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11414 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11415 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11416 * s390-tdep.c (s390_gdbarch_init): Likewise.
11417 * sh-tdep.c (sh_gdbarch_init): Likewise.
11418 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11419 * v850-tdep.c (v850_gdbarch_init): Likewise.
11420 * vax-tdep.c (vax_gdbarch_init): Likewise.
11421 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11422
11423 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11424 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11425 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11426 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11427 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11428 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11429 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11430 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11431
b00a8037
DJ
114322002-01-04 Daniel Jacobowitz <drow@mvista.com>
11433
11434 * Makefile.in (acconfig_h): Remove incorrect macro.
11435 (config_h): Define.
11436 (osabi.o): Update dependencies.
11437 * configure.tgt: Set gdb_osabi based on target triplet.
11438 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11439 * configure: Regenerated.
11440 * config.in: Regenerated.
11441 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11442 (GDB_OSABI_DEFAULT): Define if not already defined.
11443 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11444 (set_osabi_string): New variables.
11445 (gdbarch_register_osabi): Add new OS ABI to
11446 gdb_osabi_available_names.
11447 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11448 (set_osabi, show_osabi): New functions.
11449 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11450
4be87837
DJ
114512003-01-04 Daniel Jacobowitz <drow@mvista.com>
11452
11453 * arch-utils.c (gdbarch_info_init): Set osabi to
11454 GDB_OSABI_UNINITIALIZED.
11455 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11456 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11457 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11458 * gdbarch.c: Regenerated.
11459 * gdbarch.h: Regenerated.
11460 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11461 there's no BFD.
11462 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11463 * osabi.h (enum gdb_osabi): Move to defs.h.
11464 (gdbarch_init_osabi): Update prototype.
11465 * defs.h (enum gdb_osabi): Moved here.
11466 * Makefile.in: Update dependencies.
11467
11468 * alpha-tdep.h: Don't include "osabi.h".
11469 (struct gdbarch_tdep): Remove osabi member.
11470 * alpha-tdep.c: Include "osabi.h".
11471 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11472 iterate over arches. Update call to gdbarch_init_osabi.
11473 (alpha_dump_tdep): Don't dump osabi.
11474 * alpha-linux-tdep.c: Include "osabi.h".
11475 * alpha-osf1-tdep.c: Include "osabi.h".
11476 * alphafbsd-tdep.c: Include "osabi.h".
11477 * alphanbsd-tdep.c: Include "osabi.h".
11478
11479 * arm-tdep.h: Don't include "osabi.h".
11480 (struct gdbarch_tdep): Remove osabi member.
11481 * arm-tdep.c: Include "osabi.h".
11482 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11483 iterate over arches. Update call to gdbarch_init_osabi.
11484 (arm_dump_tdep): Don't dump osabi.
11485 * arm-linux-tdep.c: Include "osabi.h".
11486 * armnbsd-tdep.c: Include "osabi.h".
11487
11488 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11489 Update call to gdbarch_init_osabi.
11490
11491 * i386-tdep.h: Don't include "osabi.h".
11492 (struct gdbarch_tdep): Remove osabi member.
11493 * i386-tdep.c: Include "osabi.h".
11494 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11495 iterate over arches. Update call to gdbarch_init_osabi.
11496 (i386_dump_tdep): Don't dump osabi.
11497 * i386-linux-tdep.c: Include "osabi.h".
11498 * i386-sol2-tdep.c: Include "osabi.h".
11499 * i386bsd-tdep.c: Include "osabi.h".
11500 * i386gnu-tdep.c: Include "osabi.h".
11501 * i386ly-tdep.c: Include "osabi.h".
11502 * i386nbsd-tdep.c: Include "osabi.h".
11503 * i386obsd-tdep.c: Include "osabi.h".
11504
11505 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11506 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11507 check osabi when iterating over arches. Update call to
11508 gdbarch_init_osabi.
11509 (mips_dump_tdep): Don't dump osabi.
11510
11511 * ns32k-tdep.h: Don't include "osabi.h".
11512 (struct gdbarch_tdep): Remove.
11513 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11514 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11515 allocate tdep. Update call to gdbarch_init_osabi.
11516 (ns32k_dump_tdep): Remove.
11517 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11518 * ns32knbsd-tdep.c: Include "osabi.h".
11519
11520 * ppc-tdep.h: Don't include "osabi.h".
11521 (struct gdbarch_tdep): Remove osabi member.
11522 * rs6000-tdep.c: Include "osabi.h".
11523 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11524 osabi when iterating over arches. Update call to
11525 gdbarch_init_osabi.
11526 (rs6000_dump_tdep): Don't dump osabi.
11527 * ppc-linux-tdep.c: Include "osabi.h".
11528 * ppcnbsd-tdep.c: Include "osabi.h".
11529
11530 * sh-tdep.h: Don't include "osabi.h".
11531 (struct gdbarch_tdep): Remove osabi member.
11532 * sh-tdep.c: Include "osabi.h".
11533 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11534 iterate over arches. Update call to gdbarch_init_osabi.
11535 (sh_dump_tdep): Don't dump osabi.
11536 * shnbsd-tdep.c: Include "osabi.h".
11537
11538 * sparc-tdep.c: Include "osabi.h".
11539 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11540 iterate over arches. Update call to gdbarch_init_osabi.
11541 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11542 tdep structure.
11543
11544 * vax-tdep.h: Don't include "osabi.h".
11545 (struct gdbarch_tdep): Remove.
11546 * vax-tdep.c: Include "osabi.h".
11547 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11548 iterate over arches. Don't allocate tdep. Update call
11549 to gdbarch_init_osabi.
11550 (vax_dump_tdep): Remove.
11551 (_initialize_vax_tdep): Update call to gdbarch_register.
11552
a881cf8e
DJ
115532003-01-04 Daniel Jacobowitz <drow@mvista.com>
11554
11555 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11556 entirely.
11557 (breakpoint_re_set_one): Don't fetch the value for a disabled
11558 watchpoint.
11559
1e698235
DJ
115602003-01-04 Daniel Jacobowitz <drow@mvista.com>
11561
11562 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11563 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11564 (COERCE_FLOAT_TO_DOUBLE): Remove.
11565 * gdbarch.c: Regenerate.
11566 * gdbarch.h: Regenerate.
11567 * Makefile.in: Remove value_h from gdbarch_h.
11568 * valops.c (coerce_float_to_double): New variable.
11569 (default_coerce_float_to_double): Remove.
11570 (standard_coerce_float_to_double): Remove.
11571 (value_arg_coerce): Use coerce_float_to_double.
11572 (_initialize_valops): Add "set coerce-float-to-double".
11573 * value.h (default_coerce_float_to_double): Remove prototype.
11574 (standard_coerce_float_to_double): Remove prototype.
11575
11576 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11577 prototyped.
11578 * mdebugread.c (parse_symbol): Likewise.
11579 * stabsread.c (define_symbol): Mark all functions as prototyped.
11580
11581 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11582 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11583 set_gdbarch_coerce_float_to_double.
11584 * arm-tdep.c (arm_gdbarch_init): Likewise.
11585 * frv-tdep.c (frv_gdbarch_init): Likewise.
11586 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11587 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11588 * mips-tdep.c (mips_gdbarch_init): Likewise.
11589 (mips_coerce_float_to_double): Remove.
11590 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11591 (rs6000_coerce_float_to_double): Remove.
11592 * s390-tdep.c (s390_gdbarch_init): Likewise.
11593 * sh-tdep.c (sh_gdbarch_init): Likewise.
11594 (sh_coerce_float_to_double): Remove.
11595 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11596 (sparc_coerce_float_to_double): Remove.
11597 * v850-tdep.c (v850_gdbarch_init): Likewise.
11598 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11599 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11600 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11601 (hppa_coerce_float_to_double): Remove prototype.
11602 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11603
f436a26a
DJ
116042003-01-04 Daniel Jacobowitz <drow@mvista.com>
11605
11606 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11607
248f8055
DJ
116082003-01-04 Daniel Jacobowitz <drow@mvista.com>
11609
11610 Suggested by Stewart Brown <sb24@avaya.com>:
11611 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11612 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11613 (c_type_print_varspec_suffix): Likewise.
11614
72cfdc76
MK
116152003-01-04 Mark Kettenis <kettenis@gnu.org>
11616
bfd260bb
MK
11617 * configure.in: Don't set and AC_SUBST SUBDIRS.
11618 * configure: Regenerated.
11619
72cfdc76
MK
11620 * configure.in: Remove code dealing with shared libraries.
11621 * Makefile.in: Remove HLDFLAGS and HLDENV.
11622 * configure: Regenerated.
11623
c8b8a898
AC
116242003-01-04 Andrew Cagney <ac131313@redhat.com>
11625
11626 * frame.c (deprecated_frame_xmalloc): New function.
11627 (deprecated_set_frame_saved_regs_hack): New function.
11628 (deprecated_set_frame_extra_info_hack): New function.
11629 * frame.h (deprecated_frame_xmalloc): Declare.
11630 (deprecated_set_frame_saved_regs_hack): Declare.
11631 (deprecated_set_frame_extra_info_hack): Declare.
11632
14abd0fb
MK
116332003-01-04 Mark Kettenis <kettenis@gnu.org>
11634
8ee53726
MK
11635 * configure.in: Move code that provides the --enable-gdbtk option
11636 right after the code that handles the --enable-tui option, and
11637 polish it somewhat.
11638 * configure: Regenerated.
11639
14abd0fb
MK
11640 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11641 AC_CHECK_FUNCS and remove the old check for pread64.
11642 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11643 * acconfig.h (_GNU_SOURCE): Add.
11644 (HAVE_PREAD64): Remove.
11645 * configure, aclocal.m4, config.in: Regenerated.
11646
b2fb4676
AC
116472003-01-03 Andrew Cagney <ac131313@redhat.com>
11648
11649 * alpha-tdep.c: Use get_frame_saved_regs.
11650 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11651 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11652 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11653 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11654 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11655
8dcde887
MK
116562003-01-03 Mark Kettenis <kettenis@gnu.org>
11657
11658 * configure.in: Remove all use of the SUBDIRS variable; add
11659 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11660 code providing the --enable-multi-ice option, and move it right in
11661 front of the code that checks whether gdbserver is supported.
11662 Polish that too.
11663 * configure: Regenerated.
11664 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11665 @SUBDIRS@.
11666
8ccd593b
AC
116672003-01-03 Andrew Cagney <cagney@redhat.com>
11668
11669 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11670 * avr-tdep.c, cris-tdep.c: Ditto.
11671 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11672 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11673
91151a06
MK
116742003-01-03 Mark Kettenis <kettenis@gnu.org>
11675
11676 * configure.in: Remove --enable-netrom option.
11677 * configure: Regenerated.
11678
8fe84d01
MK
116792003-01-03 Mark Kettenis <kettenis@gnu.org>
11680
11681 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11682 declaration for `struct re_pattern_buffer' instead.
11683 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11684
f0394be6
JB
116852003-01-03 J. Brobecker <brobecker@gnat.com>
11686
11687 * mdebugread.c (parse_symbol): Count until the stEnd matching
11688 the structure name.
11689
27e9bf90
MK
116902003-01-02 Mark Kettenis <kettenis@gnu.org>
11691
93d331ba
MK
11692 * configure.in: Remove --with-cpu option.
11693 subscripts. Remove evil changequotes here.
11694 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11695 * config.in, configure: Regenerated.
8ffd9b1b 11696
27e9bf90
MK
11697 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11698 * configure.in: Cleanup section that sources GDB and BFD configure
11699 subscripts. Remove evil changequotes here.
11700 * config.in, configure: Regenerated.
11701
50abf9e5
AC
117022003-01-02 Andrew Cagney <ac131313@redhat.com>
11703
11704 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11705 frame accessor methods.
11706 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11707 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11708 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11709 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11710 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11711 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11712 * z8k-tdep.c: Ditto.
8ffd9b1b 11713
287c1a40
MK
117142003-01-02 Mark Kettenis <kettenis@gnu.org>
11715
f5dbc56d
MK
11716 * configure.in: Remove UI_OUT configuration code.
11717 * ada-lang.c: Update assuming UI_OUT is always true.
11718 * Makefile.in (UIOUT_CFLAGS): Remove.
11719 * configure: Regenerated.
11720 * TODO: Remove blurb about elimination of -DUI_OUT.
11721
627af7ea
MK
11722 * configure.in: Move code that provides the --enable-gdbcli,
11723 --enable-gdbmi options right before the code that handles the
11724 --enable-tui option. Polish a bit.
11725 * configure: Regenerated.
11726
06825bd1
MK
11727 * configure.in: Rewrite check for GNU regex and the
11728 --without-included regex option, and move it into the "Checks for
11729 library functions" section. This makes us use the system regex
11730 again by default on systems with version 2 of the GNU C library.
11731 This was apparently broken.
11732 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11733 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11734 * config.in, configure: Regenerated.
11735
287c1a40
MK
11736 * configure.in: Move code that provides the --enable-tui option
11737 before the "Checks for libraries" section. Polish the code
11738 somewhat and set need_curses to yes if we build the TUI. Rewrite
11739 code that looks for a library providing termcap functionality to
11740 match more closely what's done in the Readline library, and move
11741 it into to the "Checks for libraries" section.
11742 * configure: Regenerated.
11743 * Makefile.in (TERMCAP): Remove variable.
11744 * config/i386/go32.mh (TERMCAP): Remove variable.
11745
684e56bf
AC
117462003-01-02 Andrew Cagney <ac131313@redhat.com>
11747
11748 * MAINTAINERS: Mention gdb_mbuild.sh.
11749 * gdb_mbuild.sh: Rewrite.
11750
e1ea1d75
MK
117512003-01-02 Mark Kettenis <kettenis@gnu.org>
11752
11753 * configure.in: Fix typo in last change.
11754 * config.in, configure: Regenerated.
11755
1b831c93
AC
117562003-01-02 Andrew Cagney <ac131313@redhat.com>
11757
11758 * valarith.c (value_binop): Delete obsolete code and comments.
11759 * configure.host: Ditto.
11760 * buildsym.h (make_blockvector): Ditto.
11761 * buildsym.c (make_blockvector): Ditto.
11762 * defs.h (enum language): Ditto.
11763 (chill_demangle): Ditto.
11764 * elfread.c (elf_symtab_read): Ditto.
11765 * dwarfread.c (CHILL_PRODUCER): Ditto.
11766 (set_cu_language): Ditto.
11767 (handle_producer): Ditto.
11768 * expprint.c (print_subexp): Ditto.
11769 * gdbtypes.c (chill_varying_type): Ditto.
11770 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11771 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11772 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11773 (chill_varying_type): Ditto.
11774 * language.h (_LANG_chill): Ditto.
11775 * language.c (binop_result_type, integral_type): Ditto.
11776 (character_type, string_type, structured_type): Ditto.
11777 (lang_bool_type, binop_type_check): Ditto.
11778 * stabsread.h (os9k_stabs): Ditto.
11779 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11780 (define_symbol, read_type, read_struct_fields): Ditto.
11781 (read_array_type, read_enum_type, read_huge_number): Ditto.
11782 (read_range_type, start_stabs): Ditto.
11783 * symfile.c (init_filename_language_table): Ditto.
11784 (add_psymbol_with_dem_name_to_list): Ditto.
11785 * symtab.c (symbol_init_language_specific): Ditto.
11786 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11787 * symtab.h (struct general_symbol_info): Ditto.
11788 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11789 * typeprint.c (typedef_print): Ditto.
11790 * utils.c (fprintf_symbol_filtered): Ditto.
11791 * valops.c (value_cast, search_struct_field, value_slice): Delete
11792 obsolete code.
11793 (varying_to_slice): Delete function.
11794 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11795 (varying_to_slice): Delete declaration.
11796 * MAINTAINERS: Update.
11797
8bb2c122
MK
117982003-01-02 Mark Kettenis <kettenis@gnu.org>
11799
97bf5e38
MK
11800 * configure.in: Reorganize "Checks for library functions section"
11801 a bit. Remove check for `btowc' and `isascii' functions.
11802 * configure: Regenerated.
11803
5ee754fc
MK
11804 * acconfig.h (_MSE_INT_H): Remove.
11805 * configure.in: Create "Checks for header files" section, and move
11806 appropriate tests there. Don't check for objlist.h, wchar.h,
11807 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11808 misdetection fix. Also add "Checks for types", "Checks for
11809 compiler characteristics" and "Checks for library functions"
11810 sections.
11811 * config.in, configure: Regenerated.
11812
8bb2c122
MK
11813 * configure.in: Create "Checks for programs" section, and move
11814 appropriate tests there.
11815
9a156167
MK
118162003-01-01 Mark Kettenis <kettenis@gnu.org>
11817
11818 * configure.in: Create "Checks for libraries" section, and move
11819 appropriate tests there. Cleanup check for wctype in libw. Use
11820 AC_SEARCH_LIBS to see whether we need libsocket.
11821 * configure: Regenerated.
11822
a80e2bcb 11823For older changes see ChangeLog-2002
c906108c
SS
11824\f
11825Local Variables:
11826mode: change-log
11827left-margin: 8
11828fill-column: 74
11829version-control: never
11830End:
This page took 0.99149 seconds and 4 git commands to generate.