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