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