2002-11-14 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c97eb5d9
AC
12002-11-14 Andrew Cagney <ac131313@redhat.com>
2
3 * frame.h: Move the most relevant interface functions to the start
4 of the file.
5
524d7c18
AC
62002-11-14 Andrew Cagney <ac131313@redhat.com>
7
8 * regcache.h (deprecated_registers): Rename registers.
9 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
10 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
11 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
12 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
13 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
14 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
15 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
16 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
17 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
18 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
19 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
20 * v850ice.c: Update.
21
6411e720
AC
22Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
23
24 * utils.c (gdb_realpath): Add comment mentioning realpath with a
25 NULL buffer.
26
73937e03
AC
272002-11-13 Andrew Cagney <cagney@redhat.com>
28
29 * regcache.h (deprecated_read_register_bytes): Rename
30 read_register_bytes.
31 (deprecated_write_register_bytes): Rename write_register_bytes.
32 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
33 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
34 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
35 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
36 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
37 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
38 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
39 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
40 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
41 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
42 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
43 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
44 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
45 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
46
fb0cd46e
JB
472002-11-13 Jim Blandy <jimb@redhat.com>
48
49 * findvar.c (read_var_value): Doc fix.
50
2d28509a
AC
512002-11-13 Andrew Cagney <cagney@redhat.com>
52
53 * regcache.c (struct regcache): Replace passthough_p with
54 readonly_p.
55 (regcache_xmalloc): Initialize readonly_p.
56 (build_regcache): Initialize readonly_p.
57 (regcache_save): New function.
58 (regcache_restore): New function.
59 (regcache_cpy): Re-implement using regcache_save and
60 regcache_restore.
61 (regcache_raw_read): Update.
62 (regcache_cooked_read): When a read-only cache, checked for cached
63 pseudo register values.
64 (regcache_raw_write): Assert that the cache is not read-only.
65 Remove code handling a non-passthrough cache.
66 * regcache.h (regcache_save): Declare.
67 (regcache_restore): Declare.
68
067df2e5
AC
692002-11-13 Andrew Cagney <cagney@redhat.com>
70
71 * regcache.c (struct regcache_descr): Add fields
72 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
73 (init_legacy_regcache_descr): Compute the size of a cooked
74 register cache and then assign that to sizeof_raw_registers. Set
75 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
76 (init_legacy_regcache_descr): Ditto.
77
51b1fe4e
AC
782002-11-13 Andrew Cagney <cagney@redhat.com>
79
80 * regcache.c (register_buffer): Move to near start of file, update
81 description.
82 (regcache_raw_read): Use.
83 (regcache_raw_write): Use.
84 (struct regcache): Rename raw_registers to registers and
85 raw_register_valid_p to register_valid_p.
86 (regcache_xmalloc): Update.
87 (regcache_xfree): Update.
88 (register_buffer): Update.
89 (regcache_cpy): Update.
90 (regcache_cpy_no_passthrough): Update.
91 (regcache_valid_p): Update.
92 (deprecated_grub_regcache_for_registers): Update.
93 (deprecated_grub_regcache_for_register_valid): Update.
94 (set_register_cached): Update.
95 (regcache_raw_write): Update.
96
80b4c677
PM
972002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
98
99 * p-exp.y (name_not_typename): Use copy_name to
100 set current_type variable for fields of THIS.
101
0f3fafde
DJ
1022002-11-12 Daniel Jacobowitz <drow@mvista.com>
103
104 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
105 * monitor.c (init_base_monitor_ops): Likewise.
106 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
107 * remote-array.c (init_array_ops): Likewise.
108 * remote-e7000.c (init_e7000_ops): Likewise.
109 * remote-es.c (init_es1800_ops): Likewise.
110 (init_es1800_child_ops): Likewise.
111 * remote-rdp.c (init_remote_rdp_ops): Likewise.
112 * remote-sim.c (init_gdbsim_ops): Likewise.
113 * remote-st.c (init_st2000_ops): Likewise.
114 * sol-thread.c (init_sol_core_ops): Likewise.
115 (init_sol_thread_ops): Likewise.
116 * v850ice.c (init_850ice_ops): Likewise.
117 * win32-nat.c (init_child_ops): Likewise.
118 * wince.c (init_child_ops): Likewise.
119
82c0260e
AC
1202002-11-12 Andrew Cagney <ac131313@redhat.com>
121
122 * utils.c (gdb_realpath): Make rp a constant pointer.
123
70d35819
AC
1242002-11-12 Andrew Cagney <ac131313@redhat.com>
125
126 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
127 a constant buffer; cannonicalize_file_name(); realpath() with a
128 pathconf() defined buffer, xstrdup().
129
9835a8b0
AC
1302002-11-12 Andrew Cagney <ac131313@redhat.com>
131
132 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
133 to hang2.C; hang3.c to hang3.C.
134
3f47be5c
EZ
1352002-11-11 Elena Zannoni <ezannoni@redhat.com>
136
137 * findvar.c (read_var_value): Reenable TLS code.
138
1392002-11-11 Elena Zannoni <ezannoni@redhat.com>
140 Jim Blandy <jimb@redhat.com>
141
142 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
143 * target.c (update_current_target): Add
144 to_get_thread_local_address.
145 * target.h (to_get_thread_local_address): Export.
146 (target_get_thread_local_address): Define.
147 (target_get_thread_local_address_p): Define.
148 * thread-db.c: Include solib-svr4.h.
149 (td_thr_tls_get_addr_p): Define.
150 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
151 (thread_db_get_thread_local_address): New function.
152 (init_thread_db_ops): Initialize to_get_thread_local_address.
153 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
154 * configure: Regenerate.
155 * config.in: Regenerate.
156
636b1a6d
DC
1572002-11-11 David Carlton <carlton@math.stanford.edu>
158
159 * linespec.c (set_flags): New function.
160 (decode_line_1): Move code into set_flags.
161
44fe14ab
DC
1622002-11-11 David Carlton <carlton@math.stanford.edu>
163
164 * linespec.c (decode_line_1): Move chunks of code to separate
165 functions.
166 (initialize_defaults): New function.
167 (decode_indirect): New function.
168
e6f181f5
AC
1692002-11-11 Andrew Cagney <ac131313@redhat.com>
170
8971b011
AC
171 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
172 instead of void_code_ptr.
173 (sigtramp_saved_pc): Ditto.
174
e6f181f5
AC
175 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
176 i386_fp_regnum_p.
177
01ad7f36
DJ
1782002-11-10 Daniel Jacobowitz <drow@mvista.com>
179
180 * gdbtypes.h (struct main_type): Move artificial flag out of
181 loc. New member of ``struct field'' named static_kind. Reduce
182 overloaded meaning of bitsize.
183 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
184 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
185 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
186
187 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
188 new fields.
189 (template_to_fixed_record_type, template_to_static_fixed_type)
190 (to_record_with_fixed_variant_part): Likewise.
191 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
192 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
193 * dwarfread.c (struct_type, enum_type): Likewise.
194 * hpread.c (hpread_read_enum_type)
195 (hpread_read_function_type, hpread_read_doc_function_type)
196 (hpread_read_struct_type): Likewise.
197 * mdebugread.c (parse_symbol): Likewise.
198
bf1e52be
AC
1992002-11-10 Andrew Cagney <ac131313@redhat.com>
200
201 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
202 * stack.c (print_frame_info_base): Update.
203 (print_frame_info_base, frame_info): Update.
204 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
205 (sparc_frame_saved_pc): Update.
206 * ada-lang.c (find_printable_frame): Update.
207 * breakpoint.c (deprecated_frame_in_dummy): Update.
208
ce556f85
MK
2092002-11-09 Mark Kettenis <kettenis@gnu.org>
210
211 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
212 defined.
213 (regmap): Extend to cover all registers.
214 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
215 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
216 definitions.
217 (fetch_register, sore_register): Simplify.
218 (old_fetch_inferior_registers, old_store_inferior_registers):
219 Remove functions.
220 (cannot_fetch_register, cannot_store_register): Change
221 implementation to use regmap array to decide which registers
222 cannot be fetched/stored. This removes $orig_eax from the
223 registers that cannot be fetched/stored.
224 (fetch_inferior_registers): Call fetch_register directly instead
225 of calling old_fetch_inferior_registers.
226 (store_inferior_registers): Call store_register directly instead
227 of calling old_store_inferior_registers.
228 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
229 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
230 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
231
932bb524
KD
2322002-11-09 Klee Dienes <kdienes@apple.com>
233
234 * i387-tdep.c (i387_supply_register): When called with NULL as a
235 buffer, mark the register as not provided (to mirror the behavior
236 of supply_register).
237 (i387_supply_fxsave): Ditto.
238 (i387_supply_fsave): Ditto (inherits the behavior from
239 i387_supply_register).
240
ebe68b27
KD
2412002-11-09 Klee Dienes <kdienes@apple.com>
242
243 * blockframe.c (sigtramp_saved_pc): Use
244 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
245 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
246 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
247
15220c65
AC
2482002-11-09 Andrew Cagney <ac131313@redhat.com>
249
250 * frame.c (get_prev_frame): Test prev_p to identify a previously
251 unwound frame. Initialize prev_p.
252 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
253 comment.
254
95adb866
AC
2552002-11-09 Andrew Cagney <ac131313@redhat.com>
256
257 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
258 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
259 more comments. Zap dead code.
260
e71ecd70
MK
2612002-11-09 Mark Kettenis <kettenis@gnu.org>
262
263 * infcmd.c (print_vector_info, print_float_info): Move code that
264 checks whether the target has any registers and whether there is a
265 selected frame up, such that it is also used if a target provides
266 multi-arch definitions of these functions.
267
c525330d
AC
2682002-11-08 Andrew Cagney <ac131313@redhat.com>
269
72bdd927
AC
270 * Makefile.in (DESTDIR): Define.
271 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
272 prefix.
273
c525330d
AC
274 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
275 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
276
38c968cf
AC
2772002-11-08 Andrew Cagney <ac131313@redhat.com>
278
279 * i386-linux-tdep.c: Include "reggroups.h".
280 (i386_linux_register_reggroup_p): New function.
281 (i386_linux_init_abi): Set register_reggroup_p to
282 i386_linux_register_reggroup_p.
283 * i386-tdep.h (i386_register_reggroup_p): Declare.
284 * i386-tdep.c: Include "reggroups.h".
285 (i386_init_reggroups): New function.
286 (i386_add_reggroups): New function.
287 (i386_register_reggroup_p): New function.
288 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
289 (_initialize_i386_tdep): Call i386_init_reggroups.
290 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
291 specific reggroups.
292
19e33363
MK
2932002-11-09 Mark Kettenis <kettenis@gnu.org>
294
371a6e84
MK
295 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
296 request that's available in *BSD.
297
94ba925a
MK
298 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
299
19e33363
MK
300 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
301 FDOFF_REGNUM.
302
8779790c
AC
3032002-11-08 Andrew Cagney <ac131313@redhat.com>
304
305 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
306 * dummy-frame.c (find_dummy_frame): Rename
307 generic_find_dummy_frame, make static. Return the dummy frame
308 instead of the regcache.
309 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
310 (cached_find_dummy_frame): New function. Use find_dummy_frame.
311 (dummy_frame_register_unwind): Rename
312 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
313 * dummy-frame.h (dummy_frame_register_unwind): Rename
314 generic_call_dummy_register_unwind.
315
8674b74f
MK
3162002-11-08 Mark Kettenis <kettenis@gnu.org>
317
318 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
319 except the inclusion of "i386/tm-i386.h", to...
320 * config/i386/nm-i386v42mp.h: ...here.
321 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
322
4c1e7e9d
AC
3232002-11-08 Andrew Cagney <ac131313@redhat.com>
324
325 * Makefile.in (frame.o): Update dependencies.
326 * blockframe.c (current_frame, frame_obstack_alloc)
327 (frame_saved_regs_zalloc, get_current_frame)
328 (set_current_frame, create_new_frame)
329 (set_unwind_by_pc, get_next_frame)
330 (flush_cached_frames, reinit_frame_cache)
331 (frame_saved_regs_register_unwind)
332 (deprecated_generic_get_saved_register)
333 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
334 (_initialize_blockframe): Move frame code from here...
335 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
336 "annotate.h" and "dummy-frame.h".
337 (_initialize_frame): New function.
338
921e78cf
JB
3392002-11-08 Jim Blandy <jimb@redhat.com>
340
341 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
342 when we finish a function a context.
343 * buildsym.h (outermost_context_p): New macro.
344 (Bug analyzed by David Edelsohn.)
345
9c1412c1
AC
3462002-11-08 Andrew Cagney <ac131313@redhat.com>
347
348 * blockframe.c: Include "dummy-frame.h".
349 (struct dummy_frame, dummy_frame_stack)
350 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
351 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
352 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
353 (generic_save_call_dummy_addr, generic_pop_current_frame)
354 (generic_pop_dummy_frame, generic_fix_call_dummy)
355 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
356 dummy frame code from here...
357 * dummy-frame.c: ...to here. New file.
358 * dummy-frame.h: New file.
359 (generic_call_dummy_register_unwind): Declare.
360 (generic_find_dummy_frame): Declare.
361 * Makefile.in (SFILES): Add dummy-frame.c.
362 (dummy-frame.o): Specify dependencies.
363 (dummy_frame_h): Define.
364 (COMMON_OBS): Add dummy-frame.o.
365 (blockframe.o): Update dependencies.
366
208d8187
JB
3672002-11-08 Jim Blandy <jimb@redhat.com>
368
369 * dwarf2read.c (read_func_scope): Restore local_symbols and
370 param_symbols after we finish the function context. (Based on a
371 patch from David Edelsohn.)
372
413dad4d
DC
3732002-11-08 David Carlton <carlton@math.stanford.edu>
374
375 * linespec.c (symbol_found): New function.
376 (minsym_found): New function.
377 (decode_line_1): Separate out some code into separate functions.
378
5512c44a
JB
3792002-11-08 Joel Brobecker <brobecker@gnat.com>
380
381 * i386-tdep.c (i386_frameless_signal_p): Make non static for
382 the benefit of the interix target.
383 * i386-tdep.h (i386_frameless_signal_p): Declare.
384
1b33ef47
AC
3852002-11-08 Andrew Cagney <ac131313@redhat.com>
386
387 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
388 declaration that snuck in from change below.
389
23a34459
AC
3902002-11-06 Andrew Cagney <cagney@redhat.com>
391
392 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
393 all callers.
394 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
395 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
396 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
397 (i386_mxcsr_regnum_p): new function. Use instead of
398 MXCSR_REGNUM_P.
399 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
400 (i386_sse_regnum_p): Declare.
401 (i386_mxcsr_regnum_p): Declare.
402 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
403 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
404 (IS_FP_REGNUM): Update definition.
405 (IS_FPU_CTRL_REGNUM): Update definition..
406 (IS_SSE_REGNUM): Update definition..
407 * i386v-nat.c (register_u_addr): Update.
408 * go32-nat.c (fetch_register): Update.
409 (store_register): Update.
410
d709c020
JB
4112002-11-07 Joel Brobecker <brobecker@gnat.com>
412
413 Preparation work to convert the hppa targets to multiarch partial.
414
415 * hppa-tdep.c: Add new functions replacing macro bodies from
416 config/pa/tm-hppa.h. These function will be used to initialize
417 the gdbarch structure. Import some comments from tm-hppa.h,
418 and place them where appropriate, to avoid loosing them when
419 we cleanup this file.
420 (hppa_reg_struct_has_addr): New function.
421 (hppa_inner_than): New function.
422 (hppa_stack_align): New function.
423 (hppa_pc_requires_run_before_use): New function.
424 (hppa_instruction_nullified): New function.
425 (hppa_register_byte): New function.
426 (hppa_register_virtual_type): New function.
427 (hppa_store_struct_return): New function.
428 (hppa_cannot_store_register): New function.
429 (hppa_frame_args_address): New function.
430 (hppa_frame_locals_address): New function.
431 (hppa_smash_text_address): New function.
432 (hppa_coerce_float_to_double): New function. Requires the inclusion
433 of "language.h".
434
435 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
436
437 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
438 gdbarch-eligible macro to a call to the new associated function
439 created in hppa-tdep.c.
440 (INNER_THAN): Likewise.
441 (STACK_ALIGN): Likewise.
442 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
443 (INSTRUCTION_NULLIFIED): Likewise.
444 (REGISTER_BYTE): Likewise.
445 (REGISTER_VIRTUAL_TYPE): Likewise.
446 (STORE_STRUCT_RETURN): Likewise.
447 (CANNOT_STORE_REGISTER): Likewise.
448 (FRAME_ARGS_ADDRESS): Likewise.
449 (FRAME_LOCALS_ADDRESS): Likewise.
450 (SMASH_TEXT_ADDRESS): Likewise.
451 (COERCE_FLOAT_TO_DOUBLE): Likewise.
452 (ABOUT_TO_RETURN): Delete, as no longer used.
453
83c31e7d
FN
4542002-11-07 Fernando Nasser <fnasser@redhat.com>
455
456 * printcmd.c (disassemble_command): Remove obsolete function.
457 (_initialize_printcmd): Do not create disassemble command here.
458 * cli/cli-cmds.c (disassemble_command): New function. Implements
459 disassemble command.
460 (init_cli_cmds): Create disassemble command here instead.
461
0ec30a36
AC
4622002-11-07 Andrew Cagney <ac131313@redhat.com>
463
464 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
465
e600bd34
AC
4662002-11-07 Andrew Cagney <ac131313@redhat.com>
467
468 * regcache.h (regcache_cooked_read_using_offset_hack)
469 (regcache_cooked_write_using_offset_hack): Delete declarations.
470 (register_changed): Delete declaration.
471 * regcache.c (regcache_cooked_read_using_offset_hack)
472 (regcache_cooked_write_using_offset_hack): Delete functions.
473 (cooked_xfer_using_offset_hack): Delete function.
474 (register_changed): Delete function.
475
568f8739
JB
4762002-11-07 Jim Blandy <jimb@redhat.com>
477
478 * macroscope.c: #include "complaints.h".
479 (sal_macro_scope): Cope with filenames that appear in the symtabs,
480 but not in the macro table.
481 * Makefile.in (macroscope.o): Record dependency.
482
b0718b7b
JB
4832002-11-07 Joel Brobecker <brobecker@gnat.com>
484
485 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
486
2b9e5f3f
AC
4872002-11-07 Andrew Cagney <ac131313@redhat.com>
488
489 * regcache.c (deprecated_registers_fetched): Update.
490 * regcache.h (deprecated_registers_fetched): Rename
491 registers_fetched.
492 * remote-vxsparc.c (vx_read_register): Update.
493 * remote-vxmips.c (vx_read_register): Update.
494 * remote-vx68.c (vx_read_register): Update.
495 * irix5-nat.c (fetch_core_registers): Update.
496 * mipsm3-nat.c (fetch_inferior_registers): Update.
497 * sun3-nat.c (fetch_inferior_registers): Update.
498 * symm-nat.c (fetch_inferior_registers): Update.
499 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
500 (fetch_core_registers): Update.
501 (fetch_kcore_registers): Update.
502 * mips-nat.c (fetch_inferior_registers): Update.
503 * corelow.c (get_core_registers): Update.
504 * a68v-nat.c (fetch_inferior_registers): Update.
505
e6e68f1f
JB
5062002-11-06 Joel Brobecker <brobecker@gnat.com>
507
508 Put in place the framework necessary for multiarching the hppa targets.
509 * hppa-tdep.c (hppa_gdbarch_init): New function.
510 (hppa_dump_tdep): New function.
511 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
512 tdep structure dumper.
513 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
514 until the multi-arching conversion has partially been completed.
515
492254e9
AC
5162002-11-06 Andrew Cagney <ac131313@redhat.com>
517
518 * valops.c (value_assign): Merge lval_register case into
519 lval_reg_frame_relative. Use frame_register and
520 regcache_cooked_write instead of get_saved_register and
521 write_register_bytes. After flushing the register cache, try to
522 re-select the selected frame.
523
8262ee23
AC
5242002-11-06 Andrew Cagney <ac131313@redhat.com>
525
526 * regcache.h (deprecated_register_valid): Rename register_valid.
527 * regcache.c: Update.
528 * ia64-aix-nat.c: Update.
529 * i386gnu-nat.c: Update.
530 * alpha-nat.c: Update.
531 * sparc-nat.c: Update.
532 * lynx-nat.c: Update.
533 * remote-mips.c: Update.
534
4facf7e8
JB
5352002-11-06 Joel Brobecker <brobecker@gnat.com>
536
537 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
538 to end of file, to be more consistent with the pratice followed
539 by other targets.
540
f9418c0f
AC
5412002-11-06 Andrew Cagney <ac131313@redhat.com>
542
543 * infcmd.c: Include "reggroups.h" and <ctype.h>.
544 (print_float_info): Print registers in float_reggroup.
545 (print_vector_info): Print registers in vector_reggroup.
546 (default_print_registers_info): When all, print registers in
547 all_reggroup. Otherwize, print registers in general_reggroup.
548 (registers_info): Rewrite. Add support for register groups.
549 Eliminate a goto.
550
3fe235a7
EZ
5512002-11-06 Elena Zannoni <ezannoni@redhat.com>
552
553 * symtab.c (methods_info): Delete. It has been ifdeffed out for
554 ages.
555 (symtab_symbol_info): Remove eons old ifdeffed out code.
556 (_initialize_symtab): Remove prehistoric disabled 'info methods'
557 command.
558
ef944135
TR
5592002-11-06 Theodore A. Roth <troth@openavr.org>
560
561 * c-exp.y: Add missing semi-colons.
562 * f-exp.y: Add missing semi-colons.
563 * m2-exp.y: Add missing semi-colons.
564 * p-exp.y: Add missing semi-colons.
565 Add empty action to start rule to avoid a type clash error when
566 building with bison >= 1.50.
567
f8302a57
JB
5682002-11-06 Jim Blandy <jimb@redhat.com>
569
570 * macrotab.h (struct macro_source_file): Doc fix.
571
6e382aa3
JJ
5722002-11-05 Jeff Johnston <jjohnstn@redhat.com>
573
574 * varobj.c (child_exists, cplus_number_of_children): Change
575 STREQ macro references to strcmp.
576 (cplus_name_of_child): Change code to handle the fact that
577 fields are not necessarily contiguous with regards to their
578 access control. This is a fix for PR gdb/792.
579
a216a322
AC
5802002-11-05 Andrew Cagney <ac131313@redhat.com>
581
582 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
583 * gdbarch.h, gdbarch.c: Regnerate.
584 * frame.h (frame_register): Declare.
585 * frame.c (frame_register): New function.
586 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
587 GET_SAVED_REGISTER, otherwize call
588 generic_unwind_get_saved_register.
589 (frame_register_read): Use frame_register instead of
590 get_saved_register.
591
7d5b6fdd
EZ
5922002-11-05 Elena Zannoni <ezannoni@redhat.com>
593
594 From Jim Ingham <jingham@apple.com>:
595 * event-top.c (gdb_disable_readline): New function.
596 (_initialize_event_loop): Move comment.
597
b7c64260
EZ
5982002-11-05 Elena Zannoni <ezannoni@redhat.com>
599
600 * event-loop.c (start_event_loop): Add comment.
601 Update copyright.
602
c2e1b8f2
AC
6032002-11-05 Andrew Cagney <ac131313@redhat.com>
604
605 * infcmd.c (default_print_registers_info): Do not call
606 PRINT_REGISTER_HOOK.
607
87647bb0
AC
6082002-11-05 Andrew Cagney <ac131313@redhat.com>
609
610 * sparc-tdep.c (sparc_print_register_hook): Make static.
611 (sparc_print_registers_info): New function.
612 (sparc_do_registers_info): New function.
613 (sparclet_print_registers_info): New function.
614 (sparclet_do_registers_info): New function.
615 (do_sparc_print_registers_info): New function.
616 (sparc_print_registers): New static function, clone of infcmd.c's
617 default_print_registers_info.
618 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
619 (sparclet_do_registers_info): Declare.
620 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
621 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
622 Re-define.
623 (sparc_do_registers_info): Declare.
624 (PRINT_REGISTER_HOOK): Delete macro.
625 (sparc_print_register_hook): Delete declaration.
626
8155455b
DC
6272002-11-05 David Carlton <carlton@math.stanford.edu>
628
629 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
630 functions.
631 (lookup_symbol_aux_local): New function.
632 (lookup_symbol_aux_symtabs): New function.
633 (lookup_symbol_aux_psymtabs): New function.
634
29924310
DC
6352002-11-05 David Carlton <carlton@math.stanford.edu>
636
637 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
638 previous values of 'objfile' and 'block'.
639
cc303028
PM
6402002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
641
642 * values.c (value_change_enclosing_type): Set
643 enclosing_type field correctly also for the case where
644 more memory needs to be allocated.
645
1d70089a
MK
6462002-11-03 Mark Kettenis <kettenis@gnu.org>
647
f16a25ae
MK
648 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
649 of puts_filtered.
650
1d70089a
MK
651 * i387-tdep.c (i387_print_float_info): Replace calls to
652 register_read and deprecated_read_register_gen with calls to
653 frame_register_read, and make the necessary adjustments to the
654 surrounding code.
655
7e20f3fb
AC
6562002-11-02 Andrew Cagney <ac131313@redhat.com>
657
658 * gdbarch.sh (register_reggroup_p): Allow default value.
659 * gdbarch.h, gdbarch.c: Regenerate.
660
192dbe33
AC
6612002-11-02 Andrew Cagney <ac131313@redhat.com>
662
663 * regcache.h: Add coment indicating replacements for deprecated
664 functions.
665
b59ff9d5
AC
6662002-11-02 Andrew Cagney <cagney@redhat.com>
667
668 * reggroups.h, reggroups.c: New files.
669 * regcache.c: Include "reggroups.h".
670 (enum regcache_dump_what): Add `regcache_dump_groups'.
671 (regcache_dump): Contract size of the "Type" column. When
672 specified, dump the register's groups.
673 (maintenance_print_register_groups): New function.
674 (_initialize_regcache): Add command `maint print register-groups'.
675 * Makefile.in (COMMON_OBS): Add reggroups.o
676 (SFILES): Add reggroups.c.
677 (reggroups_h): Define.
678 (regcache.o, gdbarch.o): Update dependencies.
679 (reggroups.o): Specify dependencies.
680 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
681 Add opaque declaration for `struct reggroup' in generated .h file.
682 Include "reggroups.h" in generated .c file.
683 gdbarch.h, gdbarch.c: Re-generate.
684
4caf0990
AC
6852002-11-02 Andrew Cagney <cagney@redhat.com>
686
687 * regcache.h (deprecated_read_register_gen): Rename
688 read_register_gen.
689 (deprecated_write_register_gen): Rename write_register_gen.
690 * i387-tdep.c: Update.
691 * x86-64-linux-nat.c: Update
692 * wince.c: Update.
693 * thread-db.c: Update.
694 * win32-nat.c: Update.
695 * mips-tdep.c: Update.
696 * d10v-tdep.c: Update.
697 * cris-tdep.c: Update.
698 * remote-sim.c: Update.
699 * remote-rdi.c: Update.
700 * remote-rdp.c: Update.
701 * frame.c: Update.
702 * target.c: Update.
703 * blockframe.c: Update.
704 * x86-64-tdep.c: Update.
705 * xstormy16-tdep.c: Update.
706 * sh-tdep.c: Update.
707 * s390-tdep.c: Update.
708 * rs6000-tdep.c: Update.
709 * sparc-tdep.c: Update.
710 * i386-tdep.c: Update.
711 * dwarf2cfi.c: Update.
712 * regcache.c: Update.
713
7a7adcdf
JB
7142002-11-01 Joel Brobecker <brobecker@gnat.com>
715
716 New interix-specific files:
717 * config/i386/nm-interix.h: New file.
718 * config/i386/interix.mh: New file.
719 * config/i386/interix.mt: New file.
720 * i386-interix-nat.c: New file.
721 * i386-interix-tdep.c: New file.
722
bdcdd535
AC
7232002-11-01 Andrew Cagney <cagney@redhat.com>
724
725 * frame.h (deprecated_generic_get_saved_register): Rename
726 generic_get_saved_register.
727 * blockframe.c (deprecated_generic_get_saved_register): Update.
728 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
729 (xstormy16_frame_saved_register): Update.
730 * sh-tdep.c (sh_gdbarch_init): Update.
731 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
732 * ia64-tdep.c (ia64_get_saved_register): Update.
733 * cris-tdep.c (cris_gdbarch_init): Update.
734 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
735 * arm-tdep.c (arm_gdbarch_init): Update.
736
2a4b7c45
DJ
7372002-10-31 Daniel Jacobowitz <drow@mvista.com>
738
739 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
740
ef17e74b
DJ
7412002-10-31 Daniel Jacobowitz <drow@mvista.com>
742
743 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
744 trampolines in sigaction.
745
4904ba5b
AC
7462002-10-31 Andrew Cagney <cagney@redhat.com>
747
748 * h8300-tdep.c: Include "gdb_assert.h".
749 (h8300_print_register): Add gdbarch, file and frame parameters.
750 Use frame_read_unsigned_register to read the register's value.
751 Use fprintf_filtered to display output.
752 (h8300_print_registers_info): Replace h8300_do_registers_info.
753 (h8300_gdbarch_init): Set print_registers_info.
754
f908a0eb
AC
7552002-10-31 Andrew Cagney <cagney@redhat.com>
756
757 * frame.c (frame_read_unsigned_register): New function.
758 (frame_read_signed_register): New function.
759 * frame.h (frame_read_unsigned_register): Declare.
760 (frame_read_signed_register): Declare.
761
c5646e11
AC
7622002-10-31 Andrew Cagney <cagney@redhat.com>
763
764 * h8500-tdep.c (h8500_print_registers_info): New static function,
765 clone of infcmd.c's default_print_registers_info.
766 (h8500_do_registers_info): New funtion.
767 (h8500_print_register_hook): Rename print_register_hook, make
768 static.
769
770 * config/h8500/tm-h8500.h: Update copyright.
771 (DEPRECATED_DO_REGISTERS_INFO): Define.
772 (h8500_do_registers_info: Declare.
773 (PRINT_REGISTER_HOOK): Delete macro.
774 (print_register_hook): Delete function.
775
0bdd672b
AC
7762002-10-31 Andrew Cagney <cagney@redhat.com>
777
778 * z8k-tdep.c (z8k_print_register_hook): Make static.
779 (z8k_print_registers_info): New static function, clone of
780 infcmd.c's default_print_registers_info.
781 (z8k_do_registers_info): New function. Wrap
782 z8k_print_registers_info.
783 * config/z8k/tm-z8k.h: Update copyright.
784 (PRINT_REGISTER_HOOK): Delete macro.
785 (z8k_print_register_hook): Delete declaration.
786 (DEPRECATED_DO_REGISTERS_INFO): Define.
787 (z8k_do_registers_info): Declare.
788
bf9c25dc
JB
7892002-10-30 Joel Brobecker <brobecker@gnat.com>
790
791 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
792 as this is already provided by value.h, and was actually causing
793 a compilation error because of a conflict in parameter type
794 declaration due to a missing const keyword.
795 (low_text_segment_addres): Fix a compilation warning.
796
2c665b51
DJ
7972002-10-29 Daniel Jacobowitz <drow@mvista.com>
798
799 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
800 registers without a name.
801 (mips_linux_cannot_store_register): Don't store registers without
802 a name.
803
e70ea697
DC
8042002-10-28 David Carlton <carlton@math.stanford.edu>
805
806 * symtab.c (find_addr_symbol): Delete. (It was already commented
807 out.)
808 * symtab.h: Delete prototype for find_addr_symbol.
809
903ad3a6
AC
8102002-10-26 Andrew Cagney <cagney@redhat.com>
811
812 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
813 DO_REGISTERS_INFO.
814 gdbarch.h, gdbarch.c: Re-generate.
815 * infcmd.c (default_print_registers_info): Update reference.
816 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
817 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
818 * sh-tdep.c (sh_gdbarch_init): Ditto.
819 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
820 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
821
ab91194c
MK
8222002-10-26 Mark Kettenis <kettenis@gnu.org>
823
e3033f15
MK
824 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
825 cfi_init_extra_frame_info.
826 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
827 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
828
b83b026c
MK
829 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
830 target where necessary. Add more comments and remove the ones
831 that don't provide any useful information.
832
267bf4bb
MK
833 * i386-tdep.c (i386_frame_saved_pc): Replace call to
834 deprecated_read_register_dummy with
835 frame_unwind_unsigned_register.
836
751f1375
MK
837 * i386-tdep.c (i386_extract_struct_value_address): Use
838 regcache_raw_read_unsigned instead of
839 regcache_cooked_read_unsigned since we know that the register
840 we're reading isn't a pseudo register. Rename variable 'val' into
841 the more descriptive 'addr'.
842
26abbdc4
MK
843 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
844 (x86_64_push_return_address): Add comment.
845 (x86_64_pop_frame): Make static.
846 (examine_argument): Clarify comment.
847 (x86_64_skip_prologue): Make prolog_expact variable static.
848
9f1549cc
MK
849 * dwarf2cfi.c: Fix some formatting problems.
850 (context_cpy, read_encoded_pointer): Clarify comments.
851
ab91194c
MK
852 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
853 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
854 i386 target back into x86_64_gdbarch_init. Add some comments and
855 remove meaningless ones.
856
72367fb4
AC
8572002-10-25 Andrew Cagney <cagney@redhat.com>
858
859 * complaints.h (struct deprecated_complaint): Rename `struct
860 complaint'.
861 * complaints.c (complain): Update.
862 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
863 incorrect comment indicating that "symfile.h" was being included
864 for the `struct complaint' definition.
865 * remote-vx.c: Update.
866 * objc-lang.c: Update.
867 * xcoffread.c: Update.
868 * hpread.c: Update.
869 * mdebugread.c: Update.
870 * stabsread.c: Update.
871 * dwarf2read.c: Update.
872 * dwarfread.c: Update.
873 * elfread.c: Update.
874 * coffread.c: Update.
875 * stabsread.h: Update.
876 * dbxread.c: Update.
877 * buildsym.c: Update.
878 * gdbtypes.c: Update.
879 * macrotab.c: Update.
880
1f2baacc
MK
8812002-10-25 Mark Kettenis <kettenis@gnu.org>
882
0c1a73d6
MK
883 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
884 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
885 (x86_64_init_abi): ...new function.
886
6aee4d54 887 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
888 * i386v-nat.c: Include "i386-tdep.h".
889
8f9cbe01
AC
8902002-10-25 Andrew Cagney <cagney@redhat.com>
891
5f11f355
AC
892 * gdbtypes.c (address_space_name_to_int): Update.
893 (address_space_int_to_name): Update.
894 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
895 multi-arch predicate.
896 (address_class_name_to_type_flags): Ditto.
897 * gdbarch.h, gdbarch.c: Re-generate.
898
8f9cbe01
AC
899 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
900
e8d96a5d
MH
9012002-10-24 Martin M. Hunt <hunt@redhat.com>
902
903 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
904
fe39c653
EZ
9052002-10-24 Elena Zannoni <ezannoni@redhat.com>
906
907 * symtab.h (INIT_SAL): Delete macro.
908 (init_sal): Export.
909 * symtab.c (init_sal): New function.
910
911 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
912 to init_sal function call.
913 (find_sal_from_funcs_and_line): Ditto.
914 (all_sals_for_line): Ditto.
915 * breakpoint.c (create_internal_breakpoint): Ditto.
916 (create_fork_vfork_event_catchpoint): Ditto.
917 (create_exec_event_catchpoint): Ditto.
918 (parse_breakpoint_sals): Ditto.
919 (watch_command_1): Ditto.
920 (handle_gnu_4_16_catch_command): Ditto.
921 (clear_command): Ditto.
922 * hppa-tdep.c (child_enable_exception_callback): Ditto.
923 * infcmd.c (run_stack_dummy): Ditto.
924 * infrun.c (process_event_stop_test): Ditto.
925 (check_sigtramp2): Ditto.
926 (step_over_function): Ditto.
927 * linespec.c (decode_line_2): Ditto.
928 (decode_line_1): Ditto.
929 * source.c (line_info): Ditto.
930 * symtab.c (find_pc_sect_line): Ditto.
931
baed091b
ML
9322002-10-24 Michal Ludvig <mludvig@suse.cz>
933
934 * dwarf2cfi.c (struct context)
935 (struct context_reg): Moved to dwarf2cfi.h
936 (context_alloc, frame_state_alloc, context_cpy):
937 Made extern instead of static, removed prototypes.
938 * dwarf2cfi.h (struct context)
939 (struct context_reg): New, moved from dwarf2cfi.c
940 (context_alloc, frame_state_alloc, context_cpy):
941 New prototypes.
942 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
943 Changed from static to extern.
944 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
945 (LINUX_SIGCONTEXT_FP_OFFSET)
946 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
947 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
948 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
949 * x86-64-tdep.c (x86_64_gdbarch_init): Several
950 set_gdbarch_*() calls now use x86-64 specific functions
951 instead of DWARF2 CFI ones.
952 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
953 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
954 (x86_64_init_extra_frame_info): New prototypes.
955
c38da1af
DC
9562002-10-23 David Carlton <carlton@math.stanford.edu>
957
958 * linespec.c: #include "parser-defs.h".
959 Delete prototype for find_template_name_end.
960 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
961
fb9b6b35
JJ
9622002-10-23 Jeff Johnston <jjohnstn@redhat.com>
963
964 * NEWS: add recent mi fixes.
965 * varobj.c (struct varobj): Add new "updated" flag.
966 (new_variable): Default "updated" flag to 0.
967 (varobj_set_value): Set "updated" flag to 1 if value
968 changes.
969 (varobj_update): Check varobj "updated" flag before
970 comparing old and refreshed values. Fix for
971 PR gdb/702.
972
8da065d5
DC
9732002-10-23 David Carlton <carlton@math.stanford.edu>
974
975 * parse.c (parse_exp_1): Use BLOCK_START.
976 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
977 SYMBOL_BLOCK_VALUE.
978 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
979
87f2f08c
DC
9802002-10-23 David Carlton <carlton@math.stanford.edu>
981
982 * symtab.c: Delete cplusplus_hint.
983 Delete prototype for find_template_name_end.
984
88cda038
EZ
9852002-10-23 Elena Zannoni <ezannoni@redhat.com>
986
987 * symtab.h: Update comment.
988
2625d86c
MS
9892002-10-23 Michael Snyder <msnyder@redhat.com>
990
991 * printcmd.c (address_info): Restore quotes in output.
992 * valops.c (value_of_local): Restore quotes in error message.
993
9cc0d196
EZ
9942002-10-23 Elena Zannoni <ezannoni@redhat.com>
995
996 * symtab.c (symbol_demangled_name): New function.
997 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
998 turning most of it into a function.
999 (symbol_demangled_name): Export.
1000
19de93d0
MS
10012002-10-23 Michael Snyder <msnyder@redhat.com>
1002
1003 * valops.c (value_of_local): Restore quotes in error message.
1004
89aad1f9
EZ
10052002-10-23 Elena Zannoni <ezannoni@redhat.com>
1006
1007 * symtab.c (symbol_init_language_specific): New function.
1008 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1009 turning most of it into a function.
1010 (symbol_init_language_specific): Export.
1011
d9fa45fe
DC
10122002-10-23 David Carlton <carlton@math.stanford.edu>
1013
1014 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1015 (dwarf_attr_name): Ditto.
1016 (dwarf_type_encoding_name): Ditto.
1017 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1018 (process_die): Handle DW_TAG_namespace,
1019 DW_TAG_imported_declaration, DW_TAG_imported_module.
1020 (read_namespace): New function.
1021
1045b512
JB
10222002-10-22 Joel Brobecker <brobecker@gnat.com>
1023
1024 * configure.in: Define NEW_PROC_API on Interix too.
1025 * configure: Regenerate.
1026
10272002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
1028
1029 * configure: Regenerate using the proper version of autoconf.
1030
3987b9d4
EZ
10312002-10-21 Elena Zannoni <ezannoni@redhat.com>
1032
1033 * findvar.c (read_var_value): Temporarily disable TLS code, until
1034 complete TLS support is added.
1035
9d774e44
EZ
10362002-10-21 Jim Blandy <jimb@redhat.com>
1037 Elena Zannoni <ezannoni@redhat.com>
1038
1039 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1040 for thread local storage locations.
1041 (struct symbol): Add objfile field.
1042 (SYMBOL_OBJFILE): Define.
1043 * dwarf2read.c (is_thread_local): New static variable.
1044 (new_symbol): If variable is in thread local fill in address class
1045 and objfile appropriately.
1046 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1047 stack operation.
1048 * printcmd.c (address_info): Print the information for thread
1049 local storage variable.
1050 * findvar.c (read_var_value): In case of thread local variable,
1051 defer to the target vector code to compute address.
1052
bc4a16ae
EZ
10532002-10-21 Elena Zannoni <ezannoni@redhat.com>
1054
1055 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1056 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1057
407caf07
EZ
10582002-10-21 Elena Zannoni <ezannoni@redhat.com>
1059
1060 * symtab.h (address_class): Rename
1061 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1062 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1063 * printcmd.c (address_info): Ditto.
1064 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1065
005328e3
MK
10662002-10-20 Mark Kettenis <kettenis@gnu.org>
1067
afdb036a
MK
1068 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1069 DBREG_DRX macro to acces debug registers.
1070
ca02e098
MK
1071 * Makefile.in (i386obsd-tdep.o): New target.
1072
03cc47f7
MK
1073 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1074 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1075
005328e3
MK
1076 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1077 * config/i386/obsd.mt: New file.
1078 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1079 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1080 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1081 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1082 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1083 * i386obsd-tdep.c: New file.
1084
9c96f9f2
AF
10852002-10-19 Adam Fedor <fedor@gnu.org>
1086
1087 * objc-exp.y (name_not_typename): Fix invalid comment.
1088
ce1ed485
MK
10892002-10-20 Mark Kettenis <kettenis@gnu.org>
1090
1091 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1092 to allocate partial syms and macro byte caches.
1093
1efc7aaa
DC
10942002-10-18 David Carlton <carlton@math.stanford.edu>
1095
1096 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1097
7e1d63ec
AF
10982002-10-18 Adam Fedor <fedor@gnu.org>
1099
1100 * stabsread.c (find_name_end): New function.
1101 (define_symbol): Use it.
1102
6e8d29a9
DJ
11032002-10-18 Daniel Jacobowitz <drow@mvista.com>
1104
1105 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1106 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1107 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1108 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1109
1efc7aaa 11102002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
1111
1112 * symfile.h: Add opaque declaration for struct obstack.
1113 Declare obsavestring to take a const char *.
1114 * symfile.c (obsavestring): Make first argument a const char *.
1115
1aeae86e
AF
11162002-10-16 Adam Fedor <fedor@gnu.org>
1117
1118 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1119 names when matching breakpoints in current file.
1120
8b2dbe47
KB
11212002-10-16 Kevin Buettner <kevinb@redhat.com>
1122
1123 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1124 (read_tag_pointer_type): Add address class support.
1125 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1126 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1127 New methods.
1128 * gdbarch.h, gdbarch.c: Regenerate.
1129 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1130 (make_type_with_address_space, recursive_type_dump): Add address
1131 class support.
1132 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1133 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1134 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1135
74451869
KD
11362002-10-16 Klee Dienes <kdienes@apple.com>
1137
1138 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1139 to get the last character of a char[] buffer, not
1140 name[sizeof(vptr_name)-1].
1141
ff4cb3e8
AF
11422002-10-14 Adam Fedor <fedor@gnu.org>
1143
1144 * symtab.h: New objc_specific struct.
1145 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1146 (SYMBOL_DEMANGLED_NAME): Likewise.
1147
da2cf7e0
AF
11482002-10-14 Adam Fedor <fedor@gnu.org>
1149
1150 * symfile.c (init_filename_language_table): Add ObjC file extension.
1151
4a351cef
AF
11522002-10-14 Adam Fedor <fedor@gnu.org>
1153
1154 * utils.c (puts_filtered_tabular): New function.
1155 (fprintf_symbol_filtered): Get ObjC demangled name.
1156 * defs.h (puts_filtered_tabular): Declared.
1157
9750e763
KB
11582002-10-14 Kevin Buettner <kevinb@redhat.com>
1159
1160 * c-lang.h (c_type_print_varspec_prefix): Delete.
1161 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1162 ``need_post_space'' parameter. Adjust all callers.
1163
eee771c1
DJ
11642002-10-14 Daniel Jacobowitz <drow@mvista.com>
1165
1166 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1167 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1168 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1169 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1170
46c82446
AF
11712002-10-13 Adam Fedor <fedor@gnu.org>
1172
1173 * source.c (print_source_lines): Update comments.
1174
d069f99d
AF
11752002-10-13 Adam Fedor <fedor@gnu.org>
1176
1177 * valops.c (value_of_local): New function.
1178 (value_of_this): Use it.
1179 * value.h (value_of_local): Declared.
1180
53c551b7
AF
11812002-10-13 Adam Fedor <fedor@gnu.org>
1182
1183 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1184 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1185
eb392fbf
AF
11862002-10-12 Adam Fedor <fedor@gnu.org>
1187
1188 * language.c (binop_result_type): Add language_objc to case.
1189 (integral_type): Likewise.
1190 (character_type): Likewise.
1191 (string_type): Likewise.
1192 (boolean_type): Likewise.
1193 (structured_type): Likewise.
1194 (binop_type_check): Likewise.
1195
e2b23ee9
AF
11962002-10-11 Adam Fedor <fedor@gnu.org>
1197
1198 * printcmd.c (address_info): Print 'self' for ObjC.
1199
b01ab485
AF
12002002-10-11 Adam Fedor <fedor@gnu.org>
1201
1202 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1203 OP_SELF.
1204
806e6073
AF
12052002-10-11 Adam Fedor <fedor@gnu.org>
1206
1207 * language.h (CAST_IS_CONVERSION): Add language_objc.
1208
50f85cdf
AF
12092002-10-11 Adam Fedor <fedor@gnu.org>
1210
1211 * defs.h (enum language): Add language_objc.
1212
0d540cdf
KD
12132002-10-11 Klee Dienes <kdienes@apple.com>
1214
69266111 1215 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
1216 * gdbcore.h (read_memory_typed_address): Add prototype.
1217 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1218 to read a value destined for a CORE_ADDR, not read_memory_integer.
1219 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1220 (f77_get_dynamic_lowerbound): Ditto.
1221
d5dc7960
MH
12222002-10-11 Martin M. Hunt <hunt@redhat.com>
1223
1224 * utils.c (string_to_core_addr): After turning string into
1225 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1226 which will do necessary sign-extension, etc.
1227
8343f86c
DJ
12282002-10-11 Daniel Jacobowitz <drow@mvista.com>
1229
1230 * c-exp.y (THIS): Delete token and grammar rule.
1231 (yylex): Don't return THIS.
1232 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1233 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1234 * demangle.c (cplus_markers): Update comment. Put '$'
1235 first. Remove CPLUS_MARKER.
1236 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1237 * jv-exp.y (THIS): Delete token and grammar rule.
1238 (yylex): Don't return THIS.
1239 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1240 * objc-exp.y (THIS): Delete token and grammar rule.
1241 (yylex): Don't return THIS.
1242 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1243 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1244 (read_member_functions): Likewise for opname.
1245 (read_tilde_fields): Use is_cplus_marker.
1246
1247 * defs.h (CPLUS_MARKER): Don't define.
1248 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1249 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1250 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1251 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1252 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1253
1254 * config/i386/tm-i386v4.h: Delete file.
1255 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1256 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1257 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1258 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1259 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1260 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1261 * config/i386/i386v4.mt (TM_FILE): Likewise.
1262 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1263
967c0d83
MM
12642002-10-10 Marko Mlinar <markom@opencores.org>
1265
1266 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1267 accidentially not commited 2002-10-09
1268 * gdbarch.h, gdbarch.c: Re-generate.
1269
f74fa174
MM
12702002-10-09 Marko Mlinar <markom@opencores.org>
1271
1272 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1273 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1274 * gdbarch.h, gdbarch.c: Re-generate.
1275
57349743
JB
12762002-10-08 Petr Sorfa <petrs@caldera.com>
1277
1278 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1279
1280 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1281 so we can work on more than one compilation unit at a time. This
1282 helps prepare GDB to handle inter-CU die references.
1283 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1284 the code to be defined before struct comp_unit_head.
1285 (comp_unit_head): Added new members - offset, cu_head,
1286 begin_die, next and dwarf2_abbrevs.
1287 (dwarf2_abbrevs): Removed single static var; now member of
1288 struct comp_unit_head.
1289 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1290 members.
1291 (psymtab_to_symtab_1): Changed to work with the new
1292 struct comp_unit_head.
1293 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1294 constructs the dwarf2_abbrevs[] inside the cu_header.
1295 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1296 dwarf2_abbrev table to clean up.
1297 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1298 handling of dwarf2_abbrevs inside the cu_header.
1299 (read_partial_die): Now supports the call to the new
1300 dwarf2_lookup_abbrev.
1301 (read_full_die): Now supports the call to the new
1302 dwarf2_lookup_abbrev.
1303
4092aadb
CF
13042002-10-06 Christopher Faylor <cgf@redhat.com>
1305
1306 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1307 insure that shell variables, such as "transformed_name" are propagated
1308 to later shell statements in rule.
1309
af0b2512
MK
13102002-10-06 Mark Kettenis <kettenis@gnu.org>
1311
1312 * config/i386/nm-i386sco.h: Add protection against
1313 multiple-inclusion. Include "i386/nm-i386v.h".
1314 (REGISTER_U_ADDR): Remove define.
1315 (i386_register_u_addr): Remove prototype.
1316
d6020d45
MS
13172002-10-04 Michael Snyder <msnyder@redhat.com>
1318
1319 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1320 before treating it as a single-step event.
1321
7248f48e
AF
13222002-10-03 Adam Fedor <fedor@gnu.org>
1323
1324 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1325 (objc_demangle): Remove assignment in if statements, Replace
1326 free with xfree.
1327 (add_msglist): Likewise.
1328 (end_msglist): Likewise.
1329 (complare_selectors): Likewise.
1330 (selectors_info): Likewise.
1331 (compare_classes): Likewise.
1332 (classes_info): Likewise.
1333 (print_object_command): Likewise.
1334 (find_objc_msgcall_submethod): Replace PTR with void *.
1335 * objc-lang.h: Remove check for __STDC__.
1336
52c6a6ac
JJ
13372002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1338
1339 * ui-out.h (ui_out_field_fmt_int): New prototype.
1340 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1341 of field width and alignment.
1342 * stack.c (print_frame_info_base): When printing frame level, use
1343 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1344 PR gdb/192
1345
7e3cec17
JJ
13462002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1347
1348 * MAINTAINERS: Add self to Write After Approval list.
1349
a58dd373
EZ
13502002-10-02 Elena Zannoni <ezannoni@redhat.com>
1351
1352 * infcmd.c (interrupt_target_command_wrapper): Delete.
1353 (interrupt_target_command): Make non static.
1354 (nofp_registers_info): Make static.
1355 * stack.c (return_command_wrapper): Delete.
1356 (return_command): Make non static.
1357
cee6ddeb
EZ
13582002-10-02 Elena Zannoni <ezannoni@redhat.com>
1359
1360 * event-top.c (gdb_setup_readline): New function. Code moved from
1361 _initialize_event_loop().
1362 (_initialize_event_loop): Call gdb_setup_readline().
1363
c4ed33b9
AC
13642002-10-02 Andrew Cagney <ac131313@redhat.com>
1365
1366 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1367 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1368 * gdbarch.h, gdbarch.c: Re-generate.
1369
cef4f5dd
DJ
13702002-10-02 Daniel Jacobowitz <drow@mvista.com>
1371
1372 Fix PR gdb/778
1373 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1374 before recursing.
1375 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1376 of fill_in_vptr_fieldno.
1377
36dc181b 13782002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 1379
36dc181b
EZ
1380 * inferior.h (registers_info, stepi_command, nexti_command,
1381 continue_command, interrupt_target_command): Export from infcmd.c.
1382 * frame.h (args_info, selected_frame_level_changed_hook,
1383 return_command): Export from stack.c.
1384 * v850ice.c (stepi_command, nexti_command, continue_command): use
1385 prototypes from inferior.h.
1386 * tracepoint.c (registers_info, args_info, locals_info): Use
1387 prototypes from frame.h and inferior.h.
1388 * Makefile.in (mi-main.o): Add dependency on frame.h.
1389
6f99cb26
AC
13902002-10-02 Andrew Cagney <ac131313@redhat.com>
1391
da3eff49
AC
1392 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1393 value in register 3 adjusted by ppc_gp0_regnum.
1394
6f99cb26
AC
1395 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1396
da615bee
MM
13972002-10-02 Marko Mlinar <markom@opencores.org>
1398
1399 * MAINTAINERS: Add myself to the Write After Approval list.
1400
d154bee2
AO
14012002-10-01 Alexandre Oliva <aoliva@redhat.com>
1402
62a49b2c
AO
1403 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1404 of the section for the N64 ABI, fixed.
1405
d154bee2
AO
1406 * config/mips/tm-irix6.h: Include solib.h.
1407
ed348acc
EZ
14082002-10-01 Elena Zannoni <ezannoni@redhat.com>
1409
1410 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1411 GNU operators.
1412
da0f9dcd
AC
14132002-10-01 Andrew Cagney <ac131313@redhat.com>
1414
1415 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1416 and that "mi0" syntax has been removed.
1417
bdf64bac
DC
14182002-09-30 David Carlton <carlton@math.stanford.edu>
1419
1420 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1421 * ppc-sysv-tdep.c: #include "gdb_string.h".
1422 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1423 pacify GCC.
1424
54c2a1e6
AC
14252002-10-01 Andrew Cagney <ac131313@redhat.com>
1426
1427 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1428 "vrsave"'s register number.
1429
cedea778
AC
14302002-09-30 Andrew Cagney <ac131313@redhat.com>
1431
1432 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1433 use frame_unwind_signed_register to obtain the PC.
1434 (mips_frame_chain): Handle a generic dummy frame.
1435 (mips_init_extra_frame_info): When a generic dummy frame, don't
1436 re-compute the frame base.
1437 (mips_pop_frame): Handle generic dummy frames.
1438 (mips_gdbarch_init): When generic dummy frames, set
1439 use_generic_dummy_frames, push_dummy_frame to
1440 generic_push_dummy_frame, pc_in_call_dummy to
1441 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1442 generic_save_dummy_frame_tos.
1443
68315eb8
AC
14442002-09-30 Andrew Cagney <ac131313@redhat.com>
1445
1446 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1447 against TOP when TOP was explictly set.
1448 (generic_push_dummy_frame): Set TOP to zero.
1449
3b8630c3
EZ
14502002-09-30 Elena Zannoni <ezannoni@redhat.com>
1451
1452 * event-loop.c (start_event_loop): Rename variable 'result' to
1453 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1454
28ee05e9
KS
14552002-09-30 Keith Seitz <keiths@redhat.com>
1456
1457 * gdb-events.sh (selected_thread_changed): New event.
1458 * gdb-events.c: Regenerated.
1459 * gdb-events.h: Regenerated.
1460
6eecb1c8
HPN
14612002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1462
1463 * MAINTAINERS: Add self to Write After Approval list.
1464
92df71f0
FN
14652002-09-30 Fernando Nasser <fnasser@redhat.com>
1466
3b8630c3
EZ
1467 * disasm.c: New file.
1468 * disasm.h: New file.
92df71f0
FN
1469 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1470 (compare_lines): Ditto.
1471 (dump_insns): Ditto.
3b8630c3
EZ
1472 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1473 argument.
92df71f0 1474 (do_assembly_only): Ditto.
3b8630c3
EZ
1475 (do_disassembly): Renamed to gdb_disassembly and moved to
1476 disasm.c. Sdded uiout argument.
1477 * Makefile.in: Add new files. Reorder SFILES list. Update
1478 dependencies. Include libgdb.a later in the insight executable.
92df71f0 1479
0c22854d
AC
14802002-09-29 Andrew Cagney <ac131313@redhat.com>
1481
1482 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1483 bfd/elf64-alpha-fbsd.c.
1484
e67f2023
AC
14852002-09-29 Andrew Cagney <ac131313@redhat.com>
1486
1487 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1488 i386gnu-tdep.c.
1489
89396210
AC
14902002-09-29 Andrew Cagney <ac131313@redhat.com>
1491
1492 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1493 __FUNCTION__.
1494 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1495 function name.
1496 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1497 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1498 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1499 (S_msg_sig_post_reply): Ditto.
1500
7079c36c
CV
15012002-09-28 Corinna Vinschen <vinschen@redhat.com>
1502
89396210
AC
1503 * sh-tdep.c (sh_use_struct_convention): Use definition according
1504 to ABI.
7079c36c
CV
1505 (sh_push_arguments): Store in register with correct endianess.
1506 (sh_default_store_return_value): Ditto.
1507 (sh_gdbarch_init): Set sizeof long double to 8.
1508
975ac915
MK
15092002-09-27 Mark Kettenis <kettenis@gnu.org>
1510
1511 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1512 Fix some whitespace problems.
1513
9bbe19fb
DC
15142002-09-27 David Carlton <carlton@math.stanford.edu>
1515
1516 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1517 (mcore-tdep.o): Ditto.
1518 (ns32k-tdep.o): Ditto.
1519 (ns32knbsd-tdep.o): Ditto.
1520 (sh3-rom.o): Ditto.
1521 (vax-tdep.o): Ditto.
1522 * cris-tdep.c: #include "gdb_string.h"
1523 * mcore-tdep.c: Ditto.
1524 * ns32k-tdep.c: Ditto.
1525 * ns32knbsd-tdep.c: Ditto.
1526 * sh3-rom.c: Ditto.
1527 * vax-tdep.c: Ditto.
1528
43b2fdc7
DC
15292002-09-27 David Carlton <carlton@math.stanford.edu>
1530
1531 * config/djgpp/fnchange.lst: Add entries for
1532 gdb/testsuite/gdb.c++/m-static files.
1533
e8cfbbd9
JW
15342002-09-27 Jim Wilson <wilson@redhat.com>
1535
1536 * MAINTAINERS: Add myself to the Write After Approval list.
1537
43b2fdc7 15382002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
1539
1540 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1541
1542
9f3b7f07
AC
15432002-09-26 Andrew Cagney <ac131313@redhat.com>
1544
1545 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1546 frame.
1547
11269d7e
AC
15482002-09-26 Andrew Cagney <ac131313@redhat.com>
1549
1550 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1551 (rs6000_struct_return_address): Delete variable.
1552 (rs6000_store_struct_return): Update.
1553 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1554 deprecated_extract_struct_value_address.
1555 (rs6000_frame_align): New function.
1556 (rs6000_gdbarch_init): Set frame_align.
1557
f15ab4a7
AC
15582002-09-26 Andrew Cagney <ac131313@redhat.com>
1559
1560 From Grace Sainsbury <graces@redhat.com>:
1561 * Makefile.in (gdbtk-main.o): New target.
1562 (gdb.o): New target.
1563 (main_h): Define.
1564 (main.o): Update dependencies.
1565 (gdb$(EXEEXT)): Add gdb.o.
1566 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1567 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1568 (SUBDIR_GDBTK_CLEAN): Set.
1569 (install-gdbtk): Install the insight binary.
1570 (uninstall-gdbtk): New target.
1571 (all-gdbtk, clean-gdbtk): New rule.
1572 * top.c (use_windows): Default to zero.
1573 * main.c: Include "main.h".
1574 (main): Delete.
1575 (struct captured_main_args): Delete.
1576 (gdb_main): New function.
1577 * main.h: New file.
1578 * gdb.c: New File.
1579
e36180d7
AC
15802002-09-25 Andrew Cagney <cagney@redhat.com>
1581
1582 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1583 (frame_map_regnum_to_name): New function.
1584 (frame_map_name_to_regnum): New function.
1585 * frame.h (frame_map_name_to_regnum): Declare.
1586 (frame_map_regnum_to_name): Declare.
1587 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1588 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1589 * parse.c: Do not include "builtin-regs.h".
1590 (target_map_name_to_register): Delete function.
1591 (write_dollar_variable): Use frame_map_name_to_regnum.
1592 * parser-defs.h (target_map_name_to_register): Delete declaration.
1593 * expprint.c: Include "frame.h".
1594 (print_subexp): Use frame_map_regnum_to_name.
1595 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1596 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1597
8b69000d
AC
15982002-09-25 Andrew Cagney <ac131313@redhat.com>
1599
1600 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1601 wasn't saved, and the next innermost frame is a dummy, return the
1602 dummy frame's link register.
1603
046ca86a
JB
16042002-09-24 Jim Blandy <jimb@redhat.com>
1605
1606 Fix from Paul Breed:
1607 * main.c (captured_main): Add a `break' after the case for 'b'.
1608
94b66fa7
KS
16092002-09-24 Keith Seitz <keiths@redhat.com>
1610
1611 * varobj.c (c_type_of_child): Use get_target_type instead
1612 of TYPE_TARGET_TYPE.
1613
c214a6fd
FN
16142002-09-22 Fernando Nasser <fnasser@redhat.com>
1615
53cb0458
FN
1616 * source.c (get_current_or_default_source_symtab_and_line): Remove
1617 function.
1618 (set_default_source_symtab_and_line): New function. Attempts to
1619 determine a source file to list lines from if one is not currently
1620 defined.
1621 (get_current_source_symtab_and_line): Initialize sal.pc and
1622 sal.end fields.
1623 (set_current_source_symtab_and_line): Mark argument as const.
1624 * source.h: Update declarations and comments.
1625 * linespec.c (decode_line_1): Replace call to removed routine above.
1626 * stack.c (print_frame_info_base): Ditto.
1627 * cli/cli-cmds.c (edit_command): Ditto.
1628 (list_command): Ditto.
1629
16302002-09-22 Fernando Nasser <fnasser@redhat.com>
1631
d6020d45 1632 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 1633 sal.pc and sal.end fields.
c214a6fd
FN
1634 (get_current_or_default_source_symtab_and_line): Ditto.
1635 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1636 so we do not cause a new source symtab to be searched for (reverting an
1637 unintentional change from the 2002-09-20 patch).
1638 * scm-lang.c (scm_unpac): Ditto.
1639
cc3b68a5
AC
16402002-09-21 Andrew Cagney <cagney@redhat.com>
1641
1642 * complaints.c (symfile_explanations): Remove new-line from
1643 ``isolated_message''.
1644 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1645 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1646
5835abe7
NC
16472002-09-20 Nick Clifton <nickc@redhat.com>
1648
1649 * NEWS: Announce that V850EA ISA is no longer supported.
1650 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1651
a15ef5f5
DC
16522002-09-20 David Carlton <carlton@math.stanford.edu>
1653
06ba1b39
DC
1654 * Makefile.in (c-lang.o): Correct dependencies.
1655 (utils.o): Gather dependencies.
1656 (charset.o): Move.
a15ef5f5
DC
1657 * c-lang.c: #include "gdb_string.h"
1658
87885426
FN
16592002-09-20 Fernando Nasser <fnasser@redhat.com>
1660
1661 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1662 * cli/cli-cmds.c (list_command): New function. Implements the new
1663 cli edit command.
1664 (_init_cli_cmds): Add new command definition.
1665 * gdb.1: Document edit command.
1666 * doc/gdb.texinfo: Document edit command.
1667
16682002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
1669
1670 * source.c: Make global variables current_source_symtab and
1671 current_source_line static.
1672 (list_command): Moved to cli/cli-cmds.c.
1673 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1674 (get_first_line_listed): New accessor function.
1675 (get_lines_to_list): New accessor function.
1676 (get_current_source_symtab_and_line): New function. Retrieves the
1677 position in the source code that we consider current.
1678 (get_current_or_default_source_symtab_and_line): New function.
1679 Like the above but attempts to determine a default position if one
1680 is not currently defined.
1681 (set_current_source_symtab_and_line): New function. Sets the source
1682 code position considered current and returns the previously set one.
1683 (clear_current_source_symtab_and_line): Reset stored information about
1684 a current source line.
1685 (_initialize_source): Remove registration for the "list" command and
1686 its alias.
1687 * source.h: Add declarations for the new functions above.
1688 * symtab.h: Remove declarations for the global variables mentioned
1689 above.
1690 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1691 obtain current source line.
1692 * linespec.c (decode_line_1): Ditto.
1693 * macroscope.c (default_macro_scope): Ditto.
1694 * scm-lang.c (scm_unpac): Ditto.
1695 * stack.c (print_frame_info_base): Ditto.
1696 * symfile.c (clear_symtab_users): Ditto.
1697 * symtab.c (decode_line_spec): Ditto.
1698 * cli/cli-cmds.c (list_command): Moved here from source.c.
1699 (ambiguous_line_spec): Moved here from source.c.
1700 (_init_cli_cmds): Add definition for "list" and its alias.
1701 * Makefile.in: Update dependencies.
1702
ddd216ea
CV
17032002-09-20 Corinna Vinschen <vinschen@redhat.com>
1704
1705 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1706 with what gcc thinks is correct.
1707
6d305052
CV
17082002-09-20 Corinna Vinschen <vinschen@redhat.com>
1709
1710 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1711 multiple register push instruction.
1712
234b45d4
KB
17132002-09-19 Jim Blandy <jimb@redhat.com>
1714
1715 Add support for distinct host and target character sets.
1716 * charset.c, charset.h: New files.
1717 * c-exp.y: #include "charset.h".
1718 (yylex): Convert character and string literals to the target
1719 character set, before returning them as the semantic value of the
1720 token.
1721 * c-lang.c: #include "charset.h".
1722 (c_emit_char): Use charset-specific methods to recognize
1723 characters with backslash escape forms, to decide which characters
1724 to print literally and which to print using numeric escape
1725 sequences, and to convert target characters to host characters
1726 before printing.
1727 * utils.c: #include "charset.h".
1728 (no_control_char_error): New function.
1729 (parse_escape): Use charset-specific methods to recognize
1730 backslash escapes, parse `control character' notation, and convert
1731 characters from the host character set to the target character set.
1732 * configure.in: Set the default host character set.
1733 Check where to find iconv, and what its argument types might be.
1734 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1735 * Makefile.in (SFILES): List charset.c.
1736 (COMMON_OBS): List charset.o.
1737 (charset.o): New rule.
1738 (charset_h): New header dependency variable.
1739 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1740 (LIBICONV): New variable, set by configure.
1741 (CLIBS): Include $(LIBICONV) here.
1742 * aclocal.m4, config.in, configure: Regenerated.
1743
525d6a61
JB
17442002-09-19 Joel Brobecker <brobecker@gnat.com>
1745
1746 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1747 bison 1.35 warning.
1748
3ed93867
RE
17492002-09-19 Richard Earnshaw <rearnsha@arm.com>
1750
1751 * gdb_mbuild.sh: New file.
1752
437666f8
AC
17532002-09-19 Andrew Cagney <ac131313@redhat.com>
1754
1755 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1756
389e51db
AC
17572002-09-18 Andrew Cagney <ac131313@redhat.com>
1758
1759 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1760 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1761 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1762 valops.c, value.h: Revert previous change.
1763
3b4efeaa
MS
17642002-09-18 Michael Snyder <msnyder@redhat.com>
1765
1766 Preliminary support for Objective-C:
1767 * defs.h (language_objc): New enum value.
1768 (puts_filtered_tabular): Declaration only, exported from utils.c.
1769 (skip_quoted): Delete, declared in completer.h.
1770 * c-exp.y: Include completer.h.
1771 * p-exp.y: Ditto.
1772 * jv-exp.y: Ditto.
1773 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1774 New operator enum values.
1775 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1776 * language.c (binop_result_type): Handle language_objc case.
1777 (integral_type, character_type, string_type, boolean_type,
1778 structured_type, binop_type_check): Ditto.
1779 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1780 (struct objc_specific): Add to general_symbol_info.
1781 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1782 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1783 * parser-defs.h (struct objc_class_str): New struct type.
1784 (start_msglist, end_msglist, add_msglist): Declaration only,
1785 exported from objc-lang.c.
1786 * value.h (value_of_local, value_nsstring,
1787 call_function_by_hand_expecting_type): Exported from valops.c.
1788 * valops.c (find_function_addr): Export.
1789 (call_function_by_hand_expecting_type): New function.
1790 (value_of_local): New function.
1791 * symfile.c (init_filename_language_table): Add ".m" extension
1792 for Objective-C.
1793 * utils.c (puts_filtered_tabular): New function.
1794 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1795 (set/show demangle): Extend help-string to refer to ObjC.
1796 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1797 * stabsread.c (symbol_reference_defined): Objective-C symbols
1798 may contain colons: make allowances when scanning stabs strings
1799 for colons.
1800 (objc_find_colon): New function.
1801 * printcmd.c (address_info): If language == objc then print
1802 "self" instead of "this".
1803 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1804 OP_NSSTRING, and OP_SELF.
1805 (prefixify_subexp): Ditto.
1806 * source.c (print_source_lines): Mention objc in comment.
1807 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1808 method names.
1809
b9caf505
AC
18102002-09-18 Andrew Cagney <ac131313@redhat.com>
1811
1812 * complaints.h: Update copyright.
1813 (struct complaints): Declare.
1814 (struct complaint): Make `message' constant.
1815 (internal_complaint): Declare.
1816 (complaint): Declare.
1817 (complaint_root): Delete declaration.
1818 (symfile_complaints): Delete declaration.
1819 (struct complaints): Add opaque declaration.
1820 (clear_complaints): Add a complaints parameter.
1821 * complaints.c: Update copyright.
1822 (enum complaint_series): Define.
1823 (complaint_root): Delete.
1824 (struct complaints): Define.
1825 (complaint_sentinel, symfile_complaint_book): New variables.
1826 (symfile_explanations, symfile_complaints): New variables.
1827 New variables.
1828 (get_complaints): New function.
1829 (vcomplaint): New function.
1830 (complaint): New function.
1831 (internal_complaint): New function.
1832 (complain): Call vcomplain with symfile_complaint.
1833 (clear_complaints): Rewrite.
1834 (_initialize_complaints): Use add_setshow_command.
1835 * Makefile.in (complaints.o): Update dependencies.
1836 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1837 to call to clear_complaints.
1838 (new_symfile_objfile, reread_symbols): Ditto.
1839 (oldsyms_complaint): Delete.
1840 (empty_symtab_complaint, unknown_option_complaint): Delete.
1841 (free_named_symtabs): Use complaint instead of complain.
1842
d2e6263c
MS
18432002-09-18 Michael Snyder <msnyder@redhat.com>
1844
5fb2031a
AC
1845 Contributed by Apple Computer, Inc. Merged with current sources
1846 by Adam Fedor <fedor@doc.com> [cagney].
1847
d2e6263c
MS
1848 * objc-lang.c: First clean-up round: comments, indentation.
1849 * objc-lang.h: Ditto.
1850 * objc-lang.y: Ditto.
1851
dec43320
AC
18522002-09-18 Andrew Cagney <ac131313@redhat.com>
1853
1854 * maint.c (maintenance_internal_error): Print the parameter as the
1855 error message.
1856 (maintenance_internal_warning): New function.
1857 (_initialize_maint_cmds): Add command `maint internal-warning'.
1858
1859 * defs.h (internal_warning, internal_vwarning): Declare.
1860 * utils.c (struct internal_problem): Define.
1861 (internal_vproblem): New function.
1862 (internal_warning): New function.
1863 (internal_vwarning): New function.
1864 (internal_warning_problem, internal_error_problem): New variables.
1865 (internal_verror): Just call internal_vproblem.
1866
b81654f1
MS
18672002-09-18 Michael Snyder <msnyder@redhat.com>
1868
1869 * objc-lang.c: New file, support for Objective-C.
1870 Preliminary check-in, not yet integrated into gdb.
1871 * objc-lang.h: New file.
1872 * objc-exp.y: New file.
1873
0542c381
AC
18742002-09-18 Andrew Cagney <ac131313@redhat.com>
1875
7bda5e4a
AC
1876 * infrun.c (signal_stop_update): Convert definition to ISO C.
1877 (signal_print_update): Ditto.
1878 (signal_pass_update): Ditto.
1879 * inflow.c (terminal_save_ours): Ditto.
1880
5247b418
AC
1881 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1882 comments.
1883
fc60962c
AC
1884 * config/djgpp/fnchange.lst: Handle name clashes between
1885 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1886 bfd/coff-tic80.c.
1887
0542c381
AC
1888 * i386-linux-tdep.h: Fix tipo.
1889
5b924b9b
AF
18902002-09-18 Adam Fedor <fedor@gnu.org>
1891
1892 * MAINTAINERS: Add myself to the Write After Approval list.
1893
5afc051b
JB
18942002-09-18 Jim Blandy <jimb@redhat.com>
1895
1896 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1897 texthigh and textlow to reader-specific structs caused
1898 objfile_relocate to miss them. This is fixable, but the work that
1899 the change was supposed to prepare GDB for never got done anyway.
1900
eb944380
DC
19012002-09-18 David Carlton <carlton@math.stanford.edu>
1902
1903 * MAINTAINERS: Alphabetize Write After Approval list.
1904
948e66d9
DJ
19052002-09-18 Daniel Jacobowitz <drow@mvista.com>
1906
1907 Fix PR gdb/709
1908 * values.c (value_static_field): Call read_var_value.
1909
dc604539
AC
19102002-09-18 Andrew Cagney <ac131313@redhat.com>
1911
1912 * valops.c (hand_function_call): Align the initial stack pointer
1913 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1914 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1915 return value.
1916 * mips-tdep.c (mips_frame_align): New function.
1917 (mips_gdbarch_init): Set frame_align.
1918 * gdbarch.sh (FRAME_ALIGN): New method.
1919 * gdbarch.h, gdbarch.c: Re-generate.
1920
cb7e422f
ML
19212002-09-18 Michal Ludvig <mludvig@suse.cz>
1922
1923 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1924 registers.
1925
a094c6fb
AC
19262002-09-17 Andrew Cagney <ac131313@redhat.com>
1927
1928 * NEWS: Mention that MIPS $fp behavior changed.
1929 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1930 reference to FP_REGNUM.
1931 (mipsnbsd_cannot_store_register): Ditto.
1932 * mips-linux-nat.c: Update copyright.
1933 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1934 (mips_linux_cannot_store_register): Ditto.
1935 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1936 * config/mips/tm-mips.h: Update copyright.
1937 (FP_REGNUM): Delete macro.
1938 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1939 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1940 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1941 (mips_r3041_reg_names, mips_r3051_reg_names)
1942 (mips_r3081_reg_names): Replace "fp" with "".
1943 Fix PR gdb/480.
1944
45cf40d1
TR
19452002-09-17 Theodore A. Roth <troth@verinet.com>
1946
1947 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1948 generic_read_register_dummy() (PR gdb/703).
1949 (avr_push_return_address): #if 0 out unused vars.
1950 (avr_gdbarch_init): Enable use of avr_push_return_address().
1951
c7e701b5
MS
19522002-09-17 Michael Snyder <msnyder@redhat.com>
1953
d76ba2a5 1954 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
1955 RTE will take care of it.
1956
20bcf01c
AC
19572002-09-17 Andrew Cagney <ac131313@redhat.com>
1958
1959 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1960 invalid, return SP_REGNUM.
1961
009a9971 19622002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
1963
1964 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1965 point registers without sign extension.
1966
135c175f
AC
19672002-09-17 Andrew Cagney <cagney@redhat.com>
1968
1969 * blockframe.c (deprecated_read_register_dummy): Rename
1970 generic_read_register_dummy.
1971 * frame.c (frame_unwind_signed_register): New function.
1972 (frame_unwind_unsigned_register): New function.
1973 * frame.h (frame_unwind_signed_register): Declare.
1974 (frame_unwind_unsigned_register): Declare.
1975 (deprecated_read_register_dummy): Rename
1976 generic_read_register_dummy.
1977
1978 * h8300-tdep.c (h8300_frame_chain): Update.
1979 (h8300_frame_saved_pc): Update.
1980 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1981 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1982 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1983 (s390_frame_chain): Update.
1984 * v850-tdep.c (v850_find_callers_reg): Update.
1985 (v850_frame_saved_pc): Update.
1986 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1987 (m32r_find_callers_reg): Update.
1988 (m32r_frame_saved_pc): Update.
1989 * sh-tdep.c (sh_find_callers_reg): Update.
1990 (sh64_get_saved_pr): Update.
1991 (sh_init_extra_frame_info): Update.
1992 (sh_init_extra_frame_info): Update.
1993 (sh64_init_extra_frame_info): Update.
1994 (sh64_init_extra_frame_info): Update.
1995 * mcore-tdep.c (mcore_find_callers_reg): Update.
1996 (mcore_frame_saved_pc): Update.
1997 (mcore_init_extra_frame_info): Update.
1998 * i386-tdep.c (i386_frame_saved_pc): Update.
1999 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2000 (ia64_init_extra_frame_info): Update.
2001 (ia64_init_extra_frame_info): Update.
2002 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2003 * cris-tdep.c (cris_init_extra_frame_info): Update.
2004 * avr-tdep.c (avr_frame_chain): Update.
2005 (avr_init_extra_frame_info): Update.
2006 (avr_frame_saved_pc): Update.
2007 * arm-tdep.c (arm_find_callers_reg): Update.
2008 (arm_init_extra_frame_info): Update.
2009 (arm_frame_saved_pc): Update.
2010
a741e514
TT
20112002-09-17 Tom Tromey <tromey@redhat.com>
2012
2013 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2014 is "'".
2015
d1a8e808
CV
20162002-09-17 Corinna Vinschen <vinschen@redhat.com>
2017
2018 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2019 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2020 NEXT_PROLOGUE_INSN.
2021 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2022 NEXT_PROLOGUE_INSN.
2023
d9025a18
JB
20242002-09-16 Joel Brobecker <brobecker@gnat.com>
2025
2026 * osfsolib.c: Remove file, replaced by solib-osf.c.
2027 * Makefile.in: Remove compilation rules for osfsolib.c.
2028
1b2ef1b6
DC
20292002-09-16 David Carlton <carlton@math.stanford.edu>
2030
2031 * cp-valprint.c (cp_print_class_method): Correct args to
2032 check_stub_method_group.
2033
928e48af
CV
20342002-09-16 Corinna Vinschen <vinschen@redhat.com>
2035
2036 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2037 `set architecture'. Unify naming convention of functions.
2038 (h8300_skip_prologue): Improve prologue analysis.
2039 (h8300_push_arguments): Rewritten to more closely match GCC's
2040 bizarre argument-passing behavior, along with the comment describing
2041 said behavior.
2042 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2043 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2044 sim, remote-e7000.c, remote-hms.c and remote.c
2045
5e3397bb
MK
20462002-09-15 Mark Kettenis <kettenis@gnu.org>
2047
2048 * i386-tdep.c (gdb_print_insn_i386): Removed.
2049 (i386_print_insn): New function.
2050 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2051 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2052 tm_print_insn_info.
2053
f710f4fc
MK
20542002-09-14 Mark Kettenis <kettenis@gnu.org>
2055
2056 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2057 zero.
2058
db54fef4
CV
20592002-09-14 Corinna Vinschen <vinschen@redhat.com>
2060
2061 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2062 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2063 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2064
2becadee
CF
20652002-09-13 Christopher Faylor <cgf@redhat.com>
2066
2067 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2068
de17c821
DJ
20692002-09-13 Daniel Jacobowitz <drow@mvista.com>
2070
2071 * gdbtypes.c (check_stub_method): Make static.
2072 (check_stub_method_group): New function.
2073 * gdbtypes.h: Update prototypes.
2074 * cp-support.c: New file.
2075 * cp-support.h: New file.
2076
2077 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2078 (update_method_name_from_physname): New function.
2079 (read_member_functions): Correct method names for operators
2080 and v3 constructors/destructors. Separate v2 constructors and
2081 destructors.
2082 * Makefile.in (stabsread.o): Update dependencies.
2083 (SFILES): Add cp-support.c.
2084 (COMMON_OBS): Add cp-support.o.
2085 (cp_support_h, cp-support.o): Add.
2086
2087 * cp-valprint.c (cp_print_class_method): Call
2088 check_stub_method_group instead of check_stub_method. Remove
2089 extraneous QUITs.
2090 * p-valprint.c (pascal_object_print_class_method): Likewise.
2091 * valops.c (search_struct_method): Likewise.
2092 (find_method_list, value_struct_elt_for_reference): Likewise.
2093
e76cff22
AC
20942002-09-13 Andrew Cagney <cagney@redhat.com>
2095
2096 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2097 * gdbarch.h, gdbarch.c: Regenerate.
2098
905abb3f
AC
20992002-09-13 Andrew Cagney <ac131313@redhat.com>
2100
2101 * frame.c (find_saved_register): Delete function.
2102 * frame.h (find_saved_register): Delete declaration.
2103 Fix PR gdb/631.
2104
64159455
AC
2105Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2106
2107 * mips-tdep.c (read_next_frame_reg): Re-hack using
2108 frame_register_unwind.
2109
795e1e11
AC
2110Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2111
2112 * mips-tdep.c (mips_get_saved_register): Re-hack using
2113 frame_register_unwind.
2114
5720643c
JB
21152002-09-12 Joel Brobecker <brobecker@gnat.com>
2116
2117 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2118 vector. Will be useful for Interix.
2119 * gdbarch.h, gdbarch.c: Regenerate.
2120
2121 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2122 name of the malloc function by NAME_OF_MALLOC.
2123
3bada2a2
JB
21242002-09-12 Joel Brobecker <brobecker@gnat.com>
2125
2126 * value.h (find_function_in_inferior): Add const keyword to
2127 one of the parameters. Allows us to invoke this function with
2128 a const char *.
2129 * valops.c (find_function_in_inferior): Likewise.
2130
3db26b01
JB
21312002-09-12 Joel Brobecker <brobecker@gnat.com>
2132
2133 * exec.c (xfer_memory): Fix compilation warning with old versions
2134 of GCC.
2135 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2136
17c5ed2c
DC
21372002-09-12 David Carlton <carlton@math.stanford.edu>
2138
2139 * symtab.h: Run through gdb_indent.h.
2140 Add 2002 to Copyright year list.
2141
ecd1107e
AM
21422002-09-12 Alan Modra <amodra@bigpond.net.au>
2143
2144 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2145 mach constants.
2146 * MAINTAINERS: Add myself to write after approval list.
2147
e64f66d1
JB
21482002-09-11 J. Brobecker <brobecker@gnat.com>
2149
2150 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2151
f9395794
JB
21522002-09-11 J. Brobecker <brobecker@gnat.com>
2153
2154 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2155 Interix.
2156
1a303dec
MS
21572002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2158
2159 * procfs.c (do_detach): Clear current signal, not just fault.
2160 Corrects problem with breakpoint trap signal leaking to detached
2161 process on Tru64.
2162
c0219d42
MS
21632002-09-10 Michael Snyder <msnyder@redhat.com>
2164
2165 * buildsym.c (finish_block): Protect against null pointer.
2166
9d84ac84
AC
21672002-09-10 Andrew Cagney <cagney@redhat.com>
2168
2169 * infcmd.c (default_print_registers_info): Send all output to
2170 ``file'' instead of ``gdb_stdout''.
2171
77d8f2b4
MS
21722002-09-10 Michael Snyder <msnyder@redhat.com>
2173
2174 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2175 LONGEST, and use signed register read (addresses are sign-
2176 extended for mips).
2177
99656a61
SC
21782002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2179
2180 * event-loop.c (gdb_do_one_event): Make public.
2181 * event-loop.h (gdb_do_one_event): Declare.
2182
da12f4d8
JL
21832002-09-10 Jeff Law <law@redhat.com>
2184
2185 * infttrace.c (child_resume): Simplify and rework to avoid
2186 TT_PROC_CONTINUE.
2187
d0aee0c4
FF
21882002-09-09 Fred Fish <fnf@intrinsity.com>
2189
2190 * printcmd.c (print_scalar_formatted): "len" is the number of
2191 target bytes, NOT the number of target bits.
2192
7cb3ec5e
EZ
21932002-09-09 Elena Zannoni <ezannoni@redhat.com>
2194
2195 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2196 * top.c (init_main): Set rl_terminal_name.
2197
4dc81987
AS
21982002-09-08 Aidan Skinner <aidan@velvet.net>
2199
2200 * ada-lang.c (ada_array_bound, ada_type_match,
2201 _initialize_ada_language): Fix K&R definitions.
2202 * ada-tasks.c (get_current_task): Fix K&R definitions.
2203 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2204
842330b4
CF
22052002-09-07 Christopher Faylor <cgf@redhat.com>
2206
2207 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2208 Add XP.
2209
43156d82
MK
22102002-09-06 Mark Kettenis <kettenis@gnu.org>
2211
66da5fd8
MK
2212 * i386-tdep.c (i386_register_virtual_type,
2213 i386_register_convertible, i386_register_convert_to_virtual,
2214 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2215 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2216 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2217 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2218 Don't set push_arguments twice.
2219
4b218c18
MK
2220 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2221 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2222 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2223 sigtramp_end to NULL.
2224 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2225 defines.
2226 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2227
4cc314d5
MK
2228 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2229 whitespace.
2230
43156d82
MK
2231 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2232 * gdbarch.h, gdbarch.c: Re-generate.
2233 * blockframe.c (find_pc_sect_partial_function): Convert to use
2234 SIGTRAMP_START_P predicate.
2235
6672060b
MS
22362002-09-05 Michael Snyder <msnyder@redhat.com>
2237
a90c3637
MS
2238 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2239 generic_dummy_frame method and old method. Also distinguish
2240 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 2241 (arm_extract_return_value): Use new regcache method.
a90c3637 2242
6672060b
MS
2243 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2244 adjustment that doesn't conform to the ABI.
2245 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2246 saved regcache, not from current regcache.
2247
299ffc64
AC
22482002-09-05 Andrew Cagney <ac131313@redhat.com>
2249
2250 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2251 * README: Update.
2252
a3a2ee65
JT
22532002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2254
2255 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2256 if arm_apcs_32 is false.
2257
2bc7eea9
AC
22582002-09-04 Andrew Cagney <ac131313@redhat.com>
2259
2260 GDB 5.3 branch created.
2261
8a55a7c5
TR
22622002-09-03 Theodore A. Roth <troth@verinet.com>
2263
2264 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2265 generic_unwind_get_saved_register.
2266
e26fb1d7
DC
22672002-09-03 David Carlton <carlton@math.stanford.edu>
2268
2269 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2270 argument (PR gdb/653). Update call to smash_to_method_type.
2271 (read_structure_scope): Update call to dwarf2_add_member_fn.
2272
30d52491
ML
22732002-09-03 Michal Ludvig <mludvig@suse.cz>
2274
2275 * x86-64-linux-tdep.c: Include gdb_string.h
2276 * x86-64-linux-nat.c: Ditto.
2277
06891d83
JT
22782002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2279
2280 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2281 when YYDEBUG is set to 1.
2282 * c-exp.y: Likewise.
2283 * f-exp.y: Likewise.
2284 * jv-exp.y: Likewise.
2285 * m2-exp.y: Likewise.
2286 * p-exp.y: Likewise.
2287
7d400e77
JT
22882002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2289
2290 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2291 dependency list.
2292 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2293 solib_svr4_fetch_link_map_offsets to
2294 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2295 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2296 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2297 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2298 solib-svr4.o, and solib-legacy.o.
2299 * config/i386/tm-nbsd.h: Include solib.h.
2300
704a27c4
JT
23012002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2302
2303 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2304 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2305 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2306 comment noting that this needs its own target configuration.
2307 * config/i386/nbsd.mt: New file.
2308 * config/i386/nbsdaout.mt: Remove.
2309 * config/i386/nbsdelf.mt: Ditto.
2310 * config/i386/tm-nbsdaout.h: Ditto.
2311
d66198e1
JT
23122002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2313
2314 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2315 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2316 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2317 tdep->sigtramp_end.
2318 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2319 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2320 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2321
3cac699e
JT
23222002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2323
2324 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2325 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2326 * i386-tdep.h (i386bsd_init_abi): New prototype.
2327 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2328 function declaration.
2329 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2330 for NetBSD-a.out or NetBSD-ELF.
2331 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2332 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2333 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2334 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2335 and nbsd-tdep.h.
2336 (i386nbsd_pc_in_sigtramp): New function.
2337 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2338 i386nbsd_pc_in_sigtramp.
2339 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2340 and i386nbsdelf_init_abi OS ABI handlers.
2341 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2342 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2343
7010ca0a
MK
23442002-09-02 Mark Kettenis <kettenis@gnu.org>
2345
2346 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2347 registers if the target really has them.
2348
6dd93b72
JT
23492002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2350
2351 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2352 than nbsd-tdep.h.
2353
2ca8ae21
JT
23542002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2355
2356 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2357 list.
2358 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2359 (alphanbsd_skip_sigtramp_frame): New functions.
2360 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2361 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2362 to alphanbsd_sigcontext_addr.
2363
3d9b49b0
JT
23642002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2365
2366 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2367 list.
2368 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2369 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2370 nbsd_pc_in_sigtramp.
2371 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2372 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2373 * nbsd-tdep.c: Include gdb_string.h.
2374 (nbsd_pc_in_sigtramp): New function.
2375 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2376 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2377 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2378 ppcnbsd_pc_in_sigtramp.
2379 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2380 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2381 shnbsd_pc_in_sigtramp.
2382 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2383 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2384 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2385
c860120c
PM
23862002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2387
2388 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2389 watchpoints to NULL.
2390 (insert_breakpoints): set val field of watchpoints if NULL.
2391
2392
c7612d53
JB
23932002-08-29 Jim Blandy <jimb@redhat.com>
2394
2395 * symtab.c (lookup_symbol_aux): In the cases where we find a
2396 minimal symbol of an appropriate name and use its address to
2397 select a symtab to read and search, use `name' (as passed to us)
2398 as the demangled name when searching the symtab's global and
2399 static blocks, not the minsym's name.
2400
66609862
KS
24012002-08-29 Keith Seitz <keiths@redhat.com>
2402
2403 * stack.c (print_frame_info_base): Always set current_source_symtab
2404 and current_source_line.
2405
151fefe2
JB
24062002-08-29 Donn Terry <donnte@microsoft.com>
2407
2408 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2409
bfb3754e
KS
24102002-08-28 Keith Seitz <keiths@redhat.com>
2411
2412 * stack.c (select_frame): Add FIXME concerning selected-frame
2413 events.
2414 (select_frame_command): Send selected-frame-level-changed
2415 event notification, but only if the level actually changed.
2416 (up_silently_base): Add selected-frame-level-changed event
2417 notification.
2418 (down_silently_base): Likewise.
2419
e822a2a0
AC
24202002-08-28 Andrew Cagney <ac131313@redhat.com>
2421
2422 * Makefile.in: Update dependencies for all gdb/*.c files.
2423
309367d4
TT
24242002-08-27 Tom Tromey <tromey@redhat.com>
2425
2426 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2427 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2428 Update dependencies.
2429 * i387-tdep.c: Include gdb_string.h.
2430 * osabi.c: Likewise.
2431 * i386-linux-nat.c: Likewise.
2432 * lin-lwp.c: Likewise.
2433 * ax-gdb.c: Likewise.
2434 * signals/signals.c: Likewise.
2435 * jv-valprint.c: Likewise.
2436 * p-lang.c: Likewise.
2437 * c-valprint.c: Likewise.
2438 * cp-abi.c: Likewise.
2439
e1507482
EZ
24402002-08-27 Elena Zannoni <ezannoni@redhat.com>
2441
2442 * cli/cli-script.h (copy_command_lines): Export.
2443 * breakpoint.c: Include cli/cli-script.h.
2444 * Makefile.in (breakpoint.o): Update dependencies.
2445
c6510018
MS
24462002-08-26 Michael Snyder <msnyder@redhat.com>
2447
2448 * breakpoint.c (insert_breakpoints): Protect all references
2449 to 'process_warning'. Shorten long lines.
2450
c2b8ed2c
MS
24512002-08-26 Joel Brobecker <brobecker@gnat.com>
2452
2453 * cli/cli-script.c (copy_command_lines): New function.
2454 * defs.h (copy_command_lines): Export.
2455 * testsuite/gdb.base/commands.exp: New tests for commands
2456 attached to a temporary breakpoint, and for commands that
2457 delete the breakpoint they are attached to.
2458
24592002-08-26 Michael Snyder <msnyder@redhat.com>
2460
2461 * breakpoint.c (bpstat_stop_status): Instead of copying the
2462 pointer to the breakpoint commands struct, make a new copy
2463 of the struct and point to that.
2464 (bpstat_clear): Free the commands struct.
2465 (bpstat_clear_actions): Free the commands struct.
2466 (bpstat_do_actions): Free the command actions. Also execute
2467 the local cleanups, instead of deleting them.
2468 (delete_breakpoint): Leave the commands field of the bpstat
2469 chain alone -- it will be freed later.
2470
64b84175
KB
24712002-08-26 Kevin Buettner <kevinb@redhat.com>
2472
2473 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2474 deleted in 2002-08-20 commit. This function is still used by
2475 ppc-linux-nat.c.
2476
55970da6
KS
24772002-08-26 Keith Seitz <keiths@redhat.com>
2478
2479 * gdb-events.sh: Add selected-frame-level-changed event.
2480 * gdb-events.c: Regenerated.
2481 * gdb-events.h: Regenerated.
2482
a790ad35
SC
24832002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2484
2485 Fix PR gdb/393:
2486 * inflow.c (terminal_save_ours): New function to save terminal
2487 settings.
2488 * inferior.h (terminal_save_ours): Declare.
2489 * target.c (debug_to_terminal_save_ours): New function.
2490 (cleanup_target): Defaults to_terminal_save_ours.
2491 (update_current_target): Inherit to_terminal_save_ours.
2492 (setup_target_debug): Set to_terminal_save_ours.
2493 * target.h (target_terminal_save_ours): New to save terminal settings.
2494 (target_ops): New member to_terminal_save_ours.
2495 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2496 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2497 * inftarg.c (init_child_ops): Likewise.
2498 * m3-nat.c (init_m3_ops): Likewise.
2499 * procfs.c (init_procfs_ops): Likewise.
2500 * wince.c (init_child_ops): Likewise.
2501 * win32-nat.c (init_child_ops): Likewise.
2502 * sol-thread.c (init_sol_thread_ops): Likewise.
2503
c00dcbe9
MK
25042002-08-26 Mark Kettenis <kettenis@gnu.org>
2505
3d7f4f49
MK
2506 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2507 use regcache_* functions.
2508 (i386_gdbarch_init): Set store_return_value instead of
2509 deprecated_store_return_value.
2510
c00dcbe9
MK
2511 * regcache.c (regcache_raw_write_signed,
2512 regcache_raw_write_unsigned): New functions.
2513 * regcache.h (regcache_raw_write_signed,
2514 regcache_raw_write_unsigned): New prototypes.
2515
0e0d15ca
AC
25162002-08-25 Andrew Cagney <ac131313@redhat.com>
2517
2518 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2519 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2520 source file dependencies. Cleanup corresponding generator rules.
2521
d3b22ed5
AC
25222002-08-25 Andrew Cagney <ac131313@redhat.com>
2523
2524 * regcache.h (register_offset_hack): Declare.
2525 (regcache_cooked_read_using_offset_hack): Declare.
2526 (regcache_cooked_write_using_offset_hack): Declare.
2527
2528 * regcache.c (register_offset_hack): New function.
2529 (regcache_cooked_read_using_offset_hack): New function.
2530 (regcache_cooked_write_using_offset_hack): New function.
2531 (regcache_dump): Check that the registers, according to their
2532 offset, are packed hard against each other.
2533 (cooked_xfer_using_offset_hack): New function.
2534
bb425013
AC
25352002-08-25 Andrew Cagney <ac131313@redhat.com>
2536
2537 * regcache.c (struct regcache_descr): Add field register_type.
2538 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2539 in as a parameter
2540 (init_regcache_descr): Initialize register_type. Pass the descr
2541 to init_legacy_regcache_descr. Use register_type instead of
2542 REGISTER_VIRTUAL_TYPE.
2543 (register_type): New function.
2544 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2545 * regcache.h (register_type): Declare.
2546
d0403e00
AC
25472002-08-25 Andrew Cagney <ac131313@redhat.com>
2548
2549 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2550 instead of deprecated_store_return_value. Fix fallout from
2551 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2552
0ed04cce
AC
25532002-08-25 Andrew Cagney <ac131313@redhat.com>
2554
2555 * regcache.c (max_register_size): New function.
2556 (init_legacy_regcache_descr): Ensure that max_register_size is
2557 large enough for REGISTER_VIRTUAL_SIZE.
2558 * regcache.h (max_register_size): Declare.
2559
46d79c04
AC
25602002-08-24 Andrew Cagney <ac131313@redhat.com>
2561
2562 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2563 store_return_value.
2564 (e500_extract_return_value): Change type of valbuf pointer to
2565 void.
2566
853c7bd0
MK
25672002-08-24 Mark Kettenis <kettenis@gnu.org>
2568
cd87e769
MK
2569 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2570 workaround.
2571
853c7bd0
MK
2572 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2573 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2574 long long) to prevent compiler warning on 64-bit systems.
2575
ebba8386
AC
25762002-08-23 Andrew Cagney <cagney@redhat.com>
2577
2578 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2579 (DEPRECATED_STORE_RETURN_VALUE): New method.
2580 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2581 * gdbarch.h, gdbarch.c: Re-generate.
2582
2583 * values.c (set_return_value): Pass current_regcache to
2584 STORE_RETURN_VALUE.
2585 * arch-utils.h (legacy_store_return_value): Declare.
2586 * arch-utils.c (legacy_store_return_value): New function.
2587 (legacy_extract_return_value): Update parameters.
2588
2589 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2590 STORE_RETURN_VALUE.
2591 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2592 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2593 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2594 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2595 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2596 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2597 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2598 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2599 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2600 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2601
2602 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2603 * i386-tdep.c (i386_extract_return_value): Update.
2604 * arch-utils.c (legacy_extract_return_value): Update.
2605 * frv-tdep.c (frv_gdbarch_init): Update.
2606 * cris-tdep.c (cris_gdbarch_init): Update.
2607 * d10v-tdep.c (d10v_gdbarch_init): Update.
2608 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2609 * m68k-tdep.c (m68k_gdbarch_init): Update.
2610 * mcore-tdep.c (mcore_gdbarch_init): Update.
2611 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2612 * s390-tdep.c (s390_gdbarch_init): Update.
2613 * sparc-tdep.c (sparc_gdbarch_init): Update.
2614 * sh-tdep.c (sh_gdbarch_init): Update.
2615 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2616 * v850-tdep.c (v850_gdbarch_init): Update.
2617 * avr-tdep.c (avr_gdbarch_init): Update.
2618 * ia64-tdep.c (ia64_gdbarch_init): Update.
2619 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2620 * vax-tdep.c (vax_gdbarch_init): Update.
2621 * alpha-tdep.c (alpha_gdbarch_init): Update.
2622 * arm-tdep.c (arm_gdbarch_init): Update.
2623 * mips-tdep.c (mips_gdbarch_init): Update.
2624 * i386-tdep.c (i386_gdbarch_init): Update.
2625
5bd8c6d0
AC
26262002-08-23 Andrew Cagney <ac131313@redhat.com>
2627
2628 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2629 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2630
e73e1724
MK
26312002-08-24 Mark Kettenis <kettenis@gnu.org>
2632
2633 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2634 problems.
2635
3e6564e1
JB
26362002-08-23 Joel Brobecker <brobecker@gnat.com>
2637
2638 * infrun.c (handle_inferior_event): Move a comment outside of a
2639 function call, in order to avoid indent reformatting this part
2640 of the code in an unreadable way.
2641
81d0cc19
GS
26422002-08-23 Grace Sainsbury <graces@redhat.com>
2643
2644 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2645 when breakpoints fail. Move general breakpoint error messages to
2646 insert_breakpoints.
2647 * breakpoint.c (insert_breakpoints): Change warnings when
2648 breakpoints are nto inserted to specify the type. Remove call to
2649 memory_error when hardware breakpoints can't be inserted. Remove
2650 multiple calls to warning so all messages are sent to the user at
2651 once.
2652 (delete_breakpoints): Make insert error messsages more explicit.
2653
17574093
DJ
26542002-08-23 Daniel Jacobowitz <drow@mvista.com>
2655
2656 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2657 gdbserver/ChangeLog.
2658
8acc2935
MK
26592002-08-23 Mark Kettenis <kettenis@gnu.org>
2660
dfe01d39
MK
2661 * i386-tdep.c: Include "objfiles.h".
2662 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2663 skip_trampoline_code.
2664 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2665 (CPLUS_MARKER): Define to '.'.
2666
8acc2935
MK
2667 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2668 member.
2669 (linux_corefile_thread_callback): Increase args->num_notes.
2670 (linux_make_note_section): Initialize thread_args.num_notes, and
2671 use it to determine whether notes for any threads were created.
2672
151fefe2 26732002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
2674
2675 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2676 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2677 and PCUNKILL.
2678 (write_with_trace): Conditionalize out the switch branch handling
2679 PCSHOLD if the corresponding macro is not defined. Likewise for
2680 PRSABORT and PRSTOP.
2681 This change will be needed by the Interix port.
2682
e1507482
EZ
26832002-08-22 Elena Zannoni <ezannoni@redhat.com>
2684
2685 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2686 write_register wherever possible instead of manipulating the
2687 register bytes directly.
2688 Assign VALUE_CONTENTS to a variable and use that.
2689 The GPR numbers are now dependent on the architecture.
2690
96ff0de4
EZ
26912002-08-22 Elena Zannoni <ezannoni@redhat.com>
2692
2693 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2694 ev_offset fields.
2695 (skip_prologue): Add support for BookE/e500 instructions.
2696 (e500_extract_return_value): New function.
2697 (frame_get_saved_regs): Add support for saving ev registers and
2698 pseudo gpr's.
2699 (e500_store_return_value): New function.
2700 (rs6000_gdbarch_init): Move up default intializations of
2701 deprecated_extract_return_value and store_return_value. Overwrite
2702 init of store_return_value with e500 specific version.
2703 Set extract_return_value for e500.
2704
fbefca5b
EZ
27052002-08-22 Elena Zannoni <ezannoni@redhat.com>
2706
2707 * blockframe.c (generic_call_dummy_register_unwind): Use
2708 regcache_cooked_read to catch cases in which the variable is
2709 stored in a pseudo register.
2710
4d210288
AC
27112002-08-22 Andrew Cagney <cagney@redhat.com>
2712
2713 * NEWS: Mention that the i960 has been made obsolete.
2714 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2715 i960-tdep.c
2716 (remote-nrom.o): Obsolete target.
2717 (remote-nindy.o, i960-tdep.o): Ditto.
2718 * remote-nrom.c: Make file obsolete.
2719 * remote-nindy.c, remote-vx960.c: Ditto.
2720 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2721 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2722 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2723 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2724 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2725 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2726 i960-*-vxworks* obsolete.
2727 * MAINTAINERS: Note that the i960 is obsolete.
2728
6c0c456d
CV
27292002-08-21 Corinna Vinschen <vinschen@redhat.com
2730
2731 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2732 detach to allow reinitialization.
2733
9f9d12b3
AC
27342002-08-22 Andrew Cagney <ac131313@redhat.com>
2735
2736 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2737 attempt).
2738
ebeb39fe
JB
27392002-08-22 Jim Blandy <jimb@redhat.com>
2740
2741 * coffread.c (coff_symfile_read): Don't try to read the line
2742 number table from disk if the image file doesn't have a symbol
2743 table; we'll never actually look at the info anyway, and Windows
2744 ships DLL's with bogus file offsets for the line number data.
2745
5bf1c677
EZ
27462002-08-21 Elena Zannoni <ezannoni@redhat.com>
2747
2748 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2749 an e500 executable.
2750
71b8ef93
MS
27512002-08-21 Michael Snyder <msnyder@redhat.com>
2752
2753 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2754 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
2755 (DEFAULT_MIPS_TYPE): Delete unused macro.
2756 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2757 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 2758
d174216d
JB
27592002-08-21 Jim Blandy <jimb@redhat.com>
2760
2761 * valops.c (value_cast): Simplify and correct logic for doing a
2762 static cast from a pointer to a base class to a pointer to a
2763 derived class.
2764
0ab7a791
AC
27652002-08-21 Andrew Cagney <ac131313@redhat.com>
2766
2767 * infcmd.c (default_print_registers_info): Replace
2768 do_registers_info.
2769 (registers_info): Use gdbarch_print_registers_info instead of
2770 DO_REGISTERS_INFO.
2771 * inferior.h (default_print_registers_info): Replace
2772 do_registers_info.
2773 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2774 (DO_REGISTERS_INFO): Change to a predicate function.
2775 * gdbarch.h, gdbarch.c: Regenerate.
2776
e23792cc
KS
27772002-08-21 Keith Seitz <keiths@redhat.com>
2778
2779 * gdb-events.sh: Add target-changed event.
2780 * gdb-events.c: Regenerated.
2781 * gdb-events.c: Regenerated.
2782 * valops.c (value_assign): Add target-changed event notification
2783 to inlval_register, lval_memory, and lval_reg_frame_relative.
2784
9fb14e79
JB
27852002-08-21 Joel Brobecker <brobecker@gnat.com>
2786
2787 * NEWS: Add an entry regarding the improvement of the next/step
2788 operation on Alpha Tru64 multi-processor machines.
2789
6d39a69f
AC
27902002-08-21 Andrew Cagney <ac131313@redhat.com>
2791
72acd513
AC
2792 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2793 directores.
342af04b 2794 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
2795 * Makefile.in (install-gdbtk): Move to install section.
2796 (rdi-share/libangsd.a): Move to end of file.
2797
fa5f27c7
AC
27982002-08-19 Andrew Cagney <ac131313@redhat.com>
2799
2800 * frame.c (frame_register_unwind): When a register, set addrp to
2801 the register's byte.
2802
5a89d8aa
MS
28032002-08-20 Michael Snyder <msnyder@redhat.com>
2804
2805 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2806 used locally, so move them from the target machine header to here.
2807 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2808 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2809 Make static.
2810 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2811
822e978b
AC
28122002-08-20 Andrew Cagney <cagney@redhat.com>
2813
2814 * NEWS: Mention that the Apollo line was made obsolete.
2815 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2816 m68*-hp-hpux* obsolete.
2817 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2818 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2819 * buildsym.c (make_blockvector): Make static.
2820 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2821 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2822 (ALLDEPFILES): Remove dstread.c.
2823 (dstread.o): Obsolete make rule.
2824 * dstread.c: Makefile obsolete.
2825 * dst.h: Ditto.
2826 * config/m68k/hp300hpux.mt: Ditto.
2827 * config/m68k/hp300hpux.mh: Ditto.
2828 * config/m68k/hp300bsd.mt: Ditto.
2829 * config/m68k/hp300bsd.mh: Ditto.
2830 * config/m68k/apollo68b.mt: Ditto.
2831 * config/m68k/apollo68v.mh: Ditto.
2832 * config/m68k/apollo68b.mh: Ditto.
2833
e41b17f0
MS
28342002-08-20 Michael Snyder <msnyder@redhat.com>
2835
2836 * mips-tdep.c (mips_in_return_stub): Make static.
2837 (mips_gdbarch_init): Set in_solib_return_trampoline.
2838 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2839
d50355b6
MS
28402002-08-20 Michael Snyder <msnyder@redhat.com>
2841
2842 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2843 * gdbarch.c, gdbarch.h: Regenerate.
2844 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2845 Add.
2846 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2847
757a7cc6
MS
28482002-08-20 Michael Snyder <msnyder@redhat.com>
2849
2850 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2851 (mips_gdbarch_init): Set skip_trampoline_code,
2852 in_solib_call_trampoline.
2853 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2854 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2855
c8001721
EZ
28562002-08-20 Elena Zannoni <ezannoni@redhat.com>
2857
2858 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2859
2860 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2861 vector type for ev registers.
2862 (e500_pseudo_register_read): New function.
2863 (e500_pseudo_register_write): New function.
2864 (e500_dwarf2_reg_to_regnum): New function.
2865 (PPC_UISA_NOFP_SPRS): New macro.
2866 (PPC_EV_REGS): New macro.
2867 (PPC_GPRS_PSEUDO_REGS): New macro.
2868 (registers_e500): New register set for e500.
2869 (variants): Add e500 variant.
2870 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2871 before setting architectural dependent variations. Initialize ev
2872 registers numbers. Add case for e500 architecture. Set the
2873 number of pseudo registers.
2874
64366f1c
EZ
28752002-08-20 Elena Zannoni <ezannoni@redhat.com>
2876
2877 * rs6000-tdep.c: Clean up comments.
2878
7e78f0ca
AC
28792002-08-20 Andrew Cagney <cagney@redhat.com>
2880
2881 * h8300-tdep.c: Re-indent file.
2882
697f7479
JB
28832002-08-20 Jim Blandy <jimb@redhat.com>
2884
2885 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2886 default for this.
697f7479 2887
e86ae29f
KS
28882002-08-20 Keith Seitz <keiths@redhat.com>
2889
2890 * breakpoints.c (watch_command_1): Use internal breakpoint
2891 when setting a watchpoint_scope breakpoint.
2892
216b504f
EZ
28932002-08-20 Elena Zannoni <ezannoni@redhat.com>
2894
2895 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2896 (build_builtin_type_vec64i): Ditto.
2897 (build_builtin_type_vec128): Ditto.
2898 (build_builtin_type_vec128i): Ditto.
2899
f7ab6ec6
MS
29002002-08-19 Michael Snyder <msnyder@redhat.com>
2901
2902 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2903 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2904 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2905 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2906 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2907 CALL_DUMMY_ADDRESS): Delete.
2908 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2909 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2910 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2911 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2912 push_return_address.
2913 (mips_register_raw_size, mips_eabi_use_struct_convention,
2914 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2915 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2916 mips_init_extra_frame_info, mips_eabi_push_arguments,
2917 mips_n32n64_push_arguments, mips_push_return_address,
2918 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2919 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2920
b5d1566e
MS
29212002-08-19 Michael Snyder <msnyder@redhat.com>
2922
2923 * mips-tdep.c (mips_frame_num_args): New function.
2924 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2925 frame_saved_pc, frame_args_address, frame_locals_address,
2926 frame_num_args, and frame_args_skip.
2927 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2928 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2929 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2930 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2931
2f1488ce
MS
29322002-08-20 Michael Snyder <msnyder@redhat.com>
2933
2934 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2935 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2936 * mips-tdep.c (mips_store_struct_return): New function.
2937 (mips_extract_struct_value_address): New function.
2938 (mips_gdbarch_init): Set store_struct_return and
2939 extract_struct_value_address.
2940
41ff2da1
DC
29412002-08-20 David Carlton <carlton@math.stanford.edu>
2942
2943 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2944 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2945 (read_file_scope): Check that line_header is nonzero before
2946 decoding macro information.
2947
e5451d58
MK
29482002-08-20 Mark Kettenis <kettenis@gnu.org>
2949
2950 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2951 flag the general-purpose registers as floating-point on targets
2952 that don't support the floating-point registers.
2953
4a6daafa
EZ
29542002-08-20 Elena Zannoni <ezannoni@redhat.com>
2955
2956 * rs6000-tdep.c (altivec_register_p): Delete.
2957 (rs6000_do_altivec_registers): Delete.
2958 (rs6000_altivec_registers_info): Delete.
2959 (rs6000_do_registers_info): Delete.
2960 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2961 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2962
ab4327e0
EZ
29632002-08-20 Elena Zannoni <ezannoni@redhat.com>
2964
2965 * infcmd.c (do_registers_info): Print vector registers in hex
2966 format only.
2967 (print_vector_info): Check that printing registers
2968 makes sense.
2969 (print_float_info): Ditto.
2970
cb1d2653
AC
29712002-08-20 Andrew Cagney <ac131313@redhat.com>
2972
2973 * mips-tdep.c (mips_gdbarch_init): Update.
2974 (mips_o32_extract_return_value): Rewrite.
2975 (mips_o32_store_return_value): Rewrite.
2976 (mips_o32_xfer_return_value): New function.
2977 (mips_xfer_register): Tweak debug print message. Allow for
2978 buf_offset when dumping the value transfered.
2979
dfc3d9b2
AC
29802002-08-20 Andrew Cagney <ac131313@redhat.com>
2981
2982 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2983 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2984 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2985 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2986 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2987
7807aa61
MS
29882002-08-14 Michael Snyder <msnyder@redhat.com>
2989
2990 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2991
489461e2
EZ
29922002-08-19 Elena Zannoni <ezannoni@redhat.com>
2993
2994 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2995 register.
2996 (P): New macro to define a register as a pseudo register.
2997 (R, R4, R8, R16, FR32, R64, R0): Updated.
2998 (struct variant): Add new fields for number of pseudo registers
2999 and number of total registers.
3000 (tot_num_registers): New macro replacing....
3001 (num_registers): ...deleted macro.
3002 (num_registers): New function.
3003 (num_pseudo_registers): New function.
3004 (variants): Update all variants to intialize new fields correctly.
3005 Postpone initialization of number of pseudo regs and real regs.
3006 (init_variants): New function.
3007 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3008 registers offsets.
3009
fcaffe4c
DC
30102002-08-19 David Carlton <carlton@math.stanford.edu>
3011
2c2738a0
DC
3012 * valops.c (search_struct_field): Change error message to treat
3013 return value of 0 from value_static_field as meaning that field is
3014 optimized out.
3015 (value_struct_elt_for_reference): Ditto.
3016 * values.c (value_static_field): Treat an unresolved location the
3017 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3018 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3019 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3020 * MAINTAINERS: Add self to Write After Approval list.
3021
88658117
AC
30222002-08-19 Andrew Cagney <ac131313@redhat.com>
3023
3024 * mips-tdep.c (mips_xfer_register): New function.
3025 (mips_n32n64_extract_return_value): Rewrite.
3026 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3027 instead of deprecated_extract_return_value.
3028
21283beb
EZ
30292002-08-19 Elena Zannoni <ezannoni@redhat.com>
3030
3031 * rs6000-tdep.c (TDEP): Delete macro.
3032 (branch_dest): Replace use of TDEP macro with its body.
3033 (rs6000_pop_frame): Ditto.
3034 (rs6000_push_arguments): Ditto.
3035 (rs6000_skip_trampoline_code): Ditto.
3036 (rs6000_frame_saved_pc): Ditto.
3037 (rs6000_frame_chain): Ditto.
3038 (rs6000_register_name): Ditto.
3039 (rs6000_register_byte): Ditto.
3040 (rs6000_register_raw_size): Ditto.
3041 (rs6000_register_virtual_type): Ditto.
3042 (rs6000_register_convertible): Ditto.
3043 (rs6000_convert_from_func_ptr_addr): Ditto.
3044
bf072999
DJ
30452002-08-19 Daniel Jacobowitz <drow@mvista.com>
3046
3047 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3048 conditionally.
3049 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3050 MIPS_LINUX_JB_ELEMENT_SIZE.
3051 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3052 for MAX_REGISTER_RAW_SIZE arrays.
3053 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3054 MIPS_LINUX_JB_ELEMENT_SIZE.
3055
9b949a49
PM
30562002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3057
3058 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3059
6d3e79c6
AS
30602002-08-19 Aidan Skinner <aidan@velvet.net>
3061
3062 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3063 ada-valprint.c ada-tasks.c.
3064 (YYFILES): Add ada-exp.y.
3065 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3066 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3067 (ada-exp.tab.o): New target.
3068
06c0b04e
AC
30692002-08-18 Andrew Cagney <ac131313@redhat.com>
3070
3071 * regcache.c (regcache_xfer_part): New function.
3072 (regcache_raw_read_part): New function.
3073 (regcache_raw_write_part): New function.
3074 (regcache_cooked_read_part): New function.
3075 (regcache_cooked_write_part): New function.
3076 * regcache.h (regcache_raw_read_part): Declare.
3077 (regcache_raw_write_part): Declare.
3078 (regcache_cooked_read_part): Declare.
3079 (regcache_cooked_write_part): Declare.
3080
92d1e331
DJ
30812002-08-18 Daniel Jacobowitz <drow@mvista.com>
3082
3083 * remote.c (remote_open_1): Add async_p.
3084 (remote_async_open_1): Delete.
3085 (open_remote_target): Delete.
3086 (remote_open, extended_remote_open): Update calls to remote_open_1.
3087 (remote_async_open, extended_remote_async_open): Call
3088 remote_open_1 instead of remote_async_open_1.
3089
247055de
MK
30902002-08-19 Mark Kettenis <kettenis@gnu.org>
3091
3092 * blockframe.c: Fix a few coding standard violations.
3093
641eda39
MK
30942002-08-19 Mark Kettenis <kettenis@gnu.org>
3095
0b717710
MK
3096 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3097 here from ...
3098 * config/i386/tm-i386sco5.h: ... here. File removed.
3099 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3100
26d28e12 3101 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
3102 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3103 (TM_FILE): Set to tm-i386.h.
3104 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3105 * config/i386/tm-i386v.h: Remove file.
3106 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3107 instead of "i386/tm-i386v.h".
3108 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3109 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3110 "i386/tm-i386v.h".
3111 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3112 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3113 "i386/tm-i386.h".
3114
d4e0bab4
MK
31152002-08-18 Mark Kettenis <kettenis@gnu.org>
3116
3117 * config/i386/nm-i386v.h: Add protection against
3118 multiple-inclusion.
3119 (i386_register_u_addr): Remove prototype.
3120 (register_u_addr): New prototype.
3121 (REGISTER_U_ADDR): Redefine accordingly.
3122 * i386v-nat.c: Improve several comments.
3123 (i386_register_u_addr): Change signature and rename to
3124 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3125 ubase variable.
3126
46cac009
AC
31272002-08-18 Andrew Cagney <ac131313@redhat.com>
3128
3129 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3130 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3131 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3132 deprecated_extract_return_value.
3133 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3134 rename mips_o32o64_push_arguments.
3135 (mips_gdbarch_init): Update.
3136 (mips_extract_return_value): Delete.
3137 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3138 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3139 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3140 (mips_n32n64_extract_return_value): Clone
3141 mips_extract_return_value.
3142 (mips_store_return_value): Delete.
3143 (mips_o32_store_return_value): Clone mips_store_return_value.
3144 (mips_o64_store_return_value): Clone mips_store_return_value.
3145 (mips_eabi_store_return_value): Clone mips_store_return_value.
3146 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3147
d2e4a39e
AS
31482002-08-18 Aidan Skinner <aidan@velvet.net>
3149
0c30c098
AS
3150 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3151 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3152
31532002-08-18 Aidan Skinner <aidan@velvet.net>
3154
3155 * ada-lang.c: Run through gdb_indent.sh.
3156 * ada-lang.h: Run through gdb_indent.sh.
3157 * ada-tasks.c: Run through gdb_indent.sh.
3158 * ada-typeprint.c: Run through gdb_indent.sh.
3159 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 3160
01fc4e33
AC
31612002-08-18 Andrew Cagney <ac131313@redhat.com>
3162
3163 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3164 ABI.
3165
d8ee244c
MK
31662002-08-18 Mark Kettenis <kettenis@gnu.org>
3167
c38d8261
MK
3168 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3169
222db64c
MK
3170 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3171 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3172
c2848c82
MK
3173 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3174 write_register_gen instead of write_register_bytes.
3175
d8ee244c
MK
3176 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3177 i[3456]-*-osf1mk* configurations have been made obsolete.
3178 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3179 i[3456]86-*-osf1mk* hosts obsolete.
3180 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3181 targets obsolete.
3182 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3183 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3184 config/i386/i386m3.mt, config/i386/nm-m3.h,
3185 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3186 config/i386/i386mk.mh, config/i386/i386mk.mt,
3187 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3188 obsolete.
3189 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3190 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3191 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3192
61d8d407
AC
31932002-08-18 Andrew Cagney <ac131313@redhat.com>
3194
3195 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3196 (hppa_value_returned_from_stack): Declare.
3197 (hppa_extract_return_value): Declare.
3198 * config/pa/hppa.mt: New file.
3199 * configure.tgt: Recognize hppa*-*-*.
3200 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3201
0c52bd59
MK
32022002-08-18 Mark Kettenis <kettenis@gnu.org>
3203
3204 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3205 comment.
3206
b5686e99
MK
32072002-08-17 Mark Kettenis <kettenis@gnu.org>
3208
3209 * top.c (gdb_rl_operate_and_get_next): Make sure
3210 operate-and-get-next functions correctly even when the history
3211 list is completely filled.
3212
c1bab85b
AC
32132002-08-18 Andrew Cagney <ac131313@redhat.com>
3214
3215 * MAINTAINERS (Target Instruction Set Architectures): Rename
3216 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3217 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3218 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3219 already listed under Host/Native.
3220
3221 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3222 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3223 mips*-*-*.
3224
32089c7c
AC
32252002-08-17 Andrew Cagney <ac131313@redhat.com>
3226
3227 * config/ia64/ia64.mt: New file.
3228 * config/alpha/alpha.mt: New file.
3229 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3230 ia64-linux-gnu. Mention that ia64-elf is broken.
3231 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3232
b4671f85
MK
32332002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3234
3235 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3236 generic_func_frame_valid instead of func_frame_valid.
3237
c8edd8b4
JB
32382002-08-16 Joel Brobecker <brobecker@gnat.com>
3239
3240 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3241 procfs appears to be broken when debugging on multi-processor
3242 machines. So enable software single stepping in order to avoid
3243 using the procfs interface to do next/step operations, using
3244 internal breakpoints instead.
3245
3246 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3247 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3248 make this pc address equal to the value it would have if the
3249 system stepping capability was used. Also set a new flag used
3250 to ensure that we don't readjust the PC one more time later.
3251
3252 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3253 address by DECR_PC_AFTER_BREAK when software single step is
3254 in use for this architecture, as this has already been taken
3255 care of in handle_inferior_event().
3256
238617f6
JB
32572002-08-16 Joel Brobecker <brobecker@gnat.com>
3258
3259 * infrun.c (handle_inferior_event): Minor reformatting, to make
3260 a rather long condition expression easier to read.
3261
541a7aac
AC
32622002-08-16 Andrew Cagney <ac131313@redhat.com>
3263
3264 * Makefile.in (gdbtk.o): Move to end of file.
3265 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3266 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3267 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3268 (gdbtk-wrapper.o, gdbres.o): Ditto.
3269
f92d4a7b
AC
32702002-08-16 Andrew Cagney <ac131313@redhat.com>
3271
3272 * Makefile.in (copying.o): Separate out compile rule.
3273 (hpux-thread.o, procfs.o, signals.o): Ditto.
3274 (v850ice.o, z8k-tdep.o): Ditto.
3275 (tui-file.o): Move to TUI section.
3276 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3277 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3278
1cce71eb
JB
32792002-08-16 Joel Brobecker <brobecker@gnat.com>
3280
3281 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3282 skip_trampoline_code, for better namespace-proofing.
3283
3284 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3285
0851f23d
JB
32862002-08-16 Joel Brobecker <brobecker@gnat.com>
3287
3288 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3289
f8d40ec8
JB
32902002-08-16 Joel Brobecker <brobecker@gnat.com>
3291
3292 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3293 signal, check whether we hit a breakpoint before checking for a
3294 single step breakpoint. Otherwise, GDB fails to notice that a
3295 breakpoint has been hit when stepping onto a breakpoint.
3296
63d022e0
KS
32972002-08-16 Keith Seitz <keiths@redhat.com>
3298
3299 * gdb-events.sh (clear_gdb_event_hooks): New function.
3300 * gdb-events.c: Regenerate.
3301 * gdb-events.h: Regenerate.
3302
6e31adb3
AC
33032002-08-16 Andrew Cagney <ac131313@redhat.com>
3304
3305 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3306 not_a_sw_breakpoint.
3307 * breakpoint.h (bpstat_stop_status): Add parameter names.
3308
c8189ed1
GS
33092002-08-16 Grace Sainsbury <graces@redhat.com>
3310
3311 * remote.c (remote_insert_hw_breakpoint)
3312 (remote_remove_hw_breakpoint): Fix calculation of length field
3313 for Z-packet.
3314
d05285fa
MS
33152002-08-15 Michael Snyder <msnyder@redhat.com>
3316
466d7106
MS
3317 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3318 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3319 (supply_fpregset): Ditto.
3320
d05285fa
MS
3321 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3322 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3323 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 3324 (TARGET_READ_SP): Delete.
bf1f5b4c 3325 (DO_REGISTERS_INFO): Delete.
102182a9
MS
3326 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3327 Delete.
3328 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3329 from macros to functions.
bf1f5b4c 3330
d05285fa
MS
3331 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3332 (mips_register_convertible, mips_register_convert_to_virtual,
3333 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
3334 (mips_read_sp): New function.
3335 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
3336 (mips_do_registers_info): Make static.
3337 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
3338 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3339 (mips_register_convert_from_type, mips_register_convert_to_type):
3340 New functions.
3341 (mips_gdbarch_init): Set up function_start_offset,
3342 register_virtual_size, pc_in_sigtramp.
d05285fa 3343
e76f1f2e
AC
33442002-08-15 Andrew Cagney <ac131313@redhat.com>
3345
3346 * infcmd.c (vector_info): New function.
3347 (_initialize_infcmd): Add command "info vector".
3348 (print_vector_info): New function.
3349
3350 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3351 * gdbarch.h, gdbarch.c: Regenerate.
3352
4782dc19
AC
33532002-08-15 Andrew Cagney <ac131313@redhat.com>
3354
3355 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3356 ``print_all''. Only print vector registers when ``print_all''.
3357
23e3a7ac
AC
33582002-08-15 Andrew Cagney <ac131313@redhat.com>
3359
8e186fd6
AC
3360 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3361 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3362
23e3a7ac
AC
3363 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3364 Add `args' parameter.
3365 * gdbarch.h, gdbarch.c: Regenerate.
3366
3367 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3368
3369 * infcmd.c (float_info): Call print_float_info.
3370 (print_float_info): New function. By default, print the
3371 floating-point registers.
3372
3373 * arch-utils.h (default_print_float_info): Delete declaration.
3374 * arch-utils.c (default_print_float_info): Delete function.
3375
e0ca2bb9
MK
33762002-08-16 Mark Kettenis <kettenis@gnu.org>
3377
3f733acc
MK
3378 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3379 out define.
3380
7d8d2918
MK
3381 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3382 FRAME.
3383
1c7cc583
MK
3384 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3385 * configure.host: Make i[3456]86-*-aix host obsolete.
3386 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3387 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3388 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3389 config/i386/xm-i386aix.h: Make files obsolete.
3390 * i386aix-nat.c: Make file obsolete.
3391 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3392 (i386aix-nat.o): Make target obsolete.
3393
e0ca2bb9
MK
3394 * config/i386/nm-gnu.h: Removed.
3395 * config/i386/nm-i386gnu.h: New file.
3396 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3397 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3398 Moved here from ...
3399 * config/i386/tm-i386gnu.h: ... here. Removed.
3400 * config/i386/xm-i386gnu.h: Removed.
3401 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3402 (NAT_FILE): Set to nm-i386gnu.h.
3403 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3404 * i386-tdep.c: New file.
3405 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3406 (i386gnu-tdep.o): Specify dependencies.
3407
16057ec7 34082002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 3409
6b99ee2e
MK
3410 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3411 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3412 Adjust a few comments to reflect reality a bit closer.
3413 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3414 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3415 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3416 target_insert_watchpoint, target_remove_watchpoint):
3417 Move defines to ...
3418 * config/i386/nm-i386sco5.h: ... here.
3419 (kernel_u_size): Add prototype. Improve a few comments and add
3420 protection against multiple inclusion.
3421
d9a6f65c
MK
3422 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3423 out define.
3424
047eff6a
MK
3425 * uw-thread.c (SP_ARG0): Define if not already defined.
3426 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3427
dcdb1290
MK
3428 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3429
5d2d0b2a
MK
3430 * config/i386/tm-i386.h: Don't include "regcache.h".
3431
61113f8b
MK
3432 * i387-tdep.h (i387_print_float_info): New prototype.
3433 * i387-tdep.c (print_i387_value, print_i387_ext,
3434 print_i387_status_word, print_i387_control_word): Add `struct
3435 ui_file *' argument and use it for output.
3436 (i387_print_float_info): Renamed from i387_float_info. Add
3437 `struct gdbarch *' and `struct ui_file *' arguments and use the
3438 latter for output.
3439 * i386-tdep.c: Include "i387-tdep.h".
3440 (i386_gdbarch_init): Set print_float_info.
3441 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3442 (FLOAT_INFO): Remove define.
3443
46e0f506
MS
34442002-08-13 Michael Snyder <msnyder@redhat.com>
3445
3446 * mips-tdep.c (mips_push_arguments): Rename to
3447 mips_eabi_push_arguments, and tune for EABI.
3448 (MIPS_REGS_HAVE_HOME_P): Delete.
3449 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3450 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3451 Delete references to mips_regs_have_home_p.
3452
409268de
KS
34532002-08-14 Keith Seitz <keiths@redhat.com>
3454
3455 * Makefile.in (install-gdbtk): Create insight plugin directory.
3456 Install plugins.tcl file.
3457
ffc6a242
KS
34582002-08-14 Keith Seitz <keiths@redhat.com>
3459
3460 * configure.in: Move SUBDIRS to near top of the file so that
3461 --enable options may add things to it.
3462 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3463 * configure: Regenerate.
3464
ebafbe83
MS
34652002-08-13 Michael Snyder <msnyder@redhat.com>
3466
3467 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3468 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3469 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3470
32f6f25d
AC
34712002-08-13 Andrew Cagney <ac131313@redhat.com>
3472
3473 * vax-tdep.c (vax_get_saved_register): Delete function.
3474 (vax_gdbarch_init): Update.
3475 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3476 (ns32k_gdbarch_init): Update.
3477 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3478 (alpha_gdbarch_init): Update.
3479
53826de9
AC
34802002-08-13 Andrew Cagney <cagney@redhat.com>
3481
3482 * regcache.c (init_regcache_descr): Overallocate the
3483 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3484 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3485 nr_raw_registers.
3486 (set_register_cached): Add range checking assertions. Use
3487 current_regcache.
3488
16057ec7 34892002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
3490
3491 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3492 numbers for MMX registers.
3493
7b4c2dce
AC
34942002-08-13 Andrew Cagney <cagney@redhat.com>
3495
3496 * i386-tdep.c (i386_gdbarch_init): Use
3497 generic_unwind_get_saved_register.
3498
1e03ad20
KB
34992002-08-13 Kevin Buettner <kevinb@redhat.com>
3500
3501 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3502 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3503 target vector.
3504 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3505 Delete. Add comment regarding this now-deleted target method.
3506
548bcbec
SC
35072002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3508
3509 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3510 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3511 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3512 real PC and the page number (if it's within the memory bank window).
3513 (m68hc11_pseudo_register_write): Likewise when saving.
3514 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3515 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3516 (m68hc11_register_raw_size): And use 32-bit for it.
3517 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3518 16K memory bank is used by the prog; also use the virtual pc.
3519
7df11f59
SC
35202002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3521
3522 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3523 (m68hc11_gdbarch_init): Install it in gdbarch.
3524 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3525 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3526 (MSYMBOL_SIZE): New for documentation.
3527 (insn_return_kind): Enum to specify how a function returns.
3528 (frame_extra_info): Cleanup and record the return mode.
3529 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3530 register in address computation.
3531 (m68hc11_get_return_insn): New to obtain the return instruction used
3532 by the function.
3533 (m68hc11_frame_init_saved_regs): Take into account the return
3534 instruction used by the function for far and interrupt functions.
3535 (m68hc11_init_extra_frame_info): Take into account page register.
3536 (m68hc11_frame_args_address): Adjust according to the return mode.
3537 (show_regs): Print page register only when it's used.
3538
5706502a
SC
35392002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3540
3541 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3542 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3543 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3544 registers.
3545 (m68hc11_register_raw_size): Likewise.
3546
28fc6740
AC
35472002-08-13 Andrew Cagney <cagney@redhat.com>
3548
3549 * i386-tdep.c (i386_register_name): Handle mmx registers.
3550 (mmx_regnum_p): New function.
3551 (i386_mmx_names): New array.
3552 (mmx_num_regs): New variable.
3553 (i386_pseudo_register_read): New function.
3554 (i386_pseudo_register_write): New function.
3555 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3556
3557 * regcache.c (regcache_raw_read_unsigned): New function.
3558 (regcache_raw_read_signed): New function.
3559 * regcache.h (regcache_raw_read_unsigned): Declare.
3560 (regcache_raw_read_signed): Declare.
3561
a378f419
AC
35622002-08-13 Andrew Cagney <cagney@redhat.com>
3563
3564 * regcache.c (regcache_raw_read_as_address): Delete function.
3565 (regcache_cooked_read_signed): New function.
3566 (regcache_cooked_read_unsigned): New function.
3567 * regcache.h (regcache_cooked_read_signed): Declare.
3568 (regcache_cooked_read_unsigned): Declare.
3569 (regcache_raw_read_as_address): Delete declaration.
3570
3571 * blockframe.c (generic_read_register_dummy): Use
3572 regcache_cooked_read_unsigned.
3573 * i386-tdep.c (i386_extract_struct_value_address): Use
3574 regcache_cooked_read_unsigned.
3575
81967506
SC
35762002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3577
3578 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3579 double sizes according to ELF ABI flags.
3580 (gdbarch_tdep): Record elf_flags.
3581
ffe1f3ee
SC
35822002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3583
3584 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3585 (m6812_prolog): They can appear in 68HC12 function prologue.
3586 (m68hc11_frame_chain): Cleanup.
3587
98216c5d
AC
35882002-08-12 Andrew Cagney <cagney@redhat.com>
3589
3590 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3591 declarations.
3592 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3593 (i386_linux_register_raw_size): Delete function.
3594 (i386_linux_init_abi): Update.
3595 * i386-tdep.c (i386_register_raw_size): Delete function.
3596 (i386_register_byte): Delete function.
3597 (i386_gdbarch_init): Update.
3598 (i386_register_size): Delete array.
3599 (i386_register_offset): Delete array.
3600
3601 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3602 (REGISTER_RAW_SIZE): Delete macro.
3603 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3604 (REGISTER_BYTE): Delete macro.
3605
3b19021e
AS
36062002-08-11 Aidan Skinner <aidan@velvet.net>
3607
3608 * ada-lang.c (ada_lookup_partial_symbol)
3609 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3610 prototype names so that grep ^func works properly.
3611
3612 * ada-lang.c (ada_array_element_type)
3613 (ada_lookup_partial_symbol): Fix typos in parameter list.
3614
3615 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3616 Fix prototype names so that grep ^func works properly.
3617
b063e7a2
AC
36182002-08-10 Andrew Cagney <cagney@redhat.com>
3619 Elena Zannoni <ezannoni@redhat.com>
3620 Martin M. Hunt <hunt@redhat.com>
3621
3622 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3623 (build_builtin_type_vec128i): Set the vector bit.
3624 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3625 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3626 (build_builtin_type_vec64): New function.
3627 (build_builtin_type_vec64i): New function.
3628 (build_gdbtypes): Initialize builtin_type_vec64 and
3629 builtin_type_vec64i.
3630
a7e3c2ad
AC
36312002-08-09 Andrew Cagney <cagney@redhat.com>
3632
3633 * regcache.c (regcache_dump): Compare the register offset
3634 with REGISTER_BYTE.
3635 * arch-utils.c (generic_register_byte): New function.
3636 * arch-utils.h (generic_register_byte): Declare.
3637 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3638 * gdbarch.h, gdbarch.c: Regenerate.
3639
af030b9a
AC
36402002-08-09 Andrew Cagney <cagney@redhat.com>
3641
3642 * regcache.c: Include "gdbcmd.h"
3643 (_initialize_regcache): Add commands "maintenance print
3644 registers", "maintenance print raw-registers" and "maintenance
3645 print cooked-registers".
3646 (enum regcache_dump_what): Define.
3647 (dump_endian_bytes): New function.
3648 (regcache_dump): New function.
3649 (regcache_print): New function.
3650 (maintenance_print_registers): New function.
3651 (maintenance_print_raw_registers): New function.
3652 (maintenance_print_cooked_registers): New function.
3653 * Makefile.in (regcache.o): Update dependencies.
3654
cb3d25d1
MS
36552002-08-09 Michael Snyder <msnyder@redhat.com>
3656
3657 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3658 (mips_push_arguments): Correct some comments. Use paddr_nz
3659 for printing addresses in debug output. Replace static
3660 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3661 (mips_n32n64_push_arguments): New function, cloned from
3662 mips_push_arguments and tuned for the n32/n64 ABI.
3663 (mips_push_register): Buffer needs dynamic allocation.
3664 (mips_print_register): Ditto.
3665 (do_gp_register_row): Ditto.
3666 (mips_store_return_value): Ditto.
3667 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3668
2163ab9d
DH
36692002-08-09 Don Howard <dhoward@redhat.com>
3670
3671 * memattr.c (mem_info_command): Print special case of upper bound
3672 as max CORE_ADDR + 1.
3673
b78bcb18
MS
36742002-08-08 Michael Snyder <msnyder@redhat.com>
3675
3676 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3677 returns structs by ref if they're too big to fit in two registers.
3678
ffabd70d
KB
36792002-08-09 Kevin Buettner <kevinb@redhat.com>
3680
3681 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3682 saved regs value.
3683 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3684 mips_find_saved_regs().
3685 (mips_pop_frame): Likewise.
3686
fbcdb4a3
KB
36872002-08-09 Kevin Buettner <kevinb@redhat.com>
3688
3689 * blockframe.c (frame_saved_regs_register_unwind): Revise
3690 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3691 frames are in use.
3692
3c3bea1c
GS
36932002-08-09 Grace Sainsbury <graces@redhat.com>
3694
3695 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3696 T-packets; the 'a' is not taken as a register number.
3697 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3698 (remote_stopped_data_address): New functions; add to target
3699 vector.
3700 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3701 prototypes to match other implementations of this
3702 function. replace integer argument with pointer -- the length
3703 field in the Z-packet is the length of what is pointed to or 1 if
3704 pointer is null. Add to target vector.
3705 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3706 target vector.
3707
3708 From Mark Salter:
3709 * remote.c (remote_wait): Add support to extract optional
3710 watchpoint information from T-packet. Ignore unrecognized
3711 optional info in T-packet.
3712 (remote_async_wait): Ditto.
3713
5d1d95de
CV
37142002-08-09 Corinna Vinschen <vinschen@redhat.com>
3715
3716 * cli/cli-dump.c: Change fopen modes to use binary open modes
3717 as defined in include/fopen-bin.h throughout.
3718
c86b5b38
MS
37192002-08-08 Michael Snyder <msnyder@redhat.com>
3720
3721 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3722
b30590dc
KB
37232002-08-08 Kevin Buettner <kevinb@redhat.com>
3724
3725 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3726 assertion failure by returning early after a warning.
3727
498868ed
KB
37282002-08-08 Kevin Buettner <kevinb@redhat.com>
3729
3730 * mips-tdep.c (mips_find_saved_regs): Make static.
3731 (mips_frame_init_saved_regs): New function.
3732 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3733 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3734 (mips_find_saved_regs): Delete declaration.
3735
b2dd6311
GS
37362002-08-08 Grace Sainsbury <graces@redhat.com>
3737
3c3bea1c
GS
3738 * remote.c (remote_wait, remote_async_wait): Change
3739 thread_num from int to ULONGEST.
3740 (unpack_varlen_hex): Change result parameter from
3741 int * to ULONGEST *.
b2dd6311 3742
ea47855f
AC
37432002-08-08 Andrew Cagney <ac131313@redhat.com>
3744
3745 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3746 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3747 powerpc*-*-*.
3748 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3749
69db8bae
AC
37502002-08-08 Andrew Cagney <cagney@redhat.com>
3751
3752 * gcore.c (override_derive_stack_segment): Delete variable.
3753 (preempt_derive_stack_segment): Delete function.
3754 (derive_stack_segment): Delete function.
3755 (default_derive_stack_segment): Renamed to derive_stack_segment.
3756 (override_derive_heap_segment): Delete variable.
3757 (preempt_derive_heap_segment): Delete function.
3758 (derive_heap_segment): Delete function.
3759 (default_derive_heap_segment): Rename to derive_heap_segment.
3760
cb811fe7
MS
37612002-08-06 Michael Snyder <msnyder@redhat.com>
3762
3763 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3764 * mips-tdep.c (mips_EABI_use_struct_convention,
3765 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3766 New functions. (mips_use_struct_convention): Delete.
3767 (mips_gdbarch_init): set use_gdbarch_convention.
3768
8b389c40
MS
37692002-08-06 Michael Snyder <msnyder@redhat.com>
3770
3771 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3772 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3773 mips_o32_reg_struct_has_addr): New functions.
3774 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3775
5c27f28a
AC
37762002-08-07 Andrew Cagney <ac131313@redhat.com>
3777
3778 * regcache.c (pseudo_register): Delete function.
3779 (fetch_register): Delete function.
3780 (store_register): Delete function.
3781 (regcache_raw_read, legacy_read_register_gen): Use
3782 target_fetch_registers instead of fetch_register.
3783 (legacy_write_register_gen, regcache_raw_write): Use
3784 target_store_register instead of store_register.
3785 (write_register_bytes): Ditto.
3786
3787 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3788 (STORE_PSEUDO_REGISTER): Delete.
3789 * gdbarch.h, gdbarch.c: Regenerate.
3790
5b331675
CV
37912002-08-06 Corinna Vinschen <vinschen@redhat.com>
3792
3793 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3794 write dump file binary.
3795
6acdf5c7
MS
37962002-08-05 Michael Snyder <msnyder@redhat.com>
3797
3798 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3799 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3800 (mips_gdbarch_init): Set N32 target to be mips64.
3801
b2f01c35
KB
38022002-08-06 Kevin Buettner <kevinb@redhat.com>
3803
3804 * frame.c (find_saved_register): Break out of loop once saved
3805 register address is found. Don't mention sparc in loop comment
3806 anymore.
3807
63db5580
KB
38082002-08-06 Kevin Buettner <kevinb@redhat.com>
3809
3810 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3811 mips_default_saved_regsize to 8.
3812
5e34e75e
AC
38132002-08-06 Andrew Cagney <ac131313@redhat.com>
3814
3815 * gcore.c: Do not include <sys/procfs.h>.
3816 * Makefile.in (gcore.o): Update dependencies.
3817
eb4c54a2
AC
38182002-08-06 Andrew Cagney <cagney@redhat.com>
3819
3820 * configure.tgt: Make arc-*-* obsolete.
3821 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3822 * MAINTAINERS: Make arc-elf obsolete.
3823 * arc-tdep.c: Make file obsolete.
3824 * config/arc/arc.mt: Ditto.
3825 * config/arc/tm-arc.h: Ditto.
3826
ced15480
TR
38272002-08-05 Theodore A. Roth <troth@verinet.com>
3828
c1bab85b 3829 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 3830
b4743822
AC
38312002-08-05 Andrew Cagney <ac131313@redhat.com>
3832
3833 * mcore-tdep.c (mcore_gdbarch_init): Use
3834 generic_unwind_get_saved_register instead of
3835 generic_get_saved_register.
3836 * v850-tdep.c (v850_gdbarch_init): Ditto.
3837 * frv-tdep.c (frv_gdbarch_init): Ditto.
3838 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3839 * s390-tdep.c (s390_gdbarch_init): Ditto.
3840 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3841 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3842 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3843
3956d554
JB
38442002-08-05 Joel Brobecker <brobecker@gnat.com>
3845
3846 * objfiles.h: Add missing #include "symfile.h"
3847
3848 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3849
8249c0d6
AC
38502002-08-04 Andrew Cagney <ac131313@redhat.com>
3851
3852 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3853 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3854 of FIELD_BITSIZE.
3855
b9d14705
DJ
38562002-08-04 Daniel Jacobowitz <drow@mvista.com>
3857
3858 * NEWS: Cleanup and nitpick.
3859
dd73b9bb
AC
38602002-08-03 Andrew Cagney <ac131313@redhat.com>
3861
3862 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3863
043a27f8
AC
38642002-08-03 Andrew Cagney <ac131313@redhat.com>
3865
3866 * Makefile.in (gdbtk-bp.o): Update dependencies.
3867 (gdbtk-register.o): Ditto.
3868 (gdbtk-varobj.o): Ditto.
3869
46ce284d
AC
38702002-08-03 Andrew Cagney <cagney@redhat.com>
3871
3872 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3873 m68hc11_fetch_pseudo_register.
3874 (m68hc11_pseudo_register_write): Replace
3875 m68hc11_store_pseudo_register.
3876 (m68hc11_gdbarch_init): Update.
3877
b66d6d2e
AC
3878Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3879
3880 * gdbarch.sh: Include "gdb_string.h".
3881 * gdbarch.c: Regenerate.
3882
3883 * regcache.c: Include "gdb_string.h".
3884 * ax-general.c: Ditto.
3885 * varobj.c: Ditto.
3886 * std-regs.c: Ditto.
3887 * fbsd-proc.c: Ditto.
3888 * thread.c: Ditto.
3889
3890 * Makefile.in (regcache.o): Update dependencies.
3891 (thread.o, gdbarch.o): Ditto.
3892 (ax-general.o, gdbarch.o): Ditto.
3893 (varobj.o, std-regs.o): Ditto.
3894 (fbsd-proc.o): Specify dependencies.
3895
29e1842b
AC
38962002-08-02 Andrew Cagney <cagney@redhat.com>
3897
3898 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3899 regnum.
3900 (regcache_cooked_write): Ditto.
3901
68365089
AC
39022002-08-02 Andrew Cagney <ac131313@redhat.com>
3903
3904 * regcache.c (regcache_cooked_read): New function.
3905 (regcache_cooked_write): New function.
3906 (read_register_gen): Rewrite using regcache_cooked_read.
3907 (write_register_gen): Rewrite using regcache_cooked_write.
3908
3909 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3910 Declare.
3911
d8124050
AC
39122002-08-02 Andrew Cagney <cagney@redhat.com>
3913
3914 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3915 Replace the architecture methods register_read and register_write.
3916 * gdbarch.h, gdbarch.c: Regenerate.
3917 * regcache.c (init_regcache_descr): Update.
3918 (read_register_gen): Update.
3919 (write_register_gen): Update.
3920 (supply_register): Update comment.
3921
3922 * sh-tdep.c (sh_gdbarch_init): Update.
3923 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3924 `regcache' and `gdbarch' parameters. Make `buffer' a void
3925 pointer. Update code.
3926 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3927 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3928 void pointer. Update code.
3929 (sh64_register_write): Delete.
3930 (sh4_register_read): Delete.
3931 (sh64_register_read): Delete.
3932 (sh4_register_write): Delete.
3933 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3934 void pointer, `to' parameter a void pointer.
3935 (sh_sh64_register_convert_to_raw): Ditto.
3936
a6425924
KB
39372002-08-01 Kevin Buettner <kevinb@redhat.com>
3938
3939 * mips-tdep.c (mips_register_virtual_type): Use architecture
3940 invariant return values.
3941
ff5922b5
AC
39422002-08-01 Andrew Cagney <cagney@redhat.com>
3943
3944 * linux-proc.c: Include "gdb_string.h".
3945 * Makefile.in (linux-proc.o): Update dependency list.
3946
32a6503c
KB
39472002-08-01 Kevin Buettner <kevinb@redhat.com>
3948
3949 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3950 comment.
3951
ccaa32c7
GS
39522002-08-01 Grace Sainsbury <graces@redhat.com>
3953
3954 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3955 to_insert_watchpoint, to_remove_watchpoint,
3956 to_stopped_by_watchpoint, to_stopped_data_address,
3957 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3958 target vecctor. Define their corresponding macros so they call
3959 them.
3960
3961 * target.c: Add default and debug versions of for
3962 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3963 to_insert_watchpoint, to_remove_watchpoint,
3964 to_stopped_by_watchpoint, to_stopped_data_address,
3965 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3966
78fde5f8
KB
39672002-08-01 Kevin Buettner <kevinb@redhat.com>
3968
3969 * mips-tdep.c (mips_register_virtual_type): New function.
3970 (mips_gdbarch_init): Register mips_register_virtual_type()
3971 with gdbarch machinery.
3972 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3973 this file instead of tm-bigmips.h.
3974 (MIPS_REGSIZE): Delete this macro.
3975 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3976 multiarch version in mips-tdep.c will be found.
3977
db034ac5
AC
39782002-08-01 Andrew Cagney <cagney@redhat.com>
3979
3980 * NEWS: Menion that CHILL has been made obsolete.
3981
3982 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
3983 * stabsread.c (read_range_type): Ditto.
3984 * gdbtypes.h: Ditto.
3985 * language.c (binop_type_check): Ditto.
3986 (binop_result_type): Ditto.
3987 (integral_type): Ditto.
3988 (character_type): Ditto.
3989 (string_type): Ditto.
3990 (boolean_type): Ditto.
3991 (structured_type): Ditto.
3992 (lang_bool_type): Ditto.
3993 (binop_type_check): Ditto.
3994 * language.h (_LANG_chill): Ditto.
3995 * dwarfread.c (set_cu_language): Ditto.
3996 * dwarfread.c (CHILL_PRODUCER): Ditto.
3997 * dwarfread.c (handle_producer): Ditto.
3998 * expression.h (enum exp_opcode): Ditto.
3999 * eval.c: Ditto for comments.
4000 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4001 * expprint.c (print_subexp): Ditto.
4002 (print_subexp): Ditto.
4003 * valops.c (value_cast): Ditto.
4004 (search_struct_field): Ditto.
4005 * value.h (COERCE_VARYING_ARRAY): Ditto.
4006 * symfile.c (init_filename_language_table): Ditto.
4007 (add_psymbol_with_dem_name_to_list): Ditto.
4008 * valarith.c (value_binop): Ditto.
4009 (value_neg): Ditto.
4010 * valops.c (value_slice): Ditto.
4011 * symtab.h (union language_specific): Ditto.
4012 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4013 (SYMBOL_DEMANGLED_NAME): Ditto.
4014 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4015 * defs.h (enum language): Ditto.
4016 * symtab.c (got_symtab): Ditto.
4017 * utils.c (fprintf_symbol_filtered): Ditto.
4018
4019 * ch-typeprint.c: Make file obsolete.
4020 * ch-valprint.c: Make file obsolete.
4021 * ch-lang.h: Make file obsolete.
4022 * ch-exp.c: Make file obsolete.
4023 * ch-lang.c: Make file obsolete.
4024
4025 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4026 CHILL_LIB.
4027 (TARGET_FLAGS_TO_PASS): Ditto.
4028 (CHILLFLAGS): Obsolete.
4029 (CHILL): Obsolete.
4030 (CHILL_FOR_TARGET): Obsolete.
4031 (CHILL_LIB): Obsolete.
4032 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4033 ch-valprint.c.
4034 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4035 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4036 ch-lang.o.
4037 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4038 targets.
4039
8aaf0b47
JB
40402002-07-31 Joel Brobecker <brobecker@gnat.com>
4041
4042 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4043 This does not change anything at the moment, but will be helpful
4044 later when full Ada support is integrated.
4045
f3a7b3a5
KB
40462002-07-31 Kevin Buettner <kevinb@redhat.com>
4047
4048 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4049 help message.
4050
fb850278
KB
40512002-07-31 Kevin Buettner <kevinb@redhat.com>
4052
4053 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4054 and save it in a local variable. Use variable in later test.
4055
e3bddbfa
KB
40562002-07-31 Kevin Buettner <kevinb@redhat.com>
4057
4058 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4059 test. (Thanks to Daniel Jacobowitz.)
4060
28d169de
KB
40612002-07-31 Kevin Buettner <kevinb@redhat.com>
4062
4063 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4064 (mips_abi_strings): Add "n64".
4065 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4066
7fe7e44e
KB
40672002-07-31 Kevin Buettner <kevinb@redhat.com>
4068
4069 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4070 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4071
c6caf090
KB
40722002-07-31 Kevin Buettner <kevinb@redhat.com>
4073
4074 * utils.c (host_pointer_to_address, address_to_host_pointer):
4075 Use gdb_assert() instead of explicit call to internal_error().
4076
c41669e0
KB
40772002-07-30 Kevin Buettner <kevinb@redhat.com>
4078
4079 * Makefile.in (rs6000-nat.o): Update dependencies.
4080
4081 From Nicholas Duffek:
4082 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4083 (aix-thread.o): New rule.
4084 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4085 * config/powerpc/aix432.mh: New file.
4086
2fda4977
DJ
40872002-07-30 Daniel Jacobowitz <drow@mvista.com>
4088
4089 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4090 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4091 (fetch_core_registers, ppc_linux_supply_gregset)
4092 (ppc_linux_supply_fpregset): New functions.
4093 (ppc_linux_regset_core_fns): New.
4094 (_initialize_ppc_linux_tdep): Call add_core_fns.
4095 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4096 and ppc_linux_supply_gregset.
4097 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4098 (supply_fpregset): Call ppc_linux_supply_fpregset.
4099 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4100 corelow.o.
4101 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4102
729051e6
DJ
41032002-07-30 Daniel Jacobowitz <drow@mvista.com>
4104
4105 * symtab.c (lookup_symbol): Demangle before lowercasing.
4106
5f8a3188
AC
41072002-07-30 Andrew Cagney <ac131313@redhat.com>
4108
4109 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4110 declaration.
4111 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4112 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4113 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4114 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4115 "gdb_string.h".
4116 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4117 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4118 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4119 (avr-tdep.o, mon960-rom.o): Ditto.
4120 (aout_stabs_gnu_h): Define.
4121 (symtab_h): Remove $(gdb_obstack_h).
4122
67f07146
JB
41232002-07-30 Jim Blandy <jimb@redhat.com>
4124
4125 Patch from David Carlton <carlton@math.stanford.edu>:
4126 * gdbinit.in: Move the `dir' commands that add GDB's own source
4127 directory to the search path to the end, so that the `gdb' source
4128 directory will be searched first.
4129
04ea0df1
AC
41302002-07-29 Andrew Cagney <ac131313@redhat.com>
4131
4132 * gdb_obstack.h: New file.
4133 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4134 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4135 * objfiles.h: Include "gdb_obstack.h".
4136 * Makefile.in (gdb_obstack_h): Define.
4137 (symtab_h): Add $(gdb_obstack_h).
4138 (objfiles_h): Add $(gdb_obstack_h).
4139
4140 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4141 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4142 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4143 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4144 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4145 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4146 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4147 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4148
4149 * Makefile.in (bcache.o): Update dependencies.
4150 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4151 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4152 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4153 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4154 (stabsread.o, symfile.o, symmisc.o): Ditto.
4155 (symtab.o, typeprint.o, macroexp.o): Ditto.
4156 (macrotab.o, mdebugread.o): Ditto.
4157 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4158 (coff_ecoff_h, aout_aout64_h): Define.
4159 (aout_stabs_gnu_h, libaout_h): Define.
4160
d138e37a
AC
41612002-07-29 Andrew Cagney <cagney@redhat.com>
4162
4163 * regcache.c (struct regcache_descr): Rename nr_registers to
4164 nr_cooked_registers. Revise comments describing the structure
4165 member fields.
4166 (init_regcache_descr): Update.
4167 (init_legacy_regcache_descr): Update.
4168 (read_register_gen, write_register_gen): When a cooked register in
4169 the raw register range, directly access the value from the raw
4170 register cache.
4171
460e6ec3
AC
41722002-07-29 Andrew Cagney <ac131313@redhat.com>
4173
4174 * z8k-tdep.c: Do not include "obstack.h".
4175 * h8300-tdep.c, h8500-tdep.c: Ditto.
4176 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4177 * valprint.c, v850-tdep.c: Ditto.
4178 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4179 * mn10200-tdep.c: Ditto.
4180
4181 * Makefile.in (z8k-tdep.o): Update dependencies.
4182 (m68hc11-tdep.o, valprint.o): Ditto.
4183 (v850-tdep.o, d10v-tdep.o): Ditto.
4184 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4185 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4186 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4187 (sh_opc_h, gdb_sim_sh_h): Define.
4188 (elf_sh_h, elf_bfd_h): Define.
4189 (opcode_m68hc11_h): Define.
4190 (OPCODES_SRC, OPCODES_DIR): define.
4191 (OPCODES): Use $(OPCODES_DIR).
4192 (gdb_sim_d10v_h): Rename sim_d10v_h.
4193 (gdb_sim_arm_h): Rename sim_arm_h.
4194
790c9cf0
KB
41952002-07-26 Kevin Buettner <kevinb@redhat.com>
4196
4197 * utils.c (host_pointer_to_address, address_to_host_pointer):
4198 Change internal_error() message to indicate function responsible
4199 for the error.
4200
9647fa49
KB
42012002-07-26 Kevin Buettner <kevinb@redhat.com>
4202
4203 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4204 calls to local_hex_string_custom().
4205
dabbe2c0
KB
42062002-07-26 Kevin Buettner <kevinb@redhat.com>
4207
4208 * irix5-nat.c: Move IRIX shared library support from here...
4209 * solib-irix.c: ...to here. Revised substantially to work with
4210 generic solib framework.
4211
b96d0a4e
KB
4212 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4213 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4214 * mips-irix-tdep.c: New file.
4215
313fb2f6
KB
4216 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4217 (mips-irix-tdep.o, solib-irix.o): New rules.
4218 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4219 solib-irix.o.
4220 * config/mips/irix6.mt (TDEPFILES): Likewise.
4221 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4222
ab2eaf26
KB
42232002-07-26 Kevin Buettner <kevinb@redhat.com>
4224
177e4768 4225 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
4226 disabled (via ``#if 0'') includes.
4227
7244546a
KB
42282002-07-26 Kevin Buettner <kevinb@redhat.com>
4229
4230 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4231 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4232 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4233 Add support for the fpscr register.
4234 * rs6000-nat.c (regmap, fetch_inferior_registers)
4235 (store_inferior_registers, fetch_core_registers): Likewise.
4236
dd7be90a
KB
42372002-07-26 Kevin Buettner <kevinb@redhat.com>
4238
4239 * rs6000-nat.c (language.h): Include.
4240 (special_regs): Delete this array.
4241 (regmap): New function.
4242 (fetch_register, store_register): Use regmap() to map gdb
4243 register numbers to ptrace register numbers. Also, use
4244 outputs from regmap() to make decisions regarding type of
4245 ptrace() call to make. In particular, don't compare against
4246 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4247 (fetch_inferior_registers, store_inferior_registers): Where
4248 possible, obtain register numbers from tdep struct. Don't
4249 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4250 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4251 (LAST_UISA_SP_REGNUM): Delete.
4252
11bf77db
KB
42532002-07-25 Kevin Buettner <kevinb@redhat.com>
4254
4255 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
4256 (fetch_registers, store_register, fetch_core_registers): Don't
4257 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
4258 regcache_collect() as appropriate.
4259 (find_toc_address): Format hex address with local_hex_string().
4260
06afebeb
AC
42612002-07-25 Andrew Cagney <ac131313@redhat.com>
4262
4263 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4264 bfd/elf32-frv.c.
4265
8c554d79
TT
42662002-07-24 Tom Tromey <tromey@redhat.com>
4267
4268 * jv-exp.y: Marked all strings with _().
4269 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4270 internal_error.
4271 (MethodInvocation, CastExpression, parse_number, yyerror,
4272 java_type_from_name, push_expression_name, yylex): Typo fixes.
4273
e4c242d9
DJ
42742002-07-24 Daniel Jacobowitz <drow@mvista.com>
4275
4276 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4277 (tee_file_flush, tee_file_write, tee_file_fputs)
4278 (tee_file_isatty): New.
4279 * ui-file.h (tee_file_new): Add prototype.
4280
ebf56fd3
AS
42812002-07-24 Aidan Skinner <aidan@velvet.net>
4282
4283 * ada-lang.c: Change k&r style function definitions to prototyped
4284 form.
4285 * ada-typeprint.c: Change k&r style function definitions to prototyped
4286 form.
4287 * ada-valprint.c: Change k&r style function definitions to prototyped
4288 form.
4289
7fb623f7
AC
42902002-07-24 Andrew Cagney <cagney@redhat.com>
4291
4292 * README: Remove reference to remote-bug.
4293 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4294 remote-bug.c.
4295 (m88k-nat.o): Delete rule.
4296 (m88k-tdep.o): Delete rule.
4297 (remote-bug.o): Delete rule.
4298 * MAINTAINERS: Mark as obsolete.
4299 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4300 * m88k-tdep.c: Make file obsolete.
4301 * config/m88k/m88k.mh: Ditto.
4302 * config/m88k/delta88v4.mh: Ditto.
4303 * config/m88k/delta88v4.mt: Ditto.
4304 * config/m88k/delta88.mt: Ditto.
4305 * config/m88k/delta88.mh: Ditto.
4306 * remote-bug.c: Ditto.
4307 * config/m88k/tm-delta88.h: Ditto.
4308 * config/m88k/nm-delta88v4.h: Ditto.
4309 * config/m88k/xm-delta88.h: Ditto.
4310 * config/m88k/xm-dgux.h: Ditto.
4311 * config/m88k/tm-m88k.h: Ditto.
4312 * config/m88k/nm-m88k.h: Ditto.
4313 * config/m88k/tm-delta88v4.h: Ditto.
4314 * m88k-nat.c: Ditto.
4315 * cxux-nat.c: Ditto.
4316 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4317 and m88*-*-* obsolete.
4318 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4319 m88*-*-* obsolete.
4320
37611a2b
AC
43212002-07-24 Andrew Cagney <cagney@redhat.com>
4322
4323 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4324 constant. Same for local pointer variables.
4325 (extract_signed_integer): Ditto.
4326 * defs.h (extract_unsigned_integer): Update.
4327 (extract_signed_integer): Update.
4328
1aaa5f99
AC
43292002-07-24 Andrew Cagney <cagney@redhat.com>
4330
4331 * regcache.c (regcache_raw_write): Change buf parameter to a
4332 constant void pointer.
4333 (regcache_raw_read): Change buf parameter to a void pointer.
4334 (legacy_write_register_gen): Change myaddr parameter a constant
4335 void pointer.
4336 (supply_register): Change val parameter to a const void pointer.
4337 * regcache.h (regcache_raw_write): Update declaration.
4338 (regcache_raw_read): Update declaration.
4339 (supply_register): Update declaration.
4340
b4f5539f
TT
43412002-07-24 Tom Tromey <tromey@redhat.com>
4342
4343 * defs.h (gdb_readline_wrapper): Declare.
4344 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4345 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4346 * top.c (gdb_readline_wrapper): New function.
4347 (command_line_input): Use it.
4348
0818c12a
AC
43492002-07-24 Andrew Cagney <cagney@redhat.com>
4350
4351 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4352 regcache_read and regcache_write.
4353 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4354 * regcache.c: Update.
4355 * sh-tdep.c (sh64_push_arguments): Update comment.
4356 (sh_pseudo_register_read): Update.
4357 (sh_pseudo_register_write): Update.
4358 (sh4_register_read): Update.
4359 (sh4_register_write): Update.
4360 (sh64_pseudo_register_read): Update.
4361 (sh64_pseudo_register_write): Update.
4362 (sh64_register_read): Update.
4363 (sh64_register_write): Update.
4364 * i386-tdep.c (i386_extract_return_value): Update.
4365 (i386_extract_struct_value_address): Update.
4366 (i386_extract_return_value): Update.
4367 * blockframe.c (generic_read_register_dummy): Update.
4368 (generic_call_dummy_register_unwind): Update
4369 * infrun.c (write_inferior_status_register): Update.
4370
f7321c06
JB
43712002-07-23 Jim Blandy <jimb@redhat.com>
4372
4373 * parser-defs.h (expression_context_pc): Make this extern.
4374 (Thanks to Michael Snyder.)
4375
2037aebb
AC
43762002-07-23 Andrew Cagney <ac131313@redhat.com>
4377
4378 GDB 5.2.1 released from 5.2 branch.
4379 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4380 * README: Update to mention 5.2.1.
4381
66504d44
MS
43822002-07-23 Mark Salter <msalter@redhat.com>
4383
4384 * remote.c (remote_read_bytes): Fix check for error.
4385
27bae383
KB
43862002-07-22 Kevin Buettner <kevinb@redhat.com>
4387
4388 * aix-thread.c (language.h): Include.
4389 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4390 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4391 Print newlines at end of debug messages.
4392 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4393 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4394
43952002-07-22 Kevin Buettner <kevinb@redhat.com>
4396
4397 * aix-thread.c (ppc-tdep.h): Include.
4398 (special_register_p): New function.
4399 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4400 (store_regs_user_thread): Use register number information from
4401 gdbarch_tdep struct instead of hardcoded offsets relative to
4402 FIRST_UISA_SP_REGNUM.
4403 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4404 special_register_p() instead of using FPLAST_REGNUM and
4405 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4406 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4407 will be MQ's register number.
4408
44092002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
4410
4411 * aix-thread.c (ops): Rename to aix_thread_ops.
4412 (base_ops): Rename to base_target.
4413 (ops_attach): Rename to aix_thread_attach.
4414 (ops_detach): Rename to aix_thread_detach.
4415 (ops_resume): Rename to aix_thread_detach.
4416 (ops_wait): Rename to aix_thread_wait.
4417 (ops_kill): Rename to aix_thread_kill.
4418 (init_ops): Rename to init_aix_thread_ops.
4419 (ops_fetch_register): Rename to aix_thread_fetch_register.
4420 (ops_store_register): Rename to aix_thread_store_register.
4421 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4422 (ops_thread_alive): Rename to aix_thread_thread_alive.
4423 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4424 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4425 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4426 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4427 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4428 (store_regs_lib): Rename to store_regs_user_thread.
4429 (store_regs_kern): Rename to store_regs_kernel_thread.
4430
27bae383 44312002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
4432
4433 * aix-thread.c (ops_prepare_to_store): Eliminate.
4434 (init_ops): Don't initialize ops.prepare_to_store.
4435 (store_regs_kern): Pre-fetch register buffers from child,
4436 because some registers may not be in the cache. Copy
4437 regs from register cache only if they are cached.
4438 (store_regs_lib): Copy regs from register cache only
4439 if they are cached.
4440 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4441 fill_gprs64): Ditto.
4442
61c5da0b
KB
44432002-07-22 Kevin Buettner <kevinb@redhat.com>
4444
4445 * aix-thread.c (gdb_assert.h): Include.
4446 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4447 register sizes (from register cache) match size of buffer holding
4448 register data.
4449 (fill_sprs32): Change parameter types to match those in the ptrace()
4450 buffer.
4451 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4452 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4453
44542002-07-22 Michael Snyder <msnyder@redhat.com>
4455
4456 * aix-thread.c (supply_sprs64): Cosmetic change.
4457 (supply_sprs32): Cosmetic change.
4458 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4459 (fill_sprs64): Use regcache_collect instead of read_register.
4460 (store_regs_lib): Use regcache_collect instead of
4461 read_register. Use fill_sprs32 instead of fill_sprs64,
4462 if debugging a 32-bit architecture.
4463 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4464 out of the register cache, instead of passing a pointer into
4465 the register cache directly to ptrace. Use regcache_collect
4466 insteaad of read_register.
4467 (ops_prepare_to_store): Use target_read_registers instead
4468 of read_register_bytes.
4469
36479eb1
AS
44702002-07-20 Aidan Skinner <aidan@velvet.net>
4471
4472 * MAINTAINERS: Add self under write after approval.
4473
80ae6ee2
AS
44742002-07-20 Aidan Skinner <aidan@velvet.net>
4475
4476 * ada-tasks.c: Change k&r style function definitions to prototyped
4477 form.
4478
8a8ab2b9
AC
44792002-07-19 Andrew Cagney <ac131313@redhat.com>
4480
4481 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4482 * x86-64-tdep.c: Include "objfiles.h".
4483 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4484 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4485
fb16b900
ML
44862002-07-17 Michal Ludvig <michal@suse.cz>
4487
4488 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4489 (update_context): Initialise cfa variable.
4490
0fe7bf7b
MS
44912002-07-17 Michael Snyder <msnyder@redhat.com>
4492
4493 * aix-thread.c: Shorten some long lines.
4494 Bring comments into line with code spec.
4495
488f131b
JB
44962002-07-18 Joel Brobecker <brobecker@gnat.com>
4497
4498 * infrun.c: Re-indent using gdb_indent.sh.
4499
46c415d2
JB
45002002-07-18 Joel Brobecker <brobecker@gnat.com>
4501
4502 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4503 Leave the indentation temporarily untouched, to minimize the diffs.
4504
cdecafbe
EZ
45052002-07-18 Elena Zannoni <ezannoni@redhat.com>
4506
4507 * stabsread.c: Make os9k sections of the code obsolete,
4508 for real this time.
4509 * stabsread.h: Make os9k sections of the code obsolete.
4510
7b6aa020
ML
45112002-07-18 Michal Ludvig <mludvig@suse.cz>
4512
09ec9b38
ML
4513 * linux-low.c (regsets_store_inferior_registers): Add free()
4514 at the end of a loop to prevent memory leak.
4515 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4516 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
4517 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4518 line a comment.
4894ac5d 4519 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 4520
233282cd
JB
45212002-07-17 Jim Blandy <jimb@redhat.com>
4522
4523 * macrocmd.c (info_macro_command): Remove newline from error
4524 message.
4525
7b6aa020 45262002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
4527
4528 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4529 (sh_gdbarch_init): Use it for sh-dsp.
4530
f7ef9339
KB
45312002-07-16 Kevin Buettner <kevinb@redhat.com>
4532
4533 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4534 64-bit DWARF2 format.
4535
8dd72958
JB
45362002-07-16 Joel Brobecker <brobecker@gnat.com>
4537
4538 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4539 <sys/proc.h> when not available.
4540
a99a9e1b
AC
45412002-07-16 Andrew Cagney <ac131313@redhat.com>
4542
4543 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4544 * stabsread.c: Make os9k sections of the code obsolete.
4545 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4546 * config/i386/i386os9k.mt: Make file obsolete.
4547 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4548 (COMMON_OBS): Remove os9kread.o
4549 (SFILES): Remove os9kread.c.
4550 (os9kread.o, remote-os9k.o): Make target obsolete.
4551 * remote-os9k.c: Make file obsolete.
4552 * os9kread.c: Make file obsolete.
4553 * Makefile.in
4554
7a3085c1
AC
45552002-07-16 Andrew Cagney <ac131313@redhat.com>
4556
4557 * NEWS: Mention that the FR30 has been made obsolete.
4558 * fr30-tdep.c: Make file obsolete.
4559 * config/fr30/tm-fr30.h: Ditto.
4560 * config/fr30/fr30.mt: Ditto.
4561 * configure.tgt: Make fr30-*-elf obsolete.
4562 * MAINTAINERS: Make fr30-elf obsolete.
4563
28a93f5a
PM
45642002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4565
4566 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4567 found is not inside a section.
4568
be006b8b
KB
45692002-07-15 Kevin Buettner <kevinb@redhat.com>
4570
4571 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4572 strerror().
4573 (pdc_realloc): Use xrealloc() instead of realloc().
4574
14fa3751
KB
45752002-07-15 Kevin Buettner <kevinb@redhat.com>
4576
4577 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4578 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4579 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4580 macros.
4581
42cc437f
KB
45822002-07-15 Kevin Buettner <kevinb@redhat.com>
4583
4584 * aix-thread.c (ptrace_check): Eliminate goto.
4585 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4586 problem.
4587
8e2c28d4
KB
45882002-07-15 Kevin Buettner <kevinb@redhat.com>
4589
4590 * aix-thread.c (gdbcmd.h): Include.
4591 (DEBUG, DBG, DBG2, dbg): Eliminate.
4592 (debug_aix_thread): New static global.
4593 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4594 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4595 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4596 invocations to DBG and DBG2 macros to test against
4597 ``debug_aix_thread'' and call fprintf_unfiltered().
4598 (_initialize_aix_thread): Add new command "set debug aix-thread".
4599
30413464
AC
46002002-07-15 Andrew Cagney <ac131313@redhat.com>
4601
4602 From Gerhard Tonn <TON@de.ibm.com>:
4603 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4604 instead of supply_register.
4605
7c43edc1
AC
46062002-07-15 Andrew Cagney <ac131313@redhat.com>
4607
4608 * dwarf2cfi.c: Include "gdb_assert.h".
4609 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4610 non-NULL.
4611 (update_context): Do not use __func__. Add missing ``break''.
4612 (update_context): Do not use __func__.
4613
9364a0ef
EZ
46142002-07-15 Elena Zannoni <ezannoni@redhat.com>
4615
4616 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4617 and its setting. Set gdbarch instruction printing functions
4618 directly. For non-rs6000 case use new function
4619 gdb_print_insn_powerpc.
4620 (gdb_print_insn_powerpc): New function.
4621
3fbeef0b
AC
46222002-07-13 Andrew Cagney <ac131313@redhat.com>
4623
92eb23c5 4624 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
4625 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4626 * configure.tgt: Mark d30v-*-* as obsolete.
4627 * d30v-tdep.c: Mark file as obsolete.
4628 * config/d30v/d30v.mt: Ditto.
4629 * config/d30v/tm-d30v.h: Ditto.
4630
aacb1f0a
AS
46312002-07-13 Aidan Skinner <aidan@velvet.net>
4632
4633 * ada-tasks.c (add_task_entry): replace calls to
4634 malloc() with xmalloc
4635 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4636
4637 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4638 ada_finish_decode_line_1, all_sals_for_line
4639 ada_breakpoint_rewrite): replace calls to free() with xfree()
4640
c11d79f2
KB
46412002-07-12 Kevin Buettner <kevinb@redhat.com>
4642
4643 From Nicholas Duffek (with minor changes by Martin Hunt,
4644 Louis Hamilton, and Kevin Buettner):
4645 * aix-thread.c: New file.
4646
8e19ed76
PS
46472002-07-12 Petr Sorfa <petrs@caldera.com>
4648
4649 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4650 complaint for invalid attribute class or form.
4651 (read_func_scope): DW_AT_frame_base
4652 better handling of DW_AT_block*.
4653 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4654 better handling of DW_AT_block*.
4655 (read_common_block): DW_AT_location
4656 better handling of DW_AT_block*.
4657 (read_partial_die): DW_AT_location better handling
4658 of DW_AT_block*.
4659 (new_symbol): DW_AT_external better handling of
4660 DW_AT_block*. Proper initialization of variable
4661 "addr".
4662 (attr_form_is_block): New function that returns true
4663 if the attribute's form is of DW_FORM_block*.
4664
295401f7
DJ
46652002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4666
4667 * valops.c (find_method_list): Remove comment about
4668 removed STATIC_MEMFUNCP argument.
4669 (value_find_oload_method_list): Likewise.
4670
e42dc924
KB
46712002-07-12 Kevin Buettner <kevinb@redhat.com>
4672
4673 From Nicholas Duffek:
4674 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4675 target_new_objfile_hook.
4676
6904b546
KB
46772002-07-12 Kevin Buettner <kevinb@redhat.com>
4678
4679 From Nicholas Duffek:
4680 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4681 csect.
4682
53fe9346
AC
46832002-07-12 Andrew Cagney <cagney@redhat.com>
4684
4685 * MAINTAINERS: Mention --enable-sim-build-warnings.
4686 (m68hc11-elf): Disable sim build warnings.
4687 (m32r-elf): Mark as broken obsolete candidate.
4688 (x86_64-linux-gnu): Mark as buildable with -Werror.
4689 (arm-elf): Change -w to ``,'' which enables warnings but not
4690 -Werror.
4691
af5f3db6
AC
46922002-07-12 Andrew Cagney <ac131313@redhat.com>
4693
4694 * bcache.h: Update copyright.
4695 (struct bstring, struct bcache): Move definition to "bcache.c".
4696 Replaced by opaque declaration.
4697 (bcache_xfree): Replace free_bcache.
4698 (bcache_xmalloc, bcache_memory_used): Declare.
4699
4700 * bcache.c: Update copyright.
4701 (struct bstring, struct bcache): Moved to here from "bcache.h".
4702 Update comments.
4703 (bcache_xmalloc, bcache_memory_used): New functions.
4704 (bcache_xfree): Replace function free_bcache.
4705
4706 * Makefile.in (objfiles.o): Add $(bcache_h).
4707 (objfiles_h): Remove $(bcache_h).
4708 (symfile.o): Add $(bcache_h).
4709
4710 * symmisc.c: Update copyright.
4711 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4712 (print_objfile_statistics): Use bcache_memory_used.
4713
4714 * symfile.c: Include "bcache.h".
4715 (reread_symbols): Use bcache_xfree.
4716 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4717 (add_psymbol_to_list): Pass psymbol_cache by value.
4718 (add_psymbol_with_dem_name_to_list): Ditto.
4719
4720 * objfiles.h: Update copyright.
4721 (struct bcache): Declare opaque. Do not include "bcache.h".
4722 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4723 bcache'' pointers.
4724 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4725
4726 * objfiles.c: Include "bcache.h". Update copyright.
4727 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4728 macro_cache.
4729 (free_objfile): Use bcache_xfree.
4730
444199e7
GS
47312002-07-11 Grace Sainsbury <graces@redhat.com>
4732
4733 * monitor.c (monitor_fetch_register): Make name a constant.
4734 (monitor_store_register): Same.
4735
261397f8
DJ
47362002-07-11 Daniel Jacobowitz <drow@mvista.com>
4737
4738 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4739 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4740 (finish_block) For non-function blocks, hash the symbol table. For
4741 function blocks, mark the symbol table as unhashed.
4742 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4743 (msymbol_hash_iw): Likewise.
4744 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4745 value.
4746 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4747 (lookup_minimal_symbol): Likewise for both.
4748 * symtab.h (struct block): Add `hashtable' flag. Comment the
4749 hashtable.
4750 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4751 (ALL_BLOCK_SYMBOLS): Update.
4752 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4753 (struct symbol): Add `hash_next' pointer.
4754 * symtab.c (lookup_block_symbol): Search using the hash table when
4755 possible.
4756 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4757 (search_symbols, find_addr_symbol): Likewise.
4758
4759 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4760 (read_dst_symtab): Likewise.
4761 * jv-lang.c (get_java_class_symtab): Likewise.
4762 * mdebugread.c: Include "gdb_assert.h".
4763 (shrink_block): Assert that the block being modified is not hashed.
4764 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4765 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4766 symbols.
4767 (dump_symtab): Recognize hashed blocks.
4768 * printcmd.c (print_frame_args): Assert that function blocks do not
4769 have hashed symbol tables.
4770 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4771 (fill_in_ada_prototype, debug_print_block): Likewise.
4772 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4773
6f0eaa01
CV
47742002-07-11 Corinna Vinschen <vinschen@redhat.com>
4775
4776 * stack.c (print_frame): Use result of frame_address_in_block()
4777 instead of fi->pc when evaluating symbols.
4778 (backtrace_command_1): Ditto.
4779
a208b0cb
AC
47802002-07-11 Andrew Cagney <cagney@redhat.com>
4781
4782 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4783 Make static.
4784
4785 * arm-tdep.c (arm_register_name): Make return type constant.
4786
a6b6b089
AC
47872002-07-10 Andrew Cagney <ac131313@redhat.com>
4788
5ae5f592
AC
4789 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4790 prototype.
4791 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4792 * s390-tdep.c (s390_fp_regnum): Ditto.
4793 (s390_read_fp): Ditto.
4794 (s390_pop_frame): Ditto.
4795 (_initialize_s390_tdep): Ditto.
4796 * remote.c (get_remote_state): Ditto.
4797 * procfs.c (mappingflags): Ditto.
4798 * memattr.c (_initialize_mem): Ditto.
4799 * mcore-tdep.c (mcore_pop_frame): Ditto.
4800 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4801 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4802 * language.c (set_case_str): Ditto.
4803 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4804 * frv-tdep.c (new_variant): Ditto.
4805 (frv_stopped_data_address): Ditto.
4806 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4807 (context_alloc): Ditto.
4808 (frame_state_alloc): Ditto.
4809 (unwind_tmp_obstack_init): Ditto.
4810 (unwind_tmp_obstack_free): Ditto.
4811 (cfi_read_fp): Ditto.
4812 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4813 (cris_pop_frame): Ditto.
4814 * c-lang.c (scanning_macro_expansion): Ditto.
4815 (finished_macro_expansion): Ditto.
4816 (c_preprocess_and_parse): Ditto.
4817 * gdbarch.sh: Ditto.
4818 * gdbarch.h, gdbarch.c: Regenerate.
4819 * config/mn10200/tm-mn10200.h: Adjust indentation.
4820 * target.c: Adjust indentation.
4821 * symtab.h: Adjust indentation.
4822 * stabsread.h: Adjust indentation.
4823 * remote-es.c: Adjust indentation.
4824 * os9kread.c: Adjust indentation.
4825
48262002-07-10 Andrew Cagney <ac131313@redhat.com>
4827
a6b6b089
AC
4828 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4829 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4830
a1789893
GS
48312002-07-10 Grace Sainsbury <graces@redhat.com>
4832
4833 * NEWS: Mention m68k, mcore multi-arching.
4834 * MAINTAINERS: Change status of m68k, mcore to reflect
4835 multi-arching.
4836
02f0d45d
DJ
48372002-07-10 Daniel Jacobowitz <drow@mvista.com>
4838
4839 * valops.c (find_overload_match): Free oload_syms.
4840
f15f768e
JB
48412002-07-09 Joel Brobecker <brobecker@gnat.com>
4842
4843 Define HAVE_SYS_PROC_H if sys/proc.h exists
4844 * configure.in: Add check for sys/proc.h
4845 * config.in: Regenerate.
4846 * configure: Regenerate.
4847
902a7139
GS
48482002-07-09 Grace Sainsbury <graces@redhat.com>
4849
4850 * config/m68k/tm-m68k.h: Remove macros wrapped in
4851 #if !GDB_MULTI_ARCH.
4852
a534e424
AC
48532002-07-08 Andrew Cagney <ac131313@redhat.com>
4854
4855 * config.in, configure: Regenerate.
4856
9b94f7bf
MK
48572002-07-08 Mark Kettenis <kettenis@gnu.org>
4858
4859 * dwarf2cfi.c: Include "gcore.h".
4860 (execute_stack_op): Fix implementation of the
4861 DW_OP_deref and DW_OP_deref_size operators by letting do their
4862 lookup in the target.
4863
1d34db41
MK
48642002-07-07 Mark Kettenis <kettenis@gnu.org>
4865
4866 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4867 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4868 tdep->sc_sp_offset.
4869
79d5b63a
DJ
48702002-07-05 Daniel Jacobowitz <drow@mvista.com>
4871
4872 Fix PR gdb/595, gdb/602
4873 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4874 Don't call value_cast, just read the vtable pointer; update comments
4875 to match.
4876
3bb912e8
GS
48772002-07-05 Grace Sainsbury <graces@redhat.com>
4878
4879 * config/mcore/tm-mcore.h: Remove file.
4880 * config/mcore/mcore.mt: Remove definition of TM_FILE
4881 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4882
ca39387d
MK
48832002-07-05 Mark Kettenis <kettenis@gnu.org>
4884
4885 * i386bsd-tdep.c: Include "gdb_string.h".
4886
efdc1108
GS
48872002-07-04 Grace Sainsbury <graces@redhat.com>
4888
4889 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4890 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4891 mcore-tdep.
4892 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4893 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4894 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4895 (RETVAL_REGNUM): Move macros from tm-mcore.h
4896 (mcore_reg_struct_has_addr): New function.
4897 (mcore_gdbarch_init): Added initializations for the macros removed
4898 from tm-mcore.h.
4899
bb21884d
MK
49002002-07-04 Mark Kettenis <kettenis@gnu.org>
4901
4902 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4903 traditonal string branding within the ELF header.
4904
228c6d41
DJ
49052002-07-04 Daniel Jacobowitz <drow@mvista.com>
4906
4907 * symtab.c (remove_params): New function.
4908 (make_symbol_overload_list): Use it instead of cplus_demangle.
4909 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4910
2404952e
MK
49112002-07-04 Mark Kettenis <kettenis@gnu.org>
4912
e5e4acad
MK
4913 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4914
baadce09
MK
4915 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4916 New variables.
4917 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4918 and tdep->sigtramp_end.
4919 * i386obsd-nat.c: New file.
4920 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4921
2404952e
MK
4922 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4923 Don't call get_current_frame().
4924
9b4f1ba7
PM
49252002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4926
4927 * i386-nat.c (child_post_startup_inferior): New function
4928 calling i386_cleanup_dregs if
4929 I386_USE_GENERIC_WATCHPOINTS is defined.
4930 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4931 conditional to acknowledge that i386-nat.c has its
4932 own child_post_startup_inferior function.
4933
c0d1d883
MK
49342002-07-04 Mark Kettenis <kettenis@gnu.org>
4935
00f8375e
MK
4936 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4937 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4938 instead of MAX_REGISTER_RAW_SIZE.
4939 (i386_extract_return_value, i386_extract_struct_value_address):
4940 Convert to use regcache.
4941 (i386_gdbarch_init): Set max_register_raw_size and
4942 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4943 Set extract_return_value and extract_struct_value_address instead
4944 of their deprecated variants.
4945
c0d1d883
MK
4946 Convert i386 target to generic dummy frames.
4947 * i386-tdep.c: Include "symfile.h".
4948 (i386_frameless_signal_p): Consider a function to be frameless if
4949 the pc points at the first instruction of the function.
4950 (i386_frame_chain): Handle (generic) call dummies.
4951 (i386_frame_saved_pc): Likewise.
4952 (i386_frame_init_saved_regs): Remove code dealing with call
4953 dummies on the stack.
4954 (i386_push_dummy_frame): Removed.
4955 (i386_call_dummy_words): Removed.
4956 (i386_fix_call_dummy): Removed.
4957 (i386_push_return_address): New function.
4958 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4959 parameter, and don't call get_current_frame.
4960 (i386_pop_frame): New function.
4961 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4962 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4963 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4964 call_dummy_length to 0, set call_dummy_words to NULL, set
4965 sizeof_call_dummy_words to 0, set fix_call_dummy to
4966 generic_fix_call_dummy, set pc_in_call_dummy to
4967 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4968 generic_push_dummy_frame, set push_return_address to
4969 i386_push_return_address and set frame_chain_valid to
4970 generic_file_frame_chain_valid.
4971
049ee0e4
AC
49722002-07-03 Andrew Cagney <ac131313@redhat.com>
4973
4974 * gdbarch.sh (struct regcache): Add opaque declaration.
4975 (EXTRACT_RETURN_VALUE): New architecture method.
4976 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4977 * gdbarch.h, gdbarch.c: Regenerate.
4978 * arch-utils.c (legacy_extract_return_value): New function.
4979 * arch-utils.h (legacy_extract_return_value): Declare.
4980 * values.c (value_being_returned): Re-enable code handling
4981 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4982 deprecated_grub_regcache_for_registers call to block handling
4983 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4984 (EXTRACT_RETURN_VALUE): Do not define.
4985
4e0d9804
GS
49862002-07-03 Grace Sainsbury <graces@redhat.com>
4987
4988 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4989 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4990 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4991 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4992 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4993 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4994 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4995 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4996 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4997 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4998 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4999 argument so the function fits the prototype in the architecture
5000 vector.
5001 (mcore_pop_frame): Remove argument so the function fits the
5002 prototype. Use get_current_frame instead of the argument.
5003 (mcore_push_arguments): Change type of struct_return so the
5004 function can be used in the architecture vector.
5005 (mcore_store_struct_return): Add.
5006 (mcore_frame_init_saved_regs): Add.
5007 (mcore_gdbarch_init): Add function calls to replace the macros
5008 removed from tm-mcore.h
5009
36160dc4
AC
50102002-07-03 Andrew Cagney <ac131313@redhat.com>
5011
5012 * infcmd.c (print_return_value): Remove compatibility code calling
5013 deprecated_grub_regcache_for_registers.
5014
5015 * values.c: Include "regcache.h".
5016 (value_being_returned): Update. Use
5017 deprecated_grub_regcache_for_registers to extract the register
5018 buffer address.
5019 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5020 ``struct regcache''.
5021 * Makefile.in (values.o): Add dependency on $(regcache_h).
5022
5023 * inferior.h (run_stack_dummy): Change type of second parameter to
5024 a ``struct regcache''.
5025 * valops.c (hand_function_call): Change type of retbuf to ``struct
5026 regcache''. Allocate using regcache_xmalloc, clean using
5027 make_cleanup_regcache_xfree.
5028 * infcmd.c (run_stack_dummy): Update. Use
5029 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5030
5031 * regcache.c (do_regcache_xfree): New function.
5032 (make_cleanup_regcache_xfree): New function.
5033 * regcache.h (make_cleanup_regcache_xfree): Declare.
5034
e64d9b3d
MH
50352002-07-03 Martin M. Hunt <hunt@redhat.com>
5036
4dd79c29
MH
5037 * event-top.c (command_line_handler): Don't read past
5038 beginning of buffer.
e64d9b3d 5039
4dd79c29
MH
50402002-07-03 Martin M. Hunt <hunt@redhat.com>
5041
e64d9b3d
MH
5042 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5043 struct frame_id.
5044 (varobj_create): Store frame_id for root.
5045 (varobj_gen_name): Use xasprintf.
5046 (varobj_update): Save and restore frame using get_frame_id() and
5047 frame_find_by_id().
5048 (create_child): Use xasprintf.
5049 (new_root_variable): Initialize frame_id.
5050 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5051 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5052 to prevent memory leak.
5053
26e6c56a
AC
50542002-07-03 Andrew Cagney <ac131313@redhat.com>
5055
5056 * valops.c (hand_function_call): Move declaration of retbuf to
5057 start of function, allocate using malloc, add a cleanup but before
5058 the inf_status cleanup, cleanup the buffer. Rename local variable
5059 old_chain to inf_status_cleanup.
5060
f436dd25
MH
50612002-07-03 Martin M. Hunt <hunt@redhat.com>
5062
5063 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5064
5065 * cli/cli-decode.c (cmd_func_p): New function.
5066 (cmd_func): New function.
5067
5068 * command.h: Add cmd_func() and cmd_func_p().
5069
4cfe2084
GS
50702002-07-03 Grace Sainsbury <graces@redhat.com>
5071
5072 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5073 (REGISTER_SIZE): Remove.
5074 (MAX_REGISTER_RAW_SIZE): Remove.
5075 (REGISTER_VIRTUAL_TYPE): Remove.
5076 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5077 (REGISTER_NAME): Remove.
5078 (USE_GENERIC_DUMMY_FRAMES): Remove.
5079 (CALL_DUMMY): Remove.
5080 (CALL_DUMMY_START_OFFSET): Remove.
5081 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5082 (CALL_DUMMY_LOCATION): Remove.
5083 (FIX_CALL_DUMMY): Remove.
5084 (CALL_DUMMY_ADDRESS): Remove.
5085 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5086 (SAVE_DUMMY_FRAME_TOS): Remove.
5087 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5088 (mcore_register_virtual_type): New function.
5089 (mcore_register_byte): New function.
5090 (mcore_register_size): New function.
5091 (mcore_register_name): New function.
5092 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5093 macros removed from tm-mcore.h.
5094 (mcore_dump_tdep): Add.
5095 (_initialize_mcore_tdep): Add gdbarch_register call.
5096
4fd667e9
MK
50972002-07-03 Mark Kettenis <kettenis@gnu.org>
5098
5099 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5100 frameless_look_for_prologue, such that we actually call this
5101 function.
5102
42f99ac2
JB
51032002-07-02 Joel Brobecker <brobecker@gnat.com>
5104
5105 * frame.h (frame_address_in_block): New function.
5106
5107 * blockframe.c (frame_address_in_block): New function extracted
5108 from get_frame_block().
5109 (get_frame_block): Use frame_address_in_block().
5110 (block_innermost_frame): Use frame_address_in_block() to match
5111 the frame pc address against the block boundaries rather than
5112 the frame pc directly. This prevents a failure when a frame pc
5113 is actually a return-address pointing immediately after the end
5114 of the given block.
5115
103a1597 51162002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
5117
5118 * MAINTAINERS: Add self under write after approval.
5119
51202002-07-02 Grace Sainsbury <graces@redhat.com>
5121
103a1597
GS
5122 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5123 used in architecture vector. The default is
5124 m68k_local_breakpoint_from_pc.
5125 (m68k_local_breakpoint_from_pc): Add.
5126 (enum): Add register numbers from tm-m68k.h.
5127 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5128 vector.
5129 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5130 GDB_MULTI_ARCH_PARTIAL.
5131 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5132 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5133 m68k-tdep.c.
5134 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5135 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5136 to enum in m68k-tdep.c
5137
7a5a0534
JB
51382002-07-02 Joel Brobecker <brobecker@gnat.com>
5139
5140 * solib-osf.c (open_map): Compute the list of shared libraries
5141 loaded by the inferior, rather than the list of libraries loaded
5142 by GDB itself. Otherwise, GDB ends up reading the symbols from
5143 the wrong shared libraries...
5144
6f558d74
MK
51452002-07-02 Mark Kettenis <kettenis@gnu.org>
5146
b7d15bf7
MK
5147 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5148 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5149 macros.
5150 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5151 Remove functions.
5152 (FRAMELESS_SIGNAL): Remove function.
5153 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5154 i386_linux_saved_pc_after_call): Removed.
5155 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5156 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5157 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5158
6bff26de
MK
5159 * i386-tdep.c (i386_frameless_signal_p): New function.
5160 (i386_frame_chain): Deal with frameless signals.
5161 (i386_sigtramp_saved_sp): New function.
5162 (i386_frame_saved_pc): Deal with frameless signals.
5163 (i386_saved_pc_after_call): Make sure the correct value is
5164 returned just after entry into a sigtramp.
5165 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5166 i386fbsd4_sc_sp_offset): New variables.
5167 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5168 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5169 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5170 similiar to what we already did for sc_pc_offset.
5171 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5172 tdep->sc_sp_offset.
5173
6f558d74
MK
5174 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5175
145564b7
ML
51762002-07-02 Michal Ludvig <mludvig@suse.cz>
5177
5178 * config/i386/tm-x86-64linux.h: New.
5179 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5180 definitions.
5181 * config/i386/nm-x86-64.h: Rename to ...
5182 * config/i386/nm-x86-64linux.h: ... this one.
5183 * config/i386/x86-64linux.mh: Reflect the above change.
5184
3a1e71e3
MK
51852002-07-01 Mark Kettenis <kettenis@gnu.org>
5186
21d0e8a4
MK
5187 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5188 with sigcontext_addr. Add sc_sp_offset.
5189 (i386bsd_sigtramp_saved_pc): Remove prototype.
5190 (i386bsd_sicontext_addr): Add prototype.
5191 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5192 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5193 (i386_svr4_sigtramp_saved_pc): Removed.
5194 (i386_svr4_sigcontext_addr): New function.
5195 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5196 Initialize tdep->sigcontext_addr instead. Initialize
5197 tdep->sc_pc_offset and tdep->sc_sp_offset.
5198 (i386_gdbarch_init): Likewise.
5199 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5200 any more.
5201 (i386bsd_sigtramp_saved_pc): Remove function.
5202 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5203 Initialize tdep->sigcontext_addr instead. Initialize
5204 tdep->sc_pc_offset.
5205 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5206 of tdep->sigtramp_saved_pc.
5207 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5208 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5209 instead.
5210
3a1e71e3
MK
5211 * i386-tdep.c (i386_frameless_function_invocation,
5212 i386_frame_num_args, i386_frame_init_saved_regs,
5213 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5214 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5215 i386_extract_return_value, i386_store_return_value,
5216 i386_extract_struct_value_address, i386_register_virtual_type,
5217 i386_register_convertible, i386_register_convert_to_virtual,
5218 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5219 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5220 static.
5221
52e9098c
MK
52222002-07-01 Mark Kettenis <kettenis@gnu.org>
5223
77b13a25
MK
5224 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5225
52e9098c
MK
5226 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5227 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5228 this macro. Include "value.h".
5229
1b372fff
AS
52302002-06-30 Aidan Skinner <aidan@velvet.net>
5231
5232 * ada-exp.tab.c: remove as it's a generated file
5233 * ada-lex.c: remove as it's a generated file
5234
9c5045b5
MK
52352002-06-30 Mark Kettenis <kettenis@gnu.org>
5236
4a93c5bb
MK
5237 * config/i386/tm-i386.h (struct frame_info, struct
5238 frame_saved_regs, struct value, struct type): Remove forward
5239 declarations.
5240
322d4fe0
MK
5241 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5242 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5243 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5244 (FILL_FPXREGSET): Define.
5245
fdd8263d
MK
5246 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5247
482e577b
MK
5248 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5249 i[3456]86-*-netbsd* case.
5250 * config/i386/tm-obsd.h: Removed.
5251 * config/i386/obsd.mt: Removed.
5252 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5253 core-aout.o.
5254 (MH_CFLAGS): Add -DYYDEBUG=0.
5255
6916549a
MK
5256 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5257 i386nbsd_sc_pc_offset on OpenBSD too.
5258
9c5045b5
MK
5259 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5260 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5261 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5262 define.
5263 * i386bsd-tdep.c: Include "arch-utils.h".
5264 (i386bsd_aout_in_solib_call_trampoline): New function.
5265 (i386bsd_init_abi): Set in_solib_call_trampoline to
5266 i386bsd_aout_in_solib_call_trampoline.
5267 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5268 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5269
aa84d1bb
AC
52702002-06-28 Andrew Cagney <ac131313@redhat.com>
5271
5272 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5273 (struct obstack, struct bcache): Add opaque declarations.
5274 * Makefile.in (macrotab_h): Update
5275
b4d83933
AC
52762002-06-28 Andrew Cagney <ac131313@redhat.com>
5277
5278 * blockframe.c (generic_find_dummy_frame): Change return type to
5279 ``struct regcache''.
5280 (struct dummy_frame): Replace field ``registers'' with regcache, a
5281 struct regcache object.
5282 (generic_find_dummy_frame): Update.
5283 (generic_push_dummy_frame): Update. Use regcache_xfree,
5284 regcache_xmalloc and regcache_cpy.
5285 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5286 regcache_xfree.
5287 (deprecated_generic_find_dummy_frame): Update.
5288 (generic_read_register_dummy): Update. Use
5289 regcache_read_as_address.
5290 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5291 (generic_get_saved_register): Update. Use regcache_read.
5292
08c0b5bc
AC
52932002-06-28 Andrew Cagney <ac131313@redhat.com>
5294
5295 * Makefile.in (objfiles_h): Add $(bcache_h).
5296 * objfiles.h: Include "bcache.h".
5297
5298 * Makefile.in (symtab_h): Remove $(bcache_h).
5299 * symtab.h: Do not include "bcache.h".
5300
1f89801a
AC
53012002-06-28 Andrew Cagney <ac131313@redhat.com>
5302
5303 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5304 generic_func_frame_chain_valid.
5305
b9644b58
DB
53062002-06-28 David O'Brien <obrien@FreeBSD.org>
5307
5308 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5309 * config/i386/tm-fbsd.h: Likewise.
5310
dd486634
AC
53112002-06-28 Andrew Cagney <ac131313@redhat.com>
5312
5313 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5314 generic_unwind_get_saved_register.
5315
0b434a00
AC
53162002-06-27 Andrew Cagney <ac131313@redhat.com>
5317
5318 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5319 * regcache.c (supply_register): Add missing argument to
5320 register_buffer call.
5321
f30e5a77
AC
53222002-06-27 Andrew Cagney <ac131313@redhat.com>
5323
5324 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5325 Solaris /bin/grep does not not like it. From Peter Schauer.
5326
9f064c95
TT
53272002-06-26 Tom Tromey <tromey@redhat.com>
5328
5329 * command.h (add_setshow_cmd): Declare.
5330 (add_setshow_cmd_full): Declare.
5331 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5332 returns void. Use add_setshow_cmd_full.
5333 (add_setshow_cmd_full): New function.
5334 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5335 (add_setshow_boolean_cmd): Likewise.
5336
099c7589
JT
53372002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5338
5339 * config/vax/tm-vax.h: Protect from multiple inclusion.
5340 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5341 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5342 * config/vax/tm-vaxbsd.h: ...here. New file.
5343 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5344
1d049c5e
JT
53452002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5346
5347 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5348 (BELIEVE_PCC_PROMOTION): Remove.
5349 (AP_REGNUM): Move to...
5350 * config/vax/nm-vax.h: ...here.
5351 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5352 (vax_breakpoint_from_pc): New function.
5353 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5354 and gdbarch_believe_pcc_promotion.
5355
4791e091
JT
53562002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5357
5358 * Makefile.in (vax_tdep_h): Define.
5359 (vax-tdep.o): Use $(vax_tdep_h).
5360 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5361 (vax_dump_tdep): New function.
5362 (_initialize_vax_tdep): Register vax_dump_tdep.
5363 * vax-tdep.h: Include osabi.h.
5364 (struct gdbarch_tdep): New.
5365
da130f98
AC
53662002-06-26 Andrew Cagney <cagney@redhat.com>
5367
5368 * frame.h (deprecated_generic_find_dummy_frame): Rename
5369 generic_find_dummy_frame.
5370 * blockframe.c (generic_find_dummy_frame): Make static.
5371 (deprecated_generic_find_dummy_frame): New function.
5372 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5373 generic_find_dummy_frame with deprecated_find_dummy_frame.
5374 (sh64_nofp_frame_init_saved_regs): Ditto.
5375 (sh_fp_frame_init_saved_regs): Ditto.
5376 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5377 (s390_frame_chain): Ditto.
5378 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5379
6300c360
GS
53802002-06-26 Grace Sainsbury <graces@redhat.com>
5381
5382 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5383 gdbarch vector are at the top.
5384 (NUM_REGS): Remove.
5385 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5386 (FRAME_ARGS_ADDRESS): Remove.
5387 (FRAME_LOCALS_ADDRESS): Remove.
5388 (FRAME_NUM_ARGS): Remove.
5389 (FRAME_ARGS_SKIP): Remove.
5390 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5391 (m68k_gdbarch_init): Add gdbarch initializations for macros
5392 undefined in tm-m68k.h
5393
1c617db8
GS
53942002-06-26 Grace Sainsbury <graces@redhat.com>
5395
5396 * monitor.h: Add the function regname to monitor_ops
5397 structure. This way NUM_REGS does not have to be a constant.
5398 * monitor.c (monitor_fetch_register): Added support for regname
5399 function. The function is called if the array regnames is NULL.
5400 (monitor_store_register): Same.
da130f98
AC
5401 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5402 regnames array.
1c617db8
GS
5403 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5404 cpu32bug_cmds.regname to point to new function.
5405 * abug-rom.c (abug_regname): Same as above.
5406 (init_abug_cmds): Same.
5407 * dbug-rom.c (dbug_regname): Same as above.
5408 (init_dbug_cmds): Same.
5409 * remote-est.c (est_regname): Same.
5410 (init_est_cmds): Same.
5411 * rom68k-rom.c (rom68k_regname): Same.
5412 (init_rom68k_cmds): Same.
5413
ea9365bb
TT
54142002-06-25 Tom Tromey <tromey@redhat.com>
5415
5416 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5417
72cec141
AC
54182002-06-25 Andrew Cagney <cagney@redhat.com>
5419
5420 * infrun.c (stop_registers): Change variable's type to ``struct
5421 regcache'''.
5422 (xmalloc_inferior_status): Delete function.
5423 (free_inferior_status): Delete function.
5424 (normal_stop): Use regcache_cpy.
5425 (struct inferior_status): Change type of fields ``stop_registers''
5426 and ``registers'' to ``struct regcache''.
5427 (write_inferior_status_register): Use regcache_write.
5428 (save_inferior_status): Instead of calling
5429 xmalloc_inferior_status, allocate the inf_status buffer directly.
5430 Use regcache_dup_no_passthrough and regcache_dup to save the
5431 buffers.
5432 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5433 Replace the stop_registers regcache instead of overriding it. Use
5434 regcache_xfree. Instead of calling free_inferior_status, xfree
5435 the buffer directly.
5436 (discard_inferior_status): Use regcache_xfree. Instead of calling
5437 free_inferior_status, xfree the buffer directly.
5438 (build_infrun): Use regcache_xmalloc.
5439 (_initialize_infrun): Delete redundant call to build_infrun.
5440
5441 * Makefile.in (infcmd.o): Add $(regcache_h).
5442
5443 * infcmd.c: Include "regcache.h".
5444 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5445 obtain the address of `stop_registers' register buffer.
5446 (print_return_value): Ditto.
5447
5448 * inferior.h (struct regcache): Add opaque declaration.
5449 (stop_registers): Change variable's declared type to ``struct
5450 regcache''.
5451
defc6f8c
TT
54522002-06-24 Tom Tromey <tromey@redhat.com>
5453
c0e624e7
TT
5454 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5455 * target.c (initialize_targets): Fixed typo in
5456 trust-readonly-sections `show' documentation.
5457
defc6f8c
TT
5458 * main.c: Marked all strings with _().
5459
2b236d82
DH
54602002-06-24 Don Howard <dhoward@redhat.com>
5461
5462 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5463 that means max CORE_ADDR+1.
5464 (lookup_mem_region): Ditto.
5465 (mem_info_command): Ditto.
5466
942dc0e9
GS
54672002-06-24 Grace Sainsbury <graces@redhat.com>
5468
5469 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5470 (REGISTER_BYTES_OK): Remove.
5471 (REGISTER_BYTES): Remove.
5472 (STORE_STRUCT_RETURN): Remove.
5473 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5474 (STORE_RETURN_VALUE): Remove.
5475 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5476 (FRAME_CHAIN): Remove.
5477 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5478 (FRAME_SAVED_PC): Remove.
5479 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5480 (m68k_store_struct_return): Add.
5481 (m68k_deprecated_extract_return_value): Add.
5482 (m68k_deprecated_extract_struct_value_address): Add.
5483 (m68k_store_return_value): Add.
5484 (m68k_frame_chain): Add.
5485 (m68k_frameless_function_invocation): Add.
5486 (m68k_frame_saved_pc): Add.
5487 (m68k_gdbarch_init): added set_gdbarch calls for new
5488 functions and deleted macros.
5489
03c30d4d
TT
54902002-06-23 Tom Tromey <tromey@redhat.com>
5491
5492 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5493 (ALLDEPFILES): Likewise.
5494 (udiheaders): Removed.
5495 (udip2soc.o): Likewise.
5496 (udi2go32.o): Likewise.
5497 (udr.o): Likewise.
5498 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5499
37e71372
AC
55002002-06-22 Andrew Cagney <ac131313@redhat.com>
5501
06a6ac57
AC
5502 * infrun.c (_initialize_infrun): Delete unnecessary call to
5503 build_infrun.
5504
37e71372
AC
5505 * regcache.h: Update comments describing the regcache_cpy family
5506 of functions.
5507 (regcache_save, regcache_restore): Delete declaration.
5508 (regcache_save_no_passthrough): Delete declaration.
5509 (regcache_restore_no_passthrough): Delete declaration.
5510 * regcache.c (regcache_save): Delete function.
5511 (regcache_save_no_passthrough): Delete function.
5512 (regcache_restore): Delete function.
5513 (regcache_restore_no_passthrough): Delete function.
5514
78f6d055
AC
55152002-06-21 Andrew Cagney <ac131313@redhat.com>
5516
5517 * config/m68k/tm-m68k.h: Fix typo.
5518 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5519 (m68k_frame_init_saved_regs): Declare.
5520
78b119cb
JB
55212002-06-21 Jim Blandy <jimb@redhat.com>
5522
5523 Remove some vestiges of Harris 88k support.
5524 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5525 register numbering quirk.
5526 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5527 odd symbols occurring in Harris 88k ELF targets.
5528
0fbb3da7
TT
55292002-06-21 Tom Tromey <tromey@redhat.com>
5530
5531 * gdb_locale.h: New file.
5532 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5533 (defs_h): Added gdb_locale.h.
5534 * configure, config.in: Rebuilt.
5535 * configure.in (PACKAGE): Define.
5536 * defs.h: Include gdb_locale.h.
5537 * main.c (captured_main): Call setlocale, bindtextdomain,
5538 textdomain.
5539
456f8b9d
DB
55402002-06-21 Dave Brolley <brolley@redhat.com>
5541
5542 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5543 * config/frv/frv.mt: New file.
5544 * config/frv/tm-frv.h: New file.
5545 * configure.tgt: Support frv-*-*.
5546 * Makefile.in (frv-tdep.o): New target.
5547 * frv-tdep.c: New file.
5548 * NEWS: Mention frv.
5549
cdd463f9
DB
55502002-06-21 Dave Brolley <brolley@redhat.com>
5551
5552 * MAINTAINERS: Add self to "Write After Approval" list.
5553
5d3ed2e3
GS
55542002-06-21 Grace Sainsbury <graces@redhat.com>
5555
5556 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5557 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5558 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5559 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5560 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5561
5562 * m68k-tdep.c: Include arch-utils.h
5563 (m68k_register_raw_size): Add.
5564 (m68k_register_virtual_size): Add.
5565 (m68k_register_virtual_type): Add.
5566 (m68k_register_name): Add.
5567 (m68k_stack_align): Add.
5568 (m68k_register_byte): Add.
5569 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5570 tm-m68k.h.
5571
7f8e7424
GS
55722002-06-21 Grace Sainsbury <graces@redhat.com>
5573
a2c6a6d5 5574 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
5575 m68k_find_saved_regs.
5576 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 5577 references to it with frame->saved_regs.
7f8e7424
GS
5578 (m68k_gdbarch_init): Added function calls to initialize the
5579 gdbarch structure.
a2c6a6d5
GS
5580 (m68k_fix_call_dummy): Add.
5581 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5582 (CALL_DUMMY): Remove.
5583 (CALL_DUMMY_LENGTH): Remove.
5584 (CALL_DUMMY_START_OFFSET): Remove.
5585 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5586 (FIX_CALL_DUMMY): Remove.
5587 (PUSH_DUMMY_FRAME): Remove.
5588 (POP_FRAME): Remove.
7f8e7424 5589
f461f5cf
PM
55902002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5591
5592 * parse.c (parse_fprintf): New function used to avoid calls to
5593 fprintf in bison parser generated debug code.
5594 * parser-defs.h: Declaration of new parse_fprintf function.
5595 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5596 Set YYDEBUG to 1 by default.
5597 Set YYFPRINTF as parse_fprintf.
5598
7f0c12ed
ML
55992002-06-21 Michal Ludvig <mludvig@suse.cz>
5600
5601 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5602 encoding anymore.
5603 (pointer_encoding, enum ptr_encoding): New.
5604 (execute_cfa_program): Take care about pointer encoding.
5605 (dwarf2_build_frame_info): Only call parse_frame_info for
5606 .debug_frame and .eh_frame.
5607 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5608 fixed augmentation handling, added relative addressing,
5609 ignore duplicate FDEs. Added comments.
19d833a2 5610 * dwarf2cfi.c: Reindented.
7f0c12ed 5611
87c4a039
EZ
56122002-06-20 Elena Zannoni <ezannoni@redhat.com>
5613
5614 * event-top.c (command_handler): Don't use space_at_cmd_start
5615 unless there is sbrk() on the host. Assign time and space data
5616 to union fields of the appropriate length.
5617
1cf877ad
ML
56182002-06-20 Michal Ludvig <mludvig@suse.cz>
5619
5620 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5621 x86_64_register_name. Return type changed to 'const char *'.
5622 (x86_64_register_name2nr): Rename to x86_64_register_number.
5623 (x86_64_gdbarch_init): Update to reflect the change.
5624 * x86-64-tdep.h: Ditto.
5625 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5626 (supply_fpregset): Ditto.
5627
3fadccb3
AC
56282002-06-19 Andrew Cagney <cagney@redhat.com>
5629
5630 * regcache.h: Update copyright.
5631 (struct regcache, struct gdbarch): Add opaque declarations.
5632 (current_regcache): Declare global variable.
5633 (regcache_read, regcache_write): Add gdbarch parameter.
5634 (regcache_save, regcache_save_no_passthrough)
5635 (regcache_restore, regcache_restore_no_passthrough)
5636 (regcache_dup, regcache_dup_no_passthrough)
5637 (regcache_cpy, regcache_cpy_no_passthrough)
5638 (deprecated_grub_regcache_for_registers)
5639 (deprecated_grub_regcache_for_register_valid)
5640 (regcache_valid_p): Add function declarations.
5641
5642 * regcache.c: Update copyright.
5643 (regcache_descr_handle): New global variable.
5644 (struct regcache_descr): Define.
5645 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5646 (regcache_descr, xfree_regcache_descr): New functions.
5647 (struct regcache): Define.
5648 (regcache_xmalloc, regcache_xfree): New functions.
5649 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5650 (regcache_dup, regcache_dup_no_passthrough): New functions.
5651 (regcache_valid_p, regcache_read_as_address): New functions.
5652 (deprecated_grub_regcache_for_registers): New function.
5653 (deprecated_grub_regcache_for_register_valid): New function.
5654 (current_regcache): New global variable.
5655 (register_buffer): Add regcache parameter. Update calls.
5656 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5657 (read_register_gen, write_register_gen): Update register_buffer
5658 call. Test for legacy_p instead of gdbarch_register_read_p or
5659 gdbarch_register_write_p.
5660 (regcache_collect): Update register_buffer call.
5661 (build_regcache): Rewrite. Use deprecated grub functions.
5662 (regcache_save, regcache_save_no_passthrough): New functions.
5663 (regcache_restore, regcache_restore_no_passthrough): New
5664 functions.
5665 (_initialize_regcache): Create the regcache_data_handle. Swap
5666 current_regcache global variable.
5667
5668 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5669 parameter to regcache_read and regcache_write calls.
5670 (sh4_register_read): Ditto.
5671 (sh64_pseudo_register_read): Ditto.
5672 (sh64_register_read): Ditto.
5673 (sh_pseudo_register_write): Ditto.
5674 (sh4_register_write): Ditto.
5675 (sh64_pseudo_register_write): Ditto.
5676 (sh64_register_write): Ditto.
5677
5678 * defs.h (XCALLOC): Define.
5679
152d9db6
GS
56802002-06-19 Grace Sainsbury <graces@redhat.com>
5681
5682 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5683 * m68k-tdep.c (m68k_gdbarch_init): Added.
5684 (m68k_dump_tdep): Added.
5685
170911c7
DJ
56862002-06-19 Daniel Jacobowitz <drow@mvista.com>
5687
5688 * ada-lang.c (fill_in_ada_prototype): Update comment.
5689
2e4ebe70
DJ
56902002-06-19 Daniel Jacobowitz <drow@mvista.com>
5691
5692 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5693 MIPS_ABI_LAST.
5694 (mips_abi_string, mips_abi_strings): New.
5695 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5696 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5697 tdep->mips_abi_string. Honor mips_abi_string. Default to
5698 O32 if no ABI is found.
5699 (mips_dump_tdep): Use mips_abi_strings.
5700 (mips_abi_update): New function.
5701 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5702 ``set mips abi'' and ``show mips abi''. Check the size of
5703 mips_abi_strings.
5704
16775908
AC
57052002-06-19 Andrew Cagney <cagney@redhat.com>
5706
5707 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5708 constant.
5709
5051bfa4 57102002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 5711
5051bfa4
JB
5712 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5713 current frame using only the first stack size adjustment. All
5714 subsequent size adjustments are not considered to be part of
5715 the "static" part of the current frame.
5716 Compute the address of the saved registers relative to the
5717 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5718 in use in this frame.
5719
56468235
DH
57202002-06-18 Don Howard <dhoward@redhat.com>
5721
5722 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5723 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5724 suggesting this solution.
5725
0b624158
AC
57262002-06-18 Andrew Cagney <ac131313@redhat.com>
5727
5728 * config/romp/xm-rtbsd.h: Delete file.
5729 * config/romp/rtbsd.mh: Delete file.
5730
221ea385
KS
57312002-06-18 Keith Seitz <keiths@redhat.com>
5732
5733 * breakpoint.c (condition_command): Post breakpoint_modify
5734 when a condition is added to an existing breakpoint.
5735 (commands_command): Likewise for commands.
5736 (set_ignore_count): Likewise for ignore counts.
5737 If no tty, do not simply return, still need to send event
5738 notification.
5739 (ignore_command): Only print a newline if the command came
5740 from a tty.
5741 Don't call breakpoints_changed, since this is now properly
5742 handled by set_ignore_count.
5743
5402eed1
AC
57442002-06-18 Andrew Cagney <cagney@redhat.com>
5745
5746 * MAINTAINERS: Note that cris-elf target can be compiled with
5747 -Werror.
5748 * cris-tdep.c (cris_register_name): Make return type constant.
5749 (cris_breakpoint_from_pc): Ditto.
5750
cc22880b
ML
57512002-06-18 Michal Ludvig <mludvig@suse.cz>
5752
5753 * frame.h (struct frame_info): Change type of context to
5754 'struct context'.
5755
fa88f677
AC
57562002-06-17 Andrew Cagney <cagney@redhat.com>
5757
5758 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5759 pointer.
5760 * gdbarch.h, gdbarch.c: Regenerate.
5761 * config/mips/tm-mips.h (mips_register_name): Update.
5762 * i386-tdep.h (i386_register_name): Update.
5763 * mips-tdep.c (mips_register_name): Update
5764 * alpha-tdep.c (alpha_register_name): Update.
5765 * arch-utils.c (legacy_register_name): Update.
5766 * arch-utils.h (legacy_register_name): Update.
5767 * avr-tdep.c (avr_register_name): Update.
5768 * ia64-tdep.c (ia64_register_name): Update.
5769 * i386-tdep.c (i386_register_name): Update.
5770 * sparc-tdep.c (sparc32_register_name): Update.
5771 (sparc64_register_name): Update.
5772 (sparclite_register_name): Update.
5773 (sparclet_register_name): Update.
5774 * sh-tdep.c (sh_generic_register_name): Update.
5775 (sh_sh_register_name): Update.
5776 (sh_sh3_register_name): Update.
5777 (sh_sh3e_register_name): Update.
5778 (sh_sh_dsp_register_name): Update.
5779 (sh_sh3_dsp_register_name): Update.
5780 (sh_sh4_register_name): Update.
5781 (sh_sh64_register_name): Update.
5782 * s390-tdep.c (s390_register_name): Update.
5783 * rs6000-tdep.c (rs6000_register_name): Update.
5784 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5785 (ns32k_register_name_32382): Update.
5786 * d10v-tdep.c (d10v_ts2_register_name): Update.
5787 (d10v_ts3_register_name): Update.
5788 * xstormy16-tdep.c (xstormy16_register_name): Update.
5789 * vax-tdep.c (vax_register_name): Update.
5790 * v850-tdep.c (v850_register_name): Update.
5791 * m68hc11-tdep.c (m68hc11_register_name): Update.
5792 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5793 (am33_register_name): Update.
5794
ea1e7ef6
GS
57952002-06-17 Grace Sainsbury <graces@redhat.com>
5796
5797 * m68k-tdep.c: Reindented.
5798
9b02dd1b
AC
57992002-06-17 Andrew Cagney <ac131313@redhat.com>
5800
5801 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5802 list of predefined types.
5803
8758dec1
MK
58042002-06-16 Mark Kettenis <kettenis@gnu.org>
5805
b6197528
MK
5806 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5807 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5808 REGISTER_CONVERT_TO_RAW): Remove defines.
5809 (i386_register_virtual_type, i386_register_convertible,
5810 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5811 Remove prototypes.
5812 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5813 macros mentioned above.
5814
82b47e62
MK
5815 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5816 (i386lynx_saved_pc_after_call): Remove prototype.
5817 * i386ly-tdep.c: Include "i386-tdep.h".
5818 (i386lynx_saved_pc_after_call): Make static. Use
5819 read_memory_nobpt instead of read_memory. Use
5820 read_memory_unsigned_integer instead of read_memory_integer.
5821 (i386lynx_init_abi): New function.
5822 (i386lynx_coff_osabi_sniffer): New function.
5823 (_initialize_i386bsd_tdep): New function.
5824
8758dec1
MK
5825 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5826 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5827 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5828 (i386_fix_call_dummy): Remove prototype.
5829 * i386-tdep.c (i386_call_dummy_words): New variable.
5830 (i386_gdbarch_init): Adjust for removal of the
5831 macros mentioned above.
5832
e9e68a56
AC
58332002-06-15 Andrew Cagney <ac131313@redhat.com>
5834
5835 * command.h (add_setshow_auto_boolean_cmd): Replace
5836 add_set_auto_boolean_cmd.
5837 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5838 add_set_auto_boolean_cmd.
5839 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5840 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5841 mask-address'' command.
5842 (show_mask_address): Add cmd parameter.
5843 * remote.c (add_packet_config_cmd): Update. Change type of
5844 set_func and show_func to cmd_sfunc_ftype.
5845 (_initialize_remote): Update `set remote Z-packet'
5846 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5847 (show_remote_protocol_e_packet_cmd): Ditto.
5848 (show_remote_protocol_E_packet_cmd): Ditto.
5849 (show_remote_protocol_P_packet_cmd): Ditto.
5850 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5851 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5852 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5853 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5854 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5855 (show_remote_protocol_Z_packet_cmd): Ditto.
5856 (show_remote_protocol_binary_download_cmd): Ditto.
5857 (show_remote_cmd): Pass NULL to all of above.
5858
fc08ec52
MK
58592002-06-15 Mark Kettenis <kettenis@gnu.org>
5860
5861 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5862 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5863 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5864 POP_FRAME): Remove defines.
5865 (i386_push_arguments, i386_store_struct_return,
5866 i386_extract_return_value, i386_store_return_value,
5867 i386_extract_struct_value_address, i386_push_dummy_frame,
5868 i386_pop_frame): Renove prototypes.
5869 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5870 macros mentioned above.
5871
e707bbc2
AC
58722002-06-15 Andrew Cagney <ac131313@redhat.com>
5873
5874 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5875 add_set_boolean_cmd.
5876 (add_setshow_cmd): New function.
5877 * command.h (add_setshow_boolean_cmd): Replace
5878 add_set_boolean_cmd.
5879 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5880 and ``set rdiromatzero''.
5881 * maint.c (_initialize_maint_cmds): Update commented out code.
5882 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5883 * target.c (initialize_targets): Update `set
5884 trust-readonly-sections'.
5885 * remote.c (_initialize_remote): Update `set remotebreak'.
5886
42fdc8df
MK
58872002-06-15 Mark Kettenis <kettenis@gnu.org>
5888
93924b6b
MK
5889 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5890 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5891 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5892 fit into multi-arch framework.
5893 (i386_breakpoint_from_pc): New function.
5894 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5895 above.
5896
42fdc8df
MK
5897 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5898 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5899 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5900 (i386_frameless_function_invocation, i386_frame_num_args,
5901 i386_frame_init_saved_regs): Remove prototypes.
5902 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5903 macros mentioned above.
5904
9773a94b
AC
59052002-06-15 Andrew Cagney <ac131313@redhat.com>
5906
5907 * cli/cli-decode.c (set_cmd_cfunc): Update.
5908 (set_cmd_sfunc): Update.
5909 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5910 (set_cmd_sfunc, set_cmd_cfunc): Update.
5911 * cli/cli-decode.h: Update.
5912
6e157172
MK
59132002-06-15 Mark Kettenis <kettenis@gnu.org>
5914
5915 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5916 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5917
7f19b9a2
AC
59182002-06-15 Andrew Cagney <ac131313@redhat.com>
5919
5920 * defs.h (auto_boolean): Declare enum.
5921 * command.h (cmd_auto_boolean): Delete enum.
5922 * mips-tdep.c (mask_address_var): Update.
5923 (mips_mask_address_p): Update.
5924 (show_mask_address): Update.
5925 * remote.c (struct packet_config): Update.
5926 (update_packet_config): Update.
5927 (show_packet_config_cmd): Update.
5928 (packet_ok): Update.
5929 (add_packet_config_cmd): Update.
5930 (_initialize_remote):
5931 * command.h: Update.
5932 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5933 (do_setshow_command): Update.
5934 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5935 * cli/cli-decode.h: Update.
5936
1cf88de5
MK
59372002-06-15 Mark Kettenis <kettenis@gnu.org>
5938
22ba8cf2
MK
5939 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5940 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5941 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5942 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5943 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5944 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5945
762c5349
MK
5946 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5947 list of DJGPP COFF targets.
5948
091198bb
MK
5949 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5950 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5951 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5952 (FP0_REGNUM): Remove define.
5953 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5954 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5955 (i386_register_virtual_size): Remove protoype.
5956 * i386-tdep.c (i386_register_virtual_size): Removed.
5957 (i386_extract_return_value, i386_store_return_value): Use
5958 FP0_REGNUM instead of NUM_FREGS to determine whether the
5959 floating-point registers are available.
5960 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5961 Adjust for removal of macros mentioned above.
5962
59632002-06-15 Mark Kettenis <kettenis@gnu.org>
5964
fcc9bf01
MK
5965 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5966 comments.
5967 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5968 Remove prototypes.
5969 (supply_gregset, fill_gregset): Remove use of register keyword and
5970 remove declaration for regmap. Use I386_NUM_GREGS instead of
5971 NUM_REGS and NUM_FREGS.
5972 (FPREGSET_FSAVE_OFFSET): Remove.
5973 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5974 NUM_FREGS to determine whether the floating-point registers are
5975 available.
5976
65e78234
MK
5977 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5978 gnu_store_registers): Replace usage of NUM_GREGS with
5979 I386_NUM_GREGS.
5980
98df6387
MK
5981 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5982 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5983 usage of NUM_GREGS with I386_NUM_GREGS.
5984
099a9414
MK
5985 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5986
57976e88
MK
5987 * i386bsd-nat.c: Include "i386-tdep.h".
5988 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5989 I386_NUM_GREGS.
5990
b335f4a6
MK
5991 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5992 and associated comment. They no longer make any sense, since we
5993 don't use this file anymore on Linux.
5994
1cf88de5
MK
5995 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5996 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5997 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5998 elements in these arrays.
5999 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6000 MAX_NUM_REGS.
6001
daa66587
MK
60022002-06-15 Mark Kettenis <kettenis@gnu.org>
6003
6004 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6005 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6006
26e9b323
AC
60072002-06-14 Andrew Cagney <cagney@redhat.com>
6008
6009 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6010 EXTRACT_RETURN_VALUE.
6011 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6012 EXTRACT_STRUCT_VALUE_ADDRESS.
6013 * gdbarch.h, gdbarch.c: Regenerate.
6014
6015 * values.c (value_being_returned): Handle
6016 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6017 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6018
6019 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6020 * arm-tdep.c (arm_gdbarch_init): Update.
6021 * avr-tdep.c (avr_gdbarch_init): Update.
6022 * cris-tdep.c (cris_gdbarch_init): Update.
6023 * d10v-tdep.c (d10v_gdbarch_init): Update.
6024 * ia64-tdep.c (ia64_gdbarch_init): Update.
6025 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6026 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6027 * s390-tdep.c (s390_gdbarch_init): Update.
6028 * sh-tdep.c (sh_gdbarch_init): Update.
6029 * s390-tdep.c (s390_gdbarch_init): Update.
6030 * sparc-tdep.c (sparc_gdbarch_init): Update.
6031 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6032 * v850-tdep.c (v850_gdbarch_init): Update.
6033 * vax-tdep.c (vax_gdbarch_init): Update.
6034 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6035 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6036
6037 * config/arc/tm-arc.h: Update.
6038 * config/d30v/tm-d30v.h: Update.
6039 * config/fr30/tm-fr30.h: Update.
6040 * config/h8300/tm-h8300.h: Update.
6041 * config/h8500/tm-h8500.h: Update.
6042 * config/i386/tm-i386.h: Update.
6043 * config/i386/tm-ptx.h: Update.
6044 * config/i386/tm-symmetry.h: Update.
6045 * config/i960/tm-i960.h: Update.
6046 * config/m32r/tm-m32r.h: Update.
6047 * config/m68k/tm-delta68.h: Update.
6048 * config/m68k/tm-linux.h: Update.
6049 * config/m68k/tm-m68k.h: Update.
6050 * config/m88k/tm-m88k.h: Update.
6051 * config/mcore/tm-mcore.h: Update.
6052 * config/mips/tm-mips.h: Update.
6053 * config/mn10200/tm-mn10200.h: Update.
6054 * config/pa/tm-hppa.h: Update.
6055 * config/pa/tm-hppa64.h: Update.
6056 * config/sparc/tm-sp64.h: Update.
6057 * config/sparc/tm-sparc.h: Update.
6058 * config/sparc/tm-sparclet.h: Update.
6059 * config/z8k/tm-z8k.h: Update.
6060
5179e78f
AC
60612002-06-14 Andrew Cagney <cagney@redhat.com>
6062
6063 * Makefile.in (i386_linux_tdep_h): Define.
6064 (i386_tdep_h, i387_tdep_h): Define.
6065 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6066 $(i386_tdep_h) and $(i387_tdep_h).
6067 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6068
8201327c
MK
60692002-06-14 Mark Kettenis <kettenis@gnu.org>
6070
edf393ac
MK
6071 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6072 Already covered by the default.
6073
896fb97d
MK
6074 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6075 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6076 (i386_gdbarch_init): Initialize long_double_format and long_double
6077 bit.
6078
8201327c
MK
6079 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6080 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6081 Move these to ...
6082 * config/i386/i386sol2.mh: ... here.
6083 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6084 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6085 (SIGCONTEXT_PC_OFFSET): Remove define.
6086 (IN_SIGTRAMP): Remove define.
6087 * i386-sol2-tdep.c: New file.
6088
6089 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6090 * config/i386/tm-i386nw.h: Removed.
6091
6092 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6093 USE_STRUCT_CONVENTION): Remove defines.
6094 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6095 (get_longjmp_target): Remove prototype.
6096 (IN_SIGTRAMP): Remove define.
6097 (i386bsd_in_sigtramp): Remove prototype.
6098 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6099 function. Update comment accordingly
6100 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6101 (FRAME_SAVED_PC): Remove define.
6102 (i386bsd_frame_saved_pc): Remove prototype.
6103 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6104 GET_LONGJMP_TARGET): Remove defines.
6105 (get_longjmp_target): Remove prototype.
6106 (IN_SIGTRAMP): Remove define.
6107 (i386bsd_in_sigtramp): Remove prototype.
6108 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6109 function. Update comment accordingly
6110 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6111 (FRAME_SAVED_PC): Remove define.
6112 (i386bsd_frame_saved_pc): Remove prototype.
6113 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6114 Remove prototype.
6115 (USE_STRUCT_CONVENTION): Remove prototype.
6116 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6117 declaration.
6118 (_initialize_i386bsd_nat): Revise logic to determine some
6119 constants at compile time when compiling a native GDB. Warn if
6120 things don't match up with what we expect.
6121 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6122 Remove variables.
6123 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6124 to use date stored in `struct gdbarch_tdep'.
6125 (i386bsd_sigcontext_offset): Remove varaible.
6126 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6127 stored in `struct gdbarch_tdep'.
6128 (i386bsd_frame_saved_pc): Make static.
6129 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6130 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6131 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6132 i386fbsd4_sc_pc_offset): New variables.
6133 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6134 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6135 functions.
6136 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6137 functions.
6138 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6139 Modify the value of i386fbsd_sigtramp_start and
6140 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6141 i386fbsd_sigtramp_end.
6142 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6143 function.
6144
6145 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6146 define to i386-linux-tdep.h.
6147 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6148 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6149 defines.
6150 (i386_linux_register_name, i386_linux_register_byte,
6151 i386_linux_register_raw_size): Remove prototypes.
6152 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6153 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6154 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6155 TARGET_WRITE_PC): Remove defines.
6156 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6157 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6158 i386_linux_write_pc): Remove prototypes.
6159 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6160 (get_longjmp_target): Remove prototype.
6161 * i386-linux-tdep.h: New file.
6162 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6163 * i386-linux-tdep.c: Include "i386-tdep.h" and
6164 "i386-linux-tdep.h".
6165 (i386_linux_register_name, i386_linux_register_byte,
6166 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6167 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6168 Make static.
6169 (i386_linux_init_abi): New function.
6170 (_initialize_i386_linux_tdep): New function.
6171
6172 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6173 (i386_saved_pc_after_call): Remove prototype.
6174 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6175 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6176 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6177 (i386_register_name, i386_stab_reg_to_regnum,
6178 i386_dwarf_reg_to_regnum): Remove prototypes.
6179 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6180 SIZEOF_SSE_REGS): Remove defines.
6181 (REGISTER_BYTES): Remove define.
6182 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6183 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6184 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6185 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6186 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6187 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6188 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6189 (get_longjmp_target): Remove prototype.
6190 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6191 (sigtramp_saved_pc): Remove define.
6192 (i386v4_sigtramp_saved_pc): Remove prototype.
6193 * config/i386/tm-go32.h (FRAME_CHAIN,
6194 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6195 (i386go32_frame_saved_pc): Remove prototype.
6196 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6197 (get_longjmp_target): Remove prototype.
6198 * i386-tdep.h: Include "osabi.h".
6199 (enum i386_abi): Removed.
6200 (enum struct_return): New enum.
6201 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6202 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6203 sc_pc_offset members.
6204 (i386_gdbarch_register_os_abi): Remove prototype.
6205 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6206 I386_SSE_NUM_REGS): New defines.
6207 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6208 I386_SSE_SIZEOF_REGS): New defines.
6209 (i386_register_name, i386_register_byte, i386_register_raw_size):
6210 New prototypes.
6211 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6212 (i386bsd_sigtramp_saved_pc): New prototype.
6213 * i386-tdep.c: Don't include "elf-bfd.h".
6214 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6215 i386_frame_chain, i386_saved_pc_after_call): Make static.
6216 (i386_frame_saved_pc): Rewrite to call architecture dependent
6217 function to deal with signal handlers. Make static.
6218 (i386go32_frame_saved_pc): Removed.
6219 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6220 Removed.
6221 (i386_get_longjmp_target): New function.
6222 (default_struct_convention, pcc_struct_convention,
6223 reg_struct_convention, valid_conventions, struct_convention): New
6224 variables.
6225 (i386_use_struct_convention): New function.
6226 (i386v4_sigtramp_saved_pc): Renamed to
6227 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6228 (i386_pc_in_sigtramp): New function.
6229 (i386_abi_names): Removed.
6230 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6231 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6232 Removed.
6233 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6234 i386_gdbarch_register_os_abi): Removed.
6235 (struct i386_abi_handler): Removed.
6236 (i386_abi_handler_list): Removed.
6237 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6238 functions.
6239 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6240 i386_nw_init_abi): New functions.
6241 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6242 Use set_gdbarch_xxx() calls instead of relying on macros for a
6243 number of calls.
6244 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6245 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6246 Register the various architecture variants defined in this file.
6247
ad2f7632
DJ
62482002-06-14 Daniel Jacobowitz <drow@mvista.com>
6249
6250 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6251 (struct main_type): Remove arg_types member. Update comments for
6252 struct field.
6253 (TYPE_ARG_TYPES): Remove.
6254 (TYPE_FN_FIELD_ARGS): Update.
6255 (smash_to_method_type): Update prototype.
6256
6257 * c-typeprint.c (cp_type_print_method_args): Take method type
6258 instead of argument list. Use new argument layout. Simplify.
6259 (c_type_print_args): Use new argument layout. Simplify.
6260 (c_type_print_base): Update call to cp_type_print_method_args.
6261 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6262 argument; use die->type instead. Update call to
6263 smash_to_method_type.
6264 (read_structure_scope): Update call to dwarf2_add_member_fn.
6265 * gdbtypes.c (allocate_stub_method): Update comment.
6266 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6267 Use new argument layout.
6268 (check_stub_method): Use new argument layout. Don't count
6269 void as an argument.
6270 (print_arg_types): Update comments. Use new argument layout.
6271 (recursive_dump_type): Don't print arg_types member.
6272 * hpread.c (hpread_read_struct_type): Use new argument layout.
6273 (fixup_class_method_type): Likewise.
6274 (hpread_type_lookup): Likewise.
6275 * stabsread.c (read_type): Update calls to read_args and
6276 smash_to_method_type.
6277 (read_args): Use new argument layout. Simplify.
6278 * valops.c (typecmp): Use new argument layout. Update parameters
6279 and comments. Simplify.
6280 (hand_function_call): Use new argument layout.
6281 (search_struct_method): Update call to typecmp.
6282 (find_overload_match): Use new argument layout.
6283
6da02953
DJ
62842002-06-13 Daniel Jacobowitz <drow@mvista.com>
6285
6286 * NEWS: Mention multithreaded debug support for gdbserver.
6287
519b2366
DJ
62882002-06-13 Daniel Jacobowitz <drow@mvista.com>
6289
6290 * MAINTAINERS: Mention NEWS.
6291
6c0d6680
DJ
62922002-06-13 Daniel Jacobowitz <drow@mvista.com>
6293
6294 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6295 (struct mips_objfile_private, compare_pdr_entries): New.
6296 (non_heuristic_proc_desc): Read the ".pdr" section if it
6297 is present.
6298
6529d2dd
AC
62992002-06-12 Andrew Cagney <ac131313@redhat.com>
6300
6301 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6302 (arm_debug): New static variable.
6303 (_initialize_arm_tdep): Add ``set debug arm'' command.
6304
26216b98
AC
63052002-06-12 Andrew Cagney <ac131313@redhat.com>
6306
6307 * Makefile.in (sim_arm_h): Define.
6308 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6309 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6310 (arm_register_sim_regno): New function, map an internal REGNUM
6311 onto a simulator register number.
6312 (arm_gdbarch_init): Set register_sim_regno.
6313
814b3ba0
AH
63142002-06-09 Aldy Hernandez <aldyh@redhat.com>
6315
6316 * MAINTAINERS: Add self.
6317
475b0867
JB
63182002-06-11 Jim Blandy <jimb@redhat.com>
6319
919d772c
JB
6320 * source.c (source_info): Mention whether the symtab has
6321 information about preprocessor macros.
6322
475b0867
JB
6323 Call the command `info macro', not `show macro'.
6324 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6325 Fix error message.
6326 (_initialize_macrocmd): Register `info_macro_command' in
6327 `infolist', not `showlist'.
6328
9e364162
DJ
63292002-06-11 Daniel Jacobowitz <drow@mvista.com>
6330
6331 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6332 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6333 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6334 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6335 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6336 unconditionally.
6337 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6338 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6339 (_initialize_mips_tdep): Remove dead code.
6340 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6341 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6342 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6343 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6344 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6345 MIPS_LAST_FP_ARG_REGNUM): Remove.
6346
23aa4c72
ML
63472002-06-11 Michal Ludvig <mludvig@suse.cz>
6348
6349 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6350 (unwind_tmp_obstack_free, parse_frame_info)
6351 (update_context, cfi_read_fp, cfi_write_fp)
6352 (cfi_frame_chain, cfi_init_extra_frame_info)
6353 (cfi_virtual_frame_pointer): Use the above function.
264d1763 6354 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 6355
70eb15a4
CV
63562002-06-11 Corinna Vinschen <vinschen@redhat.com>
6357
6358 * v850-tdep.c (v850_type_is_scalar): New function.
6359 (v850_use_struct_convention): Match current gcc implementation
6360 as close as possible.
6361 (v850_push_arguments): Fix stack_offset handling. Don't write
6362 struct_addr into register. This is done by v850_store_struct_return.
6363 (v850_extract_return_value): Care for structs.
6364 (v850_store_return_value): Ditto.
6365 (v850_store_struct_return): Actually write address.
6366
482a4d06
ML
63672002-06-11 Michal Ludvig <mludvig@suse.cz>
6368
6369 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6370 without debug information too.
6371
d855c300
AC
63722002-06-10 Andrew Cagney <ac131313@redhat.com>
6373
6374 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6375 Make multi-arch pure.
6376 * gdbarch.h, gdbarch.c: Re-generate.
6377 * arm-tdep.c (arm_print_float_info): Update.
6378 * arch-utils.h (default_print_float_info): Update.
6379 * arch-utils.c (default_print_float_info): Update.
6380 * infcmd.c (float_info): Update call.
6381
dd12a101
AC
63822002-06-10 Andrew Cagney <ac131313@redhat.com>
6383
6384 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6385 the front of the initialize list.
6386
101dcfbe
AC
63872002-06-10 Andrew Cagney <ac131313@redhat.com>
6388
6389 * infrun.c (struct inferior_status): Replace fields
6390 selected_frame_address and selected_level with field
6391 selected_frame_id.
6392 (save_inferior_status): Update. Use get_frame_id.
6393 (struct restore_selected_frame_args): Delete.
6394 (restore_selected_frame): Update. Use frame_find_by_id.
6395 (restore_inferior_status): Update.
6396
6397 * breakpoint.h (struct breakpoint): Change type of
6398 watchpoint_frame to frame_id.
6399 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6400 call to get_current_frame.
6401 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6402 get_current_frame.
6403 (watchpoint_check): Use frame_find_by_id.
6404
6405 * frame.h (record_selected_frame): Delete declaration.
6406 * stack.c (record_selected_frame): Delete function.
6407
6408 * frame.h (struct frame_id): Define.
6409 (get_frame_id): Declare.
6410 (frame_find_by_id): Declare.
6411 * frame.c (frame_find_by_id): New function.
6412 (get_frame_id): New function.
6413
304270b6
AV
64142002-06-10 Andrey Volkov <avolkov@transas.com>
6415
6416 * ser-e7kpc.c: Fix duplicated define and call of
6417 _initialize_ser_e7000pc
6418
2f2cf184
DJ
64192002-06-09 Daniel Jacobowitz <drow@mvista.com>
6420
6421 * signals/signals.c (target_signal_from_host): Fix #ifdef
6422 SIGRTMIN case.
6423 (do_target_signal_to_host): Likewise.
6424
caaa3122
DJ
64252002-06-09 Daniel Jacobowitz <drow@mvista.com>
6426
6427 * mips-tdep.c (mips_find_abi_section): New function.
6428 (mips_gdbarch_init): Call it.
6429
6ac5df3a
MK
64302002-06-09 Mark Kettenis <kettenis@gnu.org>
6431
6432 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6433 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6434 after Andrew's 2002-06-08 gdbarch change.
6435
82ea117a
MK
64362002-06-09 Mark Kettenis <kettenis@gnu.org>
6437
6438 * i386-linux-nat.c (suppy_gregset): Don't supply
6439 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6440 register cache.
6441 (fill_gregset): Don't fetch it under the same circumstances.
6442
3c25f8c7
AC
64432002-06-09 Andrew Cagney <cagney@redhat.com>
6444
6445 * Makefile.in (callback_h): Define.
6446 (remote_sim_h): Update path to remote-sim.h.
6447 (remote-rdp.o): Add $(callback_h).
6448 (remote-sim.o): Use $(callback_h).
6449 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6450 * remote-rdp.c: Include "gdb/callback.h".
6451
1029b7fa
MK
64522002-06-09 Mark Kettenis <kettenis@gnu.org>
6453
6454 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6455 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6456
616675d3
AC
64572002-06-08 Andrew Cagney <ac131313@redhat.com>
6458
a3efda28
AC
6459 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6460 * rdi-share/serpardr.c: Ditto.
6461 * rdi-share/unixcomm.c: Ditto.
6462 * rdi-share/serdrv.c: Ditto.
6463 * rdi-share/hostchan.h: Ditto.
6464 * rdi-share/hostchan.c: Ditto.
6465 * rdi-share/host.h: Ditto.
6466 * rdi-share/devsw.c: Ditto.
6467
c5f10366
AC
6468 * objfiles.h: Change type of obj_private to void pointer.
6469 * pa64solib.c: Update copyright. Don't include "assert.h", use
6470 strcmp instead of STREQ, use LONGEST, do not use PTR
6471 * somsolib.c: Ditto.
6472
616675d3
AC
6473 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6474 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6475 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6476
e4b415d9
AC
64772002-06-08 Andrew Cagney <ac131313@redhat.com>
6478
6479 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6480 (default_get_saved_register): Delete function.
6481 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6482 generic_unwind_get_saved_register.
6483 * gdbarch.h, gdbarch.c: Re-generate.
6484
ca0d0b52
AC
64852002-06-08 Andrew Cagney <ac131313@redhat.com>
6486
6487 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6488 generic_func_frame_chain_valid.
6489 * gdbarch.h, gdbarch.c: Re-generate.
6490 * blockframe.c (generic_func_frame_chain_valid): Only check
6491 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6492 passing FP to PC_IN_CALL_DUMMY.
6493 Fix PR gdb/360.
6494
76860b5f
AC
64952002-06-08 Andrew Cagney <ac131313@redhat.com>
6496
6497 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6498 (register_gdbarch_data): Initialize init_p.
6499 (gdbarch_data): Initialize data pointer using the init function.
6500 (init_gdbarch_data): Delete function.
6501 (gdbarch_update_p): Update.
6502 (initialize_non_multiarch): Update.
6503 (struct gdbarch): Add field initialized_p.
6504 * gdbarch.h, gdbarch.c: Re-generate.
6505
8dda9770
ML
65062002-06-07 Michal Ludvig <mludvig@suse.cz>
6507
6508 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6509 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6510 better do the things actually here.
6511 * x86-64-tdep.c (x86_64_register_name2nr): New.
6512 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6513 (x86_64_gdbarch_init): Respect the above change.
6514 * x86-64-tdep.h (x86_64_register_name2nr)
6515 (x86_64_register_nr2name): Add prototypes.
6516 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6517
3d79a47c
MS
65182002-06-06 Michael Snyder <msnyder@redhat.com>
6519
7bd91a28
MS
6520 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6521 Delete extra braces and re-indent.
6522 (d10v_store_return_value): Char return values
3d79a47c
MS
6523 must be shifted over by one byte in R0.
6524 (d10v_extract_return_value): Delete extra braces, re-indent.
6525
095a4c96
EZ
65262002-06-06 Elena Zannoni <ezannoni@redhat.com>
6527
6528 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6529 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6530 (d10v_integer_to_address): Rewrite.
6531 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6532 the d10v specific functions which take care of converting to the
6533 correct space.
6534
e8a77ca4
EZ
65352002-06-06 Elena Zannoni <ezannoni@redhat.com>
6536
6537 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6538 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6539
4f2e4a4f
AC
65402002-06-02 Andrew Cagney <ac131313@redhat.com>
6541
6542 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6543 includes.
6544 * config/tm-linux.h: Ditto.
6545 * config/alpha/tm-alphalinux.h: Ditto.
6546 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6547 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6548 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6549 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6550 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6551 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6552 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6553 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6554 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6555 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6556 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6557 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6558 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6559 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6560 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6561 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6562 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6563 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6564 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6565 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6566 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6567 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6568 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6569 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6570 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6571 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6572 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6573 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6574 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6575 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6576 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6577 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6578 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6579 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6580 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6581 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6582 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6583
ae2ab2ce
AS
65842002-05-04 Aidan Skinner <aidan@velvet.net>
6585
6586 * ada-exp.tab.c: New file
6587 * ada-exp.y: New file
6588 * ada-lang.c: New file
6589 * ada-lang.h: New file
6590 * ada-lex.c: New file
6591 * ada-lex.l: New file
6592 * ada-tasks.c: New file
6593 * ada-typeprint.c: New file
6594 * ada-valprint.c: New file
6595
0ddd0135
JT
65962002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6597
6598 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6599 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6600
750fbacc
JT
66012002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6602
6603 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6604 insetead of ppc-linux-tdep.o.
6605 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6606 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6607
df94e18a
AC
66082002-06-02 Andrew Cagney <ac131313@redhat.com>
6609
6610 2002-05-07 Christian Groessler <chris@groessler.org>
6611 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6612 bit register contents for little endian hosts.
6613
1a38ab75
AC
66142002-06-01 Andrew Cagney <ac131313@redhat.com>
6615
6616 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6617 any maintainer.
6618
8b1632ac
AC
66192002-06-01 Andrew Cagney <ac131313@redhat.com>
6620
6621 * gdbarch.h: Regenerate.
6622
627054c8
AC
66232002-06-01 Andrew Cagney <ac131313@redhat.com>
6624
6625 * MAINTAINERS: Add everyone to write-after-approval list.
6626
4f460812
AC
66272002-06-01 Andrew Cagney <ac131313@redhat.com>
6628
6629 * stack.c (frame_info): Use frame_register_unwind instead of
6630 saved_regs. Mention when the SP is on the stack or in a register.
6631
6632 * frame.h (frame_register_unwind_ftype): Define. Document.
6633 (struct frame_info): Add field register_unwind and
6634 register_unwind_cache.
6635 (frame_register_unwind): Declare.
6636 (generic_unwind_get_saved_register): Declare.
6637
6638 * frame.c (frame_register_unwind): New function.
6639 (generic_unwind_get_saved_register): New function.
6640
6641 * blockframe.c (generic_call_dummy_register_unwind): New function.
6642 (frame_saved_regs_register_unwind): New function.
6643 (set_unwind_by_pc): New function.
6644 (create_new_frame): New function.
6645 (get_prev_frame): New function.
6646
de888f76
AC
66472002-05-30 Andrew Cagney <ac131313@redhat.com>
6648
6649 * a29k-share/: Delete directory.
6650 * remote-vx29k.c: Delete file.
6651
2f2c3626
JT
66522002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6653
6654 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6655 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6656
9ce5c36a
JT
66572002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6658
6659 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6660 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6661 (sparc64nbsd-nat.o)
6662 (sparcnbsd-nat.o)
6663 (sparcnbsd-tdep.o): New dependency lists.
6664 * NEWS: Note new UltraSPARC NetBSD native configuration.
6665 * configure.host (sparc64-*-netbsd*): New host.
6666 * configure.tgt (sparc-*-netbsdelf*)
6667 (sparc-*-netbsd*): Set gdb_target to nbsd.
6668 (sparc64-*-netbsd*): New target.
6669 * sparc64nbsd-nat.c: New file.
6670 * sparcnbsd-nat.c: New file.
6671 * sparcnbsd-tdep.c: New file.
6672 * sparcnbsd-tdep.h: New file.
6673 * config/sparc/nbsd.mt: New file.
6674 * config/sparc/nbsd64.mh: New file.
6675 * config/sparc/nbsd64.mt: New file.
6676 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6677 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6678 (HOST_IPC): Remove.
6679 * config/sparc/nbsdaout.mt: Remove.
6680 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6681 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6682 (HOST_IPC): Remove.
6683 * config/sparc/nbsdelf.mt: Remove.
6684 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6685 sparc-nat.c compatiblity defines.
6686 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6687 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6688 * config/sparc/tm-nbsd64.h: New file.
6689 * config/sparc/tm-nbsdaout.h: Remove.
6690 * config/sparc/xm-nbsd.h: Remove.
6691
ef3cf062
JT
66922002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6693
6694 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6695 * sparc-tdep.c: Include osabi.h.
6696 (gdbarch_tdep): Add osabi member.
6697 (_initialize_sparc_tdep): Use gdbarch_register.
6698 (sparc_gdbarch_init): Use generic OS ABI framework.
6699 (sparc_dump_tdep): New function.
6700
ee8ff470
KB
67012002-05-30 Kevin Buettner <kevinb@redhat.com>
6702
6703 * corefile.c (do_captured_read_memory_integer): Return non-zero
6704 result.
6705 (safe_read_memory_integer): Copy result of memory read when
6706 status is non-zero. Also, add comments.
6707
7b112f9c
JT
67082002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6709
6710 * Makefile.in (ppc_tdep_h): Define.
6711 (ppc-linux-nat.o)
6712 (ppc-linux-tdep.o)
6713 (rs6000-tdep.o): Use $(ppc_tdep_h).
6714 (ppc-sysv-tdep.o)
6715 (ppcnbsd-nat.o)
6716 (ppcnbsd-tdep.o): New dependency lists.
6717 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
6718 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6719 (ppc_linux_init_abi): New functions.
7b112f9c
JT
6720 (ppc_sysv_abi_broken_use_struct_convention)
6721 (ppc_sysv_abi_use_struct_convention)
6722 (ppc_sysv_abi_push_arguments): Move to...
6723 * ppc-sysv-tdep.c: ...here.
6724 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6725 * rs6000-tdep.c (process_note_abi_tag_sections)
6726 (get_elfosabi): Remove.
6727 (rs6000_gdbarch_init): Use generic OS ABI framework.
6728 (rs6000_dump_tdep): New function.
6729 (_initialize_rs6000_tdep): Use gdbarch_register.
6730 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6731 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6732 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6733 of ppc-linux-tdep.o.
6734 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6735 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6736 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6737 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6738 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6739 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6740
480dd42a
JB
67412002-05-29 Jim Blandy <jimb@redhat.com>
6742
6743 * macroscope.c (default_macro_scope): Put `void' in empty argument
6744 list.
6745
4182591f
AC
67462002-05-29 Andrew Cagney <ac131313@redhat.com>
6747
6748 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6749 * arch-utils.c: Include "sim-regno.h".
6750 * gdbarch.sh: Don't include "sim-regno.h".
6751 * gdbarch.h, gdbarch.c: Regenerate.
6752 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6753 here.
6754 * arch-utils.h (legacy_register_sim_regno): To here.
6755 * remote-sim.c (legacy_register_sim_regno): Move function from
6756 here.
6757 * arch-utils.c (legacy_register_sim_regno): To here.
6758
8238d0bf
AC
67592002-05-28 Andrew Cagney <ac131313@redhat.com>
6760
6761 * sim-regno.h: New file.
6762 * Makefile.in (sim_regno_h): Define.
6763 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6764 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6765 (legacy_register_sim_regno): New function.
6766 (one2one_register_sim_regno): New function.
6767 (gdbsim_fetch_register): Rewrite.
6768 (gdbsim_store_register): Only store a register when
6769 REGISTER_SIM_REGNO is valid.
6770 * d10v-tdep.c: Include "sim-regno.h".
6771 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6772 (d10v_ts3_register_sim_regno): Ditto.
6773 * gdbarch.sh: Include "sim-regno.h".
6774 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6775 * gdbarch.h, gdbarch.c: Regenerate.
6776 * arch-utils.h (default_register_sim_regno): Delete declaration.
6777 * arch-utils.c (default_register_sim_regno): Delete function.
6778
485721b1
JT
67792002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6780
6781 * ppcnbsd-nat.c: Rewrite.
6782 * ppcnbsd-tdep.c: New file.
6783 * ppcnbsd-tdep.h: New file.
6784 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6785 solib.o, and solib-svr4.o.
6786 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6787 nbsd-tdep.o, and corelow.o.
6788
697f244d
AC
67892002-05-28 Andrew Cagney <ac131313@redhat.com>
6790
6791 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6792 `tr' and `sed'. Mention that `broken' targets are not expected to
6793 build.
6794
f08caad1 67952002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
6796
6797 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6798 Let PC point right after the prologue before looking up symbols.
6799
3139facc
MH
68002002-05-27 Martin M. Hunt <hunt@redhat.com>
6801
6802 * i386-tdep.c (i386_register_virtual_type): Return
6803 builtin_type_vec128i for SSE registers.
6804
6805 * gdbtypes.h (builtin_type_vec128i): Declare.
6806
6807 * gdbtypes.c (build_builtin_type_vec128i): New function.
6808 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6809 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6810 (build_gdbtypes): Initialize new builtin vector types.
6811 (_initialize_gdbtypes): Register new vector types with gdbarch.
6812
6e3ba3b8
JT
68132002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6814
6815 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6816 since it has been multi-arch'd.
6817 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6818 Move Alpha and VAX multi-arch news entries to same section
6819 as other multi-arch news.
6820
93d5585d
JT
68212002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6822
6823 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6824 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6825 static. Rename some register numbers to put them in ns32k-tdep
6826 private namespace.
6827 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6828 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6829 functions.
6830 (_initialize_ns32k_tdep): Use gdbarch_register.
6831 * ns32k-tdep.h: New file.
6832 * ns32knbsd-tdep.c: New file.
6833 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6834 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6835 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6836 REGISTER_BYTES, REGISTER_BYTE): Remove.
6837 * config/ns32k/tm-ns32k.h: New file.
6838 * config/ns32k/tm-umax.h: Remove.
6839
efb2c70e
JT
68402002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6841
6842 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6843 ns32k_store_struct_return, ns32k_extract_return_value,
6844 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6845 functions.
6846 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6847 ns32k_saved_pc_after_call.
6848 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6849 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6850 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6851 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6852 ns32k_extract_struct_value_address.
6853
7bcc927b
JT
68542002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6855
6856 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6857 ns32k_fix_call_dummy): New.
6858 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6859 ns32k_call_dummy_words.
6860 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6861 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6862 CALL_DUMMY_NARGS): Remove.
6863 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6864
78f9d765
JT
68652002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6866
6867 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6868 ns32k_frame_saved_pc, ns32k_frame_args_address,
6869 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6870 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6871 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6872 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6873 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6874 (BREAKPOINT): Remove..
6875 (FRAME_CHAIN): Define as ns32k_frame_chain.
6876 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6877 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6878 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6879 (FRAME_FIND_SAVED_REGS): Remove.
6880 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6881 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6882 (POP_FRAME): Define as ns32k_pop_frame.
6883
f2c762e0
JT
68842002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6885
6886 * ns32k-tdep.c (ns32k_register_byte_32082,
6887 ns32k_register_byte_32382, ns32k_register_raw_size,
6888 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6889 functions.
6890 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6891 ns32k_register_byte_32382.
6892 * config/ns32k/tm-umax.h: Update copyright years.
6893 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6894 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6895 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6896 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6897 (ns32k_get_enter_addr): Fix prototype.
6898
af137673
JT
68992002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6900
6901 * ns32k-tdep.c: Update copyright years.
6902 (ns32k_register_name_32082): New function.
6903 (ns32k_register_name_32382): Ditto.
6904 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6905 (REGISTER_NAME): Define as ns32k_register_name_32382.
6906 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6907 (REGISTER_NAME): Define as ns32k_register_name_32082.
6908
a8bc7b56
JB
69092002-05-24 Jim Blandy <jimb@redhat.com>
6910
6911 * dwarf2read.c (free_line_header): Use xfree, not free.
6912
83a45910
JT
69132002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6914
6915 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6916 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6917
0db71247
AC
69182002-05-23 Andrew Cagney <ac131313@redhat.com>
6919
6920 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6921
b9e5e4dd
AC
69222002-05-23 Andrew Cagney <ac131313@redhat.com>
6923
6924 From Ross Alexander at NEC Europe:
6925 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6926
de530e84
MS
69272002-05-23 Michael Snyder <msnyder@redhat.com>
6928
6929 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6930 for input, rather than parse_and_eval_address.
6931
b91b96f4
AC
69322002-05-23 Andrew Cagney <ac131313@redhat.com>
6933
6934 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6935 * Makefile.in (sim_d10v_h): Update definition.
6936
8b279e7a
AC
69372002-05-24 Andrew Cagney <cagney@redhat.com>
6938
6939 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6940 change `2002-05-22 Michael Snyder' below.
6941 (d10v_push_arguments): Ditto.
6942 (d10v_extract_return_value): Ditto.
6943
0a3d0425
JB
69442002-05-23 Jim Blandy <jimb@redhat.com>
6945
6946 * macrotab.c (check_for_redefinition): Don't complain if the new
6947 definition is the same as the previous one. Take more arguments
6948 to allow the comparison.
6949 (macro_define_object, macro_define_function): Pass more arguments
6950 to check_for_redefinition.
6951
78eac43e
MS
69522002-05-22 Michael Snyder <msnyder@redhat.com>
6953
6954 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6955 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6956 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6957 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6958 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6959 Add a temp variable to save a call (and a memory read).
6960 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6961 if possible (so that PC_IN_CALL_DUMMY will work).
6962
9bc1edb8
CV
69632002-05-22 Corinna Vinschen <vinschen@redhat.com>
6964
6965 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6966
005ef3d2
ML
69672002-05-22 Michal Ludvig <mludvig@suse.cz>
6968
6969 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6970 fde->cie_ptr.
6971 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6972 (dwarf2_build_frame_info): Add offset to fde->initial_location
6973 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
6974 (execute_stack_op): Change type of 'result' from ULONGEST to
6975 CORE_ADDR.
005ef3d2 6976
fcf4f891
JT
69772002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6978
6979 * config/alpha/tm-nbsd.h: Include solib.h.
6980
cfef91e4
JT
69812002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6982
6983 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6984 assumptions about the host's byte order.
6985
9964235a
JT
69862002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6987
6988 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6989 to dependency list.
6990 * alphanbsd-tdep.c: Include solib-svr4.h.
6991 * shnbsd-tdep.c: Ditto.
6992
9eeef8ef
JT
69932002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6994
6995 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6996 nbsd-tdep.h to dependency list.
6997 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6998 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6999 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7000 nbsdaout.mh and nbsdelf.mh consistently.
7001 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7002 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7003 nbsdaout.mt and nbsdelf.mh consistently.
7004 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7005 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7006 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7007 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7008 a.out shared library stuff from here...
7009 * config/nm-nbsdaout.h: ...to here.
7010 * config/tm-nbsd.h: Remove.
7011 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7012 * config/arm/nbsd.mh: Remove.
7013 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7014 nbsd-tdep.o.
7015 * config/arm/nbsdaout.mh: New file.
7016 * config/arm/nbsdelf.mh: New file.
7017 * config/arm/nm-nbsdaout.h: New file.
7018 * config/i386/nbsd.mh: Remove.
7019 * config/i386/nbsd.mt: Remove.
7020 * config/i386/nbsdaout.mh: New file.
7021 * config/i386/nbsdaout.mt: New file.
7022 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7023 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7024 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7025 i386_register_u_addr): Remove.
7026 * config/i386/nm-nbsdaout.h: New file.
7027 * config/i386/nm-nbsdelf.h: Remove.
7028 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7029 (USE_STRUCT_CONVENTION): Remove.
7030 * config/i386/tm-nbsdaout.h: New file.
7031 * config/i386/tm-nbsdelf.h: Remove.
7032 * config/m68k/nbsd.mh: Remove.
7033 * config/m68k/nbsd.mt: Remove.
7034 * config/m68k/nbsdaout.mh: New file.
7035 * config/m68k/nbsdaout.mt: New file.
7036 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7037 * config/m68k/nm-nbsdaout.h: New file.
7038 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7039 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7040 * config/ns32k/nbsd.mh: Remove.
7041 * config/ns32k/nbsd.mt: Remove.
7042 * config/ns32k/nbsdaout.mh: New file.
7043 * config/ns32k/nbsdaout.mt: New file.
7044 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7045 * config/ns32k/nm-nbsdaout.h: New file.
7046 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7047 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7048 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7049 (SVR4_SHARED_LIBS): Remove.
7050 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7051 * config/sparc/nbsd.mh: Remove.
7052 * config/sparc/nbsd.mt: Remove.
7053 * config/sparc/nbsdaout.mh: New file.
7054 * config/sparc/nbsdaout.mt: New file.
7055 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7056 * config/sparc/nbsdelf.mt: New file.
7057 * config/sparc/nm-nbsdaout.h: New file.
7058 * config/sparc/nm-nbsdelf.h: Remove.
7059 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7060 * config/sparc/tm-nbsdaout.h: New file.
7061
257ce470
JT
70622002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7063
7064 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7065 mipsnbsd-tdep.c
7066 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7067
76a6d5fe
JT
70682002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7069
7070 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7071 shnbsd-nat.c.
7072 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7073
45888261
JT
70742002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7075
7076 * NEWS: Note new MIPS NetBSD native configuration.
7077 * configure.host (mips*-*-netbsd*): New host.
7078 * configure.tgt (mips*-*-netbsd*): New target.
7079 * mipsnbsd-nat.c: New file.
7080 * mipsnbsd-tdep.c: New file.
7081 * mipsnbsd-tdep.h: New file.
7082 * config/mips/nbsd.mh: New file.
7083 * config/mips/nbsd.mt: New file.
7084 * config/mips/nm-nbsd.h: New file.
7085 * config/mips/tm-nbsd.h: New file.
7086
70f80edf
JT
70872002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7088
7089 * Makefile.in (SFILES): Add osabi.c.
7090 (COMMON_OBS): Add osabi.o.
7091 (osabi.o): New dependency list.
7092 * osabi.c: New file.
7093 * osabi.h: New file.
7094 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7095
7096 * Makefile.in (alpha_tdep_h): Define and use instead of
7097 alpha-tdep.h.
7098 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7099 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7100 Remove.
7101 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7102 * alpha-tdep.h: Include osabi.h.
7103 (alpha_abi): Remove.
7104 (gdbarch_tdep): Use generic OS ABI framework.
7105 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7106 gdbarch_register_osabi.
7107 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7108 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7109 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7110
7111 * Makefile.in (sh_tdep_h): Add osabi.h.
7112 * sh-tdep.h (sh_osabi): Remove.
7113 (gdbarch_tdep): Use generic OS ABI framework.
7114 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7115 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7116 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7117 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7118
7119 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7120 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7121 gdbarch_register_osabi.
7122 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7123 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7124 (get_elfosabi): Rename to...
7125 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7126 ABI framework support routines.
7127 (arm_gdbarch_init): Use generic OS ABI framework.
7128 (arm_dump_tdep): Likewise.
7129 (_initialize_arm_tdep): Likewise.
7130 * arm-tdep.h: Include osabi.h.
7131 (arm_abi): Remove.
7132 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7133 osabi member.
7134 (arm_gdbarch_register_os_abi): Remove prototype.
7135 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7136 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7137
7138 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7139 * mips-tdep.c: Include osabi.h.
7140 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7141 OS ABI framework.
7142
d194345b
KH
71432002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7144
7145 * h8300-tdep.c: Fix formatting.
7146
70c6b0d1
EZ
71472002-05-20 Elena Zannoni <ezannoni@redhat.com>
7148
7149 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7150 printing vector registers.
7151
165b8e33
AC
71522002-05-19 Andrew Cagney <ac131313@redhat.com>
7153
7154 From Fernando Nasser:
7155 * remote.c (remote_async_open_1): Re-throw the exception when the
7156 connection fails.
7157 (remote_cisco_open): Ditto.
7158 (remote_open_1): Ditto.
7159
36918e70
AC
71602002-05-19 Andrew Cagney <ac131313@redhat.com>
7161
7162 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7163 (remote_start_remote): Add uiout parameter. Pass through to
7164 remote_start_remote_dummy.
7165 (remote_open_1): Use catch_exception instead of catch_errors.
7166 (remote_async_open_1): Ditto.
7167 (remote_cisco_open): Ditto.
7168
ae44c0c4
AC
71692002-05-19 Andrew Cagney <ac131313@redhat.com>
7170
7171 * remote.c (remote_start_remote): Replace PTR with void pointer.
7172 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7173 static.
7174
8efe637d
AC
71752002-05-18 Andrew Cagney <ac131313@redhat.com>
7176
7177 * gdb_indent.sh: Allow the script to be run in the sim directory.
7178
2f1b5984
MK
71792002-05-18 Mark Kettenis <kettenis@gnu.org>
7180
f0f625e2
MK
7181 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7182 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7183
2f1b5984
MK
7184 * corelow.c (core_open): Only call set_gdbarch_from_file if
7185 exec_bfd is NULL.
7186
fc974602
AV
71872002-05-17 Andrey Volkov <avolkov@transas.com>
7188
7189 * h8300-tdep.c: Add support of EXR register
7190 * config/h8300/tm-h8300.h: Ditto.
7191
906709f4
AV
71922002-05-17 Andrey Volkov <avolkov@transas.com>
7193
7194 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7195
6e591d68
AV
71962002-05-17 Andrey Volkov <avolkov@transas.com>
7197
7198 * h8300-tdep.c: Change literal regnums to REGNO.
7199
84f0252a
JB
72002002-05-17 Jim Blandy <jimb@redhat.com>
7201
e0e9281e
JB
7202 * NEWS: Note addition of macro support.
7203
84f0252a
JB
7204 Expand preprocessor macros in C expressions.
7205 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7206 (scan_macro_expansion, scanning_macro_expansion,
7207 finished_macro_expansion): New function declarations.
7208 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7209 variable declarations.
7210 * parser-defs.h (expression_context_pc): New declaration.
7211 * parse.c (expression_context_pc): New variable.
7212 (parse_exp_1): Set expression_context_pc, as well as
7213 expression_context_block.
7214 * c-exp.y (yylex): If we're not already reading the result of a
7215 macro expansion, try to macro-expand the next token. When we're
7216 done scanning a macro expansion, switch back to the mainline text.
7217 Commas and `if's in a macro's expansion don't terminate the input.
7218 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7219 (macro_original_text, macro_expanded_text,
7220 expression_macro_lookup_func, expression_macro_lookup_baton): New
7221 variables.
7222 (scan_macro_expansion, scanning_macro_expansion,
7223 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7224 c_preprocess_and_parse): New functions.
7225 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7226 c_preprocess_and_parse, instead of c_parse.
7227 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7228 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7229
1c509ca8
JR
7230Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7231
7232 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7233 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7234 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7235
2250ee0c
CV
72362002-05-17 Corinna Vinschen <vinschen@redhat.com>
7237
7238 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7239
ab3b8126
JT
72402002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7241
7242 * Makefile.in (sh_tdep_h): Define and use.
7243 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7244 register enum): Move to...
7245 * * sh-tdep.h: ...here.
7246 * sh-tdep.c: Include sh-tdep.h.
7247 * sh3-rom.c: Likewise.
7248 * shnbsd-tdep.c: Likewise.
7249
ed9d4749
MS
72502002-05-16 Michael Snyder <msnyder@redhat.com>
7251
7252 * arm-tdep.c: Spelling fix in comment.
7253
2e276125
JB
72542002-05-16 Jim Blandy <jimb@redhat.com>
7255
6821892e
JB
7256 Add commands for manually expanding macros and showing their
7257 definitions.
7258 * macrocmd.c, macroscope.c, macroscope.h: New files.
7259 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7260 (macroscope_h): New variable.
7261 (HFILES_NO_SRCDIR): Add macroscope.h.
7262 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7263 (macroscope.o, macrocmd.o): New rules.
7264
2e276125
JB
7265 Teach the Dwarf 2 reader to read macro information.
7266 * dwarf2read.c: #include "macrotab.h".
7267 (dwarf_macinfo_buffer): New variable.
7268 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7269 dwarf_macinfo_size.
7270 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7271 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7272 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7273 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7274 dwarf2_macro_spaces_in_definition): New complaints.
7275 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7276 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7277 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7278 the partial symbol table.
7279 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7280 from what's recorded in the partial symbol table.
7281 (read_file_scope): If the compilation unit has a
7282 `DW_AT_macro_info' attribute, read its macro information.
7283 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7284
2f53fe6c
DJ
72852002-05-16 Daniel Jacobowitz <drow@mvista.com>
7286
7287 Fix PR gdb/546
7288 * ser-tcp.c: Don't include <netinet/udp.h>.
7289
2be99286
SC
72902002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7291
7292 * MAINTAINERS: Update my email address.
7293
c9af212b 72942002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
7295
7296 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7297 include file of the same name.
7298
bf5f1a52
CV
72992002-05-16 Corinna Vinschen <vinschen@redhat.com>
7300
7301 * configure.tgt: Mark v850 as multi-arched.
7302 * config/v850/tm-v850.h: Remove file.
7303 * config/v850/v850.mt: Eliminate TM_FILE.
7304
435e042a
CV
73052002-05-16 Corinna Vinschen <vinschen@redhat.com>
7306
7307 * v850-tdep.c: Full multi-arch.
7308 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7309 Define GDB_MULTI_ARCH to 2.
7310
9819c6c8
PM
73112002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7312
7313 * p-exp.y (current_type): New static variable.
7314 Carries the type of the expression at the position that is parsed.
7315 (push_current_type, pop_current_type): Two new functions. Used
7316 to store/restore current_type in expression on specific tokens.
c9af212b
RE
7317 (search_field): New static variable. Set to one after parsing a point
7318 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
7319 (FIELDNAME): New token. After a point only a token belonging to
7320 current_type type definition is allowed.
7321 (all over token rules): reset and change current_type according
7322 to rules.
7323 (exp '[' rule): insert implicit array index field if
7324 exp is a pascal string type.
7325
3a06899a
CV
73262002-05-16 Corinna Vinschen <vinschen@redhat.com>
7327
7328 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7329 frame info. Use frame_info's saved_regs instead of matching member
7330 in extra_frame_info throughout.
7331 (v850_frame_init_saved_regs): New function.
7332 (v850_init_extra_frame_info): Move most functionality into
7333 v850_frame_init_saved_regs().
7334 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7335 (v850_frame_find_saved_regs): Remove declaration.
7336 (FRAME_FIND_SAVED_REGS): Remove definition.
7337 (v850_frame_init_saved_regs): Add declaration.
7338 (FRAME_INIT_SAVED_REGS): Add definition.
7339
6ed14b0e
CV
73402002-05-16 Corinna Vinschen <vinschen@redhat.com>
7341
7342 * v850-tdep.c: Begin multi-arch'ing v850.
7343 (v850_target_architecture_hook): Remove function.
7344 (v850_gdbarch_init): New function. Add code previously in
7345 v850_target_architecture_hook().
7346 (_initialize_v850_tdep): Don't set target_architecture_hook.
7347 Call register_gdbarch_init() instead.
7348
42725910
DJ
73492002-05-16 Daniel Jacobowitz <drow@mvista.com>
7350
7351 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7352 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7353 (fixup_class_method_type): Likewise.
7354
99d9066e
JB
73552002-05-15 Jim Blandy <jimb@redhat.com>
7356
7357 Add macro structures to GDB's symbol tables. Nobody puts anything
7358 in them yet.
7359 * symtab.h (struct symtab): New member: `macro_table'.
7360 * buildsym.h (pending_macros): New global variable.
7361 * buildsym.c: #include "macrotab.h".
7362 (buildsym_init): Initialize `pending_macros'.
7363 (end_symtab): If we found macro information while reading a CU's
7364 debugging info, do build a symtab structure for it. Make the
7365 symtab point to the macro information, and clear the
7366 `pending_macros' pointer which held it while we were reading the
7367 debug info.
7368 (really_free_pendings): Free any pending macro table.
7369 * objfiles.h (struct objfile): New member: `macro_cache'.
7370 * objfiles.c (allocate_objfile): Set allocate and free functions
7371 for the macro cache's objstack.
7372 (free_objfile): Empty the macro cache's obstack.
7373 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7374 set new allocate and free functions for it.
7375 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7376 free functions for the macro cache's objstack. (Why is this
7377 function building its own objfile?)
7378 * symmisc.c (print_objfile_statistics): Print statistics on the
7379 macro bcache.
7380 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7381
c899585b
RE
73822002-05-15 Richard Earnshaw <rearnsha@arm.com>
7383
7384 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7385 (REGISTER_U_ADDR): Delete definition.
7386 (arm_register_u_addr): Delete declaration.
7387
a6cdd8c5
RE
73882002-05-15 Richard Earnshaw <rearnsha@arm.com>
7389
7390 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7391 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7392
c97dcfc7
AC
73932002-05-14 Andrew Cagney <ac131313@redhat.com>
7394
7395 * regcache.c (register_valid): Revise comments refering to "Not
7396 available" and "unavailable".
7397 * frame.c (frame_register_read): Ditto.
7398 * findvar.c (value_of_register): Ditto.
7399
93021b7d
AC
74002002-05-15 Andrew Cagney <cagney@redhat.com>
7401
7402 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7403 (remote-sim.o): Update dependencies.
7404 (d10v-tdep.o): Specify dependencies.
7405 (sim_d10v_h): Define.
7406
a86bc61c
JB
74072002-05-14 Jim Blandy <jimb@redhat.com>
7408
7409 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7410 * macrotab.c (macro_lookup_inclusion, find_definition,
7411 new_macro_table): Same.
7412
7413 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7414 not `! strcmp ()'. This is a dubious improvement.
7415 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7416
7417 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7418 although it's not necessary, to avoid a warning.
7419
2fdde8f8
DJ
74202002-05-14 Daniel Jacobowitz <drow@mvista.com>
7421
7422 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7423 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7424 TYPE_INSTANCE_FLAGS.
7425 (struct main_type): New.
7426 (struct type): Move most members to struct main_type. Change
7427 cv_type and as_type to new type_chain member. Add instance_flags.
7428 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7429 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7430 (finish_cv_type): Remove prototype.
7431 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7432 Set TYPE_CHAIN.
7433 (alloc_type_instance): New function.
7434 (smash_type): New function.
7435 (make_pointer_type, make_reference_type, make_function_type)
7436 (smash_to_member_type, smash_to_method_type): Call smash_type.
7437 (make_qualified_type): New function.
7438 (make_type_with_address_space): Call make_qualified_type.
7439 (make_cv_type): Likewise.
7440 (finish_cv_type): Remove unnecessary function.
7441 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7442 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7443 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7444 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7445 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7446 * hpread.c (hpread_read_struct_type): Likewise.
7447 * stabsread.c (read_struct_type): Likewise.
7448
843fedf4
EZ
74492002-05-14 Elena Zannoni <ezannoni@redhat.com>
7450
7451 * configure.tgt: Add a catch all sh* target, for cases like
7452 sh[2,3,4]-elf and sh-hms.
7453
05a6c72c
KS
74542002-05-14 Keith Seitz <keiths@redhat.com>
7455
7456 * event-loop.c (create_file_handler): Don't do anything but
7457 update data when we are given a fd which we are already
7458 monitoring.
7459
5d085aaf
ML
74602002-05-14 Michal Ludvig <mludvig@suse.cz>
7461
7462 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7463 (update_context): Use __func__ in warnings.
7464
9db8d71f
DJ
74652002-05-14 Daniel Jacobowitz <drow@mvista.com>
7466
7467 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7468 and tcp_close to net_open and net_close.
7469 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7470 using UDP if requested. Don't try to disable Nagle on UDP
7471 sockets.
7472 * remote.c (remote_serial_open): New function. Warn about UDP.
7473 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7474
5dbc6baa
EZ
74752002-05-13 Elena Zannoni <ezannoni@redhat.com>
7476
7477 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7478
cc3023f7
EZ
74792002-05-13 Elena Zannoni <ezannoni@redhat.com>
7480
7481 * configure.tgt: Remove sh-hms target.
7482 * MAINTAINERS: Don't list sh-hms as a separate target.
7483
ec2bcbe7
JB
74842002-05-13 Jim Blandy <jimb@redhat.com>
7485
7486 Add first preprocessor macro-expansion files.
7487 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7488 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7489 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7490 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7491 (COMMON_OBS): Add macrotab.o, macroexp.o.
7492 (macroexp.o, macrotab.o): New rules.
7493
6d531722
AC
74942002-05-13 Andrew Cagney <ac131313@redhat.com>
7495
7496 * config/m88k/tm-m88k.h: Update copyright.
7497 (m88k_target_write_pc): Declare
7498 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7499 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7500 (SHIFT_INST_REGS): Update definition.
7501 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7502 using old definition of TARGET_WRITE_PC.
7503 * regcache.c (generic_target_write_pc): Delete code handling
7504 NNPC_REGNUM.
7505 * gdbarch.sh (NNPC_REGNUM): Delete.
7506 * gdbarch.h, gdbarch.c: Regenerate.
7507
3e3f2739
RE
75082002-05-13 Richard Earnshaw <rearnsha@arm.com>
7509
7510 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7511 builtin reg number.
7512
0004e5a2
DJ
75132002-05-13 Daniel Jacobowitz <drow@mvista.com>
7514
7515 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7516 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7517 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7518 access macros.
7519 * c-typeprint.c (cp_type_print_method_args): Likewise.
7520 (c_type_print_args): Likewise.
7521 * d10v-tdep.c (d10v_push_arguments): Likewise.
7522 (d10v_extract_return_value): Likewise.
7523 * expprint.c (print_subexp): Likewise.
7524 * gdbtypes.c (lookup_primitive_typename): Likewise.
7525 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7526 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7527 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7528 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7529 (TYPE_VECTOR): Likewise.
7530 * hpread.c (hpread_read_struct_type)
7531 (fix_static_member_physnames, fixup_class_method_type)
7532 (hpread_type_lookup): Likewise.
7533 * mdebugread.c (parse_symbol, parse_type): Likewise.
7534 * p-lang.c (is_pascal_string_type): Likewise.
7535 * valops.c (hand_function_call): Likewise.
7536 * x86-64-tdep.c (classify_argument): Likewise.
7537
7538 * hpread.c (hpread_read_function_type)
7539 (hpread_read_doc_function_type): Call replace_type.
7540 * dstread.c (create_new_type): Delete.
7541 (decode_dst_structure, process_dst_function): Call alloc_type.
7542 Use type access macros.
7543
dff95cc7
MK
75442002-05-12 Mark Kettenis <kettenis@gnu.org>
7545
7546 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7547 the're not supported by the current architecture.
7548 (i387_fill_fxsave): Likewise.
7549
bbcd32ad
FF
75502002-05-12 Fred Fish <fnf@redhat.com>
7551
7552 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7553 sect_index_xxx members to index the first slot in section_offsets
7554 if all of the section_offsets are zero.
7555
89cf4787
MK
75562002-05-12 Mark Kettenis <kettenis@gnu.org>
7557
7558 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7559 checked in with last change.
7560
1f77ffc5
MK
75612002-05-12 Mark Kettenis <kettenis@gnu.org>
7562
7563 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7564 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7565 config.sub.
7566
89b8b4a9
DJ
75672002-05-12 Daniel Jacobowitz <drow@mvista.com>
7568
7569 * Makefile.in: Update dependencies.
7570
14a5e767
AC
75712002-05-11 Andrew Cagney <ac131313@redhat.com>
7572
7573 * language.c (local_hex_string_custom): Simplify. Do not depend
7574 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7575
7576 * memattr.c (mem_info_command): Replace calls to
7577 longest_local_hex_string and longest_local_hex_string_custom.
7578 * buildsym.c (make_blockvector): Ditto.
7579 * solib.c (info_sharedlibrary_command): Ditto.
7580 * tracepoint.c (tracepoints_info): Ditto.
7581 * symtab.c (print_msymbol_info): Ditto.
7582
7583 * language.c (local_hex_string): Delete.
7584 (local_hex_string_custom): Delete.
7585 (longest_local_hex_string): Rename to local_hex_string.
7586 (longest_local_hex_string_custom): Rename to
7587 local_hex_string_custom.
7588 * language.h (local_hex_string): Change parameter type to LONGEST.
7589 (local_hex_string_custom): Ditto.
7590 (longest_local_hex_string): Delete declaration.
7591 (longest_local_hex_string_custom): Ditto.
7592
7593 * solib.c: Update copyright.
7594 * memattr.c: Update copyright.
7595
13d01224
AC
75962002-05-11 Andrew Cagney <ac131313@redhat.com>
7597
7598 * arch-utils.h (legacy_register_to_value): Declare.
7599 (legacy_value_to_register): Declare.
7600 (legacy_convert_register_p): Declare.
7601 * arch-utils.c (legacy_register_to_value): New function.
7602 (legacy_value_to_register): New function.
7603 (legacy_convert_register_p): New function.
7604
7605 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7606 (VALUE_TO_REGISTER): Define.
7607 (CONVERT_REGISTER_P): Define.
7608 * gdbarch.h, gdbarch.c: Regenerate.
7609
7610 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7611 VALUE_TO_REGISTER.
7612 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7613 CONVERT_REGISTER_P.
7614
4a1970e4
DJ
76152005-05-11 Daniel Jacobowitz <drow@mvista.com>
7616 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7617
7618 * Makefile.in: Update dependencies for valops.c.
7619 * valops.c: Include "gdb_assert.h".
7620 (typecmp): Skip THIS parameter to methods.
7621 (find_method_list): Remove static_memfuncp argument,
7622 update callers. Check for stub methods.
7623 (find_value_oload_method_list): Don't set *static_memfuncp.
7624 (find_overload_match): Don't check for stub methods. Assert
7625 that methods are not stubbed. Handle static methods.
7626 (value_find_oload_method_list): Remove static_memfuncp argument.
7627 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7628 to the argument list for static stub methods.
7629 * value.h (value_find_oload_method_list): Update prototype.
7630
b2e75d78
AC
76312002-05-11 Andrew Cagney <ac131313@redhat.com>
7632
7633 * arch-utils.h (generic_register_size): Declare.
7634 (generic_register_raw_size, generic_register_virtual_size): Delete
7635 declarations.
7636 * arch-utils.c (generic_register_raw_size): Delete.
7637 (generic_register_size): New function.
7638 (generic_register_virtual_size): Delete.
7639
7640 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7641 default generic_register_size.
7642 * gdbarch.h, gdbarch.c: Re-generate.
7643
7644 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7645 register_virtual_size.
7646 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7647 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7648
451fbdda
AC
76492002-05-11 Andrew Cagney <ac131313@redhat.com>
7650
7651 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7652 * gdbarch.h, gdbarch.c: Regenerate.
7653 * gnu-v3-abi.c: Update copyright.
7654 (vtable_address_point_offset): Update.
7655 (gnuv3_rtti_type): Update.
7656 (gnuv3_baseclass_offset): Update.
7657 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7658 (init_fetch_link_map_offsets): Update.
7659 * remote.c (get_remote_state): Update.
7660
6d2f5cea
DJ
76612002-05-11 Daniel Jacobowitz <drow@mvista.com>
7662
7663 * TODO: Remove value_headof/value_from_vtable_info comment.
7664 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7665 * values.c (value_headof, value_from_vtable_info): Delete.
7666 * value.h (value_from_vtable_info): Delete prototype.
7667
d2324da4
AC
76682002-05-11 Andrew Cagney <ac131313@redhat.com>
7669
7670 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7671 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7672 $(gdb_regex_h).
7673 (gdb_assert_h): Define.
7674 (gdb_wait_h): Define.
7675 (gdb_regex_h): Define.
7676
5c717440
DJ
76772002-05-11 Daniel Jacobowitz <drow@mvista.com>
7678
7679 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7680 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7681
6c7861b3
JT
76822002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7683
7684 * nbsd-tdep.c: Fix comment.
7685
ea5bc2a6
JT
76862002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7687
7688 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7689 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7690 (nbsd-tdep.o): New dependency list.
7691 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7692 nbsd-tdep.h.
7693 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7694 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7695 * nbsd-tdep.c: New file.
7696 * nbsd-tdep.h: New file.
7697 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7698 nbsd-tdep.h.
7699 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7700 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7701 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7702 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7703
b28da865
JT
77042002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7705
7706 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7707 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7708 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7709 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7710 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7711 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7712
4b8ff1fa
JT
77132002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7714
7715 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7716 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7717 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7718 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7719 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7720 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7721 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7722
dfe6eb1f
JT
77232002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7724
7725 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7726 fetch_elfcore_registers to...
7727 * i386nbsd-tdep.c: ...here.
7728 (i386nbsd_use_struct_convention): Rename to...
7729 (i386nbsd_aout_use_struct_convention): ...this.
7730 (i386nbsd_supply_reg): New function.
7731 (i386nbsd_fill_reg): New function.
7732 (fetch_core_registers): Use i386nbsd_supply_reg.
7733 (fetch_elfcore_registers): Likewise.
7734 (_initialize_i386nbsd_tdep): New function.
7735 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7736 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7737 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7738 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7739 (i386nbsd_aout_use_struct_convention): ...this.
7740
20cb8cda
JT
77412002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7742
7743 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7744 (store_inferior_registers): Use shnbsd_fill_reg.
7745 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7746 sh_nbsd_supply_register): Collapse into...
7747 (shnbsd_supply_reg): ...this.
7748 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7749 (shnbsd_fill_reg): ...this.
7750 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7751 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7752 (fetch_core_registers): Use shnbsd_supply_reg.
7753 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7754 (sh_nbsd_core_fns): Rename to...
7755 (shnbsd_core_fns): ...this.
7756 (sh_nbsd_elfcore_fns): Rename to...
7757 (shnbsd_elfcore_fns): ...this.
7758 (sh_nbsd_init_abi): Rename to...
7759 (shnbsd_init_abi): ...this.
7760 (_initialize_sh_nbsd_tdep): Rename to...
7761 (_initialize_shnbsd_tdep): ...this.
7762 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7763 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7764 sh_nbsd_fill_register): Remove prototypes.
7765 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7766
e750d25e
JT
77672002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7768
7769 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7770 (i387-nat.o): Delete dependency list.
7771 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7772 (x86-64-linux-nat.o): Likewise.
7773 * i387-nat.c: Delete file, moving contents to...
7774 * i387-tdep.c: ...here.
7775 * i387-nat.h: Rename...
7776 * i387-tdep.h: ...to this.
7777 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7778 * i386-linux-nat.c: Likewise.
7779 * i386bsd-nat.c: Likewise.
7780 * i386gnu-nat.c: Likewise.
7781 * i386nbsd-nat.c: Likewise.
7782 * i386v4-nat.c: Likewise.
7783 * x86-64-linux-nat.c: Likewise.
7784 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7785 * config/i386/go32.mh (NATDEPFILES): Likewise.
7786 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7787 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7788 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7789 * config/i386/linux.mh (NATDEPFILES): Likewise.
7790 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7791 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7792 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7793 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7794
1aee598a
JT
77952002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7796
7797 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7798 (alphanbsd-nat.o): Remove dependency list.
7799 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7800 * alphanbsd-nat.c: Delete. Contents moved to...
7801 * alphanbsd-tdep.c: ...here.
7802 (_initialize_alphanbsd_tdep): Register core functions.
7803 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7804
12bcb0fe
JT
78052002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7806
7807 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7808 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7809 (alphanbsd-nat.o): Likewise.
7810 (alphabsd-tdep.o): New dependency list.
7811 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7812 (fill_gregset): Use alphabsd_fill_reg.
7813 (supply_fpregset): Use alphabsd_supply_fpreg.
7814 (fill_fpregset): Use alphabsd_fill_fpreg.
7815 (fetch_inferior_registers): Use struct reg and struct fpreg
7816 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7817 and alphabsd_supply_fpreg.
7818 (store_inferior_registers): Use struct reg and struct fpreg
7819 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7820 and alphabsd_fill_fpreg.
7821 * alphabsd-tdep.c: New file.
7822 * alphabsd-tdep.h: New file.
7823 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7824 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7825 alphabsd_supply_fpreg.
7826 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7827 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7828
361d1df0
EC
78292002-05-11 Eric Christopher <echristo@redhat.com>
7830
7831 * mips-tdep.c (mips_double_register_type): Fix thinko.
7832 (mips_single_register_type): Ditto.
7833 * MAINTAINERS: Add self.
7834
92dd7cee
MK
78352002-05-11 Mark Kettenis <kettenis@gnu.org>
7836
7837 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7838 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7839 right thing on architectures with different endianness and/or
7840 integer sizes.
7841
e27da16d
JT
78422002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7843
7844 From Christian Limpach <chris@Pin.LU>
7845 * configure.in: Change sed expression which comments out
7846 NATDEPFILES to also comment out continuation lines.
7847 * configure: Regenerate.
7848
ddde02bd
EZ
78492002-05-10 Elena Zannoni <ezannoni@redhat.com>
7850
7851 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7852 big patch.
7853
1c922164
EZ
78542002-05-10 Elena Zannoni <ezannoni@redhat.com>
7855
7856 * sh-tdep.c: Include correct file.
7857
283150cd
EZ
78582002-05-10 Elena Zannoni <ezannoni@redhat.com>
7859
7860 New support for sh64-elf (sh5) target.
7861
7862 * configure.tgt: For sh64-elf target, default to sh-elf.
7863
7864 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7865 (struct gdbarch_tdep): Add new fields for new registers and ABI
7866 info.
361d1df0 7867
283150cd
EZ
7868 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7869 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7870 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7871 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7872 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7873 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7874 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7875 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7876 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7877 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7878 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7879 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7880 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7881 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7882 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7883 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7884 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7885 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7886 sign_extend, sh64_nofp_frame_init_saved_regs,
7887 sh64_init_extra_frame_info, sh64_get_saved_register,
7888 sh64_extract_struct_value_address, sh64_pop_frame,
7889 sh64_push_arguments, sh64_extract_return_value,
7890 sh64_store_return_value, sh64_show_media_regs,
7891 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7892 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7893 sh_sh64_register_virtual_type,
7894 sh_sh64_register_convert_to_virtual,
7895 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7896 sh64_register_read, sh64_pseudo_register_write,
7897 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7898 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7899 sh64_do_pseudo_register, sh_compact_do_registers_info,
7900 sh64_do_registers_info, sh_gdbarch_init): New functions.
7901
3117ed25
EZ
79022002-05-10 Elena Zannoni <ezannoni@redhat.com>
7903
7904 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7905
2654e6d4
DJ
79062002-05-10 Daniel Jacobowitz <drow@mvista.com>
7907
7908 * linespec.c (decode_line_1): Check for a double quote after
7909 a filename correctly.
7910
9ab3e532
JB
79112002-05-10 Jim Blandy <jimb@redhat.com>
7912
7913 Properly track the size of the current objfile's .debug_line section.
7914 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7915 (DWARF_LINE_SIZE): New macro.
7916 (dwarf2_build_psymtabs_hard): Record the line section's size in
7917 the partial symbol table.
7918 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7919 symbol table.
7920
126fa72d
PS
79212002-05-10 Petr Sorfa <petrs@caldera.com>
7922
7923 * ia64-tdep.c: Handle breakpoints on L instruction type
7924 in MLX instruction bundle by moving the breakpoint to
7925 the third slot (X instruction type) as L holds only data.
7926
1f077a3e
KB
79272002-05-10 Kevin Buettner <kevinb@redhat.com>
7928
7929 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7930 (process_one_symbol): Complain about discarding local symbols
7931 due to a misplaced N_LBRAC entry.
7932
8120c9d5 79332002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
7934
7935 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
7936 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7937 decrease the depth we are at, in the case of templates.
361d1df0 7938
67b2c998
DJ
79392002-05-09 Daniel Jacobowitz <drow@mvista.com>
7940
7941 * mips-tdep.c (mips_float_register_type): New function.
7942 (mips_double_register_type): New function.
7943 (mips_print_register): Use them.
7944 (do_fp_register_row): Likewise.
7945
fd326606
DJ
79462002-05-09 Daniel Jacobowitz <drow@mvista.com>
7947
6609d9af 7948 * signals/signals.c (signals): Remove conditional compilation around
fd326606 7949 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 7950 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 7951
bef35864
MS
79522002-05-09 Michael Snyder <msnyder@redhat.com>
7953
7954 * remote-rdp.c (remote_rdp_can_run): Remove.
7955
c55a3f73
TT
79562002-05-09 Tom Tromey <tromey@redhat.com>
7957
7958 * jv-valprint.c (java_val_print): Handle `char' as a special case
7959 of TYPE_CODE_INT.
7960
b8d5e71d
MS
79612002-05-09 Michael Snyder <msnyder@redhat.com>
7962
7963 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7964 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 7965 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 7966 str r(0123),[sp,#nn].
361d1df0 7967 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
7968 order-independent by placing it in a loop.
7969
e2cd42dd
MS
79702002-05-06 Michael Snyder <msnyder@redhat.com>
7971
7972 * stabsread.c (read_type): Add recognition for new attribute:
7973 "@V;" means that an array type is actually a vector.
7974 This is analogous to the vector flag that's been added to dwarf2.
7975
3ce1502b
MK
79762002-05-09 Mark Kettenis <kettenis@gnu.org>
7977
7978 * i386-tdep.h (i386_abi): New enum.
7979 (struct gdbarch_tdep): Replace os_ident member with abi.
7980 (i386_gdbarch_register_os_abi): New prototype.
7981 * i386-tdep.c (i386_abi_names): New array.
7982 (process_note_abi_tag_sections): Removed.
7983 (process_note_sections): New function.
7984 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7985 (struct i386_abi_handler): New struct.
7986 (i386_abi_handler_list): New variable.
7987 (i386_gdbarch_register_os_abi): New function.
7988 (i386_gdbarch_init): Adapt for the changes given above.
7989
084c156a
DJ
79902002-05-08 Daniel Jacobowitz <drow@mvista.com>
7991
7992 * gregset.h: Say "GNU/Linux".
7993
6599f021
EZ
79942002-05-08 Elena Zannoni <ezannoni@redhat.com>
7995
7996 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7997 (build_gdbtypes): Build builtin_type_v2_float.
7998 (_initialize_gdbtypes): Register new builtin type.
7999
40af4b0c
AC
80002002-05-08 Andrew Cagney <ac131313@redhat.com>
8001
8002 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8003 (clear_gdbarch_swap): New function.
8004 (initialize_non_multiarch): Call.
8005 (gdbarch_update_p): Before calling init(), swap out and clear the
8006 existing architecture.
8007 * gdbarch.c: Regenerate.
8008
4fe84f46
JT
80092002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8010
8011 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8012 alphanbsd-tdep.c.
8013
4015edd1
JT
80142002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8015
8016 * sh-nbsd-nat.c: Rename to...
8017 * shnbsd-nat.c: ...this.
8018 * sh-nbsd-tdep.c: Rename to...
8019 * shnbsd-tdep.c: ...this.
8020 * sh-nbsd-tdep.h: Rename to...
8021 * shnbsd-tdep.h: ...this.
8022 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8023 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8024
0e2bd219
RE
80252002-05-08 Richard Earnshaw <rearnsha@arm.com>
8026
8027 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8028 concatenation for command help messages.
8029
13a38d45
JT
80302002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8031
8032 * NEWS: Note new sh*-*-netbsdelf* configuration.
8033 * configure.host: Set gdb_host_cpu to sh for all sh*.
8034 (sh*-*-netbsdelf*): New host.
8035 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8036 (sh*-*-netbsdelf*): New target.
8037 * sh-nbsd-nat.c: New file.
8038 * sh-nbsd-tdep.c: New file.
8039 * sh-nbsd-tdep.h: New file.
8040 * config/sh/nbsd.mh: New file.
8041 * config/sh/nbsd.mt: New file.
8042 * config/sh/nm-nbsd.h: New file.
8043 * config/sh/tm-nbsd.h: New file.
8044
d658f924
JT
80452002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8046
8047 * sh-tdep.c (sh_osabi_names): Declare.
8048 (process_note_abi_tag_sections): New function.
8049 (get_elfosabi): Ditto.
8050 (sh_gdbarch_register_os_abi): Ditto.
8051 (sh_dump_tdep): Ditto.
8052 _initialize_sh_tdep): Use gdbarch_register to register
8053 sh_gdbarch_init and sh_dump_tdep.
8054 * config/sh/tm-sh.h (sh_osabi): Declare.
8055 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8056
848cfffb
AC
80572002-05-07 Andrew Cagney <ac131313@redhat.com>
8058
8059 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8060 (thumb_scan_prologue): Ditto.
8061 (arm_find_callers_reg): Ditto.
8062 (arm_frame_chain): Ditto.
8063 (arm_init_extra_frame_info): Ditto.
8064 (arm_frame_saved_pc): Ditto.
8065 (arm_pop_frame): Ditto.
8066 (arm_push_return_address): New function.
8067 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8068 call_dummy_location, call_dummy_breakpoint_offset_p,
8069 call_dummy_breakpoint_offset, call_dummy_p,
8070 call_dummy_stack_adjust_p, call_dummy_words,
8071 sizeof_call_dummy_words, call_dummy_start_offset,
8072 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8073 call_dummy_address, push_return_address and push_dummy_frame for
8074 generic dummy frames.
8075
e7d717c0
JT
80762002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8077
8078 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8079 size computation for alloca.
8080 (sh_fp_frame_init_saved_regs): Likewise.
8081
7bbcf283
RE
80822002-05-07 Richard Earnshaw <rearnsha@arm.com>
8083
8084 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8085 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 8086 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
8087 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8088 * remote-rdp.c (remote_rdp_fetch_register): Use
8089 ARM_MAX_REGISTER_RAW_SIZE.
8090 (remote_rdp_store_register): Likewise.
8091
4657573b
ML
80922002-05-07 Michal Ludvig <mludvig@suse.cz>
8093
361d1df0 8094 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
8095 added default labels to switch {} statements.
8096 * x86-64-tdep.c: Ditto.
8097 * x86-64-linux-nat.c: Ditto.
8098
010f3b2f
JT
80992002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8100
8101 * solib.h: Protect against multiple inclusion.
8102
debd256d
JB
81032002-05-06 Jim Blandy <jimb@redhat.com>
8104
9ab3e532
JB
8105 Add first preprocessor macro-expansion files.
8106 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8107 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8108 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8109 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8110 (COMMON_OBS): Add macrotab.o, macroexp.o.
8111 (macroexp.o, macrotab.o): New rules.
8112
debd256d
JB
8113 Separate the job of reading the line number info statement program
8114 header (...expialidocious) out into its own function.
8115 * dwarf2read.c (struct line_head, struct filenames, struct
8116 directories): Replace with...
8117 (struct line_header): New structure, containing the full
8118 contents of the statement program header, including the
8119 include directory and file name tables.
8120 (read_file_scope): If we have line number info, instead of just
8121 calling dwarf_decode_lines to do all the work, call
8122 dwarf_decode_line_header first to get a `struct line_header'
8123 containing the data in the statement program header, and then
8124 pass that to dwarf_decode_lines, which will pick up where that
8125 left off. Be sure to clean up the `struct line_header' object.
8126 (dwarf_decode_line_header, free_line_header, add_include_dir,
8127 add_file_name): New functions.
8128 (dwarf_decode_lines): Move all the code to read the statement
8129 program header into dwarf_decode_line_header. Take the line
8130 header it built as the first argument, instead of the offset to
8131 the compilation unit's line number info. Use the new `struct
8132 line_header' type instead of the old structures. No need to do
8133 cleanups here now, since we don't allocate anything.
8134 (dwarf2_statement_list_fits_in_line_number_section,
8135 dwarf2_line_header_too_long): New complaints.
8136
ac3aafc7
EZ
81372002-05-06 Elena Zannoni <ezannoni@redhat.com>
8138
8139 * gdbtypes.c (init_vector_type): New function.
8140 (build_builtin_type_vec128): Simplify the representation of SIMD
8141 registers.
8142 (build_gdbtypes): Initialize new builtin vector types.
8143 (_initialize_gdbtypes): Register new vector types with gdbarch.
8144 (builtin_type_v4_float, builtin_type_v4_int32,
8145 builtin_type_v8_int16, builtin_type_v16_int8,
8146 builtin_type_v2_int32, builtin_type_v4_int16,
8147 builtin_type_v8_int8): New (renamed) SIMD types.
8148
13e49980
MK
81492002-05-06 Mark Kettenis <kettenis@gnu.org>
8150
8151 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8152 (i387_fill_fxsave): Likewise.
8153
997b20b8
AO
81542002-05-05 Alexandre Oliva <aoliva@redhat.com>
8155
8156 * alpha-tdep.c (alpha_extract_return_value): Don't use
8157 non-constant array size in prototype.
8158
535c96ce
AC
81592002-05-04 Andrew Cagney <ac131313@redhat.com>
8160
8161 From Brian Taylor <briant at model dot com>:
8162 * ui-out.c (ui_out_field_core_addr): Use the function
8163 longest_local_hex_string_custom'to format addresses > 32 bits
8164 wide.
8165
8166 * ui-out.c (ui_out_field_core_addr): Update comment.
8167
bedfa57b
AC
81682002-05-04 Andrew Cagney <ac131313@redhat.com>
8169
8170 * stack.c (select_and_print_frame): Make static. Delete the
8171 parameter `level'.
8172 (func_command): Update call.
8173 (select_frame_command): Delete code computing the frame level.
8174 * frame.h (select_and_print_frame): Delete declaration.
8175
f621c63e
AC
81762002-05-04 Andrew Cagney <ac131313@redhat.com>
8177
8178 * sparc-tdep.c (sparc_get_saved_register): Comment why
8179 get_prev_frame call is safe.
8180
0f7d239c
AC
81812002-05-04 Andrew Cagney <ac131313@redhat.com>
8182
8183 * frame.h (select_frame): Delete level parameter.
8184 * stack.c (select_frame): Update. Use frame_relative_level to
8185 obtain the frame's level.
8186 (select_and_print_frame): Update call.
8187 (select_frame_command): Ditto.
8188 (up_silently_base): Ditto.
8189 (down_silently_base): Ditto.
8190 * ocd.c (ocd_start_remote): Ditto.
8191 * remote-rdp.c (remote_rdp_open): Ditto.
8192 * remote-mips.c (mips_initialize): Ditto.
8193 (common_open): Ditto.
8194 * remote-e7000.c (e7000_start_remote): Ditto.
8195 * m3-nat.c (select_thread): Ditto.
8196 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8197 (child_get_current_exception_event): Ditto.
8198 * varobj.c (varobj_create): Ditto.
8199 (varobj_update): Ditto.
8200 (c_value_of_root): Ditto.
8201 * tracepoint.c (finish_tfind_command): Ditto.
8202 * corelow.c (core_open): Ditto.
8203 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8204 * thread.c (info_threads_command): Ditto.
8205 (switch_to_thread): Ditto.
8206 * infrun.c (normal_stop): Ditto.
8207 (restore_selected_frame): Ditto.
8208 (restore_inferior_status): Ditto.
8209 * breakpoint.c (insert_breakpoints): Ditto.
8210 (watchpoint_check): Ditto.
8211 (bpstat_stop_status): Ditto.
8212 (do_enable_breakpoint): Ditto.
8213 * blockframe.c (flush_cached_frames): Ditto.
8214 (reinit_frame_cache): Ditto.
8215
71d6c7b1
AC
82162002-05-04 Andrew Cagney <ac131313@redhat.com>
8217
8218 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8219 maintainer.
8220
cda6c68a
JB
82212002-05-04 Jim Blandy <jimb@redhat.com>
8222
8223 * gdbtypes.c (replace_type): Doc fix.
8224
5c1c87f0
AC
82252002-05-04 Andrew Cagney <ac131313@redhat.com>
8226
8227 * valprint.c (strcat_longest): Delete commented out function.
8228 Update copyright.
8229
cd9bfe15
AC
82302002-05-04 Andrew Cagney <ac131313@redhat.com>
8231
8232 * MAINTAINERS: Mark a29k as deleted.
8233 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8234 Move new configurations to the top.
8235 * configure.tgt: Remove a29k.
8236 * config/a29k/tm-vx29k.h: Delete.
8237 * config/a29k/vx29k.mt: Delete.
8238 * config/a29k/tm-a29k.h: Delete.
8239 * config/a29k/a29k-udi.mt: Delete.
8240 * config/a29k/a29k.mt: Delete.
8241 * a29k-tdep.c: Delete.
8242 * remote-udi.c: Delete.
8243 * remote-mm.c: Delete.
8244 * remote-eb.c: Delete.
8245 * remote-adapt.c: Delete.
8246 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
8247 * config/s390/s390x.mt: Ditto.
8248 * config/s390/s390.mt: Ditto.
8249 * config/sparc/sparclynx.mh: Ditto.
8250 * config/sparc/linux.mh: Ditto.
8251 * config/pa/hppaosf.mh: Ditto.
8252 * config/pa/hppabsd.mh: Ditto.
8253 * config/ns32k/nbsd.mt: Ditto.
8254 * config/mips/vr5000.mt: Ditto.
8255 * config/m68k/sun3os4.mh: Ditto.
8256 * config/m68k/nbsd.mt: Ditto.
8257 * config/m68k/m68klynx.mh: Ditto.
8258 * config/m32r/m32r.mt: Ditto.
8259 * config/i386/x86-64linux.mt: Ditto.
8260 * config/i386/nbsdelf.mt: Ditto.
8261 * config/i386/nbsd.mt: Ditto.
8262 * config/i386/i386lynx.mh: Ditto.
8263
bf0c5130
AC
82642002-05-04 Andrew Cagney <ac131313@redhat.com>
8265
8266 * target.c (debug_print_register): New function. Handle oversize
8267 registers.
8268 (debug_to_fetch_registers): Call.
8269 (debug_to_store_registers): Call.
8270
2ae1c2d2
JB
82712002-05-03 Jim Blandy <jimb@redhat.com>
8272
13a393b0
JB
8273 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8274 (read_type): Doc fix.
8275 * gdbtypes.c (replace_type): Doc fix.
8276
2ae1c2d2
JB
8277 * stabsread.c (multiply_defined_struct): New complaint.
8278 (read_struct_type): If the type we were passed isn't empty, or
8279 incomplete, don't read the new struct type into it; complain,
8280 and return the original type unchanged. Take a new `type_code'
8281 argument, which is the type code for the new type.
8282 (read_type): Rather than storing the type's type code here, pass
8283 it as an argument to read_struct_type, and let that take care of
8284 storing it. That way, we don't overwrite the original type code,
8285 so read_struct_type can use it to decide whether we're overwriting
8286 something we shouldn't.
8287 (complain_about_struct_wipeout): New function.
8288
8de9bdc4
AC
82892002-05-03 Andrew Cagney <ac131313@redhat.com>
8290
8291 * gdbarch.sh: Assert that gdbarch is non-NULL.
8292 * gdbarch.c: Regenerate.
8293
f773fdbb
JM
82942002-05-03 Jason Merrill <jason@redhat.com>
8295
8296 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8297 and return NULL.
8298
0e04a514
ML
82992002-05-03 Michal Ludvig <mludvig@suse.cz>
8300
8301 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8302 (x86_64_dwarf2gdb_regno_map_length),
8303 (x86_64_dwarf2_reg_to_regnum): Added.
8304 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8305 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8306 (_initialize_x86_64_tdep): Synced with the change above.
8307 (x86_64_skip_prologue): Reformulated message.
8308
065432a8
PM
83092002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8310
8311 * f-exp.y: Also use new prev_lexptr variable
8312 to improve error reporting. Based on Michael Snyder
8313 2002-04-24 dated patch to c-exp.y.
8314 * jv-exp.y: Likewise.
8315 * m2-exp.y: Likewise.
8316
a3162708
EZ
83172002-05-02 Elena Zannoni <ezannoni@redhat.com>
8318
8319 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8320 we are dealing with vectors.
8321
03620c38
PM
83222002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8323
8324 * config/m68k/tm-nbsd.h: Obvious fix,
8325 correct machine name.
8326
6604db2e
PM
83272002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8328
8329 * p-typeprint.c (pascal_type_print_base): Add support
8330 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8331
0906b739
PM
83322002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8333
8334 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8335 for fondamental pascal 'char' type.
8336
e2625b33
PM
83372002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8338
8339 * p-lang.h (is_pascal_string_type): Declaration changed,
8340 new sixth argument of type char ** added.
361d1df0 8341 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
8342 changed. Args length_pos, length_size, string_pos, char_size
8343 can now be NULL. New argument arrayname set to the field
8344 name of the char array. Return value set to char array
8345 field index plus one.
361d1df0 8346 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
8347 is_pascal_string_type function.
8348
cf17c188
AC
83492002-05-02 Andrew Cagney <cagney@redhat.com>
8350
8351 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8352 <cagney@redhat.com> change.
8353 * gdbarch.c: Regenerate.
8354
52bca491
AC
83552002-05-02 Andrew Cagney <cagney@redhat.com>
8356
8357 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8358 before probing for a new one. Detect errorenous gdbarch_init
8359 functions.
8360 * gdbarch.c: Regenerate.
8361
d5e72505
AC
83622002-05-01 Andrew Cagney <cagney@redhat.com>
8363
8364 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8365 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8366 * config/v850/tm-v850.h: Ditto. Update copyright.
8367
af566d9f
AC
83682002-04-30 Andrew Cagney <ac131313@redhat.com>
8369
8370 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8371 current_gdbarch.
8372
880d85fa
MS
83732002-04-30 Michael Snyder <msnyder@redhat.com>
8374
94c30b78
MS
8375 * arm-tdep.c: Whitespace clean-ups.
8376 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
8377 should have been removed as part of 4/24 change.
8378
6f5987a6
KB
83792002-04-30 Kevin Buettner <kevinb@redhat.com>
8380
8381 * rs6000-tdep.c: Added comment describing how fpscr register
8382 numbers were chosen.
8383
1a113c93
MS
83842002-04-30 Michael Snyder <msnyder@redhat.com>
8385
8386 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8387
9a6f53fe
EZ
83882002-04-29 Elena Zannoni <ezannoni@redhat.com>
8389
8390 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8391 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8392 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8393
11ed25ac
KB
83942002-04-29 Kevin Buettner <kevinb@redhat.com>
8395
8396 From Louis Hamilton <hamilton@redhat.com>:
8397 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8398 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8399 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8400 not bfd-private xcoff data, to determine wordsize.
8401 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8402
ae232405
AC
84032002-04-29 Andrew Cagney <ac131313@redhat.com>
8404
8405 GDB 5.2 released from 5.2 branch.
8406
91fd20f7
ML
84072002-04-29 Michal Ludvig <mludvig@suse.cz>
8408
8409 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8410 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8411 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 8412
2dc5091b
EZ
84132002-04-29 Elena Zannoni <ezannoni@redhat.com>
8414
8415 * rs6000-tdep.c (rs6000_extract_return_value,
8416 rs6000_store_return_value): Handle returning vectors.
8417 (rs6000_gdbarch_init): Use
8418 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8419 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8420 New function.
8421 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8422 vectors.
8423 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8424 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 8425
2b9848d8
PM
84262002-04-24 Pierre Muller <ics.u-strasbg.fr>
8427
8428 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 8429 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
8430 with fprintf_unfiltered (gdb_stderr,...).
8431
f8d17dc5
PM
84322002-04-24 Pierre Muller <ics.u-strasbg.fr>
8433
8434 * remote-array.c (printf_monitor, write_monitor,
361d1df0 8435 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
8436 Replace fprintf (stderr,...
8437 with fprintf_unfiltered (gdb_stderr,....
8438 * remote-es.c: Likewise.
8439 * remote-os9k.c: Likewise.
8440 * remote-st.c: Likewise.
8441
2f2f1ad1
AS
84422002-04-28 Andreas Schwab <schwab@suse.de>
8443
8444 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8445 linux-proc.o and gcore.o.
8446
b6779aa2
AC
84472002-04-26 Michal Ludvig <mludvig@suse.cz>
8448
8449 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8450 code without frame pointers.
8451
7e57f5f4
AC
84522002-04-26 Andrew Cagney <ac131313@redhat.com>
8453
8454 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8455 ON_STACK is needed.
8456
2ceb85d0
BE
84572002-04-26 Ben Elliston <bje@redhat.com>
8458
8459 * target.c (do_xfer_memory): Correct reference to the new option
8460 "trust-readonly-sections".
8461
f5f8a009
EZ
84622002-04-26 Elena Zannoni <ezannoni@redhat.com>
8463
8464 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8465 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8466 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8467 vectors.
8468 (read_array_type): Record the fact that this array type is really a
8469 vector (i.e. are passed in by value).
8470
5868c862
JT
84712002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8472
8473 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8474 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8475 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8476 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8477 * alpha-linux-tdep.c: Include frame.h.
8478 (alpha_linux_sigcontext_addr): New function.
8479 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8480 alpha_linux_sigcontext_addr.
8481 * alpha-osf1-tdep.c: Include gdbcore.h.
8482 (alpha_osf1_sigcontext_addr): New function.
8483 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8484 alpha_osf1_sigcontext_addr.
8485 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8486 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8487
bfb01f37
AC
84882002-04-26 Andrew Cagney <ac131313@redhat.com>
8489
361d1df0 8490 * stack.c (selected_frame_level):
bfb01f37
AC
8491 (select_frame): Do not set selected_frame_level.
8492 * frame.h (selected_frame_level): Delete declaration.
8493
15813d3f
AC
84942002-04-26 Andrew Cagney <ac131313@redhat.com>
8495
8496 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8497 convert_from_func_ptr-addr when AIX / PowerOpen.
8498
6096c27a
AC
84992002-04-25 Andrew Cagney <ac131313@redhat.com>
8500
8501 * valops.c (hand_function_call): Call
8502 generic_save_call_dummy_addr.
8503 * frame.h (generic_save_call_dummy_addr): Declare.
8504 * blockframe.c (struct dummy_frame): Add fields call_lo and
8505 call_hi.
8506 (generic_find_dummy_frame): Check for PC in range call_lo to
8507 call_hi instead of entry_point_address.
8508 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8509 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8510 (generic_save_call_dummy_addr): New function.
8511
f510d44e
DM
85122002-04-24 David S. Miller <davem@redhat.com>
8513
8514 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8515 sparc_skip_prologue.
8516 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8517 information to find prologue when possible.
8518 (sparc_prologue_frameless_p): Call examine_prologue directly.
8519 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8520 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8521 second argument.
8522 (SKIP_PROLOGUE): Likewise.
8523
15d72a92
JT
85242002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8525
8526 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8527 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8528 indicate that the condition it was testing is always true.
8529 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8530 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8531 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8532
accc6d1f
JT
85332002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8534
8535 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8536 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8537 tdep->jb_pc and tdep->jb_elt_size.
8538 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8539 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8540 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8541 * alpha-nat.c (get_longjmp_target): Remove.
8542 (JB_ELEMENT_SIZE): Ditto.
8543 (JB_PC): Ditto.
8544 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8545 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8546 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8547 to alpha_get_longjmp_target.
8548 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8549 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8550 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8551
1bfdc549
AC
85522002-04-25 Andrew Cagney <ac131313@redhat.com>
8553
8554 * README: Update to GDB 5.2.
8555
1bd316f0
AC
85562002-04-25 Andrew Cagney <ac131313@redhat.com>
8557
8558 * gdbarch.sh (LC_ALL): Set to `c'.
8559
2e5ff58c
TR
85602002-04-25 Theodore A. Roth <troth@verinet.com>
8561
8562 * avr-tdep.c: Ran through gdb_indent.sh.
8563
e33ce519
TR
85642002-04-25 Theodore A. Roth <troth@verinet.com>
8565
8566 * MAINTAINERS: Add myself as AVR maintainer.
8567 * NEWS: Note new target avr.
8568
8818c391
TR
85692002-04-25 Theodore A. Roth <troth@verinet.com>
8570
8571 * Makefile.in: Add support for AVR target.
8572 * configure.tgt: Add support for AVR target.
8573 * avr-tdep.c: New file
8574 * config/avr/avr.mt: New file.
8575
79509c2d
TR
85762002-04-25 Theodore A. Roth <troth@verinet.com>
8577
8578 * MAINTAINERS: Add myself to write-after-approval.
8579
dac8068e
PM
85802002-04-24 Pierre Muller <ics.u-strasbg.fr>
8581
8582 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8583 with fprintf_unfiltered (gdb_stderr,....
8584
25bf3106
PM
85852002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8586
8587 Fix PR gdb/508.
8588 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8589
24467a86
PM
85902002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8591
8592 * p-exp.y: Also use new prev_lexptr variable
8593 to improve error reporting. Based on Michael Snyder
8594 2002-04-24 dated patch to c-exp.y.
8595
95b80706
JT
85962002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8597
8598 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8599 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8600 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8601 to 0.
8602 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8603 and struct value.
8604 (FUNCTION_START_OFFSET): Remove.
8605 (BREAKPOINT): Ditto.
8606
e90cc612
JT
86072002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8608
8609 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8610 * NEWS: Ditto.
8611
6c72f9f9
JT
86122002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8613
8614 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8615 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8616 alpha_linux_pc_in_sigtramp.
8617 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8618 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8619 alpha_osf1_pc_in_sigtramp.
8620 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8621 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8622 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8623 alphafbsd_pc_in_sigtramp.
8624 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8625 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8626 alphanbsd_pc_in_sigtramp.
8627 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8628 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8629
5e4f3379
JT
86302002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8631
8632 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8633
da8ca43d
JT
86342002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8635
8636 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8637 alphanbsd-tdep.c.
8638 (alphanbsd-nat.o): New dependency list.
8639 (alphanbsd-tdep.o): Ditto.
8640 * NEWS: Note new native NetBSD/alpha configuration.
8641 * alphanbsd-nat.c: New file.
8642 * alphanbsd-tdep.c: Ditto.
8643 * configure.host (alpha*-*-netbsd*): New host.
8644 * configure.tgt (alpha*-*-netbsd*): New target.
8645 * config/alpha/nbsd.mh: New file.
8646 * config/alpha/nbsd.mt: Ditto.
8647 * config/alpha/nm-nbsd.h: Ditto.
8648 * config/alpha/tm-nbsd.h: Ditto.
8649
36a6271d
JT
86502002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8651
8652 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8653 (alpha-osf1-tdep.o): New dependency list.
8654 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8655 and skip_sigtramp_frame members.
8656 * alpha-linux-tdep.c: Include gdbcore.h.
8657 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8658 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8659 * alpha-osf1-tdep.c: New file.
8660 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8661 alpha-osf1-dep.c.
8662 (alpha_frame_past_sigtramp_frame): New function.
8663 (alpha_dynamic_sigtramp_offset): Ditto.
8664 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8665 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8666 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8667 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8668 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8669 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8670 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8671 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8672 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8673 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8674 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8675 to find_solib_trampoline_target.
8676 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8677 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8678 (SKIP_TRAMPOLINE_CODE): Remove.
8679 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8680 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8681 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8682 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8683 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8684 (PROC_SIGTRAMP_MAGIC): Ditto.
8685 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8686 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8687 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8688 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8689 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8690
2f4bc57b
JT
86912002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8692
8693 * NEWS: Note that Alpha targets are now multi-arch.
8694
665132f9
MS
86952002-04-24 Michael Snyder <msnyder@redhat.com>
8696
8697 * parser-defs.h (prev_lexptr): New external variable.
8698 * parse.c (parse_exp_1): Set prev_lexptr to null before
8699 calling the language-specific parser.
8700 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8701 (yyerror): Use prev_lexptr in error reporting.
8702
32872fa7
DJ
87032002-04-24 Daniel Jacobowitz <drow@mvista.com>
8704
8705 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8706 * gregset.h: If FILL_FPXREGSET is defined, provide
8707 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8708 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8709 is defined, call fill_fpxregset.
8710
57e76fac
MS
87112002-04-24 Roland McGrath <roland@frob.com>
8712
8713 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8714 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8715 (supply_gregset, supply_fpregset): New functions.
8716
8717 * gnu-nat.c (gnu_find_memory_regions): New function.
8718 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8719 (gnu_xfer_memory): Add a cast.
8720
f43845b3
MS
87212002-04-24 Michael Snyder <msnyder@redhat.com>
8722
361d1df0 8723 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
8724 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8725 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 8726 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
8727 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8728 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8729
a0abec03
AC
8730Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8731
8732 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8733 NUM_PSEUDO_REGS can be used.
8734
d7bd68ca
AC
87352002-04-24 Andrew Cagney <ac131313@redhat.com>
8736
8737 * arch-utils.h: Update copyright.
8738
8739 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8740 * gdbarch.h, gdbarch.c: Re-generate.
8741
8742 * inferior.h (IN_SIGTRAMP): Delete definition.
8743 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8744 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8745
8746 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8747 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8748 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8749 (find_proc_framesize): Ditto.
8750 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8751 (alpha_init_extra_frame_info): Ditto.
8752 * infrun.c (handle_inferior_event): Ditto.
8753 (handle_inferior_event): Ditto.
8754 (check_sigtramp2): Ditto.
8755 * blockframe.c (create_new_frame): Ditto.
8756 (get_prev_frame): Ditto.
8757 * ppc-linux-tdep.c: Update comments.
8758 * i386-linux-tdep.c: Update comments.
8759 * breakpoint.c (bpstat_what): Update comment.
8760
4867e41e
DM
87612002-04-24 David S. Miller <davem@redhat.com>
8762
21d83aa5
DM
8763 * i960-tdep.c (register_in_window_p): New function.
8764 (i960_find_saved_register): Use it instead of
8765 REGISTER_IN_WINDOW_P.
8766 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8767
4867e41e
DM
8768 * symtab.h (find_stab_function_addr): Kill extern.
8769 * minsyms.c (find_stab_function_addr): Remove from here...
8770 * dbxread.c: ... to here, and mark it static.
8771
69cdf6a2
DM
87722002-04-20 David S. Miller <davem@redhat.com>
8773
8774 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8775 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8776
5a595886
DM
87772002-04-21 David S. Miller <davem@redhat.com>
8778
8779 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8780 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8781 (vx_write_register): Likewise.
8782
1da1a192
JB
87832002-04-23 J. Brobecker <brobecker@gnat.com>
8784
8785 * source.c (is_regular_file): New function.
8786 (openp): Check wether file to open is a regular file
8787 to avoid opening directories.
8788
baa6f10b
JT
87892002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8790
8791 * findvar.c (extract_signed_integer): Cast printf argument
8792 to suppress format warning.
8793 (extract_unsigned_integer): Likewise.
8794 * infcmd.c (registers_info): Likewise.
8795 * top.c (get_prompt_1): Likewise.
8796 * valops.c (value_assign): Likewise.
8797 * valprint.c (print_decimal): Likewise.
8798
b2c4da81
L
87992002-04-22 H.J. Lu (hjl@gnu.org)
8800
8801 * c-exp.y (typebase): Support
361d1df0 8802
b2c4da81
L
8803 [long|long long|short] [signed|unsigned] [int|]
8804
8805 and
8806
8807 signed [long|long long|short] int
8808
f267bd6a
JT
88092002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8810
8811 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8812 and vax-tdep.h.
8813 * vax-tdep.h: New file.
8814 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8815 Make several routines static.
8816 (vax_get_saved_register): New function.
8817 (vax_gdbarch_init): New function.
8818 (_initialize_vax_tdep): Register vax_gdbarch_init.
8819 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8820 Remove macros now under the control of gdbarch.
8821
da3c6d4a
MS
88222002-04-22 Michael Snyder <msnyder@redhat.com>
8823
11d3b27d
MS
8824 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8825 Some whitespace and coding standards tweaks.
da3c6d4a 8826
a33f7558
JT
88272002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8828
8829 * vax-tdep.c: Include regcache.h.
8830 (vax_call_dummy_words): New.
8831 (sizeof_vax_call_dummy_words): New.
8832 (vax_fix_call_dummy): New function.
8833 (vax_saved_pc_after_call): Ditto.
8834 * config/vax/tm-vax.h: Don't include regcache.h.
8835 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8836 (CALL_DUMMY): Remove.
8837 (CALL_DUMMY_WORDS): Define.
8838 (SIZEOF_CALL_DUMMY_WORDS): Define.
8839 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8840
47a73475
MS
88412002-04-18 Michael Snyder <msnyder@redhat.com>
8842
8843 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8844
52efde73
JT
88452002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8846
8847 * vax-tdep.c (vax_frame_chain): New function.
8848 (vax_push_dummy_frame): Ditto.
8849 (vax_pop_frame): Ditto.
8850 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8851 (FRAMELESS_FUNCTION_INVOCATION): Use
8852 generic_frameless_function_invocation_not.
8853 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8854 (POP_FRAME): Use vax_pop_frame.
8855
ea74468c
JT
88562002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8857
8858 * vax-tdep.c (vax_store_struct_return): New function.
8859 (vax_extract_return_value): Ditto.
8860 (vax_store_return_value): Ditto.
8861 (vax_extract_struct_value_address): Ditto.
8862 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8863 vax_store_struct_return.
8864 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8865 (STORE_RETURN_VALUE): Use vax_store_return_value.
8866 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8867
5516aa92
JT
88682002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8869
8870 * vax-tdep.c (vax_frame_saved_pc): New function.
8871 (vax_frame_args_address_correct): Ditto.
8872 (vax_frame_args_address): Ditto.
8873 (vax_frame_locals_address): Ditto.
8874 (vax_frame_num_args): Move code to be in proximity to
8875 other frame-related functions.
8876 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8877 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8878 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8879 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8880 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8881
36af0b35
L
88822002-04-22 H.J. Lu (hjl@gnu.org)
8883
8884 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8885 includedir.
8886
ab62c900
JT
88872002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8888
8889 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8890 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8891 (FRAME_INIT_SAVED_REGS): New macro.
8892
7232b100
JT
88932002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8894
8895 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8896
b70d2aee
JT
88972002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8898
8899 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8900 where needed.
8901 (fetch_osf_core_registers): Likewise.
8902 (supply_gregset): Likewise.
8903
a0e8a2d1 89042002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 8905
a0e8a2d1
JB
8906 * symfile.h (get_section_index): Define.
8907 * symfile.c (get_section_index): New function.
8908 * mdebugread.c (SC_IS_SBSS): New macro.
8909 (SC_IS_BSS): Return true for the scBss storage class only, as
8910 the scSBss storage class refers to the .sbss section.
8911 (parse_partial_symbols): Discard the symbols which associated
8912 section does not exist.
8913 Make sure to use the .sbss section index for symbols which
8914 storage class is scBss, rather than using the .bss section index.
8915
51eb8b08
JT
89162002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8917
8918 * vax-tdep.c: Update copyright years.
8919 (vax_register_name): New function.
8920 (vax_register_byte): Ditto.
8921 (vax_register_raw_size): Ditto.
8922 (vax_register_virtual_size): Ditto.
8923 (vax_register_virtual_type): Ditto.
8924 * config/vax/tm-vax.h: Update copyright years.
8925 (REGISTER_NAMES): Remove.
8926 (REGISTER_NAME): Define.
8927 (REGISTER_BYTE): Use vax_register_byte.
8928 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8929 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8930 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8931
6cc1c0a8
AC
89322002-04-21 Andrew Cagney <ac131313@redhat.com>
8933
8934 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8935 declaration
8936 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8937
9319a2fe
DM
89382002-04-21 David S. Miller <davem@redhat.com>
8939
8940 * arch-utils.c (generic_prologue_frameless_p): Kill
8941 SKIP_PROLOGUE_FRAMELESS_P code.
8942 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8943 references.
8944 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8945 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8946 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8947 references.
8948 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8949 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8950 (sparc_gdbarch_init): Pass it to
8951 set_gdbarch_prologue_frameless_p.
a0e8a2d1 8952
e9ed6d01
JT
89532002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8954
8955 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8956 (alphabsd-nat.o): New dependency list.
8957
36012033
JT
89582002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8959
8960 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8961 alphafbsd-tdep.c.
8962 (alpha-linux-tdep.o): New dependency list.
8963 (alphafbsd-tdep.o): Likewise.
8964
3379287a
JT
89652002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8966
8967 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8968 to here...
8969 * alpha-tdep.c: ...from here.
8970 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8971
4bcbd6cb
JT
89722002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8973
8974 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8975 prototype from here...
8976 * alpha-tdep.h: ...to here.
8977
b31da25e
AC
89782002-04-21 Andrew Cagney <ac131313@redhat.com>
8979
8980 * frame.h (selected_frame_level): Document as deprecated.
8981 (frame_relative_level): Declare.
8982 * stack.c (frame_relative_level): New function.
8983 (selected_frame_level): Document as deprecated.
8984 (select_frame): Do not set the selected_frame_level.
8985
8986 * stack.c (frame_info, record_selected_frame): Update.
8987 (frame_command, current_frame_command): Update.
8988 (up_silently_base, up_command, down_silently_base): Update.
8989 (down_command): Update.
8990 * inflow.c (kill_command): Update.
8991 * tracepoint.c (finish_tfind_command): Update.
8992 * corelow.c (core_open): Update.
8993 * thread.c (info_threads_command): Update.
8994 (do_captured_thread_select): Update.
8995 * infcmd.c (finish_command): Update.
8996 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8997
9c1d6fe5
JT
89982002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8999
9000 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9001
ab89facf
AC
90022002-04-21 Andrew Cagney <ac131313@redhat.com>
9003
9004 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9005 type const.
9006
82a4efa1
JT
90072002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9008
9009 * alphafbsd-tdep.c: Update copyright years. Include
9010 alpha-tdep.h.
9011 (alphafbsd_use_struct_convention): Make static.
9012 (alphafbsd_init_abi): New function.
9013 (_initialize_alphafbsd_tdep): New function.
9014 * config/alpha/tm-fbsd.h: Update copyright years.
9015 (USE_STRUCT_CONVENTION): Remove.
9016
44dffaac
JT
90172002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9018
9019 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9020 an Alpha ABI variant.
9021 (alpha_abi_handler_list): Declare.
9022 (alpha_gdbarch_register_os_abi): New function.
9023 (alpha_gdbarch_init): Give registered ABI variant handlers a
9024 chance to tweak the gdbarch once we have set up defaults.
9025 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9026
65585be4
JT
90272002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9028
9029 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9030 to standard_coerce_float_to_double.
9031 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9032
d9b023cc
JT
90332002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9034
9035 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9036 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9037 from gdbarch_tdep rather than a constant.
9038 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9039 the default text address for all Alpha Unix ABIs.
9040 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9041 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9042
dc129d82
JT
90432002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9044
9045 * alpha-tdep.h: New file. Includes several Alpha target constants
9046 taken from...
9047 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9048 let gdbarch deal with.
9049 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9050 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9051 to dependency list.
9052 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9053 Alpha target register names.
9054 * alphabsd-nat.c: Likewise.
9055 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9056 Alpha target register names. Make serveral routines static.
9057 (alpha_get_saved_register): New function.
9058 (alpha_abi_names): New.
9059 (process_note_abi_tag_sections): New function.
9060 (get_elfosabi): New function.
9061 (alpha_gdbarch_init): New function.
9062 (alpha_dump_tdep): New function.
9063 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9064
d49d1e0a
AC
90652002-04-21 Andrew Cagney <ac131313@redhat.com>
9066
9067 * frame.c (find_saved_register): Delete #ifdef
9068 HAVE_REGISTER_WINDOWS code.
9069 * config/sparc/tm-sparc.h: Update comments.
9070 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9071
92e8c9ed
AC
90722002-04-21 Andrew Cagney <ac131313@redhat.com>
9073
9074 * i960-tdep.c (i960_find_saved_register): New function.
9075 (i960_get_saved_register): New function.
9076 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9077 (i960_get_saved_register): Declare.
9078 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9079
e1925118
DM
90802002-04-20 David S. Miller <davem@redhat.com>
9081
9082 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9083
29673b29
AC
90842002-04-20 Andrew Cagney <ac131313@redhat.com>
9085
9086 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9087 instead of NUM_PSEUDO_REGS.
9088
6c86dcd5
DM
90892002-04-20 David S. Miller <davem@redhat.com>
9090
9091 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9092 GDB_MULTI_ARCH_PARTIAL
9093 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9094 define, let tm-sp64.h do it.
9095
aa40ec90
JT
90962002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9097
9098 * frame.c (find_saved_register): Avoid a NULL pointer
9099 dereference and actually walk the frame list.
9100
0f79675b
AC
91012002-04-20 Andrew Cagney <ac131313@redhat.com>
9102
9103 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9104 sorted in most most-recent-used order. Document.
9105 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9106
f91305dd 91072002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
9108
9109 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9110 instead of ->prev.
9111 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9112 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9113 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9114 instead of ->prev.
9115
73d322b1
EZ
91162002-04-19 Elena Zannoni <ezannoni@redhat.com>
9117
9118 Fix PR gdb/471.
9119 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9120 (build_builtin_type_vec128): Ditto.
9121 (append_composite_type_field): Fix calculation of type length in
9122 union case.
9123
ccd9a834
EZ
91242002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9125
9126 * config/djgpp/README: Update.
9127
9128 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9129 compiler warnings.
9130
a57f9e49
JT
91312002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9132
9133 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9134 (alpha_setup_arbitrary_frame): ...to this.
9135 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9136 for alpha_setup_arbitrary_frame.
9137
f4f9705a
AC
91382002-04-18 Andrew Cagney <cagney@redhat.com>
9139
9140 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9141 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9142
f4f9705a
AC
9143 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9144 * target.h (memory_breakpoint_from_pc): Update declaration.
9145 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9146
9147 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9148 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9149 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9150 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9151 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9152 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9153 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9154 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9155 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9156 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9157 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9158 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9159
9160 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9161 const pointer.
9162 * monitor.c (monitor_insert_breakpoint): Ditto.
9163 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9164
9165 * config/mcore/tm-mcore.h: Update copyright.
9166 * mem-break.c: Ditto.
9167 * xstormy16-tdep.c: Ditto.
9168
29f319b8
PM
91692002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9170
9171 * p-exp.y: Add precedence rule for '^' token.
9172 This removes the shift/reduce conflicts.
9173 Remove the comment concerning these shift/reduce conflicts.
9174
ebeac11a
EZ
91752002-04-18 Elena Zannoni <ezannoni@redhat.com>
9176
9177 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9178 (registers_powerpc_nofp): New register set for processors
9179 without floating point unit.
9180
27c31547
DM
91812002-04-18 David S. Miller <davem@redhat.com>
9182
9183 * MAINTAINERS: Add myself to write-after-approval.
9184
47a73475
MS
91852002-04-17 Michael Snyder <msnyder@redhat.com>
9186
9187 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9188
953836b2
AC
91892002-04-17 Andrew Cagney <ac131313@redhat.com>
9190
9191 * rs6000-tdep.c (frame_initial_stack_address): Use
9192 frame_register_read to read the alloca_reg.
9193
8b0d4340
AC
91942002-04-17 Andrew Cagney <ac131313@redhat.com>
9195
9196 * frame.c (find_saved_register): Find saved registers in the next
9197 not prev frame.
9198 Fix PR gdb/365.
9199
d8864532
AC
92002002-04-17 Andrew Cagney <ac131313@redhat.com>
9201
9202 * gdbarch.sh (LANG): Set to ``c''.
9203
36cc83a3 92042002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 9205
36cc83a3 9206 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 9207
2f4150cc 92082002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
9209
9210 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9211 Update copyright.
9212
628703c6 9213 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 9214 Also fix PR gdb/391.
361d1df0 9215
56157b4a
AC
92162002-04-14 Andrew Cagney <ac131313@redhat.com>
9217
9218 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9219 * aclocal.m4, configure: Re-generate.
9220 Fix PR gdb/391.
361d1df0 9221
6d1e3329
EZ
92222002-04-14 Elena Zannoni <ezannoni@redhat.com>
9223
9224 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9225 instead of tm_print_insn.
9226
cb06fa07
EZ
92272002-04-14 Elena Zannoni <ezannoni@redhat.com>
9228
9229 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9230
f208ba17
AC
92312002-04-14 Andrew Cagney <ac131313@redhat.com>
9232
9233 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9234 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9235 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9236
20f01a46
DH
92372002-04-12 Don Howard <dhoward@redhat.com>
9238
9239 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9240 max_user_call_depth.
9241 (init_cmd_lists): Initialize the new value;
9242 * cli/cli-script.c (execute_user_command): Limit the call depth of
9243 user defined commands. This avoids a core-dump when user commands
9244 are infinitly recursive.
9245
a88376a3
KB
92462002-04-12 Kevin Buettner <kevinb@redhat.com>
9247
9248 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9249 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9250 from tdep struct instead of DEFAULT_LR_SAVE.
9251 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9252 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9253 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9254
f2172603
MS
92552002-04-12 Michael Snyder <msnyder@redhat.com>
9256
694f61fb 9257 * Remote.c: Spelling fix.
20fe79c8
MS
9258 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9259 If no symbol found for "sbrk", try "_sbrk".
9260 (make_output_phdrs): Use bfd_section_name.
9261 (gcore_copy_callback): Use bfd_section_name.
62995fc4 9262 * eval.c: Indentation fix-ups.
169a7369
MS
9263 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9264 in case it gets applied to an address that is already
9265 in the instruction space.
de74f71f
MS
9266 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9267 * symfile.c: Fix indentation, long lines.
f2172603
MS
9268 * source.c: White space fix-up.
9269
cda5a58a
AC
92702002-04-12 Andrew Cagney <cagney@redhat.com>
9271
9272 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9273 * frame.c (frame_register_read): New function. Return non-zero on
9274 success.
9275 (read_relative_register_raw_bytes_for_frame): Delete.
9276 (read_relative_register_raw_bytes): Delete.
9277 * frame.h (frame_register_read): Declare.
9278 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9279 * sh-tdep.c: Ditto.
9280 * infcmd.c (do_registers_info): Ditto.
9281 * hppa-tdep.c: Ditto.
9282 * rs6000-tdep.c: Ditto.
9283 * h8500-tdep.c: Ditto.
9284 * mips-tdep.c: Ditto.
9285 * h8300-tdep.c: Ditto.
9286 * z8k-tdep.c: Ditto.
9287
2ea5f656
KB
92882002-04-12 Kevin Buettner <kevinb@redhat.com>
9289
9290 From Jimi X <jimix@watson.ibm.com>:
9291 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9292 64-bit SysV ABI.
9293
27b15785
KB
92942002-04-12 Kevin Buettner <kevinb@redhat.com>
9295
9296 From Jimi X <jimix@watson.ibm.com>:
9297 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9298 bfd info.
9299
5d57ee30
KB
93002002-04-12 Kevin Buettner <kevinb@redhat.com>
9301
9302 From Jimi X <jimix@watson.ibm.com>:
9303 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9304 register sets for these processor variants.
9305
bc1e36ca
DJ
93062002-04-11 Daniel Jacobowitz <drow@mvista.com>
9307
bc1e36ca
DJ
9308 * regformats/reg-ppc.dat: Support FPSCR.
9309
e3f36dbd
KB
93102002-04-11 Kevin Buettner <kevinb@redhat.com>
9311
9312 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9313 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9314 Add fpscr as an invalid/unfetchable register.
9315 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9316 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9317 (fill_fpregset): Add support for register fpscr.
9318 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9319 (fill_gregset): Account for the fact that register ``mq'' might
9320 not exist.
9321 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9322 (registers_power): Add fpscr to register set at slot 71.
9323 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9324 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9325
943c9c25
MS
93262002-04-11 Michael Snyder <msnyder@redhat.com>
9327
9328 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9329 * configure: Regenerate.
9330 * config.in: Regenerate.
9331 * acconfig.h: Add define for _SYSCALL32.
9332 * core-sol2.c: Remove #define _SYSCALL32.
9333 * solib-legacy.c: Remove #define _SYSCALL32.
9334
d8c0a2e7
AC
93352002-04-10 Andrew Cagney <ac131313@redhat.com>
9336
9337 * stack.c (select_frame): Cleanup internal error message, do not
9338 use %p.
9339
7cc19214
AC
93402002-04-10 Andrew Cagney <ac131313@redhat.com>
9341
9342 * stack.c (select_frame): Check that selected_frame and the
9343 specified level are as expected.
9344 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9345 Update copyright.
9346 * frame.h (struct frame_info): Add field `level'. Update
9347 copyright.
9348 Work-in-progress PR gdb/464.
9349
67a2b77e
AC
93502002-04-10 Andrew Cagney <ac131313@redhat.com>
9351
9352 * maint.c (maint_print_section_info): Rename print_section_info.
9353 (print_bfd_section_info, print_objfile_section_info): Update.
9354 * inferior.h (struct gdbarch): Add opaque declaration.
9355 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9356 * gdbarch.h: Regenerate.
9357
8cfda98c
ML
93582002-04-10 Michal Ludvig <mludvig@suse.cz>
9359
9360 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9361 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9362 (kernel_u_size): Added.
9363 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9364 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9365
ca439ad2 93662002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 9367
ca439ad2
JI
9368 * valarith.c (find_size_for_pointer_math): New function, either returns
9369 the size for a pointer's target, returns 1 for void *, or errors for
9370 incomplete types.
9371 (value_add, value_sub): use find_size_for_pointer_math.
9372
2f2893d9
DJ
93732002-04-09 Daniel Jacobowitz <drow@mvista.com>
9374
9375 * linux-low.c (linux_look_up_symbols): New hook.
9376 (linux_target_ops): Add linux_look_up_symbols.
9377 * remote-utils.c (decode_address): New function.
9378 (look_up_one_symbol): New function.
9379 * server.c (handle_query): Call target look_up_symbols hook.
9380 * server.h (look_up_one_symbol): Add prototype.
9381 * target.h (struct target_ops): Add look_up_symbols hook.
9382
96cb11df
AC
93832002-04-09 Andrew Cagney <ac131313@redhat.com>
9384
9385 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9386 override FP_REGNUM with frame->fp. Update copyright.
9387 * parse.c (num_std_regs, std_regs): Delete.
9388 (target_map_name_to_register): Do not search std_regs. Update
9389 function description.
9390 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9391 declarations. Update copyright.
9392 Fix PR gdb/251.
361d1df0 9393
97658e92
DJ
93942002-04-09 Daniel Jacobowitz <drow@mvista.com>
9395
9396 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9397 after the last symbol in a block.
9398
6044e3eb
PM
93992002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9400
9401 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9402 is non zero as a found symbol.
9403
0406ec40
AC
94042002-04-08 Andrew Cagney <ac131313@redhat.com>
9405
9406 * findvar.c: Include "builtin-regs.h".
9407 (value_of_register): Call value_of_builtin_reg when applicable.
9408 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9409 (target_map_name_to_register): Call
9410 builtin_reg_map_name_to_regnum.
9411 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9412 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9413 (builtin_regs_h): Define.
9414 (builtin-regs.o): New target.
9415 (findvar.o): Add $(builtin_regs_h).
9416 * builtin-regs.c, builtin-regs.h: New files.
9417 * std-regs.c: New file.
9418 Partial fix for PR gdb/251.
9419
56a6dfb9
KB
94202002-04-08 Kevin Buettner <kevinb@redhat.com>
9421
9422 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9423 it's no longer required.
9424
3a808432
AC
94252002-04-08 Andrew Cagney <ac131313@redhat.com>
9426
9427 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9428
7c40d541
KB
94292002-04-08 Kevin Buettner <kevinb@redhat.com>
9430
9431 From Jimi X <jimix@watson.ibm.com>:
9432 * rs6000-tdep.c (rs6000_software_single_step): Use
9433 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9434 and size. Use target_insert_breakpoint() and
9435 target_remove_breakpoint() to insert and remove breakpoints
9436 instead of explicit memory reads and writes.
9437
cc9836a8
KB
94382002-04-08 Kevin Buettner <kevinb@redhat.com>
9439
9440 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9441 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9442 ELF_OBJECT_FORMAT ifdef.
9443
7495d1dc
KB
94442002-04-08 Kevin Buettner <kevinb@redhat.com>
9445
9446 From Jimi X <jimix@watson.ibm.com>:
9447 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9448
4288e836
KB
94492002-04-08 Kevin Buettner <kevinb@redhat.com>
9450
9451 From Jimi X <jimix@watson.ibm.com>:
9452 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9453 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9454
a4e4e501
MK
94552002-04-07 Mark Kettenis <kettenis@gnu.org>
9456
9457 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9458 s/asprintf/xasprintf/.
9459 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9460
006defba
AC
94612002-04-07 Andrew Cagney <ac131313@redhat.com>
9462
9463 I believe Jeff Law denies responsability for this one:
9464 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9465 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9466 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9467 Work-around for PR gdb/366.
9468
7aa83cac
EZ
94692002-04-07 Elena Zannoni <ezannoni@redhat.com>
9470
9471 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9472 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9473 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9474
cf1fcca1
EZ
94752002-04-07 Elena Zannoni <ezannoni@redhat.com>
9476
9477 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9478 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9479 information.
9480
3f289e6f
AC
94812002-04-07 Andrew Cagney <ac131313@redhat.com>
9482
9483 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9484 maintainer.
9485
129188f6
AC
94862002-04-07 Andrew Cagney <ac131313@redhat.com>
9487
9488 * README (Reporting Bugs in GDB): Document the bug web page as the
9489 prefered way of submitting bugs.
9490 Fix PR gdb/402.
9491
1200cd6e
AC
94922002-04-06 Andrew Cagney <ac131313@redhat.com>
9493
9494 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9495 -1. Update comment.
9496 * gdbarch.h, gdbarch.c: Re-generate.
9497
2853c33c
AS
94982002-04-07 Andreas Schwab <schwab@suse.de>
9499
9500 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9501 buffer to regcache_collect.
9502
c2169756
AC
95032002-04-06 Andrew Cagney <ac131313@redhat.com>
9504
9505 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9506 * gdbarch.c, gdbarch.h: Re-generate.
9507
25f1b008
AC
95082002-04-06 Andrew Cagney <ac131313@redhat.com>
9509
9510 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9511 declaration. Fix -Werror.
9512
59263426
DJ
95132002-04-05 Daniel Jacobowitz <drow@mvista.com>
9514
9515 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9516 * gdbarch.c: Regenerate.
9517
f5db4da3
MS
95182002-04-05 Michael Snyder <msnyder@redhat.com>
9519
80f8a6eb
MS
9520 * breakpoint.c (clear_command): Rewrite middle section to
9521 combine two loops with identical control conditions.
9522 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
9523 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9524
ad3dcc5c
L
95252002-04-05 H.J. Lu (hjl@gnu.org)
9526
9527 * solib-svr4.c (bkpt_names): Add "__start".
9528
f32e7a74
AC
95292002-04-04 Andrew Cagney <ac131313@redhat.com>
9530
9531 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9532 as test for 64 bit target.
9533
8227c0ff
AC
95342002-04-05 Andrew Cagney <ac131313@redhat.com>
9535
9536 * h8500-tdep.c (h8500_write_fp): Delete function.
9537 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9538 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9539 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9540 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9541 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9542 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9543 (s390_write_fp):
9544 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9545 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9546 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9547 (d10v_write_fp): Delete function.
9548 * inferior.h (write_fp, generic_target_write_fp): Delete
9549 declarations.
9550 * regcache.c (generic_target_write_fp): Delete function.
9551 (write_fp): Delete function.
9552 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9553 * gdbarch.h, gdbarch.c: Regenerate.
9554 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9555 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9556 (sparc64_write_fp): Delete declaration.
9557 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9558 (h8500_write_fp): Delete declaration.
9559
2757dd86
AC
95602002-04-04 Andrew Cagney <ac131313@redhat.com>
9561
9562 * sparc-tdep.c (sparc64_write_fp): Delete.
9563 (sparc_push_dummy_frame): Replace write_fp call with code to store
9564 the FP directly.
9565 (sparc_gdbarch_init): Do not initialize write_fp.
9566
c69255e1
KB
95672002-04-05 Kevin Buettner <kevinb@redhat.com>
9568
9569 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9570 clause.
9571
ae767bfb
JB
95722002-03-29 Jim Blandy <jimb@redhat.com>
9573
9574 * stack.c (get_selected_block): Add new argument `addr_in_block',
9575 used to return the exact code address we used to select the block,
9576 not just the block.
9577 * blockframe.c (get_frame_block, get_current_block): Same.
9578 * frame.h (get_frame_block, get_current_block,
9579 get_selected_block): Update declarations.
9580 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9581 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9582
84d2ac95
MS
95832002-04-05 Michael Snyder <msnyder@redhat.com>
9584
9585 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9586 warning message.
9587
596aa3bf
JB
95882002-04-05 J. Brobecker <brobecker@gnat.com>
9589
9590 * utils.c (xfullpath): New function.
9591 * defs.h (xfullpath): Add declaration.
9592 * source.c (openp): Use xfullpath in place of gdb_realpath to
9593 avoid resolving the basename part of filenames when the
9594 associated file is a symbolic link. This fixes a potential
9595 inconsistency between the filenames known to GDB and the
9596 filenames it prints in the annotations.
9597 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9598 to be able to match a filename with either the real filename, or
9599 the name of any symbolic link to this file.
9600 (lookup_partial_symtab): Ditto.
9601
c02f5703
MS
96022002-04-04 Michael Snyder <msnyder@redhat.com>
9603
9604 * breakpoint.c: Add support for hardware breakpoints in overlays.
9605 (overlay_events_enabled): New state variable.
9606 (insert_breakpoints): Use overlay_events_enabled to decide
9607 whether to attempt to set a breakpoint at the overlay load addr.
9608 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9609 (remove_breakpoint): Use overlay_events_enabled to decide
9610 whether breakpoints need to be removed from overlay load addr.
9611 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9612 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 9613 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
9614 disable_overlay_breakpoints): Update overlay_events_enabled.
9615
5fb290d7
DJ
96162002-04-04 Daniel Jacobowitz <drow@mvista.com>
9617
9618 * dwarf2read.c (struct function_range): New.
9619 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9620 (check_cu_functions): New.
9621 (read_file_scope): Initialize global function lists.
9622 Call dwarf_decode_line after processing children.
9623 (read_func_scope): Add to global function list.
9624 (dwarf_decode_lines): Call check_cu_functions everywhere
9625 record_line is called. Call record_line with a linenumber
9626 of 0 to mark sequence ends.
9627
7b3fabf0
ML
96282002-04-04 Michal Ludvig <mludvig@suse.cz>
9629
361d1df0 9630 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
9631 change sync with glibc.
9632
bce58c09
JB
96332002-04-03 Jim Blandy <jimb@redhat.com>
9634
9635 * configure.in: Call AC_C_INLINE.
9636 * configure: Regenerated.
361d1df0 9637
2fccf04a
DJ
96382002-04-01 Daniel Jacobowitz <drow@mvista.com>
9639
9640 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9641 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9642
2d1bfe2e
MK
96432002-03-31 Mark Kettenis <kettenis@gnu.org>
9644
a5941fbf
MK
9645 * NEWS: Mention gcore support on FreeBSD/i386.
9646
a90cd31d
MK
9647 * fbsd-proc.c: New file.
9648 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9649 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9650
2d1bfe2e
MK
9651 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9652 while statement.
9653
9eb6e5a1
JB
96542002-03-29 Jim Blandy <jimb@redhat.com>
9655
9656 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9657 unescaped newlines in string literals, but newer ones don't. So
9658 escape them.
9659
f02df580
MS
96602002-03-26 Michael Snyder <msnyder@redhat.com>
9661 Andrew Cagney <cagney@redhat.com>
9662
361d1df0 9663 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
9664 restore file to memory.
9665 * cli/cli-dump.h: New file.
9666 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 9667 * NEWS: Mention new commands.
f02df580 9668
109f874e
MS
96692002-03-28 Michael Snyder <msnyder@redhat.com>
9670
9671 * symfile.c (symbol_file_add): Move test for null symbols to later.
9672
520f6ade
AC
96732002-03-27 Andrew Cagney <ac131313@redhat.com>
9674
9675 From veksler at il.ibm.com:
9676 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9677 the xstrduped original path.
9678 Fix PR gdb/417.
9679
d4654627
MS
96802002-03-27 Michael Snyder <msnyder@redhat.com>
9681
9682 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9683 * infcmd.c (_initialize_infcmd): Ditto.
9684 * language.c (_initialize_language): Ditto.
9685 * symfile.c (_initialize_symfile): Ditto.
9686 * top.c (_init_main): Ditto.
9687 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9688
6be8bc0c
EZ
96892002-03-27 Elena Zannoni <ezannoni@redhat.com>
9690
9691 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9692 vector registers handling.
9693 (skip_prologue): Handle new AltiVec instructions. Fill in new
9694 fields of frame data.
9695 (frame_get_saved_regs): Fill in information for AltiVec registers.
9696
12af6855
JB
96972002-03-27 Jim Blandy <jimb@redhat.com>
9698
9699 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9700 a function; leave this macro here to invoke that function.
9701 (symbol_init_mangled_name): Declaration for that function.
9702 * symtab.c (symbol_init_mangled_name): New function.
9703
dc672865
AC
97042002-03-27 Andrew Cagney <ac131313@redhat.com>
9705
9706 * valarith.c: Replace strerror with safe_strerror.
9707 * tracepoint.c: Ditto.
9708 * lin-lwp.c: Ditto.
9709 * go32-nat.c: Ditto.
9710 * inflow.c: Ditto.
9711 * gnu-nat.c: Ditto.
9712
d96429cd
AS
97132002-03-27 Andreas Schwab <schwab@suse.de>
9714
9715 * event-top.c (command_line_handler): Remove useless if.
9716
7e336ba1
AJ
97172002-03-27 Andreas Jaeger <aj@suse.de>
9718
9719 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9720 comment.
9721
de220d0f
ML
97222002-03-27 Michal Ludvig <mludvig@suse.cz>
9723
9724 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9725 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9726 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9727 (x86_64_linux_dr_get_status, supply_gregset),
9728 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9729 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9730 (x86_64_register_info_table): Add.
9731 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9732 (x86_64_register_raw_size, x86_64_register_virtual_type),
9733 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9734 general x86_64_register_info_table.
9735 (i386_gdbarch_init): gdbarch_register_bytes is now set
9736 dynamicaly during initialization.
9737 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9738 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 9739
0e98d0a7
DJ
97402002-03-27 Daniel Jacobowitz <drow@mvista.com>
9741
9742 * gdbserver/server.c (main): Call target_signal_to_host_p
9743 and target_signal_to_host on signals received from the remote.
9744 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9745 target_signal_from_host on signals sent to the remote.
9746 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9747 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9748
3130066b
DJ
97492002-03-27 Daniel Jacobowitz <drow@mvista.com>
9750
9751 * signals/signals.c: Include "server.h" in gdbserver build.
9752 (target_signal_from_name): Don't use STREQ.
9753 (_initialize_signals): Likewise. Don't include function in
9754 gdbserver build.
9755
9aedf4f4
DJ
97562002-03-27 Daniel Jacobowitz <drow@mvista.com>
9757
9758 * signals.c: Moved to...
9759 * signals/signals.c: Here.
7e336ba1 9760 * Makefile (signals.o): Update.
9aedf4f4 9761
3fa41cdb
JL
97622002-03-26 Jeff Law (law@redhat.com)
9763
9764 * somread.c (som_symtab_read): Remove some commented out code and
9765 updated related comments. Do not set the minimal symbol table to
9766 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9767 in a dynamic executable.
9768 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9769 where we are unable to find the minimal symbol for the given
9770 PC value.
9771
ee677e8d
MS
97722002-03-25 Jeff Law (law@redhat.com)
9773
9774 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9775
e76e1718
ML
97762002-03-25 Michal Ludvig <mludvig@suse.cz>
9777
9778 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9779
18a642a1
AC
97802002-03-23 Andrew Cagney <ac131313@redhat.com>
9781
9782 * command.h: Update copyright.
9783 (struct cmd_list_element): Replace definition with opaque
9784 declaration.
9785 (enum cmd_types): Document that it will eventually be moved to
9786 cli/cli-decode.h
9787 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9788 (MALLOCED_REPLACEMENT): Delete macro.
9789 * Makefile.in (cli_decode_h): Add $(command_h).
9790 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 9791 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
9792 * completer.c: Include "cli/cli-decode.h".
9793 * maint.c: Include "cli/cli-decode.h".
9794 * cli/cli-decode.h: Include "command.h".
9795 (enum command_class): Delete.
9796 (enum cmd_types): Comment out.
9797 (enum cmd_auto_boolean): Delete.
9798 (enum var_types): Delete.
9799
b2875cc0
AC
98002002-03-23 Andrew Cagney <ac131313@redhat.com>
9801
9802 * cli/cli-decode.c: Include "gdb_assert.h".
9803 (add_set_or_show_cmd): New static function.
9804 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9805 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9806 all fields, such as func, from the set command.
9807
3b45974e
AC
98082002-03-23 Andrew Cagney <ac131313@redhat.com>
9809
9810 * MAINTAINERS (sh-elf): Change warning flag to -w.
9811
823ca731
AC
98122002-03-23 Andrew Cagney <cagney@redhat.com>
9813
9814 * defs.h (error): Add printf format attribute.
9815 * thread-db.c (thread_from_lwp): Fix error format string.
9816 * stack.c (parse_frame_specification): Ditto.
9817 * cli/cli-decode.c (undef_cmd_error): Ditto.
9818 * scm-lang.c (scm_lookup_name): Ditto.
9819 * tracepoint.c (trace_error): Ditto.
9820 * remote-utils.c (usage): Ditto.
9821 * remote.c (compare_sections_command): Ditto.
9822 Fix PR gdb/328.
9823
0e101458
AC
98242002-03-22 Andrew Cagney <ac131313@redhat.com>
9825
9826 * gdbtypes.c (append_composite_type_field): New function.
9827 (init_composite_type): New function.
9828 * gdbtypes.h (append_composite_type_field): Declare.
9829 (init_composite_type): Ditto.
9830
8e0662df
EZ
98312002-03-22 Elena Zannoni <ezannoni@redhat.com>
9832
9833 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 9834 function.
8e0662df
EZ
9835 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9836 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9837 structure returning convention for SYSV ABI case, but not
9838 for GNU/Linux, FreeBSD, or NetBSD.
9839
3121eff0
DJ
98402002-03-22 Daniel Jacobowitz <drow@mvista.com>
9841
9842 * symtab.h (lookup_block_symbol): Add mangled_name argument
9843 to prototype.
9844
9845 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9846 with new mangled_name argument.
9847 * linespec.c (decode_line_1): Likewise.
9848 * valops (value_of_this): Likewise.
9849 * symtab.c (lookup_transparent_type): Likewise.
9850 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9851 (lookup_symbol): If we are given a mangled name, pass it down
9852 to lookup_symbol_aux.
9853 (lookup_block_symbol): If we are given a mangled name to check
9854 against, only return symbols which match it.
9855
349b409f
CF
98562002-03-22 Christopher Faylor <cgf@redhat.com>
9857
9858 * win32-nat.c (child_create_inferior): Check for proper shell to use
9859 here, in case the user changes it on the fly.
9860 (_initialize_inftarg): Remove shell path considerations.
9861
2a873819
EZ
98622002-03-21 Elena Zannoni <ezannoni@redhat.com>
9863
9864 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9865 for gdbarch_max_register_raw_size and max_register_virtual_size.
9866 Adjust copyright year.
9867
a1b9830c
DJ
98682002-03-21 Daniel Jacobowitz <drow@mvista.com>
9869
9870 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9871 in a function to cover the entire beginning of the function
9872 as well if it does not already.
9873
8b5790f2
TR
98742002-03-21 Tom Rix <trix@redhat.com>
9875
9876 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9877 (rs6000_ptrace64): Renamed from ptrace64.
9878
bdbe5747
MH
98792002-03-20 Martin M. Hunt <hunt@redhat.com>
9880
9881 * gdbserver/remote-utils.c (remote_open): Don't call
9882 getprotobyname, we're all using TCP here so just use
9883 IPPROTO_TCP.
7e336ba1 9884 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
9885
98862002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 9887
bdbe5747
MH
9888 * regcache.c (_initialize_regcache): No need to call
9889 build_regcache() at this time; it gets called whenever
9890 the gdbarch changes.
9891
7781cd62
DB
98922002-03-20 David O'Brien <obrien@FreeBSD.org>
9893
9894 * sparc-nat.c: Include sys/param.h where possible.
9895
f65ca430
DJ
98962002-03-20 Daniel Jacobowitz <drow@mvista.com>
9897
9898 Fix PR gdb/422.
9899 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9900 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9901 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9902 complex types.
9903 * stabsread.c (rs6000_builtin_type): Likewise.
9904 (read_sun_floating_type): Likewise.
9905
0c867556
PS
99062002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9907
9908 * stabsread.c (read_member_functions): Remove skip code for duplicate
9909 constructor/destructor methods. Use standard parsing for these
9910 methods and just do not chain them to the list of methods after
9911 parsing.
9912
12b9c64f
AO
99132002-03-19 Alexandre Oliva <aoliva@redhat.com>
9914
9915 * coffread.c: Remove redundant static declarations. Replace
9916 occurrences of `PTR' with `void *'.
9917 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9918 * top.h (quit_cover): Likewise.
9919 * defs.h (catch_errors): Likewise.
9920
349c5d5f
AC
99212002-03-18 Andrew Cagney <ac131313@redhat.com>
9922
9923 * defs.h (XMALLOC): Define.
9924 * gdb-events.sh (XMALLOC): Delete macro.
9925 * gdb-events.c, gdb-events.h: Regenerate.
9926 * gdbarch.sh (XMALLOC): Delete macro.
9927 * gdbarch.c: Regenerate.
9928 * serial.c (XMALLOC): Delete macro.
9929 * ui-file.c (XMALLOC): Ditto.
9930 * ser-unix.h (XMALLOC): Ditto.
9931 * sh-tdep.c (XMALLOC): Ditto.
9932 * ui-out.c (XMALLOC): Ditto.
9933 * utils.c (XMALLOC): Ditto.
9934 * i386-tdep.c (XMALLOC): Ditto.
9935 * gdb-events.c (XMALLOC): Ditto.
9936 * d10v-tdep.c (XMALLOC): Ditto.
9937 * cli-out.c (XMALLOC): Ditto.
9938
9939 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9940 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9941 * ui-file.c, ui-out.c: Ditto.
9942
7d0766f3
AC
99432002-03-18 Andrew Cagney <ac131313@redhat.com>
9944
9945 * command.h (struct cmd_list_element): Add field context.
9946 (set_cmd_context, get_cmd_context): Declare.
9947 * cli/cli-decode.h: Ditto.
9948 * cli/cli-decode.c (get_cmd_context): New function.
9949 (set_cmd_context): New function.
9950 (add_cmd): Initialize context.
9951 Part of fixing PR gdb/145 and PR gdb/146.
9952
5913bcb0
AC
99532002-03-17 Andrew Cagney <ac131313@redhat.com>
9954
1868c04e
AC
9955 * cli/cli-decode.c (cmd_type): New function.
9956 * command.h (cmd_type): Declare.
9957 * infrun.c (set_schedlock_func): Call function cmd_type.
9958 * kod.c (kod_set_os): Call cmd_type.
9959 * cris-tdep.c (cris_version_update): Use function cmd_type.
9960 (cris_mode_update, cris_abi_update): Ditto.
9961
5913bcb0
AC
9962 * command.h: (execute_cmd_post_hook): Declare.
9963 (execute_cmd_pre_hook): Declare.
9964 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9965 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9966 functions. Execute pre/post hook while ensuring that afterwords
9967 hook_in is cleared.
9968 * top.c (execute_command): Use execute_cmd_post_hook, and
9969 execute_cmd_pre_hook to execute pre/post commands.
9970 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9971 hook_stop_stub.
9972 (hook_stop_stub): Call execute_cmd_pre_hook.
9973
b51450c9
AC
99742002-03-17 Andrew Cagney <ac131313@redhat.com>
9975
9976 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9977 set'' and this leads to a core dump. Move xstrdup of
9978 operating_system to after check that it is not NULL.
9979
f66c9f11
AC
99802002-03-17 Andrew Cagney <ac131313@redhat.com>
9981
8e694ecf
AC
9982 * kod.c (kod_set_os): Remove unnecessary check that
9983 ``command->type'' is set_cmd.
9984
f66c9f11
AC
9985 * valprint.c (set_input_radix): Use input_radix.
9986 (set_output_radix): Use output_radix.
9987 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9988 isn't reverted.
9989
9d01611c
AC
99902002-03-16 Andrew Cagney <ac131313@redhat.com>
9991
9992 * value.h (struct value): Delete field ``substring_addr''. Change
9993 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
9994 force_core_addr_align and force_pointer_aligh.
9995
9996 * value.h (struct value): Fix typo in above change.
9d01611c 9997
4156bb53
PS
99982002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9999
10000 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10001 to fix internal_error from ``maintenance print architecture''.
10002
0e5e3ea6
PS
100032002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10004
10005 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10006 for gcc versions after gcc-2.8.1.
10007
9b013045
PS
100082002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10009
10010 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10011 for method resolution. Restore adjustment of ``this'' pointer after
10012 calling value_struct_elt, which was accidentally removed during the
10013 HP merge.
10014
376c9600
AC
100152002-03-15 Andrew Cagney <ac131313@redhat.com>
10016
10017 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10018 value_of_register.
10019 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10020 get_saved_register.
10021 * value.h (value_of_register): Update.
10022
a4db0f07
RH
100232002-03-14 Richard Henderson <rth@redhat.com>
10024
10025 * configure.in: Detect declaration for canonicalize_file_name.
10026 * utils.c (canonicalize_file_name): Declare, if needed.
10027 (gdb_realpath): Prefer realpath if available and usable.
10028 * config.in, configure: Rebuild.
10029
96383835
RH
100302002-03-14 Richard Henderson <rth@redhat.com>
10031
10032 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10033 a constant array bound.
10034
10035 * MAINTAINERS: Add myself to write-after-approval.
10036
75245b24
MS
100372002-03-14 Michael Snyder <msnyder@redhat.com>
10038
10039 * symfile.c (syms_from_objfile): Return immediately if no syms.
10040 (symbol_file_add): Return immediately if no syms.
10041 (find_sym_fns): Return immediately if no syms.
10042
e641a1ca
ML
100432002-03-13 Michal Ludvig <mludvig@suse.cz>
10044
10045 * gdbserver/remote-util.c (remote_open): Print remote-side's
10046 IP address when remote debugging over the network.
7e336ba1 10047
df08bfec
DB
100482002-03-12 David O'Brien <obrien@FreeBSD.org>
10049
10050 * config/sparc/fbsd.mh: Fix copyright.
10051 * config/sparc/fbsd.mt: Likewise.
10052
9a57864f
RE
100532002-03-11 Richard Earnshaw <rearnsha@arm.com>
10054
10055 * MAINTAINERS: Fix typo in name of gdb warnings option.
10056 (x86-64): Fix formating so that this can be parsed by awk.
10057
dd7bf85e
DJ
100582002-03-10 Daniel Jacobowitz <drow@mvista.com>
10059
10060 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10061 * defs.h: Include "gdb/signals.h".
10062 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10063
33a0a2ac
ML
100642002-03-10 Michal Ludvig <mludvig@suse.cz>
10065
10066 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 10067 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
10068 from x86-64-tdep.h
10069
dd824b04
DJ
100702002-03-10 Daniel Jacobowitz <drow@mvista.com>
10071 Don Howard <dhoward@redhat.com>
10072
10073 * mips-tdep.c (ST0_FR): Define.
10074 (mips2_fp_compat): New function, temporarily disabled.
10075 (mips_read_fp_register_single): New function.
10076 (mips_read_fp_register_double): New function.
10077 (mips_print_register): Use them.
10078 (do_fp_register_row): Likewise.
10079
6a41ff59
AC
100802002-03-09 Andrew Cagney <ac131313@redhat.com>
10081
10082 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10083 approval''.
10084
4ea09c10
PS
100852002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10086
10087 * stabsread.c (read_member_functions): Fix is_stub test for
10088 static member functions, improve comment.
10089
6ccc741d
RE
100902002-03-07 Richard Earnshaw <rearnsha@arm.com>
10091
10092 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10093 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10094 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10095 commands that set boolean values.
10096 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10097 (arm_rdi_resume): Always initialize PC.
10098 (arm_rdi_open): Don't use rslt as a boolean.
10099 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10100 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10101 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10102 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10103
438013df
AO
101042002-03-06 Alexandre Oliva <aoliva@redhat.com>
10105
10106 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10107 * configure: Rebuilt.
10108
70ed8774
SC
101092002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10110
10111 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10112 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10113
5ba2abeb
AC
101142002-03-06 Andrew Cagney <ac131313@redhat.com>
10115
10116 * cli/cli-decode.c (set_cmd_completer): New function.
10117 * command.h (set_cmd_completer): Declare.
10118 * cli/cli-decode.h (set_cmd_completer): Ditto.
10119
10120 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10121 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10122 * win32-nat.c (_initialize_inftarg): Ditto.
10123 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10124 * proc-api.c (_initialize_proc_api): Ditto.
10125 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10126 * source.c (_initialize_source): Ditto.
10127 * exec.c (_initialize_exec): Ditto.
10128 * solib.c (_initialize_solib): Ditto.
10129 * top.c (init_main): Ditto.
10130 * tracepoint.c (_initialize_tracepoint): Ditto.
10131 * symfile.c (_initialize_symfile): Ditto.
10132 * printcmd.c (_initialize_printcmd): Ditto.
10133 * infcmd.c (_initialize_infcmd): Ditto.
10134 * corefile.c (_initialize_core): Ditto.
10135
f779ca99
AC
101362002-03-05 Andrew Cagney <ac131313@redhat.com>
10137
10138 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10139
01a3934b
AC
101402002-03-05 Andrew Cagney <ac131313@redhat.com>
10141
10142 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10143
37057839
AC
101442002-03-05 Andrew Cagney <ac131313@redhat.com>
10145
10146 * NEWS: Update headings, 5.2 has branched.
10147
c6ecbae5
DJ
101482002-03-04 Daniel Jacobowitz <drow@mvista.com>
10149
10150 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10151 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10152 (register_addr, REGISTER_RAW_SIZE): Likewise.
10153 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10154 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10155
e9f30c21
ML
101562002-03-03 Michal Ludvig <mludvig@suse.cz>
10157
10158 * MAINTAINERS (x86-64): Add myself.
10159 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10160 changed value_ptr -> struct value *
10161
54394ac3
DB
101622002-03-01 David O'Brien <obrien@FreeBSD.org>
10163
10164 * configure.host (sparc64-*-freebsd): Add.
10165 * configure.tgt: Likewise.
10166 * config/sparc/fbsd.mh: New file.
10167 * config/sparc/fbsd.mt: Likewise.
10168 * config/sparc/nm-fbsd.h: Likewise.
10169 * config/sparc/tm-fbsd.h: Likewise.
10170
bfe95955
DJ
101712002-03-01 Daniel Jacobowitz <drow@mvista.com>
10172
10173 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10174 regformats/reg-s390x.dat.
10175
f33c6cbf
AC
101762002-03-01 Andrew Cagney <ac131313@redhat.com>
10177
10178 * utils.c: Add FIXME explaining true/false problem.
10179
5ecaa7dd
AC
101802002-02-28 Andrew Cagney <ac131313@redhat.com>
10181
10182 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10183
2a251cc2
MC
101842002-02-28 Michael Chastain <mec@shout.net>
10185
10186 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10187
6a8031a3 101882002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
10189
10190 * gdbserver/linux-s390-low.c: New file.
10191 * regformats/reg-s390.dat: New file.
10192 * regformats/reg-s390x.dat: New file.
10193 * gdbserver/configure.srv: Add S/390.
10194 * gdbserver/Makefile.in: Add S/390.
10195 * configure.tgt: Enable gdbserver for S/390.
10196
ac469903
EZ
101972002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10198
10199 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10200 first line of the doc string for "info dos", except at the end of
10201 the sentence, since the short help stops at the first period.
10202
985cb1a3
JM
102032002-02-28 Jason Merrill <jason@redhat.com>
10204
10205 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10206
c570663e
FF
102072002-02-27 Fred Fish <fnf@redhat.com>
10208
10209 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10210 comment (dumy -> dummy).
10211
43630227
PS
102122002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10213
10214 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10215
b84911e8
RB
102162002-02-27 Rodney Brown <rbrown64@csc.com.au>
10217
10218 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10219
58caa3dc
DJ
102202002-02-27 Daniel Jacobowitz <drow@mvista.com>
10221
10222 * gdbserver/acconfig.h: New file.
10223 * gdbserver/i387-fp.c: New file.
10224 * gdbserver/i387-fp.h: New file.
10225 * gdbserver/linux-x86-64.c: New file.
10226 * regformats/reg-x86-64.dat: New file.
10227 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10228 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10229 * gdbserver/configure.in: Add support for regsets.
10230 * gdbserver/config.in: Regenerate.
10231 * gdbserver/configure: Regenerate.
10232 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10233 * gdbserver/linux-low.h: New file.
10234 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10235 for regsets.
10236 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10237 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10238 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10239 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10240 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10241 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10242 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10243 "i387-fp.h". Add PTRACE_GETREGS and friends.
10244 * gdbserver/regcache.c (supply_register): New function.
10245 (supply_register_by_name): New function.
10246 (collect_register): New function.
10247 (collect_register_by_name): New function.
10248
93652174
DJ
102492002-02-27 Daniel Jacobowitz <drow@mvista.com>
10250
10251 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10252 (config.status): Add configure.srv dependency.
10253 (server_h): Add config.h dependency.
10254
a02e4a61
DJ
102552002-02-27 Daniel Jacobowitz <drow@mvista.com>
10256
10257 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10258 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10259 * gdbserver/configure.srv: Change i386-*-linux* to use
10260 reg-i386-linux.o.
10261
ce0eebec
AC
102622002-02-26 Andrew Cagney <ac131313@redhat.com>
10263
10264 * x86-64-tdep.c: Re-indent. Update copyright date.
10265
82dbc5f7
AC
102662002-02-26 Andrew Cagney <ac131313@redhat.com>
10267
10268 From Michal Ludvig <mludvig@suse.cz>:
10269 * x86-64-tdep.c (value.h): Delete.
10270 (gdb_assert.h): Include.
10271 (x86_64_register_convert_to_virtual,
10272 x86_64_register_convert_to_raw ): Add check which lets only
10273 floating-point values to be converted.
10274 (value_push): Delete.
10275 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10276 (i386_gdbarch_init): Number of register_bytes fixed.
10277
e4621584
AC
102782002-02-26 Andrew Cagney <ac131313@redhat.com>
10279
10280 * MAINTAINERS: Add x86-64 target.
10281
81a9a963
AC
102822002-02-26 Andrew Cagney <ac131313@redhat.com>
10283
10284 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10285 * osfsolib.c (solib_map_sections): Ditto.
10286 * irix5-nat.c (solib_map_sections): Ditto.
10287 * corelow.c (gdb_check_format): Ditto.
10288 * symfile.c (symfile_bfd_open): Ditto.
10289 * solib.c (solib_map_sections): Ditto.
10290 Fix PR gdb/354.
7e336ba1 10291
0f017ab9
AC
102922002-02-26 Andrew Cagney <ac131313@redhat.com>
10293
10294 * remote.c (_initialize_remote): By default, disable ``e'' and
10295 ``E'' step out-of-range packets.
10296
75738c29
AS
102972002-02-26 Andreas Schwab <schwab@suse.de>
10298
10299 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10300 m68k_linux_frame_saved_pc.
10301 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10302 in_sigtramp.
10303 (SIGCONTEXT_PC_OFFSET): Remove.
10304 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10305 m68k_linux_sigtramp_saved_pc): New functions.
10306 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10307 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10308 (UCONTEXT_PC_OFFSET): Define.
10309 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10310 non-RT and RT signal trampolines.
10311
7e8ed687
RE
103122002-02-26 Richard Earnshaw <rearnsha@arm.com>
10313
10314 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10315 (TARGET_NBPG, STACK_END_ADDR): Delete
10316 (VARIABLES_INSIDE_BLOCK): Delete.
10317
6972bc8b
AC
103182002-02-25 Andrew Cagney <ac131313@redhat.com>
10319
10320 * utils.c (perror_with_name): Make string parameter constant.
10321 (print_sys_errmsg): Ditto.
10322 (query): Ditto.
10323 * defs.h (perror_with_name): Update.
10324 (print_sys_errmsg): Update.
10325 (query): Update.
10326
aa32f823
DJ
103272002-02-25 Daniel Jacobowitz <drow@mvista.com>
10328
10329 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10330 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10331
19caaa45
PS
103322002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10333
10334 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10335 if it already matches the current architecture from the exec file.
10336 Include arch-utils.h for gdbarch_info_init prototype.
10337 * Makefile.in (rs6000-nat.o): Update dependencies.
10338
d951901f
EZ
103392002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10340
10341 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10342 list of exported variables.
10343
7ea81414
DJ
103442002-02-24 Daniel Jacobowitz <drow@mvista.com>
10345
10346 * gdbserver/configure.srv: New file.
10347 * gdbserver/configure.in: Use configure.srv instead
10348 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10349 from it.
10350 * gdbserver/configure: Regenerated.
10351 * gdbserver/terminal.h: New file.
10352 * gdbserver/Makefile.in: Update for configure changes. Remove
10353 more unneeded include paths.
10354
080fe24b
AC
103552002-02-24 Andrew Cagney <ac131313@redhat.com>
10356
10357 From wiz at danbala:
10358 * config/sparc/tm-sp64.h: Fix grammar and typos.
10359 Fix PR gdb/287.
10360
8605d56e
AC
103612002-02-24 Andrew Cagney <ac131313@redhat.com>
10362
10363 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
10364 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10365 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10366 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
10367 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10368 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10369 * s390-tdep.c: Ditto.
92362027
AC
10370 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10371 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10372 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10373 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10374 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10375 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10376 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10377 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10378 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10379 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 10380 Fix PR gdb/378.
7e336ba1 10381
8ed32cc0
AC
103822002-02-23 Andrew Cagney <ac131313@redhat.com>
10383
a3007b6f
AC
10384 * lin-thread.c: Delete file.
10385 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10386 to gdb_proc_service.h.
10387 * configure: Re-generate.
10388
50a9e2f1
AC
10389 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10390 * serial.c (serial_open): Delete check for "ocd".
10391 Fix PR gdb/349.
10392
8b6e7932
AC
10393 * Makefile.in (linux-thread.o): Delete target.
10394 * linux-thread.c: Delete file.
10395
d155c46b
AC
10396 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10397 renamed SH files to be consistent.
10398
8ed32cc0
AC
10399 * symtab.c (sort_search_symbols): Use xfree.
10400
0e18d038
RE
104012002-02-23 Richard Earnshaw <rearnsha@arm.com>
10402
10403 * arm-linux-tdep.c (arm_linux_init_abi): Register
10404 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10405 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10406 definition with undef, since we don't want the sysvr4 definition.
10407 (SKIP_TRAMPOLINE_CODE): Likewise.
10408
27aac7ff
AC
104092002-02-23 Andrew Cagney <ac131313@redhat.com>
10410
10411 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10412
10413 * configure.in: (AC_CHECK_FUNCS) Added test for
10414 canonicalize_file_name Regenerated.
10415 * config.in, configure: Regenerated.
10416 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10417 defined use canonicalize_file_name.
7e336ba1 10418
65a6e0ee
MC
104192002-02-23 Michael Chastain <mec@shout.net>
10420
10421 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10422
47b95330
AC
104232002-02-23 Andrew Cagney <ac131313@redhat.com>
10424
10425 * README: Remove references to cygnus.com.
10426 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10427 dot com'' form. Remove references to cygnus.com and sourceware.
10428
696f451b
AC
104292002-02-23 Andrew Cagney <ac131313@redhat.com>
10430
10431 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10432 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10433 1003.1-2001 no longer allows "head -1".
10434 * gdb/Makefile.in (version.c): Likewise.
10435 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10436 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10437 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10438
bbaca940
AC
104392002-02-23 Andrew Cagney <ac131313@redhat.com>
10440
10441 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10442 * command.h (cmd_cfunc_eq): Declare.
10443 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10444
10445 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10446 ``struct cmd_list_element *''.
10447 * cli/cli-cmds.c (is_complete_command): Update. Use
10448 cmd_cfunc_eq.
10449 * top.c (execute_command): Pass the command to
10450 is_complete_command.
10451 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10452
b8b8b047
AC
104532002-02-23 Andrew Cagney <ac131313@redhat.com>
10454
10455 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10456 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10457 architecture defines.
10458 * s390-tdep.c (s390_gdbarch_init): Likewise.
10459
19d3fc80
RE
104602002-02-23 Richard Earnshaw <rearnsha@arm.com>
10461
10462 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10463 (arm_linux_push_arguments): Likewise.
10464 (arm_linux_init_abi): Register them. Also register linux-specific
10465 call_dummy_words.
10466 (find_minsym_and_objfile): Use strcmp, not STREQ.
10467 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10468 (arm_linux_call_dummy_words): Delete declaration.
10469 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10470 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10471 declarations.
10472 (LOWEST_PC): Delete.
10473
3ab13650
PS
104742002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10475
10476 * maint.c (print_section_info): Do not prepend `0x' to filepos
10477 output, it will be handled by local_hex_string_custom.
10478
19d3fc80 104792002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
10480
10481 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10482 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10483 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10484
d85a5daf
JB
104852002-02-22 Jim Blandy <jimb@redhat.com>
10486
10487 Indicate that the bcache functions don't change the strings
10488 they're passed.
10489 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10490 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10491
eeb25b8a
PM
104922002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10493
10494 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10495
6badb179
CF
104962002-02-21 Christopher Faylor <cgf@redhat.com>
10497
10498 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10499 find the complete path to a loaded DLL.
10500
e8717518
FF
105012002-02-21 Fred Fish <fnf@redhat.com>
10502
10503 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10504 that marks the end of the range of a function, enter a line number
10505 entry that has a line number of zero and a PC offset that matches
10506 the end of the function. This starts a range of PC's for which no
10507 line number information is known.
10508 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10509 PC's for which no line number info is found (line number is zero)
10510 then we didn't find any valid line information.
10511 * symtab.h: Document use of zero line number entry.
10512
9abe5450
EZ
105132002-02-21 Elena Zannoni <ezannoni@redhat.com>
10514
10515 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10516 (have_ptrace_getvrregs): Define for run time checks.
10517 (gdb_vrregset_t): New type for Altivec register handling.
10518 (fetch_register, store_register): Fetch/store altivec register
10519 when needed.
10520 (fetch_altivec_register, store_altivec_register): New functions.
10521 (supply_vrregset, fill_vrregset): New functions.
10522 (fetch_altivec_registers, store_altivec_registers): New functions.
10523 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10524 registers as well.
10525
aaa38bb5
AJ
105262002-02-21 Jiri Smid <smid@suse.cz>
10527
10528 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10529
b34db576
RE
105302002-02-21 Richard Earnshaw <rearnsha@arm.com>
10531
10532 * Makefile.in (armnbsd-nat.o): Update dependencies.
10533 * armnbsd-nat.c (supply_gregset): New function. Common code to
10534 supply the integer register set.
10535 (supply_fparegset): New function. Similar for FPA registers.
10536 (fetch_regs, fetch_fp_regs): Use them.
10537 (fetch_core_registers): Likewise.
10538 (fetch_elfcore_registers): New function.
10539 (arm_netbsd_elfcore_fns): New core-file type specification.
10540 (_initialize_arm_netbsd_nat): Register it.
10541
3e56fc4b
RE
105422002-02-21 Richard Earnshaw <rearnsha@arm.com>
10543
10544 * armnbsd-nat.c: Include gdbcore.h.
10545 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10546 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10547 'void' to declaration, to shut up ARI.
10548 (fetch_core_registers): Make static. Rewrite using supply_register.
10549 (arm_netbsd_core_fns): New core-file type specification.
10550 (_initialize_arm_netbsd_nat): New function.
10551
097f6b0b
CF
105522002-02-21 Christopher Faylor <cgf@redhat.com>
10553
10554 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10555 value.
10556
c914e0cc
CF
105572002-02-20 Christopher Faylor <cgf@redhat.com>
10558
10559 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10560 fails.
10561
385fa495
DJ
105622002-02-20 Daniel Jacobowitz <drow@mvista.com>
10563
10564 * jv-exp.y (parse_number): Change type of implicit longs
10565 to builtin_type_uint64.
10566
e5f1222d
DJ
105672002-02-20 Daniel Jacobowitz <drow@mvista.com>
10568
10569 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10570 to be an integer instead of a `union wait'.
10571
75c9abc6
DJ
105722002-02-20 Daniel Jacobowitz <drow@mvista.com>
10573
10574 * mips-linux-nat.c: Call the operating system GNU/Linux.
10575 * mips-linux-tdep.c: Likewise.
10576 * mips-tdep.c: Likewise.
10577
551792a5
DJ
105782002-02-20 Daniel Jacobowitz <drow@mvista.com>
10579
10580 Fix PR gdb/265.
10581 * jv-exp.y (parse_number): Handle 64-bit integers.
10582
ee6e2b82
DJ
105832002-02-20 Daniel Jacobowitz <drow@mvista.com>
10584
10585 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10586 AC_STDC_HEADERS to AC_HEADER_STDC.
10587 * gdbserver/configure: Regenerated.
10588
a48442a0
RE
105892002-02-20 Richard Earnshaw <rearnsha@arm.com>
10590
10591 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10592 is defined.
10593 * sparc-tdep.c (get_longjmp_target): Likewise.
10594
fe419ffc
RE
105952002-02-20 Richard Earnshaw <rearnsha@arm.com>
10596
10597 * News: Add news about ARM and Multi-arch. Mention the new target
10598 arm*-*-netbsd*.
10599
5832ed7e
JB
106002002-02-19 Jim Blandy <jimb@redhat.com>
10601
10602 * stabsread.c (error_type_complaint): Improve error message.
10603
84563040
DJ
106042002-02-19 Daniel Jacobowitz <drow@mvista.com>
10605
10606 * gdbserver/README: Update documentation.
10607 * gdbserver/configure.in: Update configury to match documentation.
10608 * gdbserver/Makefile.in: Likewise.
10609 * gdbserver/configure: Regenerated.
10610 * gdbserver/aclocal.m4: New file, generated by aclocal.
10611 * gdbserver/config.in: New file, generated by autoheader.
10612
375fd65b
RE
106132002-02-19 Richard Earnshaw <rearnsha@arm.com>
10614
10615 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10616 armnbsd-nat.c.
10617
08216dd7
RE
106182002-02-19 Richard Earnshaw <rearnsha@arm.com>
10619
10620 * arm-tdep.h (enum arm_float_model): New enum.
10621 (struct gdbarch_tdep): Add fp_model.
10622 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10623 up floating-point conversions until we know the floating-point model
10624 in use by the inferior. Don't complain about being unable to
10625 determine the ABI of the inferior when we don't have one.
10626 (arm_extract_return_value): Support different floating-point models.
10627 (arm_store_return_value): Likewise.
aaa38bb5 10628 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
10629 ARM_FLOAT_SOFT.
10630 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10631
65d6d66a
PS
106322002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10633
10634 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10635 of ``current_gdbarch''.
10636
47221191
RE
106372002-02-19 Richard Earnshaw <rearnsha@arm.com>
10638
10639 * armnbsd-nat.c : ANSIfy all function declarations.
10640 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10641 (fetch_inferior_registers): Re-implement in terms of above.
10642 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10643 (store_inferior_registers): Re-implement in terms of above.
10644
fdf39c9a
RE
106452002-02-19 Richard Earnshaw <rearnsha@arm.com>
10646
aaa38bb5 10647 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
10648 kernel.
10649 * arm-linux-tdep.c: Likewise.
10650 * config/arm/tm-linux.h: Likewise.
10651
93247f88
RE
106522002-02-19 Richard Earnshaw <rearnsha@arm.com>
10653
10654 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10655 * config/arm/nbsd.mt (TM_FILE): Delete.
10656 * config/arm/tm-nbsd.h: Delete.
10657
d7b486e7
RE
106582002-02-19 Richard Earnshaw <rearnsha@arm.com>
10659
10660 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10661 Initialize CALL_DUMMY_LENGTH.
10662
41d39a95
RE
106632002-02-19 Richard Earnshaw <rearnsha@arm.com>
10664
10665 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10666 function.
10667 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 10668 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
10669 defines one thing and that is incorrect for this port.
10670 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10671
e1195560
PM
106722002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10673
10674 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10675
c1748f97
PM
106762002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10677
10678 * win32-nat.c (display_selector): New function. Displays information
10679 about the information returned by GetThreadSelectorEntry API function.
10680 (display_selectors): New function. Displays the infomation of
10681 the selector given as argument, or of CS, DS ans FS selectors
10682 if no argument is given.
10683 ( _initialize_inftarg): Add "w32" as info prefix command.
10684 Add "info w32 selector" as command calling display_selectors.
10685
e41e6bbf
PM
106862002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10687
10688 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10689 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10690 if not defined.
10691
0d3a9f48
RE
106922002-02-18 Richard Earnshaw <rearnsha@arm.com>
10693
10694 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10695
3fb4b924
RE
106962002-02-18 Richard Earnshaw <rearnsha@arm.com>
10697
10698 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10699 (arm_fix_call_dummy): Call it.
10700 (arm_call_dummy_breakpoint_offset): Delete.
10701 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10702 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10703
7f55af32
AC
107042002-02-18 Andrew Cagney <ac131313@redhat.com>
10705
10706 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10707 Default to func_frame_chain_valid.
10708 * gdbarch.h, gdbarch.c: Re-generate.
10709 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10710
05f13b9c
EZ
107112002-02-18 Elena Zannoni <ezannoni@redhat.com>
10712
10713 * ppc-linux-nat.c: Update copyright.
10714 (fetch_register, store_register): Add tid parameter, don't compute
10715 tid here.
10716 (fetch_ppc_registers, store_ppc_registers): Add tid
10717 parameter. Pass it along to callees.
10718 (fetch_inferior_registers, store_inferior_registers): Compute tid
10719 here, and pass it to calleed functions.
10720 (fill_gregset, supply_fpregset): Clean up formatting.
10721
d7afb4c9
RE
107222002-02-18 Richard Earnshaw <rearnsha@arm.com>
10723
10724 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10725 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10726
9df628e0
RE
107272002-02-18 Richard Earnshaw <rearnsha@arm.com>
10728
10729 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10730 * gdbarch.c gdbarch.h: Regenerate.
10731 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10732 function.
10733 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10734 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10735 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10736
10737 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10738 * arm-tdep.c (arm_get_longjmp_target): New function.
10739 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10740 this to a positive value register arm_get_longjmp_target as the
10741 longjmp handler.
10742 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10743 (arm_linux_init_abi): Set up longjmp description in tdep.
10744 * armnbsd-nat.c (get_longjmp_target): Delete.
10745 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10746 description in tdep.
10747 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10748 (get_longjmp_target): Delete declaration.
10749 (GET_LONGJMP_TARGET): Delete.
10750 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10751 (GET_LONGJMP_TARGET): Delete.
10752
57bc8964
KB
107532002-02-17 Kevin Buettner <kevinb@redhat.com>
10754
10755 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10756 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10757 of ``current_gdbarch''.
10758
83d31a92
TT
107592002-02-17 Tom Tromey <tromey@redhat.com>
10760
10761 * cli/cli-cmds.c (compare_strings): New function.
10762 (complete_command): Only print each unique item once.
10763 * completer.h (complete_line): Declare.
10764 * completer.c (complete_line): New function.
10765 (line_completion_function): Use it.
10766
17ef5d92
AC
107672002-02-16 Andrew Cagney <ac131313@redhat.com>
10768
10769 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10770 * gdbarch.h, gdbarch.c: Re-generate.
10771
491b8946
DJ
107722002-02-16 Daniel Jacobowitz <drow@mvista.com>
10773
10774 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10775
107762002-02-16 Daniel Jacobowitz <drow@mvista.com>
10777
10778 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10779 * valops.c (value_arg_coerce): Don't take the address of a reference
10780 to convert an argument to a reference.
10781
dfe7f3ac
CF
107822002-02-15 Christopher Faylor <cgf@redhat.com>
10783
10784 * win32-nat.c (get_image_name): New function.
10785 (handle_load_dll): Use get_image_name function.
10786 (get_child_debug_event): Avoid registering debug events until possibly
10787 execed process is started.
10788 (child_create_inferior): Allow invocation via shell so that command
10789 line redirection, etc. works ok.
10790 (_initialize_inftarg): Add new command: "set shell" to control whether
10791 a shell is used to start a process.
10792
1d33e73a
DJ
107932002-02-15 Daniel Jacobowitz <drow@mvista.com>
10794
10795 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10796 instead of find_register_by_number.
10797 (cannot_store_register): Likewise.
10798
48cd0caa
PM
107992002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10800
aaa38bb5 10801 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
10802 fprintf_unfiltered (gdb_stderr, ...).
10803
8656e7d8
DJ
108042002-02-15 Daniel Jacobowitz <drow@mvista.com>
10805
10806 * gdbserver/gdbserver.1: Document --attach.
10807
66e810cd
RE
108082002-02-15 Richard Earnshaw <rearnsha@arm.com>
10809
10810 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10811 descriptions.
10812 * arm-tdep.c (arm_default_arm_le_breakpoint)
10813 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10814 (arm_default_thumb_be_breakpoint): New. Initialize them from
10815 traditional breakpoint defines.
10816 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10817 (arm_gdbarch_init): Initialize new breakpoint variables.
10818 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10819 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10820 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10821 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10822 code out to ...
10823 (arm_netbsd_init_abi_common): ... here; new function.
10824 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10825 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10826 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10827 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10828
97e03143
RE
108292002-02-15 Richard Earnshaw <rearnsha@arm.com>
10830
10831 * arm-tdep.h (enum arm_abi): New enum.
10832 (struct gdbarch_tdep): New structure.
10833 (LOWEST_PC): Provide a default.
10834 (arm_gdbarch_register_os_abi): Declare new function.
10835 * arm-tdep.c (arm_abi_names): New array.
10836 (process_note_abi_tag_sections): New function.
10837 (get_elfosabi): New function.
10838 (arm_gdbarch_register_os_abi): New function.
10839 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10840 support for that ABI has been built in, then call the appropriate
10841 configuration routine. Use gdbarch_num_regs() to get the number
10842 of registers.
10843 (arm_dump_tdep): New function.
10844 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10845 place-holder functions.
10846 (_initialize_arm_tdep): Register them.
10847 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10848
10849 * armnbsd-tdep.c: New file.
10850 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10851 * config/arm/nbsd.mt (TDEPFILES): Add it.
10852 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10853
10854 * armnbsd-nat.c: Include regcache.h.
10855 * Makefile.in (armnbsd-nat.o): Update dependency list.
10856
10857 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10858
ad68be46
DJ
108592002-02-14 Daniel Jacobowitz <drow@mvista.com>
10860
10861 * gdbserver/Makefile.in: Fix typos in target rules.
10862
003d6d1d
DJ
108632002-02-14 Daniel Jacobowitz <drow@mvista.com>
10864
aaa38bb5 10865 Fix part of PR gdb/267.
003d6d1d
DJ
10866 * linespec.c (find_methods): Handle constructors specially for now.
10867
6b230f1b
CV
108682002-02-14 Corinna Vinschen <vinschen@redhat.com>
10869
10870 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10871 handling.
10872 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10873 standard_coerce_float_to_double().
10874
1ea98d12
CF
108752002-02-14 Christopher Faylor <cgf@redhat.com>
10876
10877 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10878 GDBINIT_FILENAME.
10879
dd47e6fd
EZ
108802002-02-14 Elena Zannoni <ezannoni@redhat.com>
10881
10882 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10883 find_variant_by_name, because it confuses the multiarch
10884 framework. Return NULL if there isn't an architecture with the
10885 user supplied name, instead of forcing a different one without
10886 recording the change with the multiarch machinery.
10887 (find_variant_by_name): Delete.
10888
d7e39b9e
PS
108892002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10890
10891 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10892 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10893
76e42a4f
MH
108942002-02-13 Martin M. Hunt <hunt@redhat.com>
10895
aaa38bb5 10896 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
10897 print_frame_info_listing_hook, set current_source_symtab.
10898
0a30fbc4
DJ
108992002-02-14 Daniel Jacobowitz <drow@mvista.com>
10900
10901 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10902 and remove unused $(INCLUDE_DIR).
10903 Add regcache.c to OBS.
10904 Add generated register protocol files to clean target.
10905 Update dependencies for new objects, obsolete old target code.
10906
10907 * gdbserver/linux-low.c: Remove all platform-specific code to
10908 new files. Remove various dead code. Update to use regcache
10909 functionality.
10910 * gdbserver/remote-utils.c (fromhex): Add return statement
10911 to quiet warning.
10912 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10913 constant.
10914 (input_interrupt): Add integer parameter to match prototype
10915 of a signal handler.
10916 (outreg): Use register_data ().
10917 (prepare_resume_reply): Use gdbserver_expedite_regs.
10918 * gdbserver/server.c (main): Dynamically allocate own_buf because
10919 PBUFSIZ is no longer constant. Use registers_to_string () and
10920 registers_from_string ().
10921 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10922 for error (), fatal (), and warning (). Update definition of
10923 PBUFSIZ to use regcache functionality. Add include guard.
10924 * gdbserver/utils.c (fatal): Add missing ``const''.
10925 (warning): New function.
10926
10927 * regformats/regdat.sh: Include "regcache.h" in generated files.
10928 Provide init_registers () function.
10929 * regformats/regdef.h: Add prototype for set_register_cache ().
10930 Add include guard.
10931
10932 * gdbserver/linux-arm-low.c: New file.
10933 * gdbserver/linux-i386-low.c: New file.
10934 * gdbserver/linux-ia64-low.c: New file.
10935 * gdbserver/linux-m68k-low.c: New file.
10936 * gdbserver/linux-mips-low.c: New file.
10937 * gdbserver/linux-ppc-low.c: New file.
10938 * gdbserver/linux-sh-low.c: New file.
10939
10940 * gdbserver/regcache.c: New file.
10941 * gdbserver/regcache.h: New file.
10942
10943 * gdbserver/low-linux.c: Removed obsolete file.
10944
4cc841d0
DJ
109452002-02-14 Daniel Jacobowitz <drow@mvista.com>
10946
10947 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10948 * config/i386/linux.mt: Likewise.
10949 * config/ia64/linux.mt: Likewise.
10950 * config/m68k/linux.mh: Likewise.
10951 * config/powerpc/linux.mh: Likewise.
10952 * config/mips/linux.mt: Likewise.
10953
10954 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10955
10956 * config/i386/i386lynx.mh: Mark gdbserver variables
10957 as (currently) obsolete for this target.
10958 * config/i386/nbsd.mt: Likewise.
10959 * config/i386/nbsdelf.mt: Likewise.
10960 * config/m32r/m32r.mt: Likewise.
10961 * config/m68k/m68klynx.mh: Likewise.
10962 * config/m68k/nbsd.mt: Likewise.
10963 * config/m68k/sun3os4.mh: Likewise.
10964 * config/mips/vr5000.mt: Likewise.
10965 * config/ns32k/nbsd.mt: Likewise.
10966 * config/pa/hppabsd.mh: Likewise.
10967 * config/pa/hppaosf.mh: Likewise.
10968 * config/powerpc/nbsd.mt: Likewise.
10969 * config/rs6000/rs6000lynx.mh: Likewise.
10970 * config/s390/s390.mt: Likewise.
10971 * config/s390/s390x.mt: Likewise.
10972 * config/sparc/sparclynx.mh: Likewise.
10973 * config/sparc/sun4os4.mh: Likewise.
10974 * config/i386/x86-64linux.mt: Likewise.
10975 * config/sparc/linux.mh: Likewise.
10976
a85f51e7
DJ
109772002-02-14 Daniel Jacobowitz <drow@mvista.com>
10978
10979 * configure.tgt: Configure gdbserver only for known working
10980 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10981 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10982 SUBDIRS if it is configured. Update comment for ${nativefile}.
10983 * configure: Regenerated.
10984
65554fef
MS
109852002-02-13 Michael Snyder <msnyder@redhat.com>
10986
670a52db
MS
10987 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10988
6dbdc4a3
MS
10989 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10990 (default_gcore_mach): Just return 0, work around a problem in bfd.
10991 (default_gcore_target): OK to return NULL if exec_bfd is null.
10992 (make_mem_sec): Use a cast, avoid a warning.
10993
10994 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 10995 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
10996 sizeof (host pointer) != sizeof (target pointer)).
10997 (procfs_make_note_section): Avoid overflow in psargs string.
10998
aaa38bb5 10999 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11000 implementation return an error.
11001
110022002-02-13 Rodney Brown <rbrown64@csc.com.au>
11003
11004 * procfs.c (procfs_make_note_section): Provide a default definition
11005 (for alpha-dec-osf4.0f). Fix typos.
11006
1e4d76e7
EZ
110072002-02-13 Elena Zannoni <ezannoni@redhat.com>
11008
11009 * linux-proc.c: Add include of regcache.h.
11010 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11011
b6d1a1d5
AC
110122002-02-13 Andrew Cagney <ac131313@redhat.com>
11013
11014 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
11015 * memattr.c (create_mem_region): Disallow useless empty region.
11016 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11017 non-overlapping.
b6d1a1d5 11018
6c6ea35e
MC
110192002-02-13 Michael Chastain <mec@shout.net>
11020
11021 * defs.h: Kill CONST_PTR.
11022 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11023 * c-lang.c (c_builtin_types): Likewise.
11024 * ch-lang.c (ch_builtin_types): Likewise.
11025 * f-lang.c (f_builtin_types): Likewise.
11026 * language.c (unknown_builtin_types): Likewise.
11027 * m2-lang.c (m2_builtin_types): Likewise.
11028 * p-lang.c (pascal_builtin_types): Likewise.
11029 * scm-lang.c (c_builtin_types): Likewise.
11030
3e0b0f48
KS
110312002-02-13 Keith Seitz <keiths@redhat.com>
11032
11033 * arm-tdep.h (arm_get_next_pc): Add declaration.
11034
67255d04
RE
110352002-02-13 Richard Earnshaw <rearnsha@arm.com>
11036
11037 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11038 with other related struct-returning functions.
11039 (arm_extract_struct_value_address): New function.
11040 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11041 initialize float_format, double_format and long_double_format as
11042 appropriate to the endianness of the target.
11043 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11044 (arm_use_struct_convention): Delete declaration.
11045 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11046
079777f6
KS
110472002-02-13 Keith Seitz <keiths@redhat.com>
11048
11049 * defs.h (core_addr_to_string_nz): New function.
11050
34588f23
MK
110512002-02-13 Mark Kettenis <kettenis@gnu.org>
11052
11053 Apply missing bits of 2002-01-15 patch.
11054 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11055 (fill_fpregset): Use i387_fill_fsave.
11056
49b563f9
KS
110572002-02-12 Keith Seitz <keiths@redhat.com>
11058
49b563f9
KS
11059 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11060 (core_addr_to_string_nz): New function.
11061
aeb98c60
RE
110622002-02-11 Richard Earnshaw <rearnsha@arm.com>
11063
11064 * arm-linux-nat.c: Really include arm-tdep.h.
11065 * config/arm/tm-linux.h (struct type, struct value): Declare.
11066
65554fef
MS
110672002-02-11 Michael Snyder <msnyder@redhat.com>
11068
11069 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11070 (gcore section): Ifdef for Solaris and Unixware only.
11071 (procfs_do_thread_registers): Unixware needs one lwpstatus
11072 per thread (not one prstatus or pstatus).
11073 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11074 not over all gdb threads. For unixware, call elfcore_write_pstatus
11075 once before iterating over threads.
11076
34e8f22d
RE
110772002-02-11 Richard Earnshaw <rearnsha@arm.com>
11078
11079 * arm-tdep.h: New file.
11080 * arm-tdep.c: Include arm-tdep.h.
11081 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11082 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11083 (arm_print_float_info, arm_register_type, convert_to_extended)
11084 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11085 (arm_extract_return_value, arm_register_name): Make static.
11086 (arm_software_single_step): Similarly. Fix types in declaration.
11087 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11088 (arm_store_return_value, arm_store_struct_return): New functions.
11089 (arm_gdbarch_init): Register the above functions. Also register
11090 call_dummy_start_offset, sizeof_call_dummy_words,
11091 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11092 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 11093 max_register_virtual_size, register_size. Set up
34e8f22d
RE
11094 prologue_cache.saved_regs here, rather than ...
11095 (_initialize_arm_tdep): ... here.
11096 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11097 declarations.
11098 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11099 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11100 (arm_print_float_info, arm_register_type, convert_to_extended)
11101 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11102 (arm_extract_return_value, arm_register_name): Delete declarations.
11103 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11104 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11105 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11106 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11107 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11108 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11109 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11110 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11111 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11112 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11113 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11114 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11115 interface.
11116 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11117 * remote-rdi.c remote-rdp.c: Likewise.
11118 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11119 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11120 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11121 definition.
11122
11123 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11124 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11125 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11126 from non-ARM_ prefixed definitions.
11127 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11128 all uses of above.
11129 * remote-rdi.c remote-rdp.c: Likewise.
11130 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11131
148754e5
RE
111322002-02-11 Richard Earnshaw <rearnsha@arm.com>
11133
11134 * arm-tdep.c (arm_frameless_function_invocation)
11135 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11136 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11137 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11138 (arm_pop_frame, arm_get_next_pc): Make static.
11139 (arm_gdbarch_init): Register above in gdbarch structure.
11140 (arm_read_fp): Renamed from arm_target_read_fp.
11141 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11142 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11143 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11144 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11145 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11146 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11147 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
11148 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11149 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11150 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11151 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 11152
434d2d4f
DJ
111532002-02-10 Daniel Jacobowitz <drow@mvista.com>
11154
11155 * symtab.c (compare_search_syms): New function.
11156 (sort_search_symbols): New function.
11157 (search_symbols): Sort symbols after searching rather than
11158 before.
11159
55241689
AC
111602002-02-10 Andrew Cagney <ac131313@redhat.com>
11161
11162 * NEWS: Linux -> GNU/Linux.
11163
028c194b
AC
111642002-02-10 Andrew Cagney <ac131313@redhat.com>
11165
11166 * gdbarch.sh: For for level one methods, disallow a definition
11167 when partially multi-arched. Add comments explaining rationale.
11168 * gdbarch.h: Re-generate.
11169
6acf50cd
AC
111702002-02-10 Andrew Cagney <ac131313@redhat.com>
11171
11172 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11173 multi-arch partial.
aaa38bb5 11174
50248794
AC
111752002-02-10 Andrew Cagney <ac131313@redhat.com>
11176
11177 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11178 field. Use diff -u.
11179 * gdbarch.c: Re-generate.
11180
c30e0066
AC
111812002-02-10 Andrew Cagney <ac131313@redhat.com>
11182
9b56c5f3 11183 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
11184 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11185 partial.
11186
6e6d6484
AC
111872002-02-10 Andrew Cagney <ac131313@redhat.com>
11188
11189 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11190 multi-arch partial.
11191 (PUSH_ARGUMENTS): Switch to using predefault.
11192 * gdbarch.c: Regenerate.
11193
c203844d
AC
111942002-02-10 Andrew Cagney <ac131313@redhat.com>
11195
11196 * valops.c (PUSH_ARGUMENTS): Delete definition.
11197 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11198 partial. Default to default_push_arguments.
11199 * gdbarch.h, gdbarch.c: Regenerate.
11200
b5a2688f
AC
112012002-02-09 Andrew Cagney <ac131313@redhat.com>
11202
11203 * defs.h (throw_exception): Rename return_to_top_level. Update
11204 comments.
11205 * utils.c (error_stream, internal_verror, quit): Ditto.
11206 * top.c (throw_exception, catcher): Ditto.
11207 * sparclet-rom.c (sparclet_load): Ditto.
11208 * remote.c (interrupt_query, minitelnet): Ditto.
11209 * remote-sds.c (interrupt_query): Ditto.
11210 * remote-mips.c (mips_error, mips_kill): Ditto.
11211 * ocd.c (interrupt_query): Ditto.
11212 * monitor.c (monitor_interrupt_query): Ditto.
11213 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11214 * target.h: Update comment.
aaa38bb5 11215
b5a2688f 11216 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 11217
2fa5c1e0
AC
112182002-02-09 Andrew Cagney <ac131313@redhat.com>
11219
11220 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11221 default_double_format.
11222 * gdbarch.h, gdbarch.c: Re-generate.
11223 * findvar.c (floatformat_unknown): Delete variable definition.
11224 * doublest.h (floatformat_unknown): Delete variable declaration.
11225
da966255
JB
112262002-02-09 Jim Blandy <jimb@redhat.com>
11227
11228 * stabsread.c (read_type): Add code to parse Sun's syntax for
11229 prototyped function types.
11230
123a4891
AC
112312002-02-09 Andrew Cagney <ac131313@redhat.com>
11232
11233 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11234 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11235
fb39c8f3
PS
112362002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11237
11238 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11239 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11240 now _initialize_xcoffsolib gets called again and overrides the
11241 commands from solib.c in a native configuration.
11242
0b87a11d
MK
112432002-02-09 Mark Kettenis <kettenis@gnu.org>
11244
11245 * doublest.c (store_typed_floating): Don't try to return a value.
11246 Fixes PR gdb/290.
11247
bdc2fc72
JB
112482002-02-08 Jim Blandy <jimb@redhat.com>
11249
11250 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11251 is prototyped and has no arguments, print its argument list as
11252 `(void)'.
11253
da69bbcf
CD
112542002-02-08 Chris Demetriou <cgd@broadcom.com>
11255
11256 * MAINTAINERS (write-after-approval): Add myself.
11257 (paper-trail): I've escaped!
aaa38bb5 11258
b69571f5
CF
112592002-02-08 Christopher Faylor <cgf@redhat.com>
11260
11261 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11262 changes.
11263 (_initialize_check_for_gdb_ini): Ditto.
11264
f6871398
MH
112652002-02-08 Martin M. Hunt <hunt@redhat.com>
11266
11267 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11268 xaprintf -> xasprintf.
11269
4e52d31c
PM
112702002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11271
11272 * win32-nat.c: Remove use of printf and sprintf functions.
11273
39bbf761
RE
112742002-02-08 Richard Earnshaw <rearnsha@arm.com>
11275
11276 * arm-tdep.c (arm_frame_chain_valid): Make static.
11277 (arm_push_arguments): Likewise.
11278 (arm_gdbarch_init): New function.
11279 (_initialize_arm_tdep): Call it.
11280 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11281 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11282 (FRAME_CHAIN_VALID): Delete.
11283 (arm_frame_chain_valid): Delete declaration.
11284 (PUSH_ARGUMENTS): Delete.
11285 (arm_push_arguments): Delete declaration.
11286 (CALL_DUMMY_P): Delete.
11287
9c9532c9
CV
112882002-02-08 Andrew Cagney <ac131313@redhat.com>
11289 Corinna Vinschen <vinschen@redhat.com>
11290
11291 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11292 on builtin float types.
11293
4e8f7a8b
DJ
112942002-02-08 Daniel Jacobowitz <drow@mvista.com>
11295
11296 * utils.c: Include <curses.h> before "bfd.h".
11297 * tui/tui-hooks.c: Likewise.
11298 * tui/tui.c: Likewise.
11299 * tui/tuiCommand.c: Likewise.
11300 * tui/tuiData.c: Likewise.
11301 * tui/tuiDataWin.c: Likewise.
11302 * tui/tuiDisassem.c: Likewise.
11303 * tui/tuiGeneralWin.c: Likewise.
11304 * tui/tuiIO.c: Likewise.
11305 * tui/tuiLayout.c: Likewise.
11306 * tui/tuiRegs.c: Likewise.
11307 * tui/tuiSource.c: Likewise.
11308 * tui/tuiSourceWin.c: Likewise.
11309 * tui/tuiStack.c: Likewise.
11310 * tui/tuiWin.c: Likewise.
11311
cd4bffcf
EZ
113122002-02-07 Elena Zannoni <ezannoni@redhat.com>
11313
11314 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11315 to include space for pseudoregs as well. Update loops accordingly.
11316 (sh_fp_frame_init_saved_regs): Ditto.
11317 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11318
26806ce2
AC
113192002-02-07 Andrew Cagney <ac131313@redhat.com>
11320
11321 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11322 Add Richard Earnshaw to Arm maintainers.
11323
97fdab62
AC
113242002-02-07 Andrew Cagney <ac131313@redhat.com>
11325
a6b98203
AC
11326 * defs.h (warning_begin): Delete declaration.
11327
97fdab62
AC
11328 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11329 Delete macro.
11330
78b29b40
MS
113312002-02-07 Michael Snyder <msnyder@redhat.com>
11332
aaa38bb5 11333 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
11334 Logic bug, remove misplaced else.
11335
d8849953
KD
113362002-02-07 Klee Dienes <klee@apple.com>
11337
11338 * fork-inferior.c (fork_inferior): Add '!' to the list of
11339 characters that need to be quoted when building a string for the
11340 shell. Quote '!' specifically with a backslash, since CSH chokes
11341 when trying to evaluate "str!str".
aaa38bb5 11342
095778a0
NC
113432002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11344
11345 * rdi-share/host.h: Only provide a typedef for bool if it is not
11346 defined.
11347
1900040c
MS
113482002-02-04 Michael Snyder <msnyder@redhat.com>
11349
11350 * breakpoint.h (enum bptype): Add new overlay event bp type.
11351 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 11352
1900040c
MS
11353 * breakpoint.c (create_internal_breakpoint): New function.
11354 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11355 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11356 (create_thread_event_breakpoint): Ditto.
11357 (create_solib_event_breakpoint): Ditto.
11358 (create_overlay_event_breakpoint): New function.
11359 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11360 (update_breakpoints_after_exec): Delete and re-initialize
11361 overlay event breakpoints after an exec. Add FIXME comment
11362 about longjmp breakpoint.
11363 (print_it_typical): Ignore overlay event breakpoints.
11364 (print_one_breakpoint): Ditto.
11365 (mention): Ditto.
11366 (bpstat_what): Do not stop for overlay event breakpoints.
11367 (delete_breakpoint): Don't delete overlay event breakpoints.
11368 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11369 (breakpoint_re_set): Re-create overlay event breakpoint.
11370
11371 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11372 (overlay_manual_command): Disable overlay breakpoints.
11373 (overlay_off_command): Disable overlay breakpoints.
11374
082fc60d
RE
113752002-02-06 Richard Earnshaw <rearnsha@arm.com>
11376
11377 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11378 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11379 to here from config/tm-arm.h.
11380 (coff_sym_is_thumb): Make static.
11381 (arm_elf_make_msymbol_special): New function.
11382 (arm_coff_make_msymbol_special): New function.
11383 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11384 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11385 (coff_sym_is_thumb): Delete declaration.
11386 (arm_elf_make_msymbol_special): Declare.
11387 (arm_coff_make_msymbol_special): Declare.
11388 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11389 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11390
039c5766
RE
113912002-02-06 Richard Earnshaw <rearnsha@arm.com>
11392
11393 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11394
113952002-02-06 Richard Earnshaw <rearnsha@arm.com>
11396
11397 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11398 * gdbarch.c gdbarch.h: Regenerate.
11399 * arch-utils.c (default_print_float_info): New function.
11400 * arch-utils.h (default_print_float_info): Prototype it.
11401 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11402 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11403 (PRINT_FLOAT_INFO): Document it.
11404
11405 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11406 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11407 (PRINT_FLOAT_INFO): Define.
11408
58fa08f0
PM
114092002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11410
aaa38bb5 11411 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
11412 Add typecast to sprintf argument to suppress a warning.
11413
7393af7c
PM
114142002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11415
58fa08f0 11416 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
11417 to allow easier handling of pass state.
11418 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11419 that gives exception name and address.
11420 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 11421 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 11422 exceptions added.
aaa38bb5
AJ
11423 (child_continue): Correctly report continue_status.
11424 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 11425 TARGET_SIGNAL_0 (new default value).
aaa38bb5 11426 (child_resume): consider sig argument passed to decide if
7393af7c
PM
11427 the exception should be passed to debuggee or not.
11428
6af4589c
MS
114292002-02-05 Michael Snyder <msnyder@redhat.com>
11430
11431 * regcache.c (fetch_register): Call target_fetch_register
11432 only if we don't call FETCH_PSEUDO_REGISTER.
11433 (store_register): Call target_store_register only if we
11434 don't call STORE_PSEUDO_REGISTER.
11435
a2cf933a
EZ
114362002-02-05 Elena Zannoni <ezannoni@redhat.com>
11437
11438 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11439 ELF_MAKE_MSYMBOL_SPECIAL.
11440 * gdbarch.c, gdbarch.h: Regenerate.
11441 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 11442 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
11443 * elfread.c (elf_symtab_read): Compile use of
11444 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11445 multiarched.
11446 * coffread.c (coff_symtab_read): Ditto, for
11447 COFF_MAKE_MSYMBOL_SPECIAL.
11448
6bb7be43
JB
114492002-02-05 Jim Blandy <jimb@redhat.com>
11450
11451 * solib-svr4.c (svr4_truncate_ptr): New function.
11452 (svr4_relocate_section_addresses): Do the address arithmetic with
11453 the appropriate truncation for target addresses, even when
11454 CORE_ADDR is larger than a target address.
11455
e18651ec
DJ
114562002-02-05 Daniel Jacobowitz <drow@mvista.com>
11457
11458 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11459 to (int *).
11460
6b2725be
DJ
114612002-02-05 Daniel Jacobowitz <drow@mvista.com>
11462
11463 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11464 code.
11465
fca9e603
DJ
114662002-02-05 Daniel Jacobowitz <drow@mvista.com>
11467
11468 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11469
6c537a52
DJ
114702002-02-05 Daniel Jacobowitz <drow@mvista.com>
11471
11472 * gdbserver/linux-low.c: Remove unused include files.
11473
d844cde6
DJ
114742002-02-05 Daniel Jacobowitz <drow@mvista.com>
11475
11476 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11477 (read_inferior_memory): Use it.
11478 (write_inferior_memory): Likewise.
11479
d07c63e7
DJ
114802002-02-05 Daniel Jacobowitz <drow@mvista.com>
11481
11482 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11483 grubbing through sys_errlist.
11484
da6d8c04
DJ
114852002-02-05 Daniel Jacobowitz <drow@mvista.com>
11486
11487 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11488
5b421780
PM
114892002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11490 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11491
9f60d481
AC
114922002-02-04 Andrew Cagney <ac131313@redhat.com>
11493
11494 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11495 (do_sfunc, set_cmd_sfunc): New functions.
11496
11497 * command.h (struct cmd_list_element): Add field func.
11498 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11499 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11500 * cli/cli-decode.h: Ditto.
11501
11502 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11503 (help_all, help_cmd_list): Ditto.
11504 (find_cmd, complete_on_cmdlist): Ditto.
11505 * top.c (execute_command): Ditto.
11506
11507 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11508 function.sfunc.
11509
11510 * infcmd.c (notice_args_read): Fix function signature.
11511
11512 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11513 * cli/cli-decode.c (add_set_cmd): Ditto.
11514 * utils.c (initialize_utils): Ditto.
11515 * maint.c (_initialize_maint_cmds): Ditto.
11516 * infrun.c (_initialize_infrun): Ditto.
11517 * demangle.c (_initialize_demangler): Ditto.
11518 * remote.c (add_packet_config_cmd): Ditto.
11519 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11520 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11521 * proc-api.c (_initialize_proc_api): Ditto.
11522 * kod.c (_initialize_kod): Ditto.
11523 * valprint.c (_initialize_valprint): Ditto.
11524 * top.c (init_main): Ditto.
11525 * infcmd.c (_initialize_infcmd): Ditto.
11526 * corefile.c (_initialize_core): Ditto.
11527 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11528 * arch-utils.c (initialize_current_architecture): Ditto.
11529 (_initialize_gdbarch_utils): Ditto.
11530 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11531
11532 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11533 * wince.c (_initialize_inftarg): Ditto.
11534 * symfile.c (_initialize_symfile): Ditto.
11535 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11536 * language.c (_initialize_language): Ditto.
11537 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11538
f9ba0717
MS
115392002-02-04 Michael Snyder <msnyder@redhat.com>
11540
11541 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11542
0c74b2a7
DJ
115432002-02-04 Daniel Jacobowitz <drow@mvista.com>
11544
11545 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11546 Add rules for building the register data files.
11547
c638789f
DJ
115482002-02-04 Daniel Jacobowitz <drow@mvista.com>
11549
11550 * regformats/regdat.sh: Add braces to the definition of
11551 expedite_regs_${arch}.
11552
db253027
DJ
115532002-02-04 Daniel Jacobowitz <drow@mvista.com>
11554
11555 * regformats/regdef.h (struct reg): Add comment describing the
11556 requirements for offset and size fields.
11557
206be19c
AS
115582002-02-04 Andreas Schwab <schwab@suse.de>
11559
11560 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11561 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11562
181c1381
RE
115632002-02-04 Richard Earnshaw <rearnsha@arm.com>
11564
11565 * gdbarch.sh (copyright): Update years in generated header.
11566 (SMASH_TEXT_ADDRESS): Add rule.
db253027 11567 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
11568 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11569 * dbxread.c: Likewise.
11570 * dwarfread.c: Likewise.
11571 * elfread.c: Likewise.
11572 * somread.c: Likewise.
11573
11574 * arm-tdep.c (arm_smash_text_address): New function.
11575 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11576
fa4ba8da
PM
115772002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11578
11579 Add support for hardware watchpoints on win32 native.
aaa38bb5 11580 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 11581 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 11582 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
11583 of debug registers.
11584 (debug_registers_changed): New variable. Reflects when debug registers
11585 are changed and need to be written to inferior.
aaa38bb5 11586 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
11587 was set, used when new threads are created.
11588 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11589 i386-nat code.
11590 (thread_rec): Set dr array if id is the thread of current_event .
11591 (child_continue, child_resume): Change the debug registers for all
11592 threads if debug_registers_changed.
11593 (child_add_thread): Change the debug registers if debug_registers_used.
11594 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11595 Link nm.h to new nm-cygwin.h file.
11596 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11597 of hardware registers.
11598
a73c86fb
AC
115992002-02-03 Andrew Cagney <ac131313@redhat.com>
11600
11601 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11602 Restore behavour broken by 2002-01-20 Andrew Cagney
11603 <ac131313@redhat.com> IEEE_FLOAT removal.
11604
acf5ed49
DJ
116052002-02-03 Daniel Jacobowitz <drow@mvista.com>
11606
11607 * c-valprint.c (c_val_print): Pass a proper valaddr to
11608 cp_print_class_method.
11609 * valops.c (search_struct_method): If there is only one method
11610 and args is NULL, return that method.
11611
493d28d5
DJ
116122002-02-03 Daniel Jacobowitz <drow@mvista.com>
11613
11614 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11615 accessing tag_name directly.
11616
7495dfdb
DJ
116172002-02-03 Daniel Jacobowitz <drow@mvista.com>
11618
11619 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11620 of accessing tag_name directly.
11621
dd6bda65
DJ
116222002-02-03 Daniel Jacobowitz <drow@mvista.com>
11623
11624 PR gdb/280
11625 * gdbtypes.c (replace_type): New function.
11626 * gdbtypes.h (replace_type): Add prototype.
11627 * stabsread.c (read_type): Use replace_type.
11628
88fe217c
RE
116292002-02-03 Richard Earnshaw <rearnsha@arm.com>
11630
11631 * Makefile.in (memattr.o): Add missing dependencies rule.
11632
e5d66720
PS
116332002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11634
11635 * breakpoint.c (break_at_finish_command): Really export.
11636 (break_at_finish_at_depth_command): Ditto.
11637 (tbreak_at_finish_command): Ditto.
11638 * hppa-tdep.c: Include completer.h.
11639 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11640 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11641
fffee0be
AC
116422002-02-01 Andrew Cagney <ac131313@redhat.com>
11643
11644 * utils.c (do_write): New function.
11645 (error_stream): Rewrite combining the code from error_begin and
11646 verror.
11647 (verror): Rewrite using error_stream.
11648 (error_begin): Delete function.
11649
255e7dbf
AC
116502002-02-01 Andrew Cagney <ac131313@redhat.com>
11651
11652 * utils.c (error_begin): Make static.
11653 * defs.h (error_begin): Delete declaration.
11654
11655 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11656 (decode_line_1): Use cplusplus_error instead of error_begin,
11657 cplusplus_hint and return_to_top_level.
11658 * coffread.c (coff_symfile_read): Use error instead of error_begin
11659 and return_to_top_level.
11660 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11661
ddfe3c15
AC
116622002-02-01 Andrew Cagney <ac131313@redhat.com>
11663
11664 * language.h (type_error, range_error): Make string parameter
11665 constant.
11666 * language.c (warning_pre_print): Delete extern declaration.
11667 * dwarfread.c (warning_pre_print): Ditto.
11668 * language.c (type_error, range_error): Rewrite to use verror and
11669 vwarning instead of warning_begin.
11670
03ac34d5
MS
116712002-02-01 Michael Snyder <msnyder@redhat.com>
11672
261c4ca2
MS
11673 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11674 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 11675
e00d1dc8
AC
116762002-02-01 Andrew Cagney <ac131313@redhat.com>
11677
11678 * command.h (NO_FUNCTION): Delete macro.
11679 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11680 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11681 * tracepoint.c (_initialize_tracepoint): Ditto.
11682 * cli/cli-decode.c (add_set_cmd): Ditto.
11683 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 11684
76b79d6e
DJ
116852002-02-01 Daniel Jacobowitz <drow@mvista.com>
11686
11687 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11688 Update ``this'' pointer when calling virtual functions.
11689
799f9e91
MS
116902002-02-01 Michael Snyder <msnyder@redhat.com>
11691
c7bd442c 11692 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
11693 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11694
3cf384d4
DJ
116952002-02-01 Daniel Jacobowitz <drow@mvista.com>
11696
11697 * regformats/reg-arm.dat: New file.
11698 * regformats/reg-i386.dat: New file.
11699 * regformats/reg-ia64.dat: New file.
11700 * regformats/reg-m68k.dat: New file.
11701 * regformats/reg-mips.dat: New file.
11702 * regformats/reg-ppc.dat: New file.
11703 * regformats/reg-sh.dat: New file.
11704 * regformats/regdef.h: New file.
11705 * regformats/regdat.sh: New file.
11706
0defa245
RE
117072002-02-01 Richard Earnshaw <reanrsha@arm.com>
11708
11709 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11710 (arm_frame_args_address, arm_frame_locals_address): New functions.
11711 (arm_frame_num_args): New function.
11712 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11713 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11714 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11715
405f26e6
MS
117162002-01-31 Michael Snyder <msnyder@redhat.com>
11717
502fd408
MS
11718 * breakpoint.c (break_at_finish_command): Export.
11719 (break_at_finish_at_depth_command): Export.
11720 (tbreak_at_finish_command): Export.
d6020d45 11721 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 11722 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 11723 "txbreak" commands, which are HPPA specific.
502fd408 11724
7d35e135
MS
11725 * printcmd.c (disassemble_command): Remove an ancient
11726 artifact of an old merge.
11727
aaa38bb5 11728 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
11729 Define enum constant values for overlay mode.
11730 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
11731 (overlay_is_mapped, overlay_auto_command,
11732 overlay_manual_command): Ditto.
d874f1e2 11733
aaa38bb5
AJ
11734 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11735 breakpoint_here_p, breakpoint_inserted_here_p,
11736 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
11737 describe_other_breakpoints, check_duplicates, clear_command):
11738 Coding standard fixes.
11739
8add0441 11740 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 11741 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
11742 code: check bfd SEC_READONLY flag for section.
11743
e351066e
AC
117442002-01-31 Andrew Cagney <ac131313@redhat.com>
11745
7d35e135 11746 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 11747
8a48e967
DJ
117482002-01-30 Daniel Jacobowitz <drow@mvista.com>
11749
11750 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11751 data symbols, since we search based on textlow and texthigh.
11752 (find_pc_sect_symtab): Likewise.
11753
f5a96129
AC
117542002-01-30 Andrew Cagney <ac131313@redhat.com>
11755
11756 * defs.h (vwarning): Declare.
f5a96129
AC
11757 * utils.c (vwarning): New function.
11758 (warning): Call vwarning.
11759 (warning_begin): Delete function.
11760
11761 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11762 the warning message.
11763 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11764 warning_begin.
11765
cefd4ef5
MS
117662002-01-30 Michael Snyder <msnyder@redhat.com>
11767
1a703748
MS
11768 * NEWS: Mention "set trust-readonly-sections" command.
11769 Mention generate-core-file command.
cefd4ef5 11770
3a11626d
MS
117712002-01-15 Michael Snyder <msnyder@redhat.com>
11772
11773 * target.c: New command, "set trust-readonly-sections on".
11774 (do_xfer_memory): Honor the suggestion to trust readonly sections
11775 by reading them from the object file instead of from the target.
11776 (initialize_targets): Register command "set trust-readonly-sections".
11777
d1c7e53b
AC
117782002-01-29 Andrew Cagney <ac131313@redhat.com>
11779
11780 * parse.c (target_map_name_to_register): Simplify, search regs and
11781 pseudo-regs using a single loop.
11782
e2c9a72c
AC
117832002-01-30 Andrew Cagney <ac131313@redhat.com>
11784
11785 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11786
69824b4e
MK
117872002-01-15 Rodney Brown <rbrown64@csc.com.au>
11788
11789 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11790 * config/i386/i386v42mp.mh: Add i387-nat.o .
11791 * i386v4-nat.c: Include i387-nat.h.
11792 (supply_fpregset): Use i387_supply_fsave.
11793 (fill_fpregset): Use i387_fill_fsave.
11794
6eb69eab
RE
117952002-01-30 Richard Earnshaw <rearnsha@arm.com>
11796
11797 * arm-tdep.c (arm_call_dummy_words): Define.
11798 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11799 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11800 (CALL_DUMMY_WORDS): Define.
11801 (arm_call_dummy_words): Declare.
11802 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11803 (arm_linux_call_dummy_words): Declare.
11804
9852326a
AS
118052002-01-30 Andreas Schwab <schwab@suse.de>
11806
11807 * m68klinux-nat.c: Fix last change to use regcache_collect
11808 instead of referencing registers[] directly.
11809
977a3030
AC
118102002-01-29 Andrew Cagney <ac131313@redhat.com>
11811
11812 * parse.c (target_map_name_to_register): Delete code wrapped in
11813 #ifdef REGISTER_NAME_ALIAS_HOOK.
11814
2076c72b
MS
118152002-01-28 Michael Snyder <msnyder@redhat.com>
11816
11817 * regcache.c (legacy_read_register_gen): Need to be able to
11818 read pseudo-register as well as real register.
11819 (legacy_write_register_gen): Ditto.
11820
8fcc723b
AC
118212002-01-28 Andrew Cagney <ac131313@redhat.com>
11822
11823 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11824 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11825 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11826 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11827 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11828 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11829 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11830 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11831 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11832 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11833 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11834 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11835 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11836 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11837 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11838 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11839 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11840 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11841 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11842 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11843
afe64c1a
AC
118442002-01-28 Andrew Cagney <ac131313@redhat.com>
11845
11846 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11847 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11848 (initialize_current_architecture): Update target_byte_order using
11849 information from BFD.
aaa38bb5 11850 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
11851 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11852
75bc7ddf
AC
118532002-01-28 Andrew Cagney <ac131313@redhat.com>
11854
11855 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11856 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11857
11858 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11859 #ifdef INVALID_FLOAT.
11860 * infcmd.c (do_registers_info): Ditto.
11861 * values.c (unpack_double): Ditto. Add comment.
11862
11863 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11864 already commented out.
11865
0280a90a
AS
118662002-01-26 Andreas Schwab <schwab@suse.de>
11867
11868 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11869 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11870 registers and add support for PTRACE_GETREGS.
11871
7072a954
AC
118722002-01-24 Andrew Cagney <ac131313@redhat.com>
11873
11874 GDB 5.1.1 released from 5.1 branch.
11875 * NEWS: Add 5.1.1 news.
11876 * README: Sync with 5.1 branch.
11877
86f902e0
FF
118782002-01-23 Fred Fish <fnf@redhat.com>
11879
11880 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11881 stabstring on initial malloc. Reallocing will copy it for us,
11882 if necessary.
11883
8af51c36
EZ
118842002-01-23 Elena Zannoni <ezannoni@redhat.com>
11885
aaa38bb5 11886 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
11887 (HFILES_NO_SRCDIR): Remove hpread.h.
11888 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11889 (hpread.o): Update dependencies.
11890 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11891
11892 * hp-psymtab-read.c: Remove file.
11893 * hp-symtab-read.c: Remove file.
11894 * hpread.h: Remove file.
11895
11896 * hpread.c: Merge all contents of hp-psymtab-read.c,
11897 hp-symtab-read.c and hpread.h into this file, as it was prior to
11898 January 1999.
11899
11900 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 11901 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
11902 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11903 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11904
dc5cfeb6
EZ
119052002-01-23 Elena Zannoni <ezannoni@redhat.com>
11906
11907 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11908 fill_gregset): Call gdbarch_tdep() just once, assign result to
11909 variable and use that, instead of calling the function several
11910 times.
11911
ea87b71b
AO
119122002-01-24 Alexandre Oliva <aoliva@redhat.com>
11913
11914 * configure.host: Accept sparcv9 as alias for sparc64.
11915 * configure.tgt: Likewise.
11916
13fc0c2f
KB
119172002-01-22 Kevin Buettner <kevinb@redhat.com>
11918
11919 * solib-aix5.c (build_so_list_from_mapfile)
11920 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11921 arguments is not reversed.
11922 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11923 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 11924
7bd872fe
EZ
119252002-01-22 Elena Zannoni <ezannoni@redhat.com>
11926
11927 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11928 modified version of obsolete sh_fetch_pseudo_register.
11929 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11930 (sh4_register_read): New function.
11931 (sh_pseudo_register_write): New function. Renamed and modified
11932 version of obsolete sh_store_pseudo_register.
11933 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11934 (sh4_register_write): New function.
11935 (sh_gdbarch_init): Remove setting of gdbarch function
11936 fetch_pseudo_register and store_pseudo_register. Remove setting of
11937 register_convert_to_raw, register_convert_to_virtual,
11938 register_convertible.
11939 (sh_sh4_register_convertible): Delete. No longer needed. All is
11940 taken care by architecture specific functions
11941 register_read/register_write.
11942 (sh_sh4_register_convert_to_virtual): Make static.
11943 (sh_sh4_register_convert_to_raw): Ditto.
11944
069e84fd
AC
119452002-01-22 Andrew Cagney <ac131313@redhat.com>
11946
11947 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11948 (floatformat_is_nan, floatformat_mantissa): Ditto.
11949
11950 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11951 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11952 builtin_type_ieee_double_little,
11953 builtin_type_ieee_double_littlebyte_bigword,
11954 builtin_type_m68881_ext, builtin_type_i960_ext,
11955 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11956 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11957 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11958 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11959
211a4f69
CV
119602002-01-22 Corinna Vinschen <vinschen@redhat.com>
11961
11962 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11963 parameter. Set frameless flag if it exists and depended of
11964 whether the scanned function is frameless or not.
11965 (xstormy16_skip_prologue): If function is frameless, return
11966 result of xstormy16_scan_prologue().
11967 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11968 call.
11969
f81353e4
EZ
119702002-01-21 Elena Zannoni <ezannoni@redhat.com>
11971
11972 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11973 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11974 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11975 sh_sh4_register_byte, sh_sh4_register_raw_size,
11976 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11977 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11978 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11979 sh_store_pseudo_register, sh_do_pseudo_register): Call
11980 gdbarch_tdep() just once, assign result to variable and use that,
11981 instead of calling the function several times.
11982
63c73a17
MK
119832002-01-20 Mark Kettenis <kettenis@gnu.org>
11984
11985 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11986 macros instead of LAST_FPU_CTRL_REGNUM.
11987 (store_register): Likewise.
11988
39ad761d
JB
119892002-01-21 Jim Blandy <jimb@redhat.com>
11990
11991 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11992 is up-to-date before running the program, not just when a program
11993 exits.
11994
3d74b771
FF
119952002-01-21 Fred Fish <fnf@redhat.com>
11996
11997 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11998 when we have found all instructions we are looking for.
11999
966fbf70
RE
120002002-01-21 Richard Earnshaw <rearnsha@arm.com>
12001
12002 * arm-tdep.c (arm_register_name): New function.
12003 (arm_registers_names): Make static.
12004 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12005 (arm_register_name): Declare.
12006 (REGISTER_NAME): Use it.
12007
c3b4394c
RE
120082002-01-21 Richard Earnshaw <rearnsha@arm.com>
12009 Kevin Buettner <kevinb@redhat.com>
12010
12011 Convert arm targets to new FRAME interface.
12012 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12013 (arm_frame_find_save_regs): Delete.
12014 (arm_frame_init_saved_regs): New.
12015 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12016 Allocate extra_info as required. Convert all uses of fsr.regs
12017 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12018 to use extra_info.
12019 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12020 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12021 (check_prologue_cache, save_prologue_cache): Likewise.
12022 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12023 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12024 (FRAME_FIND_SAVED_REGS): Delete.
12025 (arm_frame_find_saved_regs): Delete prototype.
12026 (arm_frame_init_saved_regs): New prototype.
12027 (FRAME_INIT_SAVED_REGS): Define.
12028
61d99182
AC
120292002-01-20 Andrew Cagney <ac131313@redhat.com>
12030
12031 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12032
6aaea291
AC
120332002-01-20 Andrew Cagney <ac131313@redhat.com>
12034
12035 From Jeff Law <law@redhat.com>:
12036 * infttrace.c: Include <sys/pstat.h>.
12037 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12038 exec file if the ttrace equivalent fails.
12039
15f698d2
AC
120402002-01-20 Andrew Cagney <ac131313@redhat.com>
12041
12042 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12043 (closeLogFile): Ditto.
12044
f86ddd7c
MC
120452002-01-20 Michael Chastain <mec@shout.net>
12046
12047 * top.c (print_gdb_version): Bump copyright year to 2002.
12048
904507ce
AC
120492002-01-20 Andrew Cagney <ac131313@redhat.com>
12050
12051 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12052 Zannoni and Eli Zaretskii.
12053
d7f0b9ce
DJ
120542002-01-20 Daniel Jacobowitz <drow@mvista.com>
12055
12056 * buildsym.c: Update copyright years.
12057 * c-typeprint.c: Likewise.
12058 * dwarf2read.c: Likewise.
12059 * f-typeprint.c: Likewise.
12060 * gdbtypes.c: Likewise.
12061 * gdbtypes.h: Likewise.
12062 * hp-symtab-read.c: Likewise.
12063 * hpread.c: Likewise.
12064 * mdebugread.c: Likewise.
12065 * p-typeprint.c: Likewise.
12066
3fd3d7d2
AC
120672002-01-20 Andrew Cagney <ac131313@redhat.com>
12068
12069 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12070 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12071 byte-order selectable.
12072 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12073 * arch-utils.c: Ditto.
12074 (set_endian): Ditto.
12075 (set_endian_from_file): Ditto.
12076 * gdbserver/low-sim.c (create_inferior): Ditto.
12077 * gdbarch.sh: Ditto.
12078 * gdbarch.h: Re-generate.
aaa38bb5
AJ
12079 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12080 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12081 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12082 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12083 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12084 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12085 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
12086 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12087 macro definition.
12088 * config/mips/tm-wince.h: Remove #undef of macro
12089 TARGET_BYTE_ORDER_SELECTABLE.
12090 * config/sh/tm-wince.h: Ditto.
12091
b02dede2
DJ
120922002-01-20 Daniel Jacobowitz <drow@mvista.com>
12093
12094 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12095 member function fields. Add accessor macro
12096 TYPE_FN_FIELD_ARTIFICIAL.
12097 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12098 * c-typeprint.c (c_type_print_base): Skip artificial member
12099 functions.
12100
c3643761
DJ
121012002-01-20 Daniel Jacobowitz <drow@mvista.com>
12102
12103 * f-typeprint.c: Delete unused function f_type_print_args.
12104 * p-typeprint.c: Delete unused function pascal_type_print_args.
12105
8176bb6d
DJ
121062002-01-20 Daniel Jacobowitz <drow@mvista.com>
12107
12108 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12109 comment. Add ``artificial'' to ``union field_location''.
12110
12111 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12112
12113 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12114 * mdebugread.c (parse_symbol): Likewise.
12115 * stabsread.c (define_symbol): Likewise.
12116 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12117 initializing TYPE_FIELD_BITPOS to n (obsolete).
12118 (hpread_doc_function_type): Likewise.
12119 * hpread.c (hpread_function_type): Likewise.
12120
7fd60527
AC
121212002-01-20 Andrew Cagney <ac131313@redhat.com>
12122
12123 * configure.in (host_makefile_frag): Only require a host makefile
12124 fragment when a native build.
12125 * configure: Re-generate.
12126
c2f05ac9
AC
121272002-01-20 Andrew Cagney <ac131313@redhat.com>
12128
12129 * doublest.h (floatformat_from_type): Declare.
12130 * doublest.c (floatformat_from_type): New function.
12131 (convert_typed_floating): Use.
12132
12133 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12134 call to function floatformat_from_type.
12135
12136 * gdbarch.sh (IEEE_FLOAT): Delete.
12137 * gdbarch.h, gdbarch.c: Re-generate.
12138 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12139 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12140 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12141 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12142 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12143 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12144 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12145 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12146 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12147 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12148 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
12149 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12150
12151 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12152 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12153 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12154 * sh-tdep.c (sh_gdbarch_init): Ditto.
12155 * mips-tdep.c (mips_gdbarch_init): Ditto.
12156 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12157 * cris-tdep.c (cris_gdbarch_init): Ditto.
12158
abf22e64
AJ
121592002-01-20 Jiri Smid <smid@suse.cz>
12160
12161 * configure.host, configure.tgt: Support x86-64.
12162 * NEWS: Note new target x86-64.
12163
b7c4cbf8
AJ
12164 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12165 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12166 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12167 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12168 x86-64-linux-nat.o): Fix dependencies.
12169
82600034
AC
121702002-01-19 Andrew Cagney <ac131313@redhat.com>
12171
12172 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12173 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12174 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12175 * config/sparc/xm-sun4os4.h: Delete file.
12176 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 12177
bbe5c628
AC
121782002-01-19 Andrew Cagney <ac131313@redhat.com>
12179
12180 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12181 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12182 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12183 * config/i386/i386lynx.mh (XM_FILE): Delete.
12184 * config/rs6000/xm-rs6000ly.h: Delete file.
12185 * config/sparc/xm-sparclynx.h: Delete file.
12186 * config/m68k/xm-m68klynx.h: Delete file.
12187 * config/i386/xm-i386lynx.h: Delete file.
12188 * config/xm-lynx.h: Delete file.
12189 * config/djgpp/fnchange.lst: Update.
12190
f8453e34
JT
121912002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12192
12193 * alpha-tdep.c (alpha_register_byte): New function.
12194 (alpha_register_raw_size): Ditto.
12195 (alpha_register_virtual_size): Ditto.
12196 (alpha_skip_prologue_internal): Renamed from
12197 alpha_skip_prologue.
12198 (alpha_skip_prologue): New version that calls
12199 alpha_skip_prologue_internal.
12200 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12201 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12202 second argument from alpha_skip_prologue.
12203 (REGISTER_BYTE): Use alpha_register_byte.
12204 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12205 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12206 (FRAMELESS_FUNCTION_INVOCATION): Use
12207 generic_frameless_function_invocation_not.
12208 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12209 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12210
52d9e613
AC
122112002-01-19 Andrew Cagney <ac131313@redhat.com>
12212
12213 * config/mips/xm-news-mips.h: Delete file.
12214 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12215
12216 * config/m88k/xm-m88k.h: Delete file.
12217 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12218 * config/m88k/xm-delta88v4.h: Ditto.
12219 * config/m88k/xm-delta88.h: Ditto.
12220
12221 * config/alpha/xm-fbsd.h: Delete file.
12222 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12223
12224 * config/sparc/xm-sparc.h: Delete file.
12225 * Makefile.in (xm-sun4os4.h): Delete dependency.
12226 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12227 * config/sparc/xm-sun4os4.h: Ditto.
12228 * config/sparc/xm-linux.h: Ditto.
12229
12230 * config/i386/xm-windows.h: Delete file.
12231
2d1b2124
AC
122322002-01-19 Andrew Cagney <ac131313@redhat.com>
12233
12234 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12235 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12236
ee1f65f0
JT
122372002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12238
12239 * alpha-tdep.c (alpha_call_dummy_words): New.
12240 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12241 (CALL_DUMMY_P): Define.
12242 (CALL_DUMMY_WORDS): Define.
12243 (SIZEOF_CALL_DUMMY_WORDS): Define.
12244
98081e55
PB
122452002-01-19 Per Bothner <per@bothner.com>
12246
12247 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12248 isn't NULL, which can happen with some gcj-3.x-produced code.
12249
0d056799
JT
122502002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12251
12252 * alpha-tdep.c (alpha_register_virtual_type): New function.
12253 (alpha_init_frame_pc_first): Ditto.
12254 (alpha_fix_call_dummy): Ditto.
12255 (alpha_store_struct_return): Ditto.
12256 (alpha_extract_struct_value_address): Ditto.
12257 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12258 alpha_register_virtual_type.
12259 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12260 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12261 alpha_extract_struct_value_address.
12262 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12263 (INIT_FRAME_PC): Use init_frame_pc_noop.
12264 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12265
4604bcad
MK
122662002-01-19 Mark Kettenis <kettenis@gnu.org>
12267
12268 * i386gnu-nat.c: Include "i386-tdep.h".
12269 (fetch_fpregs): Simplify code dealing with uninitialized floating
12270 point states such that it doesn't require FP7_REGNUM.
12271
140f9984
JT
122722002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12273
abf22e64
AJ
12274 * alpha-tdep.c (frame_extra_info): New.
12275 (alpha_find_saved_regs): Make static. Use
140f9984
JT
12276 frame->extra_info.
12277 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
12278 (alpha_frame_saved_pc): Use frame->extra_info.
12279 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12280 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
12281 (init_extra_frame_info): Rename to...
12282 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 12283 (alpha_print_extra_frame_info): New function.
140f9984
JT
12284 (alpha_frame_locals_address): Ditto.
12285 (alpha_frame_args_address): Ditto.
abf22e64 12286 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
12287 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12288 alpha_frame_args_address.
abf22e64 12289 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 12290 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
12291 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12292 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
12293 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12294 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12295
d734c450
JT
122962002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12297
12298 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12299 (alpha_cannot_fetch_register): Ditto.
12300 (alpha_cannot_store_register): Ditto.
12301 (alpha_register_convertible): Ditto.
12302 (alpha_use_struct_convention): Ditto.
12303 * config/alpha/tm-alpha.h: Update copyright years.
12304 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12305 (INNER_THAN): Use core_addr_lessthan.
12306 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12307 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12308 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12309 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12310 (FRAME_CHAIN): Remove unnecessary cast.
12311
b4ceaee6
AC
123122002-01-18 Andrew Cagney <ac131313@redhat.com>
12313
12314 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12315 obsolete.
12316
0a65a603
AC
123172002-01-18 Andrew Cagney <ac131313@redhat.com>
12318
12319 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12320 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12321 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12322 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12323 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12324 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12325 * x86-64-linux-nat.c: Ditto.
12326
636a6dfc
JT
123272002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12328
abf22e64 12329 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
12330 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12331 (REGISTER_NAME): Define.
12332
acceddb6
JT
123332002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12334
12335 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12336
ec32e4be
JT
123372002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12338
12339 * alpha-tdep.c: Update copyright years.
12340 (alpha_next_pc): New function.
12341 (alpha_software_single_step): Ditto.
12342 * config/alpha/tm-alpha.h: Add prototype for
12343 alpha_software_single_step.
12344
e771a871
JT
123452002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12346
12347 * alphabsd-nat.c: Update copyright years.
12348 (fill_gregset): Use regcache_collect.
12349 (fill_fpregset): Likewise.
12350 (fetch_inferior_registers): Only fetch integer registers
12351 if requested to do so.
12352 (store_inferior_registers): Only store integer registers
12353 if requested to do so.
12354
7708fa01
AC
123552002-01-17 Andrew Cagney <ac131313@redhat.com>
12356
12357 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12358 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12359 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12360 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12361 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12362 * config/arm/linux.mh (XDEPFILES): Delete.
12363 * config/arm/nbsd.mh (XDEPFILES): Delete.
12364 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12365 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12366 * config/i386/i386m3.mh (XDEPFILES): Delete.
12367 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12368 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12369 * config/i386/fbsd.mh (XDEPFILES): Delete.
12370 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12371 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12372 * config/i386/i386v4.mh (XDEPFILES): Delete.
12373 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12374 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12375 * config/i386/i386aix.mh (XDEPFILES): Delete.
12376 * config/i386/go32.mh (XDEPFILES): Delete.
12377 * config/i386/cygwin.mh (XDEPFILES): Delete.
12378 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12379 * config/i386/i386mach.mh (XDEPFILES): Delete.
12380 * config/i386/i386v32.mh (XDEPFILES): Delete.
12381 * config/i386/linux.mh (XDEPFILES): Delete.
12382 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12383 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12384 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12385 * config/i386/i386sco.mh (XDEPFILES): Delete.
12386 * config/i386/i386v.mh (XDEPFILES): Delete.
12387 * config/i386/nbsd.mh (XDEPFILES): Delete.
12388 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12389 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12390 * config/i386/symmetry.mh (XDEPFILES): Delete.
12391 * config/i386/obsd.mh (XDEPFILES): Delete.
12392 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12393 * config/ia64/linux.mh (XDEPFILES): Delete.
12394 * config/ia64/aix.mh (XDEPFILES): Delete.
12395 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12396 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12397 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12398 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12399 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12400 * config/m68k/linux.mh (XDEPFILES): Delete.
12401 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12402 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12403 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12404 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12405 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12406 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12407 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12408 * config/m88k/delta88.mh (XDEPFILES): Delete.
12409 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12410 * config/m88k/m88k.mh (XDEPFILES): Delete.
12411 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12412 * config/mips/linux.mh (XDEPFILES): Delete.
12413 * config/mips/irix6.mh (XDEPFILES): Delete.
12414 * config/mips/irix5.mh (XDEPFILES): Delete.
12415 * config/mips/irix4.mh (XDEPFILES): Delete.
12416 * config/mips/irix3.mh (XDEPFILES): Delete.
12417 * config/mips/decstation.mh (XDEPFILES): Delete.
12418 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12419 (NATDEPFILES): Move core-aout.o to here.
12420 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12421 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12422 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12423 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12424 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12425 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12426 * config/pa/hpux11.mh (XDEPFILES): Delete.
12427 * config/powerpc/aix.mh (XDEPFILES): Delete.
12428 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12429 * config/powerpc/linux.mh (XDEPFILES): Delete.
12430 * config/romp/rtbsd.mh: Rename XDEPFILES.
12431 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12432 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12433 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12434 * config/s390/s390.mh (XDEPFILES): Delete.
12435 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12436 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12437 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12438 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12439 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12440 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12441 * config/sparc/linux.mh (XDEPFILES): Delete.
12442 * config/vax/vaxult.mh (XDEPFILES): Delete.
12443 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12444 * Makefile.in (DEPFILES): Remove XDEPFILES.
12445
375fc983
AC
124462002-01-17 Andrew Cagney <ac131313@redhat.com>
12447
12448 * utils.c (internal_verror): Fix comments, default is yes not no.
12449 Update queries to match. Default to quit and dump core.
12450
8926118c
AC
124512002-01-17 Andrew Cagney <ac131313@redhat.com>
12452
12453 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12454 copyright.
12455 * defs.h, event-top.c, gdbcmd.h: Ditto.
12456 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12457 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12458 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12459 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12460 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12461 * mi/mi-main.c:Ditto.
12462
12463 * stack.c, symfile.c: Update copyright.
12464
45b7b345
DJ
124652002-01-17 Daniel Jacobowitz <drow@mvista.com>
12466
db728ff7
DJ
12467 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12468 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12469 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12470 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 12471
db728ff7
DJ
124722002-01-17 Daniel Jacobowitz <drow@mvista.com>
12473
12474 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12475 * gdbserver/low-lynx.c (myattach): Likewise.
12476 * gdbserver/low-nbsd.c (myattach): Likewise.
12477 * gdbserver/low-sim.c (myattach): Likewise.
12478 * gdbserver/low-sparc.c (myattach): Likewise.
12479 * gdbserver/low-sun3.c (myattach): Likewise.
12480
12481 * gdbserver/low-linux.c (myattach): New function.
45b7b345 12482
db728ff7 12483 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
12484 (main): Handle "--attach".
12485
8de3c354
AC
124862002-01-16 Andrew Cagney <ac131313@redhat.com>
12487
12488 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12489 maintainer.
12490
b0129042
DJ
124912002-01-15 Daniel Jacobowitz <drow@mvista.com>
12492
12493 * c-typeprint.c (is_type_conversion_operator): Add additional
12494 check for non-conversion operators.
12495
ba8679fb 124962002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
12497
12498 * linux-proc.c: Add "info proc" command, a la procfs.c.
12499 (read_mapping): New function, abstract and re-use code.
12500 (linux_find_memory_regions): Use new func read_mapping.
12501 (linux_info_proc_cmd): New function, implement "info proc".
12502 (_initialize_linux_proc): Add new command "info proc".
12503
e4f9b4d5
MS
125042002-01-15 Michael Snyder <msnyder@redhat.com>
12505
12506 * symfile.c (generic_load): Use bfd_map_over_sections method
12507 instead of manipulating bfd structure members directly.
12508 (add_section_size_callback): New function, bfd sections callback
12509 used by generic_load.
12510 (load_sections_callback): New function, bfd sections callback
12511 used by generic_load.
12512
08cf96df
EZ
125132002-01-15 Elena Zannoni <ezannoni@redhat.com>
12514
abf22e64 12515 [Based on work by Jim Blandy]
08cf96df
EZ
12516 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12517 (builtin_type_vec128): Export.
12518 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12519 types.
12520 (builtin_type_vec128): New builtin type for 128 bit vector
12521 registers.
12522 (build_gdbtypes): Initialize builtin_type_v16qi and
12523 builtin_type_v8hi. Create the vec128 register builtin type
12524 structure.
12525 (build_builtin_type_vec128): New function.
abf22e64 12526 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
12527 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12528 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12529 AltiVec register to new builtin type.
12530
d7242108
DJ
125312001-01-15 Daniel Jacobowitz <drow@mvista.com>
12532
12533 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12534 to make_cv_type.
12535
4ee3352d
AC
125362002-01-14 Andrew Cagney <ac131313@redhat.com>
12537
12538 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12539 CLEAN_UP_REGISTER_VALUE.
12540 * regcache.c (supply_register): Update only call.
12541
f015b2e7
AC
125422002-01-14 Andrew Cagney <ac131313@redhat.com>
12543
12544 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12545 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12546 a29k-*-vxworks* targets as obsolete.
12547
356ae49d
MS
125482002-01-14 Michael Snyder <msnyder@redhat.com>
12549
12550 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12551 until we can resolve portability issues.
12552 * gregset.h: Remove references to fpxregs.
12553 * gcore.c (gcore_command): Initialize note_sec to NULL.
12554
ade8f45e
AC
125552002-01-13 Andrew Cagney <ac131313@redhat.com>
12556
12557 * signals.c (target_signal_to_name): Rewrite. Only use
12558 signals[].name when in bounds and non-NULL.
abf22e64 12559
89c49e7a
AC
125602002-01-13 Andrew Cagney <ac131313@redhat.com>
12561
12562 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12563 * signals.c (target_signal_to_name): Verify that SIG is within the
12564 bounds of the signals array.
12565
4daa9f9f
AC
125662002-01-13 Andrew Cagney <ac131313@redhat.com>
12567
12568 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12569
ba4bbdcb
KS
125702002-01-13 Keith Seitz <keiths@redhat.com>
12571
12572 * stack.c (print_frame_info_base): Print the frame's pc
12573 only if when print_frame_info_listing_hook is not defined.
12574
575bbeb6
KS
125752002-01-13 Keith Seitz <keiths@redhat.com>
12576
12577 * varobj.c (varobj_set_value): Make sure that there were no
12578 errors evaluating the object before attempting to set its
12579 value.
12580 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12581 so this offset adjustment is no longer necessary.
12582 (create_child): Don't set the error flag if the child is
12583 a CPLUS_FAKE_CHILD.
12584 (value_of_child): If value_fetch_lazy fails, return NULL
12585 so that callers will be notified that an error occurred.
12586 (c_value_of_variable): Delay check of variable's validity
12587 until later. We actually want all structs and unions to have
12588 the value "{...}".
12589 Do not return "???" for variables which could not be evaluated.
12590 This error condition must be returned to the caller so that it
12591 can get the error condition from gdb.
12592 (cplus_name_of_child): Adjust index for vptr before figuring
12593 out the name of the child.
12594 (cplus_value_of_child): If a child's (real) parent is not valid,
12595 don't even bother trying to give a value for it. Just return
12596 an error. Change all instances in this function.
12597 (cplus_type_of_child): If our parent is one of the "fake"
12598 parents, we need to get at the type of the real parent, and
12599 derive the child's true type using this information.
12600
b76898ab
AC
126012002-01-13 Andrew Cagney <ac131313@redhat.com>
12602
12603 From 2002-01-09 John Marshall <johnm@falch.net>:
12604 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12605 sources.redhat.com, and tweak some related URLs which had
12606 suffered from linkrot.
12607
b6649e88
AC
126082002-01-13 Andrew Cagney <ac131313@redhat.com>
12609
12610 From Jeff law:
12611 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12612 structures passed in registers.
12613
82cc5033
EZ
126142002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12615
12616 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12617 white space which prevented compilation. Reported by DSK
12618 <dsk@student.unsw.edu.au>.
12619
ba5f2f8a
MS
126202002-01-11 Michael Snyder <msnyder@redhat.com>
12621
fbd35540
MS
12622 * symfile.c (build_section_addr_info_from_section_tab):
12623 Use bfd access method instead of manipulating bfd directly.
12624 (syms_from_objfile): Ditto.
12625 (simple_overlay_update_1): Ditto.
12626 (simple_overlay_update): Ditto.
12627 (generic_load): Ditto.
12628 (overlay_unmapped_address): FIXME comment, bfd access methods.
12629 (sections_overlap): FIXME comment, bfd access methods.
12630 (pc_in_mapped_range): FIXME comment, bfd access methods.
12631 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12632 (section_is_mapped): FIXME comment, bfd access methods.
12633 (section_is_overlay): FIXME comment, bfd access methods.
12634
ba5f2f8a
MS
12635 * symfile.c (generic_load): Whitespace and long line cleanups.
12636 Remove duplicate variable, change several local variables to
12637 more appropriate data types.
12638 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12639
17df2af6
AC
126402002-01-12 Andrew Cagney <ac131313@redhat.com>
12641
12642 From Peter Schauer:
12643 * language.c (longest_local_hex_string_custom): Use phex_nz to
12644 convert NUM to a hex string.
12645
ec920329
EZ
126462002-01-12 Elena Zannoni <ezannoni@redhat.com>
12647
12648 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12649 the function.
538a76d6 12650 Update Copyright year.
ec920329 12651
3abd2e01
AC
126522002-01-12 Andrew Cagney <ac131313@redhat.com>
12653
12654 * language.c (longest_raw_hex_string): Delete unused function.
12655
b21b22e0
PS
126562002-01-11 Petr Sorfa <petrs@caldera.com>
12657
12658 * MAINTAINERS (write-after-approval): Add myself.
12659 * dwarf2read.c (read_tag_string_type): Handling of
12660 DW_AT_byte_size.
12661 (read_tag_string_type): FORTRAN fix to prevent propagation of
12662 first string size.
12663 (set_cu_language): Handling of DW_LANG_Fortran95
12664
747fe712
RE
126652002-01-11 Richard Earnshaw <rearnsha@arm.com>
12666
12667 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12668 GETPID(inferior_ptid).
12669 (store_inferior_registers): Likewise.
12670
f1bea926
JM
126712002-01-10 Jason Merrill <jason@redhat.com>
12672
12673 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12674 Fix DW_OP_minus.
12675
ae940673
AC
126762002-01-10 Andrew Cagney <ac131313@redhat.com>
12677
12678 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12679 and bfd/elf32-sh-nbsd.c.
12680
00546b04
MS
126812002-01-10 Michael Snyder <msnyder@redhat.com>
12682
352ed7b4
MS
12683 * NEWS: Mention --pid and corefile/proc-id behavior change.
12684
c18be923
MS
12685 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12686 * gcore.c: Include cli/cli-decode.h instead of command.h.
12687
00546b04
MS
12688 * main.c (captured_main): Add new command line option "--pid".
12689 If the second command line argument (following the symbol-file)
12690 begins with a digit, try to attach to it before trying to open
12691 it as a corefile.
12692 (print_gdb_help): Document the "--pid" argument.
12693
db60ec62
EZ
126942002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12695
12696 * completer.c (command_completer): New function.
12697
12698 * completer.h <command_completer>: Add prototype.
12699
12700 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12701 completer for the "help" command.
12702
39c22d1a
JM
127032002-01-09 Jason Merrill <jason@redhat.com>
12704
12705 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12706
c564377f
MS
127072002-01-09 Michael Snyder <msnyder@redhat.com>
12708
975aec09
MS
12709 * i386-linux-nat.c (fill_fpxregset): Make global.
12710 (store_fpxregset): Ditto.
12711
db4a10fa
MS
12712 * gregset.h (gdb_fpxregset_t): Define.
12713 (supply_fpxregset): Prototype.
12714 (fill_fpxregset): Prototype.
12715
c564377f
MS
12716 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12717
c3d45d70
RE
127182002-01-09 Richard Earnshaw <rearnsha@arm.com>
12719
12720 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12721 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12722 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12723
fcc87af1
AC
127242002-01-09 Andrew Cagney <ac131313@redhat.com>
12725
12726 * MAINTAINERS: Update target maintainer rules so that any
12727 Maintainer can approve a tested patch for a maintenance-only
12728 target.
12729
dd96c05b
RE
127302002-01-09 Richard Earnshaw <rearnsha@arm.com>
12731
d4297db9 12732 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 12733
d4297db9 12734 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
12735 IN_SIGTRAMP.
12736
145fdc6e
MS
127372002-01-08 Michael Snyder <msnyder@redhat.com>
12738
12739 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12740 real name of the executable, rather than the /proc name.
12741
be4d1333
MS
127422002-01-03 Michael Snyder <msnyder@redhat.com>
12743
12744 Implement a "generate-core-file" command in gdb, save target state.
12745 * gcore.c: New file. Implement new command 'generate-core-file'.
12746 Save a corefile image of the current state of the inferior.
12747 * linux-proc.c: Add linux-specific code for saving corefiles.
12748 * target.h (struct target_ops): Add new target vectors for saving
12749 corefiles; to_find_memory_regions and to_make_corefile_notes.
12750 (target_find_memory_regions): New macro.
12751 (target_make_corefile_notes): New macro.
12752 * target.c (update_current_target): Inherit new target methods.
12753 (dummy_find_memory_regions): New place-holder method.
12754 (dummy_make_corefile_notes): New place-holder method.
12755 (init_dummy_target): Initialize new dummy target vectors.
12756 * exec.c (exec_set_find_memory_regions): New function.
12757 Allow the exec_ops vector for memory regions to be taken over.
12758 (exec_make_note_section): New function, target vector method.
12759 * defs.h (exec_set_find_memory_regions): Export prototype.
12760 * procfs.c (proc_find_memory_regions): New function, corefile method.
12761 (procfs_make_note_section): New function, corefile method.
12762 (init_procfs_ops): Set new target vector pointers.
12763 (find_memory_regions_callback): New function.
12764 (procfs_do_thread_registers): New function.
12765 (procfs_corefile_thread_callback): New function.
12766 * sol-thread.c (sol_find_memory_regions): New function.
12767 (sol_make_note_section): New function.
12768 (init_sol_thread_ops): Initialize new target vectors.
12769 * inftarg.c (inftarg_set_find_memory_regions): New function.
12770 Allow to_find_memory_regions vector to be taken over.
12771 (inftarg_set_make_corefile_notes): New function.
12772 Allow to_make_corefile_notes vector to be taken over.
12773 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12774 interface layer if not target_has_execution (may be a corefile).
12775 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12776 * config/sparc/sun4sol2.mh: Ditto.
12777 * config/alpha/alpha-linux.mh: Ditto.
12778 * config/arm/linux.mh: Ditto.
12779 * config/i386/x86-64linux.mh: Ditto.
12780 * config/ia64/linux.mh: Ditto.
12781 * config/m68k/linux.mh: Ditto.
12782 * config/mips/linux.mh: Ditto.
12783 * config/powerpc/linux.mh: Ditto.
12784 * config/sparc/linux.mh: Ditto.
12785
c6b92abd
MS
127862002-01-07 Michael Snyder <msnyder@redhat.com>
12787
12788 * arm-linux-nat.c: Remove references to regcache.c internal data
12789 (registers[] and register_valid[]).
12790
4b09dc8c
MS
127912002-01-07 Michael Snyder <msnyder@redhat.com>
12792
abf22e64
AJ
12793 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12794 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
12795 symbol file and shlibs.
12796 * Makefile.in: Add rule for linux-proc.o.
12797 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12798 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12799 * config/arm/linux.mh: Ditto.
12800 * config/i386/linux.mh: Ditto.
12801 * config/i386/x86-64linux.mh: Ditto.
12802 * config/ia64/linux.mh: Ditto.
12803 * config/m68k/linux.mh: Ditto.
12804 * config/mips/linux.mh: Ditto.
12805 * config/powerpc/linux.mh: Ditto.
12806 * config/sparc/linux.mh: Ditto.
12807
c25b74ac
PM
128082002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12809
12810 * win32-nat.c: Add i386-tdep.h dependency.
12811
94cd915f
MS
128122002-01-07 Michael Snyder <msnyder@redhat.com>
12813
c7cccb76
MS
12814 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12815 instead of bfd_get_arch_size. Don't bail out just because
12816 there's no exec_bfd.
abf22e64 12817
34c0bd93
MS
12818 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12819 * p-valprint.c (pascal_object_print_value): Ditto.
12820 * somread.c (som_symtab_read): Ditto.
12821 * symfile.c (simple_free_overlay_region_table): Ditto.
12822 * valops.c (value_assign): Ditto.
12823
21c1c920
MS
12824 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12825 use tilde_expand and strerror for opening save-tracepoints file.
12826
5bbd998e
MS
12827 * thread-db.c (thread_db_new_objfile): Indendation fix.
12828
94cd915f
MS
12829 * infptrace.c (GDB_MAX_ALLOCA): New define.
12830 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 12831 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
12832 can be overridden with whatever value is appropriate to the host).
12833 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12834 alloca to allocate potentially large buffer.
12835 * rs6000-nat.c (child_xfer_memory): Ditto.
12836 * symm-nat.c (child_xfer_memory): Ditto.
12837 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12838
494e8a93
JSC
128392002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12840
12841 From Nick Clifton <nickc@redhat.com>
12842 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12843
d0e1d48e
MS
128442002-01-07 Michael Snyder <msnyder@redhat.com>
12845
abf22e64 12846 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
12847 Don't use exec_bfd if it's NULL.
12848
290b2c7a
MK
128492002-01-06 Mark Kettenis <kettenis@gnu.org>
12850
abf22e64 12851 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 12852
aef21287
AC
128532002-01-06 Andrew Cagney <ac131313@redhat.com>
12854
12855 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12856 * gnu-nat.c: Ditto.
12857
30efa627
AC
128582002-01-06 Andrew Cagney <ac131313@redhat.com>
12859
12860 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12861 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12862 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12863 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12864 z8k-coff have not been multi-arched. Update z8k-coff build
12865 status.
12866
9b4ff276
AC
128672002-01-06 Andrew Cagney <ac131313@redhat.com>
12868
12869 * MAINTAINERS: Mark a29k target as obsolete.
12870 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12871 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12872 comments.
12873 * NEWS: Note that a29k targets are obsolete.
12874 * a29k-tdep.c: Mark as obsolete.
12875 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12876 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12877 a29k-*-vxworks* targets as obsolete.
12878 * remote-adapt.c: Obsolete.
12879 * remote-eb.c: Obsolete.
12880 * remote-mm.c: Obsolete.
12881 * remote-udi.c: Obsolete.
12882 * config/a29k/a29k-udi.mt: Obsolete.
12883 * config/a29k/a29k.mt: Obsolete.
12884 * config/a29k/tm-a29k.h: Obsolete.
12885 * config/a29k/tm-vx29k.h: Obsolete.
12886 * config/a29k/vx29k.mt: Obsolete.
12887
a9011d31
AC
128882002-01-05 Andrew Cagney <ac131313@redhat.com>
12889
12890 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12891 with BFD_ENDIAN_BIG.
12892
9299404e
AC
128932002-01-05 Andrew Cagney <ac131313@redhat.com>
12894
12895 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12896 * configure, config.in: Re-generate.
12897 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12898 * defs.h: Do not include <endian.h>.
12899
7e89e357
JT
129002002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12901
12902 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12903 * config.in: Regenerate.
12904 * configure.in: Update copyright years.
12905 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12906 * configure: Regenerate.
12907 * i386bsd-nat.c: Update copyright years.
12908 (fill_gregset): Use regcache_collect.
12909 (fetch_inferior_registers): Only fetch integer registers
12910 if requested to do so. Add support for XMM registers
12911 using PT_GETXMMREGS.
12912 (store_inferior_registers): Only store integer registers
12913 if requested to do so. Add support for XMM registers
12914 using PT_SETXMMREGS.
12915 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12916 (store_inferior_registers): Remove.
12917 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12918 (fetch_elfcore_registers): New function.
12919 (i386nbsd_elfcore_fns): New.
12920 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12921 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12922 i386bsd-nat.o.
12923 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12924 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12925 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12926 * config/i386/tm-nbsd.h: Update copyright years.
12927 (HAVE_SSE_REGS): Define.
12928 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12929 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12930 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12931 (SIGCONTEXT_PC_OFFSET): Remove.
12932 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12933
a752853e
AC
129342002-01-05 Andrew Cagney <ac131313@redhat.com>
12935
12936 * configure.tgt: Remove powerpc-*-macos* target.
12937 * config/m68k/xm-mpw.h: Delete file.
12938 * config/xm-mpw.h: Delete file.
12939 * ser-mac.c: Delete file.
12940 * mpw-make.sed: Delete file.
12941 * mpw-config.in: Delete file.
12942 * mac-xdep.c: Delete file.
12943 * mac-gdb.r: Delete file.
12944 * mac-defs.h: Delete file.
12945 * mac-nat.c: Delete file.
12946 * config/powerpc/macos.mh: Delete file.
12947 * config/powerpc/macos.mt: Delete file.
12948 * config/powerpc/nm-macos.h: Delete file.
12949 * config/powerpc/tm-macos.h: Delete file.
12950 * source.c (openp, open_source_file): Remove obsolete code.
12951 * top.c (gdb_readline): Ditto.
12952 * utils.c (query): Ditto.
12953 * event-top.c (display_gdb_prompt): Ditto.
12954 * Makefile.in (ser-mac.o): Delete obsolete target.
12955 * NEWS: Update.
12956
d7449b42
AC
129572002-01-04 Andrew Cagney <ac131313@redhat.com>
12958
12959 * defs.h (BIG_ENDIAN): Delete macro definition.
12960 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12961 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12962 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12963 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12964 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12965 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12966 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12967 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12968 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12969 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12970 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12971 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12972 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12973 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12974 * gdbarch.c: Re-generate.
12975
356374e8
DJ
129762002-01-04 Daniel Jacobowitz <drow@mvista.com>
12977
12978 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12979 for core files.
12980
a2b8f8f8
JT
129812002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12982
12983 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12984
12466af9
AC
129852002-01-04 Andrew Cagney <ac131313@redhat.com>
12986
12987 * value.h (value_ptr): Delete typedef.
12988
3549ab40
JT
129892002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12990
12991 * i386nbsd-nat.c: Update copyright years.
12992 Include i386-tdep.h.
12993
fedbd091
EZ
129942002-01-04 Elena Zannoni <ezannoni@redhat.com>
12995
12996 * stabsread.c: Update copyright years.
12997
12998 From Debashis Mahata <debashis.mahata@wipro.com>:
12999 (read_struct_fields): Deal with Sun C compiler erroneous stab
13000 output for structs and unions.
fec8b34f 13001 Fix PR gdb/269.
fedbd091 13002
eb43544b
DJ
130032002-01-04 Daniel Jacobowitz <drow@mvista.com>
13004
13005 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13006 prototype.
13007
1514d34e
DJ
130082002-01-04 Daniel Jacobowitz <drow@mvista.com>
13009
13010 * cp-abi.c: Fix whitespace.
13011 (baseclass_offset): New wrapper function.
13012 * cp-abi.h (baseclass_offset): Add prototype.
13013 (struct cp_abi_ops): Add baseclass_offset pointer.
13014
13015 * valops.c (vb_match): Move to...
13016 * gnu-v2-abi.c (vb_match): here.
13017 * valops.c (baseclass_offset): Move to...
13018 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13019
13020 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13021
13022 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13023 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13024 * hpacc-abi.c (init_hpacc_ops): Likewise.
13025
7f8c9282
DJ
130262002-01-04 Daniel Jacobowitz <drow@mvista.com>
13027
13028 * valops.c (find_overload_match): Accept obj as a
13029 reference parameter. Update it before returning.
13030 * value.h (find_overload_match): Update prototype.
13031 * eval.c (evaluate_subexp_standard): Pass object to
13032 find_overload_match by reference.
13033
f23631e4
AC
130342002-01-03 Andrew Cagney <ac131313@redhat.com>
13035
13036 * valarith.c: Replace value_ptr with struct value pointer. Remove
13037 register attribute from value declarations.
13038 * valops.c: Ditto.
13039 * value.h: Ditto.
13040 * scm-lang.c (scm_lookup_name): Ditto.
13041
79e10fab 130422002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 13043
79e10fab
AC
13044 Abstract the functionality of iterating over mapped memory
13045 regions into a general purpose iterator function.
abf22e64 13046 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13047 iterator for memory sections.
13048 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13049 (solib_mappings_callback): New function, callback for above.
13050 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13051 (info_mappings_callback): New function, callback for above.
13052
13053 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13054
c5ad026a
MK
130552002-01-01 Mark Kettenis <kettenis@gnu.org>
13056
d2a7c97a
MK
13057 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13058 * i386-tdep.c: Include "elf-bfd.h".
13059 (process_note_abi_tag_sections): New function.
13060 (i386_gdbarch_init): Add code to recognize various OS/ABI
13061 combinations.
13062
c5ad026a
MK
13063 * maint.c (_initialize_maint_cmds): Add missing \ in
13064 string-literal.
13065
a1a5b71e 13066For older changes see ChangeLog-2001
c906108c
SS
13067\f
13068Local Variables:
13069mode: change-log
13070left-margin: 8
13071fill-column: 74
13072version-control: never
13073End:
This page took 0.915906 seconds and 4 git commands to generate.