* bcache.h: Update copyright.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
af5f3db6
AC
12002-07-12 Andrew Cagney <ac131313@redhat.com>
2
3 * bcache.h: Update copyright.
4 (struct bstring, struct bcache): Move definition to "bcache.c".
5 Replaced by opaque declaration.
6 (bcache_xfree): Replace free_bcache.
7 (bcache_xmalloc, bcache_memory_used): Declare.
8
9 * bcache.c: Update copyright.
10 (struct bstring, struct bcache): Moved to here from "bcache.h".
11 Update comments.
12 (bcache_xmalloc, bcache_memory_used): New functions.
13 (bcache_xfree): Replace function free_bcache.
14
15 * Makefile.in (objfiles.o): Add $(bcache_h).
16 (objfiles_h): Remove $(bcache_h).
17 (symfile.o): Add $(bcache_h).
18
19 * symmisc.c: Update copyright.
20 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
21 (print_objfile_statistics): Use bcache_memory_used.
22
23 * symfile.c: Include "bcache.h".
24 (reread_symbols): Use bcache_xfree.
25 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
26 (add_psymbol_to_list): Pass psymbol_cache by value.
27 (add_psymbol_with_dem_name_to_list): Ditto.
28
29 * objfiles.h: Update copyright.
30 (struct bcache): Declare opaque. Do not include "bcache.h".
31 (struct objfile): Change psymbol_cache and macro_cache to ``struct
32 bcache'' pointers.
33 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
34
35 * objfiles.c: Include "bcache.h". Update copyright.
36 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
37 macro_cache.
38 (free_objfile): Use bcache_xfree.
39
444199e7
GS
402002-07-11 Grace Sainsbury <graces@redhat.com>
41
42 * monitor.c (monitor_fetch_register): Make name a constant.
43 (monitor_store_register): Same.
44
261397f8
DJ
452002-07-11 Daniel Jacobowitz <drow@mvista.com>
46
47 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
48 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
49 (finish_block) For non-function blocks, hash the symbol table. For
50 function blocks, mark the symbol table as unhashed.
51 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
52 (msymbol_hash_iw): Likewise.
53 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
54 value.
55 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
56 (lookup_minimal_symbol): Likewise for both.
57 * symtab.h (struct block): Add `hashtable' flag. Comment the
58 hashtable.
59 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
60 (ALL_BLOCK_SYMBOLS): Update.
61 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
62 (struct symbol): Add `hash_next' pointer.
63 * symtab.c (lookup_block_symbol): Search using the hash table when
64 possible.
65 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
66 (search_symbols, find_addr_symbol): Likewise.
67
68 * dstread.c (process_dst_block): Clear hashtable bit for new block.
69 (read_dst_symtab): Likewise.
70 * jv-lang.c (get_java_class_symtab): Likewise.
71 * mdebugread.c: Include "gdb_assert.h".
72 (shrink_block): Assert that the block being modified is not hashed.
73 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
74 * symmisc.c (free_symtab_block): Walk the hash table when freeing
75 symbols.
76 (dump_symtab): Recognize hashed blocks.
77 * printcmd.c (print_frame_args): Assert that function blocks do not
78 have hashed symbol tables.
79 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
80 (fill_in_ada_prototype, debug_print_block): Likewise.
81 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
82
6f0eaa01
CV
832002-07-11 Corinna Vinschen <vinschen@redhat.com>
84
85 * stack.c (print_frame): Use result of frame_address_in_block()
86 instead of fi->pc when evaluating symbols.
87 (backtrace_command_1): Ditto.
88
a208b0cb
AC
892002-07-11 Andrew Cagney <cagney@redhat.com>
90
91 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
92 Make static.
93
94 * arm-tdep.c (arm_register_name): Make return type constant.
95
a6b6b089
AC
962002-07-10 Andrew Cagney <ac131313@redhat.com>
97
5ae5f592
AC
98 * win32-nat.c (has_detach_ability): Convert to strict ISO C
99 prototype.
100 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
101 * s390-tdep.c (s390_fp_regnum): Ditto.
102 (s390_read_fp): Ditto.
103 (s390_pop_frame): Ditto.
104 (_initialize_s390_tdep): Ditto.
105 * remote.c (get_remote_state): Ditto.
106 * procfs.c (mappingflags): Ditto.
107 * memattr.c (_initialize_mem): Ditto.
108 * mcore-tdep.c (mcore_pop_frame): Ditto.
109 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
110 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
111 * language.c (set_case_str): Ditto.
112 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
113 * frv-tdep.c (new_variant): Ditto.
114 (frv_stopped_data_address): Ditto.
115 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
116 (context_alloc): Ditto.
117 (frame_state_alloc): Ditto.
118 (unwind_tmp_obstack_init): Ditto.
119 (unwind_tmp_obstack_free): Ditto.
120 (cfi_read_fp): Ditto.
121 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
122 (cris_pop_frame): Ditto.
123 * c-lang.c (scanning_macro_expansion): Ditto.
124 (finished_macro_expansion): Ditto.
125 (c_preprocess_and_parse): Ditto.
126 * gdbarch.sh: Ditto.
127 * gdbarch.h, gdbarch.c: Regenerate.
128 * config/mn10200/tm-mn10200.h: Adjust indentation.
129 * target.c: Adjust indentation.
130 * symtab.h: Adjust indentation.
131 * stabsread.h: Adjust indentation.
132 * remote-es.c: Adjust indentation.
133 * os9kread.c: Adjust indentation.
134
1352002-07-10 Andrew Cagney <ac131313@redhat.com>
136
a6b6b089
AC
137 * wince.c (_initialize_wince): Rename _initialize_inftarg.
138 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
139
a1789893
GS
1402002-07-10 Grace Sainsbury <graces@redhat.com>
141
142 * NEWS: Mention m68k, mcore multi-arching.
143 * MAINTAINERS: Change status of m68k, mcore to reflect
144 multi-arching.
145
02f0d45d
DJ
1462002-07-10 Daniel Jacobowitz <drow@mvista.com>
147
148 * valops.c (find_overload_match): Free oload_syms.
149
f15f768e
JB
1502002-07-09 Joel Brobecker <brobecker@gnat.com>
151
152 Define HAVE_SYS_PROC_H if sys/proc.h exists
153 * configure.in: Add check for sys/proc.h
154 * config.in: Regenerate.
155 * configure: Regenerate.
156
902a7139
GS
1572002-07-09 Grace Sainsbury <graces@redhat.com>
158
159 * config/m68k/tm-m68k.h: Remove macros wrapped in
160 #if !GDB_MULTI_ARCH.
161
82e0fd98
DB
1622002-07-09 David O'Brien <obrien@FreeBSD.org>
163
164 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
165 (perror_with_name, remote_close, remote_open, expect, play): Static.
166
a534e424
AC
1672002-07-08 Andrew Cagney <ac131313@redhat.com>
168
169 * config.in, configure: Regenerate.
170
9b94f7bf
MK
1712002-07-08 Mark Kettenis <kettenis@gnu.org>
172
173 * dwarf2cfi.c: Include "gcore.h".
174 (execute_stack_op): Fix implementation of the
175 DW_OP_deref and DW_OP_deref_size operators by letting do their
176 lookup in the target.
177
1d34db41
MK
1782002-07-07 Mark Kettenis <kettenis@gnu.org>
179
180 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
181 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
182 tdep->sc_sp_offset.
183
79d5b63a
DJ
1842002-07-05 Daniel Jacobowitz <drow@mvista.com>
185
186 Fix PR gdb/595, gdb/602
187 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
188 Don't call value_cast, just read the vtable pointer; update comments
189 to match.
190
3bb912e8
GS
1912002-07-05 Grace Sainsbury <graces@redhat.com>
192
193 * config/mcore/tm-mcore.h: Remove file.
194 * config/mcore/mcore.mt: Remove definition of TM_FILE
195 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
196
ca39387d
MK
1972002-07-05 Mark Kettenis <kettenis@gnu.org>
198
199 * i386bsd-tdep.c: Include "gdb_string.h".
200
efdc1108
GS
2012002-07-04 Grace Sainsbury <graces@redhat.com>
202
203 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
204 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
205 mcore-tdep.
206 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
207 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
208 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
209 (RETVAL_REGNUM): Move macros from tm-mcore.h
210 (mcore_reg_struct_has_addr): New function.
211 (mcore_gdbarch_init): Added initializations for the macros removed
212 from tm-mcore.h.
213
bb21884d
MK
2142002-07-04 Mark Kettenis <kettenis@gnu.org>
215
216 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
217 traditonal string branding within the ELF header.
218
228c6d41
DJ
2192002-07-04 Daniel Jacobowitz <drow@mvista.com>
220
221 * symtab.c (remove_params): New function.
222 (make_symbol_overload_list): Use it instead of cplus_demangle.
223 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
224
2404952e
MK
2252002-07-04 Mark Kettenis <kettenis@gnu.org>
226
e5e4acad
MK
227 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
228
baadce09
MK
229 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
230 New variables.
231 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
232 and tdep->sigtramp_end.
233 * i386obsd-nat.c: New file.
234 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
235
2404952e
MK
236 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
237 Don't call get_current_frame().
238
9b4f1ba7
PM
2392002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
240
241 * i386-nat.c (child_post_startup_inferior): New function
242 calling i386_cleanup_dregs if
243 I386_USE_GENERIC_WATCHPOINTS is defined.
244 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
245 conditional to acknowledge that i386-nat.c has its
246 own child_post_startup_inferior function.
247
c0d1d883
MK
2482002-07-04 Mark Kettenis <kettenis@gnu.org>
249
00f8375e
MK
250 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
251 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
252 instead of MAX_REGISTER_RAW_SIZE.
253 (i386_extract_return_value, i386_extract_struct_value_address):
254 Convert to use regcache.
255 (i386_gdbarch_init): Set max_register_raw_size and
256 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
257 Set extract_return_value and extract_struct_value_address instead
258 of their deprecated variants.
259
c0d1d883
MK
260 Convert i386 target to generic dummy frames.
261 * i386-tdep.c: Include "symfile.h".
262 (i386_frameless_signal_p): Consider a function to be frameless if
263 the pc points at the first instruction of the function.
264 (i386_frame_chain): Handle (generic) call dummies.
265 (i386_frame_saved_pc): Likewise.
266 (i386_frame_init_saved_regs): Remove code dealing with call
267 dummies on the stack.
268 (i386_push_dummy_frame): Removed.
269 (i386_call_dummy_words): Removed.
270 (i386_fix_call_dummy): Removed.
271 (i386_push_return_address): New function.
272 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
273 parameter, and don't call get_current_frame.
274 (i386_pop_frame): New function.
275 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
276 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
277 entry_point_address, set call_dummy_breakpoint_offset to 0, set
278 call_dummy_length to 0, set call_dummy_words to NULL, set
279 sizeof_call_dummy_words to 0, set fix_call_dummy to
280 generic_fix_call_dummy, set pc_in_call_dummy to
281 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
282 generic_push_dummy_frame, set push_return_address to
283 i386_push_return_address and set frame_chain_valid to
284 generic_file_frame_chain_valid.
285
638c1580
ML
2862002-07-04 Michal Ludvig <mludvig@suse.cz>
287
288 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
289 byte offsets instead of an array of indexes.
290 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
291
049ee0e4
AC
2922002-07-03 Andrew Cagney <ac131313@redhat.com>
293
294 * gdbarch.sh (struct regcache): Add opaque declaration.
295 (EXTRACT_RETURN_VALUE): New architecture method.
296 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
297 * gdbarch.h, gdbarch.c: Regenerate.
298 * arch-utils.c (legacy_extract_return_value): New function.
299 * arch-utils.h (legacy_extract_return_value): Declare.
300 * values.c (value_being_returned): Re-enable code handling
301 EXTRACT_STRUCT_VALUE_ADDRESS. Move
302 deprecated_grub_regcache_for_registers call to block handling
303 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
304 (EXTRACT_RETURN_VALUE): Do not define.
305
4e0d9804
GS
3062002-07-03 Grace Sainsbury <graces@redhat.com>
307
308 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
309 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
310 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
311 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
312 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
313 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
314 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
315 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
316 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
317 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
318 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
319 argument so the function fits the prototype in the architecture
320 vector.
321 (mcore_pop_frame): Remove argument so the function fits the
322 prototype. Use get_current_frame instead of the argument.
323 (mcore_push_arguments): Change type of struct_return so the
324 function can be used in the architecture vector.
325 (mcore_store_struct_return): Add.
326 (mcore_frame_init_saved_regs): Add.
327 (mcore_gdbarch_init): Add function calls to replace the macros
328 removed from tm-mcore.h
329
36160dc4
AC
3302002-07-03 Andrew Cagney <ac131313@redhat.com>
331
332 * infcmd.c (print_return_value): Remove compatibility code calling
333 deprecated_grub_regcache_for_registers.
334
335 * values.c: Include "regcache.h".
336 (value_being_returned): Update. Use
337 deprecated_grub_regcache_for_registers to extract the register
338 buffer address.
339 * value.h (value_being_returned): Change ``retbuf'' parameter to a
340 ``struct regcache''.
341 * Makefile.in (values.o): Add dependency on $(regcache_h).
342
343 * inferior.h (run_stack_dummy): Change type of second parameter to
344 a ``struct regcache''.
345 * valops.c (hand_function_call): Change type of retbuf to ``struct
346 regcache''. Allocate using regcache_xmalloc, clean using
347 make_cleanup_regcache_xfree.
348 * infcmd.c (run_stack_dummy): Update. Use
349 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
350
351 * regcache.c (do_regcache_xfree): New function.
352 (make_cleanup_regcache_xfree): New function.
353 * regcache.h (make_cleanup_regcache_xfree): Declare.
354
e64d9b3d
MH
3552002-07-03 Martin M. Hunt <hunt@redhat.com>
356
4dd79c29
MH
357 * event-top.c (command_line_handler): Don't read past
358 beginning of buffer.
e64d9b3d 359
4dd79c29
MH
3602002-07-03 Martin M. Hunt <hunt@redhat.com>
361
e64d9b3d
MH
362 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
363 struct frame_id.
364 (varobj_create): Store frame_id for root.
365 (varobj_gen_name): Use xasprintf.
366 (varobj_update): Save and restore frame using get_frame_id() and
367 frame_find_by_id().
368 (create_child): Use xasprintf.
369 (new_root_variable): Initialize frame_id.
370 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
371 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
372 to prevent memory leak.
373
26e6c56a
AC
3742002-07-03 Andrew Cagney <ac131313@redhat.com>
375
376 * valops.c (hand_function_call): Move declaration of retbuf to
377 start of function, allocate using malloc, add a cleanup but before
378 the inf_status cleanup, cleanup the buffer. Rename local variable
379 old_chain to inf_status_cleanup.
380
f436dd25
MH
3812002-07-03 Martin M. Hunt <hunt@redhat.com>
382
383 * top.c (execute_command): Use cmd_func() and cmd_func_p().
384
385 * cli/cli-decode.c (cmd_func_p): New function.
386 (cmd_func): New function.
387
388 * command.h: Add cmd_func() and cmd_func_p().
389
4cfe2084
GS
3902002-07-03 Grace Sainsbury <graces@redhat.com>
391
392 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
393 (REGISTER_SIZE): Remove.
394 (MAX_REGISTER_RAW_SIZE): Remove.
395 (REGISTER_VIRTUAL_TYPE): Remove.
396 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
397 (REGISTER_NAME): Remove.
398 (USE_GENERIC_DUMMY_FRAMES): Remove.
399 (CALL_DUMMY): Remove.
400 (CALL_DUMMY_START_OFFSET): Remove.
401 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
402 (CALL_DUMMY_LOCATION): Remove.
403 (FIX_CALL_DUMMY): Remove.
404 (CALL_DUMMY_ADDRESS): Remove.
405 (SIZEOF_CALL_DUMMY_WORDS): Remove.
406 (SAVE_DUMMY_FRAME_TOS): Remove.
407 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
408 (mcore_register_virtual_type): New function.
409 (mcore_register_byte): New function.
410 (mcore_register_size): New function.
411 (mcore_register_name): New function.
412 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
413 macros removed from tm-mcore.h.
414 (mcore_dump_tdep): Add.
415 (_initialize_mcore_tdep): Add gdbarch_register call.
416
4fd667e9
MK
4172002-07-03 Mark Kettenis <kettenis@gnu.org>
418
419 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
420 frameless_look_for_prologue, such that we actually call this
421 function.
422
42f99ac2
JB
4232002-07-02 Joel Brobecker <brobecker@gnat.com>
424
425 * frame.h (frame_address_in_block): New function.
426
427 * blockframe.c (frame_address_in_block): New function extracted
428 from get_frame_block().
429 (get_frame_block): Use frame_address_in_block().
430 (block_innermost_frame): Use frame_address_in_block() to match
431 the frame pc address against the block boundaries rather than
432 the frame pc directly. This prevents a failure when a frame pc
433 is actually a return-address pointing immediately after the end
434 of the given block.
435
103a1597 4362002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
437
438 * MAINTAINERS: Add self under write after approval.
439
4402002-07-02 Grace Sainsbury <graces@redhat.com>
441
103a1597
GS
442 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
443 used in architecture vector. The default is
444 m68k_local_breakpoint_from_pc.
445 (m68k_local_breakpoint_from_pc): Add.
446 (enum): Add register numbers from tm-m68k.h.
447 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
448 vector.
449 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
450 GDB_MULTI_ARCH_PARTIAL.
451 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
452 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
453 m68k-tdep.c.
454 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
455 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
456 to enum in m68k-tdep.c
457
7a5a0534
JB
4582002-07-02 Joel Brobecker <brobecker@gnat.com>
459
460 * solib-osf.c (open_map): Compute the list of shared libraries
461 loaded by the inferior, rather than the list of libraries loaded
462 by GDB itself. Otherwise, GDB ends up reading the symbols from
463 the wrong shared libraries...
464
6f558d74
MK
4652002-07-02 Mark Kettenis <kettenis@gnu.org>
466
b7d15bf7
MK
467 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
468 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
469 macros.
470 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
471 Remove functions.
472 (FRAMELESS_SIGNAL): Remove function.
473 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
474 i386_linux_saved_pc_after_call): Removed.
475 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
476 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
477 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
478
6bff26de
MK
479 * i386-tdep.c (i386_frameless_signal_p): New function.
480 (i386_frame_chain): Deal with frameless signals.
481 (i386_sigtramp_saved_sp): New function.
482 (i386_frame_saved_pc): Deal with frameless signals.
483 (i386_saved_pc_after_call): Make sure the correct value is
484 returned just after entry into a sigtramp.
485 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
486 i386fbsd4_sc_sp_offset): New variables.
487 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
488 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
489 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
490 similiar to what we already did for sc_pc_offset.
491 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
492 tdep->sc_sp_offset.
493
6f558d74
MK
494 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
495
145564b7
ML
4962002-07-02 Michal Ludvig <mludvig@suse.cz>
497
498 * config/i386/tm-x86-64linux.h: New.
499 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
500 definitions.
501 * config/i386/nm-x86-64.h: Rename to ...
502 * config/i386/nm-x86-64linux.h: ... this one.
503 * config/i386/x86-64linux.mh: Reflect the above change.
504
3a1e71e3
MK
5052002-07-01 Mark Kettenis <kettenis@gnu.org>
506
21d0e8a4
MK
507 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
508 with sigcontext_addr. Add sc_sp_offset.
509 (i386bsd_sigtramp_saved_pc): Remove prototype.
510 (i386bsd_sicontext_addr): Add prototype.
511 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
512 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
513 (i386_svr4_sigtramp_saved_pc): Removed.
514 (i386_svr4_sigcontext_addr): New function.
515 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
516 Initialize tdep->sigcontext_addr instead. Initialize
517 tdep->sc_pc_offset and tdep->sc_sp_offset.
518 (i386_gdbarch_init): Likewise.
519 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
520 any more.
521 (i386bsd_sigtramp_saved_pc): Remove function.
522 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
523 Initialize tdep->sigcontext_addr instead. Initialize
524 tdep->sc_pc_offset.
525 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
526 of tdep->sigtramp_saved_pc.
527 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
528 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
529 instead.
530
3a1e71e3
MK
531 * i386-tdep.c (i386_frameless_function_invocation,
532 i386_frame_num_args, i386_frame_init_saved_regs,
533 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
534 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
535 i386_extract_return_value, i386_store_return_value,
536 i386_extract_struct_value_address, i386_register_virtual_type,
537 i386_register_convertible, i386_register_convert_to_virtual,
538 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
539 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
540 static.
541
52e9098c
MK
5422002-07-01 Mark Kettenis <kettenis@gnu.org>
543
77b13a25
MK
544 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
545
52e9098c
MK
546 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
547 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
548 this macro. Include "value.h".
549
1b372fff
AS
5502002-06-30 Aidan Skinner <aidan@velvet.net>
551
552 * ada-exp.tab.c: remove as it's a generated file
553 * ada-lex.c: remove as it's a generated file
554
9c5045b5
MK
5552002-06-30 Mark Kettenis <kettenis@gnu.org>
556
4a93c5bb
MK
557 * config/i386/tm-i386.h (struct frame_info, struct
558 frame_saved_regs, struct value, struct type): Remove forward
559 declarations.
560
322d4fe0
MK
561 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
562 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
563 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
564 (FILL_FPXREGSET): Define.
565
fdd8263d
MK
566 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
567
482e577b
MK
568 * configure.tgt (i[3456]86-*-openbsd*): Fold into
569 i[3456]86-*-netbsd* case.
570 * config/i386/tm-obsd.h: Removed.
571 * config/i386/obsd.mt: Removed.
572 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
573 core-aout.o.
574 (MH_CFLAGS): Add -DYYDEBUG=0.
575
6916549a
MK
576 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
577 i386nbsd_sc_pc_offset on OpenBSD too.
578
9c5045b5
MK
579 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
580 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
581 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
582 define.
583 * i386bsd-tdep.c: Include "arch-utils.h".
584 (i386bsd_aout_in_solib_call_trampoline): New function.
585 (i386bsd_init_abi): Set in_solib_call_trampoline to
586 i386bsd_aout_in_solib_call_trampoline.
587 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
588 in_solib_call_trampoline to generic_in_solib_call_trampoline.
589
aa84d1bb
AC
5902002-06-28 Andrew Cagney <ac131313@redhat.com>
591
592 * macrotab.h: Do not include "obstack.h" or "bcache.h".
593 (struct obstack, struct bcache): Add opaque declarations.
594 * Makefile.in (macrotab_h): Update
595
b4d83933
AC
5962002-06-28 Andrew Cagney <ac131313@redhat.com>
597
598 * blockframe.c (generic_find_dummy_frame): Change return type to
599 ``struct regcache''.
600 (struct dummy_frame): Replace field ``registers'' with regcache, a
601 struct regcache object.
602 (generic_find_dummy_frame): Update.
603 (generic_push_dummy_frame): Update. Use regcache_xfree,
604 regcache_xmalloc and regcache_cpy.
605 (generic_pop_dummy_frame): Update. Use regcache_cpy and
606 regcache_xfree.
607 (deprecated_generic_find_dummy_frame): Update.
608 (generic_read_register_dummy): Update. Use
609 regcache_read_as_address.
610 (generic_call_dummy_register_unwind): Update. Use regcache_read.
611 (generic_get_saved_register): Update. Use regcache_read.
612
08c0b5bc
AC
6132002-06-28 Andrew Cagney <ac131313@redhat.com>
614
615 * Makefile.in (objfiles_h): Add $(bcache_h).
616 * objfiles.h: Include "bcache.h".
617
618 * Makefile.in (symtab_h): Remove $(bcache_h).
619 * symtab.h: Do not include "bcache.h".
620
1f89801a
AC
6212002-06-28 Andrew Cagney <ac131313@redhat.com>
622
623 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
624 generic_func_frame_chain_valid.
625
b9644b58
DB
6262002-06-28 David O'Brien <obrien@FreeBSD.org>
627
628 * config/i386/nm-fbsd.h: Include <sys/param.h>.
629 * config/i386/tm-fbsd.h: Likewise.
630
dd486634
AC
6312002-06-28 Andrew Cagney <ac131313@redhat.com>
632
633 * rs6000-tdep.c (rs6000_gdbarch_init): Use
634 generic_unwind_get_saved_register.
635
0b434a00
AC
6362002-06-27 Andrew Cagney <ac131313@redhat.com>
637
638 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
639 * regcache.c (supply_register): Add missing argument to
640 register_buffer call.
641
f30e5a77
AC
6422002-06-27 Andrew Cagney <ac131313@redhat.com>
643
644 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
645 Solaris /bin/grep does not not like it. From Peter Schauer.
646
9f064c95
TT
6472002-06-26 Tom Tromey <tromey@redhat.com>
648
649 * command.h (add_setshow_cmd): Declare.
650 (add_setshow_cmd_full): Declare.
651 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
652 returns void. Use add_setshow_cmd_full.
653 (add_setshow_cmd_full): New function.
654 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
655 (add_setshow_boolean_cmd): Likewise.
656
099c7589
JT
6572002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
658
659 * config/vax/tm-vax.h: Protect from multiple inclusion.
660 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
661 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
662 * config/vax/tm-vaxbsd.h: ...here. New file.
663 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
664
1d049c5e
JT
6652002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
666
667 * config/vax/tm-vax.h (BREAKPOINT): Remove.
668 (BELIEVE_PCC_PROMOTION): Remove.
669 (AP_REGNUM): Move to...
670 * config/vax/nm-vax.h: ...here.
671 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
672 (vax_breakpoint_from_pc): New function.
673 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
674 and gdbarch_believe_pcc_promotion.
675
4791e091
JT
6762002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
677
678 * Makefile.in (vax_tdep_h): Define.
679 (vax-tdep.o): Use $(vax_tdep_h).
680 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
681 (vax_dump_tdep): New function.
682 (_initialize_vax_tdep): Register vax_dump_tdep.
683 * vax-tdep.h: Include osabi.h.
684 (struct gdbarch_tdep): New.
685
da130f98
AC
6862002-06-26 Andrew Cagney <cagney@redhat.com>
687
688 * frame.h (deprecated_generic_find_dummy_frame): Rename
689 generic_find_dummy_frame.
690 * blockframe.c (generic_find_dummy_frame): Make static.
691 (deprecated_generic_find_dummy_frame): New function.
692 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
693 generic_find_dummy_frame with deprecated_find_dummy_frame.
694 (sh64_nofp_frame_init_saved_regs): Ditto.
695 (sh_fp_frame_init_saved_regs): Ditto.
696 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
697 (s390_frame_chain): Ditto.
698 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
699
6300c360
GS
7002002-06-26 Grace Sainsbury <graces@redhat.com>
701
702 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
703 gdbarch vector are at the top.
704 (NUM_REGS): Remove.
705 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
706 (FRAME_ARGS_ADDRESS): Remove.
707 (FRAME_LOCALS_ADDRESS): Remove.
708 (FRAME_NUM_ARGS): Remove.
709 (FRAME_ARGS_SKIP): Remove.
710 * m68k-tdep.c (enum): Add eumeration of special register numbers.
711 (m68k_gdbarch_init): Add gdbarch initializations for macros
712 undefined in tm-m68k.h
713
1c617db8
GS
7142002-06-26 Grace Sainsbury <graces@redhat.com>
715
716 * monitor.h: Add the function regname to monitor_ops
717 structure. This way NUM_REGS does not have to be a constant.
718 * monitor.c (monitor_fetch_register): Added support for regname
719 function. The function is called if the array regnames is NULL.
720 (monitor_store_register): Same.
da130f98
AC
721 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
722 regnames array.
1c617db8
GS
723 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
724 cpu32bug_cmds.regname to point to new function.
725 * abug-rom.c (abug_regname): Same as above.
726 (init_abug_cmds): Same.
727 * dbug-rom.c (dbug_regname): Same as above.
728 (init_dbug_cmds): Same.
729 * remote-est.c (est_regname): Same.
730 (init_est_cmds): Same.
731 * rom68k-rom.c (rom68k_regname): Same.
732 (init_rom68k_cmds): Same.
733
ea9365bb
TT
7342002-06-25 Tom Tromey <tromey@redhat.com>
735
736 * breakpoint.c (delete_command): Don't repeat `delete' commands.
737
72cec141
AC
7382002-06-25 Andrew Cagney <cagney@redhat.com>
739
740 * infrun.c (stop_registers): Change variable's type to ``struct
741 regcache'''.
742 (xmalloc_inferior_status): Delete function.
743 (free_inferior_status): Delete function.
744 (normal_stop): Use regcache_cpy.
745 (struct inferior_status): Change type of fields ``stop_registers''
746 and ``registers'' to ``struct regcache''.
747 (write_inferior_status_register): Use regcache_write.
748 (save_inferior_status): Instead of calling
749 xmalloc_inferior_status, allocate the inf_status buffer directly.
750 Use regcache_dup_no_passthrough and regcache_dup to save the
751 buffers.
752 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
753 Replace the stop_registers regcache instead of overriding it. Use
754 regcache_xfree. Instead of calling free_inferior_status, xfree
755 the buffer directly.
756 (discard_inferior_status): Use regcache_xfree. Instead of calling
757 free_inferior_status, xfree the buffer directly.
758 (build_infrun): Use regcache_xmalloc.
759 (_initialize_infrun): Delete redundant call to build_infrun.
760
761 * Makefile.in (infcmd.o): Add $(regcache_h).
762
763 * infcmd.c: Include "regcache.h".
764 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
765 obtain the address of `stop_registers' register buffer.
766 (print_return_value): Ditto.
767
768 * inferior.h (struct regcache): Add opaque declaration.
769 (stop_registers): Change variable's declared type to ``struct
770 regcache''.
771
defc6f8c
TT
7722002-06-24 Tom Tromey <tromey@redhat.com>
773
c0e624e7
TT
774 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
775 * target.c (initialize_targets): Fixed typo in
776 trust-readonly-sections `show' documentation.
777
defc6f8c
TT
778 * main.c: Marked all strings with _().
779
2b236d82
DH
7802002-06-24 Don Howard <dhoward@redhat.com>
781
782 * memattr.c (create_mem_region): Treat hi == 0 as a special case
783 that means max CORE_ADDR+1.
784 (lookup_mem_region): Ditto.
785 (mem_info_command): Ditto.
786
942dc0e9
GS
7872002-06-24 Grace Sainsbury <graces@redhat.com>
788
789 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
790 (REGISTER_BYTES_OK): Remove.
791 (REGISTER_BYTES): Remove.
792 (STORE_STRUCT_RETURN): Remove.
793 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
794 (STORE_RETURN_VALUE): Remove.
795 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
796 (FRAME_CHAIN): Remove.
797 (FRAMELESS_FUNCTION_INVOCATION): Remove.
798 (FRAME_SAVED_PC): Remove.
799 * m68k-tdep.c (m68k_register_bytes_ok):Add.
800 (m68k_store_struct_return): Add.
801 (m68k_deprecated_extract_return_value): Add.
802 (m68k_deprecated_extract_struct_value_address): Add.
803 (m68k_store_return_value): Add.
804 (m68k_frame_chain): Add.
805 (m68k_frameless_function_invocation): Add.
806 (m68k_frame_saved_pc): Add.
807 (m68k_gdbarch_init): added set_gdbarch calls for new
808 functions and deleted macros.
809
03c30d4d
TT
8102002-06-23 Tom Tromey <tromey@redhat.com>
811
812 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
813 (ALLDEPFILES): Likewise.
814 (udiheaders): Removed.
815 (udip2soc.o): Likewise.
816 (udi2go32.o): Likewise.
817 (udr.o): Likewise.
818 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
819
37e71372
AC
8202002-06-22 Andrew Cagney <ac131313@redhat.com>
821
06a6ac57
AC
822 * infrun.c (_initialize_infrun): Delete unnecessary call to
823 build_infrun.
824
37e71372
AC
825 * regcache.h: Update comments describing the regcache_cpy family
826 of functions.
827 (regcache_save, regcache_restore): Delete declaration.
828 (regcache_save_no_passthrough): Delete declaration.
829 (regcache_restore_no_passthrough): Delete declaration.
830 * regcache.c (regcache_save): Delete function.
831 (regcache_save_no_passthrough): Delete function.
832 (regcache_restore): Delete function.
833 (regcache_restore_no_passthrough): Delete function.
834
78f6d055
AC
8352002-06-21 Andrew Cagney <ac131313@redhat.com>
836
837 * config/m68k/tm-m68k.h: Fix typo.
838 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
839 (m68k_frame_init_saved_regs): Declare.
840
78b119cb
JB
8412002-06-21 Jim Blandy <jimb@redhat.com>
842
843 Remove some vestiges of Harris 88k support.
844 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
845 register numbering quirk.
846 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
847 odd symbols occurring in Harris 88k ELF targets.
848
0fbb3da7
TT
8492002-06-21 Tom Tromey <tromey@redhat.com>
850
851 * gdb_locale.h: New file.
852 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
853 (defs_h): Added gdb_locale.h.
854 * configure, config.in: Rebuilt.
855 * configure.in (PACKAGE): Define.
856 * defs.h: Include gdb_locale.h.
857 * main.c (captured_main): Call setlocale, bindtextdomain,
858 textdomain.
859
456f8b9d
DB
8602002-06-21 Dave Brolley <brolley@redhat.com>
861
862 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
863 * config/frv/frv.mt: New file.
864 * config/frv/tm-frv.h: New file.
865 * configure.tgt: Support frv-*-*.
866 * Makefile.in (frv-tdep.o): New target.
867 * frv-tdep.c: New file.
868 * NEWS: Mention frv.
869
cdd463f9
DB
8702002-06-21 Dave Brolley <brolley@redhat.com>
871
872 * MAINTAINERS: Add self to "Write After Approval" list.
873
5d3ed2e3
GS
8742002-06-21 Grace Sainsbury <graces@redhat.com>
875
876 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
877 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
878 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
879 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
880 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
881
882 * m68k-tdep.c: Include arch-utils.h
883 (m68k_register_raw_size): Add.
884 (m68k_register_virtual_size): Add.
885 (m68k_register_virtual_type): Add.
886 (m68k_register_name): Add.
887 (m68k_stack_align): Add.
888 (m68k_register_byte): Add.
889 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
890 tm-m68k.h.
891
7f8e7424
GS
8922002-06-21 Grace Sainsbury <graces@redhat.com>
893
a2c6a6d5 894 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
895 m68k_find_saved_regs.
896 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 897 references to it with frame->saved_regs.
7f8e7424
GS
898 (m68k_gdbarch_init): Added function calls to initialize the
899 gdbarch structure.
a2c6a6d5
GS
900 (m68k_fix_call_dummy): Add.
901 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
902 (CALL_DUMMY): Remove.
903 (CALL_DUMMY_LENGTH): Remove.
904 (CALL_DUMMY_START_OFFSET): Remove.
905 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
906 (FIX_CALL_DUMMY): Remove.
907 (PUSH_DUMMY_FRAME): Remove.
908 (POP_FRAME): Remove.
7f8e7424 909
f461f5cf
PM
9102002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
911
912 * parse.c (parse_fprintf): New function used to avoid calls to
913 fprintf in bison parser generated debug code.
914 * parser-defs.h: Declaration of new parse_fprintf function.
915 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
916 Set YYDEBUG to 1 by default.
917 Set YYFPRINTF as parse_fprintf.
918
7f0c12ed
ML
9192002-06-21 Michal Ludvig <mludvig@suse.cz>
920
921 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
922 encoding anymore.
923 (pointer_encoding, enum ptr_encoding): New.
924 (execute_cfa_program): Take care about pointer encoding.
925 (dwarf2_build_frame_info): Only call parse_frame_info for
926 .debug_frame and .eh_frame.
927 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
928 fixed augmentation handling, added relative addressing,
929 ignore duplicate FDEs. Added comments.
19d833a2 930 * dwarf2cfi.c: Reindented.
7f0c12ed 931
87c4a039
EZ
9322002-06-20 Elena Zannoni <ezannoni@redhat.com>
933
934 * event-top.c (command_handler): Don't use space_at_cmd_start
935 unless there is sbrk() on the host. Assign time and space data
936 to union fields of the appropriate length.
937
1cf877ad
ML
9382002-06-20 Michal Ludvig <mludvig@suse.cz>
939
940 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
941 x86_64_register_name. Return type changed to 'const char *'.
942 (x86_64_register_name2nr): Rename to x86_64_register_number.
943 (x86_64_gdbarch_init): Update to reflect the change.
944 * x86-64-tdep.h: Ditto.
945 * x86-64-linux-nat.c (x86_64_fxsave_offset)
946 (supply_fpregset): Ditto.
947
3fadccb3
AC
9482002-06-19 Andrew Cagney <cagney@redhat.com>
949
950 * regcache.h: Update copyright.
951 (struct regcache, struct gdbarch): Add opaque declarations.
952 (current_regcache): Declare global variable.
953 (regcache_read, regcache_write): Add gdbarch parameter.
954 (regcache_save, regcache_save_no_passthrough)
955 (regcache_restore, regcache_restore_no_passthrough)
956 (regcache_dup, regcache_dup_no_passthrough)
957 (regcache_cpy, regcache_cpy_no_passthrough)
958 (deprecated_grub_regcache_for_registers)
959 (deprecated_grub_regcache_for_register_valid)
960 (regcache_valid_p): Add function declarations.
961
962 * regcache.c: Update copyright.
963 (regcache_descr_handle): New global variable.
964 (struct regcache_descr): Define.
965 (init_legacy_regcache_descr, init_regcache_descr): New functions.
966 (regcache_descr, xfree_regcache_descr): New functions.
967 (struct regcache): Define.
968 (regcache_xmalloc, regcache_xfree): New functions.
969 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
970 (regcache_dup, regcache_dup_no_passthrough): New functions.
971 (regcache_valid_p, regcache_read_as_address): New functions.
972 (deprecated_grub_regcache_for_registers): New function.
973 (deprecated_grub_regcache_for_register_valid): New function.
974 (current_regcache): New global variable.
975 (register_buffer): Add regcache parameter. Update calls.
976 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
977 (read_register_gen, write_register_gen): Update register_buffer
978 call. Test for legacy_p instead of gdbarch_register_read_p or
979 gdbarch_register_write_p.
980 (regcache_collect): Update register_buffer call.
981 (build_regcache): Rewrite. Use deprecated grub functions.
982 (regcache_save, regcache_save_no_passthrough): New functions.
983 (regcache_restore, regcache_restore_no_passthrough): New
984 functions.
985 (_initialize_regcache): Create the regcache_data_handle. Swap
986 current_regcache global variable.
987
988 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
989 parameter to regcache_read and regcache_write calls.
990 (sh4_register_read): Ditto.
991 (sh64_pseudo_register_read): Ditto.
992 (sh64_register_read): Ditto.
993 (sh_pseudo_register_write): Ditto.
994 (sh4_register_write): Ditto.
995 (sh64_pseudo_register_write): Ditto.
996 (sh64_register_write): Ditto.
997
998 * defs.h (XCALLOC): Define.
999
152d9db6
GS
10002002-06-19 Grace Sainsbury <graces@redhat.com>
1001
1002 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
1003 * m68k-tdep.c (m68k_gdbarch_init): Added.
1004 (m68k_dump_tdep): Added.
1005
170911c7
DJ
10062002-06-19 Daniel Jacobowitz <drow@mvista.com>
1007
1008 * ada-lang.c (fill_in_ada_prototype): Update comment.
1009
2e4ebe70
DJ
10102002-06-19 Daniel Jacobowitz <drow@mvista.com>
1011
1012 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
1013 MIPS_ABI_LAST.
1014 (mips_abi_string, mips_abi_strings): New.
1015 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
1016 (mips_gdbarch_init): Set tdep->found_abi. Don't set
1017 tdep->mips_abi_string. Honor mips_abi_string. Default to
1018 O32 if no ABI is found.
1019 (mips_dump_tdep): Use mips_abi_strings.
1020 (mips_abi_update): New function.
1021 (_initialize_mips_tdep): Initialize mips_abi_string. Add
1022 ``set mips abi'' and ``show mips abi''. Check the size of
1023 mips_abi_strings.
1024
16775908
AC
10252002-06-19 Andrew Cagney <cagney@redhat.com>
1026
1027 * i386-linux-tdep.c (i386_linux_register_name): Make return type
1028 constant.
1029
5051bfa4 10302002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 1031
5051bfa4
JB
1032 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
1033 current frame using only the first stack size adjustment. All
1034 subsequent size adjustments are not considered to be part of
1035 the "static" part of the current frame.
1036 Compute the address of the saved registers relative to the
1037 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
1038 in use in this frame.
1039
56468235
DH
10402002-06-18 Don Howard <dhoward@redhat.com>
1041
1042 * valops.c (value_ind): Use value_at_lazy() when dereferencing
1043 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
1044 suggesting this solution.
1045
0b624158
AC
10462002-06-18 Andrew Cagney <ac131313@redhat.com>
1047
1048 * config/romp/xm-rtbsd.h: Delete file.
1049 * config/romp/rtbsd.mh: Delete file.
1050
221ea385
KS
10512002-06-18 Keith Seitz <keiths@redhat.com>
1052
1053 * breakpoint.c (condition_command): Post breakpoint_modify
1054 when a condition is added to an existing breakpoint.
1055 (commands_command): Likewise for commands.
1056 (set_ignore_count): Likewise for ignore counts.
1057 If no tty, do not simply return, still need to send event
1058 notification.
1059 (ignore_command): Only print a newline if the command came
1060 from a tty.
1061 Don't call breakpoints_changed, since this is now properly
1062 handled by set_ignore_count.
1063
5402eed1
AC
10642002-06-18 Andrew Cagney <cagney@redhat.com>
1065
1066 * MAINTAINERS: Note that cris-elf target can be compiled with
1067 -Werror.
1068 * cris-tdep.c (cris_register_name): Make return type constant.
1069 (cris_breakpoint_from_pc): Ditto.
1070
cc22880b
ML
10712002-06-18 Michal Ludvig <mludvig@suse.cz>
1072
1073 * frame.h (struct frame_info): Change type of context to
1074 'struct context'.
1075
fa88f677
AC
10762002-06-17 Andrew Cagney <cagney@redhat.com>
1077
1078 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
1079 pointer.
1080 * gdbarch.h, gdbarch.c: Regenerate.
1081 * config/mips/tm-mips.h (mips_register_name): Update.
1082 * i386-tdep.h (i386_register_name): Update.
1083 * mips-tdep.c (mips_register_name): Update
1084 * alpha-tdep.c (alpha_register_name): Update.
1085 * arch-utils.c (legacy_register_name): Update.
1086 * arch-utils.h (legacy_register_name): Update.
1087 * avr-tdep.c (avr_register_name): Update.
1088 * ia64-tdep.c (ia64_register_name): Update.
1089 * i386-tdep.c (i386_register_name): Update.
1090 * sparc-tdep.c (sparc32_register_name): Update.
1091 (sparc64_register_name): Update.
1092 (sparclite_register_name): Update.
1093 (sparclet_register_name): Update.
1094 * sh-tdep.c (sh_generic_register_name): Update.
1095 (sh_sh_register_name): Update.
1096 (sh_sh3_register_name): Update.
1097 (sh_sh3e_register_name): Update.
1098 (sh_sh_dsp_register_name): Update.
1099 (sh_sh3_dsp_register_name): Update.
1100 (sh_sh4_register_name): Update.
1101 (sh_sh64_register_name): Update.
1102 * s390-tdep.c (s390_register_name): Update.
1103 * rs6000-tdep.c (rs6000_register_name): Update.
1104 * ns32k-tdep.c (ns32k_register_name_32082): Update.
1105 (ns32k_register_name_32382): Update.
1106 * d10v-tdep.c (d10v_ts2_register_name): Update.
1107 (d10v_ts3_register_name): Update.
1108 * xstormy16-tdep.c (xstormy16_register_name): Update.
1109 * vax-tdep.c (vax_register_name): Update.
1110 * v850-tdep.c (v850_register_name): Update.
1111 * m68hc11-tdep.c (m68hc11_register_name): Update.
1112 * mn10300-tdep.c (mn10300_generic_register_name): Update.
1113 (am33_register_name): Update.
1114
ea1e7ef6
GS
11152002-06-17 Grace Sainsbury <graces@redhat.com>
1116
1117 * m68k-tdep.c: Reindented.
1118
9b02dd1b
AC
11192002-06-17 Andrew Cagney <ac131313@redhat.com>
1120
1121 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
1122 list of predefined types.
1123
8758dec1
MK
11242002-06-16 Mark Kettenis <kettenis@gnu.org>
1125
b6197528
MK
1126 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
1127 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
1128 REGISTER_CONVERT_TO_RAW): Remove defines.
1129 (i386_register_virtual_type, i386_register_convertible,
1130 i386_register_convert_to_virtual, i386_register_convert_to_raw):
1131 Remove prototypes.
1132 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1133 macros mentioned above.
1134
82b47e62
MK
1135 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
1136 (i386lynx_saved_pc_after_call): Remove prototype.
1137 * i386ly-tdep.c: Include "i386-tdep.h".
1138 (i386lynx_saved_pc_after_call): Make static. Use
1139 read_memory_nobpt instead of read_memory. Use
1140 read_memory_unsigned_integer instead of read_memory_integer.
1141 (i386lynx_init_abi): New function.
1142 (i386lynx_coff_osabi_sniffer): New function.
1143 (_initialize_i386bsd_tdep): New function.
1144
8758dec1
MK
1145 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
1146 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
1147 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
1148 (i386_fix_call_dummy): Remove prototype.
1149 * i386-tdep.c (i386_call_dummy_words): New variable.
1150 (i386_gdbarch_init): Adjust for removal of the
1151 macros mentioned above.
1152
e9e68a56
AC
11532002-06-15 Andrew Cagney <ac131313@redhat.com>
1154
1155 * command.h (add_setshow_auto_boolean_cmd): Replace
1156 add_set_auto_boolean_cmd.
1157 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
1158 add_set_auto_boolean_cmd.
1159 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
1160 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
1161 mask-address'' command.
1162 (show_mask_address): Add cmd parameter.
1163 * remote.c (add_packet_config_cmd): Update. Change type of
1164 set_func and show_func to cmd_sfunc_ftype.
1165 (_initialize_remote): Update `set remote Z-packet'
1166 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
1167 (show_remote_protocol_e_packet_cmd): Ditto.
1168 (show_remote_protocol_E_packet_cmd): Ditto.
1169 (show_remote_protocol_P_packet_cmd): Ditto.
1170 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
1171 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
1172 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
1173 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
1174 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
1175 (show_remote_protocol_Z_packet_cmd): Ditto.
1176 (show_remote_protocol_binary_download_cmd): Ditto.
1177 (show_remote_cmd): Pass NULL to all of above.
1178
fc08ec52
MK
11792002-06-15 Mark Kettenis <kettenis@gnu.org>
1180
1181 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
1182 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
1183 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
1184 POP_FRAME): Remove defines.
1185 (i386_push_arguments, i386_store_struct_return,
1186 i386_extract_return_value, i386_store_return_value,
1187 i386_extract_struct_value_address, i386_push_dummy_frame,
1188 i386_pop_frame): Renove prototypes.
1189 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1190 macros mentioned above.
1191
e707bbc2
AC
11922002-06-15 Andrew Cagney <ac131313@redhat.com>
1193
1194 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
1195 add_set_boolean_cmd.
1196 (add_setshow_cmd): New function.
1197 * command.h (add_setshow_boolean_cmd): Replace
1198 add_set_boolean_cmd.
1199 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
1200 and ``set rdiromatzero''.
1201 * maint.c (_initialize_maint_cmds): Update commented out code.
1202 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
1203 * target.c (initialize_targets): Update `set
1204 trust-readonly-sections'.
1205 * remote.c (_initialize_remote): Update `set remotebreak'.
1206
42fdc8df
MK
12072002-06-15 Mark Kettenis <kettenis@gnu.org>
1208
93924b6b
MK
1209 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
1210 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
1211 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
1212 fit into multi-arch framework.
1213 (i386_breakpoint_from_pc): New function.
1214 (i386_gdbarch_init): Adjust for removal of the macros mentioned
1215 above.
1216
42fdc8df
MK
1217 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
1218 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
1219 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
1220 (i386_frameless_function_invocation, i386_frame_num_args,
1221 i386_frame_init_saved_regs): Remove prototypes.
1222 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1223 macros mentioned above.
1224
9773a94b
AC
12252002-06-15 Andrew Cagney <ac131313@redhat.com>
1226
1227 * cli/cli-decode.c (set_cmd_cfunc): Update.
1228 (set_cmd_sfunc): Update.
1229 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
1230 (set_cmd_sfunc, set_cmd_cfunc): Update.
1231 * cli/cli-decode.h: Update.
1232
6e157172
MK
12332002-06-15 Mark Kettenis <kettenis@gnu.org>
1234
1235 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
1236 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
1237
7f19b9a2
AC
12382002-06-15 Andrew Cagney <ac131313@redhat.com>
1239
1240 * defs.h (auto_boolean): Declare enum.
1241 * command.h (cmd_auto_boolean): Delete enum.
1242 * mips-tdep.c (mask_address_var): Update.
1243 (mips_mask_address_p): Update.
1244 (show_mask_address): Update.
1245 * remote.c (struct packet_config): Update.
1246 (update_packet_config): Update.
1247 (show_packet_config_cmd): Update.
1248 (packet_ok): Update.
1249 (add_packet_config_cmd): Update.
1250 (_initialize_remote):
1251 * command.h: Update.
1252 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
1253 (do_setshow_command): Update.
1254 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
1255 * cli/cli-decode.h: Update.
1256
1cf88de5
MK
12572002-06-15 Mark Kettenis <kettenis@gnu.org>
1258
22ba8cf2
MK
1259 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
1260 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
1261 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
1262 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
1263 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
1264 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
1265
762c5349
MK
1266 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
1267 list of DJGPP COFF targets.
1268
091198bb
MK
1269 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
1270 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
1271 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
1272 (FP0_REGNUM): Remove define.
1273 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
1274 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
1275 (i386_register_virtual_size): Remove protoype.
1276 * i386-tdep.c (i386_register_virtual_size): Removed.
1277 (i386_extract_return_value, i386_store_return_value): Use
1278 FP0_REGNUM instead of NUM_FREGS to determine whether the
1279 floating-point registers are available.
1280 (i386_gdbarch_init): Tweak FIXME about FPU registers.
1281 Adjust for removal of macros mentioned above.
1282
12832002-06-15 Mark Kettenis <kettenis@gnu.org>
1284
fcc9bf01
MK
1285 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
1286 comments.
1287 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
1288 Remove prototypes.
1289 (supply_gregset, fill_gregset): Remove use of register keyword and
1290 remove declaration for regmap. Use I386_NUM_GREGS instead of
1291 NUM_REGS and NUM_FREGS.
1292 (FPREGSET_FSAVE_OFFSET): Remove.
1293 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
1294 NUM_FREGS to determine whether the floating-point registers are
1295 available.
1296
65e78234
MK
1297 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
1298 gnu_store_registers): Replace usage of NUM_GREGS with
1299 I386_NUM_GREGS.
1300
98df6387
MK
1301 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
1302 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
1303 usage of NUM_GREGS with I386_NUM_GREGS.
1304
099a9414
MK
1305 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
1306
57976e88
MK
1307 * i386bsd-nat.c: Include "i386-tdep.h".
1308 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
1309 I386_NUM_GREGS.
1310
b335f4a6
MK
1311 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
1312 and associated comment. They no longer make any sense, since we
1313 don't use this file anymore on Linux.
1314
1cf88de5
MK
1315 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
1316 * i386-tdep.c (i386_register_offset, i386_register_size): Use
1317 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
1318 elements in these arrays.
1319 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
1320 MAX_NUM_REGS.
1321
daa66587
MK
13222002-06-15 Mark Kettenis <kettenis@gnu.org>
1323
1324 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
1325 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
1326
26e9b323
AC
13272002-06-14 Andrew Cagney <cagney@redhat.com>
1328
1329 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
1330 EXTRACT_RETURN_VALUE.
1331 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
1332 EXTRACT_STRUCT_VALUE_ADDRESS.
1333 * gdbarch.h, gdbarch.c: Regenerate.
1334
1335 * values.c (value_being_returned): Handle
1336 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1337 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
1338
1339 * arm-linux-tdep.c (arm_linux_init_abi): Update.
1340 * arm-tdep.c (arm_gdbarch_init): Update.
1341 * avr-tdep.c (avr_gdbarch_init): Update.
1342 * cris-tdep.c (cris_gdbarch_init): Update.
1343 * d10v-tdep.c (d10v_gdbarch_init): Update.
1344 * ia64-tdep.c (ia64_gdbarch_init): Update.
1345 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1346 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1347 * s390-tdep.c (s390_gdbarch_init): Update.
1348 * sh-tdep.c (sh_gdbarch_init): Update.
1349 * s390-tdep.c (s390_gdbarch_init): Update.
1350 * sparc-tdep.c (sparc_gdbarch_init): Update.
1351 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1352 * v850-tdep.c (v850_gdbarch_init): Update.
1353 * vax-tdep.c (vax_gdbarch_init): Update.
1354 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1355 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1356
1357 * config/arc/tm-arc.h: Update.
1358 * config/d30v/tm-d30v.h: Update.
1359 * config/fr30/tm-fr30.h: Update.
1360 * config/h8300/tm-h8300.h: Update.
1361 * config/h8500/tm-h8500.h: Update.
1362 * config/i386/tm-i386.h: Update.
1363 * config/i386/tm-ptx.h: Update.
1364 * config/i386/tm-symmetry.h: Update.
1365 * config/i960/tm-i960.h: Update.
1366 * config/m32r/tm-m32r.h: Update.
1367 * config/m68k/tm-delta68.h: Update.
1368 * config/m68k/tm-linux.h: Update.
1369 * config/m68k/tm-m68k.h: Update.
1370 * config/m88k/tm-m88k.h: Update.
1371 * config/mcore/tm-mcore.h: Update.
1372 * config/mips/tm-mips.h: Update.
1373 * config/mn10200/tm-mn10200.h: Update.
1374 * config/pa/tm-hppa.h: Update.
1375 * config/pa/tm-hppa64.h: Update.
1376 * config/sparc/tm-sp64.h: Update.
1377 * config/sparc/tm-sparc.h: Update.
1378 * config/sparc/tm-sparclet.h: Update.
1379 * config/z8k/tm-z8k.h: Update.
1380
5179e78f
AC
13812002-06-14 Andrew Cagney <cagney@redhat.com>
1382
1383 * Makefile.in (i386_linux_tdep_h): Define.
1384 (i386_tdep_h, i387_tdep_h): Define.
1385 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
1386 $(i386_tdep_h) and $(i387_tdep_h).
1387 * i386-linux-nat.c: Include "i386-linux-tdep.h".
1388
8201327c
MK
13892002-06-14 Mark Kettenis <kettenis@gnu.org>
1390
edf393ac
MK
1391 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
1392 Already covered by the default.
1393
896fb97d
MK
1394 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
1395 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
1396 (i386_gdbarch_init): Initialize long_double_format and long_double
1397 bit.
1398
8201327c
MK
1399 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
1400 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
1401 Move these to ...
1402 * config/i386/i386sol2.mh: ... here.
1403 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
1404 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
1405 (SIGCONTEXT_PC_OFFSET): Remove define.
1406 (IN_SIGTRAMP): Remove define.
1407 * i386-sol2-tdep.c: New file.
1408
1409 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
1410 * config/i386/tm-i386nw.h: Removed.
1411
1412 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
1413 USE_STRUCT_CONVENTION): Remove defines.
1414 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1415 (get_longjmp_target): Remove prototype.
1416 (IN_SIGTRAMP): Remove define.
1417 (i386bsd_in_sigtramp): Remove prototype.
1418 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1419 function. Update comment accordingly
1420 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1421 (FRAME_SAVED_PC): Remove define.
1422 (i386bsd_frame_saved_pc): Remove prototype.
1423 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
1424 GET_LONGJMP_TARGET): Remove defines.
1425 (get_longjmp_target): Remove prototype.
1426 (IN_SIGTRAMP): Remove define.
1427 (i386bsd_in_sigtramp): Remove prototype.
1428 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1429 function. Update comment accordingly
1430 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1431 (FRAME_SAVED_PC): Remove define.
1432 (i386bsd_frame_saved_pc): Remove prototype.
1433 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
1434 Remove prototype.
1435 (USE_STRUCT_CONVENTION): Remove prototype.
1436 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
1437 declaration.
1438 (_initialize_i386bsd_nat): Revise logic to determine some
1439 constants at compile time when compiling a native GDB. Warn if
1440 things don't match up with what we expect.
1441 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
1442 Remove variables.
1443 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
1444 to use date stored in `struct gdbarch_tdep'.
1445 (i386bsd_sigcontext_offset): Remove varaible.
1446 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
1447 stored in `struct gdbarch_tdep'.
1448 (i386bsd_frame_saved_pc): Make static.
1449 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
1450 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
1451 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1452 i386fbsd4_sc_pc_offset): New variables.
1453 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
1454 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
1455 functions.
1456 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
1457 functions.
1458 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
1459 Modify the value of i386fbsd_sigtramp_start and
1460 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
1461 i386fbsd_sigtramp_end.
1462 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
1463 function.
1464
1465 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
1466 define to i386-linux-tdep.h.
1467 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
1468 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
1469 defines.
1470 (i386_linux_register_name, i386_linux_register_byte,
1471 i386_linux_register_raw_size): Remove prototypes.
1472 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
1473 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
1474 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
1475 TARGET_WRITE_PC): Remove defines.
1476 (i386_linux_in_sigtramp, i386_linux_frame_chain,
1477 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
1478 i386_linux_write_pc): Remove prototypes.
1479 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1480 (get_longjmp_target): Remove prototype.
1481 * i386-linux-tdep.h: New file.
1482 * i386-linux-nat.c: Include "i386-linux-tdep.h".
1483 * i386-linux-tdep.c: Include "i386-tdep.h" and
1484 "i386-linux-tdep.h".
1485 (i386_linux_register_name, i386_linux_register_byte,
1486 i386_linux_register_raw_size, i386_linux_in_sigtramp,
1487 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
1488 Make static.
1489 (i386_linux_init_abi): New function.
1490 (_initialize_i386_linux_tdep): New function.
1491
1492 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
1493 (i386_saved_pc_after_call): Remove prototype.
1494 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
1495 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
1496 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
1497 (i386_register_name, i386_stab_reg_to_regnum,
1498 i386_dwarf_reg_to_regnum): Remove prototypes.
1499 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
1500 SIZEOF_SSE_REGS): Remove defines.
1501 (REGISTER_BYTES): Remove define.
1502 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
1503 (i386_register_byte, i386_register_raw_size): Remove prototypes.
1504 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
1505 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
1506 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
1507 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
1508 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
1509 (get_longjmp_target): Remove prototype.
1510 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
1511 (sigtramp_saved_pc): Remove define.
1512 (i386v4_sigtramp_saved_pc): Remove prototype.
1513 * config/i386/tm-go32.h (FRAME_CHAIN,
1514 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
1515 (i386go32_frame_saved_pc): Remove prototype.
1516 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1517 (get_longjmp_target): Remove prototype.
1518 * i386-tdep.h: Include "osabi.h".
1519 (enum i386_abi): Removed.
1520 (enum struct_return): New enum.
1521 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
1522 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
1523 sc_pc_offset members.
1524 (i386_gdbarch_register_os_abi): Remove prototype.
1525 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
1526 I386_SSE_NUM_REGS): New defines.
1527 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
1528 I386_SSE_SIZEOF_REGS): New defines.
1529 (i386_register_name, i386_register_byte, i386_register_raw_size):
1530 New prototypes.
1531 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
1532 (i386bsd_sigtramp_saved_pc): New prototype.
1533 * i386-tdep.c: Don't include "elf-bfd.h".
1534 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
1535 i386_frame_chain, i386_saved_pc_after_call): Make static.
1536 (i386_frame_saved_pc): Rewrite to call architecture dependent
1537 function to deal with signal handlers. Make static.
1538 (i386go32_frame_saved_pc): Removed.
1539 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
1540 Removed.
1541 (i386_get_longjmp_target): New function.
1542 (default_struct_convention, pcc_struct_convention,
1543 reg_struct_convention, valid_conventions, struct_convention): New
1544 variables.
1545 (i386_use_struct_convention): New function.
1546 (i386v4_sigtramp_saved_pc): Renamed to
1547 i386_svr4_sigtramp_saved_pc. Made static. Moved.
1548 (i386_pc_in_sigtramp): New function.
1549 (i386_abi_names): Removed.
1550 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
1551 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
1552 Removed.
1553 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
1554 i386_gdbarch_register_os_abi): Removed.
1555 (struct i386_abi_handler): Removed.
1556 (i386_abi_handler_list): Removed.
1557 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
1558 functions.
1559 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
1560 i386_nw_init_abi): New functions.
1561 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
1562 Use set_gdbarch_xxx() calls instead of relying on macros for a
1563 number of calls.
1564 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
1565 (_initialize_i386_tdep): Add new 'struct-convcention' command.
1566 Register the various architecture variants defined in this file.
1567
ad2f7632
DJ
15682002-06-14 Daniel Jacobowitz <drow@mvista.com>
1569
1570 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
1571 (struct main_type): Remove arg_types member. Update comments for
1572 struct field.
1573 (TYPE_ARG_TYPES): Remove.
1574 (TYPE_FN_FIELD_ARGS): Update.
1575 (smash_to_method_type): Update prototype.
1576
1577 * c-typeprint.c (cp_type_print_method_args): Take method type
1578 instead of argument list. Use new argument layout. Simplify.
1579 (c_type_print_args): Use new argument layout. Simplify.
1580 (c_type_print_base): Update call to cp_type_print_method_args.
1581 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
1582 argument; use die->type instead. Update call to
1583 smash_to_method_type.
1584 (read_structure_scope): Update call to dwarf2_add_member_fn.
1585 * gdbtypes.c (allocate_stub_method): Update comment.
1586 (smash_to_method_type): Take new NARGS and VARARGS arguments.
1587 Use new argument layout.
1588 (check_stub_method): Use new argument layout. Don't count
1589 void as an argument.
1590 (print_arg_types): Update comments. Use new argument layout.
1591 (recursive_dump_type): Don't print arg_types member.
1592 * hpread.c (hpread_read_struct_type): Use new argument layout.
1593 (fixup_class_method_type): Likewise.
1594 (hpread_type_lookup): Likewise.
1595 * stabsread.c (read_type): Update calls to read_args and
1596 smash_to_method_type.
1597 (read_args): Use new argument layout. Simplify.
1598 * valops.c (typecmp): Use new argument layout. Update parameters
1599 and comments. Simplify.
1600 (hand_function_call): Use new argument layout.
1601 (search_struct_method): Update call to typecmp.
1602 (find_overload_match): Use new argument layout.
1603
6da02953
DJ
16042002-06-13 Daniel Jacobowitz <drow@mvista.com>
1605
1606 * NEWS: Mention multithreaded debug support for gdbserver.
1607
519b2366
DJ
16082002-06-13 Daniel Jacobowitz <drow@mvista.com>
1609
1610 * MAINTAINERS: Mention NEWS.
1611
a7f48742
DJ
16122002-06-13 Daniel Jacobowitz <drow@mvista.com>
1613
1614 * gdbserver/regcache.c: Add comment.
1615
6c0d6680
DJ
16162002-06-13 Daniel Jacobowitz <drow@mvista.com>
1617
1618 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
1619 (struct mips_objfile_private, compare_pdr_entries): New.
1620 (non_heuristic_proc_desc): Read the ".pdr" section if it
1621 is present.
1622
6529d2dd
AC
16232002-06-12 Andrew Cagney <ac131313@redhat.com>
1624
1625 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
1626 (arm_debug): New static variable.
1627 (_initialize_arm_tdep): Add ``set debug arm'' command.
1628
26216b98
AC
16292002-06-12 Andrew Cagney <ac131313@redhat.com>
1630
1631 * Makefile.in (sim_arm_h): Define.
1632 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
1633 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
1634 (arm_register_sim_regno): New function, map an internal REGNUM
1635 onto a simulator register number.
1636 (arm_gdbarch_init): Set register_sim_regno.
1637
814b3ba0
AH
16382002-06-09 Aldy Hernandez <aldyh@redhat.com>
1639
1640 * MAINTAINERS: Add self.
1641
475b0867
JB
16422002-06-11 Jim Blandy <jimb@redhat.com>
1643
919d772c
JB
1644 * source.c (source_info): Mention whether the symtab has
1645 information about preprocessor macros.
1646
475b0867
JB
1647 Call the command `info macro', not `show macro'.
1648 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
1649 Fix error message.
1650 (_initialize_macrocmd): Register `info_macro_command' in
1651 `infolist', not `showlist'.
1652
9e364162
DJ
16532002-06-11 Daniel Jacobowitz <drow@mvista.com>
1654
1655 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
1656 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
1657 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
1658 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
1659 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
1660 unconditionally.
1661 (set_mipsfpu_single_command, set_mipsfpu_double_command)
1662 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
1663 (_initialize_mips_tdep): Remove dead code.
1664 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
1665 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
1666 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
1667 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
1668 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
1669 MIPS_LAST_FP_ARG_REGNUM): Remove.
1670
16712002-06-11 Daniel Jacobowitz <drow@mvista.com>
1672
1673 * gdbserver/thread-db.c: New file.
1674 * gdbserver/proc-service.c: New file.
1675 * gdbserver/acinclude.m4: New file.
1676 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
1677 proc-service.o, and thread-db.o.
1678 (linux-low.o): Add USE_THREAD_DB.
1679 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
1680 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
1681 * gdbserver/aclocal.m4: Regenerated.
1682 * gdbserver/config.in: Regenerated.
1683 * gdbserver/configure: Regenerated.
1684 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
1685 thread_db.h, and linux/elf.h headrs.
1686 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
1687 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
1688 Check for -lthread_db and thread support.
1689 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
1690 PowerPC, and SuperH.
1691 * gdbserver/i387-fp.c: Constify arguments.
1692 * gdbserver/i387-fp.h: Likewise.
1693 * gdbserver/inferiors.c: (struct thread_info): Renamed from
1694 `struct inferior_info'. Remove PID member. Use generic inferior
1695 list header. All uses updated.
1696 (inferiors, signal_pid): Removed.
1697 (all_threads): New variable.
1698 (get_thread): Define.
1699 (add_inferior_to_list): New function.
1700 (for_each_inferior): New function.
1701 (change_inferior_id): New function.
1702 (add_inferior): Removed.
1703 (remove_inferior): New function.
1704 (add_thread): New function.
1705 (free_one_thread): New function.
1706 (remove_thread): New function.
1707 (clear_inferiors): Use for_each_inferior and free_one_thread.
1708 (find_inferior): New function.
1709 (find_inferior_id): New function.
1710 (inferior_target_data): Update argument type.
1711 (set_inferior_target_data): Likewise.
1712 (inferior_regcache_data): Likewise.
1713 (set_inferior_regcache_data): Likewise.
1714 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
1715 (all_processes, stopping_threads, using_thrads)
1716 (struct pending_signals, debug_threads, pid_of): New.
1717 (inferior_pid): Replace with macro.
1718 (struct inferior_linux_data): Remove.
1719 (get_stop_pc, add_process): New functions.
1720 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
1721 Use add_process and add_thread.
1722 (linux_attach_lwp): New function, based on old linux_attach. Use
1723 add_process and add_thread. Set stop_expected for new threads.
1724 (linux_attach): New function.
1725 (linux_kill_one_process): New function.
1726 (linux_kill): Kill all LWPs.
1727 (linux_thread_alive): Use find_inferior_id.
1728 (check_removed_breakpoints, status_pending_p): New functions.
1729 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
1730 Update. Use WNOHANG. Wait for cloned processes also. Update process
1731 struct for the found process.
1732 (linux_wait_for_event): New function.
1733 (linux_wait): Use it. Support LWPs.
1734 (send_sigstop, wait_for_sigstop, stop_all_processes)
1735 (linux_resume_one_process, linux_continue_one_process): New functions.
1736 (linux_resume): Support LWPs.
1737 (REGISTER_RAW_SIZE): Remove.
1738 (fetch_register): Use register_size instead. Call supply_register.
1739 (usr_store_inferior_registers): Likewise. Call collect_register.
1740 Fix recursive case.
1741 (regsets_fetch_inferior_registers): Improve error message.
1742 (regsets_store_inferior_registers): Add debugging.
1743 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
1744 (unstopped_p, linux_signal_pid): New functions.
1745 (linux_target_ops): Add linux_signal_pid.
1746 (linux_init_signals): New function.
1747 (initialize_low): Call it. Initialize using_threads.
1748 * gdbserver/regcache.c (inferior_regcache_data): Add valid
1749 flag.
1750 (get_regcache): Fetch registers lazily. Add fetch argument
1751 and update all callers.
1752 (regcache_invalidate_one, regcache_invalidate): New
1753 functions.
1754 (new_register_cache): Renamed from create_register_cache.
1755 Return the new regcache.
1756 (free_register_cache): Change argument to a void *.
1757 (registers_to_string, registers_from_string): Call get_regcache
1758 with fetch flag set.
1759 (register_data): Make static. Pass fetch flag to get_regcache.
1760 (supply_register): Call get_regcache with fetch flag clear.
1761 (collect_register): Call get_regcache with fetch flag set.
1762 (collect_register_as_string): New function.
1763 * gdbserver/regcache.h: Update.
1764 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
1765 stderr.
1766 Handle input interrupts while waiting for an ACK.
1767 (input_interrupt): Use signal_pid method.
1768 (getpkt): Flush after debug output and use stderr.
1769 (outreg): Use collect_register_as_string.
1770 (new_thread_notify, dead_thread_notify): New functions.
1771 (prepare_resume_reply): Check using_threads. Set thread_from_wait
1772 and general_thread.
1773 (look_up_one_symbol): Flush after debug output.
1774 * gdbserver/server.c (step_thread, server_waiting): New variables.
1775 (start_inferior): Don't use signal_pid. Update call to mywait.
1776 (attach_inferior): Update call to mywait.
1777 (handle_query): Handle qfThreadInfo and qsThreadInfo.
1778 (main): Don't fetch/store registers explicitly. Use
1779 set_desired_inferior. Support proposed ``Hs'' packet. Update
1780 calls to mywait.
1781 * gdbserver/server.h: Update.
1782 (struct inferior_list, struct_inferior_list_entry): New.
1783 * gdbserver/target.c (set_desired_inferior): New.
1784 (write_inferior_memory): Constify.
1785 (mywait): New function.
1786 * gdbserver/target.h: Update.
1787 (struct target_ops): New signal_pid method.
1788 (mywait): Removed macro, added prototype.
1789
1790 * gdbserver/linux-low.h (regset_func): Removed.
1791 (regset_fill_func, regset_store_func): New.
1792 (enum regset_type): New.
1793 (struct regset_info): Add type field. Use new operation types.
1794 (struct linux_target_ops): stop_pc renamed to get_pc.
1795 Add decr_pc_after_break and breakpoint_at.
1796 (get_process, get_thread_proess, get_process_thread)
1797 (strut process_info, all_processes, linux_attach_lwp)
1798 (thread_db_init): New.
1799
1800 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
1801 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
1802 (the_low_target): Add new members.
1803 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
1804 (i386_store_fpxregset): Constify.
1805 (target_regsets): Add new kind identifier.
1806 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
1807 (i386_set_pc): Add debugging.
1808 (i386_breakpoint_at): New function.
1809 (the_low_target): Add new members.
1810 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
1811 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
1812 (mips_breakpoint_at): New.
1813 (the_low_target): Add new members.
1814 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
1815 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
1816 (the_low_target): Add new members.
1817 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
1818 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
1819 (the_low_target): Add new members.
1820 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
1821 identifier.
1822
23aa4c72
ML
18232002-06-11 Michal Ludvig <mludvig@suse.cz>
1824
1825 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
1826 (unwind_tmp_obstack_free, parse_frame_info)
1827 (update_context, cfi_read_fp, cfi_write_fp)
1828 (cfi_frame_chain, cfi_init_extra_frame_info)
1829 (cfi_virtual_frame_pointer): Use the above function.
264d1763 1830 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 1831
70eb15a4
CV
18322002-06-11 Corinna Vinschen <vinschen@redhat.com>
1833
1834 * v850-tdep.c (v850_type_is_scalar): New function.
1835 (v850_use_struct_convention): Match current gcc implementation
1836 as close as possible.
1837 (v850_push_arguments): Fix stack_offset handling. Don't write
1838 struct_addr into register. This is done by v850_store_struct_return.
1839 (v850_extract_return_value): Care for structs.
1840 (v850_store_return_value): Ditto.
1841 (v850_store_struct_return): Actually write address.
1842
482a4d06
ML
18432002-06-11 Michal Ludvig <mludvig@suse.cz>
1844
1845 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
1846 without debug information too.
1847
d855c300
AC
18482002-06-10 Andrew Cagney <ac131313@redhat.com>
1849
1850 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
1851 Make multi-arch pure.
1852 * gdbarch.h, gdbarch.c: Re-generate.
1853 * arm-tdep.c (arm_print_float_info): Update.
1854 * arch-utils.h (default_print_float_info): Update.
1855 * arch-utils.c (default_print_float_info): Update.
1856 * infcmd.c (float_info): Update call.
1857
dd12a101
AC
18582002-06-10 Andrew Cagney <ac131313@redhat.com>
1859
1860 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
1861 the front of the initialize list.
1862
101dcfbe
AC
18632002-06-10 Andrew Cagney <ac131313@redhat.com>
1864
1865 * infrun.c (struct inferior_status): Replace fields
1866 selected_frame_address and selected_level with field
1867 selected_frame_id.
1868 (save_inferior_status): Update. Use get_frame_id.
1869 (struct restore_selected_frame_args): Delete.
1870 (restore_selected_frame): Update. Use frame_find_by_id.
1871 (restore_inferior_status): Update.
1872
1873 * breakpoint.h (struct breakpoint): Change type of
1874 watchpoint_frame to frame_id.
1875 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
1876 call to get_current_frame.
1877 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
1878 get_current_frame.
1879 (watchpoint_check): Use frame_find_by_id.
1880
1881 * frame.h (record_selected_frame): Delete declaration.
1882 * stack.c (record_selected_frame): Delete function.
1883
1884 * frame.h (struct frame_id): Define.
1885 (get_frame_id): Declare.
1886 (frame_find_by_id): Declare.
1887 * frame.c (frame_find_by_id): New function.
1888 (get_frame_id): New function.
1889
304270b6
AV
18902002-06-10 Andrey Volkov <avolkov@transas.com>
1891
1892 * ser-e7kpc.c: Fix duplicated define and call of
1893 _initialize_ser_e7000pc
1894
2f2cf184
DJ
18952002-06-09 Daniel Jacobowitz <drow@mvista.com>
1896
1897 * signals/signals.c (target_signal_from_host): Fix #ifdef
1898 SIGRTMIN case.
1899 (do_target_signal_to_host): Likewise.
1900
caaa3122
DJ
19012002-06-09 Daniel Jacobowitz <drow@mvista.com>
1902
1903 * mips-tdep.c (mips_find_abi_section): New function.
1904 (mips_gdbarch_init): Call it.
1905
6ac5df3a
MK
19062002-06-09 Mark Kettenis <kettenis@gnu.org>
1907
1908 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
1909 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
1910 after Andrew's 2002-06-08 gdbarch change.
1911
82ea117a
MK
19122002-06-09 Mark Kettenis <kettenis@gnu.org>
1913
1914 * i386-linux-nat.c (suppy_gregset): Don't supply
1915 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
1916 register cache.
1917 (fill_gregset): Don't fetch it under the same circumstances.
1918
3c25f8c7
AC
19192002-06-09 Andrew Cagney <cagney@redhat.com>
1920
1921 * Makefile.in (callback_h): Define.
1922 (remote_sim_h): Update path to remote-sim.h.
1923 (remote-rdp.o): Add $(callback_h).
1924 (remote-sim.o): Use $(callback_h).
1925 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
1926 * remote-rdp.c: Include "gdb/callback.h".
1927
1029b7fa
MK
19282002-06-09 Mark Kettenis <kettenis@gnu.org>
1929
1930 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
1931 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
1932
616675d3
AC
19332002-06-08 Andrew Cagney <ac131313@redhat.com>
1934
a3efda28
AC
1935 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
1936 * rdi-share/serpardr.c: Ditto.
1937 * rdi-share/unixcomm.c: Ditto.
1938 * rdi-share/serdrv.c: Ditto.
1939 * rdi-share/hostchan.h: Ditto.
1940 * rdi-share/hostchan.c: Ditto.
1941 * rdi-share/host.h: Ditto.
1942 * rdi-share/devsw.c: Ditto.
1943
c5f10366
AC
1944 * objfiles.h: Change type of obj_private to void pointer.
1945 * pa64solib.c: Update copyright. Don't include "assert.h", use
1946 strcmp instead of STREQ, use LONGEST, do not use PTR
1947 * somsolib.c: Ditto.
1948
616675d3
AC
1949 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
1950 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
1951 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
1952
e4b415d9
AC
19532002-06-08 Andrew Cagney <ac131313@redhat.com>
1954
1955 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
1956 (default_get_saved_register): Delete function.
1957 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
1958 generic_unwind_get_saved_register.
1959 * gdbarch.h, gdbarch.c: Re-generate.
1960
ca0d0b52
AC
19612002-06-08 Andrew Cagney <ac131313@redhat.com>
1962
1963 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
1964 generic_func_frame_chain_valid.
1965 * gdbarch.h, gdbarch.c: Re-generate.
1966 * blockframe.c (generic_func_frame_chain_valid): Only check
1967 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
1968 passing FP to PC_IN_CALL_DUMMY.
1969 Fix PR gdb/360.
1970
76860b5f
AC
19712002-06-08 Andrew Cagney <ac131313@redhat.com>
1972
1973 * gdbarch.sh (struct gdbarch_data): Add field init_p.
1974 (register_gdbarch_data): Initialize init_p.
1975 (gdbarch_data): Initialize data pointer using the init function.
1976 (init_gdbarch_data): Delete function.
1977 (gdbarch_update_p): Update.
1978 (initialize_non_multiarch): Update.
1979 (struct gdbarch): Add field initialized_p.
1980 * gdbarch.h, gdbarch.c: Re-generate.
1981
8dda9770
ML
19822002-06-07 Michal Ludvig <mludvig@suse.cz>
1983
1984 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
1985 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
1986 better do the things actually here.
1987 * x86-64-tdep.c (x86_64_register_name2nr): New.
1988 (x86_64_register_name): Renamed to x86_64_register_nr2name.
1989 (x86_64_gdbarch_init): Respect the above change.
1990 * x86-64-tdep.h (x86_64_register_name2nr)
1991 (x86_64_register_nr2name): Add prototypes.
1992 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
1993
3d79a47c
MS
19942002-06-06 Michael Snyder <msnyder@redhat.com>
1995
7bd91a28
MS
1996 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
1997 Delete extra braces and re-indent.
1998 (d10v_store_return_value): Char return values
3d79a47c
MS
1999 must be shifted over by one byte in R0.
2000 (d10v_extract_return_value): Delete extra braces, re-indent.
2001
095a4c96
EZ
20022002-06-06 Elena Zannoni <ezannoni@redhat.com>
2003
2004 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
2005 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
2006 (d10v_integer_to_address): Rewrite.
2007 (d10v_frame_init_saved_regs): When reading fp and sp registers use
2008 the d10v specific functions which take care of converting to the
2009 correct space.
2010
e8a77ca4
EZ
20112002-06-06 Elena Zannoni <ezannoni@redhat.com>
2012
2013 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
2014 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
2015
4f2e4a4f
AC
20162002-06-02 Andrew Cagney <ac131313@redhat.com>
2017
2018 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
2019 includes.
2020 * config/tm-linux.h: Ditto.
2021 * config/alpha/tm-alphalinux.h: Ditto.
2022 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
2023 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
2024 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
2025 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
2026 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
2027 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
2028 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
2029 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
2030 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
2031 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
2032 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
2033 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2034 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
2035 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
2036 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
2037 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
2038 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
2039 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
2040 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
2041 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
2042 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
2043 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
2044 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
2045 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
2046 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
2047 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
2048 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
2049 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
2050 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
2051 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
2052 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
2053 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
2054 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
2055 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
2056 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
2057 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
2058 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
2059
ae2ab2ce
AS
20602002-05-04 Aidan Skinner <aidan@velvet.net>
2061
2062 * ada-exp.tab.c: New file
2063 * ada-exp.y: New file
2064 * ada-lang.c: New file
2065 * ada-lang.h: New file
2066 * ada-lex.c: New file
2067 * ada-lex.l: New file
2068 * ada-tasks.c: New file
2069 * ada-typeprint.c: New file
2070 * ada-valprint.c: New file
2071
0ddd0135
JT
20722002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
2073
2074 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
2075 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
2076
750fbacc
JT
20772002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
2078
2079 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
2080 insetead of ppc-linux-tdep.o.
2081 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
2082 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
2083
df94e18a
AC
20842002-06-02 Andrew Cagney <ac131313@redhat.com>
2085
2086 2002-05-07 Christian Groessler <chris@groessler.org>
2087 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
2088 bit register contents for little endian hosts.
2089
1a38ab75
AC
20902002-06-01 Andrew Cagney <ac131313@redhat.com>
2091
2092 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
2093 any maintainer.
2094
8b1632ac
AC
20952002-06-01 Andrew Cagney <ac131313@redhat.com>
2096
2097 * gdbarch.h: Regenerate.
2098
627054c8
AC
20992002-06-01 Andrew Cagney <ac131313@redhat.com>
2100
2101 * MAINTAINERS: Add everyone to write-after-approval list.
2102
4f460812
AC
21032002-06-01 Andrew Cagney <ac131313@redhat.com>
2104
2105 * stack.c (frame_info): Use frame_register_unwind instead of
2106 saved_regs. Mention when the SP is on the stack or in a register.
2107
2108 * frame.h (frame_register_unwind_ftype): Define. Document.
2109 (struct frame_info): Add field register_unwind and
2110 register_unwind_cache.
2111 (frame_register_unwind): Declare.
2112 (generic_unwind_get_saved_register): Declare.
2113
2114 * frame.c (frame_register_unwind): New function.
2115 (generic_unwind_get_saved_register): New function.
2116
2117 * blockframe.c (generic_call_dummy_register_unwind): New function.
2118 (frame_saved_regs_register_unwind): New function.
2119 (set_unwind_by_pc): New function.
2120 (create_new_frame): New function.
2121 (get_prev_frame): New function.
2122
de888f76
AC
21232002-05-30 Andrew Cagney <ac131313@redhat.com>
2124
2125 * a29k-share/: Delete directory.
2126 * remote-vx29k.c: Delete file.
2127
2f2c3626
JT
21282002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2129
2130 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
2131 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
2132
9ce5c36a
JT
21332002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2134
2135 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
2136 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
2137 (sparc64nbsd-nat.o)
2138 (sparcnbsd-nat.o)
2139 (sparcnbsd-tdep.o): New dependency lists.
2140 * NEWS: Note new UltraSPARC NetBSD native configuration.
2141 * configure.host (sparc64-*-netbsd*): New host.
2142 * configure.tgt (sparc-*-netbsdelf*)
2143 (sparc-*-netbsd*): Set gdb_target to nbsd.
2144 (sparc64-*-netbsd*): New target.
2145 * sparc64nbsd-nat.c: New file.
2146 * sparcnbsd-nat.c: New file.
2147 * sparcnbsd-tdep.c: New file.
2148 * sparcnbsd-tdep.h: New file.
2149 * config/sparc/nbsd.mt: New file.
2150 * config/sparc/nbsd64.mh: New file.
2151 * config/sparc/nbsd64.mt: New file.
2152 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
2153 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2154 (HOST_IPC): Remove.
2155 * config/sparc/nbsdaout.mt: Remove.
2156 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
2157 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2158 (HOST_IPC): Remove.
2159 * config/sparc/nbsdelf.mt: Remove.
2160 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
2161 sparc-nat.c compatiblity defines.
2162 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
2163 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
2164 * config/sparc/tm-nbsd64.h: New file.
2165 * config/sparc/tm-nbsdaout.h: Remove.
2166 * config/sparc/xm-nbsd.h: Remove.
2167
ef3cf062
JT
21682002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2169
2170 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
2171 * sparc-tdep.c: Include osabi.h.
2172 (gdbarch_tdep): Add osabi member.
2173 (_initialize_sparc_tdep): Use gdbarch_register.
2174 (sparc_gdbarch_init): Use generic OS ABI framework.
2175 (sparc_dump_tdep): New function.
2176
ee8ff470
KB
21772002-05-30 Kevin Buettner <kevinb@redhat.com>
2178
2179 * corefile.c (do_captured_read_memory_integer): Return non-zero
2180 result.
2181 (safe_read_memory_integer): Copy result of memory read when
2182 status is non-zero. Also, add comments.
2183
7b112f9c
JT
21842002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
2185
2186 * Makefile.in (ppc_tdep_h): Define.
2187 (ppc-linux-nat.o)
2188 (ppc-linux-tdep.o)
2189 (rs6000-tdep.o): Use $(ppc_tdep_h).
2190 (ppc-sysv-tdep.o)
2191 (ppcnbsd-nat.o)
2192 (ppcnbsd-tdep.o): New dependency lists.
2193 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
2194 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
2195 (ppc_linux_init_abi): New functions.
7b112f9c
JT
2196 (ppc_sysv_abi_broken_use_struct_convention)
2197 (ppc_sysv_abi_use_struct_convention)
2198 (ppc_sysv_abi_push_arguments): Move to...
2199 * ppc-sysv-tdep.c: ...here.
2200 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
2201 * rs6000-tdep.c (process_note_abi_tag_sections)
2202 (get_elfosabi): Remove.
2203 (rs6000_gdbarch_init): Use generic OS ABI framework.
2204 (rs6000_dump_tdep): New function.
2205 (_initialize_rs6000_tdep): Use gdbarch_register.
2206 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
2207 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
2208 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
2209 of ppc-linux-tdep.o.
2210 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
2211 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
2212 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
2213 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
2214 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
2215 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
2216
480dd42a
JB
22172002-05-29 Jim Blandy <jimb@redhat.com>
2218
2219 * macroscope.c (default_macro_scope): Put `void' in empty argument
2220 list.
2221
4182591f
AC
22222002-05-29 Andrew Cagney <ac131313@redhat.com>
2223
2224 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
2225 * arch-utils.c: Include "sim-regno.h".
2226 * gdbarch.sh: Don't include "sim-regno.h".
2227 * gdbarch.h, gdbarch.c: Regenerate.
2228 * sim-regno.h (legacy_register_sim_regno): Move declaration from
2229 here.
2230 * arch-utils.h (legacy_register_sim_regno): To here.
2231 * remote-sim.c (legacy_register_sim_regno): Move function from
2232 here.
2233 * arch-utils.c (legacy_register_sim_regno): To here.
2234
8238d0bf
AC
22352002-05-28 Andrew Cagney <ac131313@redhat.com>
2236
2237 * sim-regno.h: New file.
2238 * Makefile.in (sim_regno_h): Define.
2239 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
2240 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
2241 (legacy_register_sim_regno): New function.
2242 (one2one_register_sim_regno): New function.
2243 (gdbsim_fetch_register): Rewrite.
2244 (gdbsim_store_register): Only store a register when
2245 REGISTER_SIM_REGNO is valid.
2246 * d10v-tdep.c: Include "sim-regno.h".
2247 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
2248 (d10v_ts3_register_sim_regno): Ditto.
2249 * gdbarch.sh: Include "sim-regno.h".
2250 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
2251 * gdbarch.h, gdbarch.c: Regenerate.
2252 * arch-utils.h (default_register_sim_regno): Delete declaration.
2253 * arch-utils.c (default_register_sim_regno): Delete function.
2254
485721b1
JT
22552002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
2256
2257 * ppcnbsd-nat.c: Rewrite.
2258 * ppcnbsd-tdep.c: New file.
2259 * ppcnbsd-tdep.h: New file.
2260 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
2261 solib.o, and solib-svr4.o.
2262 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
2263 nbsd-tdep.o, and corelow.o.
2264
697f244d
AC
22652002-05-28 Andrew Cagney <ac131313@redhat.com>
2266
2267 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
2268 `tr' and `sed'. Mention that `broken' targets are not expected to
2269 build.
2270
f08caad1 22712002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
2272
2273 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
2274 Let PC point right after the prologue before looking up symbols.
2275
3139facc
MH
22762002-05-27 Martin M. Hunt <hunt@redhat.com>
2277
2278 * i386-tdep.c (i386_register_virtual_type): Return
2279 builtin_type_vec128i for SSE registers.
2280
2281 * gdbtypes.h (builtin_type_vec128i): Declare.
2282
2283 * gdbtypes.c (build_builtin_type_vec128i): New function.
2284 (builtin_type_v2_double, builtin_type_v4_int64): New types.
2285 (builtin_type_vec128i): New type for SSE2 128-bit registers.
2286 (build_gdbtypes): Initialize new builtin vector types.
2287 (_initialize_gdbtypes): Register new vector types with gdbarch.
2288
6e3ba3b8
JT
22892002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2290
2291 * MAINTAINERS: ns32k is not longer an obsolete candidate,
2292 since it has been multi-arch'd.
2293 * NEWS: Note that ns32k-*-* is now partial multi-arch.
2294 Move Alpha and VAX multi-arch news entries to same section
2295 as other multi-arch news.
2296
93d5585d
JT
22972002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2298
2299 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
2300 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
2301 static. Rename some register numbers to put them in ns32k-tdep
2302 private namespace.
2303 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
2304 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
2305 functions.
2306 (_initialize_ns32k_tdep): Use gdbarch_register.
2307 * ns32k-tdep.h: New file.
2308 * ns32knbsd-tdep.c: New file.
2309 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
2310 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
2311 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
2312 REGISTER_BYTES, REGISTER_BYTE): Remove.
2313 * config/ns32k/tm-ns32k.h: New file.
2314 * config/ns32k/tm-umax.h: Remove.
2315
efb2c70e
JT
23162002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2317
2318 * ns32k-tdep.c (ns32k_saved_pc_after_call,
2319 ns32k_store_struct_return, ns32k_extract_return_value,
2320 ns32k_store_return_value, ns32k_extract_struct_value_address): New
2321 functions.
2322 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
2323 ns32k_saved_pc_after_call.
2324 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
2325 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
2326 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
2327 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
2328 ns32k_extract_struct_value_address.
2329
7bcc927b
JT
23302002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2331
2332 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
2333 ns32k_fix_call_dummy): New.
2334 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
2335 ns32k_call_dummy_words.
2336 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
2337 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
2338 CALL_DUMMY_NARGS): Remove.
2339 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
2340
78f9d765
JT
23412002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2342
2343 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
2344 ns32k_frame_saved_pc, ns32k_frame_args_address,
2345 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
2346 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
2347 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
2348 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
2349 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
2350 (BREAKPOINT): Remove..
2351 (FRAME_CHAIN): Define as ns32k_frame_chain.
2352 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
2353 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
2354 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
2355 (FRAME_FIND_SAVED_REGS): Remove.
2356 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
2357 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
2358 (POP_FRAME): Define as ns32k_pop_frame.
2359
f2c762e0
JT
23602002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2361
2362 * ns32k-tdep.c (ns32k_register_byte_32082,
2363 ns32k_register_byte_32382, ns32k_register_raw_size,
2364 ns32k_register_virtual_size, ns32k_register_virtual_type): New
2365 functions.
2366 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
2367 ns32k_register_byte_32382.
2368 * config/ns32k/tm-umax.h: Update copyright years.
2369 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
2370 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
2371 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
2372 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
2373 (ns32k_get_enter_addr): Fix prototype.
2374
af137673
JT
23752002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2376
2377 * ns32k-tdep.c: Update copyright years.
2378 (ns32k_register_name_32082): New function.
2379 (ns32k_register_name_32382): Ditto.
2380 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
2381 (REGISTER_NAME): Define as ns32k_register_name_32382.
2382 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
2383 (REGISTER_NAME): Define as ns32k_register_name_32082.
2384
a8bc7b56
JB
23852002-05-24 Jim Blandy <jimb@redhat.com>
2386
2387 * dwarf2read.c (free_line_header): Use xfree, not free.
2388
83a45910
JT
23892002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
2390
2391 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
2392 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
2393
0db71247
AC
23942002-05-23 Andrew Cagney <ac131313@redhat.com>
2395
2396 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
2397
b9e5e4dd
AC
23982002-05-23 Andrew Cagney <ac131313@redhat.com>
2399
2400 From Ross Alexander at NEC Europe:
2401 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
2402
de530e84
MS
24032002-05-23 Michael Snyder <msnyder@redhat.com>
2404
2405 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
2406 for input, rather than parse_and_eval_address.
2407
b91b96f4
AC
24082002-05-23 Andrew Cagney <ac131313@redhat.com>
2409
2410 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
2411 * Makefile.in (sim_d10v_h): Update definition.
2412
8b279e7a
AC
24132002-05-24 Andrew Cagney <cagney@redhat.com>
2414
2415 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
2416 change `2002-05-22 Michael Snyder' below.
2417 (d10v_push_arguments): Ditto.
2418 (d10v_extract_return_value): Ditto.
2419
0a3d0425
JB
24202002-05-23 Jim Blandy <jimb@redhat.com>
2421
2422 * macrotab.c (check_for_redefinition): Don't complain if the new
2423 definition is the same as the previous one. Take more arguments
2424 to allow the comparison.
2425 (macro_define_object, macro_define_function): Pass more arguments
2426 to check_for_redefinition.
2427
78eac43e
MS
24282002-05-22 Michael Snyder <msnyder@redhat.com>
2429
2430 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
2431 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
2432 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
2433 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
2434 Don't bail if return_pc is PC_IN_CALL_DUMMY.
2435 Add a temp variable to save a call (and a memory read).
2436 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
2437 if possible (so that PC_IN_CALL_DUMMY will work).
2438
9bc1edb8
CV
24392002-05-22 Corinna Vinschen <vinschen@redhat.com>
2440
2441 * MAINTAINERS: Remove status `OBSOLETE' from v850.
2442
005ef3d2
ML
24432002-05-22 Michal Ludvig <mludvig@suse.cz>
2444
2445 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
2446 fde->cie_ptr.
2447 (dwarf2_build_frame_info): Corrected handling of eh_frame.
2448 (dwarf2_build_frame_info): Add offset to fde->initial_location
2449 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
2450 (execute_stack_op): Change type of 'result' from ULONGEST to
2451 CORE_ADDR.
005ef3d2 2452
fcf4f891
JT
24532002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2454
2455 * config/alpha/tm-nbsd.h: Include solib.h.
2456
cfef91e4
JT
24572002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2458
2459 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
2460 assumptions about the host's byte order.
2461
9964235a
JT
24622002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2463
2464 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
2465 to dependency list.
2466 * alphanbsd-tdep.c: Include solib-svr4.h.
2467 * shnbsd-tdep.c: Ditto.
2468
9eeef8ef
JT
24692002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2470
2471 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
2472 nbsd-tdep.h to dependency list.
2473 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
2474 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
2475 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
2476 nbsdaout.mh and nbsdelf.mh consistently.
2477 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
2478 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
2479 nbsdaout.mt and nbsdelf.mh consistently.
2480 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
2481 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
2482 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2483 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
2484 a.out shared library stuff from here...
2485 * config/nm-nbsdaout.h: ...to here.
2486 * config/tm-nbsd.h: Remove.
2487 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
2488 * config/arm/nbsd.mh: Remove.
2489 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
2490 nbsd-tdep.o.
2491 * config/arm/nbsdaout.mh: New file.
2492 * config/arm/nbsdelf.mh: New file.
2493 * config/arm/nm-nbsdaout.h: New file.
2494 * config/i386/nbsd.mh: Remove.
2495 * config/i386/nbsd.mt: Remove.
2496 * config/i386/nbsdaout.mh: New file.
2497 * config/i386/nbsdaout.mt: New file.
2498 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2499 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
2500 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
2501 i386_register_u_addr): Remove.
2502 * config/i386/nm-nbsdaout.h: New file.
2503 * config/i386/nm-nbsdelf.h: Remove.
2504 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
2505 (USE_STRUCT_CONVENTION): Remove.
2506 * config/i386/tm-nbsdaout.h: New file.
2507 * config/i386/tm-nbsdelf.h: Remove.
2508 * config/m68k/nbsd.mh: Remove.
2509 * config/m68k/nbsd.mt: Remove.
2510 * config/m68k/nbsdaout.mh: New file.
2511 * config/m68k/nbsdaout.mt: New file.
2512 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
2513 * config/m68k/nm-nbsdaout.h: New file.
2514 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
2515 (IN_SOLIB_CALL_TRAMPOLINE): Define.
2516 * config/ns32k/nbsd.mh: Remove.
2517 * config/ns32k/nbsd.mt: Remove.
2518 * config/ns32k/nbsdaout.mh: New file.
2519 * config/ns32k/nbsdaout.mt: New file.
2520 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
2521 * config/ns32k/nm-nbsdaout.h: New file.
2522 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
2523 (IN_SOLIB_CALL_TRAMPOLINE): Define.
2524 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
2525 (SVR4_SHARED_LIBS): Remove.
2526 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
2527 * config/sparc/nbsd.mh: Remove.
2528 * config/sparc/nbsd.mt: Remove.
2529 * config/sparc/nbsdaout.mh: New file.
2530 * config/sparc/nbsdaout.mt: New file.
2531 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2532 * config/sparc/nbsdelf.mt: New file.
2533 * config/sparc/nm-nbsdaout.h: New file.
2534 * config/sparc/nm-nbsdelf.h: Remove.
2535 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
2536 * config/sparc/tm-nbsdaout.h: New file.
2537
257ce470
JT
25382002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2539
2540 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
2541 mipsnbsd-tdep.c
2542 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
2543
76a6d5fe
JT
25442002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2545
2546 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
2547 shnbsd-nat.c.
2548 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
2549
45888261
JT
25502002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2551
2552 * NEWS: Note new MIPS NetBSD native configuration.
2553 * configure.host (mips*-*-netbsd*): New host.
2554 * configure.tgt (mips*-*-netbsd*): New target.
2555 * mipsnbsd-nat.c: New file.
2556 * mipsnbsd-tdep.c: New file.
2557 * mipsnbsd-tdep.h: New file.
2558 * config/mips/nbsd.mh: New file.
2559 * config/mips/nbsd.mt: New file.
2560 * config/mips/nm-nbsd.h: New file.
2561 * config/mips/tm-nbsd.h: New file.
2562
70f80edf
JT
25632002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2564
2565 * Makefile.in (SFILES): Add osabi.c.
2566 (COMMON_OBS): Add osabi.o.
2567 (osabi.o): New dependency list.
2568 * osabi.c: New file.
2569 * osabi.h: New file.
2570 * doc/gdbint.texinfo: Document new generic OS ABI framework.
2571
2572 * Makefile.in (alpha_tdep_h): Define and use instead of
2573 alpha-tdep.h.
2574 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
2575 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
2576 Remove.
2577 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
2578 * alpha-tdep.h: Include osabi.h.
2579 (alpha_abi): Remove.
2580 (gdbarch_tdep): Use generic OS ABI framework.
2581 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
2582 gdbarch_register_osabi.
2583 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
2584 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
2585 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
2586
2587 * Makefile.in (sh_tdep_h): Add osabi.h.
2588 * sh-tdep.h (sh_osabi): Remove.
2589 (gdbarch_tdep): Use generic OS ABI framework.
2590 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
2591 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
2592 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
2593 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
2594
2595 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
2596 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
2597 gdbarch_register_osabi.
2598 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
2599 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
2600 (get_elfosabi): Rename to...
2601 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
2602 ABI framework support routines.
2603 (arm_gdbarch_init): Use generic OS ABI framework.
2604 (arm_dump_tdep): Likewise.
2605 (_initialize_arm_tdep): Likewise.
2606 * arm-tdep.h: Include osabi.h.
2607 (arm_abi): Remove.
2608 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
2609 osabi member.
2610 (arm_gdbarch_register_os_abi): Remove prototype.
2611 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
2612 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
2613
2614 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
2615 * mips-tdep.c: Include osabi.h.
2616 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
2617 OS ABI framework.
2618
d194345b
KH
26192002-05-20 Kazu Hirata <kazu@cs.umass.edu>
2620
2621 * h8300-tdep.c: Fix formatting.
2622
70c6b0d1
EZ
26232002-05-20 Elena Zannoni <ezannoni@redhat.com>
2624
2625 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
2626 printing vector registers.
2627
165b8e33
AC
26282002-05-19 Andrew Cagney <ac131313@redhat.com>
2629
2630 From Fernando Nasser:
2631 * remote.c (remote_async_open_1): Re-throw the exception when the
2632 connection fails.
2633 (remote_cisco_open): Ditto.
2634 (remote_open_1): Ditto.
2635
36918e70
AC
26362002-05-19 Andrew Cagney <ac131313@redhat.com>
2637
2638 * remote.c (remote_start_remote_dummy): Add uiout parameter.
2639 (remote_start_remote): Add uiout parameter. Pass through to
2640 remote_start_remote_dummy.
2641 (remote_open_1): Use catch_exception instead of catch_errors.
2642 (remote_async_open_1): Ditto.
2643 (remote_cisco_open): Ditto.
2644
ae44c0c4
AC
26452002-05-19 Andrew Cagney <ac131313@redhat.com>
2646
2647 * remote.c (remote_start_remote): Replace PTR with void pointer.
2648 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
2649 static.
2650
8efe637d
AC
26512002-05-18 Andrew Cagney <ac131313@redhat.com>
2652
2653 * gdb_indent.sh: Allow the script to be run in the sim directory.
2654
2f1b5984
MK
26552002-05-18 Mark Kettenis <kettenis@gnu.org>
2656
f0f625e2
MK
2657 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
2658 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
2659
2f1b5984
MK
2660 * corelow.c (core_open): Only call set_gdbarch_from_file if
2661 exec_bfd is NULL.
2662
fc974602
AV
26632002-05-17 Andrey Volkov <avolkov@transas.com>
2664
2665 * h8300-tdep.c: Add support of EXR register
2666 * config/h8300/tm-h8300.h: Ditto.
2667
906709f4
AV
26682002-05-17 Andrey Volkov <avolkov@transas.com>
2669
2670 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
2671
6e591d68
AV
26722002-05-17 Andrey Volkov <avolkov@transas.com>
2673
2674 * h8300-tdep.c: Change literal regnums to REGNO.
2675
84f0252a
JB
26762002-05-17 Jim Blandy <jimb@redhat.com>
2677
e0e9281e
JB
2678 * NEWS: Note addition of macro support.
2679
84f0252a
JB
2680 Expand preprocessor macros in C expressions.
2681 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
2682 (scan_macro_expansion, scanning_macro_expansion,
2683 finished_macro_expansion): New function declarations.
2684 (expression_macro_lookup_func, expression_macro_lookup_baton): New
2685 variable declarations.
2686 * parser-defs.h (expression_context_pc): New declaration.
2687 * parse.c (expression_context_pc): New variable.
2688 (parse_exp_1): Set expression_context_pc, as well as
2689 expression_context_block.
2690 * c-exp.y (yylex): If we're not already reading the result of a
2691 macro expansion, try to macro-expand the next token. When we're
2692 done scanning a macro expansion, switch back to the mainline text.
2693 Commas and `if's in a macro's expansion don't terminate the input.
2694 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
2695 (macro_original_text, macro_expanded_text,
2696 expression_macro_lookup_func, expression_macro_lookup_baton): New
2697 variables.
2698 (scan_macro_expansion, scanning_macro_expansion,
2699 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
2700 c_preprocess_and_parse): New functions.
2701 (c_language_defn, cplus_language_defn, asm_language_defn): Call
2702 c_preprocess_and_parse, instead of c_parse.
2703 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
2704 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
2705
1c509ca8
JR
2706Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
2707
2708 * sh-tdep.c (gdb_print_insn_sh64): Delete.
2709 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
2710 (sh_gdbarch_init): Always use gdb_print_insn_sh.
2711
2250ee0c
CV
27122002-05-17 Corinna Vinschen <vinschen@redhat.com>
2713
2714 * NEWS: Add section for multi-arched targets. Add v850 to that section.
2715
ab3b8126
JT
27162002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
2717
2718 * Makefile.in (sh_tdep_h): Define and use.
2719 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
2720 register enum): Move to...
2721 * * sh-tdep.h: ...here.
2722 * sh-tdep.c: Include sh-tdep.h.
2723 * sh3-rom.c: Likewise.
2724 * shnbsd-tdep.c: Likewise.
2725
ed9d4749
MS
27262002-05-16 Michael Snyder <msnyder@redhat.com>
2727
2728 * arm-tdep.c: Spelling fix in comment.
2729
2e276125
JB
27302002-05-16 Jim Blandy <jimb@redhat.com>
2731
6821892e
JB
2732 Add commands for manually expanding macros and showing their
2733 definitions.
2734 * macrocmd.c, macroscope.c, macroscope.h: New files.
2735 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
2736 (macroscope_h): New variable.
2737 (HFILES_NO_SRCDIR): Add macroscope.h.
2738 (COMMON_OBS): Add macrocmd.o, macroscope.o.
2739 (macroscope.o, macrocmd.o): New rules.
2740
2e276125
JB
2741 Teach the Dwarf 2 reader to read macro information.
2742 * dwarf2read.c: #include "macrotab.h".
2743 (dwarf_macinfo_buffer): New variable.
2744 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
2745 dwarf_macinfo_size.
2746 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
2747 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
2748 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
2749 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
2750 dwarf2_macro_spaces_in_definition): New complaints.
2751 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
2752 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
2753 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
2754 the partial symbol table.
2755 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
2756 from what's recorded in the partial symbol table.
2757 (read_file_scope): If the compilation unit has a
2758 `DW_AT_macro_info' attribute, read its macro information.
2759 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
2760
2f53fe6c
DJ
27612002-05-16 Daniel Jacobowitz <drow@mvista.com>
2762
2763 Fix PR gdb/546
2764 * ser-tcp.c: Don't include <netinet/udp.h>.
2765
2be99286
SC
27662002-05-16 Stephane Carrez <stcarrez@nerim.fr>
2767
2768 * MAINTAINERS: Update my email address.
2769
c9af212b 27702002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
2771
2772 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
2773 include file of the same name.
2774
bf5f1a52
CV
27752002-05-16 Corinna Vinschen <vinschen@redhat.com>
2776
2777 * configure.tgt: Mark v850 as multi-arched.
2778 * config/v850/tm-v850.h: Remove file.
2779 * config/v850/v850.mt: Eliminate TM_FILE.
2780
435e042a
CV
27812002-05-16 Corinna Vinschen <vinschen@redhat.com>
2782
2783 * v850-tdep.c: Full multi-arch.
2784 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
2785 Define GDB_MULTI_ARCH to 2.
2786
9819c6c8
PM
27872002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
2788
2789 * p-exp.y (current_type): New static variable.
2790 Carries the type of the expression at the position that is parsed.
2791 (push_current_type, pop_current_type): Two new functions. Used
2792 to store/restore current_type in expression on specific tokens.
c9af212b
RE
2793 (search_field): New static variable. Set to one after parsing a point
2794 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
2795 (FIELDNAME): New token. After a point only a token belonging to
2796 current_type type definition is allowed.
2797 (all over token rules): reset and change current_type according
2798 to rules.
2799 (exp '[' rule): insert implicit array index field if
2800 exp is a pascal string type.
2801
3a06899a
CV
28022002-05-16 Corinna Vinschen <vinschen@redhat.com>
2803
2804 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
2805 frame info. Use frame_info's saved_regs instead of matching member
2806 in extra_frame_info throughout.
2807 (v850_frame_init_saved_regs): New function.
2808 (v850_init_extra_frame_info): Move most functionality into
2809 v850_frame_init_saved_regs().
2810 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
2811 (v850_frame_find_saved_regs): Remove declaration.
2812 (FRAME_FIND_SAVED_REGS): Remove definition.
2813 (v850_frame_init_saved_regs): Add declaration.
2814 (FRAME_INIT_SAVED_REGS): Add definition.
2815
6ed14b0e
CV
28162002-05-16 Corinna Vinschen <vinschen@redhat.com>
2817
2818 * v850-tdep.c: Begin multi-arch'ing v850.
2819 (v850_target_architecture_hook): Remove function.
2820 (v850_gdbarch_init): New function. Add code previously in
2821 v850_target_architecture_hook().
2822 (_initialize_v850_tdep): Don't set target_architecture_hook.
2823 Call register_gdbarch_init() instead.
2824
42725910
DJ
28252002-05-16 Daniel Jacobowitz <drow@mvista.com>
2826
2827 * gdbtypes.h (struct cplus_struct_type): Remove args field.
2828 * hpread.c (hpread_read_struct_type): Remove assignments to args.
2829 (fixup_class_method_type): Likewise.
2830
0bc68c49
DJ
28312002-05-15 Daniel Jacobowitz <drow@mvista.com>
2832
2833 From Martin Pool <mbp@samba.org>:
2834 * gdbserver/server.c (gdbserver_usage): New function.
2835 (main): Call it.
2836
99d9066e
JB
28372002-05-15 Jim Blandy <jimb@redhat.com>
2838
2839 Add macro structures to GDB's symbol tables. Nobody puts anything
2840 in them yet.
2841 * symtab.h (struct symtab): New member: `macro_table'.
2842 * buildsym.h (pending_macros): New global variable.
2843 * buildsym.c: #include "macrotab.h".
2844 (buildsym_init): Initialize `pending_macros'.
2845 (end_symtab): If we found macro information while reading a CU's
2846 debugging info, do build a symtab structure for it. Make the
2847 symtab point to the macro information, and clear the
2848 `pending_macros' pointer which held it while we were reading the
2849 debug info.
2850 (really_free_pendings): Free any pending macro table.
2851 * objfiles.h (struct objfile): New member: `macro_cache'.
2852 * objfiles.c (allocate_objfile): Set allocate and free functions
2853 for the macro cache's objstack.
2854 (free_objfile): Empty the macro cache's obstack.
2855 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
2856 set new allocate and free functions for it.
2857 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
2858 free functions for the macro cache's objstack. (Why is this
2859 function building its own objfile?)
2860 * symmisc.c (print_objfile_statistics): Print statistics on the
2861 macro bcache.
2862 * Makefile.in: Note that buildsym.o depends on macrotab.h.
2863
c899585b
RE
28642002-05-15 Richard Earnshaw <rearnsha@arm.com>
2865
2866 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
2867 (REGISTER_U_ADDR): Delete definition.
2868 (arm_register_u_addr): Delete declaration.
2869
a6cdd8c5
RE
28702002-05-15 Richard Earnshaw <rearnsha@arm.com>
2871
2872 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
2873 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
2874
fd3a5ca1
DJ
28752002-05-14 Daniel Jacobowitz <drow@mvista.com>
2876
2877 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
2878 stop_at -> stop_pc.
2879
c97dcfc7
AC
28802002-05-14 Andrew Cagney <ac131313@redhat.com>
2881
2882 * regcache.c (register_valid): Revise comments refering to "Not
2883 available" and "unavailable".
2884 * frame.c (frame_register_read): Ditto.
2885 * findvar.c (value_of_register): Ditto.
2886
93021b7d
AC
28872002-05-15 Andrew Cagney <cagney@redhat.com>
2888
2889 * Makefile.in (remote_sim_h): Replace remote-sim_h.
2890 (remote-sim.o): Update dependencies.
2891 (d10v-tdep.o): Specify dependencies.
2892 (sim_d10v_h): Define.
2893
a86bc61c
JB
28942002-05-14 Jim Blandy <jimb@redhat.com>
2895
2896 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
2897 * macrotab.c (macro_lookup_inclusion, find_definition,
2898 new_macro_table): Same.
2899
2900 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
2901 not `! strcmp ()'. This is a dubious improvement.
2902 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
2903
2904 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
2905 although it's not necessary, to avoid a warning.
2906
2fdde8f8
DJ
29072002-05-14 Daniel Jacobowitz <drow@mvista.com>
2908
2909 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
2910 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
2911 TYPE_INSTANCE_FLAGS.
2912 (struct main_type): New.
2913 (struct type): Move most members to struct main_type. Change
2914 cv_type and as_type to new type_chain member. Add instance_flags.
2915 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
2916 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
2917 (finish_cv_type): Remove prototype.
2918 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
2919 Set TYPE_CHAIN.
2920 (alloc_type_instance): New function.
2921 (smash_type): New function.
2922 (make_pointer_type, make_reference_type, make_function_type)
2923 (smash_to_member_type, smash_to_method_type): Call smash_type.
2924 (make_qualified_type): New function.
2925 (make_type_with_address_space): Call make_qualified_type.
2926 (make_cv_type): Likewise.
2927 (finish_cv_type): Remove unnecessary function.
2928 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
2929 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
2930 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
2931 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
2932 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
2933 * hpread.c (hpread_read_struct_type): Likewise.
2934 * stabsread.c (read_struct_type): Likewise.
2935
843fedf4
EZ
29362002-05-14 Elena Zannoni <ezannoni@redhat.com>
2937
2938 * configure.tgt: Add a catch all sh* target, for cases like
2939 sh[2,3,4]-elf and sh-hms.
2940
05a6c72c
KS
29412002-05-14 Keith Seitz <keiths@redhat.com>
2942
2943 * event-loop.c (create_file_handler): Don't do anything but
2944 update data when we are given a fd which we are already
2945 monitoring.
2946
5d085aaf
ML
29472002-05-14 Michal Ludvig <mludvig@suse.cz>
2948
2949 * dwarf2cfi.c (context_cpy): Copy registers correctly.
2950 (update_context): Use __func__ in warnings.
2951
9db8d71f
DJ
29522002-05-14 Daniel Jacobowitz <drow@mvista.com>
2953
2954 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
2955 and tcp_close to net_open and net_close.
2956 (net_open): Accept "udp:" and "tcp:" specifications. Connect
2957 using UDP if requested. Don't try to disable Nagle on UDP
2958 sockets.
2959 * remote.c (remote_serial_open): New function. Warn about UDP.
2960 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
2961
5dbc6baa
EZ
29622002-05-13 Elena Zannoni <ezannoni@redhat.com>
2963
2964 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
2965
cc3023f7
EZ
29662002-05-13 Elena Zannoni <ezannoni@redhat.com>
2967
2968 * configure.tgt: Remove sh-hms target.
2969 * MAINTAINERS: Don't list sh-hms as a separate target.
2970
ec2bcbe7
JB
29712002-05-13 Jim Blandy <jimb@redhat.com>
2972
2973 Add first preprocessor macro-expansion files.
2974 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
2975 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
2976 (splay_tree_h, macroexp_h, macrotab_h): New variable.
2977 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
2978 (COMMON_OBS): Add macrotab.o, macroexp.o.
2979 (macroexp.o, macrotab.o): New rules.
2980
6d531722
AC
29812002-05-13 Andrew Cagney <ac131313@redhat.com>
2982
2983 * config/m88k/tm-m88k.h: Update copyright.
2984 (m88k_target_write_pc): Declare
2985 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
2986 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
2987 (SHIFT_INST_REGS): Update definition.
2988 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
2989 using old definition of TARGET_WRITE_PC.
2990 * regcache.c (generic_target_write_pc): Delete code handling
2991 NNPC_REGNUM.
2992 * gdbarch.sh (NNPC_REGNUM): Delete.
2993 * gdbarch.h, gdbarch.c: Regenerate.
2994
3e3f2739
RE
29952002-05-13 Richard Earnshaw <rearnsha@arm.com>
2996
2997 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
2998 builtin reg number.
2999
0004e5a2
DJ
30002002-05-13 Daniel Jacobowitz <drow@mvista.com>
3001
3002 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
3003 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
3004 (gen_address_of, gen_struct_ref, gen_repeat): Use type
3005 access macros.
3006 * c-typeprint.c (cp_type_print_method_args): Likewise.
3007 (c_type_print_args): Likewise.
3008 * d10v-tdep.c (d10v_push_arguments): Likewise.
3009 (d10v_extract_return_value): Likewise.
3010 * expprint.c (print_subexp): Likewise.
3011 * gdbtypes.c (lookup_primitive_typename): Likewise.
3012 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
3013 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
3014 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
3015 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
3016 (TYPE_VECTOR): Likewise.
3017 * hpread.c (hpread_read_struct_type)
3018 (fix_static_member_physnames, fixup_class_method_type)
3019 (hpread_type_lookup): Likewise.
3020 * mdebugread.c (parse_symbol, parse_type): Likewise.
3021 * p-lang.c (is_pascal_string_type): Likewise.
3022 * valops.c (hand_function_call): Likewise.
3023 * x86-64-tdep.c (classify_argument): Likewise.
3024
3025 * hpread.c (hpread_read_function_type)
3026 (hpread_read_doc_function_type): Call replace_type.
3027 * dstread.c (create_new_type): Delete.
3028 (decode_dst_structure, process_dst_function): Call alloc_type.
3029 Use type access macros.
3030
dff95cc7
MK
30312002-05-12 Mark Kettenis <kettenis@gnu.org>
3032
3033 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
3034 the're not supported by the current architecture.
3035 (i387_fill_fxsave): Likewise.
3036
bbcd32ad
FF
30372002-05-12 Fred Fish <fnf@redhat.com>
3038
3039 * symfile.c (default_symfile_offsets): Arrange for uninitialized
3040 sect_index_xxx members to index the first slot in section_offsets
3041 if all of the section_offsets are zero.
3042
89cf4787
MK
30432002-05-12 Mark Kettenis <kettenis@gnu.org>
3044
3045 * configure.tgt (sparc-*openbsd): Remove entry accidentially
3046 checked in with last change.
3047
1f77ffc5
MK
30482002-05-12 Mark Kettenis <kettenis@gnu.org>
3049
3050 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
3051 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
3052 config.sub.
3053
89b8b4a9
DJ
30542002-05-12 Daniel Jacobowitz <drow@mvista.com>
3055
3056 * Makefile.in: Update dependencies.
3057
14a5e767
AC
30582002-05-11 Andrew Cagney <ac131313@redhat.com>
3059
3060 * language.c (local_hex_string_custom): Simplify. Do not depend
3061 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
3062
3063 * memattr.c (mem_info_command): Replace calls to
3064 longest_local_hex_string and longest_local_hex_string_custom.
3065 * buildsym.c (make_blockvector): Ditto.
3066 * solib.c (info_sharedlibrary_command): Ditto.
3067 * tracepoint.c (tracepoints_info): Ditto.
3068 * symtab.c (print_msymbol_info): Ditto.
3069
3070 * language.c (local_hex_string): Delete.
3071 (local_hex_string_custom): Delete.
3072 (longest_local_hex_string): Rename to local_hex_string.
3073 (longest_local_hex_string_custom): Rename to
3074 local_hex_string_custom.
3075 * language.h (local_hex_string): Change parameter type to LONGEST.
3076 (local_hex_string_custom): Ditto.
3077 (longest_local_hex_string): Delete declaration.
3078 (longest_local_hex_string_custom): Ditto.
3079
3080 * solib.c: Update copyright.
3081 * memattr.c: Update copyright.
3082
13d01224
AC
30832002-05-11 Andrew Cagney <ac131313@redhat.com>
3084
3085 * arch-utils.h (legacy_register_to_value): Declare.
3086 (legacy_value_to_register): Declare.
3087 (legacy_convert_register_p): Declare.
3088 * arch-utils.c (legacy_register_to_value): New function.
3089 (legacy_value_to_register): New function.
3090 (legacy_convert_register_p): New function.
3091
3092 * gdbarch.sh (REGISTER_TO_VALUE): Define.
3093 (VALUE_TO_REGISTER): Define.
3094 (CONVERT_REGISTER_P): Define.
3095 * gdbarch.h, gdbarch.c: Regenerate.
3096
3097 * valops.c (value_assign): Use CONVERT_REGISTER_P and
3098 VALUE_TO_REGISTER.
3099 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
3100 CONVERT_REGISTER_P.
3101
4a1970e4
DJ
31022005-05-11 Daniel Jacobowitz <drow@mvista.com>
3103 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3104
3105 * Makefile.in: Update dependencies for valops.c.
3106 * valops.c: Include "gdb_assert.h".
3107 (typecmp): Skip THIS parameter to methods.
3108 (find_method_list): Remove static_memfuncp argument,
3109 update callers. Check for stub methods.
3110 (find_value_oload_method_list): Don't set *static_memfuncp.
3111 (find_overload_match): Don't check for stub methods. Assert
3112 that methods are not stubbed. Handle static methods.
3113 (value_find_oload_method_list): Remove static_memfuncp argument.
3114 * gdbtypes.c (check_stub_method): Do not add THIS pointer
3115 to the argument list for static stub methods.
3116 * value.h (value_find_oload_method_list): Update prototype.
3117
b2e75d78
AC
31182002-05-11 Andrew Cagney <ac131313@redhat.com>
3119
3120 * arch-utils.h (generic_register_size): Declare.
3121 (generic_register_raw_size, generic_register_virtual_size): Delete
3122 declarations.
3123 * arch-utils.c (generic_register_raw_size): Delete.
3124 (generic_register_size): New function.
3125 (generic_register_virtual_size): Delete.
3126
3127 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
3128 default generic_register_size.
3129 * gdbarch.h, gdbarch.c: Re-generate.
3130
3131 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
3132 register_virtual_size.
3133 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
3134 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3135
451fbdda
AC
31362002-05-11 Andrew Cagney <ac131313@redhat.com>
3137
3138 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
3139 * gdbarch.h, gdbarch.c: Regenerate.
3140 * gnu-v3-abi.c: Update copyright.
3141 (vtable_address_point_offset): Update.
3142 (gnuv3_rtti_type): Update.
3143 (gnuv3_baseclass_offset): Update.
3144 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
3145 (init_fetch_link_map_offsets): Update.
3146 * remote.c (get_remote_state): Update.
3147
6d2f5cea
DJ
31482002-05-11 Daniel Jacobowitz <drow@mvista.com>
3149
3150 * TODO: Remove value_headof/value_from_vtable_info comment.
3151 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
3152 * values.c (value_headof, value_from_vtable_info): Delete.
3153 * value.h (value_from_vtable_info): Delete prototype.
3154
d2324da4
AC
31552002-05-11 Andrew Cagney <ac131313@redhat.com>
3156
3157 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
3158 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
3159 $(gdb_regex_h).
3160 (gdb_assert_h): Define.
3161 (gdb_wait_h): Define.
3162 (gdb_regex_h): Define.
3163
5c717440
DJ
31642002-05-11 Daniel Jacobowitz <drow@mvista.com>
3165
3166 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3167 * linespec.c (find_methods): Handle GCC 3.x template constructors.
3168
6c7861b3
JT
31692002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3170
3171 * nbsd-tdep.c: Fix comment.
3172
ea5bc2a6
JT
31732002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3174
3175 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
3176 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
3177 (nbsd-tdep.o): New dependency list.
3178 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
3179 nbsd-tdep.h.
3180 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
3181 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
3182 * nbsd-tdep.c: New file.
3183 * nbsd-tdep.h: New file.
3184 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
3185 nbsd-tdep.h.
3186 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
3187 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3188 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3189 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3190
b28da865
JT
31912002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3192
3193 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
3194 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
3195 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
3196 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
3197 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
3198 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
3199
4b8ff1fa
JT
32002002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3201
3202 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
3203 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3204 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
3205 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
3206 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
3207 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
3208 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
3209
dfe6eb1f
JT
32102002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3211
3212 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
3213 fetch_elfcore_registers to...
3214 * i386nbsd-tdep.c: ...here.
3215 (i386nbsd_use_struct_convention): Rename to...
3216 (i386nbsd_aout_use_struct_convention): ...this.
3217 (i386nbsd_supply_reg): New function.
3218 (i386nbsd_fill_reg): New function.
3219 (fetch_core_registers): Use i386nbsd_supply_reg.
3220 (fetch_elfcore_registers): Likewise.
3221 (_initialize_i386nbsd_tdep): New function.
3222 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
3223 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3224 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
3225 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
3226 (i386nbsd_aout_use_struct_convention): ...this.
3227
20cb8cda
JT
32282002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3229
3230 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
3231 (store_inferior_registers): Use shnbsd_fill_reg.
3232 * shnbsd-tdep.c (sh_nbsd_supply_registers,
3233 sh_nbsd_supply_register): Collapse into...
3234 (shnbsd_supply_reg): ...this.
3235 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
3236 (shnbsd_fill_reg): ...this.
3237 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
3238 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
3239 (fetch_core_registers): Use shnbsd_supply_reg.
3240 (fetch_elfcore_registers): Use shnbsd_supply_reg.
3241 (sh_nbsd_core_fns): Rename to...
3242 (shnbsd_core_fns): ...this.
3243 (sh_nbsd_elfcore_fns): Rename to...
3244 (shnbsd_elfcore_fns): ...this.
3245 (sh_nbsd_init_abi): Rename to...
3246 (shnbsd_init_abi): ...this.
3247 (_initialize_sh_nbsd_tdep): Rename to...
3248 (_initialize_shnbsd_tdep): ...this.
3249 * shnbsd-tdep.h (sh_nbsd_supply_registers,
3250 sh_nbsd_supply_register, sh_nbsd_fill_registers,
3251 sh_nbsd_fill_register): Remove prototypes.
3252 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
3253
e750d25e
JT
32542002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3255
3256 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
3257 (i387-nat.o): Delete dependency list.
3258 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
3259 (x86-64-linux-nat.o): Likewise.
3260 * i387-nat.c: Delete file, moving contents to...
3261 * i387-tdep.c: ...here.
3262 * i387-nat.h: Rename...
3263 * i387-tdep.h: ...to this.
3264 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
3265 * i386-linux-nat.c: Likewise.
3266 * i386bsd-nat.c: Likewise.
3267 * i386gnu-nat.c: Likewise.
3268 * i386nbsd-nat.c: Likewise.
3269 * i386v4-nat.c: Likewise.
3270 * x86-64-linux-nat.c: Likewise.
3271 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
3272 * config/i386/go32.mh (NATDEPFILES): Likewise.
3273 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
3274 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
3275 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
3276 * config/i386/linux.mh (NATDEPFILES): Likewise.
3277 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
3278 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3279 * config/i386/obsd.mh (NATDEPFILES): Likewise.
3280 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3281
1aee598a
JT
32822002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3283
3284 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
3285 (alphanbsd-nat.o): Remove dependency list.
3286 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
3287 * alphanbsd-nat.c: Delete. Contents moved to...
3288 * alphanbsd-tdep.c: ...here.
3289 (_initialize_alphanbsd_tdep): Register core functions.
3290 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
3291
12bcb0fe
JT
32922002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3293
3294 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
3295 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
3296 (alphanbsd-nat.o): Likewise.
3297 (alphabsd-tdep.o): New dependency list.
3298 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
3299 (fill_gregset): Use alphabsd_fill_reg.
3300 (supply_fpregset): Use alphabsd_supply_fpreg.
3301 (fill_fpregset): Use alphabsd_fill_fpreg.
3302 (fetch_inferior_registers): Use struct reg and struct fpreg
3303 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
3304 and alphabsd_supply_fpreg.
3305 (store_inferior_registers): Use struct reg and struct fpreg
3306 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
3307 and alphabsd_fill_fpreg.
3308 * alphabsd-tdep.c: New file.
3309 * alphabsd-tdep.h: New file.
3310 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
3311 (fetch_elfcore_registers): Use alphabsd_supply_reg and
3312 alphabsd_supply_fpreg.
3313 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
3314 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3315
361d1df0
EC
33162002-05-11 Eric Christopher <echristo@redhat.com>
3317
3318 * mips-tdep.c (mips_double_register_type): Fix thinko.
3319 (mips_single_register_type): Ditto.
3320 * MAINTAINERS: Add self.
3321
92dd7cee
MK
33222002-05-11 Mark Kettenis <kettenis@gnu.org>
3323
3324 * i387-nat.c (i387_supply_register, i387_fill_fsave,
3325 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
3326 right thing on architectures with different endianness and/or
3327 integer sizes.
3328
e27da16d
JT
33292002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
3330
3331 From Christian Limpach <chris@Pin.LU>
3332 * configure.in: Change sed expression which comments out
3333 NATDEPFILES to also comment out continuation lines.
3334 * configure: Regenerate.
3335
ddde02bd
EZ
33362002-05-10 Elena Zannoni <ezannoni@redhat.com>
3337
3338 * sh-tdep.c: Clean up code erroneously reintroduced by previous
3339 big patch.
3340
1c922164
EZ
33412002-05-10 Elena Zannoni <ezannoni@redhat.com>
3342
3343 * sh-tdep.c: Include correct file.
3344
283150cd
EZ
33452002-05-10 Elena Zannoni <ezannoni@redhat.com>
3346
3347 New support for sh64-elf (sh5) target.
3348
3349 * configure.tgt: For sh64-elf target, default to sh-elf.
3350
3351 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
3352 (struct gdbarch_tdep): Add new fields for new registers and ABI
3353 info.
361d1df0 3354
283150cd
EZ
3355 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
3356 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
3357 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
3358 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
3359 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
3360 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
3361 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
3362 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
3363 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
3364 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
3365 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
3366 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
3367 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
3368 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
3369 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
3370 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
3371 sh64_get_gdb_regnum, sh64_media_reg_base_num,
3372 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
3373 sign_extend, sh64_nofp_frame_init_saved_regs,
3374 sh64_init_extra_frame_info, sh64_get_saved_register,
3375 sh64_extract_struct_value_address, sh64_pop_frame,
3376 sh64_push_arguments, sh64_extract_return_value,
3377 sh64_store_return_value, sh64_show_media_regs,
3378 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
3379 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
3380 sh_sh64_register_virtual_type,
3381 sh_sh64_register_convert_to_virtual,
3382 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
3383 sh64_register_read, sh64_pseudo_register_write,
3384 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
3385 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
3386 sh64_do_pseudo_register, sh_compact_do_registers_info,
3387 sh64_do_registers_info, sh_gdbarch_init): New functions.
3388
3117ed25
EZ
33892002-05-10 Elena Zannoni <ezannoni@redhat.com>
3390
3391 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
3392
2654e6d4
DJ
33932002-05-10 Daniel Jacobowitz <drow@mvista.com>
3394
3395 * linespec.c (decode_line_1): Check for a double quote after
3396 a filename correctly.
3397
9ab3e532
JB
33982002-05-10 Jim Blandy <jimb@redhat.com>
3399
3400 Properly track the size of the current objfile's .debug_line section.
3401 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
3402 (DWARF_LINE_SIZE): New macro.
3403 (dwarf2_build_psymtabs_hard): Record the line section's size in
3404 the partial symbol table.
3405 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
3406 symbol table.
3407
126fa72d
PS
34082002-05-10 Petr Sorfa <petrs@caldera.com>
3409
3410 * ia64-tdep.c: Handle breakpoints on L instruction type
3411 in MLX instruction bundle by moving the breakpoint to
3412 the third slot (X instruction type) as L holds only data.
3413
1f077a3e
KB
34142002-05-10 Kevin Buettner <kevinb@redhat.com>
3415
3416 * dbxread.c (discarding_local_symbols_complaint): New complaint.
3417 (process_one_symbol): Complain about discarding local symbols
3418 due to a misplaced N_LBRAC entry.
3419
8120c9d5 34202002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
3421
3422 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
3423 * linespec.c (find_toplevel_char): '<' and '>' also increase and
3424 decrease the depth we are at, in the case of templates.
361d1df0 3425
67b2c998
DJ
34262002-05-09 Daniel Jacobowitz <drow@mvista.com>
3427
3428 * mips-tdep.c (mips_float_register_type): New function.
3429 (mips_double_register_type): New function.
3430 (mips_print_register): Use them.
3431 (do_fp_register_row): Likewise.
3432
fd326606
DJ
34332002-05-09 Daniel Jacobowitz <drow@mvista.com>
3434
6609d9af 3435 * signals/signals.c (signals): Remove conditional compilation around
fd326606 3436 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 3437 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 3438
bef35864
MS
34392002-05-09 Michael Snyder <msnyder@redhat.com>
3440
3441 * remote-rdp.c (remote_rdp_can_run): Remove.
3442
c55a3f73
TT
34432002-05-09 Tom Tromey <tromey@redhat.com>
3444
3445 * jv-valprint.c (java_val_print): Handle `char' as a special case
3446 of TYPE_CODE_INT.
3447
b8d5e71d
MS
34482002-05-09 Michael Snyder <msnyder@redhat.com>
3449
3450 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
3451 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 3452 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 3453 str r(0123),[sp,#nn].
361d1df0 3454 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
3455 order-independent by placing it in a loop.
3456
e2cd42dd
MS
34572002-05-06 Michael Snyder <msnyder@redhat.com>
3458
3459 * stabsread.c (read_type): Add recognition for new attribute:
3460 "@V;" means that an array type is actually a vector.
3461 This is analogous to the vector flag that's been added to dwarf2.
3462
3ce1502b
MK
34632002-05-09 Mark Kettenis <kettenis@gnu.org>
3464
3465 * i386-tdep.h (i386_abi): New enum.
3466 (struct gdbarch_tdep): Replace os_ident member with abi.
3467 (i386_gdbarch_register_os_abi): New prototype.
3468 * i386-tdep.c (i386_abi_names): New array.
3469 (process_note_abi_tag_sections): Removed.
3470 (process_note_sections): New function.
3471 (i386_elf_abi_from_note, i386_elf_abi): New functions.
3472 (struct i386_abi_handler): New struct.
3473 (i386_abi_handler_list): New variable.
3474 (i386_gdbarch_register_os_abi): New function.
3475 (i386_gdbarch_init): Adapt for the changes given above.
3476
084c156a
DJ
34772002-05-08 Daniel Jacobowitz <drow@mvista.com>
3478
3479 * gregset.h: Say "GNU/Linux".
3480
6599f021
EZ
34812002-05-08 Elena Zannoni <ezannoni@redhat.com>
3482
3483 * gdbtypes.c : Add new builtin type for 64 bit vectors.
3484 (build_gdbtypes): Build builtin_type_v2_float.
3485 (_initialize_gdbtypes): Register new builtin type.
3486
40af4b0c
AC
34872002-05-08 Andrew Cagney <ac131313@redhat.com>
3488
3489 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
3490 (clear_gdbarch_swap): New function.
3491 (initialize_non_multiarch): Call.
3492 (gdbarch_update_p): Before calling init(), swap out and clear the
3493 existing architecture.
3494 * gdbarch.c: Regenerate.
3495
4fe84f46
JT
34962002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3497
3498 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
3499 alphanbsd-tdep.c.
3500
4015edd1
JT
35012002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3502
3503 * sh-nbsd-nat.c: Rename to...
3504 * shnbsd-nat.c: ...this.
3505 * sh-nbsd-tdep.c: Rename to...
3506 * shnbsd-tdep.c: ...this.
3507 * sh-nbsd-tdep.h: Rename to...
3508 * shnbsd-tdep.h: ...this.
3509 * config/sh/nbsd.mh: Use shnbsd-nat.o.
3510 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
3511
0e2bd219
RE
35122002-05-08 Richard Earnshaw <rearnsha@arm.com>
3513
3514 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
3515 concatenation for command help messages.
3516
13a38d45
JT
35172002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3518
3519 * NEWS: Note new sh*-*-netbsdelf* configuration.
3520 * configure.host: Set gdb_host_cpu to sh for all sh*.
3521 (sh*-*-netbsdelf*): New host.
3522 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
3523 (sh*-*-netbsdelf*): New target.
3524 * sh-nbsd-nat.c: New file.
3525 * sh-nbsd-tdep.c: New file.
3526 * sh-nbsd-tdep.h: New file.
3527 * config/sh/nbsd.mh: New file.
3528 * config/sh/nbsd.mt: New file.
3529 * config/sh/nm-nbsd.h: New file.
3530 * config/sh/tm-nbsd.h: New file.
3531
d658f924
JT
35322002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3533
3534 * sh-tdep.c (sh_osabi_names): Declare.
3535 (process_note_abi_tag_sections): New function.
3536 (get_elfosabi): Ditto.
3537 (sh_gdbarch_register_os_abi): Ditto.
3538 (sh_dump_tdep): Ditto.
3539 _initialize_sh_tdep): Use gdbarch_register to register
3540 sh_gdbarch_init and sh_dump_tdep.
3541 * config/sh/tm-sh.h (sh_osabi): Declare.
3542 (gdbarch_tdep): Add sh_osabi and osabi_name members.
3543
848cfffb
AC
35442002-05-07 Andrew Cagney <ac131313@redhat.com>
3545
3546 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
3547 (thumb_scan_prologue): Ditto.
3548 (arm_find_callers_reg): Ditto.
3549 (arm_frame_chain): Ditto.
3550 (arm_init_extra_frame_info): Ditto.
3551 (arm_frame_saved_pc): Ditto.
3552 (arm_pop_frame): Ditto.
3553 (arm_push_return_address): New function.
3554 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
3555 call_dummy_location, call_dummy_breakpoint_offset_p,
3556 call_dummy_breakpoint_offset, call_dummy_p,
3557 call_dummy_stack_adjust_p, call_dummy_words,
3558 sizeof_call_dummy_words, call_dummy_start_offset,
3559 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
3560 call_dummy_address, push_return_address and push_dummy_frame for
3561 generic dummy frames.
3562
e7d717c0
JT
35632002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
3564
3565 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
3566 size computation for alloca.
3567 (sh_fp_frame_init_saved_regs): Likewise.
3568
7bbcf283
RE
35692002-05-07 Richard Earnshaw <rearnsha@arm.com>
3570
3571 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
3572 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 3573 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
3574 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
3575 * remote-rdp.c (remote_rdp_fetch_register): Use
3576 ARM_MAX_REGISTER_RAW_SIZE.
3577 (remote_rdp_store_register): Likewise.
3578
4657573b
ML
35792002-05-07 Michal Ludvig <mludvig@suse.cz>
3580
361d1df0 3581 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
3582 added default labels to switch {} statements.
3583 * x86-64-tdep.c: Ditto.
3584 * x86-64-linux-nat.c: Ditto.
3585
010f3b2f
JT
35862002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
3587
3588 * solib.h: Protect against multiple inclusion.
3589
debd256d
JB
35902002-05-06 Jim Blandy <jimb@redhat.com>
3591
9ab3e532
JB
3592 Add first preprocessor macro-expansion files.
3593 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
3594 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
3595 (splay_tree_h, macroexp_h, macrotab_h): New variable.
3596 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
3597 (COMMON_OBS): Add macrotab.o, macroexp.o.
3598 (macroexp.o, macrotab.o): New rules.
3599
debd256d
JB
3600 Separate the job of reading the line number info statement program
3601 header (...expialidocious) out into its own function.
3602 * dwarf2read.c (struct line_head, struct filenames, struct
3603 directories): Replace with...
3604 (struct line_header): New structure, containing the full
3605 contents of the statement program header, including the
3606 include directory and file name tables.
3607 (read_file_scope): If we have line number info, instead of just
3608 calling dwarf_decode_lines to do all the work, call
3609 dwarf_decode_line_header first to get a `struct line_header'
3610 containing the data in the statement program header, and then
3611 pass that to dwarf_decode_lines, which will pick up where that
3612 left off. Be sure to clean up the `struct line_header' object.
3613 (dwarf_decode_line_header, free_line_header, add_include_dir,
3614 add_file_name): New functions.
3615 (dwarf_decode_lines): Move all the code to read the statement
3616 program header into dwarf_decode_line_header. Take the line
3617 header it built as the first argument, instead of the offset to
3618 the compilation unit's line number info. Use the new `struct
3619 line_header' type instead of the old structures. No need to do
3620 cleanups here now, since we don't allocate anything.
3621 (dwarf2_statement_list_fits_in_line_number_section,
3622 dwarf2_line_header_too_long): New complaints.
3623
ac3aafc7
EZ
36242002-05-06 Elena Zannoni <ezannoni@redhat.com>
3625
3626 * gdbtypes.c (init_vector_type): New function.
3627 (build_builtin_type_vec128): Simplify the representation of SIMD
3628 registers.
3629 (build_gdbtypes): Initialize new builtin vector types.
3630 (_initialize_gdbtypes): Register new vector types with gdbarch.
3631 (builtin_type_v4_float, builtin_type_v4_int32,
3632 builtin_type_v8_int16, builtin_type_v16_int8,
3633 builtin_type_v2_int32, builtin_type_v4_int16,
3634 builtin_type_v8_int8): New (renamed) SIMD types.
3635
13e49980
MK
36362002-05-06 Mark Kettenis <kettenis@gnu.org>
3637
3638 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
3639 (i387_fill_fxsave): Likewise.
3640
997b20b8
AO
36412002-05-05 Alexandre Oliva <aoliva@redhat.com>
3642
3643 * alpha-tdep.c (alpha_extract_return_value): Don't use
3644 non-constant array size in prototype.
3645
535c96ce
AC
36462002-05-04 Andrew Cagney <ac131313@redhat.com>
3647
3648 From Brian Taylor <briant at model dot com>:
3649 * ui-out.c (ui_out_field_core_addr): Use the function
3650 longest_local_hex_string_custom'to format addresses > 32 bits
3651 wide.
3652
3653 * ui-out.c (ui_out_field_core_addr): Update comment.
3654
bedfa57b
AC
36552002-05-04 Andrew Cagney <ac131313@redhat.com>
3656
3657 * stack.c (select_and_print_frame): Make static. Delete the
3658 parameter `level'.
3659 (func_command): Update call.
3660 (select_frame_command): Delete code computing the frame level.
3661 * frame.h (select_and_print_frame): Delete declaration.
3662
f621c63e
AC
36632002-05-04 Andrew Cagney <ac131313@redhat.com>
3664
3665 * sparc-tdep.c (sparc_get_saved_register): Comment why
3666 get_prev_frame call is safe.
3667
0f7d239c
AC
36682002-05-04 Andrew Cagney <ac131313@redhat.com>
3669
3670 * frame.h (select_frame): Delete level parameter.
3671 * stack.c (select_frame): Update. Use frame_relative_level to
3672 obtain the frame's level.
3673 (select_and_print_frame): Update call.
3674 (select_frame_command): Ditto.
3675 (up_silently_base): Ditto.
3676 (down_silently_base): Ditto.
3677 * ocd.c (ocd_start_remote): Ditto.
3678 * remote-rdp.c (remote_rdp_open): Ditto.
3679 * remote-mips.c (mips_initialize): Ditto.
3680 (common_open): Ditto.
3681 * remote-e7000.c (e7000_start_remote): Ditto.
3682 * m3-nat.c (select_thread): Ditto.
3683 * hppa-tdep.c (child_get_current_exception_event): Ditto.
3684 (child_get_current_exception_event): Ditto.
3685 * varobj.c (varobj_create): Ditto.
3686 (varobj_update): Ditto.
3687 (c_value_of_root): Ditto.
3688 * tracepoint.c (finish_tfind_command): Ditto.
3689 * corelow.c (core_open): Ditto.
3690 * arch-utils.c (generic_prepare_to_proceed): Ditto.
3691 * thread.c (info_threads_command): Ditto.
3692 (switch_to_thread): Ditto.
3693 * infrun.c (normal_stop): Ditto.
3694 (restore_selected_frame): Ditto.
3695 (restore_inferior_status): Ditto.
3696 * breakpoint.c (insert_breakpoints): Ditto.
3697 (watchpoint_check): Ditto.
3698 (bpstat_stop_status): Ditto.
3699 (do_enable_breakpoint): Ditto.
3700 * blockframe.c (flush_cached_frames): Ditto.
3701 (reinit_frame_cache): Ditto.
3702
71d6c7b1
AC
37032002-05-04 Andrew Cagney <ac131313@redhat.com>
3704
3705 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
3706 maintainer.
3707
cda6c68a
JB
37082002-05-04 Jim Blandy <jimb@redhat.com>
3709
3710 * gdbtypes.c (replace_type): Doc fix.
3711
5c1c87f0
AC
37122002-05-04 Andrew Cagney <ac131313@redhat.com>
3713
3714 * valprint.c (strcat_longest): Delete commented out function.
3715 Update copyright.
3716
cd9bfe15
AC
37172002-05-04 Andrew Cagney <ac131313@redhat.com>
3718
3719 * MAINTAINERS: Mark a29k as deleted.
3720 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
3721 Move new configurations to the top.
3722 * configure.tgt: Remove a29k.
3723 * config/a29k/tm-vx29k.h: Delete.
3724 * config/a29k/vx29k.mt: Delete.
3725 * config/a29k/tm-a29k.h: Delete.
3726 * config/a29k/a29k-udi.mt: Delete.
3727 * config/a29k/a29k.mt: Delete.
3728 * a29k-tdep.c: Delete.
3729 * remote-udi.c: Delete.
3730 * remote-mm.c: Delete.
3731 * remote-eb.c: Delete.
3732 * remote-adapt.c: Delete.
3733 * Makefile.in: Remove obsolete code.
3734 * gdbserver/Makefile.in: Ditto.
3735 * config/s390/s390x.mt: Ditto.
3736 * config/s390/s390.mt: Ditto.
3737 * config/sparc/sparclynx.mh: Ditto.
3738 * config/sparc/linux.mh: Ditto.
3739 * config/pa/hppaosf.mh: Ditto.
3740 * config/pa/hppabsd.mh: Ditto.
3741 * config/ns32k/nbsd.mt: Ditto.
3742 * config/mips/vr5000.mt: Ditto.
3743 * config/m68k/sun3os4.mh: Ditto.
3744 * config/m68k/nbsd.mt: Ditto.
3745 * config/m68k/m68klynx.mh: Ditto.
3746 * config/m32r/m32r.mt: Ditto.
3747 * config/i386/x86-64linux.mt: Ditto.
3748 * config/i386/nbsdelf.mt: Ditto.
3749 * config/i386/nbsd.mt: Ditto.
3750 * config/i386/i386lynx.mh: Ditto.
3751
bf0c5130
AC
37522002-05-04 Andrew Cagney <ac131313@redhat.com>
3753
3754 * target.c (debug_print_register): New function. Handle oversize
3755 registers.
3756 (debug_to_fetch_registers): Call.
3757 (debug_to_store_registers): Call.
3758
2ae1c2d2
JB
37592002-05-03 Jim Blandy <jimb@redhat.com>
3760
13a393b0
JB
3761 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
3762 (read_type): Doc fix.
3763 * gdbtypes.c (replace_type): Doc fix.
3764
2ae1c2d2
JB
3765 * stabsread.c (multiply_defined_struct): New complaint.
3766 (read_struct_type): If the type we were passed isn't empty, or
3767 incomplete, don't read the new struct type into it; complain,
3768 and return the original type unchanged. Take a new `type_code'
3769 argument, which is the type code for the new type.
3770 (read_type): Rather than storing the type's type code here, pass
3771 it as an argument to read_struct_type, and let that take care of
3772 storing it. That way, we don't overwrite the original type code,
3773 so read_struct_type can use it to decide whether we're overwriting
3774 something we shouldn't.
3775 (complain_about_struct_wipeout): New function.
3776
8de9bdc4
AC
37772002-05-03 Andrew Cagney <ac131313@redhat.com>
3778
3779 * gdbarch.sh: Assert that gdbarch is non-NULL.
3780 * gdbarch.c: Regenerate.
3781
f773fdbb
JM
37822002-05-03 Jason Merrill <jason@redhat.com>
3783
3784 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
3785 and return NULL.
3786
0e04a514
ML
37872002-05-03 Michal Ludvig <mludvig@suse.cz>
3788
3789 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
3790 (x86_64_dwarf2gdb_regno_map_length),
3791 (x86_64_dwarf2_reg_to_regnum): Added.
3792 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
3793 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
3794 (_initialize_x86_64_tdep): Synced with the change above.
3795 (x86_64_skip_prologue): Reformulated message.
3796
065432a8
PM
37972002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3798
3799 * f-exp.y: Also use new prev_lexptr variable
3800 to improve error reporting. Based on Michael Snyder
3801 2002-04-24 dated patch to c-exp.y.
3802 * jv-exp.y: Likewise.
3803 * m2-exp.y: Likewise.
3804
a3162708
EZ
38052002-05-02 Elena Zannoni <ezannoni@redhat.com>
3806
3807 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
3808 we are dealing with vectors.
3809
03620c38
PM
38102002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3811
3812 * config/m68k/tm-nbsd.h: Obvious fix,
3813 correct machine name.
3814
6604db2e
PM
38152002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3816
3817 * p-typeprint.c (pascal_type_print_base): Add support
3818 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
3819
0906b739
PM
38202002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3821
3822 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
3823 for fondamental pascal 'char' type.
3824
e2625b33
PM
38252002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3826
3827 * p-lang.h (is_pascal_string_type): Declaration changed,
3828 new sixth argument of type char ** added.
361d1df0 3829 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
3830 changed. Args length_pos, length_size, string_pos, char_size
3831 can now be NULL. New argument arrayname set to the field
3832 name of the char array. Return value set to char array
3833 field index plus one.
361d1df0 3834 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
3835 is_pascal_string_type function.
3836
cf17c188
AC
38372002-05-02 Andrew Cagney <cagney@redhat.com>
3838
3839 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
3840 <cagney@redhat.com> change.
3841 * gdbarch.c: Regenerate.
3842
52bca491
AC
38432002-05-02 Andrew Cagney <cagney@redhat.com>
3844
3845 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
3846 before probing for a new one. Detect errorenous gdbarch_init
3847 functions.
3848 * gdbarch.c: Regenerate.
3849
d5e72505
AC
38502002-05-01 Andrew Cagney <cagney@redhat.com>
3851
3852 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
3853 * config/mcore/tm-mcore.h: Ditto. Update copyright.
3854 * config/v850/tm-v850.h: Ditto. Update copyright.
3855
af566d9f
AC
38562002-04-30 Andrew Cagney <ac131313@redhat.com>
3857
3858 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
3859 current_gdbarch.
3860
880d85fa
MS
38612002-04-30 Michael Snyder <msnyder@redhat.com>
3862
94c30b78
MS
3863 * arm-tdep.c: Whitespace clean-ups.
3864 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
3865 should have been removed as part of 4/24 change.
3866
6f5987a6
KB
38672002-04-30 Kevin Buettner <kevinb@redhat.com>
3868
3869 * rs6000-tdep.c: Added comment describing how fpscr register
3870 numbers were chosen.
3871
1a113c93
MS
38722002-04-30 Michael Snyder <msnyder@redhat.com>
3873
3874 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
3875
9a6f53fe
EZ
38762002-04-29 Elena Zannoni <ezannoni@redhat.com>
3877
3878 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
3879 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
3880 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
3881
11ed25ac
KB
38822002-04-29 Kevin Buettner <kevinb@redhat.com>
3883
3884 From Louis Hamilton <hamilton@redhat.com>:
3885 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
3886 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
3887 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
3888 not bfd-private xcoff data, to determine wordsize.
3889 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
3890
ae232405
AC
38912002-04-29 Andrew Cagney <ac131313@redhat.com>
3892
3893 GDB 5.2 released from 5.2 branch.
3894
91fd20f7
ML
38952002-04-29 Michal Ludvig <mludvig@suse.cz>
3896
3897 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
3898 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3899 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 3900
2dc5091b
EZ
39012002-04-29 Elena Zannoni <ezannoni@redhat.com>
3902
3903 * rs6000-tdep.c (rs6000_extract_return_value,
3904 rs6000_store_return_value): Handle returning vectors.
3905 (rs6000_gdbarch_init): Use
3906 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
3907 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3908 New function.
3909 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
3910 vectors.
3911 (ppc_sysv_abi_push_arguments): Handle vector parameters.
3912 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 3913
2b9848d8
PM
39142002-04-24 Pierre Muller <ics.u-strasbg.fr>
3915
3916 * hpread.c (hpread_psymtab_to_symtab_1,
3917 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
3918 with fprintf_unfiltered (gdb_stderr,...).
3919
f8d17dc5
PM
39202002-04-24 Pierre Muller <ics.u-strasbg.fr>
3921
3922 * remote-array.c (printf_monitor, write_monitor,
361d1df0 3923 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
3924 Replace fprintf (stderr,...
3925 with fprintf_unfiltered (gdb_stderr,....
3926 * remote-es.c: Likewise.
3927 * remote-os9k.c: Likewise.
3928 * remote-st.c: Likewise.
3929
2f2f1ad1
AS
39302002-04-28 Andreas Schwab <schwab@suse.de>
3931
3932 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
3933 linux-proc.o and gcore.o.
3934
b6779aa2
AC
39352002-04-26 Michal Ludvig <mludvig@suse.cz>
3936
3937 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
3938 code without frame pointers.
3939
7e57f5f4
AC
39402002-04-26 Andrew Cagney <ac131313@redhat.com>
3941
3942 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
3943 ON_STACK is needed.
3944
2ceb85d0
BE
39452002-04-26 Ben Elliston <bje@redhat.com>
3946
3947 * target.c (do_xfer_memory): Correct reference to the new option
3948 "trust-readonly-sections".
3949
f5f8a009
EZ
39502002-04-26 Elena Zannoni <ezannoni@redhat.com>
3951
3952 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
3953 * gdbtypes.c (recursive_dump_type): Output the vector flag.
3954 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
3955 vectors.
3956 (read_array_type): Record the fact that this array type is really a
3957 vector (i.e. are passed in by value).
3958
5868c862
JT
39592002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
3960
3961 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
3962 * alpha-tdep.c (alpha_sigcontext_addr): New function.
3963 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
3964 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
3965 * alpha-linux-tdep.c: Include frame.h.
3966 (alpha_linux_sigcontext_addr): New function.
3967 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
3968 alpha_linux_sigcontext_addr.
3969 * alpha-osf1-tdep.c: Include gdbcore.h.
3970 (alpha_osf1_sigcontext_addr): New function.
3971 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
3972 alpha_osf1_sigcontext_addr.
3973 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
3974 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
3975
bfb01f37
AC
39762002-04-26 Andrew Cagney <ac131313@redhat.com>
3977
361d1df0 3978 * stack.c (selected_frame_level):
bfb01f37
AC
3979 (select_frame): Do not set selected_frame_level.
3980 * frame.h (selected_frame_level): Delete declaration.
3981
15813d3f
AC
39822002-04-26 Andrew Cagney <ac131313@redhat.com>
3983
3984 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
3985 convert_from_func_ptr-addr when AIX / PowerOpen.
3986
6096c27a
AC
39872002-04-25 Andrew Cagney <ac131313@redhat.com>
3988
3989 * valops.c (hand_function_call): Call
3990 generic_save_call_dummy_addr.
3991 * frame.h (generic_save_call_dummy_addr): Declare.
3992 * blockframe.c (struct dummy_frame): Add fields call_lo and
3993 call_hi.
3994 (generic_find_dummy_frame): Check for PC in range call_lo to
3995 call_hi instead of entry_point_address.
3996 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
3997 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
3998 (generic_save_call_dummy_addr): New function.
3999
f510d44e
DM
40002002-04-24 David S. Miller <davem@redhat.com>
4001
4002 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
4003 sparc_skip_prologue.
4004 (sparc_skip_prologue): Kill frameless_p arg, and use line number
4005 information to find prologue when possible.
4006 (sparc_prologue_frameless_p): Call examine_prologue directly.
4007 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
4008 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
4009 second argument.
4010 (SKIP_PROLOGUE): Likewise.
4011
15d72a92
JT
40122002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4013
4014 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
4015 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
4016 indicate that the condition it was testing is always true.
4017 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
4018 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
4019 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
4020
accc6d1f
JT
40212002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4022
4023 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
4024 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
4025 tdep->jb_pc and tdep->jb_elt_size.
4026 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
4027 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
4028 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4029 * alpha-nat.c (get_longjmp_target): Remove.
4030 (JB_ELEMENT_SIZE): Ditto.
4031 (JB_PC): Ditto.
4032 * alpha-tdep.c (alpha_get_longjmp_target): New function.
4033 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
4034 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
4035 to alpha_get_longjmp_target.
4036 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
4037 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
4038 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
4039
1bfdc549
AC
40402002-04-25 Andrew Cagney <ac131313@redhat.com>
4041
4042 * README: Update to GDB 5.2.
4043
1bd316f0
AC
40442002-04-25 Andrew Cagney <ac131313@redhat.com>
4045
4046 * gdbarch.sh (LC_ALL): Set to `c'.
4047
2e5ff58c
TR
40482002-04-25 Theodore A. Roth <troth@verinet.com>
4049
4050 * avr-tdep.c: Ran through gdb_indent.sh.
4051
e33ce519
TR
40522002-04-25 Theodore A. Roth <troth@verinet.com>
4053
4054 * MAINTAINERS: Add myself as AVR maintainer.
4055 * NEWS: Note new target avr.
4056
8818c391
TR
40572002-04-25 Theodore A. Roth <troth@verinet.com>
4058
4059 * Makefile.in: Add support for AVR target.
4060 * configure.tgt: Add support for AVR target.
4061 * avr-tdep.c: New file
4062 * config/avr/avr.mt: New file.
4063
79509c2d
TR
40642002-04-25 Theodore A. Roth <troth@verinet.com>
4065
4066 * MAINTAINERS: Add myself to write-after-approval.
4067
dac8068e
PM
40682002-04-24 Pierre Muller <ics.u-strasbg.fr>
4069
4070 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
4071 with fprintf_unfiltered (gdb_stderr,....
4072
25bf3106
PM
40732002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4074
4075 Fix PR gdb/508.
4076 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
4077
24467a86
PM
40782002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4079
4080 * p-exp.y: Also use new prev_lexptr variable
4081 to improve error reporting. Based on Michael Snyder
4082 2002-04-24 dated patch to c-exp.y.
4083
95b80706
JT
40842002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4085
4086 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
4087 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
4088 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
4089 to 0.
4090 * config/alpha/tm-alpha.h: Remove forward decls of struct type
4091 and struct value.
4092 (FUNCTION_START_OFFSET): Remove.
4093 (BREAKPOINT): Ditto.
4094
e90cc612
JT
40952002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4096
4097 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
4098 * NEWS: Ditto.
4099
6c72f9f9
JT
41002002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4101
4102 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
4103 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
4104 alpha_linux_pc_in_sigtramp.
4105 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
4106 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
4107 alpha_osf1_pc_in_sigtramp.
4108 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
4109 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
4110 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4111 alphafbsd_pc_in_sigtramp.
4112 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
4113 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4114 alphanbsd_pc_in_sigtramp.
4115 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
4116 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
4117
5e4f3379
JT
41182002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4119
4120 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4121
da8ca43d
JT
41222002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4123
4124 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
4125 alphanbsd-tdep.c.
4126 (alphanbsd-nat.o): New dependency list.
4127 (alphanbsd-tdep.o): Ditto.
4128 * NEWS: Note new native NetBSD/alpha configuration.
4129 * alphanbsd-nat.c: New file.
4130 * alphanbsd-tdep.c: Ditto.
4131 * configure.host (alpha*-*-netbsd*): New host.
4132 * configure.tgt (alpha*-*-netbsd*): New target.
4133 * config/alpha/nbsd.mh: New file.
4134 * config/alpha/nbsd.mt: Ditto.
4135 * config/alpha/nm-nbsd.h: Ditto.
4136 * config/alpha/tm-nbsd.h: Ditto.
4137
36a6271d
JT
41382002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4139
4140 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
4141 (alpha-osf1-tdep.o): New dependency list.
4142 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
4143 and skip_sigtramp_frame members.
4144 * alpha-linux-tdep.c: Include gdbcore.h.
4145 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
4146 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
4147 * alpha-osf1-tdep.c: New file.
4148 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
4149 alpha-osf1-dep.c.
4150 (alpha_frame_past_sigtramp_frame): New function.
4151 (alpha_dynamic_sigtramp_offset): Ditto.
4152 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
4153 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
4154 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
4155 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
4156 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
4157 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
4158 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
4159 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
4160 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
4161 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
4162 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
4163 to find_solib_trampoline_target.
4164 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
4165 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
4166 (SKIP_TRAMPOLINE_CODE): Remove.
4167 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4168 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4169 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4170 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4171 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
4172 (PROC_SIGTRAMP_MAGIC): Ditto.
4173 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4174 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4175 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4176 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4177 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4178
2f4bc57b
JT
41792002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4180
4181 * NEWS: Note that Alpha targets are now multi-arch.
4182
665132f9
MS
41832002-04-24 Michael Snyder <msnyder@redhat.com>
4184
4185 * parser-defs.h (prev_lexptr): New external variable.
4186 * parse.c (parse_exp_1): Set prev_lexptr to null before
4187 calling the language-specific parser.
4188 * c-exp.y (yylex): Set prev_lexptr to start of current token.
4189 (yyerror): Use prev_lexptr in error reporting.
4190
32872fa7
DJ
41912002-04-24 Daniel Jacobowitz <drow@mvista.com>
4192
4193 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
4194 * gregset.h: If FILL_FPXREGSET is defined, provide
4195 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
4196 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
4197 is defined, call fill_fpxregset.
4198
57e76fac
MS
41992002-04-24 Roland McGrath <roland@frob.com>
4200
4201 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
4202 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
4203 (supply_gregset, supply_fpregset): New functions.
4204
4205 * gnu-nat.c (gnu_find_memory_regions): New function.
4206 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
4207 (gnu_xfer_memory): Add a cast.
4208
f43845b3
MS
42092002-04-24 Michael Snyder <msnyder@redhat.com>
4210
361d1df0 4211 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
4212 loop. Add handling for "str lr, [sp, #-4]!" and for saves
4213 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 4214 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
4215 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
4216 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
4217
a0abec03
AC
4218Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
4219
4220 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
4221 NUM_PSEUDO_REGS can be used.
4222
d7bd68ca
AC
42232002-04-24 Andrew Cagney <ac131313@redhat.com>
4224
4225 * arch-utils.h: Update copyright.
4226
4227 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
4228 * gdbarch.h, gdbarch.c: Re-generate.
4229
4230 * inferior.h (IN_SIGTRAMP): Delete definition.
4231 * arch-utils.c (legacy_pc_in_sigtramp): New function.
4232 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
4233
4234 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
4235 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
4236 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
4237 (find_proc_framesize): Ditto.
4238 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
4239 (alpha_init_extra_frame_info): Ditto.
4240 * infrun.c (handle_inferior_event): Ditto.
4241 (handle_inferior_event): Ditto.
4242 (check_sigtramp2): Ditto.
4243 * blockframe.c (create_new_frame): Ditto.
4244 (get_prev_frame): Ditto.
4245 * ppc-linux-tdep.c: Update comments.
4246 * i386-linux-tdep.c: Update comments.
4247 * breakpoint.c (bpstat_what): Update comment.
4248
d06f167a
ML
42492002-04-24 Michal Ludvig <mludvig@suse.cz>
4250
4251 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
361d1df0 4252 (regsets_store_inferior_registers): Removed cast to int from
d06f167a
ML
4253 ptrace() calls.
4254 * gdbserver/regcache.h: Added declaration of struct inferior_info.
4255
4867e41e
DM
42562002-04-24 David S. Miller <davem@redhat.com>
4257
21d83aa5
DM
4258 * i960-tdep.c (register_in_window_p): New function.
4259 (i960_find_saved_register): Use it instead of
4260 REGISTER_IN_WINDOW_P.
4261 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
4262
4867e41e
DM
4263 * symtab.h (find_stab_function_addr): Kill extern.
4264 * minsyms.c (find_stab_function_addr): Remove from here...
4265 * dbxread.c: ... to here, and mark it static.
4266
69cdf6a2
DM
42672002-04-20 David S. Miller <davem@redhat.com>
4268
4269 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
4270 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
4271
5a595886
DM
42722002-04-21 David S. Miller <davem@redhat.com>
4273
4274 * remote-vxsparc.c (vx_read_register): Fix typo, we want
4275 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
4276 (vx_write_register): Likewise.
4277
1da1a192
JB
42782002-04-23 J. Brobecker <brobecker@gnat.com>
4279
4280 * source.c (is_regular_file): New function.
4281 (openp): Check wether file to open is a regular file
4282 to avoid opening directories.
4283
baa6f10b
JT
42842002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4285
4286 * findvar.c (extract_signed_integer): Cast printf argument
4287 to suppress format warning.
4288 (extract_unsigned_integer): Likewise.
4289 * infcmd.c (registers_info): Likewise.
4290 * top.c (get_prompt_1): Likewise.
4291 * valops.c (value_assign): Likewise.
4292 * valprint.c (print_decimal): Likewise.
4293
b2c4da81
L
42942002-04-22 H.J. Lu (hjl@gnu.org)
4295
4296 * c-exp.y (typebase): Support
361d1df0 4297
b2c4da81
L
4298 [long|long long|short] [signed|unsigned] [int|]
4299
4300 and
4301
4302 signed [long|long long|short] int
4303
f267bd6a
JT
43042002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4305
4306 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
4307 and vax-tdep.h.
4308 * vax-tdep.h: New file.
4309 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
4310 Make several routines static.
4311 (vax_get_saved_register): New function.
4312 (vax_gdbarch_init): New function.
4313 (_initialize_vax_tdep): Register vax_gdbarch_init.
4314 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
4315 Remove macros now under the control of gdbarch.
4316
da3c6d4a
MS
43172002-04-22 Michael Snyder <msnyder@redhat.com>
4318
11d3b27d
MS
4319 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
4320 Some whitespace and coding standards tweaks.
da3c6d4a 4321
a33f7558
JT
43222002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4323
4324 * vax-tdep.c: Include regcache.h.
4325 (vax_call_dummy_words): New.
4326 (sizeof_vax_call_dummy_words): New.
4327 (vax_fix_call_dummy): New function.
4328 (vax_saved_pc_after_call): Ditto.
4329 * config/vax/tm-vax.h: Don't include regcache.h.
4330 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
4331 (CALL_DUMMY): Remove.
4332 (CALL_DUMMY_WORDS): Define.
4333 (SIZEOF_CALL_DUMMY_WORDS): Define.
4334 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
4335
47a73475
MS
43362002-04-18 Michael Snyder <msnyder@redhat.com>
4337
4338 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
4339
52efde73
JT
43402002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4341
4342 * vax-tdep.c (vax_frame_chain): New function.
4343 (vax_push_dummy_frame): Ditto.
4344 (vax_pop_frame): Ditto.
4345 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
4346 (FRAMELESS_FUNCTION_INVOCATION): Use
4347 generic_frameless_function_invocation_not.
4348 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
4349 (POP_FRAME): Use vax_pop_frame.
4350
ea74468c
JT
43512002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4352
4353 * vax-tdep.c (vax_store_struct_return): New function.
4354 (vax_extract_return_value): Ditto.
4355 (vax_store_return_value): Ditto.
4356 (vax_extract_struct_value_address): Ditto.
4357 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
4358 vax_store_struct_return.
4359 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
4360 (STORE_RETURN_VALUE): Use vax_store_return_value.
4361 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
4362
5516aa92
JT
43632002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4364
4365 * vax-tdep.c (vax_frame_saved_pc): New function.
4366 (vax_frame_args_address_correct): Ditto.
4367 (vax_frame_args_address): Ditto.
4368 (vax_frame_locals_address): Ditto.
4369 (vax_frame_num_args): Move code to be in proximity to
4370 other frame-related functions.
4371 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
4372 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
4373 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
4374 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
4375 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
4376
36af0b35
L
43772002-04-22 H.J. Lu (hjl@gnu.org)
4378
4379 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
4380 includedir.
4381
ab62c900
JT
43822002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4383
4384 * vax-tdep.c (vax_frame_init_saved_regs): New function.
4385 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
4386 (FRAME_INIT_SAVED_REGS): New macro.
4387
7232b100
JT
43882002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4389
4390 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
4391
b70d2aee
JT
43922002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4393
4394 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
4395 where needed.
4396 (fetch_osf_core_registers): Likewise.
4397 (supply_gregset): Likewise.
4398
a0e8a2d1 43992002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 4400
a0e8a2d1
JB
4401 * symfile.h (get_section_index): Define.
4402 * symfile.c (get_section_index): New function.
4403 * mdebugread.c (SC_IS_SBSS): New macro.
4404 (SC_IS_BSS): Return true for the scBss storage class only, as
4405 the scSBss storage class refers to the .sbss section.
4406 (parse_partial_symbols): Discard the symbols which associated
4407 section does not exist.
4408 Make sure to use the .sbss section index for symbols which
4409 storage class is scBss, rather than using the .bss section index.
4410
51eb8b08
JT
44112002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4412
4413 * vax-tdep.c: Update copyright years.
4414 (vax_register_name): New function.
4415 (vax_register_byte): Ditto.
4416 (vax_register_raw_size): Ditto.
4417 (vax_register_virtual_size): Ditto.
4418 (vax_register_virtual_type): Ditto.
4419 * config/vax/tm-vax.h: Update copyright years.
4420 (REGISTER_NAMES): Remove.
4421 (REGISTER_NAME): Define.
4422 (REGISTER_BYTE): Use vax_register_byte.
4423 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
4424 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
4425 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
4426
6cc1c0a8
AC
44272002-04-21 Andrew Cagney <ac131313@redhat.com>
4428
4429 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
4430 declaration
4431 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
4432
9319a2fe
DM
44332002-04-21 David S. Miller <davem@redhat.com>
4434
4435 * arch-utils.c (generic_prologue_frameless_p): Kill
4436 SKIP_PROLOGUE_FRAMELESS_P code.
4437 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
4438 references.
4439 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
4440 * arc-tdep.c (arc_prologue_frameless_p): Implement.
4441 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
4442 references.
4443 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
4444 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
4445 (sparc_gdbarch_init): Pass it to
4446 set_gdbarch_prologue_frameless_p.
a0e8a2d1 4447
e9ed6d01
JT
44482002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4449
4450 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
4451 (alphabsd-nat.o): New dependency list.
4452
36012033
JT
44532002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4454
4455 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
4456 alphafbsd-tdep.c.
4457 (alpha-linux-tdep.o): New dependency list.
4458 (alphafbsd-tdep.o): Likewise.
4459
3379287a
JT
44602002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4461
4462 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
4463 to here...
4464 * alpha-tdep.c: ...from here.
4465 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
4466
4bcbd6cb
JT
44672002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4468
4469 * config/alpha/tm-alpha.h: Move alpha_software_single_step
4470 prototype from here...
4471 * alpha-tdep.h: ...to here.
4472
b31da25e
AC
44732002-04-21 Andrew Cagney <ac131313@redhat.com>
4474
4475 * frame.h (selected_frame_level): Document as deprecated.
4476 (frame_relative_level): Declare.
4477 * stack.c (frame_relative_level): New function.
4478 (selected_frame_level): Document as deprecated.
4479 (select_frame): Do not set the selected_frame_level.
4480
4481 * stack.c (frame_info, record_selected_frame): Update.
4482 (frame_command, current_frame_command): Update.
4483 (up_silently_base, up_command, down_silently_base): Update.
4484 (down_command): Update.
4485 * inflow.c (kill_command): Update.
4486 * tracepoint.c (finish_tfind_command): Update.
4487 * corelow.c (core_open): Update.
4488 * thread.c (info_threads_command): Update.
4489 (do_captured_thread_select): Update.
4490 * infcmd.c (finish_command): Update.
4491 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
4492
9c1d6fe5
JT
44932002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4494
4495 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
4496
ab89facf
AC
44972002-04-21 Andrew Cagney <ac131313@redhat.com>
4498
4499 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
4500 type const.
4501
82a4efa1
JT
45022002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4503
4504 * alphafbsd-tdep.c: Update copyright years. Include
4505 alpha-tdep.h.
4506 (alphafbsd_use_struct_convention): Make static.
4507 (alphafbsd_init_abi): New function.
4508 (_initialize_alphafbsd_tdep): New function.
4509 * config/alpha/tm-fbsd.h: Update copyright years.
4510 (USE_STRUCT_CONVENTION): Remove.
4511
44dffaac
JT
45122002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4513
4514 * alpha-tdep.c (alpha_abi_handler): New structure to describe
4515 an Alpha ABI variant.
4516 (alpha_abi_handler_list): Declare.
4517 (alpha_gdbarch_register_os_abi): New function.
4518 (alpha_gdbarch_init): Give registered ABI variant handlers a
4519 chance to tweak the gdbarch once we have set up defaults.
4520 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
4521
65585be4
JT
45222002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4523
4524 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
4525 to standard_coerce_float_to_double.
4526 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4527
d9b023cc
JT
45282002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4529
4530 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
4531 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
4532 from gdbarch_tdep rather than a constant.
4533 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
4534 the default text address for all Alpha Unix ABIs.
4535 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
4536 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
4537
dc129d82
JT
45382002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4539
4540 * alpha-tdep.h: New file. Includes several Alpha target constants
4541 taken from...
4542 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
4543 let gdbarch deal with.
4544 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
4545 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
4546 to dependency list.
4547 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
4548 Alpha target register names.
4549 * alphabsd-nat.c: Likewise.
4550 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
4551 Alpha target register names. Make serveral routines static.
4552 (alpha_get_saved_register): New function.
4553 (alpha_abi_names): New.
4554 (process_note_abi_tag_sections): New function.
4555 (get_elfosabi): New function.
4556 (alpha_gdbarch_init): New function.
4557 (alpha_dump_tdep): New function.
4558 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
4559
d49d1e0a
AC
45602002-04-21 Andrew Cagney <ac131313@redhat.com>
4561
4562 * frame.c (find_saved_register): Delete #ifdef
4563 HAVE_REGISTER_WINDOWS code.
4564 * config/sparc/tm-sparc.h: Update comments.
4565 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
4566
92e8c9ed
AC
45672002-04-21 Andrew Cagney <ac131313@redhat.com>
4568
4569 * i960-tdep.c (i960_find_saved_register): New function.
4570 (i960_get_saved_register): New function.
4571 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
4572 (i960_get_saved_register): Declare.
4573 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
4574
e1925118
DM
45752002-04-20 David S. Miller <davem@redhat.com>
4576
4577 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
4578
29673b29
AC
45792002-04-20 Andrew Cagney <ac131313@redhat.com>
4580
4581 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
4582 instead of NUM_PSEUDO_REGS.
4583
6c86dcd5
DM
45842002-04-20 David S. Miller <davem@redhat.com>
4585
4586 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
4587 GDB_MULTI_ARCH_PARTIAL
4588 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
4589 define, let tm-sp64.h do it.
4590
aa40ec90
JT
45912002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
4592
4593 * frame.c (find_saved_register): Avoid a NULL pointer
4594 dereference and actually walk the frame list.
4595
0f79675b
AC
45962002-04-20 Andrew Cagney <ac131313@redhat.com>
4597
4598 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
4599 sorted in most most-recent-used order. Document.
4600 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 4601
c04a1aa8
DJ
46022002-04-20 Daniel Jacobowitz <drow@mvista.com>
4603
4604 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
4605 (add_inferior): Call create_register_cache.
4606 (clear_inferiors): Call free_register_cache.
4607 (inferior_regcache_data, set_inferior_regcache_data): New functions.
4608 * gdbserver/regcache.c (struct inferior_regcache_data): New.
4609 (registers): Remove.
4610 (get_regcache): New function.
4611 (create_register_cache, free_register_cache): New functions.
4612 (set_register_cache): Don't initialize the register cache here.
4613 (registers_to_string, registers_from_string, register_data): Call
4614 get_regcache.
4615 * gdbserver/regcache.h: Add prototypes.
4616 * gdbserver/server.h: Likewise.
4617
611cb4a5
DJ
46182002-04-20 Daniel Jacobowitz <drow@mvista.com>
4619
4620 * gdbserver/mem-break.c: New file.
4621 * gdbserver/mem-break.h: New file.
4622 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
4623 dependencies.
4624 * gdbserver/inferiors.c (struct inferior_info): Add target_data
4625 member.
4626 (clear_inferiors): Free target_data member if set.
4627 (inferior_target_data, set_inferior_target_data): New functions.
4628 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
4629 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
4630 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
4631 (struct inferior_linux_data): New.
4632 (linux_create_inferior): Use set_inferior_target_data.
4633 (linux_attach): Likewise. Call add_inferior.
4634 (linux_wait_for_one_inferior): New function.
4635 (linux_wait): Call it.
4636 (linux_write_memory): Add const.
4637 (initialize_low): Call set_breakpoint_data.
4638 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
4639 handling members.
4640 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
4641 call.
4642 * gdbserver/server.h: Include mem-break.h. Update inferior.c
4643 prototypes.
4644 * gdbserver/target.c (read_inferior_memory)
4645 (write_inferior_memory): New functions.
4646 * gdbserver/target.h (read_inferior_memory)
4647 (write_inferior_memory): Change macros to prototypes.
4648 (struct target_ops): Update comments. Add const to write_memory
4649 definition.
4650
f91305dd 46512002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
4652
4653 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
4654 instead of ->prev.
4655 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
4656 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
4657 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
4658 instead of ->prev.
4659
73d322b1
EZ
46602002-04-19 Elena Zannoni <ezannoni@redhat.com>
4661
4662 Fix PR gdb/471.
4663 * gdbtypes.c (init_simd_type): Rewrite using new functions.
4664 (build_builtin_type_vec128): Ditto.
4665 (append_composite_type_field): Fix calculation of type length in
4666 union case.
4667
ccd9a834
EZ
46682002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
4669
4670 * config/djgpp/README: Update.
4671
4672 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
4673 compiler warnings.
4674
a57f9e49
JT
46752002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
4676
4677 * alpha-tdep.c (setup_arbitrary_frame): Rename...
4678 (alpha_setup_arbitrary_frame): ...to this.
4679 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
4680 for alpha_setup_arbitrary_frame.
4681
f4f9705a
AC
46822002-04-18 Andrew Cagney <cagney@redhat.com>
4683
4684 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
4685 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 4686
f4f9705a
AC
4687 * defs.h (breakpoint_from_pc_fn): Delete type definition.
4688 * target.h (memory_breakpoint_from_pc): Update declaration.
4689 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
4690
4691 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
4692 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
4693 * mem-break.c (memory_breakpoint_from_pc): Ditto.
4694 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
4695 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
4696 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
4697 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
4698 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
4699 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
4700 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
4701 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
4702 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
4703
4704 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
4705 const pointer.
4706 * monitor.c (monitor_insert_breakpoint): Ditto.
4707 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
4708
4709 * config/mcore/tm-mcore.h: Update copyright.
4710 * mem-break.c: Ditto.
4711 * xstormy16-tdep.c: Ditto.
4712
29f319b8
PM
47132002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
4714
4715 * p-exp.y: Add precedence rule for '^' token.
4716 This removes the shift/reduce conflicts.
4717 Remove the comment concerning these shift/reduce conflicts.
4718
ebeac11a
EZ
47192002-04-18 Elena Zannoni <ezannoni@redhat.com>
4720
4721 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
4722 (registers_powerpc_nofp): New register set for processors
4723 without floating point unit.
4724
27c31547
DM
47252002-04-18 David S. Miller <davem@redhat.com>
4726
4727 * MAINTAINERS: Add myself to write-after-approval.
4728
47a73475
MS
47292002-04-17 Michael Snyder <msnyder@redhat.com>
4730
4731 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
4732
953836b2
AC
47332002-04-17 Andrew Cagney <ac131313@redhat.com>
4734
4735 * rs6000-tdep.c (frame_initial_stack_address): Use
4736 frame_register_read to read the alloca_reg.
4737
8b0d4340
AC
47382002-04-17 Andrew Cagney <ac131313@redhat.com>
4739
4740 * frame.c (find_saved_register): Find saved registers in the next
4741 not prev frame.
4742 Fix PR gdb/365.
4743
d8864532
AC
47442002-04-17 Andrew Cagney <ac131313@redhat.com>
4745
4746 * gdbarch.sh (LANG): Set to ``c''.
4747
36cc83a3 47482002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 4749
36cc83a3 4750 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 4751
2f4150cc 47522002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
4753
4754 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
4755 Update copyright.
4756
628703c6 4757 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 4758 Also fix PR gdb/391.
361d1df0 4759
56157b4a
AC
47602002-04-14 Andrew Cagney <ac131313@redhat.com>
4761
4762 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
4763 * aclocal.m4, configure: Re-generate.
4764 Fix PR gdb/391.
361d1df0 4765
6d1e3329
EZ
47662002-04-14 Elena Zannoni <ezannoni@redhat.com>
4767
4768 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
4769 instead of tm_print_insn.
4770
cb06fa07
EZ
47712002-04-14 Elena Zannoni <ezannoni@redhat.com>
4772
4773 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
4774
f208ba17
AC
47752002-04-14 Andrew Cagney <ac131313@redhat.com>
4776
4777 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
4778 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
4779 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
4780
20f01a46
DH
47812002-04-12 Don Howard <dhoward@redhat.com>
4782
4783 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
4784 max_user_call_depth.
4785 (init_cmd_lists): Initialize the new value;
4786 * cli/cli-script.c (execute_user_command): Limit the call depth of
4787 user defined commands. This avoids a core-dump when user commands
4788 are infinitly recursive.
4789
a88376a3
KB
47902002-04-12 Kevin Buettner <kevinb@redhat.com>
4791
4792 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
4793 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
4794 from tdep struct instead of DEFAULT_LR_SAVE.
4795 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
4796 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
4797 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
4798
f2172603
MS
47992002-04-12 Michael Snyder <msnyder@redhat.com>
4800
694f61fb 4801 * Remote.c: Spelling fix.
20fe79c8
MS
4802 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
4803 If no symbol found for "sbrk", try "_sbrk".
4804 (make_output_phdrs): Use bfd_section_name.
4805 (gcore_copy_callback): Use bfd_section_name.
62995fc4 4806 * eval.c: Indentation fix-ups.
169a7369
MS
4807 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
4808 in case it gets applied to an address that is already
4809 in the instruction space.
de74f71f
MS
4810 * cli/cli-decode.c (help_list): Allow long lines to wrap.
4811 * symfile.c: Fix indentation, long lines.
f2172603
MS
4812 * source.c: White space fix-up.
4813
cda5a58a
AC
48142002-04-12 Andrew Cagney <cagney@redhat.com>
4815
4816 * defs.h (read_relative_register_raw_bytes): Delete declaration.
4817 * frame.c (frame_register_read): New function. Return non-zero on
4818 success.
4819 (read_relative_register_raw_bytes_for_frame): Delete.
4820 (read_relative_register_raw_bytes): Delete.
4821 * frame.h (frame_register_read): Declare.
4822 * d30v-tdep.c: Update Copyright. Use frame_register_read.
4823 * sh-tdep.c: Ditto.
4824 * infcmd.c (do_registers_info): Ditto.
4825 * hppa-tdep.c: Ditto.
4826 * rs6000-tdep.c: Ditto.
4827 * h8500-tdep.c: Ditto.
4828 * mips-tdep.c: Ditto.
4829 * h8300-tdep.c: Ditto.
4830 * z8k-tdep.c: Ditto.
4831
2ea5f656
KB
48322002-04-12 Kevin Buettner <kevinb@redhat.com>
4833
4834 From Jimi X <jimix@watson.ibm.com>:
4835 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
4836 64-bit SysV ABI.
4837
27b15785
KB
48382002-04-12 Kevin Buettner <kevinb@redhat.com>
4839
4840 From Jimi X <jimix@watson.ibm.com>:
4841 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
4842 bfd info.
4843
5d57ee30
KB
48442002-04-12 Kevin Buettner <kevinb@redhat.com>
4845
4846 From Jimi X <jimix@watson.ibm.com>:
4847 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
4848 register sets for these processor variants.
4849
bc1e36ca
DJ
48502002-04-11 Daniel Jacobowitz <drow@mvista.com>
4851
4852 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
4853 registers which are allowed to fail to store.
4854 * gdbserver/linux-low.h (linux_target_ops): Likewise.
4855 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
4856 (ppc_cannot_store_register): FPSCR may not be storable.
4857 * regformats/reg-ppc.dat: Support FPSCR.
4858
e3f36dbd
KB
48592002-04-11 Kevin Buettner <kevinb@redhat.com>
4860
4861 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
4862 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4863 Add fpscr as an invalid/unfetchable register.
4864 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
4865 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
4866 (fill_fpregset): Add support for register fpscr.
4867 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
4868 (fill_gregset): Account for the fact that register ``mq'' might
4869 not exist.
4870 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
4871 (registers_power): Add fpscr to register set at slot 71.
4872 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
4873 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
4874
943c9c25
MS
48752002-04-11 Michael Snyder <msnyder@redhat.com>
4876
4877 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
4878 * configure: Regenerate.
4879 * config.in: Regenerate.
4880 * acconfig.h: Add define for _SYSCALL32.
4881 * core-sol2.c: Remove #define _SYSCALL32.
4882 * solib-legacy.c: Remove #define _SYSCALL32.
4883
d8c0a2e7
AC
48842002-04-10 Andrew Cagney <ac131313@redhat.com>
4885
4886 * stack.c (select_frame): Cleanup internal error message, do not
4887 use %p.
4888
7cc19214
AC
48892002-04-10 Andrew Cagney <ac131313@redhat.com>
4890
4891 * stack.c (select_frame): Check that selected_frame and the
4892 specified level are as expected.
4893 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
4894 Update copyright.
4895 * frame.h (struct frame_info): Add field `level'. Update
4896 copyright.
4897 Work-in-progress PR gdb/464.
4898
67a2b77e
AC
48992002-04-10 Andrew Cagney <ac131313@redhat.com>
4900
4901 * maint.c (maint_print_section_info): Rename print_section_info.
4902 (print_bfd_section_info, print_objfile_section_info): Update.
4903 * inferior.h (struct gdbarch): Add opaque declaration.
4904 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
4905 * gdbarch.h: Regenerate.
4906
8cfda98c
ML
49072002-04-10 Michal Ludvig <mludvig@suse.cz>
4908
4909 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
4910 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
4911 (kernel_u_size): Added.
4912 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
4913 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
4914
ca439ad2 49152002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 4916
ca439ad2
JI
4917 * valarith.c (find_size_for_pointer_math): New function, either returns
4918 the size for a pointer's target, returns 1 for void *, or errors for
4919 incomplete types.
4920 (value_add, value_sub): use find_size_for_pointer_math.
4921
2f2893d9
DJ
49222002-04-09 Daniel Jacobowitz <drow@mvista.com>
4923
4924 * linux-low.c (linux_look_up_symbols): New hook.
4925 (linux_target_ops): Add linux_look_up_symbols.
4926 * remote-utils.c (decode_address): New function.
4927 (look_up_one_symbol): New function.
4928 * server.c (handle_query): Call target look_up_symbols hook.
4929 * server.h (look_up_one_symbol): Add prototype.
4930 * target.h (struct target_ops): Add look_up_symbols hook.
4931
2ec06d2e
DJ
49322002-04-09 Daniel Jacobowitz <drow@mvista.com>
4933
d64b8841
DJ
4934 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
4935 * ChangeLog: Correct paths in last ChangeLog entry.
4936
49372002-04-09 Daniel Jacobowitz <drow@mvista.com>
4938
4939 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
4940 (struct linux_target_ops): New.
4941 (extern the_low_target): New.
d64b8841 4942 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
4943 (register_addr): Use the_low_target explicitly.
4944 (fetch_register): Likewise.
4945 (usr_fetch_inferior_registers): Likewise.
4946 (usr_store_inferior_registers): Likewise.
d64b8841 4947 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
4948 (arm_num_regs): Define.
4949 (arm_regmap): Renamed from regmap, made static.
4950 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
4951 made static.
4952 (arm_cannot_store_register): Renamed from cannot_store_register,
4953 made static.
4954 (the_low_target): New.
d64b8841 4955 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
4956 (i386_num_regs): Define.
4957 (i386_regmap): Renamed from regmap, made static.
4958 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
4959 made static.
4960 (i386_cannot_store_register): Renamed from cannot_store_register,
4961 made static.
4962 (the_low_target): New.
d64b8841 4963 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
4964 (ia64_num_regs): Define.
4965 (ia64_regmap): Renamed from regmap, made static.
4966 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
4967 made static.
4968 (ia64_cannot_store_register): Renamed from cannot_store_register,
4969 made static.
4970 (the_low_target): New.
d64b8841 4971 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
4972 (m68k_num_regs): Define.
4973 (m68k_regmap): Renamed from regmap, made static.
4974 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
4975 made static.
4976 (m68k_cannot_store_register): Renamed from cannot_store_register,
4977 made static.
4978 (the_low_target): New.
d64b8841 4979 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
4980 (mips_num_regs): Define.
4981 (mips_regmap): Renamed from regmap, made static.
4982 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
4983 made static.
4984 (mips_cannot_store_register): Renamed from cannot_store_register,
4985 made static.
4986 (the_low_target): New.
d64b8841 4987 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
4988 (ppc_num_regs): Define.
4989 (ppc_regmap): Renamed from regmap, made static.
4990 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
4991 made static.
4992 (ppc_cannot_store_register): Renamed from cannot_store_register,
4993 made static.
4994 (the_low_target): New.
d64b8841 4995 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
4996 (s390_num_regs): Define.
4997 (s390_regmap): Renamed from regmap, made static.
4998 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
4999 made static.
5000 (s390_cannot_store_register): Renamed from cannot_store_register,
5001 made static.
5002 (the_low_target): New.
d64b8841 5003 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
5004 (sh_num_regs): Define.
5005 (sh_regmap): Renamed from regmap, made static.
5006 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
5007 made static.
5008 (sh_cannot_store_register): Renamed from cannot_store_register,
5009 made static.
5010 (the_low_target): New.
d64b8841 5011 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
5012 (the_low_target): New.
5013
96cb11df
AC
50142002-04-09 Andrew Cagney <ac131313@redhat.com>
5015
5016 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
5017 override FP_REGNUM with frame->fp. Update copyright.
5018 * parse.c (num_std_regs, std_regs): Delete.
5019 (target_map_name_to_register): Do not search std_regs. Update
5020 function description.
5021 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
5022 declarations. Update copyright.
5023 Fix PR gdb/251.
361d1df0 5024
c3a3ccc7
DJ
50252002-04-09 Daniel Jacobowitz <drow@mvista.com>
5026
5027 * gdbserver/Makefile.in: Add stamp-h target.
5028 * gdbserver/configure.in: Create stamp-h.
5029 * gdbserver/configure: Regenerated.
5030
ce3a066d
DJ
50312002-04-09 Daniel Jacobowitz <drow@mvista.com>
5032
5033 * gdbserver/inferiors.c: New file.
5034 * gdbserver/target.c: New file.
5035 * gdbserver/target.h: New file.
5036 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
5037 dependencies.
5038 * gdbserver/linux-low.c (inferior_pid): New static variable,
5039 moved from server.c.
5040 (linux_create_inferior): Renamed from create_inferior.
5041 Call add_inferior. Return 0 on success instead of a PID.
5042 (linux_attach): Renamed from myattach.
5043 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
5044 (linux_thread_alive): Renamed from mythread_alive.
5045 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
5046 child dies.
5047 (linux_resume): Renamed from myresume. Add missing ``return 0''.
5048 (regsets_store_inferior_registers): Correct error message.
5049 Add missing ``return 0''.
5050 (linux_fetch_registers): Renamed from fetch_inferior_registers.
5051 (linux_store_registers): Renamed from store_inferior_registers.
5052 (linux_read_memory): Renamed from read_inferior_memory.
5053 (linux_write_memory): Renamed from write_inferior_memory.
5054 (linux_target_ops): New structure.
5055 (initialize_low): Call set_target_ops ().
5056 * gdbserver/remote-utils.c (unhexify): New function.
5057 (hexify): New function.
5058 (input_interrupt): Send signals to ``signal_pid''.
5059 * gdbserver/server.c (inferior_pid): Remove.
5060 (start_inferior): Update create_inferior call.
5061 (attach_inferior): Call add_inferior.
5062 (handle_query): New function.
5063 (main): Call handle_query for `q' packets.
5064 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
5065 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
5066
0729219d
DJ
50672002-04-09 Daniel Jacobowitz <drow@mvista.com>
5068
5069 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
5070 dependencies.
5071 * gdbserver/configure.in: Check for <string.h>
5072 * gdbserver/configure: Regenerate.
5073 * gdbserver/config.in: Regenerate.
5074 * gdbserver/gdbreplay.c: Include needed system headers.
5075 (remote_open): Remove strchr prototype.
5076 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
5077 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
5078 (supply_register_by_name): Likewise.
5079 (collect_register): Change buf argument to void *.
5080 (collect_register_by_name): Likewise.
5081 * gdbserver/regcache.h: Add missing prototypes.
5082 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
5083 * gdbserver/server.c (handle_query): New function.
5084 (attached): New static variable, moved out of main.
5085 (main): Quiet longjmp clobber warnings.
5086 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
5087 * gdbserver/utils.c (error): Remove NORETURN.
5088 (fatal): Likewise.
5089
97658e92
DJ
50902002-04-09 Daniel Jacobowitz <drow@mvista.com>
5091
5092 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
5093 after the last symbol in a block.
5094
6044e3eb
PM
50952002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
5096
5097 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
5098 is non zero as a found symbol.
5099
0406ec40
AC
51002002-04-08 Andrew Cagney <ac131313@redhat.com>
5101
5102 * findvar.c: Include "builtin-regs.h".
5103 (value_of_register): Call value_of_builtin_reg when applicable.
5104 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
5105 (target_map_name_to_register): Call
5106 builtin_reg_map_name_to_regnum.
5107 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
5108 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
5109 (builtin_regs_h): Define.
5110 (builtin-regs.o): New target.
5111 (findvar.o): Add $(builtin_regs_h).
5112 * builtin-regs.c, builtin-regs.h: New files.
5113 * std-regs.c: New file.
5114 Partial fix for PR gdb/251.
5115
56a6dfb9
KB
51162002-04-08 Kevin Buettner <kevinb@redhat.com>
5117
5118 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
5119 it's no longer required.
5120
3a808432
AC
51212002-04-08 Andrew Cagney <ac131313@redhat.com>
5122
5123 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
5124
7c40d541
KB
51252002-04-08 Kevin Buettner <kevinb@redhat.com>
5126
5127 From Jimi X <jimix@watson.ibm.com>:
5128 * rs6000-tdep.c (rs6000_software_single_step): Use
5129 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
5130 and size. Use target_insert_breakpoint() and
5131 target_remove_breakpoint() to insert and remove breakpoints
5132 instead of explicit memory reads and writes.
5133
cc9836a8
KB
51342002-04-08 Kevin Buettner <kevinb@redhat.com>
5135
5136 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
5137 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
5138 ELF_OBJECT_FORMAT ifdef.
5139
7495d1dc
KB
51402002-04-08 Kevin Buettner <kevinb@redhat.com>
5141
5142 From Jimi X <jimix@watson.ibm.com>:
5143 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
5144
4288e836
KB
51452002-04-08 Kevin Buettner <kevinb@redhat.com>
5146
5147 From Jimi X <jimix@watson.ibm.com>:
5148 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
5149 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
5150
a4e4e501
MK
51512002-04-07 Mark Kettenis <kettenis@gnu.org>
5152
5153 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
5154 s/asprintf/xasprintf/.
5155 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
5156
006defba
AC
51572002-04-07 Andrew Cagney <ac131313@redhat.com>
5158
5159 I believe Jeff Law denies responsability for this one:
5160 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
5161 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
5162 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
5163 Work-around for PR gdb/366.
5164
7aa83cac
EZ
51652002-04-07 Elena Zannoni <ezannoni@redhat.com>
5166
5167 * remote-e7000.c (write_small, e7000_read_inferior_memory,
5168 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
5169 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
5170
cf1fcca1
EZ
51712002-04-07 Elena Zannoni <ezannoni@redhat.com>
5172
5173 * sh-tdep.c (sh_fp_frame_init_saved_regs,
5174 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
5175 information.
5176
3f289e6f
AC
51772002-04-07 Andrew Cagney <ac131313@redhat.com>
5178
5179 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
5180 maintainer.
5181
129188f6
AC
51822002-04-07 Andrew Cagney <ac131313@redhat.com>
5183
5184 * README (Reporting Bugs in GDB): Document the bug web page as the
5185 prefered way of submitting bugs.
5186 Fix PR gdb/402.
5187
1200cd6e
AC
51882002-04-06 Andrew Cagney <ac131313@redhat.com>
5189
5190 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
5191 -1. Update comment.
5192 * gdbarch.h, gdbarch.c: Re-generate.
5193
2853c33c
AS
51942002-04-07 Andreas Schwab <schwab@suse.de>
5195
5196 * m68klinux-nat.c (fill_fpregset): Properly pass address of
5197 buffer to regcache_collect.
5198
c2169756
AC
51992002-04-06 Andrew Cagney <ac131313@redhat.com>
5200
5201 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
5202 * gdbarch.c, gdbarch.h: Re-generate.
5203
25f1b008
AC
52042002-04-06 Andrew Cagney <ac131313@redhat.com>
5205
5206 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
5207 declaration. Fix -Werror.
5208
59263426
DJ
52092002-04-05 Daniel Jacobowitz <drow@mvista.com>
5210
5211 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
5212 * gdbarch.c: Regenerate.
5213
f5db4da3
MS
52142002-04-05 Michael Snyder <msnyder@redhat.com>
5215
80f8a6eb
MS
5216 * breakpoint.c (clear_command): Rewrite middle section to
5217 combine two loops with identical control conditions.
5218 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
5219 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
5220
ad3dcc5c
L
52212002-04-05 H.J. Lu (hjl@gnu.org)
5222
5223 * solib-svr4.c (bkpt_names): Add "__start".
5224
f32e7a74
AC
52252002-04-04 Andrew Cagney <ac131313@redhat.com>
5226
5227 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
5228 as test for 64 bit target.
5229
8227c0ff
AC
52302002-04-05 Andrew Cagney <ac131313@redhat.com>
5231
5232 * h8500-tdep.c (h8500_write_fp): Delete function.
5233 * dwarf2cfi.c (cfi_write_fp): Document as not used.
5234 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
5235 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
5236 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
5237 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
5238 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
5239 (s390_write_fp):
5240 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
5241 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
5242 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
5243 (d10v_write_fp): Delete function.
5244 * inferior.h (write_fp, generic_target_write_fp): Delete
5245 declarations.
5246 * regcache.c (generic_target_write_fp): Delete function.
5247 (write_fp): Delete function.
5248 * gdbarch.sh (TARGET_WRITE_FP): Delete.
5249 * gdbarch.h, gdbarch.c: Regenerate.
5250 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
5251 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
5252 (sparc64_write_fp): Delete declaration.
5253 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
5254 (h8500_write_fp): Delete declaration.
5255
2757dd86
AC
52562002-04-04 Andrew Cagney <ac131313@redhat.com>
5257
5258 * sparc-tdep.c (sparc64_write_fp): Delete.
5259 (sparc_push_dummy_frame): Replace write_fp call with code to store
5260 the FP directly.
5261 (sparc_gdbarch_init): Do not initialize write_fp.
5262
c69255e1
KB
52632002-04-05 Kevin Buettner <kevinb@redhat.com>
5264
5265 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
5266 clause.
5267
ae767bfb
JB
52682002-03-29 Jim Blandy <jimb@redhat.com>
5269
5270 * stack.c (get_selected_block): Add new argument `addr_in_block',
5271 used to return the exact code address we used to select the block,
5272 not just the block.
5273 * blockframe.c (get_frame_block, get_current_block): Same.
5274 * frame.h (get_frame_block, get_current_block,
5275 get_selected_block): Update declarations.
5276 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
5277 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
5278
84d2ac95
MS
52792002-04-05 Michael Snyder <msnyder@redhat.com>
5280
5281 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
5282 warning message.
5283
596aa3bf
JB
52842002-04-05 J. Brobecker <brobecker@gnat.com>
5285
5286 * utils.c (xfullpath): New function.
5287 * defs.h (xfullpath): Add declaration.
5288 * source.c (openp): Use xfullpath in place of gdb_realpath to
5289 avoid resolving the basename part of filenames when the
5290 associated file is a symbolic link. This fixes a potential
5291 inconsistency between the filenames known to GDB and the
5292 filenames it prints in the annotations.
5293 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
5294 to be able to match a filename with either the real filename, or
5295 the name of any symbolic link to this file.
5296 (lookup_partial_symtab): Ditto.
5297
c02f5703
MS
52982002-04-04 Michael Snyder <msnyder@redhat.com>
5299
5300 * breakpoint.c: Add support for hardware breakpoints in overlays.
5301 (overlay_events_enabled): New state variable.
5302 (insert_breakpoints): Use overlay_events_enabled to decide
5303 whether to attempt to set a breakpoint at the overlay load addr.
5304 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5305 (remove_breakpoint): Use overlay_events_enabled to decide
5306 whether breakpoints need to be removed from overlay load addr.
5307 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5308 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 5309 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
5310 disable_overlay_breakpoints): Update overlay_events_enabled.
5311
5fb290d7
DJ
53122002-04-04 Daniel Jacobowitz <drow@mvista.com>
5313
5314 * dwarf2read.c (struct function_range): New.
5315 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
5316 (check_cu_functions): New.
5317 (read_file_scope): Initialize global function lists.
5318 Call dwarf_decode_line after processing children.
5319 (read_func_scope): Add to global function list.
5320 (dwarf_decode_lines): Call check_cu_functions everywhere
5321 record_line is called. Call record_line with a linenumber
5322 of 0 to mark sequence ends.
5323
7b3fabf0
ML
53242002-04-04 Michal Ludvig <mludvig@suse.cz>
5325
361d1df0 5326 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
5327 change sync with glibc.
5328
bce58c09
JB
53292002-04-03 Jim Blandy <jimb@redhat.com>
5330
5331 * configure.in: Call AC_C_INLINE.
5332 * configure: Regenerated.
361d1df0 5333
2fccf04a
DJ
53342002-04-01 Daniel Jacobowitz <drow@mvista.com>
5335
5336 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
5337 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
5338
2d1bfe2e
MK
53392002-03-31 Mark Kettenis <kettenis@gnu.org>
5340
a5941fbf
MK
5341 * NEWS: Mention gcore support on FreeBSD/i386.
5342
a90cd31d
MK
5343 * fbsd-proc.c: New file.
5344 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
5345 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
5346
2d1bfe2e
MK
5347 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
5348 while statement.
5349
9eb6e5a1
JB
53502002-03-29 Jim Blandy <jimb@redhat.com>
5351
5352 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
5353 unescaped newlines in string literals, but newer ones don't. So
5354 escape them.
5355
f02df580
MS
53562002-03-26 Michael Snyder <msnyder@redhat.com>
5357 Andrew Cagney <cagney@redhat.com>
5358
361d1df0 5359 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
5360 restore file to memory.
5361 * cli/cli-dump.h: New file.
5362 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 5363 * NEWS: Mention new commands.
f02df580 5364
109f874e
MS
53652002-03-28 Michael Snyder <msnyder@redhat.com>
5366
5367 * symfile.c (symbol_file_add): Move test for null symbols to later.
5368
520f6ade
AC
53692002-03-27 Andrew Cagney <ac131313@redhat.com>
5370
5371 From veksler at il.ibm.com:
5372 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
5373 the xstrduped original path.
5374 Fix PR gdb/417.
5375
d4654627
MS
53762002-03-27 Michael Snyder <msnyder@redhat.com>
5377
5378 * breakpoint.c (_initialize_breakpoint): Clean up help string.
5379 * infcmd.c (_initialize_infcmd): Ditto.
5380 * language.c (_initialize_language): Ditto.
5381 * symfile.c (_initialize_symfile): Ditto.
5382 * top.c (_init_main): Ditto.
5383 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5384
6be8bc0c
EZ
53852002-03-27 Elena Zannoni <ezannoni@redhat.com>
5386
5387 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
5388 vector registers handling.
5389 (skip_prologue): Handle new AltiVec instructions. Fill in new
5390 fields of frame data.
5391 (frame_get_saved_regs): Fill in information for AltiVec registers.
5392
12af6855
JB
53932002-03-27 Jim Blandy <jimb@redhat.com>
5394
5395 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
5396 a function; leave this macro here to invoke that function.
5397 (symbol_init_mangled_name): Declaration for that function.
5398 * symtab.c (symbol_init_mangled_name): New function.
5399
dc672865
AC
54002002-03-27 Andrew Cagney <ac131313@redhat.com>
5401
5402 * valarith.c: Replace strerror with safe_strerror.
5403 * tracepoint.c: Ditto.
5404 * lin-lwp.c: Ditto.
5405 * go32-nat.c: Ditto.
5406 * inflow.c: Ditto.
5407 * gnu-nat.c: Ditto.
5408
d96429cd
AS
54092002-03-27 Andreas Schwab <schwab@suse.de>
5410
5411 * event-top.c (command_line_handler): Remove useless if.
5412
7e336ba1
AJ
54132002-03-27 Andreas Jaeger <aj@suse.de>
5414
5415 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
5416 comment.
5417
de220d0f
ML
54182002-03-27 Michal Ludvig <mludvig@suse.cz>
5419
5420 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
5421 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
5422 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
5423 (x86_64_linux_dr_get_status, supply_gregset),
5424 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
5425 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
5426 (x86_64_register_info_table): Add.
5427 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
5428 (x86_64_register_raw_size, x86_64_register_virtual_type),
5429 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
5430 general x86_64_register_info_table.
5431 (i386_gdbarch_init): gdbarch_register_bytes is now set
5432 dynamicaly during initialization.
5433 * regformats/reg-x86-64.dat: Synced with changes to registers above.
5434 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 5435
0e98d0a7
DJ
54362002-03-27 Daniel Jacobowitz <drow@mvista.com>
5437
5438 * gdbserver/server.c (main): Call target_signal_to_host_p
5439 and target_signal_to_host on signals received from the remote.
5440 * gdbserver/remote-utils.c (prepare_resume_reply): Call
5441 target_signal_from_host on signals sent to the remote.
5442 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
5443 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
5444
3130066b
DJ
54452002-03-27 Daniel Jacobowitz <drow@mvista.com>
5446
5447 * signals/signals.c: Include "server.h" in gdbserver build.
5448 (target_signal_from_name): Don't use STREQ.
5449 (_initialize_signals): Likewise. Don't include function in
5450 gdbserver build.
5451
9aedf4f4
DJ
54522002-03-27 Daniel Jacobowitz <drow@mvista.com>
5453
5454 * signals.c: Moved to...
5455 * signals/signals.c: Here.
7e336ba1 5456 * Makefile (signals.o): Update.
9aedf4f4 5457
3fa41cdb
JL
54582002-03-26 Jeff Law (law@redhat.com)
5459
5460 * somread.c (som_symtab_read): Remove some commented out code and
5461 updated related comments. Do not set the minimal symbol table to
5462 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
5463 in a dynamic executable.
5464 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
5465 where we are unable to find the minimal symbol for the given
5466 PC value.
5467
ee677e8d
MS
54682002-03-25 Jeff Law (law@redhat.com)
5469
5470 * linux-proc.c (read_mapping): Scan up to end of line for filename.
5471
e76e1718
ML
54722002-03-25 Michal Ludvig <mludvig@suse.cz>
5473
5474 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
5475
18a642a1
AC
54762002-03-23 Andrew Cagney <ac131313@redhat.com>
5477
5478 * command.h: Update copyright.
5479 (struct cmd_list_element): Replace definition with opaque
5480 declaration.
5481 (enum cmd_types): Document that it will eventually be moved to
5482 cli/cli-decode.h
5483 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
5484 (MALLOCED_REPLACEMENT): Delete macro.
5485 * Makefile.in (cli_decode_h): Add $(command_h).
5486 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 5487 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
5488 * completer.c: Include "cli/cli-decode.h".
5489 * maint.c: Include "cli/cli-decode.h".
5490 * cli/cli-decode.h: Include "command.h".
5491 (enum command_class): Delete.
5492 (enum cmd_types): Comment out.
5493 (enum cmd_auto_boolean): Delete.
5494 (enum var_types): Delete.
5495
b2875cc0
AC
54962002-03-23 Andrew Cagney <ac131313@redhat.com>
5497
5498 * cli/cli-decode.c: Include "gdb_assert.h".
5499 (add_set_or_show_cmd): New static function.
5500 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
5501 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
5502 all fields, such as func, from the set command.
5503
3b45974e
AC
55042002-03-23 Andrew Cagney <ac131313@redhat.com>
5505
5506 * MAINTAINERS (sh-elf): Change warning flag to -w.
5507
823ca731
AC
55082002-03-23 Andrew Cagney <cagney@redhat.com>
5509
5510 * defs.h (error): Add printf format attribute.
5511 * thread-db.c (thread_from_lwp): Fix error format string.
5512 * stack.c (parse_frame_specification): Ditto.
5513 * cli/cli-decode.c (undef_cmd_error): Ditto.
5514 * scm-lang.c (scm_lookup_name): Ditto.
5515 * tracepoint.c (trace_error): Ditto.
5516 * remote-utils.c (usage): Ditto.
5517 * remote.c (compare_sections_command): Ditto.
5518 Fix PR gdb/328.
5519
0e101458
AC
55202002-03-22 Andrew Cagney <ac131313@redhat.com>
5521
5522 * gdbtypes.c (append_composite_type_field): New function.
5523 (init_composite_type): New function.
5524 * gdbtypes.h (append_composite_type_field): Declare.
5525 (init_composite_type): Ditto.
5526
8e0662df
EZ
55272002-03-22 Elena Zannoni <ezannoni@redhat.com>
5528
5529 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 5530 function.
8e0662df
EZ
5531 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
5532 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
5533 structure returning convention for SYSV ABI case, but not
5534 for GNU/Linux, FreeBSD, or NetBSD.
5535
3121eff0
DJ
55362002-03-22 Daniel Jacobowitz <drow@mvista.com>
5537
5538 * symtab.h (lookup_block_symbol): Add mangled_name argument
5539 to prototype.
5540
5541 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
5542 with new mangled_name argument.
5543 * linespec.c (decode_line_1): Likewise.
5544 * valops (value_of_this): Likewise.
5545 * symtab.c (lookup_transparent_type): Likewise.
5546 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
5547 (lookup_symbol): If we are given a mangled name, pass it down
5548 to lookup_symbol_aux.
5549 (lookup_block_symbol): If we are given a mangled name to check
5550 against, only return symbols which match it.
5551
349b409f
CF
55522002-03-22 Christopher Faylor <cgf@redhat.com>
5553
5554 * win32-nat.c (child_create_inferior): Check for proper shell to use
5555 here, in case the user changes it on the fly.
5556 (_initialize_inftarg): Remove shell path considerations.
5557
2a873819
EZ
55582002-03-21 Elena Zannoni <ezannoni@redhat.com>
5559
5560 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
5561 for gdbarch_max_register_raw_size and max_register_virtual_size.
5562 Adjust copyright year.
5563
a1b9830c
DJ
55642002-03-21 Daniel Jacobowitz <drow@mvista.com>
5565
5566 * dbxread.c (process_one_symbol): Extend the first N_SLINE
5567 in a function to cover the entire beginning of the function
5568 as well if it does not already.
5569
8b5790f2
TR
55702002-03-21 Tom Rix <trix@redhat.com>
5571
5572 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
5573 (rs6000_ptrace64): Renamed from ptrace64.
5574
bdbe5747
MH
55752002-03-20 Martin M. Hunt <hunt@redhat.com>
5576
5577 * gdbserver/remote-utils.c (remote_open): Don't call
5578 getprotobyname, we're all using TCP here so just use
5579 IPPROTO_TCP.
7e336ba1 5580 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
5581
55822002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 5583
bdbe5747
MH
5584 * regcache.c (_initialize_regcache): No need to call
5585 build_regcache() at this time; it gets called whenever
5586 the gdbarch changes.
5587
7781cd62
DB
55882002-03-20 David O'Brien <obrien@FreeBSD.org>
5589
5590 * sparc-nat.c: Include sys/param.h where possible.
5591
f65ca430
DJ
55922002-03-20 Daniel Jacobowitz <drow@mvista.com>
5593
5594 Fix PR gdb/422.
5595 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
5596 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
5597 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
5598 complex types.
5599 * stabsread.c (rs6000_builtin_type): Likewise.
5600 (read_sun_floating_type): Likewise.
5601
0c867556
PS
56022002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5603
5604 * stabsread.c (read_member_functions): Remove skip code for duplicate
5605 constructor/destructor methods. Use standard parsing for these
5606 methods and just do not chain them to the list of methods after
5607 parsing.
5608
12b9c64f
AO
56092002-03-19 Alexandre Oliva <aoliva@redhat.com>
5610
5611 * coffread.c: Remove redundant static declarations. Replace
5612 occurrences of `PTR' with `void *'.
5613 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
5614 * top.h (quit_cover): Likewise.
5615 * defs.h (catch_errors): Likewise.
5616
349c5d5f
AC
56172002-03-18 Andrew Cagney <ac131313@redhat.com>
5618
5619 * defs.h (XMALLOC): Define.
5620 * gdb-events.sh (XMALLOC): Delete macro.
5621 * gdb-events.c, gdb-events.h: Regenerate.
5622 * gdbarch.sh (XMALLOC): Delete macro.
5623 * gdbarch.c: Regenerate.
5624 * serial.c (XMALLOC): Delete macro.
5625 * ui-file.c (XMALLOC): Ditto.
5626 * ser-unix.h (XMALLOC): Ditto.
5627 * sh-tdep.c (XMALLOC): Ditto.
5628 * ui-out.c (XMALLOC): Ditto.
5629 * utils.c (XMALLOC): Ditto.
5630 * i386-tdep.c (XMALLOC): Ditto.
5631 * gdb-events.c (XMALLOC): Ditto.
5632 * d10v-tdep.c (XMALLOC): Ditto.
5633 * cli-out.c (XMALLOC): Ditto.
5634
5635 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
5636 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
5637 * ui-file.c, ui-out.c: Ditto.
5638
7d0766f3
AC
56392002-03-18 Andrew Cagney <ac131313@redhat.com>
5640
5641 * command.h (struct cmd_list_element): Add field context.
5642 (set_cmd_context, get_cmd_context): Declare.
5643 * cli/cli-decode.h: Ditto.
5644 * cli/cli-decode.c (get_cmd_context): New function.
5645 (set_cmd_context): New function.
5646 (add_cmd): Initialize context.
5647 Part of fixing PR gdb/145 and PR gdb/146.
5648
5913bcb0
AC
56492002-03-17 Andrew Cagney <ac131313@redhat.com>
5650
1868c04e
AC
5651 * cli/cli-decode.c (cmd_type): New function.
5652 * command.h (cmd_type): Declare.
5653 * infrun.c (set_schedlock_func): Call function cmd_type.
5654 * kod.c (kod_set_os): Call cmd_type.
5655 * cris-tdep.c (cris_version_update): Use function cmd_type.
5656 (cris_mode_update, cris_abi_update): Ditto.
5657
5913bcb0
AC
5658 * command.h: (execute_cmd_post_hook): Declare.
5659 (execute_cmd_pre_hook): Declare.
5660 * cli/cli-script.c (clear_hook_in_cleanup): New function.
5661 (execute_cmd_post_hook, execute_cmd_pre_hook): New
5662 functions. Execute pre/post hook while ensuring that afterwords
5663 hook_in is cleared.
5664 * top.c (execute_command): Use execute_cmd_post_hook, and
5665 execute_cmd_pre_hook to execute pre/post commands.
5666 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
5667 hook_stop_stub.
5668 (hook_stop_stub): Call execute_cmd_pre_hook.
5669
b51450c9
AC
56702002-03-17 Andrew Cagney <ac131313@redhat.com>
5671
5672 * kod.c (kod_set_os): Revert previous change. Is called by ``info
5673 set'' and this leads to a core dump. Move xstrdup of
5674 operating_system to after check that it is not NULL.
5675
f66c9f11
AC
56762002-03-17 Andrew Cagney <ac131313@redhat.com>
5677
8e694ecf
AC
5678 * kod.c (kod_set_os): Remove unnecessary check that
5679 ``command->type'' is set_cmd.
5680
f66c9f11
AC
5681 * valprint.c (set_input_radix): Use input_radix.
5682 (set_output_radix): Use output_radix.
5683 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
5684 isn't reverted.
5685
9d01611c
AC
56862002-03-16 Andrew Cagney <ac131313@redhat.com>
5687
5688 * value.h (struct value): Delete field ``substring_addr''. Change
5689 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
5690 force_core_addr_align and force_pointer_aligh.
5691
5692 * value.h (struct value): Fix typo in above change.
9d01611c 5693
4156bb53
PS
56942002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5695
5696 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
5697 to fix internal_error from ``maintenance print architecture''.
5698
0e5e3ea6
PS
56992002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5700
5701 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
5702 for gcc versions after gcc-2.8.1.
5703
9b013045
PS
57042002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5705
5706 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
5707 for method resolution. Restore adjustment of ``this'' pointer after
5708 calling value_struct_elt, which was accidentally removed during the
5709 HP merge.
5710
376c9600
AC
57112002-03-15 Andrew Cagney <ac131313@redhat.com>
5712
5713 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
5714 value_of_register.
5715 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
5716 get_saved_register.
5717 * value.h (value_of_register): Update.
5718
a4db0f07
RH
57192002-03-14 Richard Henderson <rth@redhat.com>
5720
5721 * configure.in: Detect declaration for canonicalize_file_name.
5722 * utils.c (canonicalize_file_name): Declare, if needed.
5723 (gdb_realpath): Prefer realpath if available and usable.
5724 * config.in, configure: Rebuild.
5725
96383835
RH
57262002-03-14 Richard Henderson <rth@redhat.com>
5727
5728 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
5729 a constant array bound.
5730
5731 * MAINTAINERS: Add myself to write-after-approval.
5732
75245b24
MS
57332002-03-14 Michael Snyder <msnyder@redhat.com>
5734
5735 * symfile.c (syms_from_objfile): Return immediately if no syms.
5736 (symbol_file_add): Return immediately if no syms.
5737 (find_sym_fns): Return immediately if no syms.
5738
e641a1ca
ML
57392002-03-13 Michal Ludvig <mludvig@suse.cz>
5740
5741 * gdbserver/remote-util.c (remote_open): Print remote-side's
5742 IP address when remote debugging over the network.
7e336ba1 5743
df08bfec
DB
57442002-03-12 David O'Brien <obrien@FreeBSD.org>
5745
5746 * config/sparc/fbsd.mh: Fix copyright.
5747 * config/sparc/fbsd.mt: Likewise.
5748
9a57864f
RE
57492002-03-11 Richard Earnshaw <rearnsha@arm.com>
5750
5751 * MAINTAINERS: Fix typo in name of gdb warnings option.
5752 (x86-64): Fix formating so that this can be parsed by awk.
5753
dd7bf85e
DJ
57542002-03-10 Daniel Jacobowitz <drow@mvista.com>
5755
5756 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
5757 * defs.h: Include "gdb/signals.h".
5758 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
5759
33a0a2ac
ML
57602002-03-10 Michal Ludvig <mludvig@suse.cz>
5761
5762 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 5763 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
5764 from x86-64-tdep.h
5765
dd824b04
DJ
57662002-03-10 Daniel Jacobowitz <drow@mvista.com>
5767 Don Howard <dhoward@redhat.com>
5768
5769 * mips-tdep.c (ST0_FR): Define.
5770 (mips2_fp_compat): New function, temporarily disabled.
5771 (mips_read_fp_register_single): New function.
5772 (mips_read_fp_register_double): New function.
5773 (mips_print_register): Use them.
5774 (do_fp_register_row): Likewise.
5775
6a41ff59
AC
57762002-03-09 Andrew Cagney <ac131313@redhat.com>
5777
5778 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
5779 approval''.
5780
4ea09c10
PS
57812002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5782
5783 * stabsread.c (read_member_functions): Fix is_stub test for
5784 static member functions, improve comment.
5785
6ccc741d
RE
57862002-03-07 Richard Earnshaw <rearnsha@arm.com>
5787
5788 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
5789 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
5790 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
5791 commands that set boolean values.
5792 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
5793 (arm_rdi_resume): Always initialize PC.
5794 (arm_rdi_open): Don't use rslt as a boolean.
5795 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
5796 (arm_rdi_fetch_registers, arm_rdi_store_registers)
5797 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
5798 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
5799
438013df
AO
58002002-03-06 Alexandre Oliva <aoliva@redhat.com>
5801
5802 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
5803 * configure: Rebuilt.
5804
70ed8774
SC
58052002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5806
5807 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
5808 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
5809
5ba2abeb
AC
58102002-03-06 Andrew Cagney <ac131313@redhat.com>
5811
5812 * cli/cli-decode.c (set_cmd_completer): New function.
5813 * command.h (set_cmd_completer): Declare.
5814 * cli/cli-decode.h (set_cmd_completer): Ditto.
5815
5816 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
5817 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5818 * win32-nat.c (_initialize_inftarg): Ditto.
5819 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5820 * proc-api.c (_initialize_proc_api): Ditto.
5821 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
5822 * source.c (_initialize_source): Ditto.
5823 * exec.c (_initialize_exec): Ditto.
5824 * solib.c (_initialize_solib): Ditto.
5825 * top.c (init_main): Ditto.
5826 * tracepoint.c (_initialize_tracepoint): Ditto.
5827 * symfile.c (_initialize_symfile): Ditto.
5828 * printcmd.c (_initialize_printcmd): Ditto.
5829 * infcmd.c (_initialize_infcmd): Ditto.
5830 * corefile.c (_initialize_core): Ditto.
5831
f779ca99
AC
58322002-03-05 Andrew Cagney <ac131313@redhat.com>
5833
5834 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
5835
01a3934b
AC
58362002-03-05 Andrew Cagney <ac131313@redhat.com>
5837
5838 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
5839
37057839
AC
58402002-03-05 Andrew Cagney <ac131313@redhat.com>
5841
5842 * NEWS: Update headings, 5.2 has branched.
5843
c6ecbae5
DJ
58442002-03-04 Daniel Jacobowitz <drow@mvista.com>
5845
5846 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
5847 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
5848 (register_addr, REGISTER_RAW_SIZE): Likewise.
5849 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
5850 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
5851
e9f30c21
ML
58522002-03-03 Michal Ludvig <mludvig@suse.cz>
5853
5854 * MAINTAINERS (x86-64): Add myself.
5855 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
5856 changed value_ptr -> struct value *
5857
54394ac3
DB
58582002-03-01 David O'Brien <obrien@FreeBSD.org>
5859
5860 * configure.host (sparc64-*-freebsd): Add.
5861 * configure.tgt: Likewise.
5862 * config/sparc/fbsd.mh: New file.
5863 * config/sparc/fbsd.mt: Likewise.
5864 * config/sparc/nm-fbsd.h: Likewise.
5865 * config/sparc/tm-fbsd.h: Likewise.
5866
bfe95955
DJ
58672002-03-01 Daniel Jacobowitz <drow@mvista.com>
5868
5869 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
5870 regformats/reg-s390x.dat.
5871
f33c6cbf
AC
58722002-03-01 Andrew Cagney <ac131313@redhat.com>
5873
5874 * utils.c: Add FIXME explaining true/false problem.
5875
5ecaa7dd
AC
58762002-02-28 Andrew Cagney <ac131313@redhat.com>
5877
5878 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
5879
2a251cc2
MC
58802002-02-28 Michael Chastain <mec@shout.net>
5881
5882 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
5883
6a8031a3 58842002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
5885
5886 * gdbserver/linux-s390-low.c: New file.
5887 * regformats/reg-s390.dat: New file.
5888 * regformats/reg-s390x.dat: New file.
5889 * gdbserver/configure.srv: Add S/390.
5890 * gdbserver/Makefile.in: Add S/390.
5891 * configure.tgt: Enable gdbserver for S/390.
5892
ac469903
EZ
58932002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
5894
5895 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
5896 first line of the doc string for "info dos", except at the end of
5897 the sentence, since the short help stops at the first period.
5898
985cb1a3
JM
58992002-02-28 Jason Merrill <jason@redhat.com>
5900
5901 * dwarf2read.c (dwarf_cfi_name): Add new codes.
5902
c570663e
FF
59032002-02-27 Fred Fish <fnf@redhat.com>
5904
5905 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
5906 comment (dumy -> dummy).
5907
43630227
PS
59082002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5909
5910 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
5911
b84911e8
RB
59122002-02-27 Rodney Brown <rbrown64@csc.com.au>
5913
5914 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
5915
58caa3dc
DJ
59162002-02-27 Daniel Jacobowitz <drow@mvista.com>
5917
5918 * gdbserver/acconfig.h: New file.
5919 * gdbserver/i387-fp.c: New file.
5920 * gdbserver/i387-fp.h: New file.
5921 * gdbserver/linux-x86-64.c: New file.
5922 * regformats/reg-x86-64.dat: New file.
5923 * configure.tgt: Add x86_64-*-linux* gdbserver support.
5924 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
5925 * gdbserver/configure.in: Add support for regsets.
5926 * gdbserver/config.in: Regenerate.
5927 * gdbserver/configure: Regenerate.
5928 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
5929 * gdbserver/linux-low.h: New file.
5930 * gdbserver/linux-low.c: Include "linux-low.h". Add support
5931 for regsets.
5932 * gdbserver/linux-arm-low.c: Include "linux-low.h".
5933 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
5934 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
5935 * gdbserver/linux-mips-low.c: Include "linux-low.h".
5936 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
5937 * gdbserver/linux-sh-low.c: Include "linux-low.h".
5938 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
5939 "i387-fp.h". Add PTRACE_GETREGS and friends.
5940 * gdbserver/regcache.c (supply_register): New function.
5941 (supply_register_by_name): New function.
5942 (collect_register): New function.
5943 (collect_register_by_name): New function.
5944
93652174
DJ
59452002-02-27 Daniel Jacobowitz <drow@mvista.com>
5946
5947 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
5948 (config.status): Add configure.srv dependency.
5949 (server_h): Add config.h dependency.
5950
a02e4a61
DJ
59512002-02-27 Daniel Jacobowitz <drow@mvista.com>
5952
5953 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
5954 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
5955 * gdbserver/configure.srv: Change i386-*-linux* to use
5956 reg-i386-linux.o.
5957
ce0eebec
AC
59582002-02-26 Andrew Cagney <ac131313@redhat.com>
5959
5960 * x86-64-tdep.c: Re-indent. Update copyright date.
5961
82dbc5f7
AC
59622002-02-26 Andrew Cagney <ac131313@redhat.com>
5963
5964 From Michal Ludvig <mludvig@suse.cz>:
5965 * x86-64-tdep.c (value.h): Delete.
5966 (gdb_assert.h): Include.
5967 (x86_64_register_convert_to_virtual,
5968 x86_64_register_convert_to_raw ): Add check which lets only
5969 floating-point values to be converted.
5970 (value_push): Delete.
5971 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
5972 (i386_gdbarch_init): Number of register_bytes fixed.
5973
e4621584
AC
59742002-02-26 Andrew Cagney <ac131313@redhat.com>
5975
5976 * MAINTAINERS: Add x86-64 target.
5977
81a9a963
AC
59782002-02-26 Andrew Cagney <ac131313@redhat.com>
5979
5980 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
5981 * osfsolib.c (solib_map_sections): Ditto.
5982 * irix5-nat.c (solib_map_sections): Ditto.
5983 * corelow.c (gdb_check_format): Ditto.
5984 * symfile.c (symfile_bfd_open): Ditto.
5985 * solib.c (solib_map_sections): Ditto.
5986 Fix PR gdb/354.
7e336ba1 5987
0f017ab9
AC
59882002-02-26 Andrew Cagney <ac131313@redhat.com>
5989
5990 * remote.c (_initialize_remote): By default, disable ``e'' and
5991 ``E'' step out-of-range packets.
5992
75738c29
AS
59932002-02-26 Andreas Schwab <schwab@suse.de>
5994
5995 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
5996 m68k_linux_frame_saved_pc.
5997 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
5998 in_sigtramp.
5999 (SIGCONTEXT_PC_OFFSET): Remove.
6000 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
6001 m68k_linux_sigtramp_saved_pc): New functions.
6002 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
6003 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
6004 (UCONTEXT_PC_OFFSET): Define.
6005 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
6006 non-RT and RT signal trampolines.
6007
7e8ed687
RE
60082002-02-26 Richard Earnshaw <rearnsha@arm.com>
6009
6010 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
6011 (TARGET_NBPG, STACK_END_ADDR): Delete
6012 (VARIABLES_INSIDE_BLOCK): Delete.
6013
6972bc8b
AC
60142002-02-25 Andrew Cagney <ac131313@redhat.com>
6015
6016 * utils.c (perror_with_name): Make string parameter constant.
6017 (print_sys_errmsg): Ditto.
6018 (query): Ditto.
6019 * defs.h (perror_with_name): Update.
6020 (print_sys_errmsg): Update.
6021 (query): Update.
6022
aa32f823
DJ
60232002-02-25 Daniel Jacobowitz <drow@mvista.com>
6024
6025 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
6026 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
6027
19caaa45
PS
60282002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6029
6030 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
6031 if it already matches the current architecture from the exec file.
6032 Include arch-utils.h for gdbarch_info_init prototype.
6033 * Makefile.in (rs6000-nat.o): Update dependencies.
6034
d951901f
EZ
60352002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
6036
6037 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
6038 list of exported variables.
6039
7ea81414
DJ
60402002-02-24 Daniel Jacobowitz <drow@mvista.com>
6041
6042 * gdbserver/configure.srv: New file.
6043 * gdbserver/configure.in: Use configure.srv instead
6044 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
6045 from it.
6046 * gdbserver/configure: Regenerated.
6047 * gdbserver/terminal.h: New file.
6048 * gdbserver/Makefile.in: Update for configure changes. Remove
6049 more unneeded include paths.
6050
080fe24b
AC
60512002-02-24 Andrew Cagney <ac131313@redhat.com>
6052
6053 From wiz at danbala:
6054 * config/sparc/tm-sp64.h: Fix grammar and typos.
6055 Fix PR gdb/287.
6056
8605d56e
AC
60572002-02-24 Andrew Cagney <ac131313@redhat.com>
6058
6059 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
6060 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
6061 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
6062 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
6063 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
6064 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
6065 * s390-tdep.c: Ditto.
92362027
AC
6066 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
6067 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
6068 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
6069 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
6070 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
6071 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
6072 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
6073 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
6074 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
6075 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 6076 Fix PR gdb/378.
7e336ba1 6077
8ed32cc0
AC
60782002-02-23 Andrew Cagney <ac131313@redhat.com>
6079
a3007b6f
AC
6080 * lin-thread.c: Delete file.
6081 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
6082 to gdb_proc_service.h.
6083 * configure: Re-generate.
6084
50a9e2f1
AC
6085 * ocd.c (ocd_open): Do not try to open the "ocd" device.
6086 * serial.c (serial_open): Delete check for "ocd".
6087 Fix PR gdb/349.
6088
8b6e7932
AC
6089 * Makefile.in (linux-thread.o): Delete target.
6090 * linux-thread.c: Delete file.
6091
d155c46b
AC
6092 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
6093 renamed SH files to be consistent.
6094
8ed32cc0
AC
6095 * symtab.c (sort_search_symbols): Use xfree.
6096
0e18d038
RE
60972002-02-23 Richard Earnshaw <rearnsha@arm.com>
6098
6099 * arm-linux-tdep.c (arm_linux_init_abi): Register
6100 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
6101 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
6102 definition with undef, since we don't want the sysvr4 definition.
6103 (SKIP_TRAMPOLINE_CODE): Likewise.
6104
27aac7ff
AC
61052002-02-23 Andrew Cagney <ac131313@redhat.com>
6106
6107 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
6108
6109 * configure.in: (AC_CHECK_FUNCS) Added test for
6110 canonicalize_file_name Regenerated.
6111 * config.in, configure: Regenerated.
6112 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
6113 defined use canonicalize_file_name.
7e336ba1 6114
65a6e0ee
MC
61152002-02-23 Michael Chastain <mec@shout.net>
6116
6117 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
6118
47b95330
AC
61192002-02-23 Andrew Cagney <ac131313@redhat.com>
6120
6121 * README: Remove references to cygnus.com.
6122 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
6123 dot com'' form. Remove references to cygnus.com and sourceware.
6124
696f451b
AC
61252002-02-23 Andrew Cagney <ac131313@redhat.com>
6126
6127 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
6128 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
6129 1003.1-2001 no longer allows "head -1".
6130 * gdb/Makefile.in (version.c): Likewise.
6131 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
6132 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
6133 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
6134
bbaca940
AC
61352002-02-23 Andrew Cagney <ac131313@redhat.com>
6136
6137 * cli/cli-decode.c (cmd_cfunc_eq): New function.
6138 * command.h (cmd_cfunc_eq): Declare.
6139 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
6140
6141 * cli/cli-cmds.h (is_complete_command): Change parameter to a
6142 ``struct cmd_list_element *''.
6143 * cli/cli-cmds.c (is_complete_command): Update. Use
6144 cmd_cfunc_eq.
6145 * top.c (execute_command): Pass the command to
6146 is_complete_command.
6147 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
6148
b8b8b047
AC
61492002-02-23 Andrew Cagney <ac131313@redhat.com>
6150
6151 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
6152 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
6153 architecture defines.
6154 * s390-tdep.c (s390_gdbarch_init): Likewise.
6155
19d3fc80
RE
61562002-02-23 Richard Earnshaw <rearnsha@arm.com>
6157
6158 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
6159 (arm_linux_push_arguments): Likewise.
6160 (arm_linux_init_abi): Register them. Also register linux-specific
6161 call_dummy_words.
6162 (find_minsym_and_objfile): Use strcmp, not STREQ.
6163 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
6164 (arm_linux_call_dummy_words): Delete declaration.
6165 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
6166 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
6167 declarations.
6168 (LOWEST_PC): Delete.
6169
3ab13650
PS
61702002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6171
6172 * maint.c (print_section_info): Do not prepend `0x' to filepos
6173 output, it will be handled by local_hex_string_custom.
6174
19d3fc80 61752002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
6176
6177 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
6178 (store_newfpe_double, store_newfpe_extended, store_fpregister)
6179 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
6180
d85a5daf
JB
61812002-02-22 Jim Blandy <jimb@redhat.com>
6182
6183 Indicate that the bcache functions don't change the strings
6184 they're passed.
6185 * bcache.h (bcache, hash): Add `const' keywords to declarations.
6186 * bcache.c (bcache, hash): Add `const' keywords to definitions.
6187
eeb25b8a
PM
61882002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
6189
6190 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
6191
6badb179
CF
61922002-02-21 Christopher Faylor <cgf@redhat.com>
6193
6194 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
6195 find the complete path to a loaded DLL.
6196
e8717518
FF
61972002-02-21 Fred Fish <fnf@redhat.com>
6198
6199 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
6200 that marks the end of the range of a function, enter a line number
6201 entry that has a line number of zero and a PC offset that matches
6202 the end of the function. This starts a range of PC's for which no
6203 line number information is known.
6204 * symtab.c (find_pc_sect_line): If our best fit is in a range of
6205 PC's for which no line number info is found (line number is zero)
6206 then we didn't find any valid line information.
6207 * symtab.h: Document use of zero line number entry.
6208
9abe5450
EZ
62092002-02-21 Elena Zannoni <ezannoni@redhat.com>
6210
6211 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
6212 (have_ptrace_getvrregs): Define for run time checks.
6213 (gdb_vrregset_t): New type for Altivec register handling.
6214 (fetch_register, store_register): Fetch/store altivec register
6215 when needed.
6216 (fetch_altivec_register, store_altivec_register): New functions.
6217 (supply_vrregset, fill_vrregset): New functions.
6218 (fetch_altivec_registers, store_altivec_registers): New functions.
6219 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
6220 registers as well.
6221
aaa38bb5
AJ
62222002-02-21 Jiri Smid <smid@suse.cz>
6223
6224 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
6225
b34db576
RE
62262002-02-21 Richard Earnshaw <rearnsha@arm.com>
6227
6228 * Makefile.in (armnbsd-nat.o): Update dependencies.
6229 * armnbsd-nat.c (supply_gregset): New function. Common code to
6230 supply the integer register set.
6231 (supply_fparegset): New function. Similar for FPA registers.
6232 (fetch_regs, fetch_fp_regs): Use them.
6233 (fetch_core_registers): Likewise.
6234 (fetch_elfcore_registers): New function.
6235 (arm_netbsd_elfcore_fns): New core-file type specification.
6236 (_initialize_arm_netbsd_nat): Register it.
6237
3e56fc4b
RE
62382002-02-21 Richard Earnshaw <rearnsha@arm.com>
6239
6240 * armnbsd-nat.c: Include gdbcore.h.
6241 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
6242 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
6243 'void' to declaration, to shut up ARI.
6244 (fetch_core_registers): Make static. Rewrite using supply_register.
6245 (arm_netbsd_core_fns): New core-file type specification.
6246 (_initialize_arm_netbsd_nat): New function.
6247
097f6b0b
CF
62482002-02-21 Christopher Faylor <cgf@redhat.com>
6249
6250 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
6251 value.
6252
c914e0cc
CF
62532002-02-20 Christopher Faylor <cgf@redhat.com>
6254
6255 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
6256 fails.
6257
385fa495
DJ
62582002-02-20 Daniel Jacobowitz <drow@mvista.com>
6259
6260 * jv-exp.y (parse_number): Change type of implicit longs
6261 to builtin_type_uint64.
6262
e5f1222d
DJ
62632002-02-20 Daniel Jacobowitz <drow@mvista.com>
6264
6265 * gdbserver/linux-low.c (mywait): Change argument to waitpid
6266 to be an integer instead of a `union wait'.
6267
75c9abc6
DJ
62682002-02-20 Daniel Jacobowitz <drow@mvista.com>
6269
6270 * mips-linux-nat.c: Call the operating system GNU/Linux.
6271 * mips-linux-tdep.c: Likewise.
6272 * mips-tdep.c: Likewise.
6273
551792a5
DJ
62742002-02-20 Daniel Jacobowitz <drow@mvista.com>
6275
6276 Fix PR gdb/265.
6277 * jv-exp.y (parse_number): Handle 64-bit integers.
6278
ee6e2b82
DJ
62792002-02-20 Daniel Jacobowitz <drow@mvista.com>
6280
6281 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
6282 AC_STDC_HEADERS to AC_HEADER_STDC.
6283 * gdbserver/configure: Regenerated.
6284
a48442a0
RE
62852002-02-20 Richard Earnshaw <rearnsha@arm.com>
6286
6287 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
6288 is defined.
6289 * sparc-tdep.c (get_longjmp_target): Likewise.
6290
fe419ffc
RE
62912002-02-20 Richard Earnshaw <rearnsha@arm.com>
6292
6293 * News: Add news about ARM and Multi-arch. Mention the new target
6294 arm*-*-netbsd*.
6295
5832ed7e
JB
62962002-02-19 Jim Blandy <jimb@redhat.com>
6297
6298 * stabsread.c (error_type_complaint): Improve error message.
6299
84563040
DJ
63002002-02-19 Daniel Jacobowitz <drow@mvista.com>
6301
6302 * gdbserver/README: Update documentation.
6303 * gdbserver/configure.in: Update configury to match documentation.
6304 * gdbserver/Makefile.in: Likewise.
6305 * gdbserver/configure: Regenerated.
6306 * gdbserver/aclocal.m4: New file, generated by aclocal.
6307 * gdbserver/config.in: New file, generated by autoheader.
6308
375fd65b
RE
63092002-02-19 Richard Earnshaw <rearnsha@arm.com>
6310
6311 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
6312 armnbsd-nat.c.
6313
08216dd7
RE
63142002-02-19 Richard Earnshaw <rearnsha@arm.com>
6315
6316 * arm-tdep.h (enum arm_float_model): New enum.
6317 (struct gdbarch_tdep): Add fp_model.
6318 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
6319 up floating-point conversions until we know the floating-point model
6320 in use by the inferior. Don't complain about being unable to
6321 determine the ABI of the inferior when we don't have one.
6322 (arm_extract_return_value): Support different floating-point models.
6323 (arm_store_return_value): Likewise.
aaa38bb5 6324 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
6325 ARM_FLOAT_SOFT.
6326 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
6327
65d6d66a
PS
63282002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6329
6330 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
6331 of ``current_gdbarch''.
6332
47221191
RE
63332002-02-19 Richard Earnshaw <rearnsha@arm.com>
6334
6335 * armnbsd-nat.c : ANSIfy all function declarations.
6336 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
6337 (fetch_inferior_registers): Re-implement in terms of above.
6338 (store_register, store_regs, store_fp_register, store_fp_regs): New.
6339 (store_inferior_registers): Re-implement in terms of above.
6340
fdf39c9a
RE
63412002-02-19 Richard Earnshaw <rearnsha@arm.com>
6342
aaa38bb5 6343 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
6344 kernel.
6345 * arm-linux-tdep.c: Likewise.
6346 * config/arm/tm-linux.h: Likewise.
6347
93247f88
RE
63482002-02-19 Richard Earnshaw <rearnsha@arm.com>
6349
6350 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
6351 * config/arm/nbsd.mt (TM_FILE): Delete.
6352 * config/arm/tm-nbsd.h: Delete.
6353
d7b486e7
RE
63542002-02-19 Richard Earnshaw <rearnsha@arm.com>
6355
6356 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
6357 Initialize CALL_DUMMY_LENGTH.
6358
41d39a95
RE
63592002-02-19 Richard Earnshaw <rearnsha@arm.com>
6360
6361 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
6362 function.
6363 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 6364 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
6365 defines one thing and that is incorrect for this port.
6366 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
6367
e1195560
PM
63682002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6369
6370 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
6371
c1748f97
PM
63722002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6373
6374 * win32-nat.c (display_selector): New function. Displays information
6375 about the information returned by GetThreadSelectorEntry API function.
6376 (display_selectors): New function. Displays the infomation of
6377 the selector given as argument, or of CS, DS ans FS selectors
6378 if no argument is given.
6379 ( _initialize_inftarg): Add "w32" as info prefix command.
6380 Add "info w32 selector" as command calling display_selectors.
6381
e41e6bbf
PM
63822002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
6383
6384 * i386-tdep.c (get_longjmp_target): Fix compilation failure
6385 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
6386 if not defined.
6387
0d3a9f48
RE
63882002-02-18 Richard Earnshaw <rearnsha@arm.com>
6389
6390 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
6391
3fb4b924
RE
63922002-02-18 Richard Earnshaw <rearnsha@arm.com>
6393
6394 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
6395 (arm_fix_call_dummy): Call it.
6396 (arm_call_dummy_breakpoint_offset): Delete.
6397 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
6398 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6399
7f55af32
AC
64002002-02-18 Andrew Cagney <ac131313@redhat.com>
6401
6402 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
6403 Default to func_frame_chain_valid.
6404 * gdbarch.h, gdbarch.c: Re-generate.
6405 * frame.h (FRAME_CHAIN_VALID): Delete definition.
6406
05f13b9c
EZ
64072002-02-18 Elena Zannoni <ezannoni@redhat.com>
6408
6409 * ppc-linux-nat.c: Update copyright.
6410 (fetch_register, store_register): Add tid parameter, don't compute
6411 tid here.
6412 (fetch_ppc_registers, store_ppc_registers): Add tid
6413 parameter. Pass it along to callees.
6414 (fetch_inferior_registers, store_inferior_registers): Compute tid
6415 here, and pass it to calleed functions.
6416 (fill_gregset, supply_fpregset): Clean up formatting.
6417
d7afb4c9
RE
64182002-02-18 Richard Earnshaw <rearnsha@arm.com>
6419
6420 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
6421 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
6422
9df628e0
RE
64232002-02-18 Richard Earnshaw <rearnsha@arm.com>
6424
6425 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
6426 * gdbarch.c gdbarch.h: Regenerate.
6427 * breakpoint.c (create_longjmp_breakpoint): Always compile this
6428 function.
6429 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
6430 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
6431 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
6432
6433 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
6434 * arm-tdep.c (arm_get_longjmp_target): New function.
6435 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
6436 this to a positive value register arm_get_longjmp_target as the
6437 longjmp handler.
6438 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
6439 (arm_linux_init_abi): Set up longjmp description in tdep.
6440 * armnbsd-nat.c (get_longjmp_target): Delete.
6441 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
6442 description in tdep.
6443 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
6444 (get_longjmp_target): Delete declaration.
6445 (GET_LONGJMP_TARGET): Delete.
6446 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
6447 (GET_LONGJMP_TARGET): Delete.
6448
57bc8964
KB
64492002-02-17 Kevin Buettner <kevinb@redhat.com>
6450
6451 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
6452 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
6453 of ``current_gdbarch''.
6454
83d31a92
TT
64552002-02-17 Tom Tromey <tromey@redhat.com>
6456
6457 * cli/cli-cmds.c (compare_strings): New function.
6458 (complete_command): Only print each unique item once.
6459 * completer.h (complete_line): Declare.
6460 * completer.c (complete_line): New function.
6461 (line_completion_function): Use it.
6462
17ef5d92
AC
64632002-02-16 Andrew Cagney <ac131313@redhat.com>
6464
6465 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
6466 * gdbarch.h, gdbarch.c: Re-generate.
6467
491b8946
DJ
64682002-02-16 Daniel Jacobowitz <drow@mvista.com>
6469
6470 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
6471
64722002-02-16 Daniel Jacobowitz <drow@mvista.com>
6473
6474 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6475 * valops.c (value_arg_coerce): Don't take the address of a reference
6476 to convert an argument to a reference.
6477
dfe7f3ac
CF
64782002-02-15 Christopher Faylor <cgf@redhat.com>
6479
6480 * win32-nat.c (get_image_name): New function.
6481 (handle_load_dll): Use get_image_name function.
6482 (get_child_debug_event): Avoid registering debug events until possibly
6483 execed process is started.
6484 (child_create_inferior): Allow invocation via shell so that command
6485 line redirection, etc. works ok.
6486 (_initialize_inftarg): Add new command: "set shell" to control whether
6487 a shell is used to start a process.
6488
1d33e73a
DJ
64892002-02-15 Daniel Jacobowitz <drow@mvista.com>
6490
6491 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
6492 instead of find_register_by_number.
6493 (cannot_store_register): Likewise.
6494
48cd0caa
PM
64952002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
6496
aaa38bb5 6497 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
6498 fprintf_unfiltered (gdb_stderr, ...).
6499
8656e7d8
DJ
65002002-02-15 Daniel Jacobowitz <drow@mvista.com>
6501
6502 * gdbserver/gdbserver.1: Document --attach.
6503
66e810cd
RE
65042002-02-15 Richard Earnshaw <rearnsha@arm.com>
6505
6506 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
6507 descriptions.
6508 * arm-tdep.c (arm_default_arm_le_breakpoint)
6509 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
6510 (arm_default_thumb_be_breakpoint): New. Initialize them from
6511 traditional breakpoint defines.
6512 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
6513 (arm_gdbarch_init): Initialize new breakpoint variables.
6514 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
6515 (arm_linux_init_abi): Initialize linux-specific breakpoint.
6516 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
6517 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
6518 code out to ...
6519 (arm_netbsd_init_abi_common): ... here; new function.
6520 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
6521 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
6522 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
6523 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
6524
97e03143
RE
65252002-02-15 Richard Earnshaw <rearnsha@arm.com>
6526
6527 * arm-tdep.h (enum arm_abi): New enum.
6528 (struct gdbarch_tdep): New structure.
6529 (LOWEST_PC): Provide a default.
6530 (arm_gdbarch_register_os_abi): Declare new function.
6531 * arm-tdep.c (arm_abi_names): New array.
6532 (process_note_abi_tag_sections): New function.
6533 (get_elfosabi): New function.
6534 (arm_gdbarch_register_os_abi): New function.
6535 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
6536 support for that ABI has been built in, then call the appropriate
6537 configuration routine. Use gdbarch_num_regs() to get the number
6538 of registers.
6539 (arm_dump_tdep): New function.
6540 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
6541 place-holder functions.
6542 (_initialize_arm_tdep): Register them.
6543 * config/arm/tm-arm.h (LOWEST_PC): Delete.
6544
6545 * armnbsd-tdep.c: New file.
6546 * Makefile.in (armnbsd-tdep.o): Add dependencies.
6547 * config/arm/nbsd.mt (TDEPFILES): Add it.
6548 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
6549
6550 * armnbsd-nat.c: Include regcache.h.
6551 * Makefile.in (armnbsd-nat.o): Update dependency list.
6552
6553 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
6554
ad68be46
DJ
65552002-02-14 Daniel Jacobowitz <drow@mvista.com>
6556
6557 * gdbserver/Makefile.in: Fix typos in target rules.
6558
003d6d1d
DJ
65592002-02-14 Daniel Jacobowitz <drow@mvista.com>
6560
aaa38bb5 6561 Fix part of PR gdb/267.
003d6d1d
DJ
6562 * linespec.c (find_methods): Handle constructors specially for now.
6563
6b230f1b
CV
65642002-02-14 Corinna Vinschen <vinschen@redhat.com>
6565
6566 * arm-tdep.c (arm_push_arguments): Eliminate special float type
6567 handling.
6568 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
6569 standard_coerce_float_to_double().
6570
1ea98d12
CF
65712002-02-14 Christopher Faylor <cgf@redhat.com>
6572
6573 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
6574 GDBINIT_FILENAME.
6575
dd47e6fd
EZ
65762002-02-14 Elena Zannoni <ezannoni@redhat.com>
6577
6578 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
6579 find_variant_by_name, because it confuses the multiarch
6580 framework. Return NULL if there isn't an architecture with the
6581 user supplied name, instead of forcing a different one without
6582 recording the change with the multiarch machinery.
6583 (find_variant_by_name): Delete.
6584
d7e39b9e
PS
65852002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6586
6587 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
6588 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
6589
76e42a4f
MH
65902002-02-13 Martin M. Hunt <hunt@redhat.com>
6591
aaa38bb5 6592 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
6593 print_frame_info_listing_hook, set current_source_symtab.
6594
0a30fbc4
DJ
65952002-02-14 Daniel Jacobowitz <drow@mvista.com>
6596
6597 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
6598 and remove unused $(INCLUDE_DIR).
6599 Add regcache.c to OBS.
6600 Add generated register protocol files to clean target.
6601 Update dependencies for new objects, obsolete old target code.
6602
6603 * gdbserver/linux-low.c: Remove all platform-specific code to
6604 new files. Remove various dead code. Update to use regcache
6605 functionality.
6606 * gdbserver/remote-utils.c (fromhex): Add return statement
6607 to quiet warning.
6608 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
6609 constant.
6610 (input_interrupt): Add integer parameter to match prototype
6611 of a signal handler.
6612 (outreg): Use register_data ().
6613 (prepare_resume_reply): Use gdbserver_expedite_regs.
6614 * gdbserver/server.c (main): Dynamically allocate own_buf because
6615 PBUFSIZ is no longer constant. Use registers_to_string () and
6616 registers_from_string ().
6617 * gdbserver/server.h: No longer include "defs.h". Add prototypes
6618 for error (), fatal (), and warning (). Update definition of
6619 PBUFSIZ to use regcache functionality. Add include guard.
6620 * gdbserver/utils.c (fatal): Add missing ``const''.
6621 (warning): New function.
6622
6623 * regformats/regdat.sh: Include "regcache.h" in generated files.
6624 Provide init_registers () function.
6625 * regformats/regdef.h: Add prototype for set_register_cache ().
6626 Add include guard.
6627
6628 * gdbserver/linux-arm-low.c: New file.
6629 * gdbserver/linux-i386-low.c: New file.
6630 * gdbserver/linux-ia64-low.c: New file.
6631 * gdbserver/linux-m68k-low.c: New file.
6632 * gdbserver/linux-mips-low.c: New file.
6633 * gdbserver/linux-ppc-low.c: New file.
6634 * gdbserver/linux-sh-low.c: New file.
6635
6636 * gdbserver/regcache.c: New file.
6637 * gdbserver/regcache.h: New file.
6638
6639 * gdbserver/low-linux.c: Removed obsolete file.
6640
4cc841d0
DJ
66412002-02-14 Daniel Jacobowitz <drow@mvista.com>
6642
6643 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
6644 * config/i386/linux.mt: Likewise.
6645 * config/ia64/linux.mt: Likewise.
6646 * config/m68k/linux.mh: Likewise.
6647 * config/powerpc/linux.mh: Likewise.
6648 * config/mips/linux.mt: Likewise.
6649
6650 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
6651
6652 * config/i386/i386lynx.mh: Mark gdbserver variables
6653 as (currently) obsolete for this target.
6654 * config/i386/nbsd.mt: Likewise.
6655 * config/i386/nbsdelf.mt: Likewise.
6656 * config/m32r/m32r.mt: Likewise.
6657 * config/m68k/m68klynx.mh: Likewise.
6658 * config/m68k/nbsd.mt: Likewise.
6659 * config/m68k/sun3os4.mh: Likewise.
6660 * config/mips/vr5000.mt: Likewise.
6661 * config/ns32k/nbsd.mt: Likewise.
6662 * config/pa/hppabsd.mh: Likewise.
6663 * config/pa/hppaosf.mh: Likewise.
6664 * config/powerpc/nbsd.mt: Likewise.
6665 * config/rs6000/rs6000lynx.mh: Likewise.
6666 * config/s390/s390.mt: Likewise.
6667 * config/s390/s390x.mt: Likewise.
6668 * config/sparc/sparclynx.mh: Likewise.
6669 * config/sparc/sun4os4.mh: Likewise.
6670 * config/i386/x86-64linux.mt: Likewise.
6671 * config/sparc/linux.mh: Likewise.
6672
a85f51e7
DJ
66732002-02-14 Daniel Jacobowitz <drow@mvista.com>
6674
6675 * configure.tgt: Configure gdbserver only for known working
6676 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
6677 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
6678 SUBDIRS if it is configured. Update comment for ${nativefile}.
6679 * configure: Regenerated.
6680
65554fef
MS
66812002-02-13 Michael Snyder <msnyder@redhat.com>
6682
670a52db
MS
6683 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
6684
6dbdc4a3
MS
6685 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
6686 (default_gcore_mach): Just return 0, work around a problem in bfd.
6687 (default_gcore_target): OK to return NULL if exec_bfd is null.
6688 (make_mem_sec): Use a cast, avoid a warning.
6689
6690 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 6691 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
6692 sizeof (host pointer) != sizeof (target pointer)).
6693 (procfs_make_note_section): Avoid overflow in psargs string.
6694
aaa38bb5 6695 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
6696 implementation return an error.
6697
66982002-02-13 Rodney Brown <rbrown64@csc.com.au>
6699
6700 * procfs.c (procfs_make_note_section): Provide a default definition
6701 (for alpha-dec-osf4.0f). Fix typos.
6702
1e4d76e7
EZ
67032002-02-13 Elena Zannoni <ezannoni@redhat.com>
6704
6705 * linux-proc.c: Add include of regcache.h.
6706 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
6707
b6d1a1d5
AC
67082002-02-13 Andrew Cagney <ac131313@redhat.com>
6709
6710 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
6711 * memattr.c (create_mem_region): Disallow useless empty region.
6712 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 6713 non-overlapping.
b6d1a1d5 6714
6c6ea35e
MC
67152002-02-13 Michael Chastain <mec@shout.net>
6716
6717 * defs.h: Kill CONST_PTR.
6718 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
6719 * c-lang.c (c_builtin_types): Likewise.
6720 * ch-lang.c (ch_builtin_types): Likewise.
6721 * f-lang.c (f_builtin_types): Likewise.
6722 * language.c (unknown_builtin_types): Likewise.
6723 * m2-lang.c (m2_builtin_types): Likewise.
6724 * p-lang.c (pascal_builtin_types): Likewise.
6725 * scm-lang.c (c_builtin_types): Likewise.
6726
3e0b0f48
KS
67272002-02-13 Keith Seitz <keiths@redhat.com>
6728
6729 * arm-tdep.h (arm_get_next_pc): Add declaration.
6730
67255d04
RE
67312002-02-13 Richard Earnshaw <rearnsha@arm.com>
6732
6733 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
6734 with other related struct-returning functions.
6735 (arm_extract_struct_value_address): New function.
6736 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
6737 initialize float_format, double_format and long_double_format as
6738 appropriate to the endianness of the target.
6739 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
6740 (arm_use_struct_convention): Delete declaration.
6741 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
6742
079777f6
KS
67432002-02-13 Keith Seitz <keiths@redhat.com>
6744
6745 * defs.h (core_addr_to_string_nz): New function.
6746
34588f23
MK
67472002-02-13 Mark Kettenis <kettenis@gnu.org>
6748
6749 Apply missing bits of 2002-01-15 patch.
6750 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
6751 (fill_fpregset): Use i387_fill_fsave.
6752
49b563f9
KS
67532002-02-12 Keith Seitz <keiths@redhat.com>
6754
49b563f9
KS
6755 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
6756 (core_addr_to_string_nz): New function.
6757
aeb98c60
RE
67582002-02-11 Richard Earnshaw <rearnsha@arm.com>
6759
6760 * arm-linux-nat.c: Really include arm-tdep.h.
6761 * config/arm/tm-linux.h (struct type, struct value): Declare.
6762
65554fef
MS
67632002-02-11 Michael Snyder <msnyder@redhat.com>
6764
6765 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
6766 (gcore section): Ifdef for Solaris and Unixware only.
6767 (procfs_do_thread_registers): Unixware needs one lwpstatus
6768 per thread (not one prstatus or pstatus).
6769 (procfs_make_note_section): Iterate only over kernel threads (lwps),
6770 not over all gdb threads. For unixware, call elfcore_write_pstatus
6771 once before iterating over threads.
6772
34e8f22d
RE
67732002-02-11 Richard Earnshaw <rearnsha@arm.com>
6774
6775 * arm-tdep.h: New file.
6776 * arm-tdep.c: Include arm-tdep.h.
6777 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6778 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6779 (arm_print_float_info, arm_register_type, convert_to_extended)
6780 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6781 (arm_extract_return_value, arm_register_name): Make static.
6782 (arm_software_single_step): Similarly. Fix types in declaration.
6783 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
6784 (arm_store_return_value, arm_store_struct_return): New functions.
6785 (arm_gdbarch_init): Register the above functions. Also register
6786 call_dummy_start_offset, sizeof_call_dummy_words,
6787 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
6788 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 6789 max_register_virtual_size, register_size. Set up
34e8f22d
RE
6790 prologue_cache.saved_regs here, rather than ...
6791 (_initialize_arm_tdep): ... here.
6792 * config/arm/tm-arm.h (struct type, struct value): Delete forward
6793 declarations.
6794 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6795 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6796 (arm_print_float_info, arm_register_type, convert_to_extended)
6797 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6798 (arm_extract_return_value, arm_register_name): Delete declarations.
6799 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
6800 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
6801 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
6802 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
6803 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6804 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
6805 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
6806 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
6807 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
6808 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
6809 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
6810 (arm_get_next_pc): No-longer static -- these are needed by the RDI
6811 interface.
6812 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
6813 * remote-rdi.c remote-rdp.c: Likewise.
6814 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
6815 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
6816 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
6817 definition.
6818
6819 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
6820 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
6821 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
6822 from non-ARM_ prefixed definitions.
6823 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
6824 all uses of above.
6825 * remote-rdi.c remote-rdp.c: Likewise.
6826 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
6827
148754e5
RE
68282002-02-11 Richard Earnshaw <rearnsha@arm.com>
6829
6830 * arm-tdep.c (arm_frameless_function_invocation)
6831 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
6832 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
6833 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
6834 (arm_pop_frame, arm_get_next_pc): Make static.
6835 (arm_gdbarch_init): Register above in gdbarch structure.
6836 (arm_read_fp): Renamed from arm_target_read_fp.
6837 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
6838 * config/arm/tm-arm.h (arm_frameless_function_invocation)
6839 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
6840 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
6841 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
6842 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
6843 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
6844 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
6845 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
6846 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
6847 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 6848
434d2d4f
DJ
68492002-02-10 Daniel Jacobowitz <drow@mvista.com>
6850
6851 * symtab.c (compare_search_syms): New function.
6852 (sort_search_symbols): New function.
6853 (search_symbols): Sort symbols after searching rather than
6854 before.
6855
55241689
AC
68562002-02-10 Andrew Cagney <ac131313@redhat.com>
6857
6858 * NEWS: Linux -> GNU/Linux.
6859
028c194b
AC
68602002-02-10 Andrew Cagney <ac131313@redhat.com>
6861
6862 * gdbarch.sh: For for level one methods, disallow a definition
6863 when partially multi-arched. Add comments explaining rationale.
6864 * gdbarch.h: Re-generate.
6865
6acf50cd
AC
68662002-02-10 Andrew Cagney <ac131313@redhat.com>
6867
6868 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
6869 multi-arch partial.
aaa38bb5 6870
50248794
AC
68712002-02-10 Andrew Cagney <ac131313@redhat.com>
6872
6873 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
6874 field. Use diff -u.
6875 * gdbarch.c: Re-generate.
6876
c30e0066
AC
68772002-02-10 Andrew Cagney <ac131313@redhat.com>
6878
9b56c5f3 6879 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
6880 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
6881 partial.
6882
6e6d6484
AC
68832002-02-10 Andrew Cagney <ac131313@redhat.com>
6884
6885 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
6886 multi-arch partial.
6887 (PUSH_ARGUMENTS): Switch to using predefault.
6888 * gdbarch.c: Regenerate.
6889
c203844d
AC
68902002-02-10 Andrew Cagney <ac131313@redhat.com>
6891
6892 * valops.c (PUSH_ARGUMENTS): Delete definition.
6893 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
6894 partial. Default to default_push_arguments.
6895 * gdbarch.h, gdbarch.c: Regenerate.
6896
b5a2688f
AC
68972002-02-09 Andrew Cagney <ac131313@redhat.com>
6898
6899 * defs.h (throw_exception): Rename return_to_top_level. Update
6900 comments.
6901 * utils.c (error_stream, internal_verror, quit): Ditto.
6902 * top.c (throw_exception, catcher): Ditto.
6903 * sparclet-rom.c (sparclet_load): Ditto.
6904 * remote.c (interrupt_query, minitelnet): Ditto.
6905 * remote-sds.c (interrupt_query): Ditto.
6906 * remote-mips.c (mips_error, mips_kill): Ditto.
6907 * ocd.c (interrupt_query): Ditto.
6908 * monitor.c (monitor_interrupt_query): Ditto.
6909 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
6910 * target.h: Update comment.
aaa38bb5 6911
b5a2688f 6912 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 6913
2fa5c1e0
AC
69142002-02-09 Andrew Cagney <ac131313@redhat.com>
6915
6916 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
6917 default_double_format.
6918 * gdbarch.h, gdbarch.c: Re-generate.
6919 * findvar.c (floatformat_unknown): Delete variable definition.
6920 * doublest.h (floatformat_unknown): Delete variable declaration.
6921
da966255
JB
69222002-02-09 Jim Blandy <jimb@redhat.com>
6923
6924 * stabsread.c (read_type): Add code to parse Sun's syntax for
6925 prototyped function types.
6926
123a4891
AC
69272002-02-09 Andrew Cagney <ac131313@redhat.com>
6928
6929 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
6930 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
6931
fb39c8f3
PS
69322002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6933
6934 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
6935 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
6936 now _initialize_xcoffsolib gets called again and overrides the
6937 commands from solib.c in a native configuration.
6938
0b87a11d
MK
69392002-02-09 Mark Kettenis <kettenis@gnu.org>
6940
6941 * doublest.c (store_typed_floating): Don't try to return a value.
6942 Fixes PR gdb/290.
6943
bdc2fc72
JB
69442002-02-08 Jim Blandy <jimb@redhat.com>
6945
6946 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
6947 is prototyped and has no arguments, print its argument list as
6948 `(void)'.
6949
da69bbcf
CD
69502002-02-08 Chris Demetriou <cgd@broadcom.com>
6951
6952 * MAINTAINERS (write-after-approval): Add myself.
6953 (paper-trail): I've escaped!
aaa38bb5 6954
b69571f5
CF
69552002-02-08 Christopher Faylor <cgf@redhat.com>
6956
6957 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
6958 changes.
6959 (_initialize_check_for_gdb_ini): Ditto.
6960
f6871398
MH
69612002-02-08 Martin M. Hunt <hunt@redhat.com>
6962
6963 * win32-nat.c (cygwin_pid_to_str): Fix typo.
6964 xaprintf -> xasprintf.
6965
4e52d31c
PM
69662002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
6967
6968 * win32-nat.c: Remove use of printf and sprintf functions.
6969
39bbf761
RE
69702002-02-08 Richard Earnshaw <rearnsha@arm.com>
6971
6972 * arm-tdep.c (arm_frame_chain_valid): Make static.
6973 (arm_push_arguments): Likewise.
6974 (arm_gdbarch_init): New function.
6975 (_initialize_arm_tdep): Call it.
6976 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
6977 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
6978 (FRAME_CHAIN_VALID): Delete.
6979 (arm_frame_chain_valid): Delete declaration.
6980 (PUSH_ARGUMENTS): Delete.
6981 (arm_push_arguments): Delete declaration.
6982 (CALL_DUMMY_P): Delete.
6983
9c9532c9
CV
69842002-02-08 Andrew Cagney <ac131313@redhat.com>
6985 Corinna Vinschen <vinschen@redhat.com>
6986
6987 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
6988 on builtin float types.
6989
4e8f7a8b
DJ
69902002-02-08 Daniel Jacobowitz <drow@mvista.com>
6991
6992 * utils.c: Include <curses.h> before "bfd.h".
6993 * tui/tui-hooks.c: Likewise.
6994 * tui/tui.c: Likewise.
6995 * tui/tuiCommand.c: Likewise.
6996 * tui/tuiData.c: Likewise.
6997 * tui/tuiDataWin.c: Likewise.
6998 * tui/tuiDisassem.c: Likewise.
6999 * tui/tuiGeneralWin.c: Likewise.
7000 * tui/tuiIO.c: Likewise.
7001 * tui/tuiLayout.c: Likewise.
7002 * tui/tuiRegs.c: Likewise.
7003 * tui/tuiSource.c: Likewise.
7004 * tui/tuiSourceWin.c: Likewise.
7005 * tui/tuiStack.c: Likewise.
7006 * tui/tuiWin.c: Likewise.
7007
cd4bffcf
EZ
70082002-02-07 Elena Zannoni <ezannoni@redhat.com>
7009
7010 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
7011 to include space for pseudoregs as well. Update loops accordingly.
7012 (sh_fp_frame_init_saved_regs): Ditto.
7013 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
7014
26806ce2
AC
70152002-02-07 Andrew Cagney <ac131313@redhat.com>
7016
7017 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
7018 Add Richard Earnshaw to Arm maintainers.
7019
97fdab62
AC
70202002-02-07 Andrew Cagney <ac131313@redhat.com>
7021
a6b98203
AC
7022 * defs.h (warning_begin): Delete declaration.
7023
97fdab62
AC
7024 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
7025 Delete macro.
7026
78b29b40
MS
70272002-02-07 Michael Snyder <msnyder@redhat.com>
7028
aaa38bb5 7029 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
7030 Logic bug, remove misplaced else.
7031
d8849953
KD
70322002-02-07 Klee Dienes <klee@apple.com>
7033
7034 * fork-inferior.c (fork_inferior): Add '!' to the list of
7035 characters that need to be quoted when building a string for the
7036 shell. Quote '!' specifically with a backslash, since CSH chokes
7037 when trying to evaluate "str!str".
aaa38bb5 7038
095778a0
NC
70392002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
7040
7041 * rdi-share/host.h: Only provide a typedef for bool if it is not
7042 defined.
7043
1900040c
MS
70442002-02-04 Michael Snyder <msnyder@redhat.com>
7045
7046 * breakpoint.h (enum bptype): Add new overlay event bp type.
7047 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 7048
1900040c
MS
7049 * breakpoint.c (create_internal_breakpoint): New function.
7050 (internal_breakpoint_number): Moved into create_internal_breakpoint.
7051 (create_longjmp_breakpoint): Use create_internal_breakpoint.
7052 (create_thread_event_breakpoint): Ditto.
7053 (create_solib_event_breakpoint): Ditto.
7054 (create_overlay_event_breakpoint): New function.
7055 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
7056 (update_breakpoints_after_exec): Delete and re-initialize
7057 overlay event breakpoints after an exec. Add FIXME comment
7058 about longjmp breakpoint.
7059 (print_it_typical): Ignore overlay event breakpoints.
7060 (print_one_breakpoint): Ditto.
7061 (mention): Ditto.
7062 (bpstat_what): Do not stop for overlay event breakpoints.
7063 (delete_breakpoint): Don't delete overlay event breakpoints.
7064 (breakpoint_re_set_one): Delete the overlay event breakpoint.
7065 (breakpoint_re_set): Re-create overlay event breakpoint.
7066
7067 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
7068 (overlay_manual_command): Disable overlay breakpoints.
7069 (overlay_off_command): Disable overlay breakpoints.
7070
082fc60d
RE
70712002-02-06 Richard Earnshaw <rearnsha@arm.com>
7072
7073 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
7074 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
7075 to here from config/tm-arm.h.
7076 (coff_sym_is_thumb): Make static.
7077 (arm_elf_make_msymbol_special): New function.
7078 (arm_coff_make_msymbol_special): New function.
7079 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
7080 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
7081 (coff_sym_is_thumb): Delete declaration.
7082 (arm_elf_make_msymbol_special): Declare.
7083 (arm_coff_make_msymbol_special): Declare.
7084 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
7085 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
7086
039c5766
RE
70872002-02-06 Richard Earnshaw <rearnsha@arm.com>
7088
7089 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
7090
70912002-02-06 Richard Earnshaw <rearnsha@arm.com>
7092
7093 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
7094 * gdbarch.c gdbarch.h: Regenerate.
7095 * arch-utils.c (default_print_float_info): New function.
7096 * arch-utils.h (default_print_float_info): Prototype it.
7097 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
7098 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
7099 (PRINT_FLOAT_INFO): Document it.
7100
7101 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
7102 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
7103 (PRINT_FLOAT_INFO): Define.
7104
58fa08f0
PM
71052002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
7106
aaa38bb5 7107 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
7108 Add typecast to sprintf argument to suppress a warning.
7109
7393af7c
PM
71102002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
7111
58fa08f0 7112 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
7113 to allow easier handling of pass state.
7114 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
7115 that gives exception name and address.
7116 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 7117 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 7118 exceptions added.
aaa38bb5
AJ
7119 (child_continue): Correctly report continue_status.
7120 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 7121 TARGET_SIGNAL_0 (new default value).
aaa38bb5 7122 (child_resume): consider sig argument passed to decide if
7393af7c
PM
7123 the exception should be passed to debuggee or not.
7124
6af4589c
MS
71252002-02-05 Michael Snyder <msnyder@redhat.com>
7126
7127 * regcache.c (fetch_register): Call target_fetch_register
7128 only if we don't call FETCH_PSEUDO_REGISTER.
7129 (store_register): Call target_store_register only if we
7130 don't call STORE_PSEUDO_REGISTER.
7131
a2cf933a
EZ
71322002-02-05 Elena Zannoni <ezannoni@redhat.com>
7133
7134 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
7135 ELF_MAKE_MSYMBOL_SPECIAL.
7136 * gdbarch.c, gdbarch.h: Regenerate.
7137 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 7138 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
7139 * elfread.c (elf_symtab_read): Compile use of
7140 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
7141 multiarched.
7142 * coffread.c (coff_symtab_read): Ditto, for
7143 COFF_MAKE_MSYMBOL_SPECIAL.
7144
6bb7be43
JB
71452002-02-05 Jim Blandy <jimb@redhat.com>
7146
7147 * solib-svr4.c (svr4_truncate_ptr): New function.
7148 (svr4_relocate_section_addresses): Do the address arithmetic with
7149 the appropriate truncation for target addresses, even when
7150 CORE_ADDR is larger than a target address.
7151
e18651ec
DJ
71522002-02-05 Daniel Jacobowitz <drow@mvista.com>
7153
7154 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
7155 to (int *).
7156
6b2725be
DJ
71572002-02-05 Daniel Jacobowitz <drow@mvista.com>
7158
7159 * gdbserver/linux-low.c (kill_inferior): Remove commented out
7160 code.
7161
fca9e603
DJ
71622002-02-05 Daniel Jacobowitz <drow@mvista.com>
7163
7164 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
7165
6c537a52
DJ
71662002-02-05 Daniel Jacobowitz <drow@mvista.com>
7167
7168 * gdbserver/linux-low.c: Remove unused include files.
7169
d844cde6
DJ
71702002-02-05 Daniel Jacobowitz <drow@mvista.com>
7171
7172 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
7173 (read_inferior_memory): Use it.
7174 (write_inferior_memory): Likewise.
7175
d07c63e7
DJ
71762002-02-05 Daniel Jacobowitz <drow@mvista.com>
7177
7178 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
7179 grubbing through sys_errlist.
7180
da6d8c04
DJ
71812002-02-05 Daniel Jacobowitz <drow@mvista.com>
7182
7183 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
7184
5b421780
PM
71852002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7186 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
7187
9f60d481
AC
71882002-02-04 Andrew Cagney <ac131313@redhat.com>
7189
7190 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
7191 (do_sfunc, set_cmd_sfunc): New functions.
7192
7193 * command.h (struct cmd_list_element): Add field func.
7194 * cli/cli-decode.h (struct cmd_list_element): Ditto.
7195 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
7196 * cli/cli-decode.h: Ditto.
7197
7198 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
7199 (help_all, help_cmd_list): Ditto.
7200 (find_cmd, complete_on_cmdlist): Ditto.
7201 * top.c (execute_command): Ditto.
7202
7203 * cli/cli-setshow.c (do_setshow_command): Call func instead of
7204 function.sfunc.
7205
7206 * infcmd.c (notice_args_read): Fix function signature.
7207
7208 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
7209 * cli/cli-decode.c (add_set_cmd): Ditto.
7210 * utils.c (initialize_utils): Ditto.
7211 * maint.c (_initialize_maint_cmds): Ditto.
7212 * infrun.c (_initialize_infrun): Ditto.
7213 * demangle.c (_initialize_demangler): Ditto.
7214 * remote.c (add_packet_config_cmd): Ditto.
7215 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7216 * cris-tdep.c (_initialize_cris_tdep): Ditto.
7217 * proc-api.c (_initialize_proc_api): Ditto.
7218 * kod.c (_initialize_kod): Ditto.
7219 * valprint.c (_initialize_valprint): Ditto.
7220 * top.c (init_main): Ditto.
7221 * infcmd.c (_initialize_infcmd): Ditto.
7222 * corefile.c (_initialize_core): Ditto.
7223 * arm-tdep.c (_initialize_arm_tdep): Ditto.
7224 * arch-utils.c (initialize_current_architecture): Ditto.
7225 (_initialize_gdbarch_utils): Ditto.
7226 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
7227
7228 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
7229 * wince.c (_initialize_inftarg): Ditto.
7230 * symfile.c (_initialize_symfile): Ditto.
7231 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7232 * language.c (_initialize_language): Ditto.
7233 * arc-tdep.c (_initialize_arc_tdep): Ditto.
7234
f9ba0717
MS
72352002-02-04 Michael Snyder <msnyder@redhat.com>
7236
7237 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
7238
0c74b2a7
DJ
72392002-02-04 Daniel Jacobowitz <drow@mvista.com>
7240
7241 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
7242 Add rules for building the register data files.
7243
c638789f
DJ
72442002-02-04 Daniel Jacobowitz <drow@mvista.com>
7245
7246 * regformats/regdat.sh: Add braces to the definition of
7247 expedite_regs_${arch}.
7248
db253027
DJ
72492002-02-04 Daniel Jacobowitz <drow@mvista.com>
7250
7251 * regformats/regdef.h (struct reg): Add comment describing the
7252 requirements for offset and size fields.
7253
206be19c
AS
72542002-02-04 Andreas Schwab <schwab@suse.de>
7255
7256 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
7257 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
7258
181c1381
RE
72592002-02-04 Richard Earnshaw <rearnsha@arm.com>
7260
7261 * gdbarch.sh (copyright): Update years in generated header.
7262 (SMASH_TEXT_ADDRESS): Add rule.
db253027 7263 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
7264 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
7265 * dbxread.c: Likewise.
7266 * dwarfread.c: Likewise.
7267 * elfread.c: Likewise.
7268 * somread.c: Likewise.
7269
7270 * arm-tdep.c (arm_smash_text_address): New function.
7271 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
7272
fa4ba8da
PM
72732002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7274
7275 Add support for hardware watchpoints on win32 native.
aaa38bb5 7276 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 7277 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 7278 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
7279 of debug registers.
7280 (debug_registers_changed): New variable. Reflects when debug registers
7281 are changed and need to be written to inferior.
aaa38bb5 7282 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
7283 was set, used when new threads are created.
7284 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
7285 i386-nat code.
7286 (thread_rec): Set dr array if id is the thread of current_event .
7287 (child_continue, child_resume): Change the debug registers for all
7288 threads if debug_registers_changed.
7289 (child_add_thread): Change the debug registers if debug_registers_used.
7290 * config/i386/cygwin.mh: Add use of i386-nat.o file.
7291 Link nm.h to new nm-cygwin.h file.
7292 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
7293 of hardware registers.
7294
a73c86fb
AC
72952002-02-03 Andrew Cagney <ac131313@redhat.com>
7296
7297 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
7298 Restore behavour broken by 2002-01-20 Andrew Cagney
7299 <ac131313@redhat.com> IEEE_FLOAT removal.
7300
acf5ed49
DJ
73012002-02-03 Daniel Jacobowitz <drow@mvista.com>
7302
7303 * c-valprint.c (c_val_print): Pass a proper valaddr to
7304 cp_print_class_method.
7305 * valops.c (search_struct_method): If there is only one method
7306 and args is NULL, return that method.
7307
493d28d5
DJ
73082002-02-03 Daniel Jacobowitz <drow@mvista.com>
7309
7310 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
7311 accessing tag_name directly.
7312
7495dfdb
DJ
73132002-02-03 Daniel Jacobowitz <drow@mvista.com>
7314
7315 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
7316 of accessing tag_name directly.
7317
dd6bda65
DJ
73182002-02-03 Daniel Jacobowitz <drow@mvista.com>
7319
7320 PR gdb/280
7321 * gdbtypes.c (replace_type): New function.
7322 * gdbtypes.h (replace_type): Add prototype.
7323 * stabsread.c (read_type): Use replace_type.
7324
88fe217c
RE
73252002-02-03 Richard Earnshaw <rearnsha@arm.com>
7326
7327 * Makefile.in (memattr.o): Add missing dependencies rule.
7328
e5d66720
PS
73292002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7330
7331 * breakpoint.c (break_at_finish_command): Really export.
7332 (break_at_finish_at_depth_command): Ditto.
7333 (tbreak_at_finish_command): Ditto.
7334 * hppa-tdep.c: Include completer.h.
7335 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
7336 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
7337
fffee0be
AC
73382002-02-01 Andrew Cagney <ac131313@redhat.com>
7339
7340 * utils.c (do_write): New function.
7341 (error_stream): Rewrite combining the code from error_begin and
7342 verror.
7343 (verror): Rewrite using error_stream.
7344 (error_begin): Delete function.
7345
255e7dbf
AC
73462002-02-01 Andrew Cagney <ac131313@redhat.com>
7347
7348 * utils.c (error_begin): Make static.
7349 * defs.h (error_begin): Delete declaration.
7350
7351 * linespec.c (cplusplus_error): Replace cplusplus_hint.
7352 (decode_line_1): Use cplusplus_error instead of error_begin,
7353 cplusplus_hint and return_to_top_level.
7354 * coffread.c (coff_symfile_read): Use error instead of error_begin
7355 and return_to_top_level.
7356 * infrun.c (default_skip_permanent_breakpoint): Ditto.
7357
ddfe3c15
AC
73582002-02-01 Andrew Cagney <ac131313@redhat.com>
7359
7360 * language.h (type_error, range_error): Make string parameter
7361 constant.
7362 * language.c (warning_pre_print): Delete extern declaration.
7363 * dwarfread.c (warning_pre_print): Ditto.
7364 * language.c (type_error, range_error): Rewrite to use verror and
7365 vwarning instead of warning_begin.
7366
03ac34d5
MS
73672002-02-01 Michael Snyder <msnyder@redhat.com>
7368
261c4ca2
MS
7369 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
7370 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 7371
e00d1dc8
AC
73722002-02-01 Andrew Cagney <ac131313@redhat.com>
7373
7374 * command.h (NO_FUNCTION): Delete macro.
7375 * cli/cli-decode.h (NO_FUNCTION): Ditto.
7376 * top.c (execute_command): Replace NO_FUNCTION with NULL.
7377 * tracepoint.c (_initialize_tracepoint): Ditto.
7378 * cli/cli-decode.c (add_set_cmd): Ditto.
7379 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 7380
76b79d6e
DJ
73812002-02-01 Daniel Jacobowitz <drow@mvista.com>
7382
7383 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
7384 Update ``this'' pointer when calling virtual functions.
7385
799f9e91
MS
73862002-02-01 Michael Snyder <msnyder@redhat.com>
7387
c7bd442c 7388 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
7389 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
7390
3cf384d4
DJ
73912002-02-01 Daniel Jacobowitz <drow@mvista.com>
7392
7393 * regformats/reg-arm.dat: New file.
7394 * regformats/reg-i386.dat: New file.
7395 * regformats/reg-ia64.dat: New file.
7396 * regformats/reg-m68k.dat: New file.
7397 * regformats/reg-mips.dat: New file.
7398 * regformats/reg-ppc.dat: New file.
7399 * regformats/reg-sh.dat: New file.
7400 * regformats/regdef.h: New file.
7401 * regformats/regdat.sh: New file.
7402
0defa245
RE
74032002-02-01 Richard Earnshaw <reanrsha@arm.com>
7404
7405 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
7406 (arm_frame_args_address, arm_frame_locals_address): New functions.
7407 (arm_frame_num_args): New function.
7408 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
7409 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
7410 (FRMA_NUM_ARGS): Call arm_frame_num_args.
7411
405f26e6
MS
74122002-01-31 Michael Snyder <msnyder@redhat.com>
7413
502fd408
MS
7414 * breakpoint.c (break_at_finish_command): Export.
7415 (break_at_finish_at_depth_command): Export.
7416 (tbreak_at_finish_command): Export.
7417 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
7418 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
7419 "tbreak" commands, which are HPPA specific.
7420
7d35e135
MS
7421 * printcmd.c (disassemble_command): Remove an ancient
7422 artifact of an old merge.
7423
aaa38bb5 7424 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
7425 Define enum constant values for overlay mode.
7426 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
7427 (overlay_is_mapped, overlay_auto_command,
7428 overlay_manual_command): Ditto.
d874f1e2 7429
aaa38bb5
AJ
7430 * breakpoint.c (insert_breakpoints, remove_breakpoint,
7431 breakpoint_here_p, breakpoint_inserted_here_p,
7432 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
7433 describe_other_breakpoints, check_duplicates, clear_command):
7434 Coding standard fixes.
7435
8add0441 7436 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 7437 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
7438 code: check bfd SEC_READONLY flag for section.
7439
e351066e
AC
74402002-01-31 Andrew Cagney <ac131313@redhat.com>
7441
7d35e135 7442 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 7443
8a48e967
DJ
74442002-01-30 Daniel Jacobowitz <drow@mvista.com>
7445
7446 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
7447 data symbols, since we search based on textlow and texthigh.
7448 (find_pc_sect_symtab): Likewise.
7449
f5a96129
AC
74502002-01-30 Andrew Cagney <ac131313@redhat.com>
7451
7452 * defs.h (vwarning): Declare.
f5a96129
AC
7453 * utils.c (vwarning): New function.
7454 (warning): Call vwarning.
7455 (warning_begin): Delete function.
7456
7457 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
7458 the warning message.
7459 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
7460 warning_begin.
7461
cefd4ef5
MS
74622002-01-30 Michael Snyder <msnyder@redhat.com>
7463
1a703748
MS
7464 * NEWS: Mention "set trust-readonly-sections" command.
7465 Mention generate-core-file command.
cefd4ef5 7466
3a11626d
MS
74672002-01-15 Michael Snyder <msnyder@redhat.com>
7468
7469 * target.c: New command, "set trust-readonly-sections on".
7470 (do_xfer_memory): Honor the suggestion to trust readonly sections
7471 by reading them from the object file instead of from the target.
7472 (initialize_targets): Register command "set trust-readonly-sections".
7473
d1c7e53b
AC
74742002-01-29 Andrew Cagney <ac131313@redhat.com>
7475
7476 * parse.c (target_map_name_to_register): Simplify, search regs and
7477 pseudo-regs using a single loop.
7478
e2c9a72c
AC
74792002-01-30 Andrew Cagney <ac131313@redhat.com>
7480
7481 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
7482
69824b4e
MK
74832002-01-15 Rodney Brown <rbrown64@csc.com.au>
7484
7485 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
7486 * config/i386/i386v42mp.mh: Add i387-nat.o .
7487 * i386v4-nat.c: Include i387-nat.h.
7488 (supply_fpregset): Use i387_supply_fsave.
7489 (fill_fpregset): Use i387_fill_fsave.
7490
6eb69eab
RE
74912002-01-30 Richard Earnshaw <rearnsha@arm.com>
7492
7493 * arm-tdep.c (arm_call_dummy_words): Define.
7494 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
7495 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
7496 (CALL_DUMMY_WORDS): Define.
7497 (arm_call_dummy_words): Declare.
7498 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
7499 (arm_linux_call_dummy_words): Declare.
7500
9852326a
AS
75012002-01-30 Andreas Schwab <schwab@suse.de>
7502
7503 * m68klinux-nat.c: Fix last change to use regcache_collect
7504 instead of referencing registers[] directly.
7505
977a3030
AC
75062002-01-29 Andrew Cagney <ac131313@redhat.com>
7507
7508 * parse.c (target_map_name_to_register): Delete code wrapped in
7509 #ifdef REGISTER_NAME_ALIAS_HOOK.
7510
2076c72b
MS
75112002-01-28 Michael Snyder <msnyder@redhat.com>
7512
7513 * regcache.c (legacy_read_register_gen): Need to be able to
7514 read pseudo-register as well as real register.
7515 (legacy_write_register_gen): Ditto.
7516
8fcc723b
AC
75172002-01-28 Andrew Cagney <ac131313@redhat.com>
7518
7519 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
7520 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
7521 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
7522 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
7523 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
7524 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
7525 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
7526 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
7527 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
7528 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
7529 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
7530 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
7531 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
7532 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
7533 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
7534 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
7535 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
7536 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
7537 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
7538 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
7539
afe64c1a
AC
75402002-01-28 Andrew Cagney <ac131313@redhat.com>
7541
7542 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
7543 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
7544 (initialize_current_architecture): Update target_byte_order using
7545 information from BFD.
aaa38bb5 7546 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
7547 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
7548
75bc7ddf
AC
75492002-01-28 Andrew Cagney <ac131313@redhat.com>
7550
7551 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
7552 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
7553
7554 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
7555 #ifdef INVALID_FLOAT.
7556 * infcmd.c (do_registers_info): Ditto.
7557 * values.c (unpack_double): Ditto. Add comment.
7558
7559 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
7560 already commented out.
7561
0280a90a
AS
75622002-01-26 Andreas Schwab <schwab@suse.de>
7563
7564 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7565 * m68klinux-nat.c: Update ptrace interface for fetching/storing
7566 registers and add support for PTRACE_GETREGS.
7567
7072a954
AC
75682002-01-24 Andrew Cagney <ac131313@redhat.com>
7569
7570 GDB 5.1.1 released from 5.1 branch.
7571 * NEWS: Add 5.1.1 news.
7572 * README: Sync with 5.1 branch.
7573
86f902e0
FF
75742002-01-23 Fred Fish <fnf@redhat.com>
7575
7576 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
7577 stabstring on initial malloc. Reallocing will copy it for us,
7578 if necessary.
7579
8af51c36
EZ
75802002-01-23 Elena Zannoni <ezannoni@redhat.com>
7581
aaa38bb5 7582 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
7583 (HFILES_NO_SRCDIR): Remove hpread.h.
7584 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
7585 (hpread.o): Update dependencies.
7586 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
7587
7588 * hp-psymtab-read.c: Remove file.
7589 * hp-symtab-read.c: Remove file.
7590 * hpread.h: Remove file.
7591
7592 * hpread.c: Merge all contents of hp-psymtab-read.c,
7593 hp-symtab-read.c and hpread.h into this file, as it was prior to
7594 January 1999.
7595
7596 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 7597 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
7598 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
7599 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
7600
dc5cfeb6
EZ
76012002-01-23 Elena Zannoni <ezannoni@redhat.com>
7602
7603 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
7604 fill_gregset): Call gdbarch_tdep() just once, assign result to
7605 variable and use that, instead of calling the function several
7606 times.
7607
ea87b71b
AO
76082002-01-24 Alexandre Oliva <aoliva@redhat.com>
7609
7610 * configure.host: Accept sparcv9 as alias for sparc64.
7611 * configure.tgt: Likewise.
7612
13fc0c2f
KB
76132002-01-22 Kevin Buettner <kevinb@redhat.com>
7614
7615 * solib-aix5.c (build_so_list_from_mapfile)
7616 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
7617 arguments is not reversed.
7618 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
7619 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 7620
7bd872fe
EZ
76212002-01-22 Elena Zannoni <ezannoni@redhat.com>
7622
7623 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
7624 modified version of obsolete sh_fetch_pseudo_register.
7625 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
7626 (sh4_register_read): New function.
7627 (sh_pseudo_register_write): New function. Renamed and modified
7628 version of obsolete sh_store_pseudo_register.
7629 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
7630 (sh4_register_write): New function.
7631 (sh_gdbarch_init): Remove setting of gdbarch function
7632 fetch_pseudo_register and store_pseudo_register. Remove setting of
7633 register_convert_to_raw, register_convert_to_virtual,
7634 register_convertible.
7635 (sh_sh4_register_convertible): Delete. No longer needed. All is
7636 taken care by architecture specific functions
7637 register_read/register_write.
7638 (sh_sh4_register_convert_to_virtual): Make static.
7639 (sh_sh4_register_convert_to_raw): Ditto.
7640
069e84fd
AC
76412002-01-22 Andrew Cagney <ac131313@redhat.com>
7642
7643 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
7644 (floatformat_is_nan, floatformat_mantissa): Ditto.
7645
7646 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
7647 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
7648 builtin_type_ieee_double_little,
7649 builtin_type_ieee_double_littlebyte_bigword,
7650 builtin_type_m68881_ext, builtin_type_i960_ext,
7651 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
7652 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
7653 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
7654 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
7655
211a4f69
CV
76562002-01-22 Corinna Vinschen <vinschen@redhat.com>
7657
7658 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
7659 parameter. Set frameless flag if it exists and depended of
7660 whether the scanned function is frameless or not.
7661 (xstormy16_skip_prologue): If function is frameless, return
7662 result of xstormy16_scan_prologue().
7663 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
7664 call.
7665
f81353e4
EZ
76662002-01-21 Elena Zannoni <ezannoni@redhat.com>
7667
7668 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
7669 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
7670 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
7671 sh_sh4_register_byte, sh_sh4_register_raw_size,
7672 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
7673 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
7674 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
7675 sh_store_pseudo_register, sh_do_pseudo_register): Call
7676 gdbarch_tdep() just once, assign result to variable and use that,
7677 instead of calling the function several times.
7678
63c73a17
MK
76792002-01-20 Mark Kettenis <kettenis@gnu.org>
7680
7681 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
7682 macros instead of LAST_FPU_CTRL_REGNUM.
7683 (store_register): Likewise.
7684
39ad761d
JB
76852002-01-21 Jim Blandy <jimb@redhat.com>
7686
7687 * infcmd.c (run_command): Check that the `exec' target layer's BFD
7688 is up-to-date before running the program, not just when a program
7689 exits.
7690
3d74b771
FF
76912002-01-21 Fred Fish <fnf@redhat.com>
7692
7693 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
7694 when we have found all instructions we are looking for.
7695
966fbf70
RE
76962002-01-21 Richard Earnshaw <rearnsha@arm.com>
7697
7698 * arm-tdep.c (arm_register_name): New function.
7699 (arm_registers_names): Make static.
7700 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
7701 (arm_register_name): Declare.
7702 (REGISTER_NAME): Use it.
7703
c3b4394c
RE
77042002-01-21 Richard Earnshaw <rearnsha@arm.com>
7705 Kevin Buettner <kevinb@redhat.com>
7706
7707 Convert arm targets to new FRAME interface.
7708 * arm-tdep.c (struct frame_extra_info): Remove fsr.
7709 (arm_frame_find_save_regs): Delete.
7710 (arm_frame_init_saved_regs): New.
7711 (arm_init_extra_frame_info): Alloacte saved_regs as required.
7712 Allocate extra_info as required. Convert all uses of fsr.regs
7713 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
7714 to use extra_info.
7715 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
7716 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
7717 (check_prologue_cache, save_prologue_cache): Likewise.
7718 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
7719 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
7720 (FRAME_FIND_SAVED_REGS): Delete.
7721 (arm_frame_find_saved_regs): Delete prototype.
7722 (arm_frame_init_saved_regs): New prototype.
7723 (FRAME_INIT_SAVED_REGS): Define.
7724
61d99182
AC
77252002-01-20 Andrew Cagney <ac131313@redhat.com>
7726
7727 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
7728
6aaea291
AC
77292002-01-20 Andrew Cagney <ac131313@redhat.com>
7730
7731 From Jeff Law <law@redhat.com>:
7732 * infttrace.c: Include <sys/pstat.h>.
7733 (child_pid_to_exec_file): Revamp. Use pstat call to get the
7734 exec file if the ttrace equivalent fails.
7735
15f698d2
AC
77362002-01-20 Andrew Cagney <ac131313@redhat.com>
7737
7738 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
7739 (closeLogFile): Ditto.
7740
f86ddd7c
MC
77412002-01-20 Michael Chastain <mec@shout.net>
7742
7743 * top.c (print_gdb_version): Bump copyright year to 2002.
7744
904507ce
AC
77452002-01-20 Andrew Cagney <ac131313@redhat.com>
7746
7747 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
7748 Zannoni and Eli Zaretskii.
7749
d7f0b9ce
DJ
77502002-01-20 Daniel Jacobowitz <drow@mvista.com>
7751
7752 * buildsym.c: Update copyright years.
7753 * c-typeprint.c: Likewise.
7754 * dwarf2read.c: Likewise.
7755 * f-typeprint.c: Likewise.
7756 * gdbtypes.c: Likewise.
7757 * gdbtypes.h: Likewise.
7758 * hp-symtab-read.c: Likewise.
7759 * hpread.c: Likewise.
7760 * mdebugread.c: Likewise.
7761 * p-typeprint.c: Likewise.
7762
3fd3d7d2
AC
77632002-01-20 Andrew Cagney <ac131313@redhat.com>
7764
7765 * remote-sim.c (gdbsim_open): Simplify code testing the macro
7766 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
7767 byte-order selectable.
7768 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
7769 * arch-utils.c: Ditto.
7770 (set_endian): Ditto.
7771 (set_endian_from_file): Ditto.
7772 * gdbserver/low-sim.c (create_inferior): Ditto.
7773 * gdbarch.sh: Ditto.
7774 * gdbarch.h: Re-generate.
aaa38bb5
AJ
7775 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7776 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
7777 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
7778 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7779 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7780 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7781 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
7782 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
7783 macro definition.
7784 * config/mips/tm-wince.h: Remove #undef of macro
7785 TARGET_BYTE_ORDER_SELECTABLE.
7786 * config/sh/tm-wince.h: Ditto.
7787
b02dede2
DJ
77882002-01-20 Daniel Jacobowitz <drow@mvista.com>
7789
7790 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
7791 member function fields. Add accessor macro
7792 TYPE_FN_FIELD_ARTIFICIAL.
7793 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
7794 * c-typeprint.c (c_type_print_base): Skip artificial member
7795 functions.
7796
c3643761
DJ
77972002-01-20 Daniel Jacobowitz <drow@mvista.com>
7798
7799 * f-typeprint.c: Delete unused function f_type_print_args.
7800 * p-typeprint.c: Delete unused function pascal_type_print_args.
7801
8176bb6d
DJ
78022002-01-20 Daniel Jacobowitz <drow@mvista.com>
7803
7804 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
7805 comment. Add ``artificial'' to ``union field_location''.
7806
7807 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
7808
7809 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
7810 * mdebugread.c (parse_symbol): Likewise.
7811 * stabsread.c (define_symbol): Likewise.
7812 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
7813 initializing TYPE_FIELD_BITPOS to n (obsolete).
7814 (hpread_doc_function_type): Likewise.
7815 * hpread.c (hpread_function_type): Likewise.
7816
7fd60527
AC
78172002-01-20 Andrew Cagney <ac131313@redhat.com>
7818
7819 * configure.in (host_makefile_frag): Only require a host makefile
7820 fragment when a native build.
7821 * configure: Re-generate.
7822
c2f05ac9
AC
78232002-01-20 Andrew Cagney <ac131313@redhat.com>
7824
7825 * doublest.h (floatformat_from_type): Declare.
7826 * doublest.c (floatformat_from_type): New function.
7827 (convert_typed_floating): Use.
7828
7829 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
7830 call to function floatformat_from_type.
7831
7832 * gdbarch.sh (IEEE_FLOAT): Delete.
7833 * gdbarch.h, gdbarch.c: Re-generate.
7834 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
7835 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
7836 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
7837 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
7838 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
7839 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
7840 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
7841 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
7842 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
7843 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
7844 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
7845 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
7846
7847 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
7848 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7849 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7850 * sh-tdep.c (sh_gdbarch_init): Ditto.
7851 * mips-tdep.c (mips_gdbarch_init): Ditto.
7852 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7853 * cris-tdep.c (cris_gdbarch_init): Ditto.
7854
abf22e64
AJ
78552002-01-20 Jiri Smid <smid@suse.cz>
7856
7857 * configure.host, configure.tgt: Support x86-64.
7858 * NEWS: Note new target x86-64.
7859
b7c4cbf8
AJ
7860 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
7861 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
7862 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
7863 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
7864 x86-64-linux-nat.o): Fix dependencies.
7865
82600034
AC
78662002-01-19 Andrew Cagney <ac131313@redhat.com>
7867
7868 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
7869 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
7870 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
7871 * config/sparc/xm-sun4os4.h: Delete file.
7872 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 7873
bbe5c628
AC
78742002-01-19 Andrew Cagney <ac131313@redhat.com>
7875
7876 * config/sparc/sparclynx.mh (XM_FILE): Delete.
7877 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
7878 * config/m68k/m68klynx.mh (XM_FILE): Delete.
7879 * config/i386/i386lynx.mh (XM_FILE): Delete.
7880 * config/rs6000/xm-rs6000ly.h: Delete file.
7881 * config/sparc/xm-sparclynx.h: Delete file.
7882 * config/m68k/xm-m68klynx.h: Delete file.
7883 * config/i386/xm-i386lynx.h: Delete file.
7884 * config/xm-lynx.h: Delete file.
7885 * config/djgpp/fnchange.lst: Update.
7886
f8453e34
JT
78872002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7888
7889 * alpha-tdep.c (alpha_register_byte): New function.
7890 (alpha_register_raw_size): Ditto.
7891 (alpha_register_virtual_size): Ditto.
7892 (alpha_skip_prologue_internal): Renamed from
7893 alpha_skip_prologue.
7894 (alpha_skip_prologue): New version that calls
7895 alpha_skip_prologue_internal.
7896 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
7897 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
7898 second argument from alpha_skip_prologue.
7899 (REGISTER_BYTE): Use alpha_register_byte.
7900 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
7901 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
7902 (FRAMELESS_FUNCTION_INVOCATION): Use
7903 generic_frameless_function_invocation_not.
7904 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
7905 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
7906
52d9e613
AC
79072002-01-19 Andrew Cagney <ac131313@redhat.com>
7908
7909 * config/mips/xm-news-mips.h: Delete file.
7910 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
7911
7912 * config/m88k/xm-m88k.h: Delete file.
7913 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
7914 * config/m88k/xm-delta88v4.h: Ditto.
7915 * config/m88k/xm-delta88.h: Ditto.
7916
7917 * config/alpha/xm-fbsd.h: Delete file.
7918 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
7919
7920 * config/sparc/xm-sparc.h: Delete file.
7921 * Makefile.in (xm-sun4os4.h): Delete dependency.
7922 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
7923 * config/sparc/xm-sun4os4.h: Ditto.
7924 * config/sparc/xm-linux.h: Ditto.
7925
7926 * config/i386/xm-windows.h: Delete file.
7927
2d1b2124
AC
79282002-01-19 Andrew Cagney <ac131313@redhat.com>
7929
7930 * utils.c: Include <sys/param.h> for MAXPATHLEN.
7931 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
7932
ee1f65f0
JT
79332002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7934
7935 * alpha-tdep.c (alpha_call_dummy_words): New.
7936 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
7937 (CALL_DUMMY_P): Define.
7938 (CALL_DUMMY_WORDS): Define.
7939 (SIZEOF_CALL_DUMMY_WORDS): Define.
7940
98081e55
PB
79412002-01-19 Per Bothner <per@bothner.com>
7942
7943 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
7944 isn't NULL, which can happen with some gcj-3.x-produced code.
7945
0d056799
JT
79462002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7947
7948 * alpha-tdep.c (alpha_register_virtual_type): New function.
7949 (alpha_init_frame_pc_first): Ditto.
7950 (alpha_fix_call_dummy): Ditto.
7951 (alpha_store_struct_return): Ditto.
7952 (alpha_extract_struct_value_address): Ditto.
7953 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
7954 alpha_register_virtual_type.
7955 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
7956 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
7957 alpha_extract_struct_value_address.
7958 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
7959 (INIT_FRAME_PC): Use init_frame_pc_noop.
7960 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
7961
4604bcad
MK
79622002-01-19 Mark Kettenis <kettenis@gnu.org>
7963
7964 * i386gnu-nat.c: Include "i386-tdep.h".
7965 (fetch_fpregs): Simplify code dealing with uninitialized floating
7966 point states such that it doesn't require FP7_REGNUM.
7967
140f9984
JT
79682002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7969
abf22e64
AJ
7970 * alpha-tdep.c (frame_extra_info): New.
7971 (alpha_find_saved_regs): Make static. Use
140f9984
JT
7972 frame->extra_info.
7973 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
7974 (alpha_frame_saved_pc): Use frame->extra_info.
7975 (temp_saved_regs): Don't declare as struct frame_saved_regs.
7976 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
7977 (init_extra_frame_info): Rename to...
7978 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 7979 (alpha_print_extra_frame_info): New function.
140f9984
JT
7980 (alpha_frame_locals_address): Ditto.
7981 (alpha_frame_args_address): Ditto.
abf22e64 7982 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
7983 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
7984 alpha_frame_args_address.
abf22e64 7985 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 7986 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
7987 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
7988 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
7989 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
7990 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
7991
d734c450
JT
79922002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7993
7994 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
7995 (alpha_cannot_fetch_register): Ditto.
7996 (alpha_cannot_store_register): Ditto.
7997 (alpha_register_convertible): Ditto.
7998 (alpha_use_struct_convention): Ditto.
7999 * config/alpha/tm-alpha.h: Update copyright years.
8000 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
8001 (INNER_THAN): Use core_addr_lessthan.
8002 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
8003 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
8004 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
8005 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
8006 (FRAME_CHAIN): Remove unnecessary cast.
8007
b4ceaee6
AC
80082002-01-18 Andrew Cagney <ac131313@redhat.com>
8009
8010 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
8011 obsolete.
8012
0a65a603
AC
80132002-01-18 Andrew Cagney <ac131313@redhat.com>
8014
8015 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
8016 * monitor.c, remote-array.c, remote-bug.c: Ditto.
8017 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
8018 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
8019 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
8020 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
8021 * x86-64-linux-nat.c: Ditto.
8022
636a6dfc
JT
80232002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8024
abf22e64 8025 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
8026 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
8027 (REGISTER_NAME): Define.
8028
acceddb6
JT
80292002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8030
8031 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
8032
ec32e4be
JT
80332002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8034
8035 * alpha-tdep.c: Update copyright years.
8036 (alpha_next_pc): New function.
8037 (alpha_software_single_step): Ditto.
8038 * config/alpha/tm-alpha.h: Add prototype for
8039 alpha_software_single_step.
8040
e771a871
JT
80412002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8042
8043 * alphabsd-nat.c: Update copyright years.
8044 (fill_gregset): Use regcache_collect.
8045 (fill_fpregset): Likewise.
8046 (fetch_inferior_registers): Only fetch integer registers
8047 if requested to do so.
8048 (store_inferior_registers): Only store integer registers
8049 if requested to do so.
8050
7708fa01
AC
80512002-01-17 Andrew Cagney <ac131313@redhat.com>
8052
8053 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
8054 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
8055 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
8056 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
8057 * config/alpha/fbsd.mh (XDEPFILES): Delete.
8058 * config/arm/linux.mh (XDEPFILES): Delete.
8059 * config/arm/nbsd.mh (XDEPFILES): Delete.
8060 * config/i386/i386dgux.mh (XDEPFILES): Delete.
8061 * config/i386/i386sol2.mh (XDEPFILES): Delete.
8062 * config/i386/i386m3.mh (XDEPFILES): Delete.
8063 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
8064 * config/i386/i386gnu.mh (XDEPFILES): Delete.
8065 * config/i386/fbsd.mh (XDEPFILES): Delete.
8066 * config/i386/i386bsd.mh (XDEPFILES): Delete.
8067 * config/i386/i386sco5.mh (XDEPFILES): Delete.
8068 * config/i386/i386v4.mh (XDEPFILES): Delete.
8069 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
8070 * config/i386/i386sco4.mh (XDEPFILES): Delete.
8071 * config/i386/i386aix.mh (XDEPFILES): Delete.
8072 * config/i386/go32.mh (XDEPFILES): Delete.
8073 * config/i386/cygwin.mh (XDEPFILES): Delete.
8074 * config/i386/i386lynx.mh (XDEPFILES): Delete.
8075 * config/i386/i386mach.mh (XDEPFILES): Delete.
8076 * config/i386/i386v32.mh (XDEPFILES): Delete.
8077 * config/i386/linux.mh (XDEPFILES): Delete.
8078 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
8079 * config/i386/ncr3000.mh (XDEPFILES): Delete.
8080 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
8081 * config/i386/i386sco.mh (XDEPFILES): Delete.
8082 * config/i386/i386v.mh (XDEPFILES): Delete.
8083 * config/i386/nbsd.mh (XDEPFILES): Delete.
8084 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
8085 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
8086 * config/i386/symmetry.mh (XDEPFILES): Delete.
8087 * config/i386/obsd.mh (XDEPFILES): Delete.
8088 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
8089 * config/ia64/linux.mh (XDEPFILES): Delete.
8090 * config/ia64/aix.mh (XDEPFILES): Delete.
8091 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
8092 * config/m68k/dpx2.mh (XDEPFILES): Delete.
8093 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
8094 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
8095 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
8096 * config/m68k/linux.mh (XDEPFILES): Delete.
8097 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
8098 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
8099 * config/m68k/nbsd.mh (XDEPFILES): Delete.
8100 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
8101 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
8102 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
8103 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
8104 * config/m88k/delta88.mh (XDEPFILES): Delete.
8105 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
8106 * config/m88k/m88k.mh (XDEPFILES): Delete.
8107 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
8108 * config/mips/linux.mh (XDEPFILES): Delete.
8109 * config/mips/irix6.mh (XDEPFILES): Delete.
8110 * config/mips/irix5.mh (XDEPFILES): Delete.
8111 * config/mips/irix4.mh (XDEPFILES): Delete.
8112 * config/mips/irix3.mh (XDEPFILES): Delete.
8113 * config/mips/decstation.mh (XDEPFILES): Delete.
8114 * config/mips/mipsm3.mh (XDEPFILES): Delete.
8115 (NATDEPFILES): Move core-aout.o to here.
8116 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
8117 * config/pa/hpux1020.mh (XDEPFILES): Delete.
8118 * config/pa/hppabsd.mh (XDEPFILES): Delete.
8119 * config/pa/hppahpux.mh (XDEPFILES): Delete.
8120 * config/pa/hpux11w.mh (XDEPFILES): Delete.
8121 * config/pa/hppaosf.mh (XDEPFILES): Delete.
8122 * config/pa/hpux11.mh (XDEPFILES): Delete.
8123 * config/powerpc/aix.mh (XDEPFILES): Delete.
8124 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
8125 * config/powerpc/linux.mh (XDEPFILES): Delete.
8126 * config/romp/rtbsd.mh: Rename XDEPFILES.
8127 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
8128 * config/rs6000/aix4.mh (XDEPFILES): Delete.
8129 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
8130 * config/s390/s390.mh (XDEPFILES): Delete.
8131 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
8132 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
8133 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
8134 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
8135 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
8136 * config/sparc/nbsd.mh (XDEPFILES): Delete.
8137 * config/sparc/linux.mh (XDEPFILES): Delete.
8138 * config/vax/vaxult.mh (XDEPFILES): Delete.
8139 * config/vax/vaxult2.mh (XDEPFILES): Delete.
8140 * Makefile.in (DEPFILES): Remove XDEPFILES.
8141
375fc983
AC
81422002-01-17 Andrew Cagney <ac131313@redhat.com>
8143
8144 * utils.c (internal_verror): Fix comments, default is yes not no.
8145 Update queries to match. Default to quit and dump core.
8146
8926118c
AC
81472002-01-17 Andrew Cagney <ac131313@redhat.com>
8148
8149 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
8150 copyright.
8151 * defs.h, event-top.c, gdbcmd.h: Ditto.
8152 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
8153 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
8154 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
8155 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
8156 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
8157 * mi/mi-main.c:Ditto.
8158
8159 * stack.c, symfile.c: Update copyright.
8160
45b7b345
DJ
81612002-01-17 Daniel Jacobowitz <drow@mvista.com>
8162
db728ff7
DJ
8163 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
8164 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
8165 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
8166 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 8167
db728ff7
DJ
81682002-01-17 Daniel Jacobowitz <drow@mvista.com>
8169
8170 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
8171 * gdbserver/low-lynx.c (myattach): Likewise.
8172 * gdbserver/low-nbsd.c (myattach): Likewise.
8173 * gdbserver/low-sim.c (myattach): Likewise.
8174 * gdbserver/low-sparc.c (myattach): Likewise.
8175 * gdbserver/low-sun3.c (myattach): Likewise.
8176
8177 * gdbserver/low-linux.c (myattach): New function.
45b7b345 8178
db728ff7 8179 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
8180 (main): Handle "--attach".
8181
8de3c354
AC
81822002-01-16 Andrew Cagney <ac131313@redhat.com>
8183
8184 * MAINTAINERS (language support): Daniel Jacobwitz is C++
8185 maintainer.
8186
b0129042
DJ
81872002-01-15 Daniel Jacobowitz <drow@mvista.com>
8188
8189 * c-typeprint.c (is_type_conversion_operator): Add additional
8190 check for non-conversion operators.
8191
ba8679fb 81922002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
8193
8194 * linux-proc.c: Add "info proc" command, a la procfs.c.
8195 (read_mapping): New function, abstract and re-use code.
8196 (linux_find_memory_regions): Use new func read_mapping.
8197 (linux_info_proc_cmd): New function, implement "info proc".
8198 (_initialize_linux_proc): Add new command "info proc".
8199
e4f9b4d5
MS
82002002-01-15 Michael Snyder <msnyder@redhat.com>
8201
8202 * symfile.c (generic_load): Use bfd_map_over_sections method
8203 instead of manipulating bfd structure members directly.
8204 (add_section_size_callback): New function, bfd sections callback
8205 used by generic_load.
8206 (load_sections_callback): New function, bfd sections callback
8207 used by generic_load.
8208
08cf96df
EZ
82092002-01-15 Elena Zannoni <ezannoni@redhat.com>
8210
abf22e64 8211 [Based on work by Jim Blandy]
08cf96df
EZ
8212 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
8213 (builtin_type_vec128): Export.
8214 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
8215 types.
8216 (builtin_type_vec128): New builtin type for 128 bit vector
8217 registers.
8218 (build_gdbtypes): Initialize builtin_type_v16qi and
8219 builtin_type_v8hi. Create the vec128 register builtin type
8220 structure.
8221 (build_builtin_type_vec128): New function.
abf22e64 8222 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
8223 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
8224 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
8225 AltiVec register to new builtin type.
8226
d7242108
DJ
82272001-01-15 Daniel Jacobowitz <drow@mvista.com>
8228
8229 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
8230 to make_cv_type.
8231
4ee3352d
AC
82322002-01-14 Andrew Cagney <ac131313@redhat.com>
8233
8234 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
8235 CLEAN_UP_REGISTER_VALUE.
8236 * regcache.c (supply_register): Update only call.
8237
f015b2e7
AC
82382002-01-14 Andrew Cagney <ac131313@redhat.com>
8239
8240 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
8241 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
8242 a29k-*-vxworks* targets as obsolete.
8243
356ae49d
MS
82442002-01-14 Michael Snyder <msnyder@redhat.com>
8245
8246 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
8247 until we can resolve portability issues.
8248 * gregset.h: Remove references to fpxregs.
8249 * gcore.c (gcore_command): Initialize note_sec to NULL.
8250
ade8f45e
AC
82512002-01-13 Andrew Cagney <ac131313@redhat.com>
8252
8253 * signals.c (target_signal_to_name): Rewrite. Only use
8254 signals[].name when in bounds and non-NULL.
abf22e64 8255
89c49e7a
AC
82562002-01-13 Andrew Cagney <ac131313@redhat.com>
8257
8258 From Petr Ledvina <ledvinap@kae.zcu.cz>:
8259 * signals.c (target_signal_to_name): Verify that SIG is within the
8260 bounds of the signals array.
8261
4daa9f9f
AC
82622002-01-13 Andrew Cagney <ac131313@redhat.com>
8263
8264 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
8265
ba4bbdcb
KS
82662002-01-13 Keith Seitz <keiths@redhat.com>
8267
8268 * stack.c (print_frame_info_base): Print the frame's pc
8269 only if when print_frame_info_listing_hook is not defined.
8270
575bbeb6
KS
82712002-01-13 Keith Seitz <keiths@redhat.com>
8272
8273 * varobj.c (varobj_set_value): Make sure that there were no
8274 errors evaluating the object before attempting to set its
8275 value.
8276 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
8277 so this offset adjustment is no longer necessary.
8278 (create_child): Don't set the error flag if the child is
8279 a CPLUS_FAKE_CHILD.
8280 (value_of_child): If value_fetch_lazy fails, return NULL
8281 so that callers will be notified that an error occurred.
8282 (c_value_of_variable): Delay check of variable's validity
8283 until later. We actually want all structs and unions to have
8284 the value "{...}".
8285 Do not return "???" for variables which could not be evaluated.
8286 This error condition must be returned to the caller so that it
8287 can get the error condition from gdb.
8288 (cplus_name_of_child): Adjust index for vptr before figuring
8289 out the name of the child.
8290 (cplus_value_of_child): If a child's (real) parent is not valid,
8291 don't even bother trying to give a value for it. Just return
8292 an error. Change all instances in this function.
8293 (cplus_type_of_child): If our parent is one of the "fake"
8294 parents, we need to get at the type of the real parent, and
8295 derive the child's true type using this information.
8296
b76898ab
AC
82972002-01-13 Andrew Cagney <ac131313@redhat.com>
8298
8299 From 2002-01-09 John Marshall <johnm@falch.net>:
8300 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
8301 sources.redhat.com, and tweak some related URLs which had
8302 suffered from linkrot.
8303
b6649e88
AC
83042002-01-13 Andrew Cagney <ac131313@redhat.com>
8305
8306 From Jeff law:
8307 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
8308 structures passed in registers.
8309
82cc5033
EZ
83102002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
8311
8312 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
8313 white space which prevented compilation. Reported by DSK
8314 <dsk@student.unsw.edu.au>.
8315
ba5f2f8a
MS
83162002-01-11 Michael Snyder <msnyder@redhat.com>
8317
fbd35540
MS
8318 * symfile.c (build_section_addr_info_from_section_tab):
8319 Use bfd access method instead of manipulating bfd directly.
8320 (syms_from_objfile): Ditto.
8321 (simple_overlay_update_1): Ditto.
8322 (simple_overlay_update): Ditto.
8323 (generic_load): Ditto.
8324 (overlay_unmapped_address): FIXME comment, bfd access methods.
8325 (sections_overlap): FIXME comment, bfd access methods.
8326 (pc_in_mapped_range): FIXME comment, bfd access methods.
8327 (pc_in_unmapped_range): FIXME comment, bfd access methods.
8328 (section_is_mapped): FIXME comment, bfd access methods.
8329 (section_is_overlay): FIXME comment, bfd access methods.
8330
ba5f2f8a
MS
8331 * symfile.c (generic_load): Whitespace and long line cleanups.
8332 Remove duplicate variable, change several local variables to
8333 more appropriate data types.
8334 (print_transfer_performance): Use %lu instead of %ld for ulongs.
8335
17df2af6
AC
83362002-01-12 Andrew Cagney <ac131313@redhat.com>
8337
8338 From Peter Schauer:
8339 * language.c (longest_local_hex_string_custom): Use phex_nz to
8340 convert NUM to a hex string.
8341
ec920329
EZ
83422002-01-12 Elena Zannoni <ezannoni@redhat.com>
8343
8344 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
8345 the function.
538a76d6 8346 Update Copyright year.
ec920329 8347
3abd2e01
AC
83482002-01-12 Andrew Cagney <ac131313@redhat.com>
8349
8350 * language.c (longest_raw_hex_string): Delete unused function.
8351
b21b22e0
PS
83522002-01-11 Petr Sorfa <petrs@caldera.com>
8353
8354 * MAINTAINERS (write-after-approval): Add myself.
8355 * dwarf2read.c (read_tag_string_type): Handling of
8356 DW_AT_byte_size.
8357 (read_tag_string_type): FORTRAN fix to prevent propagation of
8358 first string size.
8359 (set_cu_language): Handling of DW_LANG_Fortran95
8360
747fe712
RE
83612002-01-11 Richard Earnshaw <rearnsha@arm.com>
8362
8363 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
8364 GETPID(inferior_ptid).
8365 (store_inferior_registers): Likewise.
8366
f1bea926
JM
83672002-01-10 Jason Merrill <jason@redhat.com>
8368
8369 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
8370 Fix DW_OP_minus.
8371
ae940673
AC
83722002-01-10 Andrew Cagney <ac131313@redhat.com>
8373
8374 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
8375 and bfd/elf32-sh-nbsd.c.
8376
00546b04
MS
83772002-01-10 Michael Snyder <msnyder@redhat.com>
8378
352ed7b4
MS
8379 * NEWS: Mention --pid and corefile/proc-id behavior change.
8380
c18be923
MS
8381 * Makefile.in: Add rules for gcore.o and linux-proc.o.
8382 * gcore.c: Include cli/cli-decode.h instead of command.h.
8383
00546b04
MS
8384 * main.c (captured_main): Add new command line option "--pid".
8385 If the second command line argument (following the symbol-file)
8386 begins with a digit, try to attach to it before trying to open
8387 it as a corefile.
8388 (print_gdb_help): Document the "--pid" argument.
8389
db60ec62
EZ
83902002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
8391
8392 * completer.c (command_completer): New function.
8393
8394 * completer.h <command_completer>: Add prototype.
8395
8396 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
8397 completer for the "help" command.
8398
39c22d1a
JM
83992002-01-09 Jason Merrill <jason@redhat.com>
8400
8401 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
8402
c564377f
MS
84032002-01-09 Michael Snyder <msnyder@redhat.com>
8404
975aec09
MS
8405 * i386-linux-nat.c (fill_fpxregset): Make global.
8406 (store_fpxregset): Ditto.
8407
db4a10fa
MS
8408 * gregset.h (gdb_fpxregset_t): Define.
8409 (supply_fpxregset): Prototype.
8410 (fill_fpxregset): Prototype.
8411
c564377f
MS
8412 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
8413
c3d45d70
RE
84142002-01-09 Richard Earnshaw <rearnsha@arm.com>
8415
8416 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
8417 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
8418 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
8419
fcc87af1
AC
84202002-01-09 Andrew Cagney <ac131313@redhat.com>
8421
8422 * MAINTAINERS: Update target maintainer rules so that any
8423 Maintainer can approve a tested patch for a maintenance-only
8424 target.
8425
dd96c05b
RE
84262002-01-09 Richard Earnshaw <rearnsha@arm.com>
8427
d4297db9 8428 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 8429
d4297db9 8430 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
8431 IN_SIGTRAMP.
8432
145fdc6e
MS
84332002-01-08 Michael Snyder <msnyder@redhat.com>
8434
8435 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
8436 real name of the executable, rather than the /proc name.
8437
be4d1333
MS
84382002-01-03 Michael Snyder <msnyder@redhat.com>
8439
8440 Implement a "generate-core-file" command in gdb, save target state.
8441 * gcore.c: New file. Implement new command 'generate-core-file'.
8442 Save a corefile image of the current state of the inferior.
8443 * linux-proc.c: Add linux-specific code for saving corefiles.
8444 * target.h (struct target_ops): Add new target vectors for saving
8445 corefiles; to_find_memory_regions and to_make_corefile_notes.
8446 (target_find_memory_regions): New macro.
8447 (target_make_corefile_notes): New macro.
8448 * target.c (update_current_target): Inherit new target methods.
8449 (dummy_find_memory_regions): New place-holder method.
8450 (dummy_make_corefile_notes): New place-holder method.
8451 (init_dummy_target): Initialize new dummy target vectors.
8452 * exec.c (exec_set_find_memory_regions): New function.
8453 Allow the exec_ops vector for memory regions to be taken over.
8454 (exec_make_note_section): New function, target vector method.
8455 * defs.h (exec_set_find_memory_regions): Export prototype.
8456 * procfs.c (proc_find_memory_regions): New function, corefile method.
8457 (procfs_make_note_section): New function, corefile method.
8458 (init_procfs_ops): Set new target vector pointers.
8459 (find_memory_regions_callback): New function.
8460 (procfs_do_thread_registers): New function.
8461 (procfs_corefile_thread_callback): New function.
8462 * sol-thread.c (sol_find_memory_regions): New function.
8463 (sol_make_note_section): New function.
8464 (init_sol_thread_ops): Initialize new target vectors.
8465 * inftarg.c (inftarg_set_find_memory_regions): New function.
8466 Allow to_find_memory_regions vector to be taken over.
8467 (inftarg_set_make_corefile_notes): New function.
8468 Allow to_make_corefile_notes vector to be taken over.
8469 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
8470 interface layer if not target_has_execution (may be a corefile).
8471 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
8472 * config/sparc/sun4sol2.mh: Ditto.
8473 * config/alpha/alpha-linux.mh: Ditto.
8474 * config/arm/linux.mh: Ditto.
8475 * config/i386/x86-64linux.mh: Ditto.
8476 * config/ia64/linux.mh: Ditto.
8477 * config/m68k/linux.mh: Ditto.
8478 * config/mips/linux.mh: Ditto.
8479 * config/powerpc/linux.mh: Ditto.
8480 * config/sparc/linux.mh: Ditto.
8481
c6b92abd
MS
84822002-01-07 Michael Snyder <msnyder@redhat.com>
8483
8484 * arm-linux-nat.c: Remove references to regcache.c internal data
8485 (registers[] and register_valid[]).
8486
4b09dc8c
MS
84872002-01-07 Michael Snyder <msnyder@redhat.com>
8488
abf22e64
AJ
8489 * linux-proc.c: New file. Implement child_pid_to_exec_file,
8490 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
8491 symbol file and shlibs.
8492 * Makefile.in: Add rule for linux-proc.o.
8493 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
8494 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
8495 * config/arm/linux.mh: Ditto.
8496 * config/i386/linux.mh: Ditto.
8497 * config/i386/x86-64linux.mh: Ditto.
8498 * config/ia64/linux.mh: Ditto.
8499 * config/m68k/linux.mh: Ditto.
8500 * config/mips/linux.mh: Ditto.
8501 * config/powerpc/linux.mh: Ditto.
8502 * config/sparc/linux.mh: Ditto.
8503
c25b74ac
PM
85042002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
8505
8506 * win32-nat.c: Add i386-tdep.h dependency.
8507
94cd915f
MS
85082002-01-07 Michael Snyder <msnyder@redhat.com>
8509
c7cccb76
MS
8510 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
8511 instead of bfd_get_arch_size. Don't bail out just because
8512 there's no exec_bfd.
abf22e64 8513
34c0bd93
MS
8514 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
8515 * p-valprint.c (pascal_object_print_value): Ditto.
8516 * somread.c (som_symtab_read): Ditto.
8517 * symfile.c (simple_free_overlay_region_table): Ditto.
8518 * valops.c (value_assign): Ditto.
8519
21c1c920
MS
8520 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
8521 use tilde_expand and strerror for opening save-tracepoints file.
8522
5bbd998e
MS
8523 * thread-db.c (thread_db_new_objfile): Indendation fix.
8524
94cd915f
MS
8525 * infptrace.c (GDB_MAX_ALLOCA): New define.
8526 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 8527 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
8528 can be overridden with whatever value is appropriate to the host).
8529 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
8530 alloca to allocate potentially large buffer.
8531 * rs6000-nat.c (child_xfer_memory): Ditto.
8532 * symm-nat.c (child_xfer_memory): Ditto.
8533 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
8534
494e8a93
JSC
85352002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
8536
8537 From Nick Clifton <nickc@redhat.com>
8538 * d10v-tdep.c: Set STACK_START to 0x200bffe.
8539
d0e1d48e
MS
85402002-01-07 Michael Snyder <msnyder@redhat.com>
8541
abf22e64 8542 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
8543 Don't use exec_bfd if it's NULL.
8544
290b2c7a
MK
85452002-01-06 Mark Kettenis <kettenis@gnu.org>
8546
abf22e64 8547 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 8548
aef21287
AC
85492002-01-06 Andrew Cagney <ac131313@redhat.com>
8550
8551 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
8552 * gnu-nat.c: Ditto.
8553
30efa627
AC
85542002-01-06 Andrew Cagney <ac131313@redhat.com>
8555
8556 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
8557 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
8558 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
8559 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
8560 z8k-coff have not been multi-arched. Update z8k-coff build
8561 status.
8562
9b4ff276
AC
85632002-01-06 Andrew Cagney <ac131313@redhat.com>
8564
8565 * MAINTAINERS: Mark a29k target as obsolete.
8566 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
8567 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
8568 comments.
8569 * NEWS: Note that a29k targets are obsolete.
8570 * a29k-tdep.c: Mark as obsolete.
8571 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
8572 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
8573 a29k-*-vxworks* targets as obsolete.
8574 * remote-adapt.c: Obsolete.
8575 * remote-eb.c: Obsolete.
8576 * remote-mm.c: Obsolete.
8577 * remote-udi.c: Obsolete.
8578 * config/a29k/a29k-udi.mt: Obsolete.
8579 * config/a29k/a29k.mt: Obsolete.
8580 * config/a29k/tm-a29k.h: Obsolete.
8581 * config/a29k/tm-vx29k.h: Obsolete.
8582 * config/a29k/vx29k.mt: Obsolete.
8583
a9011d31
AC
85842002-01-05 Andrew Cagney <ac131313@redhat.com>
8585
8586 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
8587 with BFD_ENDIAN_BIG.
8588
9299404e
AC
85892002-01-05 Andrew Cagney <ac131313@redhat.com>
8590
8591 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
8592 * configure, config.in: Re-generate.
8593 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
8594 * defs.h: Do not include <endian.h>.
8595
7e89e357
JT
85962002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
8597
8598 * acconfig.h (HAVE_PT_GETXMMREGS): New.
8599 * config.in: Regenerate.
8600 * configure.in: Update copyright years.
8601 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
8602 * configure: Regenerate.
8603 * i386bsd-nat.c: Update copyright years.
8604 (fill_gregset): Use regcache_collect.
8605 (fetch_inferior_registers): Only fetch integer registers
8606 if requested to do so. Add support for XMM registers
8607 using PT_GETXMMREGS.
8608 (store_inferior_registers): Only store integer registers
8609 if requested to do so. Add support for XMM registers
8610 using PT_SETXMMREGS.
8611 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
8612 (store_inferior_registers): Remove.
8613 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
8614 (fetch_elfcore_registers): New function.
8615 (i386nbsd_elfcore_fns): New.
8616 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
8617 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
8618 i386bsd-nat.o.
8619 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8620 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
8621 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
8622 * config/i386/tm-nbsd.h: Update copyright years.
8623 (HAVE_SSE_REGS): Define.
8624 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
8625 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
8626 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
8627 (SIGCONTEXT_PC_OFFSET): Remove.
8628 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
8629
a752853e
AC
86302002-01-05 Andrew Cagney <ac131313@redhat.com>
8631
8632 * configure.tgt: Remove powerpc-*-macos* target.
8633 * config/m68k/xm-mpw.h: Delete file.
8634 * config/xm-mpw.h: Delete file.
8635 * ser-mac.c: Delete file.
8636 * mpw-make.sed: Delete file.
8637 * mpw-config.in: Delete file.
8638 * mac-xdep.c: Delete file.
8639 * mac-gdb.r: Delete file.
8640 * mac-defs.h: Delete file.
8641 * mac-nat.c: Delete file.
8642 * config/powerpc/macos.mh: Delete file.
8643 * config/powerpc/macos.mt: Delete file.
8644 * config/powerpc/nm-macos.h: Delete file.
8645 * config/powerpc/tm-macos.h: Delete file.
8646 * source.c (openp, open_source_file): Remove obsolete code.
8647 * top.c (gdb_readline): Ditto.
8648 * utils.c (query): Ditto.
8649 * event-top.c (display_gdb_prompt): Ditto.
8650 * Makefile.in (ser-mac.o): Delete obsolete target.
8651 * NEWS: Update.
8652
d7449b42
AC
86532002-01-04 Andrew Cagney <ac131313@redhat.com>
8654
8655 * defs.h (BIG_ENDIAN): Delete macro definition.
8656 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
8657 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
8658 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
8659 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
8660 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
8661 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
8662 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
8663 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
8664 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
8665 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
8666 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
8667 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
8668 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
8669 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
8670 * gdbarch.c: Re-generate.
8671
356374e8
DJ
86722002-01-04 Daniel Jacobowitz <drow@mvista.com>
8673
8674 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
8675 for core files.
8676
a2b8f8f8
JT
86772002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
8678
8679 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
8680
12466af9
AC
86812002-01-04 Andrew Cagney <ac131313@redhat.com>
8682
8683 * value.h (value_ptr): Delete typedef.
8684
3549ab40
JT
86852002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
8686
8687 * i386nbsd-nat.c: Update copyright years.
8688 Include i386-tdep.h.
8689
fedbd091
EZ
86902002-01-04 Elena Zannoni <ezannoni@redhat.com>
8691
8692 * stabsread.c: Update copyright years.
8693
8694 From Debashis Mahata <debashis.mahata@wipro.com>:
8695 (read_struct_fields): Deal with Sun C compiler erroneous stab
8696 output for structs and unions.
fec8b34f 8697 Fix PR gdb/269.
fedbd091 8698
eb43544b
DJ
86992002-01-04 Daniel Jacobowitz <drow@mvista.com>
8700
8701 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
8702 prototype.
8703
1514d34e
DJ
87042002-01-04 Daniel Jacobowitz <drow@mvista.com>
8705
8706 * cp-abi.c: Fix whitespace.
8707 (baseclass_offset): New wrapper function.
8708 * cp-abi.h (baseclass_offset): Add prototype.
8709 (struct cp_abi_ops): Add baseclass_offset pointer.
8710
8711 * valops.c (vb_match): Move to...
8712 * gnu-v2-abi.c (vb_match): here.
8713 * valops.c (baseclass_offset): Move to...
8714 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
8715
8716 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
8717
8718 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
8719 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
8720 * hpacc-abi.c (init_hpacc_ops): Likewise.
8721
7f8c9282
DJ
87222002-01-04 Daniel Jacobowitz <drow@mvista.com>
8723
8724 * valops.c (find_overload_match): Accept obj as a
8725 reference parameter. Update it before returning.
8726 * value.h (find_overload_match): Update prototype.
8727 * eval.c (evaluate_subexp_standard): Pass object to
8728 find_overload_match by reference.
8729
f23631e4
AC
87302002-01-03 Andrew Cagney <ac131313@redhat.com>
8731
8732 * valarith.c: Replace value_ptr with struct value pointer. Remove
8733 register attribute from value declarations.
8734 * valops.c: Ditto.
8735 * value.h: Ditto.
8736 * scm-lang.c (scm_lookup_name): Ditto.
8737
79e10fab 87382002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 8739
79e10fab
AC
8740 Abstract the functionality of iterating over mapped memory
8741 regions into a general purpose iterator function.
abf22e64 8742 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
8743 iterator for memory sections.
8744 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
8745 (solib_mappings_callback): New function, callback for above.
8746 (info_proc_mappings): Reimpliment using iterate_over_mappings.
8747 (info_mappings_callback): New function, callback for above.
8748
8749 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
8750
c5ad026a
MK
87512002-01-01 Mark Kettenis <kettenis@gnu.org>
8752
d2a7c97a
MK
8753 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
8754 * i386-tdep.c: Include "elf-bfd.h".
8755 (process_note_abi_tag_sections): New function.
8756 (i386_gdbarch_init): Add code to recognize various OS/ABI
8757 combinations.
8758
c5ad026a
MK
8759 * maint.c (_initialize_maint_cmds): Add missing \ in
8760 string-literal.
8761
a1a5b71e 8762For older changes see ChangeLog-2001
c906108c
SS
8763\f
8764Local Variables:
8765mode: change-log
8766left-margin: 8
8767fill-column: 74
8768version-control: never
8769End:
This page took 0.788292 seconds and 4 git commands to generate.