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