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