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