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