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