]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
* config.guess: Update to 2002-05-22 version.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
005ef3d2
ML
12002-05-22 Michal Ludvig <mludvig@suse.cz>
2
3 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4 fde->cie_ptr.
5 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6 (dwarf2_build_frame_info): Add offset to fde->initial_location
7 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
8 (execute_stack_op): Change type of 'result' from ULONGEST to
9 CORE_ADDR.
005ef3d2 10
fcf4f891
JT
112002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
12
13 * config/alpha/tm-nbsd.h: Include solib.h.
14
cfef91e4
JT
152002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
16
17 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
18 assumptions about the host's byte order.
19
9964235a
JT
202002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
21
22 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
23 to dependency list.
24 * alphanbsd-tdep.c: Include solib-svr4.h.
25 * shnbsd-tdep.c: Ditto.
26
9eeef8ef
JT
272002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
28
29 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
30 nbsd-tdep.h to dependency list.
31 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
32 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
33 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
34 nbsdaout.mh and nbsdelf.mh consistently.
35 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
36 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
37 nbsdaout.mt and nbsdelf.mh consistently.
38 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
39 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
40 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
41 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
42 a.out shared library stuff from here...
43 * config/nm-nbsdaout.h: ...to here.
44 * config/tm-nbsd.h: Remove.
45 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
46 * config/arm/nbsd.mh: Remove.
47 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
48 nbsd-tdep.o.
49 * config/arm/nbsdaout.mh: New file.
50 * config/arm/nbsdelf.mh: New file.
51 * config/arm/nm-nbsdaout.h: New file.
52 * config/i386/nbsd.mh: Remove.
53 * config/i386/nbsd.mt: Remove.
54 * config/i386/nbsdaout.mh: New file.
55 * config/i386/nbsdaout.mt: New file.
56 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
57 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
58 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
59 i386_register_u_addr): Remove.
60 * config/i386/nm-nbsdaout.h: New file.
61 * config/i386/nm-nbsdelf.h: Remove.
62 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
63 (USE_STRUCT_CONVENTION): Remove.
64 * config/i386/tm-nbsdaout.h: New file.
65 * config/i386/tm-nbsdelf.h: Remove.
66 * config/m68k/nbsd.mh: Remove.
67 * config/m68k/nbsd.mt: Remove.
68 * config/m68k/nbsdaout.mh: New file.
69 * config/m68k/nbsdaout.mt: New file.
70 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
71 * config/m68k/nm-nbsdaout.h: New file.
72 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
73 (IN_SOLIB_CALL_TRAMPOLINE): Define.
74 * config/ns32k/nbsd.mh: Remove.
75 * config/ns32k/nbsd.mt: Remove.
76 * config/ns32k/nbsdaout.mh: New file.
77 * config/ns32k/nbsdaout.mt: New file.
78 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
79 * config/ns32k/nm-nbsdaout.h: New file.
80 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
81 (IN_SOLIB_CALL_TRAMPOLINE): Define.
82 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
83 (SVR4_SHARED_LIBS): Remove.
84 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
85 * config/sparc/nbsd.mh: Remove.
86 * config/sparc/nbsd.mt: Remove.
87 * config/sparc/nbsdaout.mh: New file.
88 * config/sparc/nbsdaout.mt: New file.
89 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
90 * config/sparc/nbsdelf.mt: New file.
91 * config/sparc/nm-nbsdaout.h: New file.
92 * config/sparc/nm-nbsdelf.h: Remove.
93 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
94 * config/sparc/tm-nbsdaout.h: New file.
95
257ce470
JT
962002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
97
98 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
99 mipsnbsd-tdep.c
100 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
101
76a6d5fe
JT
1022002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
103
104 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
105 shnbsd-nat.c.
106 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
107
45888261
JT
1082002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
109
110 * NEWS: Note new MIPS NetBSD native configuration.
111 * configure.host (mips*-*-netbsd*): New host.
112 * configure.tgt (mips*-*-netbsd*): New target.
113 * mipsnbsd-nat.c: New file.
114 * mipsnbsd-tdep.c: New file.
115 * mipsnbsd-tdep.h: New file.
116 * config/mips/nbsd.mh: New file.
117 * config/mips/nbsd.mt: New file.
118 * config/mips/nm-nbsd.h: New file.
119 * config/mips/tm-nbsd.h: New file.
120
70f80edf
JT
1212002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
122
123 * Makefile.in (SFILES): Add osabi.c.
124 (COMMON_OBS): Add osabi.o.
125 (osabi.o): New dependency list.
126 * osabi.c: New file.
127 * osabi.h: New file.
128 * doc/gdbint.texinfo: Document new generic OS ABI framework.
129
130 * Makefile.in (alpha_tdep_h): Define and use instead of
131 alpha-tdep.h.
132 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
133 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
134 Remove.
135 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
136 * alpha-tdep.h: Include osabi.h.
137 (alpha_abi): Remove.
138 (gdbarch_tdep): Use generic OS ABI framework.
139 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
140 gdbarch_register_osabi.
141 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
142 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
143 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
144
145 * Makefile.in (sh_tdep_h): Add osabi.h.
146 * sh-tdep.h (sh_osabi): Remove.
147 (gdbarch_tdep): Use generic OS ABI framework.
148 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
149 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
150 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
151 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
152
153 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
154 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
155 gdbarch_register_osabi.
156 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
157 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
158 (get_elfosabi): Rename to...
159 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
160 ABI framework support routines.
161 (arm_gdbarch_init): Use generic OS ABI framework.
162 (arm_dump_tdep): Likewise.
163 (_initialize_arm_tdep): Likewise.
164 * arm-tdep.h: Include osabi.h.
165 (arm_abi): Remove.
166 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
167 osabi member.
168 (arm_gdbarch_register_os_abi): Remove prototype.
169 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
170 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
171
172 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
173 * mips-tdep.c: Include osabi.h.
174 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
175 OS ABI framework.
176
d194345b
KH
1772002-05-20 Kazu Hirata <kazu@cs.umass.edu>
178
179 * h8300-tdep.c: Fix formatting.
180
70c6b0d1
EZ
1812002-05-20 Elena Zannoni <ezannoni@redhat.com>
182
183 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
184 printing vector registers.
185
165b8e33
AC
1862002-05-19 Andrew Cagney <ac131313@redhat.com>
187
188 From Fernando Nasser:
189 * remote.c (remote_async_open_1): Re-throw the exception when the
190 connection fails.
191 (remote_cisco_open): Ditto.
192 (remote_open_1): Ditto.
193
36918e70
AC
1942002-05-19 Andrew Cagney <ac131313@redhat.com>
195
196 * remote.c (remote_start_remote_dummy): Add uiout parameter.
197 (remote_start_remote): Add uiout parameter. Pass through to
198 remote_start_remote_dummy.
199 (remote_open_1): Use catch_exception instead of catch_errors.
200 (remote_async_open_1): Ditto.
201 (remote_cisco_open): Ditto.
202
ae44c0c4
AC
2032002-05-19 Andrew Cagney <ac131313@redhat.com>
204
205 * remote.c (remote_start_remote): Replace PTR with void pointer.
206 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
207 static.
208
8efe637d
AC
2092002-05-18 Andrew Cagney <ac131313@redhat.com>
210
211 * gdb_indent.sh: Allow the script to be run in the sim directory.
212
2f1b5984
MK
2132002-05-18 Mark Kettenis <kettenis@gnu.org>
214
f0f625e2
MK
215 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
216 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
217
2f1b5984
MK
218 * corelow.c (core_open): Only call set_gdbarch_from_file if
219 exec_bfd is NULL.
220
fc974602
AV
2212002-05-17 Andrey Volkov <avolkov@transas.com>
222
223 * h8300-tdep.c: Add support of EXR register
224 * config/h8300/tm-h8300.h: Ditto.
225
906709f4
AV
2262002-05-17 Andrey Volkov <avolkov@transas.com>
227
228 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
229
6e591d68
AV
2302002-05-17 Andrey Volkov <avolkov@transas.com>
231
232 * h8300-tdep.c: Change literal regnums to REGNO.
233
84f0252a
JB
2342002-05-17 Jim Blandy <jimb@redhat.com>
235
e0e9281e
JB
236 * NEWS: Note addition of macro support.
237
84f0252a
JB
238 Expand preprocessor macros in C expressions.
239 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
240 (scan_macro_expansion, scanning_macro_expansion,
241 finished_macro_expansion): New function declarations.
242 (expression_macro_lookup_func, expression_macro_lookup_baton): New
243 variable declarations.
244 * parser-defs.h (expression_context_pc): New declaration.
245 * parse.c (expression_context_pc): New variable.
246 (parse_exp_1): Set expression_context_pc, as well as
247 expression_context_block.
248 * c-exp.y (yylex): If we're not already reading the result of a
249 macro expansion, try to macro-expand the next token. When we're
250 done scanning a macro expansion, switch back to the mainline text.
251 Commas and `if's in a macro's expansion don't terminate the input.
252 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
253 (macro_original_text, macro_expanded_text,
254 expression_macro_lookup_func, expression_macro_lookup_baton): New
255 variables.
256 (scan_macro_expansion, scanning_macro_expansion,
257 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
258 c_preprocess_and_parse): New functions.
259 (c_language_defn, cplus_language_defn, asm_language_defn): Call
260 c_preprocess_and_parse, instead of c_parse.
261 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
262 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
263
1c509ca8
JR
264Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
265
266 * sh-tdep.c (gdb_print_insn_sh64): Delete.
267 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
268 (sh_gdbarch_init): Always use gdb_print_insn_sh.
269
2250ee0c
CV
2702002-05-17 Corinna Vinschen <vinschen@redhat.com>
271
272 * NEWS: Add section for multi-arched targets. Add v850 to that section.
273
ab3b8126
JT
2742002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
275
276 * Makefile.in (sh_tdep_h): Define and use.
277 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
278 register enum): Move to...
279 * * sh-tdep.h: ...here.
280 * sh-tdep.c: Include sh-tdep.h.
281 * sh3-rom.c: Likewise.
282 * shnbsd-tdep.c: Likewise.
283
ed9d4749
MS
2842002-05-16 Michael Snyder <msnyder@redhat.com>
285
286 * arm-tdep.c: Spelling fix in comment.
287
2e276125
JB
2882002-05-16 Jim Blandy <jimb@redhat.com>
289
6821892e
JB
290 Add commands for manually expanding macros and showing their
291 definitions.
292 * macrocmd.c, macroscope.c, macroscope.h: New files.
293 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
294 (macroscope_h): New variable.
295 (HFILES_NO_SRCDIR): Add macroscope.h.
296 (COMMON_OBS): Add macrocmd.o, macroscope.o.
297 (macroscope.o, macrocmd.o): New rules.
298
2e276125
JB
299 Teach the Dwarf 2 reader to read macro information.
300 * dwarf2read.c: #include "macrotab.h".
301 (dwarf_macinfo_buffer): New variable.
302 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
303 dwarf_macinfo_size.
304 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
305 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
306 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
307 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
308 dwarf2_macro_spaces_in_definition): New complaints.
309 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
310 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
311 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
312 the partial symbol table.
313 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
314 from what's recorded in the partial symbol table.
315 (read_file_scope): If the compilation unit has a
316 `DW_AT_macro_info' attribute, read its macro information.
317 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
318
2f53fe6c
DJ
3192002-05-16 Daniel Jacobowitz <drow@mvista.com>
320
321 Fix PR gdb/546
322 * ser-tcp.c: Don't include <netinet/udp.h>.
323
2be99286
SC
3242002-05-16 Stephane Carrez <stcarrez@nerim.fr>
325
326 * MAINTAINERS: Update my email address.
327
c9af212b 3282002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
329
330 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
331 include file of the same name.
332
bf5f1a52
CV
3332002-05-16 Corinna Vinschen <vinschen@redhat.com>
334
335 * configure.tgt: Mark v850 as multi-arched.
336 * config/v850/tm-v850.h: Remove file.
337 * config/v850/v850.mt: Eliminate TM_FILE.
338
435e042a
CV
3392002-05-16 Corinna Vinschen <vinschen@redhat.com>
340
341 * v850-tdep.c: Full multi-arch.
342 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
343 Define GDB_MULTI_ARCH to 2.
344
9819c6c8
PM
3452002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
346
347 * p-exp.y (current_type): New static variable.
348 Carries the type of the expression at the position that is parsed.
349 (push_current_type, pop_current_type): Two new functions. Used
350 to store/restore current_type in expression on specific tokens.
c9af212b
RE
351 (search_field): New static variable. Set to one after parsing a point
352 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
353 (FIELDNAME): New token. After a point only a token belonging to
354 current_type type definition is allowed.
355 (all over token rules): reset and change current_type according
356 to rules.
357 (exp '[' rule): insert implicit array index field if
358 exp is a pascal string type.
359
3a06899a
CV
3602002-05-16 Corinna Vinschen <vinschen@redhat.com>
361
362 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
363 frame info. Use frame_info's saved_regs instead of matching member
364 in extra_frame_info throughout.
365 (v850_frame_init_saved_regs): New function.
366 (v850_init_extra_frame_info): Move most functionality into
367 v850_frame_init_saved_regs().
368 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
369 (v850_frame_find_saved_regs): Remove declaration.
370 (FRAME_FIND_SAVED_REGS): Remove definition.
371 (v850_frame_init_saved_regs): Add declaration.
372 (FRAME_INIT_SAVED_REGS): Add definition.
373
6ed14b0e
CV
3742002-05-16 Corinna Vinschen <vinschen@redhat.com>
375
376 * v850-tdep.c: Begin multi-arch'ing v850.
377 (v850_target_architecture_hook): Remove function.
378 (v850_gdbarch_init): New function. Add code previously in
379 v850_target_architecture_hook().
380 (_initialize_v850_tdep): Don't set target_architecture_hook.
381 Call register_gdbarch_init() instead.
382
42725910
DJ
3832002-05-16 Daniel Jacobowitz <drow@mvista.com>
384
385 * gdbtypes.h (struct cplus_struct_type): Remove args field.
386 * hpread.c (hpread_read_struct_type): Remove assignments to args.
387 (fixup_class_method_type): Likewise.
388
0bc68c49
DJ
3892002-05-15 Daniel Jacobowitz <drow@mvista.com>
390
391 From Martin Pool <mbp@samba.org>:
392 * gdbserver/server.c (gdbserver_usage): New function.
393 (main): Call it.
394
99d9066e
JB
3952002-05-15 Jim Blandy <jimb@redhat.com>
396
397 Add macro structures to GDB's symbol tables. Nobody puts anything
398 in them yet.
399 * symtab.h (struct symtab): New member: `macro_table'.
400 * buildsym.h (pending_macros): New global variable.
401 * buildsym.c: #include "macrotab.h".
402 (buildsym_init): Initialize `pending_macros'.
403 (end_symtab): If we found macro information while reading a CU's
404 debugging info, do build a symtab structure for it. Make the
405 symtab point to the macro information, and clear the
406 `pending_macros' pointer which held it while we were reading the
407 debug info.
408 (really_free_pendings): Free any pending macro table.
409 * objfiles.h (struct objfile): New member: `macro_cache'.
410 * objfiles.c (allocate_objfile): Set allocate and free functions
411 for the macro cache's objstack.
412 (free_objfile): Empty the macro cache's obstack.
413 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
414 set new allocate and free functions for it.
415 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
416 free functions for the macro cache's objstack. (Why is this
417 function building its own objfile?)
418 * symmisc.c (print_objfile_statistics): Print statistics on the
419 macro bcache.
420 * Makefile.in: Note that buildsym.o depends on macrotab.h.
421
c899585b
RE
4222002-05-15 Richard Earnshaw <rearnsha@arm.com>
423
424 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
425 (REGISTER_U_ADDR): Delete definition.
426 (arm_register_u_addr): Delete declaration.
427
a6cdd8c5
RE
4282002-05-15 Richard Earnshaw <rearnsha@arm.com>
429
430 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
431 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
432
fd3a5ca1
DJ
4332002-05-14 Daniel Jacobowitz <drow@mvista.com>
434
435 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
436 stop_at -> stop_pc.
437
c97dcfc7
AC
4382002-05-14 Andrew Cagney <ac131313@redhat.com>
439
440 * regcache.c (register_valid): Revise comments refering to "Not
441 available" and "unavailable".
442 * frame.c (frame_register_read): Ditto.
443 * findvar.c (value_of_register): Ditto.
444
93021b7d
AC
4452002-05-15 Andrew Cagney <cagney@redhat.com>
446
447 * Makefile.in (remote_sim_h): Replace remote-sim_h.
448 (remote-sim.o): Update dependencies.
449 (d10v-tdep.o): Specify dependencies.
450 (sim_d10v_h): Define.
451
a86bc61c
JB
4522002-05-14 Jim Blandy <jimb@redhat.com>
453
454 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
455 * macrotab.c (macro_lookup_inclusion, find_definition,
456 new_macro_table): Same.
457
458 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
459 not `! strcmp ()'. This is a dubious improvement.
460 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
461
462 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
463 although it's not necessary, to avoid a warning.
464
2fdde8f8
DJ
4652002-05-14 Daniel Jacobowitz <drow@mvista.com>
466
467 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
468 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
469 TYPE_INSTANCE_FLAGS.
470 (struct main_type): New.
471 (struct type): Move most members to struct main_type. Change
472 cv_type and as_type to new type_chain member. Add instance_flags.
473 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
474 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
475 (finish_cv_type): Remove prototype.
476 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
477 Set TYPE_CHAIN.
478 (alloc_type_instance): New function.
479 (smash_type): New function.
480 (make_pointer_type, make_reference_type, make_function_type)
481 (smash_to_member_type, smash_to_method_type): Call smash_type.
482 (make_qualified_type): New function.
483 (make_type_with_address_space): Call make_qualified_type.
484 (make_cv_type): Likewise.
485 (finish_cv_type): Remove unnecessary function.
486 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
487 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
488 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
489 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
490 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
491 * hpread.c (hpread_read_struct_type): Likewise.
492 * stabsread.c (read_struct_type): Likewise.
493
843fedf4
EZ
4942002-05-14 Elena Zannoni <ezannoni@redhat.com>
495
496 * configure.tgt: Add a catch all sh* target, for cases like
497 sh[2,3,4]-elf and sh-hms.
498
05a6c72c
KS
4992002-05-14 Keith Seitz <keiths@redhat.com>
500
501 * event-loop.c (create_file_handler): Don't do anything but
502 update data when we are given a fd which we are already
503 monitoring.
504
5d085aaf
ML
5052002-05-14 Michal Ludvig <mludvig@suse.cz>
506
507 * dwarf2cfi.c (context_cpy): Copy registers correctly.
508 (update_context): Use __func__ in warnings.
509
9db8d71f
DJ
5102002-05-14 Daniel Jacobowitz <drow@mvista.com>
511
512 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
513 and tcp_close to net_open and net_close.
514 (net_open): Accept "udp:" and "tcp:" specifications. Connect
515 using UDP if requested. Don't try to disable Nagle on UDP
516 sockets.
517 * remote.c (remote_serial_open): New function. Warn about UDP.
518 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
519
5dbc6baa
EZ
5202002-05-13 Elena Zannoni <ezannoni@redhat.com>
521
522 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
523
cc3023f7
EZ
5242002-05-13 Elena Zannoni <ezannoni@redhat.com>
525
526 * configure.tgt: Remove sh-hms target.
527 * MAINTAINERS: Don't list sh-hms as a separate target.
528
ec2bcbe7
JB
5292002-05-13 Jim Blandy <jimb@redhat.com>
530
531 Add first preprocessor macro-expansion files.
532 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
533 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
534 (splay_tree_h, macroexp_h, macrotab_h): New variable.
535 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
536 (COMMON_OBS): Add macrotab.o, macroexp.o.
537 (macroexp.o, macrotab.o): New rules.
538
6d531722
AC
5392002-05-13 Andrew Cagney <ac131313@redhat.com>
540
541 * config/m88k/tm-m88k.h: Update copyright.
542 (m88k_target_write_pc): Declare
543 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
544 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
545 (SHIFT_INST_REGS): Update definition.
546 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
547 using old definition of TARGET_WRITE_PC.
548 * regcache.c (generic_target_write_pc): Delete code handling
549 NNPC_REGNUM.
550 * gdbarch.sh (NNPC_REGNUM): Delete.
551 * gdbarch.h, gdbarch.c: Regenerate.
552
3e3f2739
RE
5532002-05-13 Richard Earnshaw <rearnsha@arm.com>
554
555 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
556 builtin reg number.
557
0004e5a2
DJ
5582002-05-13 Daniel Jacobowitz <drow@mvista.com>
559
560 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
561 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
562 (gen_address_of, gen_struct_ref, gen_repeat): Use type
563 access macros.
564 * c-typeprint.c (cp_type_print_method_args): Likewise.
565 (c_type_print_args): Likewise.
566 * d10v-tdep.c (d10v_push_arguments): Likewise.
567 (d10v_extract_return_value): Likewise.
568 * expprint.c (print_subexp): Likewise.
569 * gdbtypes.c (lookup_primitive_typename): Likewise.
570 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
571 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
572 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
573 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
574 (TYPE_VECTOR): Likewise.
575 * hpread.c (hpread_read_struct_type)
576 (fix_static_member_physnames, fixup_class_method_type)
577 (hpread_type_lookup): Likewise.
578 * mdebugread.c (parse_symbol, parse_type): Likewise.
579 * p-lang.c (is_pascal_string_type): Likewise.
580 * valops.c (hand_function_call): Likewise.
581 * x86-64-tdep.c (classify_argument): Likewise.
582
583 * hpread.c (hpread_read_function_type)
584 (hpread_read_doc_function_type): Call replace_type.
585 * dstread.c (create_new_type): Delete.
586 (decode_dst_structure, process_dst_function): Call alloc_type.
587 Use type access macros.
588
dff95cc7
MK
5892002-05-12 Mark Kettenis <kettenis@gnu.org>
590
591 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
592 the're not supported by the current architecture.
593 (i387_fill_fxsave): Likewise.
594
bbcd32ad
FF
5952002-05-12 Fred Fish <fnf@redhat.com>
596
597 * symfile.c (default_symfile_offsets): Arrange for uninitialized
598 sect_index_xxx members to index the first slot in section_offsets
599 if all of the section_offsets are zero.
600
89cf4787
MK
6012002-05-12 Mark Kettenis <kettenis@gnu.org>
602
603 * configure.tgt (sparc-*openbsd): Remove entry accidentially
604 checked in with last change.
605
1f77ffc5
MK
6062002-05-12 Mark Kettenis <kettenis@gnu.org>
607
608 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
609 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
610 config.sub.
611
89b8b4a9
DJ
6122002-05-12 Daniel Jacobowitz <drow@mvista.com>
613
614 * Makefile.in: Update dependencies.
615
14a5e767
AC
6162002-05-11 Andrew Cagney <ac131313@redhat.com>
617
618 * language.c (local_hex_string_custom): Simplify. Do not depend
619 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
620
621 * memattr.c (mem_info_command): Replace calls to
622 longest_local_hex_string and longest_local_hex_string_custom.
623 * buildsym.c (make_blockvector): Ditto.
624 * solib.c (info_sharedlibrary_command): Ditto.
625 * tracepoint.c (tracepoints_info): Ditto.
626 * symtab.c (print_msymbol_info): Ditto.
627
628 * language.c (local_hex_string): Delete.
629 (local_hex_string_custom): Delete.
630 (longest_local_hex_string): Rename to local_hex_string.
631 (longest_local_hex_string_custom): Rename to
632 local_hex_string_custom.
633 * language.h (local_hex_string): Change parameter type to LONGEST.
634 (local_hex_string_custom): Ditto.
635 (longest_local_hex_string): Delete declaration.
636 (longest_local_hex_string_custom): Ditto.
637
638 * solib.c: Update copyright.
639 * memattr.c: Update copyright.
640
13d01224
AC
6412002-05-11 Andrew Cagney <ac131313@redhat.com>
642
643 * arch-utils.h (legacy_register_to_value): Declare.
644 (legacy_value_to_register): Declare.
645 (legacy_convert_register_p): Declare.
646 * arch-utils.c (legacy_register_to_value): New function.
647 (legacy_value_to_register): New function.
648 (legacy_convert_register_p): New function.
649
650 * gdbarch.sh (REGISTER_TO_VALUE): Define.
651 (VALUE_TO_REGISTER): Define.
652 (CONVERT_REGISTER_P): Define.
653 * gdbarch.h, gdbarch.c: Regenerate.
654
655 * valops.c (value_assign): Use CONVERT_REGISTER_P and
656 VALUE_TO_REGISTER.
657 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
658 CONVERT_REGISTER_P.
659
4a1970e4
DJ
6602005-05-11 Daniel Jacobowitz <drow@mvista.com>
661 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
662
663 * Makefile.in: Update dependencies for valops.c.
664 * valops.c: Include "gdb_assert.h".
665 (typecmp): Skip THIS parameter to methods.
666 (find_method_list): Remove static_memfuncp argument,
667 update callers. Check for stub methods.
668 (find_value_oload_method_list): Don't set *static_memfuncp.
669 (find_overload_match): Don't check for stub methods. Assert
670 that methods are not stubbed. Handle static methods.
671 (value_find_oload_method_list): Remove static_memfuncp argument.
672 * gdbtypes.c (check_stub_method): Do not add THIS pointer
673 to the argument list for static stub methods.
674 * value.h (value_find_oload_method_list): Update prototype.
675
b2e75d78
AC
6762002-05-11 Andrew Cagney <ac131313@redhat.com>
677
678 * arch-utils.h (generic_register_size): Declare.
679 (generic_register_raw_size, generic_register_virtual_size): Delete
680 declarations.
681 * arch-utils.c (generic_register_raw_size): Delete.
682 (generic_register_size): New function.
683 (generic_register_virtual_size): Delete.
684
685 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
686 default generic_register_size.
687 * gdbarch.h, gdbarch.c: Re-generate.
688
689 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
690 register_virtual_size.
691 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
692 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
693
451fbdda
AC
6942002-05-11 Andrew Cagney <ac131313@redhat.com>
695
696 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
697 * gdbarch.h, gdbarch.c: Regenerate.
698 * gnu-v3-abi.c: Update copyright.
699 (vtable_address_point_offset): Update.
700 (gnuv3_rtti_type): Update.
701 (gnuv3_baseclass_offset): Update.
702 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
703 (init_fetch_link_map_offsets): Update.
704 * remote.c (get_remote_state): Update.
705
6d2f5cea
DJ
7062002-05-11 Daniel Jacobowitz <drow@mvista.com>
707
708 * TODO: Remove value_headof/value_from_vtable_info comment.
709 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
710 * values.c (value_headof, value_from_vtable_info): Delete.
711 * value.h (value_from_vtable_info): Delete prototype.
712
d2324da4
AC
7132002-05-11 Andrew Cagney <ac131313@redhat.com>
714
715 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
716 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
717 $(gdb_regex_h).
718 (gdb_assert_h): Define.
719 (gdb_wait_h): Define.
720 (gdb_regex_h): Define.
721
5c717440
DJ
7222002-05-11 Daniel Jacobowitz <drow@mvista.com>
723
724 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
725 * linespec.c (find_methods): Handle GCC 3.x template constructors.
726
6c7861b3
JT
7272002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
728
729 * nbsd-tdep.c: Fix comment.
730
ea5bc2a6
JT
7312002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
732
733 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
734 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
735 (nbsd-tdep.o): New dependency list.
736 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
737 nbsd-tdep.h.
738 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
739 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
740 * nbsd-tdep.c: New file.
741 * nbsd-tdep.h: New file.
742 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
743 nbsd-tdep.h.
744 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
745 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
746 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
747 * config/sh/nbsd.mt (TDEPFILES): Ditto.
748
b28da865
JT
7492002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
750
751 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
752 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
753 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
754 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
755 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
756 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
757
4b8ff1fa
JT
7582002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
759
760 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
761 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
762 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
763 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
764 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
765 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
766 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
767
dfe6eb1f
JT
7682002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
769
770 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
771 fetch_elfcore_registers to...
772 * i386nbsd-tdep.c: ...here.
773 (i386nbsd_use_struct_convention): Rename to...
774 (i386nbsd_aout_use_struct_convention): ...this.
775 (i386nbsd_supply_reg): New function.
776 (i386nbsd_fill_reg): New function.
777 (fetch_core_registers): Use i386nbsd_supply_reg.
778 (fetch_elfcore_registers): Likewise.
779 (_initialize_i386nbsd_tdep): New function.
780 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
781 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
782 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
783 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
784 (i386nbsd_aout_use_struct_convention): ...this.
785
20cb8cda
JT
7862002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
787
788 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
789 (store_inferior_registers): Use shnbsd_fill_reg.
790 * shnbsd-tdep.c (sh_nbsd_supply_registers,
791 sh_nbsd_supply_register): Collapse into...
792 (shnbsd_supply_reg): ...this.
793 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
794 (shnbsd_fill_reg): ...this.
795 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
796 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
797 (fetch_core_registers): Use shnbsd_supply_reg.
798 (fetch_elfcore_registers): Use shnbsd_supply_reg.
799 (sh_nbsd_core_fns): Rename to...
800 (shnbsd_core_fns): ...this.
801 (sh_nbsd_elfcore_fns): Rename to...
802 (shnbsd_elfcore_fns): ...this.
803 (sh_nbsd_init_abi): Rename to...
804 (shnbsd_init_abi): ...this.
805 (_initialize_sh_nbsd_tdep): Rename to...
806 (_initialize_shnbsd_tdep): ...this.
807 * shnbsd-tdep.h (sh_nbsd_supply_registers,
808 sh_nbsd_supply_register, sh_nbsd_fill_registers,
809 sh_nbsd_fill_register): Remove prototypes.
810 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
811
e750d25e
JT
8122002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
813
814 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
815 (i387-nat.o): Delete dependency list.
816 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
817 (x86-64-linux-nat.o): Likewise.
818 * i387-nat.c: Delete file, moving contents to...
819 * i387-tdep.c: ...here.
820 * i387-nat.h: Rename...
821 * i387-tdep.h: ...to this.
822 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
823 * i386-linux-nat.c: Likewise.
824 * i386bsd-nat.c: Likewise.
825 * i386gnu-nat.c: Likewise.
826 * i386nbsd-nat.c: Likewise.
827 * i386v4-nat.c: Likewise.
828 * x86-64-linux-nat.c: Likewise.
829 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
830 * config/i386/go32.mh (NATDEPFILES): Likewise.
831 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
832 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
833 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
834 * config/i386/linux.mh (NATDEPFILES): Likewise.
835 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
836 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
837 * config/i386/obsd.mh (NATDEPFILES): Likewise.
838 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
839
1aee598a
JT
8402002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
841
842 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
843 (alphanbsd-nat.o): Remove dependency list.
844 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
845 * alphanbsd-nat.c: Delete. Contents moved to...
846 * alphanbsd-tdep.c: ...here.
847 (_initialize_alphanbsd_tdep): Register core functions.
848 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
849
12bcb0fe
JT
8502002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
851
852 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
853 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
854 (alphanbsd-nat.o): Likewise.
855 (alphabsd-tdep.o): New dependency list.
856 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
857 (fill_gregset): Use alphabsd_fill_reg.
858 (supply_fpregset): Use alphabsd_supply_fpreg.
859 (fill_fpregset): Use alphabsd_fill_fpreg.
860 (fetch_inferior_registers): Use struct reg and struct fpreg
861 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
862 and alphabsd_supply_fpreg.
863 (store_inferior_registers): Use struct reg and struct fpreg
864 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
865 and alphabsd_fill_fpreg.
866 * alphabsd-tdep.c: New file.
867 * alphabsd-tdep.h: New file.
868 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
869 (fetch_elfcore_registers): Use alphabsd_supply_reg and
870 alphabsd_supply_fpreg.
871 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
872 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
873
361d1df0
EC
8742002-05-11 Eric Christopher <echristo@redhat.com>
875
876 * mips-tdep.c (mips_double_register_type): Fix thinko.
877 (mips_single_register_type): Ditto.
878 * MAINTAINERS: Add self.
879
92dd7cee
MK
8802002-05-11 Mark Kettenis <kettenis@gnu.org>
881
882 * i387-nat.c (i387_supply_register, i387_fill_fsave,
883 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
884 right thing on architectures with different endianness and/or
885 integer sizes.
886
e27da16d
JT
8872002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
888
889 From Christian Limpach <chris@Pin.LU>
890 * configure.in: Change sed expression which comments out
891 NATDEPFILES to also comment out continuation lines.
892 * configure: Regenerate.
893
ddde02bd
EZ
8942002-05-10 Elena Zannoni <ezannoni@redhat.com>
895
896 * sh-tdep.c: Clean up code erroneously reintroduced by previous
897 big patch.
898
1c922164
EZ
8992002-05-10 Elena Zannoni <ezannoni@redhat.com>
900
901 * sh-tdep.c: Include correct file.
902
283150cd
EZ
9032002-05-10 Elena Zannoni <ezannoni@redhat.com>
904
905 New support for sh64-elf (sh5) target.
906
907 * configure.tgt: For sh64-elf target, default to sh-elf.
908
909 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
910 (struct gdbarch_tdep): Add new fields for new registers and ABI
911 info.
361d1df0 912
283150cd
EZ
913 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
914 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
915 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
916 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
917 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
918 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
919 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
920 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
921 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
922 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
923 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
924 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
925 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
926 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
927 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
928 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
929 sh64_get_gdb_regnum, sh64_media_reg_base_num,
930 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
931 sign_extend, sh64_nofp_frame_init_saved_regs,
932 sh64_init_extra_frame_info, sh64_get_saved_register,
933 sh64_extract_struct_value_address, sh64_pop_frame,
934 sh64_push_arguments, sh64_extract_return_value,
935 sh64_store_return_value, sh64_show_media_regs,
936 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
937 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
938 sh_sh64_register_virtual_type,
939 sh_sh64_register_convert_to_virtual,
940 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
941 sh64_register_read, sh64_pseudo_register_write,
942 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
943 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
944 sh64_do_pseudo_register, sh_compact_do_registers_info,
945 sh64_do_registers_info, sh_gdbarch_init): New functions.
946
3117ed25
EZ
9472002-05-10 Elena Zannoni <ezannoni@redhat.com>
948
949 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
950
2654e6d4
DJ
9512002-05-10 Daniel Jacobowitz <drow@mvista.com>
952
953 * linespec.c (decode_line_1): Check for a double quote after
954 a filename correctly.
955
9ab3e532
JB
9562002-05-10 Jim Blandy <jimb@redhat.com>
957
958 Properly track the size of the current objfile's .debug_line section.
959 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
960 (DWARF_LINE_SIZE): New macro.
961 (dwarf2_build_psymtabs_hard): Record the line section's size in
962 the partial symbol table.
963 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
964 symbol table.
965
126fa72d
PS
9662002-05-10 Petr Sorfa <petrs@caldera.com>
967
968 * ia64-tdep.c: Handle breakpoints on L instruction type
969 in MLX instruction bundle by moving the breakpoint to
970 the third slot (X instruction type) as L holds only data.
971
1f077a3e
KB
9722002-05-10 Kevin Buettner <kevinb@redhat.com>
973
974 * dbxread.c (discarding_local_symbols_complaint): New complaint.
975 (process_one_symbol): Complain about discarding local symbols
976 due to a misplaced N_LBRAC entry.
977
8120c9d5 9782002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
979
980 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
981 * linespec.c (find_toplevel_char): '<' and '>' also increase and
982 decrease the depth we are at, in the case of templates.
361d1df0 983
67b2c998
DJ
9842002-05-09 Daniel Jacobowitz <drow@mvista.com>
985
986 * mips-tdep.c (mips_float_register_type): New function.
987 (mips_double_register_type): New function.
988 (mips_print_register): Use them.
989 (do_fp_register_row): Likewise.
990
fd326606
DJ
9912002-05-09 Daniel Jacobowitz <drow@mvista.com>
992
6609d9af 993 * signals/signals.c (signals): Remove conditional compilation around
fd326606 994 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 995 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 996
bef35864
MS
9972002-05-09 Michael Snyder <msnyder@redhat.com>
998
999 * remote-rdp.c (remote_rdp_can_run): Remove.
1000
c55a3f73
TT
10012002-05-09 Tom Tromey <tromey@redhat.com>
1002
1003 * jv-valprint.c (java_val_print): Handle `char' as a special case
1004 of TYPE_CODE_INT.
1005
b8d5e71d
MS
10062002-05-09 Michael Snyder <msnyder@redhat.com>
1007
1008 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
1009 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 1010 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 1011 str r(0123),[sp,#nn].
361d1df0 1012 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
1013 order-independent by placing it in a loop.
1014
e2cd42dd
MS
10152002-05-06 Michael Snyder <msnyder@redhat.com>
1016
1017 * stabsread.c (read_type): Add recognition for new attribute:
1018 "@V;" means that an array type is actually a vector.
1019 This is analogous to the vector flag that's been added to dwarf2.
1020
3ce1502b
MK
10212002-05-09 Mark Kettenis <kettenis@gnu.org>
1022
1023 * i386-tdep.h (i386_abi): New enum.
1024 (struct gdbarch_tdep): Replace os_ident member with abi.
1025 (i386_gdbarch_register_os_abi): New prototype.
1026 * i386-tdep.c (i386_abi_names): New array.
1027 (process_note_abi_tag_sections): Removed.
1028 (process_note_sections): New function.
1029 (i386_elf_abi_from_note, i386_elf_abi): New functions.
1030 (struct i386_abi_handler): New struct.
1031 (i386_abi_handler_list): New variable.
1032 (i386_gdbarch_register_os_abi): New function.
1033 (i386_gdbarch_init): Adapt for the changes given above.
1034
084c156a
DJ
10352002-05-08 Daniel Jacobowitz <drow@mvista.com>
1036
1037 * gregset.h: Say "GNU/Linux".
1038
6599f021
EZ
10392002-05-08 Elena Zannoni <ezannoni@redhat.com>
1040
1041 * gdbtypes.c : Add new builtin type for 64 bit vectors.
1042 (build_gdbtypes): Build builtin_type_v2_float.
1043 (_initialize_gdbtypes): Register new builtin type.
1044
40af4b0c
AC
10452002-05-08 Andrew Cagney <ac131313@redhat.com>
1046
1047 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
1048 (clear_gdbarch_swap): New function.
1049 (initialize_non_multiarch): Call.
1050 (gdbarch_update_p): Before calling init(), swap out and clear the
1051 existing architecture.
1052 * gdbarch.c: Regenerate.
1053
4fe84f46
JT
10542002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1055
1056 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
1057 alphanbsd-tdep.c.
1058
4015edd1
JT
10592002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1060
1061 * sh-nbsd-nat.c: Rename to...
1062 * shnbsd-nat.c: ...this.
1063 * sh-nbsd-tdep.c: Rename to...
1064 * shnbsd-tdep.c: ...this.
1065 * sh-nbsd-tdep.h: Rename to...
1066 * shnbsd-tdep.h: ...this.
1067 * config/sh/nbsd.mh: Use shnbsd-nat.o.
1068 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
1069
0e2bd219
RE
10702002-05-08 Richard Earnshaw <rearnsha@arm.com>
1071
1072 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
1073 concatenation for command help messages.
1074
13a38d45
JT
10752002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1076
1077 * NEWS: Note new sh*-*-netbsdelf* configuration.
1078 * configure.host: Set gdb_host_cpu to sh for all sh*.
1079 (sh*-*-netbsdelf*): New host.
1080 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
1081 (sh*-*-netbsdelf*): New target.
1082 * sh-nbsd-nat.c: New file.
1083 * sh-nbsd-tdep.c: New file.
1084 * sh-nbsd-tdep.h: New file.
1085 * config/sh/nbsd.mh: New file.
1086 * config/sh/nbsd.mt: New file.
1087 * config/sh/nm-nbsd.h: New file.
1088 * config/sh/tm-nbsd.h: New file.
1089
d658f924
JT
10902002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1091
1092 * sh-tdep.c (sh_osabi_names): Declare.
1093 (process_note_abi_tag_sections): New function.
1094 (get_elfosabi): Ditto.
1095 (sh_gdbarch_register_os_abi): Ditto.
1096 (sh_dump_tdep): Ditto.
1097 _initialize_sh_tdep): Use gdbarch_register to register
1098 sh_gdbarch_init and sh_dump_tdep.
1099 * config/sh/tm-sh.h (sh_osabi): Declare.
1100 (gdbarch_tdep): Add sh_osabi and osabi_name members.
1101
848cfffb
AC
11022002-05-07 Andrew Cagney <ac131313@redhat.com>
1103
1104 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
1105 (thumb_scan_prologue): Ditto.
1106 (arm_find_callers_reg): Ditto.
1107 (arm_frame_chain): Ditto.
1108 (arm_init_extra_frame_info): Ditto.
1109 (arm_frame_saved_pc): Ditto.
1110 (arm_pop_frame): Ditto.
1111 (arm_push_return_address): New function.
1112 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
1113 call_dummy_location, call_dummy_breakpoint_offset_p,
1114 call_dummy_breakpoint_offset, call_dummy_p,
1115 call_dummy_stack_adjust_p, call_dummy_words,
1116 sizeof_call_dummy_words, call_dummy_start_offset,
1117 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
1118 call_dummy_address, push_return_address and push_dummy_frame for
1119 generic dummy frames.
1120
e7d717c0
JT
11212002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
1122
1123 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
1124 size computation for alloca.
1125 (sh_fp_frame_init_saved_regs): Likewise.
1126
7bbcf283
RE
11272002-05-07 Richard Earnshaw <rearnsha@arm.com>
1128
1129 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
1130 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 1131 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
1132 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
1133 * remote-rdp.c (remote_rdp_fetch_register): Use
1134 ARM_MAX_REGISTER_RAW_SIZE.
1135 (remote_rdp_store_register): Likewise.
1136
4657573b
ML
11372002-05-07 Michal Ludvig <mludvig@suse.cz>
1138
361d1df0 1139 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
1140 added default labels to switch {} statements.
1141 * x86-64-tdep.c: Ditto.
1142 * x86-64-linux-nat.c: Ditto.
1143
010f3b2f
JT
11442002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
1145
1146 * solib.h: Protect against multiple inclusion.
1147
debd256d
JB
11482002-05-06 Jim Blandy <jimb@redhat.com>
1149
9ab3e532
JB
1150 Add first preprocessor macro-expansion files.
1151 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
1152 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
1153 (splay_tree_h, macroexp_h, macrotab_h): New variable.
1154 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
1155 (COMMON_OBS): Add macrotab.o, macroexp.o.
1156 (macroexp.o, macrotab.o): New rules.
1157
debd256d
JB
1158 Separate the job of reading the line number info statement program
1159 header (...expialidocious) out into its own function.
1160 * dwarf2read.c (struct line_head, struct filenames, struct
1161 directories): Replace with...
1162 (struct line_header): New structure, containing the full
1163 contents of the statement program header, including the
1164 include directory and file name tables.
1165 (read_file_scope): If we have line number info, instead of just
1166 calling dwarf_decode_lines to do all the work, call
1167 dwarf_decode_line_header first to get a `struct line_header'
1168 containing the data in the statement program header, and then
1169 pass that to dwarf_decode_lines, which will pick up where that
1170 left off. Be sure to clean up the `struct line_header' object.
1171 (dwarf_decode_line_header, free_line_header, add_include_dir,
1172 add_file_name): New functions.
1173 (dwarf_decode_lines): Move all the code to read the statement
1174 program header into dwarf_decode_line_header. Take the line
1175 header it built as the first argument, instead of the offset to
1176 the compilation unit's line number info. Use the new `struct
1177 line_header' type instead of the old structures. No need to do
1178 cleanups here now, since we don't allocate anything.
1179 (dwarf2_statement_list_fits_in_line_number_section,
1180 dwarf2_line_header_too_long): New complaints.
1181
ac3aafc7
EZ
11822002-05-06 Elena Zannoni <ezannoni@redhat.com>
1183
1184 * gdbtypes.c (init_vector_type): New function.
1185 (build_builtin_type_vec128): Simplify the representation of SIMD
1186 registers.
1187 (build_gdbtypes): Initialize new builtin vector types.
1188 (_initialize_gdbtypes): Register new vector types with gdbarch.
1189 (builtin_type_v4_float, builtin_type_v4_int32,
1190 builtin_type_v8_int16, builtin_type_v16_int8,
1191 builtin_type_v2_int32, builtin_type_v4_int16,
1192 builtin_type_v8_int8): New (renamed) SIMD types.
1193
13e49980
MK
11942002-05-06 Mark Kettenis <kettenis@gnu.org>
1195
1196 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
1197 (i387_fill_fxsave): Likewise.
1198
997b20b8
AO
11992002-05-05 Alexandre Oliva <aoliva@redhat.com>
1200
1201 * alpha-tdep.c (alpha_extract_return_value): Don't use
1202 non-constant array size in prototype.
1203
535c96ce
AC
12042002-05-04 Andrew Cagney <ac131313@redhat.com>
1205
1206 From Brian Taylor <briant at model dot com>:
1207 * ui-out.c (ui_out_field_core_addr): Use the function
1208 longest_local_hex_string_custom'to format addresses > 32 bits
1209 wide.
1210
1211 * ui-out.c (ui_out_field_core_addr): Update comment.
1212
bedfa57b
AC
12132002-05-04 Andrew Cagney <ac131313@redhat.com>
1214
1215 * stack.c (select_and_print_frame): Make static. Delete the
1216 parameter `level'.
1217 (func_command): Update call.
1218 (select_frame_command): Delete code computing the frame level.
1219 * frame.h (select_and_print_frame): Delete declaration.
1220
f621c63e
AC
12212002-05-04 Andrew Cagney <ac131313@redhat.com>
1222
1223 * sparc-tdep.c (sparc_get_saved_register): Comment why
1224 get_prev_frame call is safe.
1225
0f7d239c
AC
12262002-05-04 Andrew Cagney <ac131313@redhat.com>
1227
1228 * frame.h (select_frame): Delete level parameter.
1229 * stack.c (select_frame): Update. Use frame_relative_level to
1230 obtain the frame's level.
1231 (select_and_print_frame): Update call.
1232 (select_frame_command): Ditto.
1233 (up_silently_base): Ditto.
1234 (down_silently_base): Ditto.
1235 * ocd.c (ocd_start_remote): Ditto.
1236 * remote-rdp.c (remote_rdp_open): Ditto.
1237 * remote-mips.c (mips_initialize): Ditto.
1238 (common_open): Ditto.
1239 * remote-e7000.c (e7000_start_remote): Ditto.
1240 * m3-nat.c (select_thread): Ditto.
1241 * hppa-tdep.c (child_get_current_exception_event): Ditto.
1242 (child_get_current_exception_event): Ditto.
1243 * varobj.c (varobj_create): Ditto.
1244 (varobj_update): Ditto.
1245 (c_value_of_root): Ditto.
1246 * tracepoint.c (finish_tfind_command): Ditto.
1247 * corelow.c (core_open): Ditto.
1248 * arch-utils.c (generic_prepare_to_proceed): Ditto.
1249 * thread.c (info_threads_command): Ditto.
1250 (switch_to_thread): Ditto.
1251 * infrun.c (normal_stop): Ditto.
1252 (restore_selected_frame): Ditto.
1253 (restore_inferior_status): Ditto.
1254 * breakpoint.c (insert_breakpoints): Ditto.
1255 (watchpoint_check): Ditto.
1256 (bpstat_stop_status): Ditto.
1257 (do_enable_breakpoint): Ditto.
1258 * blockframe.c (flush_cached_frames): Ditto.
1259 (reinit_frame_cache): Ditto.
1260
71d6c7b1
AC
12612002-05-04 Andrew Cagney <ac131313@redhat.com>
1262
1263 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
1264 maintainer.
1265
cda6c68a
JB
12662002-05-04 Jim Blandy <jimb@redhat.com>
1267
1268 * gdbtypes.c (replace_type): Doc fix.
1269
5c1c87f0
AC
12702002-05-04 Andrew Cagney <ac131313@redhat.com>
1271
1272 * valprint.c (strcat_longest): Delete commented out function.
1273 Update copyright.
1274
cd9bfe15
AC
12752002-05-04 Andrew Cagney <ac131313@redhat.com>
1276
1277 * MAINTAINERS: Mark a29k as deleted.
1278 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
1279 Move new configurations to the top.
1280 * configure.tgt: Remove a29k.
1281 * config/a29k/tm-vx29k.h: Delete.
1282 * config/a29k/vx29k.mt: Delete.
1283 * config/a29k/tm-a29k.h: Delete.
1284 * config/a29k/a29k-udi.mt: Delete.
1285 * config/a29k/a29k.mt: Delete.
1286 * a29k-tdep.c: Delete.
1287 * remote-udi.c: Delete.
1288 * remote-mm.c: Delete.
1289 * remote-eb.c: Delete.
1290 * remote-adapt.c: Delete.
1291 * Makefile.in: Remove obsolete code.
1292 * gdbserver/Makefile.in: Ditto.
1293 * config/s390/s390x.mt: Ditto.
1294 * config/s390/s390.mt: Ditto.
1295 * config/sparc/sparclynx.mh: Ditto.
1296 * config/sparc/linux.mh: Ditto.
1297 * config/pa/hppaosf.mh: Ditto.
1298 * config/pa/hppabsd.mh: Ditto.
1299 * config/ns32k/nbsd.mt: Ditto.
1300 * config/mips/vr5000.mt: Ditto.
1301 * config/m68k/sun3os4.mh: Ditto.
1302 * config/m68k/nbsd.mt: Ditto.
1303 * config/m68k/m68klynx.mh: Ditto.
1304 * config/m32r/m32r.mt: Ditto.
1305 * config/i386/x86-64linux.mt: Ditto.
1306 * config/i386/nbsdelf.mt: Ditto.
1307 * config/i386/nbsd.mt: Ditto.
1308 * config/i386/i386lynx.mh: Ditto.
1309
bf0c5130
AC
13102002-05-04 Andrew Cagney <ac131313@redhat.com>
1311
1312 * target.c (debug_print_register): New function. Handle oversize
1313 registers.
1314 (debug_to_fetch_registers): Call.
1315 (debug_to_store_registers): Call.
1316
2ae1c2d2
JB
13172002-05-03 Jim Blandy <jimb@redhat.com>
1318
13a393b0
JB
1319 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
1320 (read_type): Doc fix.
1321 * gdbtypes.c (replace_type): Doc fix.
1322
2ae1c2d2
JB
1323 * stabsread.c (multiply_defined_struct): New complaint.
1324 (read_struct_type): If the type we were passed isn't empty, or
1325 incomplete, don't read the new struct type into it; complain,
1326 and return the original type unchanged. Take a new `type_code'
1327 argument, which is the type code for the new type.
1328 (read_type): Rather than storing the type's type code here, pass
1329 it as an argument to read_struct_type, and let that take care of
1330 storing it. That way, we don't overwrite the original type code,
1331 so read_struct_type can use it to decide whether we're overwriting
1332 something we shouldn't.
1333 (complain_about_struct_wipeout): New function.
1334
8de9bdc4
AC
13352002-05-03 Andrew Cagney <ac131313@redhat.com>
1336
1337 * gdbarch.sh: Assert that gdbarch is non-NULL.
1338 * gdbarch.c: Regenerate.
1339
f773fdbb
JM
13402002-05-03 Jason Merrill <jason@redhat.com>
1341
1342 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
1343 and return NULL.
1344
0e04a514
ML
13452002-05-03 Michal Ludvig <mludvig@suse.cz>
1346
1347 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
1348 (x86_64_dwarf2gdb_regno_map_length),
1349 (x86_64_dwarf2_reg_to_regnum): Added.
1350 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
1351 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
1352 (_initialize_x86_64_tdep): Synced with the change above.
1353 (x86_64_skip_prologue): Reformulated message.
1354
065432a8
PM
13552002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1356
1357 * f-exp.y: Also use new prev_lexptr variable
1358 to improve error reporting. Based on Michael Snyder
1359 2002-04-24 dated patch to c-exp.y.
1360 * jv-exp.y: Likewise.
1361 * m2-exp.y: Likewise.
1362
a3162708
EZ
13632002-05-02 Elena Zannoni <ezannoni@redhat.com>
1364
1365 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
1366 we are dealing with vectors.
1367
03620c38
PM
13682002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1369
1370 * config/m68k/tm-nbsd.h: Obvious fix,
1371 correct machine name.
1372
6604db2e
PM
13732002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1374
1375 * p-typeprint.c (pascal_type_print_base): Add support
1376 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
1377
0906b739
PM
13782002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1379
1380 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
1381 for fondamental pascal 'char' type.
1382
e2625b33
PM
13832002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1384
1385 * p-lang.h (is_pascal_string_type): Declaration changed,
1386 new sixth argument of type char ** added.
361d1df0 1387 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
1388 changed. Args length_pos, length_size, string_pos, char_size
1389 can now be NULL. New argument arrayname set to the field
1390 name of the char array. Return value set to char array
1391 field index plus one.
361d1df0 1392 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
1393 is_pascal_string_type function.
1394
cf17c188
AC
13952002-05-02 Andrew Cagney <cagney@redhat.com>
1396
1397 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
1398 <cagney@redhat.com> change.
1399 * gdbarch.c: Regenerate.
1400
52bca491
AC
14012002-05-02 Andrew Cagney <cagney@redhat.com>
1402
1403 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
1404 before probing for a new one. Detect errorenous gdbarch_init
1405 functions.
1406 * gdbarch.c: Regenerate.
1407
d5e72505
AC
14082002-05-01 Andrew Cagney <cagney@redhat.com>
1409
1410 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
1411 * config/mcore/tm-mcore.h: Ditto. Update copyright.
1412 * config/v850/tm-v850.h: Ditto. Update copyright.
1413
af566d9f
AC
14142002-04-30 Andrew Cagney <ac131313@redhat.com>
1415
1416 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
1417 current_gdbarch.
1418
880d85fa
MS
14192002-04-30 Michael Snyder <msnyder@redhat.com>
1420
94c30b78
MS
1421 * arm-tdep.c: Whitespace clean-ups.
1422 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
1423 should have been removed as part of 4/24 change.
1424
6f5987a6
KB
14252002-04-30 Kevin Buettner <kevinb@redhat.com>
1426
1427 * rs6000-tdep.c: Added comment describing how fpscr register
1428 numbers were chosen.
1429
1a113c93
MS
14302002-04-30 Michael Snyder <msnyder@redhat.com>
1431
1432 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
1433
9a6f53fe
EZ
14342002-04-29 Elena Zannoni <ezannoni@redhat.com>
1435
1436 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
1437 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
1438 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
1439
11ed25ac
KB
14402002-04-29 Kevin Buettner <kevinb@redhat.com>
1441
1442 From Louis Hamilton <hamilton@redhat.com>:
1443 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
1444 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
1445 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
1446 not bfd-private xcoff data, to determine wordsize.
1447 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
1448
ae232405
AC
14492002-04-29 Andrew Cagney <ac131313@redhat.com>
1450
1451 GDB 5.2 released from 5.2 branch.
1452
91fd20f7
ML
14532002-04-29 Michal Ludvig <mludvig@suse.cz>
1454
1455 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
1456 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
1457 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 1458
2dc5091b
EZ
14592002-04-29 Elena Zannoni <ezannoni@redhat.com>
1460
1461 * rs6000-tdep.c (rs6000_extract_return_value,
1462 rs6000_store_return_value): Handle returning vectors.
1463 (rs6000_gdbarch_init): Use
1464 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
1465 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1466 New function.
1467 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
1468 vectors.
1469 (ppc_sysv_abi_push_arguments): Handle vector parameters.
1470 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 1471
2b9848d8
PM
14722002-04-24 Pierre Muller <ics.u-strasbg.fr>
1473
1474 * hpread.c (hpread_psymtab_to_symtab_1,
1475 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
1476 with fprintf_unfiltered (gdb_stderr,...).
1477
f8d17dc5
PM
14782002-04-24 Pierre Muller <ics.u-strasbg.fr>
1479
1480 * remote-array.c (printf_monitor, write_monitor,
361d1df0 1481 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
1482 Replace fprintf (stderr,...
1483 with fprintf_unfiltered (gdb_stderr,....
1484 * remote-es.c: Likewise.
1485 * remote-os9k.c: Likewise.
1486 * remote-st.c: Likewise.
1487
2f2f1ad1
AS
14882002-04-28 Andreas Schwab <schwab@suse.de>
1489
1490 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
1491 linux-proc.o and gcore.o.
1492
b6779aa2
AC
14932002-04-26 Michal Ludvig <mludvig@suse.cz>
1494
1495 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
1496 code without frame pointers.
1497
7e57f5f4
AC
14982002-04-26 Andrew Cagney <ac131313@redhat.com>
1499
1500 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
1501 ON_STACK is needed.
1502
2ceb85d0
BE
15032002-04-26 Ben Elliston <bje@redhat.com>
1504
1505 * target.c (do_xfer_memory): Correct reference to the new option
1506 "trust-readonly-sections".
1507
f5f8a009
EZ
15082002-04-26 Elena Zannoni <ezannoni@redhat.com>
1509
1510 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
1511 * gdbtypes.c (recursive_dump_type): Output the vector flag.
1512 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
1513 vectors.
1514 (read_array_type): Record the fact that this array type is really a
1515 vector (i.e. are passed in by value).
1516
5868c862
JT
15172002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
1518
1519 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
1520 * alpha-tdep.c (alpha_sigcontext_addr): New function.
1521 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
1522 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
1523 * alpha-linux-tdep.c: Include frame.h.
1524 (alpha_linux_sigcontext_addr): New function.
1525 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
1526 alpha_linux_sigcontext_addr.
1527 * alpha-osf1-tdep.c: Include gdbcore.h.
1528 (alpha_osf1_sigcontext_addr): New function.
1529 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
1530 alpha_osf1_sigcontext_addr.
1531 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
1532 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
1533
bfb01f37
AC
15342002-04-26 Andrew Cagney <ac131313@redhat.com>
1535
361d1df0 1536 * stack.c (selected_frame_level):
bfb01f37
AC
1537 (select_frame): Do not set selected_frame_level.
1538 * frame.h (selected_frame_level): Delete declaration.
1539
15813d3f
AC
15402002-04-26 Andrew Cagney <ac131313@redhat.com>
1541
1542 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
1543 convert_from_func_ptr-addr when AIX / PowerOpen.
1544
6096c27a
AC
15452002-04-25 Andrew Cagney <ac131313@redhat.com>
1546
1547 * valops.c (hand_function_call): Call
1548 generic_save_call_dummy_addr.
1549 * frame.h (generic_save_call_dummy_addr): Declare.
1550 * blockframe.c (struct dummy_frame): Add fields call_lo and
1551 call_hi.
1552 (generic_find_dummy_frame): Check for PC in range call_lo to
1553 call_hi instead of entry_point_address.
1554 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
1555 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
1556 (generic_save_call_dummy_addr): New function.
1557
f510d44e
DM
15582002-04-24 David S. Miller <davem@redhat.com>
1559
1560 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
1561 sparc_skip_prologue.
1562 (sparc_skip_prologue): Kill frameless_p arg, and use line number
1563 information to find prologue when possible.
1564 (sparc_prologue_frameless_p): Call examine_prologue directly.
1565 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
1566 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
1567 second argument.
1568 (SKIP_PROLOGUE): Likewise.
1569
15d72a92
JT
15702002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1571
1572 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
1573 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
1574 indicate that the condition it was testing is always true.
1575 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
1576 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
1577 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
1578
accc6d1f
JT
15792002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1580
1581 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
1582 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
1583 tdep->jb_pc and tdep->jb_elt_size.
1584 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
1585 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
1586 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
1587 * alpha-nat.c (get_longjmp_target): Remove.
1588 (JB_ELEMENT_SIZE): Ditto.
1589 (JB_PC): Ditto.
1590 * alpha-tdep.c (alpha_get_longjmp_target): New function.
1591 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
1592 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
1593 to alpha_get_longjmp_target.
1594 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
1595 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
1596 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
1597
1bfdc549
AC
15982002-04-25 Andrew Cagney <ac131313@redhat.com>
1599
1600 * README: Update to GDB 5.2.
1601
1bd316f0
AC
16022002-04-25 Andrew Cagney <ac131313@redhat.com>
1603
1604 * gdbarch.sh (LC_ALL): Set to `c'.
1605
2e5ff58c
TR
16062002-04-25 Theodore A. Roth <troth@verinet.com>
1607
1608 * avr-tdep.c: Ran through gdb_indent.sh.
1609
e33ce519
TR
16102002-04-25 Theodore A. Roth <troth@verinet.com>
1611
1612 * MAINTAINERS: Add myself as AVR maintainer.
1613 * NEWS: Note new target avr.
1614
8818c391
TR
16152002-04-25 Theodore A. Roth <troth@verinet.com>
1616
1617 * Makefile.in: Add support for AVR target.
1618 * configure.tgt: Add support for AVR target.
1619 * avr-tdep.c: New file
1620 * config/avr/avr.mt: New file.
1621
79509c2d
TR
16222002-04-25 Theodore A. Roth <troth@verinet.com>
1623
1624 * MAINTAINERS: Add myself to write-after-approval.
1625
dac8068e
PM
16262002-04-24 Pierre Muller <ics.u-strasbg.fr>
1627
1628 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
1629 with fprintf_unfiltered (gdb_stderr,....
1630
25bf3106
PM
16312002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
1632
1633 Fix PR gdb/508.
1634 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
1635
24467a86
PM
16362002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
1637
1638 * p-exp.y: Also use new prev_lexptr variable
1639 to improve error reporting. Based on Michael Snyder
1640 2002-04-24 dated patch to c-exp.y.
1641
95b80706
JT
16422002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1643
1644 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
1645 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
1646 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
1647 to 0.
1648 * config/alpha/tm-alpha.h: Remove forward decls of struct type
1649 and struct value.
1650 (FUNCTION_START_OFFSET): Remove.
1651 (BREAKPOINT): Ditto.
1652
e90cc612
JT
16532002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1654
1655 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
1656 * NEWS: Ditto.
1657
6c72f9f9
JT
16582002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1659
1660 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
1661 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
1662 alpha_linux_pc_in_sigtramp.
1663 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
1664 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
1665 alpha_osf1_pc_in_sigtramp.
1666 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
1667 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
1668 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1669 alphafbsd_pc_in_sigtramp.
1670 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
1671 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1672 alphanbsd_pc_in_sigtramp.
1673 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
1674 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
1675
5e4f3379
JT
16762002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1677
1678 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
1679
da8ca43d
JT
16802002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1681
1682 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
1683 alphanbsd-tdep.c.
1684 (alphanbsd-nat.o): New dependency list.
1685 (alphanbsd-tdep.o): Ditto.
1686 * NEWS: Note new native NetBSD/alpha configuration.
1687 * alphanbsd-nat.c: New file.
1688 * alphanbsd-tdep.c: Ditto.
1689 * configure.host (alpha*-*-netbsd*): New host.
1690 * configure.tgt (alpha*-*-netbsd*): New target.
1691 * config/alpha/nbsd.mh: New file.
1692 * config/alpha/nbsd.mt: Ditto.
1693 * config/alpha/nm-nbsd.h: Ditto.
1694 * config/alpha/tm-nbsd.h: Ditto.
1695
36a6271d
JT
16962002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1697
1698 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
1699 (alpha-osf1-tdep.o): New dependency list.
1700 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
1701 and skip_sigtramp_frame members.
1702 * alpha-linux-tdep.c: Include gdbcore.h.
1703 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
1704 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
1705 * alpha-osf1-tdep.c: New file.
1706 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
1707 alpha-osf1-dep.c.
1708 (alpha_frame_past_sigtramp_frame): New function.
1709 (alpha_dynamic_sigtramp_offset): Ditto.
1710 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
1711 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
1712 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
1713 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
1714 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
1715 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
1716 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
1717 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
1718 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
1719 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
1720 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
1721 to find_solib_trampoline_target.
1722 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
1723 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
1724 (SKIP_TRAMPOLINE_CODE): Remove.
1725 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1726 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1727 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1728 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1729 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
1730 (PROC_SIGTRAMP_MAGIC): Ditto.
1731 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1732 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1733 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1734 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1735 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1736
2f4bc57b
JT
17372002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1738
1739 * NEWS: Note that Alpha targets are now multi-arch.
1740
665132f9
MS
17412002-04-24 Michael Snyder <msnyder@redhat.com>
1742
1743 * parser-defs.h (prev_lexptr): New external variable.
1744 * parse.c (parse_exp_1): Set prev_lexptr to null before
1745 calling the language-specific parser.
1746 * c-exp.y (yylex): Set prev_lexptr to start of current token.
1747 (yyerror): Use prev_lexptr in error reporting.
1748
32872fa7
DJ
17492002-04-24 Daniel Jacobowitz <drow@mvista.com>
1750
1751 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
1752 * gregset.h: If FILL_FPXREGSET is defined, provide
1753 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
1754 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
1755 is defined, call fill_fpxregset.
1756
57e76fac
MS
17572002-04-24 Roland McGrath <roland@frob.com>
1758
1759 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
1760 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
1761 (supply_gregset, supply_fpregset): New functions.
1762
1763 * gnu-nat.c (gnu_find_memory_regions): New function.
1764 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
1765 (gnu_xfer_memory): Add a cast.
1766
f43845b3
MS
17672002-04-24 Michael Snyder <msnyder@redhat.com>
1768
361d1df0 1769 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
1770 loop. Add handling for "str lr, [sp, #-4]!" and for saves
1771 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 1772 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
1773 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
1774 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
1775
a0abec03
AC
1776Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
1777
1778 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
1779 NUM_PSEUDO_REGS can be used.
1780
d7bd68ca
AC
17812002-04-24 Andrew Cagney <ac131313@redhat.com>
1782
1783 * arch-utils.h: Update copyright.
1784
1785 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
1786 * gdbarch.h, gdbarch.c: Re-generate.
1787
1788 * inferior.h (IN_SIGTRAMP): Delete definition.
1789 * arch-utils.c (legacy_pc_in_sigtramp): New function.
1790 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
1791
1792 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
1793 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
1794 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
1795 (find_proc_framesize): Ditto.
1796 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
1797 (alpha_init_extra_frame_info): Ditto.
1798 * infrun.c (handle_inferior_event): Ditto.
1799 (handle_inferior_event): Ditto.
1800 (check_sigtramp2): Ditto.
1801 * blockframe.c (create_new_frame): Ditto.
1802 (get_prev_frame): Ditto.
1803 * ppc-linux-tdep.c: Update comments.
1804 * i386-linux-tdep.c: Update comments.
1805 * breakpoint.c (bpstat_what): Update comment.
1806
d06f167a
ML
18072002-04-24 Michal Ludvig <mludvig@suse.cz>
1808
1809 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
361d1df0 1810 (regsets_store_inferior_registers): Removed cast to int from
d06f167a
ML
1811 ptrace() calls.
1812 * gdbserver/regcache.h: Added declaration of struct inferior_info.
1813
4867e41e
DM
18142002-04-24 David S. Miller <davem@redhat.com>
1815
21d83aa5
DM
1816 * i960-tdep.c (register_in_window_p): New function.
1817 (i960_find_saved_register): Use it instead of
1818 REGISTER_IN_WINDOW_P.
1819 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
1820
4867e41e
DM
1821 * symtab.h (find_stab_function_addr): Kill extern.
1822 * minsyms.c (find_stab_function_addr): Remove from here...
1823 * dbxread.c: ... to here, and mark it static.
1824
69cdf6a2
DM
18252002-04-20 David S. Miller <davem@redhat.com>
1826
1827 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
1828 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
1829
5a595886
DM
18302002-04-21 David S. Miller <davem@redhat.com>
1831
1832 * remote-vxsparc.c (vx_read_register): Fix typo, we want
1833 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
1834 (vx_write_register): Likewise.
1835
1da1a192
JB
18362002-04-23 J. Brobecker <brobecker@gnat.com>
1837
1838 * source.c (is_regular_file): New function.
1839 (openp): Check wether file to open is a regular file
1840 to avoid opening directories.
1841
baa6f10b
JT
18422002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1843
1844 * findvar.c (extract_signed_integer): Cast printf argument
1845 to suppress format warning.
1846 (extract_unsigned_integer): Likewise.
1847 * infcmd.c (registers_info): Likewise.
1848 * top.c (get_prompt_1): Likewise.
1849 * valops.c (value_assign): Likewise.
1850 * valprint.c (print_decimal): Likewise.
1851
b2c4da81
L
18522002-04-22 H.J. Lu (hjl@gnu.org)
1853
1854 * c-exp.y (typebase): Support
361d1df0 1855
b2c4da81
L
1856 [long|long long|short] [signed|unsigned] [int|]
1857
1858 and
1859
1860 signed [long|long long|short] int
1861
f267bd6a
JT
18622002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1863
1864 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
1865 and vax-tdep.h.
1866 * vax-tdep.h: New file.
1867 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
1868 Make several routines static.
1869 (vax_get_saved_register): New function.
1870 (vax_gdbarch_init): New function.
1871 (_initialize_vax_tdep): Register vax_gdbarch_init.
1872 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
1873 Remove macros now under the control of gdbarch.
1874
da3c6d4a
MS
18752002-04-22 Michael Snyder <msnyder@redhat.com>
1876
11d3b27d
MS
1877 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
1878 Some whitespace and coding standards tweaks.
da3c6d4a 1879
a33f7558
JT
18802002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1881
1882 * vax-tdep.c: Include regcache.h.
1883 (vax_call_dummy_words): New.
1884 (sizeof_vax_call_dummy_words): New.
1885 (vax_fix_call_dummy): New function.
1886 (vax_saved_pc_after_call): Ditto.
1887 * config/vax/tm-vax.h: Don't include regcache.h.
1888 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
1889 (CALL_DUMMY): Remove.
1890 (CALL_DUMMY_WORDS): Define.
1891 (SIZEOF_CALL_DUMMY_WORDS): Define.
1892 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
1893
47a73475
MS
18942002-04-18 Michael Snyder <msnyder@redhat.com>
1895
1896 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
1897
52efde73
JT
18982002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1899
1900 * vax-tdep.c (vax_frame_chain): New function.
1901 (vax_push_dummy_frame): Ditto.
1902 (vax_pop_frame): Ditto.
1903 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
1904 (FRAMELESS_FUNCTION_INVOCATION): Use
1905 generic_frameless_function_invocation_not.
1906 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
1907 (POP_FRAME): Use vax_pop_frame.
1908
ea74468c
JT
19092002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1910
1911 * vax-tdep.c (vax_store_struct_return): New function.
1912 (vax_extract_return_value): Ditto.
1913 (vax_store_return_value): Ditto.
1914 (vax_extract_struct_value_address): Ditto.
1915 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
1916 vax_store_struct_return.
1917 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
1918 (STORE_RETURN_VALUE): Use vax_store_return_value.
1919 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
1920
5516aa92
JT
19212002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1922
1923 * vax-tdep.c (vax_frame_saved_pc): New function.
1924 (vax_frame_args_address_correct): Ditto.
1925 (vax_frame_args_address): Ditto.
1926 (vax_frame_locals_address): Ditto.
1927 (vax_frame_num_args): Move code to be in proximity to
1928 other frame-related functions.
1929 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
1930 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
1931 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
1932 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
1933 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
1934
36af0b35
L
19352002-04-22 H.J. Lu (hjl@gnu.org)
1936
1937 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
1938 includedir.
1939
ab62c900
JT
19402002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1941
1942 * vax-tdep.c (vax_frame_init_saved_regs): New function.
1943 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
1944 (FRAME_INIT_SAVED_REGS): New macro.
1945
7232b100
JT
19462002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1947
1948 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
1949
b70d2aee
JT
19502002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1951
1952 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
1953 where needed.
1954 (fetch_osf_core_registers): Likewise.
1955 (supply_gregset): Likewise.
1956
a0e8a2d1 19572002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 1958
a0e8a2d1
JB
1959 * symfile.h (get_section_index): Define.
1960 * symfile.c (get_section_index): New function.
1961 * mdebugread.c (SC_IS_SBSS): New macro.
1962 (SC_IS_BSS): Return true for the scBss storage class only, as
1963 the scSBss storage class refers to the .sbss section.
1964 (parse_partial_symbols): Discard the symbols which associated
1965 section does not exist.
1966 Make sure to use the .sbss section index for symbols which
1967 storage class is scBss, rather than using the .bss section index.
1968
51eb8b08
JT
19692002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1970
1971 * vax-tdep.c: Update copyright years.
1972 (vax_register_name): New function.
1973 (vax_register_byte): Ditto.
1974 (vax_register_raw_size): Ditto.
1975 (vax_register_virtual_size): Ditto.
1976 (vax_register_virtual_type): Ditto.
1977 * config/vax/tm-vax.h: Update copyright years.
1978 (REGISTER_NAMES): Remove.
1979 (REGISTER_NAME): Define.
1980 (REGISTER_BYTE): Use vax_register_byte.
1981 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
1982 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
1983 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
1984
6cc1c0a8
AC
19852002-04-21 Andrew Cagney <ac131313@redhat.com>
1986
1987 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
1988 declaration
1989 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
1990
9319a2fe
DM
19912002-04-21 David S. Miller <davem@redhat.com>
1992
1993 * arch-utils.c (generic_prologue_frameless_p): Kill
1994 SKIP_PROLOGUE_FRAMELESS_P code.
1995 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
1996 references.
1997 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
1998 * arc-tdep.c (arc_prologue_frameless_p): Implement.
1999 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
2000 references.
2001 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
2002 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
2003 (sparc_gdbarch_init): Pass it to
2004 set_gdbarch_prologue_frameless_p.
a0e8a2d1 2005
e9ed6d01
JT
20062002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2007
2008 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
2009 (alphabsd-nat.o): New dependency list.
2010
36012033
JT
20112002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2012
2013 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
2014 alphafbsd-tdep.c.
2015 (alpha-linux-tdep.o): New dependency list.
2016 (alphafbsd-tdep.o): Likewise.
2017
3379287a
JT
20182002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2019
2020 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
2021 to here...
2022 * alpha-tdep.c: ...from here.
2023 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
2024
4bcbd6cb
JT
20252002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2026
2027 * config/alpha/tm-alpha.h: Move alpha_software_single_step
2028 prototype from here...
2029 * alpha-tdep.h: ...to here.
2030
b31da25e
AC
20312002-04-21 Andrew Cagney <ac131313@redhat.com>
2032
2033 * frame.h (selected_frame_level): Document as deprecated.
2034 (frame_relative_level): Declare.
2035 * stack.c (frame_relative_level): New function.
2036 (selected_frame_level): Document as deprecated.
2037 (select_frame): Do not set the selected_frame_level.
2038
2039 * stack.c (frame_info, record_selected_frame): Update.
2040 (frame_command, current_frame_command): Update.
2041 (up_silently_base, up_command, down_silently_base): Update.
2042 (down_command): Update.
2043 * inflow.c (kill_command): Update.
2044 * tracepoint.c (finish_tfind_command): Update.
2045 * corelow.c (core_open): Update.
2046 * thread.c (info_threads_command): Update.
2047 (do_captured_thread_select): Update.
2048 * infcmd.c (finish_command): Update.
2049 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
2050
9c1d6fe5
JT
20512002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2052
2053 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
2054
ab89facf
AC
20552002-04-21 Andrew Cagney <ac131313@redhat.com>
2056
2057 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
2058 type const.
2059
82a4efa1
JT
20602002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2061
2062 * alphafbsd-tdep.c: Update copyright years. Include
2063 alpha-tdep.h.
2064 (alphafbsd_use_struct_convention): Make static.
2065 (alphafbsd_init_abi): New function.
2066 (_initialize_alphafbsd_tdep): New function.
2067 * config/alpha/tm-fbsd.h: Update copyright years.
2068 (USE_STRUCT_CONVENTION): Remove.
2069
44dffaac
JT
20702002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2071
2072 * alpha-tdep.c (alpha_abi_handler): New structure to describe
2073 an Alpha ABI variant.
2074 (alpha_abi_handler_list): Declare.
2075 (alpha_gdbarch_register_os_abi): New function.
2076 (alpha_gdbarch_init): Give registered ABI variant handlers a
2077 chance to tweak the gdbarch once we have set up defaults.
2078 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
2079
65585be4
JT
20802002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2081
2082 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
2083 to standard_coerce_float_to_double.
2084 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
2085
d9b023cc
JT
20862002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2087
2088 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
2089 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
2090 from gdbarch_tdep rather than a constant.
2091 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
2092 the default text address for all Alpha Unix ABIs.
2093 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
2094 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
2095
dc129d82
JT
20962002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2097
2098 * alpha-tdep.h: New file. Includes several Alpha target constants
2099 taken from...
2100 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
2101 let gdbarch deal with.
2102 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
2103 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
2104 to dependency list.
2105 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
2106 Alpha target register names.
2107 * alphabsd-nat.c: Likewise.
2108 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
2109 Alpha target register names. Make serveral routines static.
2110 (alpha_get_saved_register): New function.
2111 (alpha_abi_names): New.
2112 (process_note_abi_tag_sections): New function.
2113 (get_elfosabi): New function.
2114 (alpha_gdbarch_init): New function.
2115 (alpha_dump_tdep): New function.
2116 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
2117
d49d1e0a
AC
21182002-04-21 Andrew Cagney <ac131313@redhat.com>
2119
2120 * frame.c (find_saved_register): Delete #ifdef
2121 HAVE_REGISTER_WINDOWS code.
2122 * config/sparc/tm-sparc.h: Update comments.
2123 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
2124
92e8c9ed
AC
21252002-04-21 Andrew Cagney <ac131313@redhat.com>
2126
2127 * i960-tdep.c (i960_find_saved_register): New function.
2128 (i960_get_saved_register): New function.
2129 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
2130 (i960_get_saved_register): Declare.
2131 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
2132
e1925118
DM
21332002-04-20 David S. Miller <davem@redhat.com>
2134
2135 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
2136
29673b29
AC
21372002-04-20 Andrew Cagney <ac131313@redhat.com>
2138
2139 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
2140 instead of NUM_PSEUDO_REGS.
2141
6c86dcd5
DM
21422002-04-20 David S. Miller <davem@redhat.com>
2143
2144 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
2145 GDB_MULTI_ARCH_PARTIAL
2146 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
2147 define, let tm-sp64.h do it.
2148
aa40ec90
JT
21492002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
2150
2151 * frame.c (find_saved_register): Avoid a NULL pointer
2152 dereference and actually walk the frame list.
2153
0f79675b
AC
21542002-04-20 Andrew Cagney <ac131313@redhat.com>
2155
2156 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
2157 sorted in most most-recent-used order. Document.
2158 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 2159
c04a1aa8
DJ
21602002-04-20 Daniel Jacobowitz <drow@mvista.com>
2161
2162 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
2163 (add_inferior): Call create_register_cache.
2164 (clear_inferiors): Call free_register_cache.
2165 (inferior_regcache_data, set_inferior_regcache_data): New functions.
2166 * gdbserver/regcache.c (struct inferior_regcache_data): New.
2167 (registers): Remove.
2168 (get_regcache): New function.
2169 (create_register_cache, free_register_cache): New functions.
2170 (set_register_cache): Don't initialize the register cache here.
2171 (registers_to_string, registers_from_string, register_data): Call
2172 get_regcache.
2173 * gdbserver/regcache.h: Add prototypes.
2174 * gdbserver/server.h: Likewise.
2175
611cb4a5
DJ
21762002-04-20 Daniel Jacobowitz <drow@mvista.com>
2177
2178 * gdbserver/mem-break.c: New file.
2179 * gdbserver/mem-break.h: New file.
2180 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
2181 dependencies.
2182 * gdbserver/inferiors.c (struct inferior_info): Add target_data
2183 member.
2184 (clear_inferiors): Free target_data member if set.
2185 (inferior_target_data, set_inferior_target_data): New functions.
2186 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
2187 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
2188 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
2189 (struct inferior_linux_data): New.
2190 (linux_create_inferior): Use set_inferior_target_data.
2191 (linux_attach): Likewise. Call add_inferior.
2192 (linux_wait_for_one_inferior): New function.
2193 (linux_wait): Call it.
2194 (linux_write_memory): Add const.
2195 (initialize_low): Call set_breakpoint_data.
2196 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
2197 handling members.
2198 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
2199 call.
2200 * gdbserver/server.h: Include mem-break.h. Update inferior.c
2201 prototypes.
2202 * gdbserver/target.c (read_inferior_memory)
2203 (write_inferior_memory): New functions.
2204 * gdbserver/target.h (read_inferior_memory)
2205 (write_inferior_memory): Change macros to prototypes.
2206 (struct target_ops): Update comments. Add const to write_memory
2207 definition.
2208
f91305dd 22092002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
2210
2211 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
2212 instead of ->prev.
2213 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
2214 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
2215 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
2216 instead of ->prev.
2217
73d322b1
EZ
22182002-04-19 Elena Zannoni <ezannoni@redhat.com>
2219
2220 Fix PR gdb/471.
2221 * gdbtypes.c (init_simd_type): Rewrite using new functions.
2222 (build_builtin_type_vec128): Ditto.
2223 (append_composite_type_field): Fix calculation of type length in
2224 union case.
2225
ccd9a834
EZ
22262002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
2227
2228 * config/djgpp/README: Update.
2229
2230 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
2231 compiler warnings.
2232
a57f9e49
JT
22332002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
2234
2235 * alpha-tdep.c (setup_arbitrary_frame): Rename...
2236 (alpha_setup_arbitrary_frame): ...to this.
2237 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
2238 for alpha_setup_arbitrary_frame.
2239
f4f9705a
AC
22402002-04-18 Andrew Cagney <cagney@redhat.com>
2241
2242 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
2243 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 2244
f4f9705a
AC
2245 * defs.h (breakpoint_from_pc_fn): Delete type definition.
2246 * target.h (memory_breakpoint_from_pc): Update declaration.
2247 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
2248
2249 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
2250 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
2251 * mem-break.c (memory_breakpoint_from_pc): Ditto.
2252 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
2253 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
2254 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
2255 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
2256 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
2257 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
2258 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
2259 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
2260 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
2261
2262 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
2263 const pointer.
2264 * monitor.c (monitor_insert_breakpoint): Ditto.
2265 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
2266
2267 * config/mcore/tm-mcore.h: Update copyright.
2268 * mem-break.c: Ditto.
2269 * xstormy16-tdep.c: Ditto.
2270
29f319b8
PM
22712002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
2272
2273 * p-exp.y: Add precedence rule for '^' token.
2274 This removes the shift/reduce conflicts.
2275 Remove the comment concerning these shift/reduce conflicts.
2276
ebeac11a
EZ
22772002-04-18 Elena Zannoni <ezannoni@redhat.com>
2278
2279 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
2280 (registers_powerpc_nofp): New register set for processors
2281 without floating point unit.
2282
27c31547
DM
22832002-04-18 David S. Miller <davem@redhat.com>
2284
2285 * MAINTAINERS: Add myself to write-after-approval.
2286
47a73475
MS
22872002-04-17 Michael Snyder <msnyder@redhat.com>
2288
2289 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
2290
953836b2
AC
22912002-04-17 Andrew Cagney <ac131313@redhat.com>
2292
2293 * rs6000-tdep.c (frame_initial_stack_address): Use
2294 frame_register_read to read the alloca_reg.
2295
8b0d4340
AC
22962002-04-17 Andrew Cagney <ac131313@redhat.com>
2297
2298 * frame.c (find_saved_register): Find saved registers in the next
2299 not prev frame.
2300 Fix PR gdb/365.
2301
d8864532
AC
23022002-04-17 Andrew Cagney <ac131313@redhat.com>
2303
2304 * gdbarch.sh (LANG): Set to ``c''.
2305
36cc83a3 23062002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 2307
36cc83a3 2308 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 2309
2f4150cc 23102002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
2311
2312 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
2313 Update copyright.
2314
628703c6 2315 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 2316 Also fix PR gdb/391.
361d1df0 2317
56157b4a
AC
23182002-04-14 Andrew Cagney <ac131313@redhat.com>
2319
2320 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
2321 * aclocal.m4, configure: Re-generate.
2322 Fix PR gdb/391.
361d1df0 2323
6d1e3329
EZ
23242002-04-14 Elena Zannoni <ezannoni@redhat.com>
2325
2326 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
2327 instead of tm_print_insn.
2328
cb06fa07
EZ
23292002-04-14 Elena Zannoni <ezannoni@redhat.com>
2330
2331 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
2332
f208ba17
AC
23332002-04-14 Andrew Cagney <ac131313@redhat.com>
2334
2335 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
2336 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
2337 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
2338
20f01a46
DH
23392002-04-12 Don Howard <dhoward@redhat.com>
2340
2341 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
2342 max_user_call_depth.
2343 (init_cmd_lists): Initialize the new value;
2344 * cli/cli-script.c (execute_user_command): Limit the call depth of
2345 user defined commands. This avoids a core-dump when user commands
2346 are infinitly recursive.
2347
a88376a3
KB
23482002-04-12 Kevin Buettner <kevinb@redhat.com>
2349
2350 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
2351 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
2352 from tdep struct instead of DEFAULT_LR_SAVE.
2353 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
2354 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
2355 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
2356
f2172603
MS
23572002-04-12 Michael Snyder <msnyder@redhat.com>
2358
694f61fb 2359 * Remote.c: Spelling fix.
20fe79c8
MS
2360 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
2361 If no symbol found for "sbrk", try "_sbrk".
2362 (make_output_phdrs): Use bfd_section_name.
2363 (gcore_copy_callback): Use bfd_section_name.
62995fc4 2364 * eval.c: Indentation fix-ups.
169a7369
MS
2365 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
2366 in case it gets applied to an address that is already
2367 in the instruction space.
de74f71f
MS
2368 * cli/cli-decode.c (help_list): Allow long lines to wrap.
2369 * symfile.c: Fix indentation, long lines.
f2172603
MS
2370 * source.c: White space fix-up.
2371
cda5a58a
AC
23722002-04-12 Andrew Cagney <cagney@redhat.com>
2373
2374 * defs.h (read_relative_register_raw_bytes): Delete declaration.
2375 * frame.c (frame_register_read): New function. Return non-zero on
2376 success.
2377 (read_relative_register_raw_bytes_for_frame): Delete.
2378 (read_relative_register_raw_bytes): Delete.
2379 * frame.h (frame_register_read): Declare.
2380 * d30v-tdep.c: Update Copyright. Use frame_register_read.
2381 * sh-tdep.c: Ditto.
2382 * infcmd.c (do_registers_info): Ditto.
2383 * hppa-tdep.c: Ditto.
2384 * rs6000-tdep.c: Ditto.
2385 * h8500-tdep.c: Ditto.
2386 * mips-tdep.c: Ditto.
2387 * h8300-tdep.c: Ditto.
2388 * z8k-tdep.c: Ditto.
2389
2ea5f656
KB
23902002-04-12 Kevin Buettner <kevinb@redhat.com>
2391
2392 From Jimi X <jimix@watson.ibm.com>:
2393 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
2394 64-bit SysV ABI.
2395
27b15785
KB
23962002-04-12 Kevin Buettner <kevinb@redhat.com>
2397
2398 From Jimi X <jimix@watson.ibm.com>:
2399 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
2400 bfd info.
2401
5d57ee30
KB
24022002-04-12 Kevin Buettner <kevinb@redhat.com>
2403
2404 From Jimi X <jimix@watson.ibm.com>:
2405 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
2406 register sets for these processor variants.
2407
bc1e36ca
DJ
24082002-04-11 Daniel Jacobowitz <drow@mvista.com>
2409
2410 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
2411 registers which are allowed to fail to store.
2412 * gdbserver/linux-low.h (linux_target_ops): Likewise.
2413 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
2414 (ppc_cannot_store_register): FPSCR may not be storable.
2415 * regformats/reg-ppc.dat: Support FPSCR.
2416
e3f36dbd
KB
24172002-04-11 Kevin Buettner <kevinb@redhat.com>
2418
2419 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
2420 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
2421 Add fpscr as an invalid/unfetchable register.
2422 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
2423 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
2424 (fill_fpregset): Add support for register fpscr.
2425 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
2426 (fill_gregset): Account for the fact that register ``mq'' might
2427 not exist.
2428 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
2429 (registers_power): Add fpscr to register set at slot 71.
2430 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
2431 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
2432
943c9c25
MS
24332002-04-11 Michael Snyder <msnyder@redhat.com>
2434
2435 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
2436 * configure: Regenerate.
2437 * config.in: Regenerate.
2438 * acconfig.h: Add define for _SYSCALL32.
2439 * core-sol2.c: Remove #define _SYSCALL32.
2440 * solib-legacy.c: Remove #define _SYSCALL32.
2441
d8c0a2e7
AC
24422002-04-10 Andrew Cagney <ac131313@redhat.com>
2443
2444 * stack.c (select_frame): Cleanup internal error message, do not
2445 use %p.
2446
7cc19214
AC
24472002-04-10 Andrew Cagney <ac131313@redhat.com>
2448
2449 * stack.c (select_frame): Check that selected_frame and the
2450 specified level are as expected.
2451 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
2452 Update copyright.
2453 * frame.h (struct frame_info): Add field `level'. Update
2454 copyright.
2455 Work-in-progress PR gdb/464.
2456
67a2b77e
AC
24572002-04-10 Andrew Cagney <ac131313@redhat.com>
2458
2459 * maint.c (maint_print_section_info): Rename print_section_info.
2460 (print_bfd_section_info, print_objfile_section_info): Update.
2461 * inferior.h (struct gdbarch): Add opaque declaration.
2462 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
2463 * gdbarch.h: Regenerate.
2464
8cfda98c
ML
24652002-04-10 Michal Ludvig <mludvig@suse.cz>
2466
2467 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
2468 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
2469 (kernel_u_size): Added.
2470 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
2471 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
2472
ca439ad2 24732002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 2474
ca439ad2
JI
2475 * valarith.c (find_size_for_pointer_math): New function, either returns
2476 the size for a pointer's target, returns 1 for void *, or errors for
2477 incomplete types.
2478 (value_add, value_sub): use find_size_for_pointer_math.
2479
2f2893d9
DJ
24802002-04-09 Daniel Jacobowitz <drow@mvista.com>
2481
2482 * linux-low.c (linux_look_up_symbols): New hook.
2483 (linux_target_ops): Add linux_look_up_symbols.
2484 * remote-utils.c (decode_address): New function.
2485 (look_up_one_symbol): New function.
2486 * server.c (handle_query): Call target look_up_symbols hook.
2487 * server.h (look_up_one_symbol): Add prototype.
2488 * target.h (struct target_ops): Add look_up_symbols hook.
2489
2ec06d2e
DJ
24902002-04-09 Daniel Jacobowitz <drow@mvista.com>
2491
d64b8841
DJ
2492 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
2493 * ChangeLog: Correct paths in last ChangeLog entry.
2494
24952002-04-09 Daniel Jacobowitz <drow@mvista.com>
2496
2497 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
2498 (struct linux_target_ops): New.
2499 (extern the_low_target): New.
d64b8841 2500 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
2501 (register_addr): Use the_low_target explicitly.
2502 (fetch_register): Likewise.
2503 (usr_fetch_inferior_registers): Likewise.
2504 (usr_store_inferior_registers): Likewise.
d64b8841 2505 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
2506 (arm_num_regs): Define.
2507 (arm_regmap): Renamed from regmap, made static.
2508 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
2509 made static.
2510 (arm_cannot_store_register): Renamed from cannot_store_register,
2511 made static.
2512 (the_low_target): New.
d64b8841 2513 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
2514 (i386_num_regs): Define.
2515 (i386_regmap): Renamed from regmap, made static.
2516 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
2517 made static.
2518 (i386_cannot_store_register): Renamed from cannot_store_register,
2519 made static.
2520 (the_low_target): New.
d64b8841 2521 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
2522 (ia64_num_regs): Define.
2523 (ia64_regmap): Renamed from regmap, made static.
2524 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
2525 made static.
2526 (ia64_cannot_store_register): Renamed from cannot_store_register,
2527 made static.
2528 (the_low_target): New.
d64b8841 2529 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
2530 (m68k_num_regs): Define.
2531 (m68k_regmap): Renamed from regmap, made static.
2532 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
2533 made static.
2534 (m68k_cannot_store_register): Renamed from cannot_store_register,
2535 made static.
2536 (the_low_target): New.
d64b8841 2537 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
2538 (mips_num_regs): Define.
2539 (mips_regmap): Renamed from regmap, made static.
2540 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
2541 made static.
2542 (mips_cannot_store_register): Renamed from cannot_store_register,
2543 made static.
2544 (the_low_target): New.
d64b8841 2545 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
2546 (ppc_num_regs): Define.
2547 (ppc_regmap): Renamed from regmap, made static.
2548 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
2549 made static.
2550 (ppc_cannot_store_register): Renamed from cannot_store_register,
2551 made static.
2552 (the_low_target): New.
d64b8841 2553 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
2554 (s390_num_regs): Define.
2555 (s390_regmap): Renamed from regmap, made static.
2556 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
2557 made static.
2558 (s390_cannot_store_register): Renamed from cannot_store_register,
2559 made static.
2560 (the_low_target): New.
d64b8841 2561 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
2562 (sh_num_regs): Define.
2563 (sh_regmap): Renamed from regmap, made static.
2564 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
2565 made static.
2566 (sh_cannot_store_register): Renamed from cannot_store_register,
2567 made static.
2568 (the_low_target): New.
d64b8841 2569 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
2570 (the_low_target): New.
2571
96cb11df
AC
25722002-04-09 Andrew Cagney <ac131313@redhat.com>
2573
2574 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
2575 override FP_REGNUM with frame->fp. Update copyright.
2576 * parse.c (num_std_regs, std_regs): Delete.
2577 (target_map_name_to_register): Do not search std_regs. Update
2578 function description.
2579 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
2580 declarations. Update copyright.
2581 Fix PR gdb/251.
361d1df0 2582
c3a3ccc7
DJ
25832002-04-09 Daniel Jacobowitz <drow@mvista.com>
2584
2585 * gdbserver/Makefile.in: Add stamp-h target.
2586 * gdbserver/configure.in: Create stamp-h.
2587 * gdbserver/configure: Regenerated.
2588
ce3a066d
DJ
25892002-04-09 Daniel Jacobowitz <drow@mvista.com>
2590
2591 * gdbserver/inferiors.c: New file.
2592 * gdbserver/target.c: New file.
2593 * gdbserver/target.h: New file.
2594 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
2595 dependencies.
2596 * gdbserver/linux-low.c (inferior_pid): New static variable,
2597 moved from server.c.
2598 (linux_create_inferior): Renamed from create_inferior.
2599 Call add_inferior. Return 0 on success instead of a PID.
2600 (linux_attach): Renamed from myattach.
2601 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
2602 (linux_thread_alive): Renamed from mythread_alive.
2603 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
2604 child dies.
2605 (linux_resume): Renamed from myresume. Add missing ``return 0''.
2606 (regsets_store_inferior_registers): Correct error message.
2607 Add missing ``return 0''.
2608 (linux_fetch_registers): Renamed from fetch_inferior_registers.
2609 (linux_store_registers): Renamed from store_inferior_registers.
2610 (linux_read_memory): Renamed from read_inferior_memory.
2611 (linux_write_memory): Renamed from write_inferior_memory.
2612 (linux_target_ops): New structure.
2613 (initialize_low): Call set_target_ops ().
2614 * gdbserver/remote-utils.c (unhexify): New function.
2615 (hexify): New function.
2616 (input_interrupt): Send signals to ``signal_pid''.
2617 * gdbserver/server.c (inferior_pid): Remove.
2618 (start_inferior): Update create_inferior call.
2619 (attach_inferior): Call add_inferior.
2620 (handle_query): New function.
2621 (main): Call handle_query for `q' packets.
2622 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
2623 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
2624
0729219d
DJ
26252002-04-09 Daniel Jacobowitz <drow@mvista.com>
2626
2627 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
2628 dependencies.
2629 * gdbserver/configure.in: Check for <string.h>
2630 * gdbserver/configure: Regenerate.
2631 * gdbserver/config.in: Regenerate.
2632 * gdbserver/gdbreplay.c: Include needed system headers.
2633 (remote_open): Remove strchr prototype.
2634 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
2635 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
2636 (supply_register_by_name): Likewise.
2637 (collect_register): Change buf argument to void *.
2638 (collect_register_by_name): Likewise.
2639 * gdbserver/regcache.h: Add missing prototypes.
2640 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
2641 * gdbserver/server.c (handle_query): New function.
2642 (attached): New static variable, moved out of main.
2643 (main): Quiet longjmp clobber warnings.
2644 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
2645 * gdbserver/utils.c (error): Remove NORETURN.
2646 (fatal): Likewise.
2647
97658e92
DJ
26482002-04-09 Daniel Jacobowitz <drow@mvista.com>
2649
2650 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
2651 after the last symbol in a block.
2652
6044e3eb
PM
26532002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
2654
2655 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
2656 is non zero as a found symbol.
2657
0406ec40
AC
26582002-04-08 Andrew Cagney <ac131313@redhat.com>
2659
2660 * findvar.c: Include "builtin-regs.h".
2661 (value_of_register): Call value_of_builtin_reg when applicable.
2662 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
2663 (target_map_name_to_register): Call
2664 builtin_reg_map_name_to_regnum.
2665 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
2666 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
2667 (builtin_regs_h): Define.
2668 (builtin-regs.o): New target.
2669 (findvar.o): Add $(builtin_regs_h).
2670 * builtin-regs.c, builtin-regs.h: New files.
2671 * std-regs.c: New file.
2672 Partial fix for PR gdb/251.
2673
56a6dfb9
KB
26742002-04-08 Kevin Buettner <kevinb@redhat.com>
2675
2676 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
2677 it's no longer required.
2678
3a808432
AC
26792002-04-08 Andrew Cagney <ac131313@redhat.com>
2680
2681 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
2682
7c40d541
KB
26832002-04-08 Kevin Buettner <kevinb@redhat.com>
2684
2685 From Jimi X <jimix@watson.ibm.com>:
2686 * rs6000-tdep.c (rs6000_software_single_step): Use
2687 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
2688 and size. Use target_insert_breakpoint() and
2689 target_remove_breakpoint() to insert and remove breakpoints
2690 instead of explicit memory reads and writes.
2691
cc9836a8
KB
26922002-04-08 Kevin Buettner <kevinb@redhat.com>
2693
2694 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
2695 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
2696 ELF_OBJECT_FORMAT ifdef.
2697
7495d1dc
KB
26982002-04-08 Kevin Buettner <kevinb@redhat.com>
2699
2700 From Jimi X <jimix@watson.ibm.com>:
2701 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
2702
4288e836
KB
27032002-04-08 Kevin Buettner <kevinb@redhat.com>
2704
2705 From Jimi X <jimix@watson.ibm.com>:
2706 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
2707 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
2708
a4e4e501
MK
27092002-04-07 Mark Kettenis <kettenis@gnu.org>
2710
2711 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
2712 s/asprintf/xasprintf/.
2713 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
2714
006defba
AC
27152002-04-07 Andrew Cagney <ac131313@redhat.com>
2716
2717 I believe Jeff Law denies responsability for this one:
2718 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
2719 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
2720 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
2721 Work-around for PR gdb/366.
2722
7aa83cac
EZ
27232002-04-07 Elena Zannoni <ezannoni@redhat.com>
2724
2725 * remote-e7000.c (write_small, e7000_read_inferior_memory,
2726 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
2727 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
2728
cf1fcca1
EZ
27292002-04-07 Elena Zannoni <ezannoni@redhat.com>
2730
2731 * sh-tdep.c (sh_fp_frame_init_saved_regs,
2732 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
2733 information.
2734
3f289e6f
AC
27352002-04-07 Andrew Cagney <ac131313@redhat.com>
2736
2737 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
2738 maintainer.
2739
129188f6
AC
27402002-04-07 Andrew Cagney <ac131313@redhat.com>
2741
2742 * README (Reporting Bugs in GDB): Document the bug web page as the
2743 prefered way of submitting bugs.
2744 Fix PR gdb/402.
2745
1200cd6e
AC
27462002-04-06 Andrew Cagney <ac131313@redhat.com>
2747
2748 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
2749 -1. Update comment.
2750 * gdbarch.h, gdbarch.c: Re-generate.
2751
2853c33c
AS
27522002-04-07 Andreas Schwab <schwab@suse.de>
2753
2754 * m68klinux-nat.c (fill_fpregset): Properly pass address of
2755 buffer to regcache_collect.
2756
c2169756
AC
27572002-04-06 Andrew Cagney <ac131313@redhat.com>
2758
2759 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
2760 * gdbarch.c, gdbarch.h: Re-generate.
2761
25f1b008
AC
27622002-04-06 Andrew Cagney <ac131313@redhat.com>
2763
2764 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
2765 declaration. Fix -Werror.
2766
59263426
DJ
27672002-04-05 Daniel Jacobowitz <drow@mvista.com>
2768
2769 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
2770 * gdbarch.c: Regenerate.
2771
f5db4da3
MS
27722002-04-05 Michael Snyder <msnyder@redhat.com>
2773
80f8a6eb
MS
2774 * breakpoint.c (clear_command): Rewrite middle section to
2775 combine two loops with identical control conditions.
2776 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
2777 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
2778
ad3dcc5c
L
27792002-04-05 H.J. Lu (hjl@gnu.org)
2780
2781 * solib-svr4.c (bkpt_names): Add "__start".
2782
f32e7a74
AC
27832002-04-04 Andrew Cagney <ac131313@redhat.com>
2784
2785 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
2786 as test for 64 bit target.
2787
8227c0ff
AC
27882002-04-05 Andrew Cagney <ac131313@redhat.com>
2789
2790 * h8500-tdep.c (h8500_write_fp): Delete function.
2791 * dwarf2cfi.c (cfi_write_fp): Document as not used.
2792 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
2793 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
2794 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
2795 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
2796 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
2797 (s390_write_fp):
2798 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
2799 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
2800 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
2801 (d10v_write_fp): Delete function.
2802 * inferior.h (write_fp, generic_target_write_fp): Delete
2803 declarations.
2804 * regcache.c (generic_target_write_fp): Delete function.
2805 (write_fp): Delete function.
2806 * gdbarch.sh (TARGET_WRITE_FP): Delete.
2807 * gdbarch.h, gdbarch.c: Regenerate.
2808 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
2809 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
2810 (sparc64_write_fp): Delete declaration.
2811 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
2812 (h8500_write_fp): Delete declaration.
2813
2757dd86
AC
28142002-04-04 Andrew Cagney <ac131313@redhat.com>
2815
2816 * sparc-tdep.c (sparc64_write_fp): Delete.
2817 (sparc_push_dummy_frame): Replace write_fp call with code to store
2818 the FP directly.
2819 (sparc_gdbarch_init): Do not initialize write_fp.
2820
c69255e1
KB
28212002-04-05 Kevin Buettner <kevinb@redhat.com>
2822
2823 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
2824 clause.
2825
ae767bfb
JB
28262002-03-29 Jim Blandy <jimb@redhat.com>
2827
2828 * stack.c (get_selected_block): Add new argument `addr_in_block',
2829 used to return the exact code address we used to select the block,
2830 not just the block.
2831 * blockframe.c (get_frame_block, get_current_block): Same.
2832 * frame.h (get_frame_block, get_current_block,
2833 get_selected_block): Update declarations.
2834 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
2835 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
2836
84d2ac95
MS
28372002-04-05 Michael Snyder <msnyder@redhat.com>
2838
2839 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
2840 warning message.
2841
596aa3bf
JB
28422002-04-05 J. Brobecker <brobecker@gnat.com>
2843
2844 * utils.c (xfullpath): New function.
2845 * defs.h (xfullpath): Add declaration.
2846 * source.c (openp): Use xfullpath in place of gdb_realpath to
2847 avoid resolving the basename part of filenames when the
2848 associated file is a symbolic link. This fixes a potential
2849 inconsistency between the filenames known to GDB and the
2850 filenames it prints in the annotations.
2851 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
2852 to be able to match a filename with either the real filename, or
2853 the name of any symbolic link to this file.
2854 (lookup_partial_symtab): Ditto.
2855
c02f5703
MS
28562002-04-04 Michael Snyder <msnyder@redhat.com>
2857
2858 * breakpoint.c: Add support for hardware breakpoints in overlays.
2859 (overlay_events_enabled): New state variable.
2860 (insert_breakpoints): Use overlay_events_enabled to decide
2861 whether to attempt to set a breakpoint at the overlay load addr.
2862 Handle bp_hardware_breakpoint as well as bp_breakpoint.
2863 (remove_breakpoint): Use overlay_events_enabled to decide
2864 whether breakpoints need to be removed from overlay load addr.
2865 Handle bp_hardware_breakpoint as well as bp_breakpoint.
2866 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 2867 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
2868 disable_overlay_breakpoints): Update overlay_events_enabled.
2869
5fb290d7
DJ
28702002-04-04 Daniel Jacobowitz <drow@mvista.com>
2871
2872 * dwarf2read.c (struct function_range): New.
2873 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
2874 (check_cu_functions): New.
2875 (read_file_scope): Initialize global function lists.
2876 Call dwarf_decode_line after processing children.
2877 (read_func_scope): Add to global function list.
2878 (dwarf_decode_lines): Call check_cu_functions everywhere
2879 record_line is called. Call record_line with a linenumber
2880 of 0 to mark sequence ends.
2881
7b3fabf0
ML
28822002-04-04 Michal Ludvig <mludvig@suse.cz>
2883
361d1df0 2884 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
2885 change sync with glibc.
2886
bce58c09
JB
28872002-04-03 Jim Blandy <jimb@redhat.com>
2888
2889 * configure.in: Call AC_C_INLINE.
2890 * configure: Regenerated.
361d1df0 2891
2fccf04a
DJ
28922002-04-01 Daniel Jacobowitz <drow@mvista.com>
2893
2894 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
2895 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
2896
2d1bfe2e
MK
28972002-03-31 Mark Kettenis <kettenis@gnu.org>
2898
a5941fbf
MK
2899 * NEWS: Mention gcore support on FreeBSD/i386.
2900
a90cd31d
MK
2901 * fbsd-proc.c: New file.
2902 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
2903 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
2904
2d1bfe2e
MK
2905 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
2906 while statement.
2907
9eb6e5a1
JB
29082002-03-29 Jim Blandy <jimb@redhat.com>
2909
2910 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
2911 unescaped newlines in string literals, but newer ones don't. So
2912 escape them.
2913
f02df580
MS
29142002-03-26 Michael Snyder <msnyder@redhat.com>
2915 Andrew Cagney <cagney@redhat.com>
2916
361d1df0 2917 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
2918 restore file to memory.
2919 * cli/cli-dump.h: New file.
2920 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 2921 * NEWS: Mention new commands.
f02df580 2922
109f874e
MS
29232002-03-28 Michael Snyder <msnyder@redhat.com>
2924
2925 * symfile.c (symbol_file_add): Move test for null symbols to later.
2926
520f6ade
AC
29272002-03-27 Andrew Cagney <ac131313@redhat.com>
2928
2929 From veksler at il.ibm.com:
2930 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
2931 the xstrduped original path.
2932 Fix PR gdb/417.
2933
d4654627
MS
29342002-03-27 Michael Snyder <msnyder@redhat.com>
2935
2936 * breakpoint.c (_initialize_breakpoint): Clean up help string.
2937 * infcmd.c (_initialize_infcmd): Ditto.
2938 * language.c (_initialize_language): Ditto.
2939 * symfile.c (_initialize_symfile): Ditto.
2940 * top.c (_init_main): Ditto.
2941 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2942
6be8bc0c
EZ
29432002-03-27 Elena Zannoni <ezannoni@redhat.com>
2944
2945 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
2946 vector registers handling.
2947 (skip_prologue): Handle new AltiVec instructions. Fill in new
2948 fields of frame data.
2949 (frame_get_saved_regs): Fill in information for AltiVec registers.
2950
12af6855
JB
29512002-03-27 Jim Blandy <jimb@redhat.com>
2952
2953 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
2954 a function; leave this macro here to invoke that function.
2955 (symbol_init_mangled_name): Declaration for that function.
2956 * symtab.c (symbol_init_mangled_name): New function.
2957
dc672865
AC
29582002-03-27 Andrew Cagney <ac131313@redhat.com>
2959
2960 * valarith.c: Replace strerror with safe_strerror.
2961 * tracepoint.c: Ditto.
2962 * lin-lwp.c: Ditto.
2963 * go32-nat.c: Ditto.
2964 * inflow.c: Ditto.
2965 * gnu-nat.c: Ditto.
2966
d96429cd
AS
29672002-03-27 Andreas Schwab <schwab@suse.de>
2968
2969 * event-top.c (command_line_handler): Remove useless if.
2970
7e336ba1
AJ
29712002-03-27 Andreas Jaeger <aj@suse.de>
2972
2973 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
2974 comment.
2975
de220d0f
ML
29762002-03-27 Michal Ludvig <mludvig@suse.cz>
2977
2978 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
2979 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
2980 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
2981 (x86_64_linux_dr_get_status, supply_gregset),
2982 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
2983 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
2984 (x86_64_register_info_table): Add.
2985 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
2986 (x86_64_register_raw_size, x86_64_register_virtual_type),
2987 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
2988 general x86_64_register_info_table.
2989 (i386_gdbarch_init): gdbarch_register_bytes is now set
2990 dynamicaly during initialization.
2991 * regformats/reg-x86-64.dat: Synced with changes to registers above.
2992 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 2993
0e98d0a7
DJ
29942002-03-27 Daniel Jacobowitz <drow@mvista.com>
2995
2996 * gdbserver/server.c (main): Call target_signal_to_host_p
2997 and target_signal_to_host on signals received from the remote.
2998 * gdbserver/remote-utils.c (prepare_resume_reply): Call
2999 target_signal_from_host on signals sent to the remote.
3000 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
3001 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
3002
3130066b
DJ
30032002-03-27 Daniel Jacobowitz <drow@mvista.com>
3004
3005 * signals/signals.c: Include "server.h" in gdbserver build.
3006 (target_signal_from_name): Don't use STREQ.
3007 (_initialize_signals): Likewise. Don't include function in
3008 gdbserver build.
3009
9aedf4f4
DJ
30102002-03-27 Daniel Jacobowitz <drow@mvista.com>
3011
3012 * signals.c: Moved to...
3013 * signals/signals.c: Here.
7e336ba1 3014 * Makefile (signals.o): Update.
9aedf4f4 3015
3fa41cdb
JL
30162002-03-26 Jeff Law (law@redhat.com)
3017
3018 * somread.c (som_symtab_read): Remove some commented out code and
3019 updated related comments. Do not set the minimal symbol table to
3020 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
3021 in a dynamic executable.
3022 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
3023 where we are unable to find the minimal symbol for the given
3024 PC value.
3025
ee677e8d
MS
30262002-03-25 Jeff Law (law@redhat.com)
3027
3028 * linux-proc.c (read_mapping): Scan up to end of line for filename.
3029
e76e1718
ML
30302002-03-25 Michal Ludvig <mludvig@suse.cz>
3031
3032 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
3033
18a642a1
AC
30342002-03-23 Andrew Cagney <ac131313@redhat.com>
3035
3036 * command.h: Update copyright.
3037 (struct cmd_list_element): Replace definition with opaque
3038 declaration.
3039 (enum cmd_types): Document that it will eventually be moved to
3040 cli/cli-decode.h
3041 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
3042 (MALLOCED_REPLACEMENT): Delete macro.
3043 * Makefile.in (cli_decode_h): Add $(command_h).
3044 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 3045 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
3046 * completer.c: Include "cli/cli-decode.h".
3047 * maint.c: Include "cli/cli-decode.h".
3048 * cli/cli-decode.h: Include "command.h".
3049 (enum command_class): Delete.
3050 (enum cmd_types): Comment out.
3051 (enum cmd_auto_boolean): Delete.
3052 (enum var_types): Delete.
3053
b2875cc0
AC
30542002-03-23 Andrew Cagney <ac131313@redhat.com>
3055
3056 * cli/cli-decode.c: Include "gdb_assert.h".
3057 (add_set_or_show_cmd): New static function.
3058 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
3059 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
3060 all fields, such as func, from the set command.
3061
3b45974e
AC
30622002-03-23 Andrew Cagney <ac131313@redhat.com>
3063
3064 * MAINTAINERS (sh-elf): Change warning flag to -w.
3065
823ca731
AC
30662002-03-23 Andrew Cagney <cagney@redhat.com>
3067
3068 * defs.h (error): Add printf format attribute.
3069 * thread-db.c (thread_from_lwp): Fix error format string.
3070 * stack.c (parse_frame_specification): Ditto.
3071 * cli/cli-decode.c (undef_cmd_error): Ditto.
3072 * scm-lang.c (scm_lookup_name): Ditto.
3073 * tracepoint.c (trace_error): Ditto.
3074 * remote-utils.c (usage): Ditto.
3075 * remote.c (compare_sections_command): Ditto.
3076 Fix PR gdb/328.
3077
0e101458
AC
30782002-03-22 Andrew Cagney <ac131313@redhat.com>
3079
3080 * gdbtypes.c (append_composite_type_field): New function.
3081 (init_composite_type): New function.
3082 * gdbtypes.h (append_composite_type_field): Declare.
3083 (init_composite_type): Ditto.
3084
8e0662df
EZ
30852002-03-22 Elena Zannoni <ezannoni@redhat.com>
3086
3087 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 3088 function.
8e0662df
EZ
3089 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
3090 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
3091 structure returning convention for SYSV ABI case, but not
3092 for GNU/Linux, FreeBSD, or NetBSD.
3093
3121eff0
DJ
30942002-03-22 Daniel Jacobowitz <drow@mvista.com>
3095
3096 * symtab.h (lookup_block_symbol): Add mangled_name argument
3097 to prototype.
3098
3099 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
3100 with new mangled_name argument.
3101 * linespec.c (decode_line_1): Likewise.
3102 * valops (value_of_this): Likewise.
3103 * symtab.c (lookup_transparent_type): Likewise.
3104 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
3105 (lookup_symbol): If we are given a mangled name, pass it down
3106 to lookup_symbol_aux.
3107 (lookup_block_symbol): If we are given a mangled name to check
3108 against, only return symbols which match it.
3109
349b409f
CF
31102002-03-22 Christopher Faylor <cgf@redhat.com>
3111
3112 * win32-nat.c (child_create_inferior): Check for proper shell to use
3113 here, in case the user changes it on the fly.
3114 (_initialize_inftarg): Remove shell path considerations.
3115
2a873819
EZ
31162002-03-21 Elena Zannoni <ezannoni@redhat.com>
3117
3118 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
3119 for gdbarch_max_register_raw_size and max_register_virtual_size.
3120 Adjust copyright year.
3121
a1b9830c
DJ
31222002-03-21 Daniel Jacobowitz <drow@mvista.com>
3123
3124 * dbxread.c (process_one_symbol): Extend the first N_SLINE
3125 in a function to cover the entire beginning of the function
3126 as well if it does not already.
3127
8b5790f2
TR
31282002-03-21 Tom Rix <trix@redhat.com>
3129
3130 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
3131 (rs6000_ptrace64): Renamed from ptrace64.
3132
bdbe5747
MH
31332002-03-20 Martin M. Hunt <hunt@redhat.com>
3134
3135 * gdbserver/remote-utils.c (remote_open): Don't call
3136 getprotobyname, we're all using TCP here so just use
3137 IPPROTO_TCP.
7e336ba1 3138 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
3139
31402002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 3141
bdbe5747
MH
3142 * regcache.c (_initialize_regcache): No need to call
3143 build_regcache() at this time; it gets called whenever
3144 the gdbarch changes.
3145
7781cd62
DB
31462002-03-20 David O'Brien <obrien@FreeBSD.org>
3147
3148 * sparc-nat.c: Include sys/param.h where possible.
3149
f65ca430
DJ
31502002-03-20 Daniel Jacobowitz <drow@mvista.com>
3151
3152 Fix PR gdb/422.
3153 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
3154 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
3155 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
3156 complex types.
3157 * stabsread.c (rs6000_builtin_type): Likewise.
3158 (read_sun_floating_type): Likewise.
3159
0c867556
PS
31602002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3161
3162 * stabsread.c (read_member_functions): Remove skip code for duplicate
3163 constructor/destructor methods. Use standard parsing for these
3164 methods and just do not chain them to the list of methods after
3165 parsing.
3166
12b9c64f
AO
31672002-03-19 Alexandre Oliva <aoliva@redhat.com>
3168
3169 * coffread.c: Remove redundant static declarations. Replace
3170 occurrences of `PTR' with `void *'.
3171 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
3172 * top.h (quit_cover): Likewise.
3173 * defs.h (catch_errors): Likewise.
3174
349c5d5f
AC
31752002-03-18 Andrew Cagney <ac131313@redhat.com>
3176
3177 * defs.h (XMALLOC): Define.
3178 * gdb-events.sh (XMALLOC): Delete macro.
3179 * gdb-events.c, gdb-events.h: Regenerate.
3180 * gdbarch.sh (XMALLOC): Delete macro.
3181 * gdbarch.c: Regenerate.
3182 * serial.c (XMALLOC): Delete macro.
3183 * ui-file.c (XMALLOC): Ditto.
3184 * ser-unix.h (XMALLOC): Ditto.
3185 * sh-tdep.c (XMALLOC): Ditto.
3186 * ui-out.c (XMALLOC): Ditto.
3187 * utils.c (XMALLOC): Ditto.
3188 * i386-tdep.c (XMALLOC): Ditto.
3189 * gdb-events.c (XMALLOC): Ditto.
3190 * d10v-tdep.c (XMALLOC): Ditto.
3191 * cli-out.c (XMALLOC): Ditto.
3192
3193 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
3194 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
3195 * ui-file.c, ui-out.c: Ditto.
3196
7d0766f3
AC
31972002-03-18 Andrew Cagney <ac131313@redhat.com>
3198
3199 * command.h (struct cmd_list_element): Add field context.
3200 (set_cmd_context, get_cmd_context): Declare.
3201 * cli/cli-decode.h: Ditto.
3202 * cli/cli-decode.c (get_cmd_context): New function.
3203 (set_cmd_context): New function.
3204 (add_cmd): Initialize context.
3205 Part of fixing PR gdb/145 and PR gdb/146.
3206
5913bcb0
AC
32072002-03-17 Andrew Cagney <ac131313@redhat.com>
3208
1868c04e
AC
3209 * cli/cli-decode.c (cmd_type): New function.
3210 * command.h (cmd_type): Declare.
3211 * infrun.c (set_schedlock_func): Call function cmd_type.
3212 * kod.c (kod_set_os): Call cmd_type.
3213 * cris-tdep.c (cris_version_update): Use function cmd_type.
3214 (cris_mode_update, cris_abi_update): Ditto.
3215
5913bcb0
AC
3216 * command.h: (execute_cmd_post_hook): Declare.
3217 (execute_cmd_pre_hook): Declare.
3218 * cli/cli-script.c (clear_hook_in_cleanup): New function.
3219 (execute_cmd_post_hook, execute_cmd_pre_hook): New
3220 functions. Execute pre/post hook while ensuring that afterwords
3221 hook_in is cleared.
3222 * top.c (execute_command): Use execute_cmd_post_hook, and
3223 execute_cmd_pre_hook to execute pre/post commands.
3224 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
3225 hook_stop_stub.
3226 (hook_stop_stub): Call execute_cmd_pre_hook.
3227
b51450c9
AC
32282002-03-17 Andrew Cagney <ac131313@redhat.com>
3229
3230 * kod.c (kod_set_os): Revert previous change. Is called by ``info
3231 set'' and this leads to a core dump. Move xstrdup of
3232 operating_system to after check that it is not NULL.
3233
f66c9f11
AC
32342002-03-17 Andrew Cagney <ac131313@redhat.com>
3235
8e694ecf
AC
3236 * kod.c (kod_set_os): Remove unnecessary check that
3237 ``command->type'' is set_cmd.
3238
f66c9f11
AC
3239 * valprint.c (set_input_radix): Use input_radix.
3240 (set_output_radix): Use output_radix.
3241 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
3242 isn't reverted.
3243
9d01611c
AC
32442002-03-16 Andrew Cagney <ac131313@redhat.com>
3245
3246 * value.h (struct value): Delete field ``substring_addr''. Change
3247 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
3248 force_core_addr_align and force_pointer_aligh.
3249
3250 * value.h (struct value): Fix typo in above change.
9d01611c 3251
4156bb53
PS
32522002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3253
3254 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
3255 to fix internal_error from ``maintenance print architecture''.
3256
0e5e3ea6
PS
32572002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3258
3259 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
3260 for gcc versions after gcc-2.8.1.
3261
9b013045
PS
32622002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3263
3264 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
3265 for method resolution. Restore adjustment of ``this'' pointer after
3266 calling value_struct_elt, which was accidentally removed during the
3267 HP merge.
3268
376c9600
AC
32692002-03-15 Andrew Cagney <ac131313@redhat.com>
3270
3271 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
3272 value_of_register.
3273 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
3274 get_saved_register.
3275 * value.h (value_of_register): Update.
3276
a4db0f07
RH
32772002-03-14 Richard Henderson <rth@redhat.com>
3278
3279 * configure.in: Detect declaration for canonicalize_file_name.
3280 * utils.c (canonicalize_file_name): Declare, if needed.
3281 (gdb_realpath): Prefer realpath if available and usable.
3282 * config.in, configure: Rebuild.
3283
96383835
RH
32842002-03-14 Richard Henderson <rth@redhat.com>
3285
3286 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
3287 a constant array bound.
3288
3289 * MAINTAINERS: Add myself to write-after-approval.
3290
75245b24
MS
32912002-03-14 Michael Snyder <msnyder@redhat.com>
3292
3293 * symfile.c (syms_from_objfile): Return immediately if no syms.
3294 (symbol_file_add): Return immediately if no syms.
3295 (find_sym_fns): Return immediately if no syms.
3296
e641a1ca
ML
32972002-03-13 Michal Ludvig <mludvig@suse.cz>
3298
3299 * gdbserver/remote-util.c (remote_open): Print remote-side's
3300 IP address when remote debugging over the network.
7e336ba1 3301
df08bfec
DB
33022002-03-12 David O'Brien <obrien@FreeBSD.org>
3303
3304 * config/sparc/fbsd.mh: Fix copyright.
3305 * config/sparc/fbsd.mt: Likewise.
3306
9a57864f
RE
33072002-03-11 Richard Earnshaw <rearnsha@arm.com>
3308
3309 * MAINTAINERS: Fix typo in name of gdb warnings option.
3310 (x86-64): Fix formating so that this can be parsed by awk.
3311
dd7bf85e
DJ
33122002-03-10 Daniel Jacobowitz <drow@mvista.com>
3313
3314 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
3315 * defs.h: Include "gdb/signals.h".
3316 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
3317
33a0a2ac
ML
33182002-03-10 Michal Ludvig <mludvig@suse.cz>
3319
3320 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 3321 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
3322 from x86-64-tdep.h
3323
dd824b04
DJ
33242002-03-10 Daniel Jacobowitz <drow@mvista.com>
3325 Don Howard <dhoward@redhat.com>
3326
3327 * mips-tdep.c (ST0_FR): Define.
3328 (mips2_fp_compat): New function, temporarily disabled.
3329 (mips_read_fp_register_single): New function.
3330 (mips_read_fp_register_double): New function.
3331 (mips_print_register): Use them.
3332 (do_fp_register_row): Likewise.
3333
6a41ff59
AC
33342002-03-09 Andrew Cagney <ac131313@redhat.com>
3335
3336 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
3337 approval''.
3338
4ea09c10
PS
33392002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3340
3341 * stabsread.c (read_member_functions): Fix is_stub test for
3342 static member functions, improve comment.
3343
6ccc741d
RE
33442002-03-07 Richard Earnshaw <rearnsha@arm.com>
3345
3346 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
3347 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
3348 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
3349 commands that set boolean values.
3350 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
3351 (arm_rdi_resume): Always initialize PC.
3352 (arm_rdi_open): Don't use rslt as a boolean.
3353 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
3354 (arm_rdi_fetch_registers, arm_rdi_store_registers)
3355 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
3356 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
3357
438013df
AO
33582002-03-06 Alexandre Oliva <aoliva@redhat.com>
3359
3360 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
3361 * configure: Rebuilt.
3362
70ed8774
SC
33632002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3364
3365 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
3366 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
3367
5ba2abeb
AC
33682002-03-06 Andrew Cagney <ac131313@redhat.com>
3369
3370 * cli/cli-decode.c (set_cmd_completer): New function.
3371 * command.h (set_cmd_completer): Declare.
3372 * cli/cli-decode.h (set_cmd_completer): Ditto.
3373
3374 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
3375 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3376 * win32-nat.c (_initialize_inftarg): Ditto.
3377 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3378 * proc-api.c (_initialize_proc_api): Ditto.
3379 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
3380 * source.c (_initialize_source): Ditto.
3381 * exec.c (_initialize_exec): Ditto.
3382 * solib.c (_initialize_solib): Ditto.
3383 * top.c (init_main): Ditto.
3384 * tracepoint.c (_initialize_tracepoint): Ditto.
3385 * symfile.c (_initialize_symfile): Ditto.
3386 * printcmd.c (_initialize_printcmd): Ditto.
3387 * infcmd.c (_initialize_infcmd): Ditto.
3388 * corefile.c (_initialize_core): Ditto.
3389
f779ca99
AC
33902002-03-05 Andrew Cagney <ac131313@redhat.com>
3391
3392 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
3393
01a3934b
AC
33942002-03-05 Andrew Cagney <ac131313@redhat.com>
3395
3396 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
3397
37057839
AC
33982002-03-05 Andrew Cagney <ac131313@redhat.com>
3399
3400 * NEWS: Update headings, 5.2 has branched.
3401
c6ecbae5
DJ
34022002-03-04 Daniel Jacobowitz <drow@mvista.com>
3403
3404 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
3405 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
3406 (register_addr, REGISTER_RAW_SIZE): Likewise.
3407 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
3408 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
3409
e9f30c21
ML
34102002-03-03 Michal Ludvig <mludvig@suse.cz>
3411
3412 * MAINTAINERS (x86-64): Add myself.
3413 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
3414 changed value_ptr -> struct value *
3415
54394ac3
DB
34162002-03-01 David O'Brien <obrien@FreeBSD.org>
3417
3418 * configure.host (sparc64-*-freebsd): Add.
3419 * configure.tgt: Likewise.
3420 * config/sparc/fbsd.mh: New file.
3421 * config/sparc/fbsd.mt: Likewise.
3422 * config/sparc/nm-fbsd.h: Likewise.
3423 * config/sparc/tm-fbsd.h: Likewise.
3424
bfe95955
DJ
34252002-03-01 Daniel Jacobowitz <drow@mvista.com>
3426
3427 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
3428 regformats/reg-s390x.dat.
3429
f33c6cbf
AC
34302002-03-01 Andrew Cagney <ac131313@redhat.com>
3431
3432 * utils.c: Add FIXME explaining true/false problem.
3433
5ecaa7dd
AC
34342002-02-28 Andrew Cagney <ac131313@redhat.com>
3435
3436 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
3437
2a251cc2
MC
34382002-02-28 Michael Chastain <mec@shout.net>
3439
3440 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
3441
6a8031a3 34422002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
3443
3444 * gdbserver/linux-s390-low.c: New file.
3445 * regformats/reg-s390.dat: New file.
3446 * regformats/reg-s390x.dat: New file.
3447 * gdbserver/configure.srv: Add S/390.
3448 * gdbserver/Makefile.in: Add S/390.
3449 * configure.tgt: Enable gdbserver for S/390.
3450
ac469903
EZ
34512002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
3452
3453 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
3454 first line of the doc string for "info dos", except at the end of
3455 the sentence, since the short help stops at the first period.
3456
985cb1a3
JM
34572002-02-28 Jason Merrill <jason@redhat.com>
3458
3459 * dwarf2read.c (dwarf_cfi_name): Add new codes.
3460
c570663e
FF
34612002-02-27 Fred Fish <fnf@redhat.com>
3462
3463 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
3464 comment (dumy -> dummy).
3465
43630227
PS
34662002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3467
3468 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
3469
b84911e8
RB
34702002-02-27 Rodney Brown <rbrown64@csc.com.au>
3471
3472 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
3473
58caa3dc
DJ
34742002-02-27 Daniel Jacobowitz <drow@mvista.com>
3475
3476 * gdbserver/acconfig.h: New file.
3477 * gdbserver/i387-fp.c: New file.
3478 * gdbserver/i387-fp.h: New file.
3479 * gdbserver/linux-x86-64.c: New file.
3480 * regformats/reg-x86-64.dat: New file.
3481 * configure.tgt: Add x86_64-*-linux* gdbserver support.
3482 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
3483 * gdbserver/configure.in: Add support for regsets.
3484 * gdbserver/config.in: Regenerate.
3485 * gdbserver/configure: Regenerate.
3486 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
3487 * gdbserver/linux-low.h: New file.
3488 * gdbserver/linux-low.c: Include "linux-low.h". Add support
3489 for regsets.
3490 * gdbserver/linux-arm-low.c: Include "linux-low.h".
3491 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
3492 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
3493 * gdbserver/linux-mips-low.c: Include "linux-low.h".
3494 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
3495 * gdbserver/linux-sh-low.c: Include "linux-low.h".
3496 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
3497 "i387-fp.h". Add PTRACE_GETREGS and friends.
3498 * gdbserver/regcache.c (supply_register): New function.
3499 (supply_register_by_name): New function.
3500 (collect_register): New function.
3501 (collect_register_by_name): New function.
3502
93652174
DJ
35032002-02-27 Daniel Jacobowitz <drow@mvista.com>
3504
3505 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
3506 (config.status): Add configure.srv dependency.
3507 (server_h): Add config.h dependency.
3508
a02e4a61
DJ
35092002-02-27 Daniel Jacobowitz <drow@mvista.com>
3510
3511 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
3512 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
3513 * gdbserver/configure.srv: Change i386-*-linux* to use
3514 reg-i386-linux.o.
3515
ce0eebec
AC
35162002-02-26 Andrew Cagney <ac131313@redhat.com>
3517
3518 * x86-64-tdep.c: Re-indent. Update copyright date.
3519
82dbc5f7
AC
35202002-02-26 Andrew Cagney <ac131313@redhat.com>
3521
3522 From Michal Ludvig <mludvig@suse.cz>:
3523 * x86-64-tdep.c (value.h): Delete.
3524 (gdb_assert.h): Include.
3525 (x86_64_register_convert_to_virtual,
3526 x86_64_register_convert_to_raw ): Add check which lets only
3527 floating-point values to be converted.
3528 (value_push): Delete.
3529 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
3530 (i386_gdbarch_init): Number of register_bytes fixed.
3531
e4621584
AC
35322002-02-26 Andrew Cagney <ac131313@redhat.com>
3533
3534 * MAINTAINERS: Add x86-64 target.
3535
81a9a963
AC
35362002-02-26 Andrew Cagney <ac131313@redhat.com>
3537
3538 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
3539 * osfsolib.c (solib_map_sections): Ditto.
3540 * irix5-nat.c (solib_map_sections): Ditto.
3541 * corelow.c (gdb_check_format): Ditto.
3542 * symfile.c (symfile_bfd_open): Ditto.
3543 * solib.c (solib_map_sections): Ditto.
3544 Fix PR gdb/354.
7e336ba1 3545
0f017ab9
AC
35462002-02-26 Andrew Cagney <ac131313@redhat.com>
3547
3548 * remote.c (_initialize_remote): By default, disable ``e'' and
3549 ``E'' step out-of-range packets.
3550
75738c29
AS
35512002-02-26 Andreas Schwab <schwab@suse.de>
3552
3553 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
3554 m68k_linux_frame_saved_pc.
3555 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
3556 in_sigtramp.
3557 (SIGCONTEXT_PC_OFFSET): Remove.
3558 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
3559 m68k_linux_sigtramp_saved_pc): New functions.
3560 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
3561 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
3562 (UCONTEXT_PC_OFFSET): Define.
3563 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
3564 non-RT and RT signal trampolines.
3565
7e8ed687
RE
35662002-02-26 Richard Earnshaw <rearnsha@arm.com>
3567
3568 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
3569 (TARGET_NBPG, STACK_END_ADDR): Delete
3570 (VARIABLES_INSIDE_BLOCK): Delete.
3571
6972bc8b
AC
35722002-02-25 Andrew Cagney <ac131313@redhat.com>
3573
3574 * utils.c (perror_with_name): Make string parameter constant.
3575 (print_sys_errmsg): Ditto.
3576 (query): Ditto.
3577 * defs.h (perror_with_name): Update.
3578 (print_sys_errmsg): Update.
3579 (query): Update.
3580
aa32f823
DJ
35812002-02-25 Daniel Jacobowitz <drow@mvista.com>
3582
3583 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
3584 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
3585
19caaa45
PS
35862002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3587
3588 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
3589 if it already matches the current architecture from the exec file.
3590 Include arch-utils.h for gdbarch_info_init prototype.
3591 * Makefile.in (rs6000-nat.o): Update dependencies.
3592
d951901f
EZ
35932002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
3594
3595 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
3596 list of exported variables.
3597
7ea81414
DJ
35982002-02-24 Daniel Jacobowitz <drow@mvista.com>
3599
3600 * gdbserver/configure.srv: New file.
3601 * gdbserver/configure.in: Use configure.srv instead
3602 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
3603 from it.
3604 * gdbserver/configure: Regenerated.
3605 * gdbserver/terminal.h: New file.
3606 * gdbserver/Makefile.in: Update for configure changes. Remove
3607 more unneeded include paths.
3608
080fe24b
AC
36092002-02-24 Andrew Cagney <ac131313@redhat.com>
3610
3611 From wiz at danbala:
3612 * config/sparc/tm-sp64.h: Fix grammar and typos.
3613 Fix PR gdb/287.
3614
8605d56e
AC
36152002-02-24 Andrew Cagney <ac131313@redhat.com>
3616
3617 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
3618 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
3619 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
3620 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
3621 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
3622 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
3623 * s390-tdep.c: Ditto.
92362027
AC
3624 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
3625 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
3626 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
3627 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
3628 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
3629 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
3630 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
3631 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
3632 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
3633 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 3634 Fix PR gdb/378.
7e336ba1 3635
8ed32cc0
AC
36362002-02-23 Andrew Cagney <ac131313@redhat.com>
3637
a3007b6f
AC
3638 * lin-thread.c: Delete file.
3639 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
3640 to gdb_proc_service.h.
3641 * configure: Re-generate.
3642
50a9e2f1
AC
3643 * ocd.c (ocd_open): Do not try to open the "ocd" device.
3644 * serial.c (serial_open): Delete check for "ocd".
3645 Fix PR gdb/349.
3646
8b6e7932
AC
3647 * Makefile.in (linux-thread.o): Delete target.
3648 * linux-thread.c: Delete file.
3649
d155c46b
AC
3650 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
3651 renamed SH files to be consistent.
3652
8ed32cc0
AC
3653 * symtab.c (sort_search_symbols): Use xfree.
3654
0e18d038
RE
36552002-02-23 Richard Earnshaw <rearnsha@arm.com>
3656
3657 * arm-linux-tdep.c (arm_linux_init_abi): Register
3658 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
3659 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
3660 definition with undef, since we don't want the sysvr4 definition.
3661 (SKIP_TRAMPOLINE_CODE): Likewise.
3662
27aac7ff
AC
36632002-02-23 Andrew Cagney <ac131313@redhat.com>
3664
3665 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
3666
3667 * configure.in: (AC_CHECK_FUNCS) Added test for
3668 canonicalize_file_name Regenerated.
3669 * config.in, configure: Regenerated.
3670 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
3671 defined use canonicalize_file_name.
7e336ba1 3672
65a6e0ee
MC
36732002-02-23 Michael Chastain <mec@shout.net>
3674
3675 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
3676
47b95330
AC
36772002-02-23 Andrew Cagney <ac131313@redhat.com>
3678
3679 * README: Remove references to cygnus.com.
3680 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
3681 dot com'' form. Remove references to cygnus.com and sourceware.
3682
696f451b
AC
36832002-02-23 Andrew Cagney <ac131313@redhat.com>
3684
3685 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
3686 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
3687 1003.1-2001 no longer allows "head -1".
3688 * gdb/Makefile.in (version.c): Likewise.
3689 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
3690 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
3691 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
3692
bbaca940
AC
36932002-02-23 Andrew Cagney <ac131313@redhat.com>
3694
3695 * cli/cli-decode.c (cmd_cfunc_eq): New function.
3696 * command.h (cmd_cfunc_eq): Declare.
3697 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
3698
3699 * cli/cli-cmds.h (is_complete_command): Change parameter to a
3700 ``struct cmd_list_element *''.
3701 * cli/cli-cmds.c (is_complete_command): Update. Use
3702 cmd_cfunc_eq.
3703 * top.c (execute_command): Pass the command to
3704 is_complete_command.
3705 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
3706
b8b8b047
AC
37072002-02-23 Andrew Cagney <ac131313@redhat.com>
3708
3709 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
3710 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
3711 architecture defines.
3712 * s390-tdep.c (s390_gdbarch_init): Likewise.
3713
19d3fc80
RE
37142002-02-23 Richard Earnshaw <rearnsha@arm.com>
3715
3716 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
3717 (arm_linux_push_arguments): Likewise.
3718 (arm_linux_init_abi): Register them. Also register linux-specific
3719 call_dummy_words.
3720 (find_minsym_and_objfile): Use strcmp, not STREQ.
3721 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
3722 (arm_linux_call_dummy_words): Delete declaration.
3723 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
3724 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
3725 declarations.
3726 (LOWEST_PC): Delete.
3727
3ab13650
PS
37282002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3729
3730 * maint.c (print_section_info): Do not prepend `0x' to filepos
3731 output, it will be handled by local_hex_string_custom.
3732
19d3fc80 37332002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
3734
3735 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
3736 (store_newfpe_double, store_newfpe_extended, store_fpregister)
3737 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
3738
d85a5daf
JB
37392002-02-22 Jim Blandy <jimb@redhat.com>
3740
3741 Indicate that the bcache functions don't change the strings
3742 they're passed.
3743 * bcache.h (bcache, hash): Add `const' keywords to declarations.
3744 * bcache.c (bcache, hash): Add `const' keywords to definitions.
3745
eeb25b8a
PM
37462002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
3747
3748 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
3749
6badb179
CF
37502002-02-21 Christopher Faylor <cgf@redhat.com>
3751
3752 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
3753 find the complete path to a loaded DLL.
3754
e8717518
FF
37552002-02-21 Fred Fish <fnf@redhat.com>
3756
3757 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
3758 that marks the end of the range of a function, enter a line number
3759 entry that has a line number of zero and a PC offset that matches
3760 the end of the function. This starts a range of PC's for which no
3761 line number information is known.
3762 * symtab.c (find_pc_sect_line): If our best fit is in a range of
3763 PC's for which no line number info is found (line number is zero)
3764 then we didn't find any valid line information.
3765 * symtab.h: Document use of zero line number entry.
3766
9abe5450
EZ
37672002-02-21 Elena Zannoni <ezannoni@redhat.com>
3768
3769 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
3770 (have_ptrace_getvrregs): Define for run time checks.
3771 (gdb_vrregset_t): New type for Altivec register handling.
3772 (fetch_register, store_register): Fetch/store altivec register
3773 when needed.
3774 (fetch_altivec_register, store_altivec_register): New functions.
3775 (supply_vrregset, fill_vrregset): New functions.
3776 (fetch_altivec_registers, store_altivec_registers): New functions.
3777 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
3778 registers as well.
3779
aaa38bb5
AJ
37802002-02-21 Jiri Smid <smid@suse.cz>
3781
3782 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
3783
b34db576
RE
37842002-02-21 Richard Earnshaw <rearnsha@arm.com>
3785
3786 * Makefile.in (armnbsd-nat.o): Update dependencies.
3787 * armnbsd-nat.c (supply_gregset): New function. Common code to
3788 supply the integer register set.
3789 (supply_fparegset): New function. Similar for FPA registers.
3790 (fetch_regs, fetch_fp_regs): Use them.
3791 (fetch_core_registers): Likewise.
3792 (fetch_elfcore_registers): New function.
3793 (arm_netbsd_elfcore_fns): New core-file type specification.
3794 (_initialize_arm_netbsd_nat): Register it.
3795
3e56fc4b
RE
37962002-02-21 Richard Earnshaw <rearnsha@arm.com>
3797
3798 * armnbsd-nat.c: Include gdbcore.h.
3799 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
3800 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
3801 'void' to declaration, to shut up ARI.
3802 (fetch_core_registers): Make static. Rewrite using supply_register.
3803 (arm_netbsd_core_fns): New core-file type specification.
3804 (_initialize_arm_netbsd_nat): New function.
3805
097f6b0b
CF
38062002-02-21 Christopher Faylor <cgf@redhat.com>
3807
3808 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
3809 value.
3810
c914e0cc
CF
38112002-02-20 Christopher Faylor <cgf@redhat.com>
3812
3813 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
3814 fails.
3815
385fa495
DJ
38162002-02-20 Daniel Jacobowitz <drow@mvista.com>
3817
3818 * jv-exp.y (parse_number): Change type of implicit longs
3819 to builtin_type_uint64.
3820
e5f1222d
DJ
38212002-02-20 Daniel Jacobowitz <drow@mvista.com>
3822
3823 * gdbserver/linux-low.c (mywait): Change argument to waitpid
3824 to be an integer instead of a `union wait'.
3825
75c9abc6
DJ
38262002-02-20 Daniel Jacobowitz <drow@mvista.com>
3827
3828 * mips-linux-nat.c: Call the operating system GNU/Linux.
3829 * mips-linux-tdep.c: Likewise.
3830 * mips-tdep.c: Likewise.
3831
551792a5
DJ
38322002-02-20 Daniel Jacobowitz <drow@mvista.com>
3833
3834 Fix PR gdb/265.
3835 * jv-exp.y (parse_number): Handle 64-bit integers.
3836
ee6e2b82
DJ
38372002-02-20 Daniel Jacobowitz <drow@mvista.com>
3838
3839 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
3840 AC_STDC_HEADERS to AC_HEADER_STDC.
3841 * gdbserver/configure: Regenerated.
3842
a48442a0
RE
38432002-02-20 Richard Earnshaw <rearnsha@arm.com>
3844
3845 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
3846 is defined.
3847 * sparc-tdep.c (get_longjmp_target): Likewise.
3848
fe419ffc
RE
38492002-02-20 Richard Earnshaw <rearnsha@arm.com>
3850
3851 * News: Add news about ARM and Multi-arch. Mention the new target
3852 arm*-*-netbsd*.
3853
5832ed7e
JB
38542002-02-19 Jim Blandy <jimb@redhat.com>
3855
3856 * stabsread.c (error_type_complaint): Improve error message.
3857
84563040
DJ
38582002-02-19 Daniel Jacobowitz <drow@mvista.com>
3859
3860 * gdbserver/README: Update documentation.
3861 * gdbserver/configure.in: Update configury to match documentation.
3862 * gdbserver/Makefile.in: Likewise.
3863 * gdbserver/configure: Regenerated.
3864 * gdbserver/aclocal.m4: New file, generated by aclocal.
3865 * gdbserver/config.in: New file, generated by autoheader.
3866
375fd65b
RE
38672002-02-19 Richard Earnshaw <rearnsha@arm.com>
3868
3869 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
3870 armnbsd-nat.c.
3871
08216dd7
RE
38722002-02-19 Richard Earnshaw <rearnsha@arm.com>
3873
3874 * arm-tdep.h (enum arm_float_model): New enum.
3875 (struct gdbarch_tdep): Add fp_model.
3876 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
3877 up floating-point conversions until we know the floating-point model
3878 in use by the inferior. Don't complain about being unable to
3879 determine the ABI of the inferior when we don't have one.
3880 (arm_extract_return_value): Support different floating-point models.
3881 (arm_store_return_value): Likewise.
aaa38bb5 3882 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
3883 ARM_FLOAT_SOFT.
3884 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
3885
65d6d66a
PS
38862002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3887
3888 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
3889 of ``current_gdbarch''.
3890
47221191
RE
38912002-02-19 Richard Earnshaw <rearnsha@arm.com>
3892
3893 * armnbsd-nat.c : ANSIfy all function declarations.
3894 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
3895 (fetch_inferior_registers): Re-implement in terms of above.
3896 (store_register, store_regs, store_fp_register, store_fp_regs): New.
3897 (store_inferior_registers): Re-implement in terms of above.
3898
fdf39c9a
RE
38992002-02-19 Richard Earnshaw <rearnsha@arm.com>
3900
aaa38bb5 3901 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
3902 kernel.
3903 * arm-linux-tdep.c: Likewise.
3904 * config/arm/tm-linux.h: Likewise.
3905
93247f88
RE
39062002-02-19 Richard Earnshaw <rearnsha@arm.com>
3907
3908 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
3909 * config/arm/nbsd.mt (TM_FILE): Delete.
3910 * config/arm/tm-nbsd.h: Delete.
3911
d7b486e7
RE
39122002-02-19 Richard Earnshaw <rearnsha@arm.com>
3913
3914 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
3915 Initialize CALL_DUMMY_LENGTH.
3916
41d39a95
RE
39172002-02-19 Richard Earnshaw <rearnsha@arm.com>
3918
3919 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
3920 function.
3921 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 3922 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
3923 defines one thing and that is incorrect for this port.
3924 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
3925
e1195560
PM
39262002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3927
3928 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
3929
c1748f97
PM
39302002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3931
3932 * win32-nat.c (display_selector): New function. Displays information
3933 about the information returned by GetThreadSelectorEntry API function.
3934 (display_selectors): New function. Displays the infomation of
3935 the selector given as argument, or of CS, DS ans FS selectors
3936 if no argument is given.
3937 ( _initialize_inftarg): Add "w32" as info prefix command.
3938 Add "info w32 selector" as command calling display_selectors.
3939
e41e6bbf
PM
39402002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
3941
3942 * i386-tdep.c (get_longjmp_target): Fix compilation failure
3943 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
3944 if not defined.
3945
0d3a9f48
RE
39462002-02-18 Richard Earnshaw <rearnsha@arm.com>
3947
3948 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
3949
3fb4b924
RE
39502002-02-18 Richard Earnshaw <rearnsha@arm.com>
3951
3952 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
3953 (arm_fix_call_dummy): Call it.
3954 (arm_call_dummy_breakpoint_offset): Delete.
3955 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
3956 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
3957
7f55af32
AC
39582002-02-18 Andrew Cagney <ac131313@redhat.com>
3959
3960 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
3961 Default to func_frame_chain_valid.
3962 * gdbarch.h, gdbarch.c: Re-generate.
3963 * frame.h (FRAME_CHAIN_VALID): Delete definition.
3964
05f13b9c
EZ
39652002-02-18 Elena Zannoni <ezannoni@redhat.com>
3966
3967 * ppc-linux-nat.c: Update copyright.
3968 (fetch_register, store_register): Add tid parameter, don't compute
3969 tid here.
3970 (fetch_ppc_registers, store_ppc_registers): Add tid
3971 parameter. Pass it along to callees.
3972 (fetch_inferior_registers, store_inferior_registers): Compute tid
3973 here, and pass it to calleed functions.
3974 (fill_gregset, supply_fpregset): Clean up formatting.
3975
d7afb4c9
RE
39762002-02-18 Richard Earnshaw <rearnsha@arm.com>
3977
3978 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
3979 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
3980
9df628e0
RE
39812002-02-18 Richard Earnshaw <rearnsha@arm.com>
3982
3983 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
3984 * gdbarch.c gdbarch.h: Regenerate.
3985 * breakpoint.c (create_longjmp_breakpoint): Always compile this
3986 function.
3987 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
3988 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
3989 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
3990
3991 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
3992 * arm-tdep.c (arm_get_longjmp_target): New function.
3993 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
3994 this to a positive value register arm_get_longjmp_target as the
3995 longjmp handler.
3996 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
3997 (arm_linux_init_abi): Set up longjmp description in tdep.
3998 * armnbsd-nat.c (get_longjmp_target): Delete.
3999 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
4000 description in tdep.
4001 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
4002 (get_longjmp_target): Delete declaration.
4003 (GET_LONGJMP_TARGET): Delete.
4004 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
4005 (GET_LONGJMP_TARGET): Delete.
4006
57bc8964
KB
40072002-02-17 Kevin Buettner <kevinb@redhat.com>
4008
4009 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
4010 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
4011 of ``current_gdbarch''.
4012
83d31a92
TT
40132002-02-17 Tom Tromey <tromey@redhat.com>
4014
4015 * cli/cli-cmds.c (compare_strings): New function.
4016 (complete_command): Only print each unique item once.
4017 * completer.h (complete_line): Declare.
4018 * completer.c (complete_line): New function.
4019 (line_completion_function): Use it.
4020
17ef5d92
AC
40212002-02-16 Andrew Cagney <ac131313@redhat.com>
4022
4023 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
4024 * gdbarch.h, gdbarch.c: Re-generate.
4025
491b8946
DJ
40262002-02-16 Daniel Jacobowitz <drow@mvista.com>
4027
4028 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
4029
40302002-02-16 Daniel Jacobowitz <drow@mvista.com>
4031
4032 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4033 * valops.c (value_arg_coerce): Don't take the address of a reference
4034 to convert an argument to a reference.
4035
dfe7f3ac
CF
40362002-02-15 Christopher Faylor <cgf@redhat.com>
4037
4038 * win32-nat.c (get_image_name): New function.
4039 (handle_load_dll): Use get_image_name function.
4040 (get_child_debug_event): Avoid registering debug events until possibly
4041 execed process is started.
4042 (child_create_inferior): Allow invocation via shell so that command
4043 line redirection, etc. works ok.
4044 (_initialize_inftarg): Add new command: "set shell" to control whether
4045 a shell is used to start a process.
4046
1d33e73a
DJ
40472002-02-15 Daniel Jacobowitz <drow@mvista.com>
4048
4049 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
4050 instead of find_register_by_number.
4051 (cannot_store_register): Likewise.
4052
48cd0caa
PM
40532002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
4054
aaa38bb5 4055 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
4056 fprintf_unfiltered (gdb_stderr, ...).
4057
8656e7d8
DJ
40582002-02-15 Daniel Jacobowitz <drow@mvista.com>
4059
4060 * gdbserver/gdbserver.1: Document --attach.
4061
66e810cd
RE
40622002-02-15 Richard Earnshaw <rearnsha@arm.com>
4063
4064 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
4065 descriptions.
4066 * arm-tdep.c (arm_default_arm_le_breakpoint)
4067 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
4068 (arm_default_thumb_be_breakpoint): New. Initialize them from
4069 traditional breakpoint defines.
4070 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
4071 (arm_gdbarch_init): Initialize new breakpoint variables.
4072 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
4073 (arm_linux_init_abi): Initialize linux-specific breakpoint.
4074 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
4075 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
4076 code out to ...
4077 (arm_netbsd_init_abi_common): ... here; new function.
4078 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
4079 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
4080 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
4081 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
4082
97e03143
RE
40832002-02-15 Richard Earnshaw <rearnsha@arm.com>
4084
4085 * arm-tdep.h (enum arm_abi): New enum.
4086 (struct gdbarch_tdep): New structure.
4087 (LOWEST_PC): Provide a default.
4088 (arm_gdbarch_register_os_abi): Declare new function.
4089 * arm-tdep.c (arm_abi_names): New array.
4090 (process_note_abi_tag_sections): New function.
4091 (get_elfosabi): New function.
4092 (arm_gdbarch_register_os_abi): New function.
4093 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
4094 support for that ABI has been built in, then call the appropriate
4095 configuration routine. Use gdbarch_num_regs() to get the number
4096 of registers.
4097 (arm_dump_tdep): New function.
4098 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
4099 place-holder functions.
4100 (_initialize_arm_tdep): Register them.
4101 * config/arm/tm-arm.h (LOWEST_PC): Delete.
4102
4103 * armnbsd-tdep.c: New file.
4104 * Makefile.in (armnbsd-tdep.o): Add dependencies.
4105 * config/arm/nbsd.mt (TDEPFILES): Add it.
4106 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
4107
4108 * armnbsd-nat.c: Include regcache.h.
4109 * Makefile.in (armnbsd-nat.o): Update dependency list.
4110
4111 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
4112
ad68be46
DJ
41132002-02-14 Daniel Jacobowitz <drow@mvista.com>
4114
4115 * gdbserver/Makefile.in: Fix typos in target rules.
4116
003d6d1d
DJ
41172002-02-14 Daniel Jacobowitz <drow@mvista.com>
4118
aaa38bb5 4119 Fix part of PR gdb/267.
003d6d1d
DJ
4120 * linespec.c (find_methods): Handle constructors specially for now.
4121
6b230f1b
CV
41222002-02-14 Corinna Vinschen <vinschen@redhat.com>
4123
4124 * arm-tdep.c (arm_push_arguments): Eliminate special float type
4125 handling.
4126 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
4127 standard_coerce_float_to_double().
4128
1ea98d12
CF
41292002-02-14 Christopher Faylor <cgf@redhat.com>
4130
4131 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
4132 GDBINIT_FILENAME.
4133
dd47e6fd
EZ
41342002-02-14 Elena Zannoni <ezannoni@redhat.com>
4135
4136 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
4137 find_variant_by_name, because it confuses the multiarch
4138 framework. Return NULL if there isn't an architecture with the
4139 user supplied name, instead of forcing a different one without
4140 recording the change with the multiarch machinery.
4141 (find_variant_by_name): Delete.
4142
d7e39b9e
PS
41432002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4144
4145 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
4146 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
4147
76e42a4f
MH
41482002-02-13 Martin M. Hunt <hunt@redhat.com>
4149
aaa38bb5 4150 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
4151 print_frame_info_listing_hook, set current_source_symtab.
4152
0a30fbc4
DJ
41532002-02-14 Daniel Jacobowitz <drow@mvista.com>
4154
4155 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
4156 and remove unused $(INCLUDE_DIR).
4157 Add regcache.c to OBS.
4158 Add generated register protocol files to clean target.
4159 Update dependencies for new objects, obsolete old target code.
4160
4161 * gdbserver/linux-low.c: Remove all platform-specific code to
4162 new files. Remove various dead code. Update to use regcache
4163 functionality.
4164 * gdbserver/remote-utils.c (fromhex): Add return statement
4165 to quiet warning.
4166 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
4167 constant.
4168 (input_interrupt): Add integer parameter to match prototype
4169 of a signal handler.
4170 (outreg): Use register_data ().
4171 (prepare_resume_reply): Use gdbserver_expedite_regs.
4172 * gdbserver/server.c (main): Dynamically allocate own_buf because
4173 PBUFSIZ is no longer constant. Use registers_to_string () and
4174 registers_from_string ().
4175 * gdbserver/server.h: No longer include "defs.h". Add prototypes
4176 for error (), fatal (), and warning (). Update definition of
4177 PBUFSIZ to use regcache functionality. Add include guard.
4178 * gdbserver/utils.c (fatal): Add missing ``const''.
4179 (warning): New function.
4180
4181 * regformats/regdat.sh: Include "regcache.h" in generated files.
4182 Provide init_registers () function.
4183 * regformats/regdef.h: Add prototype for set_register_cache ().
4184 Add include guard.
4185
4186 * gdbserver/linux-arm-low.c: New file.
4187 * gdbserver/linux-i386-low.c: New file.
4188 * gdbserver/linux-ia64-low.c: New file.
4189 * gdbserver/linux-m68k-low.c: New file.
4190 * gdbserver/linux-mips-low.c: New file.
4191 * gdbserver/linux-ppc-low.c: New file.
4192 * gdbserver/linux-sh-low.c: New file.
4193
4194 * gdbserver/regcache.c: New file.
4195 * gdbserver/regcache.h: New file.
4196
4197 * gdbserver/low-linux.c: Removed obsolete file.
4198
4cc841d0
DJ
41992002-02-14 Daniel Jacobowitz <drow@mvista.com>
4200
4201 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
4202 * config/i386/linux.mt: Likewise.
4203 * config/ia64/linux.mt: Likewise.
4204 * config/m68k/linux.mh: Likewise.
4205 * config/powerpc/linux.mh: Likewise.
4206 * config/mips/linux.mt: Likewise.
4207
4208 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
4209
4210 * config/i386/i386lynx.mh: Mark gdbserver variables
4211 as (currently) obsolete for this target.
4212 * config/i386/nbsd.mt: Likewise.
4213 * config/i386/nbsdelf.mt: Likewise.
4214 * config/m32r/m32r.mt: Likewise.
4215 * config/m68k/m68klynx.mh: Likewise.
4216 * config/m68k/nbsd.mt: Likewise.
4217 * config/m68k/sun3os4.mh: Likewise.
4218 * config/mips/vr5000.mt: Likewise.
4219 * config/ns32k/nbsd.mt: Likewise.
4220 * config/pa/hppabsd.mh: Likewise.
4221 * config/pa/hppaosf.mh: Likewise.
4222 * config/powerpc/nbsd.mt: Likewise.
4223 * config/rs6000/rs6000lynx.mh: Likewise.
4224 * config/s390/s390.mt: Likewise.
4225 * config/s390/s390x.mt: Likewise.
4226 * config/sparc/sparclynx.mh: Likewise.
4227 * config/sparc/sun4os4.mh: Likewise.
4228 * config/i386/x86-64linux.mt: Likewise.
4229 * config/sparc/linux.mh: Likewise.
4230
a85f51e7
DJ
42312002-02-14 Daniel Jacobowitz <drow@mvista.com>
4232
4233 * configure.tgt: Configure gdbserver only for known working
4234 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
4235 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
4236 SUBDIRS if it is configured. Update comment for ${nativefile}.
4237 * configure: Regenerated.
4238
65554fef
MS
42392002-02-13 Michael Snyder <msnyder@redhat.com>
4240
670a52db
MS
4241 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
4242
6dbdc4a3
MS
4243 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
4244 (default_gcore_mach): Just return 0, work around a problem in bfd.
4245 (default_gcore_target): OK to return NULL if exec_bfd is null.
4246 (make_mem_sec): Use a cast, avoid a warning.
4247
4248 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 4249 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
4250 sizeof (host pointer) != sizeof (target pointer)).
4251 (procfs_make_note_section): Avoid overflow in psargs string.
4252
aaa38bb5 4253 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
4254 implementation return an error.
4255
42562002-02-13 Rodney Brown <rbrown64@csc.com.au>
4257
4258 * procfs.c (procfs_make_note_section): Provide a default definition
4259 (for alpha-dec-osf4.0f). Fix typos.
4260
1e4d76e7
EZ
42612002-02-13 Elena Zannoni <ezannoni@redhat.com>
4262
4263 * linux-proc.c: Add include of regcache.h.
4264 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
4265
b6d1a1d5
AC
42662002-02-13 Andrew Cagney <ac131313@redhat.com>
4267
4268 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
4269 * memattr.c (create_mem_region): Disallow useless empty region.
4270 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 4271 non-overlapping.
b6d1a1d5 4272
6c6ea35e
MC
42732002-02-13 Michael Chastain <mec@shout.net>
4274
4275 * defs.h: Kill CONST_PTR.
4276 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
4277 * c-lang.c (c_builtin_types): Likewise.
4278 * ch-lang.c (ch_builtin_types): Likewise.
4279 * f-lang.c (f_builtin_types): Likewise.
4280 * language.c (unknown_builtin_types): Likewise.
4281 * m2-lang.c (m2_builtin_types): Likewise.
4282 * p-lang.c (pascal_builtin_types): Likewise.
4283 * scm-lang.c (c_builtin_types): Likewise.
4284
3e0b0f48
KS
42852002-02-13 Keith Seitz <keiths@redhat.com>
4286
4287 * arm-tdep.h (arm_get_next_pc): Add declaration.
4288
67255d04
RE
42892002-02-13 Richard Earnshaw <rearnsha@arm.com>
4290
4291 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
4292 with other related struct-returning functions.
4293 (arm_extract_struct_value_address): New function.
4294 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
4295 initialize float_format, double_format and long_double_format as
4296 appropriate to the endianness of the target.
4297 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
4298 (arm_use_struct_convention): Delete declaration.
4299 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4300
079777f6
KS
43012002-02-13 Keith Seitz <keiths@redhat.com>
4302
4303 * defs.h (core_addr_to_string_nz): New function.
4304
34588f23
MK
43052002-02-13 Mark Kettenis <kettenis@gnu.org>
4306
4307 Apply missing bits of 2002-01-15 patch.
4308 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
4309 (fill_fpregset): Use i387_fill_fsave.
4310
49b563f9
KS
43112002-02-12 Keith Seitz <keiths@redhat.com>
4312
49b563f9
KS
4313 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
4314 (core_addr_to_string_nz): New function.
4315
aeb98c60
RE
43162002-02-11 Richard Earnshaw <rearnsha@arm.com>
4317
4318 * arm-linux-nat.c: Really include arm-tdep.h.
4319 * config/arm/tm-linux.h (struct type, struct value): Declare.
4320
65554fef
MS
43212002-02-11 Michael Snyder <msnyder@redhat.com>
4322
4323 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
4324 (gcore section): Ifdef for Solaris and Unixware only.
4325 (procfs_do_thread_registers): Unixware needs one lwpstatus
4326 per thread (not one prstatus or pstatus).
4327 (procfs_make_note_section): Iterate only over kernel threads (lwps),
4328 not over all gdb threads. For unixware, call elfcore_write_pstatus
4329 once before iterating over threads.
4330
34e8f22d
RE
43312002-02-11 Richard Earnshaw <rearnsha@arm.com>
4332
4333 * arm-tdep.h: New file.
4334 * arm-tdep.c: Include arm-tdep.h.
4335 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
4336 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
4337 (arm_print_float_info, arm_register_type, convert_to_extended)
4338 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
4339 (arm_extract_return_value, arm_register_name): Make static.
4340 (arm_software_single_step): Similarly. Fix types in declaration.
4341 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
4342 (arm_store_return_value, arm_store_struct_return): New functions.
4343 (arm_gdbarch_init): Register the above functions. Also register
4344 call_dummy_start_offset, sizeof_call_dummy_words,
4345 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
4346 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 4347 max_register_virtual_size, register_size. Set up
34e8f22d
RE
4348 prologue_cache.saved_regs here, rather than ...
4349 (_initialize_arm_tdep): ... here.
4350 * config/arm/tm-arm.h (struct type, struct value): Delete forward
4351 declarations.
4352 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
4353 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
4354 (arm_print_float_info, arm_register_type, convert_to_extended)
4355 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
4356 (arm_extract_return_value, arm_register_name): Delete declarations.
4357 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
4358 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
4359 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
4360 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
4361 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4362 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
4363 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
4364 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
4365 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
4366 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
4367 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
4368 (arm_get_next_pc): No-longer static -- these are needed by the RDI
4369 interface.
4370 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
4371 * remote-rdi.c remote-rdp.c: Likewise.
4372 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
4373 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
4374 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
4375 definition.
4376
4377 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
4378 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
4379 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
4380 from non-ARM_ prefixed definitions.
4381 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
4382 all uses of above.
4383 * remote-rdi.c remote-rdp.c: Likewise.
4384 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
4385
148754e5
RE
43862002-02-11 Richard Earnshaw <rearnsha@arm.com>
4387
4388 * arm-tdep.c (arm_frameless_function_invocation)
4389 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
4390 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
4391 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
4392 (arm_pop_frame, arm_get_next_pc): Make static.
4393 (arm_gdbarch_init): Register above in gdbarch structure.
4394 (arm_read_fp): Renamed from arm_target_read_fp.
4395 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
4396 * config/arm/tm-arm.h (arm_frameless_function_invocation)
4397 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
4398 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
4399 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
4400 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
4401 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
4402 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
4403 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
4404 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
4405 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 4406
434d2d4f
DJ
44072002-02-10 Daniel Jacobowitz <drow@mvista.com>
4408
4409 * symtab.c (compare_search_syms): New function.
4410 (sort_search_symbols): New function.
4411 (search_symbols): Sort symbols after searching rather than
4412 before.
4413
55241689
AC
44142002-02-10 Andrew Cagney <ac131313@redhat.com>
4415
4416 * NEWS: Linux -> GNU/Linux.
4417
028c194b
AC
44182002-02-10 Andrew Cagney <ac131313@redhat.com>
4419
4420 * gdbarch.sh: For for level one methods, disallow a definition
4421 when partially multi-arched. Add comments explaining rationale.
4422 * gdbarch.h: Re-generate.
4423
6acf50cd
AC
44242002-02-10 Andrew Cagney <ac131313@redhat.com>
4425
4426 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
4427 multi-arch partial.
aaa38bb5 4428
50248794
AC
44292002-02-10 Andrew Cagney <ac131313@redhat.com>
4430
4431 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
4432 field. Use diff -u.
4433 * gdbarch.c: Re-generate.
4434
c30e0066
AC
44352002-02-10 Andrew Cagney <ac131313@redhat.com>
4436
9b56c5f3 4437 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
4438 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
4439 partial.
4440
6e6d6484
AC
44412002-02-10 Andrew Cagney <ac131313@redhat.com>
4442
4443 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
4444 multi-arch partial.
4445 (PUSH_ARGUMENTS): Switch to using predefault.
4446 * gdbarch.c: Regenerate.
4447
c203844d
AC
44482002-02-10 Andrew Cagney <ac131313@redhat.com>
4449
4450 * valops.c (PUSH_ARGUMENTS): Delete definition.
4451 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
4452 partial. Default to default_push_arguments.
4453 * gdbarch.h, gdbarch.c: Regenerate.
4454
b5a2688f
AC
44552002-02-09 Andrew Cagney <ac131313@redhat.com>
4456
4457 * defs.h (throw_exception): Rename return_to_top_level. Update
4458 comments.
4459 * utils.c (error_stream, internal_verror, quit): Ditto.
4460 * top.c (throw_exception, catcher): Ditto.
4461 * sparclet-rom.c (sparclet_load): Ditto.
4462 * remote.c (interrupt_query, minitelnet): Ditto.
4463 * remote-sds.c (interrupt_query): Ditto.
4464 * remote-mips.c (mips_error, mips_kill): Ditto.
4465 * ocd.c (interrupt_query): Ditto.
4466 * monitor.c (monitor_interrupt_query): Ditto.
4467 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
4468 * target.h: Update comment.
aaa38bb5 4469
b5a2688f 4470 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 4471
2fa5c1e0
AC
44722002-02-09 Andrew Cagney <ac131313@redhat.com>
4473
4474 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
4475 default_double_format.
4476 * gdbarch.h, gdbarch.c: Re-generate.
4477 * findvar.c (floatformat_unknown): Delete variable definition.
4478 * doublest.h (floatformat_unknown): Delete variable declaration.
4479
da966255
JB
44802002-02-09 Jim Blandy <jimb@redhat.com>
4481
4482 * stabsread.c (read_type): Add code to parse Sun's syntax for
4483 prototyped function types.
4484
123a4891
AC
44852002-02-09 Andrew Cagney <ac131313@redhat.com>
4486
4487 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
4488 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
4489
fb39c8f3
PS
44902002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4491
4492 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
4493 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
4494 now _initialize_xcoffsolib gets called again and overrides the
4495 commands from solib.c in a native configuration.
4496
0b87a11d
MK
44972002-02-09 Mark Kettenis <kettenis@gnu.org>
4498
4499 * doublest.c (store_typed_floating): Don't try to return a value.
4500 Fixes PR gdb/290.
4501
bdc2fc72
JB
45022002-02-08 Jim Blandy <jimb@redhat.com>
4503
4504 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
4505 is prototyped and has no arguments, print its argument list as
4506 `(void)'.
4507
da69bbcf
CD
45082002-02-08 Chris Demetriou <cgd@broadcom.com>
4509
4510 * MAINTAINERS (write-after-approval): Add myself.
4511 (paper-trail): I've escaped!
aaa38bb5 4512
b69571f5
CF
45132002-02-08 Christopher Faylor <cgf@redhat.com>
4514
4515 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
4516 changes.
4517 (_initialize_check_for_gdb_ini): Ditto.
4518
f6871398
MH
45192002-02-08 Martin M. Hunt <hunt@redhat.com>
4520
4521 * win32-nat.c (cygwin_pid_to_str): Fix typo.
4522 xaprintf -> xasprintf.
4523
4e52d31c
PM
45242002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
4525
4526 * win32-nat.c: Remove use of printf and sprintf functions.
4527
39bbf761
RE
45282002-02-08 Richard Earnshaw <rearnsha@arm.com>
4529
4530 * arm-tdep.c (arm_frame_chain_valid): Make static.
4531 (arm_push_arguments): Likewise.
4532 (arm_gdbarch_init): New function.
4533 (_initialize_arm_tdep): Call it.
4534 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
4535 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
4536 (FRAME_CHAIN_VALID): Delete.
4537 (arm_frame_chain_valid): Delete declaration.
4538 (PUSH_ARGUMENTS): Delete.
4539 (arm_push_arguments): Delete declaration.
4540 (CALL_DUMMY_P): Delete.
4541
9c9532c9
CV
45422002-02-08 Andrew Cagney <ac131313@redhat.com>
4543 Corinna Vinschen <vinschen@redhat.com>
4544
4545 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
4546 on builtin float types.
4547
4e8f7a8b
DJ
45482002-02-08 Daniel Jacobowitz <drow@mvista.com>
4549
4550 * utils.c: Include <curses.h> before "bfd.h".
4551 * tui/tui-hooks.c: Likewise.
4552 * tui/tui.c: Likewise.
4553 * tui/tuiCommand.c: Likewise.
4554 * tui/tuiData.c: Likewise.
4555 * tui/tuiDataWin.c: Likewise.
4556 * tui/tuiDisassem.c: Likewise.
4557 * tui/tuiGeneralWin.c: Likewise.
4558 * tui/tuiIO.c: Likewise.
4559 * tui/tuiLayout.c: Likewise.
4560 * tui/tuiRegs.c: Likewise.
4561 * tui/tuiSource.c: Likewise.
4562 * tui/tuiSourceWin.c: Likewise.
4563 * tui/tuiStack.c: Likewise.
4564 * tui/tuiWin.c: Likewise.
4565
cd4bffcf
EZ
45662002-02-07 Elena Zannoni <ezannoni@redhat.com>
4567
4568 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
4569 to include space for pseudoregs as well. Update loops accordingly.
4570 (sh_fp_frame_init_saved_regs): Ditto.
4571 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
4572
26806ce2
AC
45732002-02-07 Andrew Cagney <ac131313@redhat.com>
4574
4575 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
4576 Add Richard Earnshaw to Arm maintainers.
4577
97fdab62
AC
45782002-02-07 Andrew Cagney <ac131313@redhat.com>
4579
a6b98203
AC
4580 * defs.h (warning_begin): Delete declaration.
4581
97fdab62
AC
4582 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
4583 Delete macro.
4584
78b29b40
MS
45852002-02-07 Michael Snyder <msnyder@redhat.com>
4586
aaa38bb5 4587 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
4588 Logic bug, remove misplaced else.
4589
d8849953
KD
45902002-02-07 Klee Dienes <klee@apple.com>
4591
4592 * fork-inferior.c (fork_inferior): Add '!' to the list of
4593 characters that need to be quoted when building a string for the
4594 shell. Quote '!' specifically with a backslash, since CSH chokes
4595 when trying to evaluate "str!str".
aaa38bb5 4596
095778a0
NC
45972002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
4598
4599 * rdi-share/host.h: Only provide a typedef for bool if it is not
4600 defined.
4601
1900040c
MS
46022002-02-04 Michael Snyder <msnyder@redhat.com>
4603
4604 * breakpoint.h (enum bptype): Add new overlay event bp type.
4605 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 4606
1900040c
MS
4607 * breakpoint.c (create_internal_breakpoint): New function.
4608 (internal_breakpoint_number): Moved into create_internal_breakpoint.
4609 (create_longjmp_breakpoint): Use create_internal_breakpoint.
4610 (create_thread_event_breakpoint): Ditto.
4611 (create_solib_event_breakpoint): Ditto.
4612 (create_overlay_event_breakpoint): New function.
4613 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
4614 (update_breakpoints_after_exec): Delete and re-initialize
4615 overlay event breakpoints after an exec. Add FIXME comment
4616 about longjmp breakpoint.
4617 (print_it_typical): Ignore overlay event breakpoints.
4618 (print_one_breakpoint): Ditto.
4619 (mention): Ditto.
4620 (bpstat_what): Do not stop for overlay event breakpoints.
4621 (delete_breakpoint): Don't delete overlay event breakpoints.
4622 (breakpoint_re_set_one): Delete the overlay event breakpoint.
4623 (breakpoint_re_set): Re-create overlay event breakpoint.
4624
4625 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
4626 (overlay_manual_command): Disable overlay breakpoints.
4627 (overlay_off_command): Disable overlay breakpoints.
4628
082fc60d
RE
46292002-02-06 Richard Earnshaw <rearnsha@arm.com>
4630
4631 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
4632 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
4633 to here from config/tm-arm.h.
4634 (coff_sym_is_thumb): Make static.
4635 (arm_elf_make_msymbol_special): New function.
4636 (arm_coff_make_msymbol_special): New function.
4637 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
4638 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
4639 (coff_sym_is_thumb): Delete declaration.
4640 (arm_elf_make_msymbol_special): Declare.
4641 (arm_coff_make_msymbol_special): Declare.
4642 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
4643 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
4644
039c5766
RE
46452002-02-06 Richard Earnshaw <rearnsha@arm.com>
4646
4647 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
4648
46492002-02-06 Richard Earnshaw <rearnsha@arm.com>
4650
4651 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
4652 * gdbarch.c gdbarch.h: Regenerate.
4653 * arch-utils.c (default_print_float_info): New function.
4654 * arch-utils.h (default_print_float_info): Prototype it.
4655 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
4656 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
4657 (PRINT_FLOAT_INFO): Document it.
4658
4659 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
4660 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
4661 (PRINT_FLOAT_INFO): Define.
4662
58fa08f0
PM
46632002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
4664
aaa38bb5 4665 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
4666 Add typecast to sprintf argument to suppress a warning.
4667
7393af7c
PM
46682002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
4669
58fa08f0 4670 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
4671 to allow easier handling of pass state.
4672 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
4673 that gives exception name and address.
4674 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 4675 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 4676 exceptions added.
aaa38bb5
AJ
4677 (child_continue): Correctly report continue_status.
4678 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 4679 TARGET_SIGNAL_0 (new default value).
aaa38bb5 4680 (child_resume): consider sig argument passed to decide if
7393af7c
PM
4681 the exception should be passed to debuggee or not.
4682
6af4589c
MS
46832002-02-05 Michael Snyder <msnyder@redhat.com>
4684
4685 * regcache.c (fetch_register): Call target_fetch_register
4686 only if we don't call FETCH_PSEUDO_REGISTER.
4687 (store_register): Call target_store_register only if we
4688 don't call STORE_PSEUDO_REGISTER.
4689
a2cf933a
EZ
46902002-02-05 Elena Zannoni <ezannoni@redhat.com>
4691
4692 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
4693 ELF_MAKE_MSYMBOL_SPECIAL.
4694 * gdbarch.c, gdbarch.h: Regenerate.
4695 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 4696 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
4697 * elfread.c (elf_symtab_read): Compile use of
4698 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
4699 multiarched.
4700 * coffread.c (coff_symtab_read): Ditto, for
4701 COFF_MAKE_MSYMBOL_SPECIAL.
4702
6bb7be43
JB
47032002-02-05 Jim Blandy <jimb@redhat.com>
4704
4705 * solib-svr4.c (svr4_truncate_ptr): New function.
4706 (svr4_relocate_section_addresses): Do the address arithmetic with
4707 the appropriate truncation for target addresses, even when
4708 CORE_ADDR is larger than a target address.
4709
e18651ec
DJ
47102002-02-05 Daniel Jacobowitz <drow@mvista.com>
4711
4712 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
4713 to (int *).
4714
6b2725be
DJ
47152002-02-05 Daniel Jacobowitz <drow@mvista.com>
4716
4717 * gdbserver/linux-low.c (kill_inferior): Remove commented out
4718 code.
4719
fca9e603
DJ
47202002-02-05 Daniel Jacobowitz <drow@mvista.com>
4721
4722 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
4723
6c537a52
DJ
47242002-02-05 Daniel Jacobowitz <drow@mvista.com>
4725
4726 * gdbserver/linux-low.c: Remove unused include files.
4727
d844cde6
DJ
47282002-02-05 Daniel Jacobowitz <drow@mvista.com>
4729
4730 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
4731 (read_inferior_memory): Use it.
4732 (write_inferior_memory): Likewise.
4733
d07c63e7
DJ
47342002-02-05 Daniel Jacobowitz <drow@mvista.com>
4735
4736 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
4737 grubbing through sys_errlist.
4738
da6d8c04
DJ
47392002-02-05 Daniel Jacobowitz <drow@mvista.com>
4740
4741 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
4742
5b421780
PM
47432002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
4744 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
4745
9f60d481
AC
47462002-02-04 Andrew Cagney <ac131313@redhat.com>
4747
4748 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
4749 (do_sfunc, set_cmd_sfunc): New functions.
4750
4751 * command.h (struct cmd_list_element): Add field func.
4752 * cli/cli-decode.h (struct cmd_list_element): Ditto.
4753 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
4754 * cli/cli-decode.h: Ditto.
4755
4756 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
4757 (help_all, help_cmd_list): Ditto.
4758 (find_cmd, complete_on_cmdlist): Ditto.
4759 * top.c (execute_command): Ditto.
4760
4761 * cli/cli-setshow.c (do_setshow_command): Call func instead of
4762 function.sfunc.
4763
4764 * infcmd.c (notice_args_read): Fix function signature.
4765
4766 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
4767 * cli/cli-decode.c (add_set_cmd): Ditto.
4768 * utils.c (initialize_utils): Ditto.
4769 * maint.c (_initialize_maint_cmds): Ditto.
4770 * infrun.c (_initialize_infrun): Ditto.
4771 * demangle.c (_initialize_demangler): Ditto.
4772 * remote.c (add_packet_config_cmd): Ditto.
4773 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4774 * cris-tdep.c (_initialize_cris_tdep): Ditto.
4775 * proc-api.c (_initialize_proc_api): Ditto.
4776 * kod.c (_initialize_kod): Ditto.
4777 * valprint.c (_initialize_valprint): Ditto.
4778 * top.c (init_main): Ditto.
4779 * infcmd.c (_initialize_infcmd): Ditto.
4780 * corefile.c (_initialize_core): Ditto.
4781 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4782 * arch-utils.c (initialize_current_architecture): Ditto.
4783 (_initialize_gdbarch_utils): Ditto.
4784 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
4785
4786 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
4787 * wince.c (_initialize_inftarg): Ditto.
4788 * symfile.c (_initialize_symfile): Ditto.
4789 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4790 * language.c (_initialize_language): Ditto.
4791 * arc-tdep.c (_initialize_arc_tdep): Ditto.
4792
f9ba0717
MS
47932002-02-04 Michael Snyder <msnyder@redhat.com>
4794
4795 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
4796
0c74b2a7
DJ
47972002-02-04 Daniel Jacobowitz <drow@mvista.com>
4798
4799 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
4800 Add rules for building the register data files.
4801
c638789f
DJ
48022002-02-04 Daniel Jacobowitz <drow@mvista.com>
4803
4804 * regformats/regdat.sh: Add braces to the definition of
4805 expedite_regs_${arch}.
4806
db253027
DJ
48072002-02-04 Daniel Jacobowitz <drow@mvista.com>
4808
4809 * regformats/regdef.h (struct reg): Add comment describing the
4810 requirements for offset and size fields.
4811
206be19c
AS
48122002-02-04 Andreas Schwab <schwab@suse.de>
4813
4814 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
4815 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
4816
181c1381
RE
48172002-02-04 Richard Earnshaw <rearnsha@arm.com>
4818
4819 * gdbarch.sh (copyright): Update years in generated header.
4820 (SMASH_TEXT_ADDRESS): Add rule.
db253027 4821 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
4822 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
4823 * dbxread.c: Likewise.
4824 * dwarfread.c: Likewise.
4825 * elfread.c: Likewise.
4826 * somread.c: Likewise.
4827
4828 * arm-tdep.c (arm_smash_text_address): New function.
4829 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
4830
fa4ba8da
PM
48312002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
4832
4833 Add support for hardware watchpoints on win32 native.
aaa38bb5 4834 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 4835 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 4836 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
4837 of debug registers.
4838 (debug_registers_changed): New variable. Reflects when debug registers
4839 are changed and need to be written to inferior.
aaa38bb5 4840 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
4841 was set, used when new threads are created.
4842 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
4843 i386-nat code.
4844 (thread_rec): Set dr array if id is the thread of current_event .
4845 (child_continue, child_resume): Change the debug registers for all
4846 threads if debug_registers_changed.
4847 (child_add_thread): Change the debug registers if debug_registers_used.
4848 * config/i386/cygwin.mh: Add use of i386-nat.o file.
4849 Link nm.h to new nm-cygwin.h file.
4850 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
4851 of hardware registers.
4852
a73c86fb
AC
48532002-02-03 Andrew Cagney <ac131313@redhat.com>
4854
4855 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
4856 Restore behavour broken by 2002-01-20 Andrew Cagney
4857 <ac131313@redhat.com> IEEE_FLOAT removal.
4858
acf5ed49
DJ
48592002-02-03 Daniel Jacobowitz <drow@mvista.com>
4860
4861 * c-valprint.c (c_val_print): Pass a proper valaddr to
4862 cp_print_class_method.
4863 * valops.c (search_struct_method): If there is only one method
4864 and args is NULL, return that method.
4865
493d28d5
DJ
48662002-02-03 Daniel Jacobowitz <drow@mvista.com>
4867
4868 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
4869 accessing tag_name directly.
4870
7495dfdb
DJ
48712002-02-03 Daniel Jacobowitz <drow@mvista.com>
4872
4873 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
4874 of accessing tag_name directly.
4875
dd6bda65
DJ
48762002-02-03 Daniel Jacobowitz <drow@mvista.com>
4877
4878 PR gdb/280
4879 * gdbtypes.c (replace_type): New function.
4880 * gdbtypes.h (replace_type): Add prototype.
4881 * stabsread.c (read_type): Use replace_type.
4882
88fe217c
RE
48832002-02-03 Richard Earnshaw <rearnsha@arm.com>
4884
4885 * Makefile.in (memattr.o): Add missing dependencies rule.
4886
e5d66720
PS
48872002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4888
4889 * breakpoint.c (break_at_finish_command): Really export.
4890 (break_at_finish_at_depth_command): Ditto.
4891 (tbreak_at_finish_command): Ditto.
4892 * hppa-tdep.c: Include completer.h.
4893 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
4894 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
4895
fffee0be
AC
48962002-02-01 Andrew Cagney <ac131313@redhat.com>
4897
4898 * utils.c (do_write): New function.
4899 (error_stream): Rewrite combining the code from error_begin and
4900 verror.
4901 (verror): Rewrite using error_stream.
4902 (error_begin): Delete function.
4903
255e7dbf
AC
49042002-02-01 Andrew Cagney <ac131313@redhat.com>
4905
4906 * utils.c (error_begin): Make static.
4907 * defs.h (error_begin): Delete declaration.
4908
4909 * linespec.c (cplusplus_error): Replace cplusplus_hint.
4910 (decode_line_1): Use cplusplus_error instead of error_begin,
4911 cplusplus_hint and return_to_top_level.
4912 * coffread.c (coff_symfile_read): Use error instead of error_begin
4913 and return_to_top_level.
4914 * infrun.c (default_skip_permanent_breakpoint): Ditto.
4915
ddfe3c15
AC
49162002-02-01 Andrew Cagney <ac131313@redhat.com>
4917
4918 * language.h (type_error, range_error): Make string parameter
4919 constant.
4920 * language.c (warning_pre_print): Delete extern declaration.
4921 * dwarfread.c (warning_pre_print): Ditto.
4922 * language.c (type_error, range_error): Rewrite to use verror and
4923 vwarning instead of warning_begin.
4924
03ac34d5
MS
49252002-02-01 Michael Snyder <msnyder@redhat.com>
4926
261c4ca2
MS
4927 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
4928 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 4929
e00d1dc8
AC
49302002-02-01 Andrew Cagney <ac131313@redhat.com>
4931
4932 * command.h (NO_FUNCTION): Delete macro.
4933 * cli/cli-decode.h (NO_FUNCTION): Ditto.
4934 * top.c (execute_command): Replace NO_FUNCTION with NULL.
4935 * tracepoint.c (_initialize_tracepoint): Ditto.
4936 * cli/cli-decode.c (add_set_cmd): Ditto.
4937 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 4938
76b79d6e
DJ
49392002-02-01 Daniel Jacobowitz <drow@mvista.com>
4940
4941 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
4942 Update ``this'' pointer when calling virtual functions.
4943
799f9e91
MS
49442002-02-01 Michael Snyder <msnyder@redhat.com>
4945
c7bd442c 4946 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
4947 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
4948
3cf384d4
DJ
49492002-02-01 Daniel Jacobowitz <drow@mvista.com>
4950
4951 * regformats/reg-arm.dat: New file.
4952 * regformats/reg-i386.dat: New file.
4953 * regformats/reg-ia64.dat: New file.
4954 * regformats/reg-m68k.dat: New file.
4955 * regformats/reg-mips.dat: New file.
4956 * regformats/reg-ppc.dat: New file.
4957 * regformats/reg-sh.dat: New file.
4958 * regformats/regdef.h: New file.
4959 * regformats/regdat.sh: New file.
4960
0defa245
RE
49612002-02-01 Richard Earnshaw <reanrsha@arm.com>
4962
4963 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
4964 (arm_frame_args_address, arm_frame_locals_address): New functions.
4965 (arm_frame_num_args): New function.
4966 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
4967 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
4968 (FRMA_NUM_ARGS): Call arm_frame_num_args.
4969
405f26e6
MS
49702002-01-31 Michael Snyder <msnyder@redhat.com>
4971
502fd408
MS
4972 * breakpoint.c (break_at_finish_command): Export.
4973 (break_at_finish_at_depth_command): Export.
4974 (tbreak_at_finish_command): Export.
4975 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
4976 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
4977 "tbreak" commands, which are HPPA specific.
4978
7d35e135
MS
4979 * printcmd.c (disassemble_command): Remove an ancient
4980 artifact of an old merge.
4981
aaa38bb5 4982 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
4983 Define enum constant values for overlay mode.
4984 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
4985 (overlay_is_mapped, overlay_auto_command,
4986 overlay_manual_command): Ditto.
d874f1e2 4987
aaa38bb5
AJ
4988 * breakpoint.c (insert_breakpoints, remove_breakpoint,
4989 breakpoint_here_p, breakpoint_inserted_here_p,
4990 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
4991 describe_other_breakpoints, check_duplicates, clear_command):
4992 Coding standard fixes.
4993
8add0441 4994 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 4995 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
4996 code: check bfd SEC_READONLY flag for section.
4997
e351066e
AC
49982002-01-31 Andrew Cagney <ac131313@redhat.com>
4999
7d35e135 5000 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 5001
8a48e967
DJ
50022002-01-30 Daniel Jacobowitz <drow@mvista.com>
5003
5004 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
5005 data symbols, since we search based on textlow and texthigh.
5006 (find_pc_sect_symtab): Likewise.
5007
f5a96129
AC
50082002-01-30 Andrew Cagney <ac131313@redhat.com>
5009
5010 * defs.h (vwarning): Declare.
f5a96129
AC
5011 * utils.c (vwarning): New function.
5012 (warning): Call vwarning.
5013 (warning_begin): Delete function.
5014
5015 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
5016 the warning message.
5017 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
5018 warning_begin.
5019
cefd4ef5
MS
50202002-01-30 Michael Snyder <msnyder@redhat.com>
5021
1a703748
MS
5022 * NEWS: Mention "set trust-readonly-sections" command.
5023 Mention generate-core-file command.
cefd4ef5 5024
3a11626d
MS
50252002-01-15 Michael Snyder <msnyder@redhat.com>
5026
5027 * target.c: New command, "set trust-readonly-sections on".
5028 (do_xfer_memory): Honor the suggestion to trust readonly sections
5029 by reading them from the object file instead of from the target.
5030 (initialize_targets): Register command "set trust-readonly-sections".
5031
d1c7e53b
AC
50322002-01-29 Andrew Cagney <ac131313@redhat.com>
5033
5034 * parse.c (target_map_name_to_register): Simplify, search regs and
5035 pseudo-regs using a single loop.
5036
e2c9a72c
AC
50372002-01-30 Andrew Cagney <ac131313@redhat.com>
5038
5039 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
5040
69824b4e
MK
50412002-01-15 Rodney Brown <rbrown64@csc.com.au>
5042
5043 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
5044 * config/i386/i386v42mp.mh: Add i387-nat.o .
5045 * i386v4-nat.c: Include i387-nat.h.
5046 (supply_fpregset): Use i387_supply_fsave.
5047 (fill_fpregset): Use i387_fill_fsave.
5048
6eb69eab
RE
50492002-01-30 Richard Earnshaw <rearnsha@arm.com>
5050
5051 * arm-tdep.c (arm_call_dummy_words): Define.
5052 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
5053 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
5054 (CALL_DUMMY_WORDS): Define.
5055 (arm_call_dummy_words): Declare.
5056 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
5057 (arm_linux_call_dummy_words): Declare.
5058
9852326a
AS
50592002-01-30 Andreas Schwab <schwab@suse.de>
5060
5061 * m68klinux-nat.c: Fix last change to use regcache_collect
5062 instead of referencing registers[] directly.
5063
977a3030
AC
50642002-01-29 Andrew Cagney <ac131313@redhat.com>
5065
5066 * parse.c (target_map_name_to_register): Delete code wrapped in
5067 #ifdef REGISTER_NAME_ALIAS_HOOK.
5068
2076c72b
MS
50692002-01-28 Michael Snyder <msnyder@redhat.com>
5070
5071 * regcache.c (legacy_read_register_gen): Need to be able to
5072 read pseudo-register as well as real register.
5073 (legacy_write_register_gen): Ditto.
5074
8fcc723b
AC
50752002-01-28 Andrew Cagney <ac131313@redhat.com>
5076
5077 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
5078 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
5079 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
5080 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
5081 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
5082 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
5083 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
5084 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
5085 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
5086 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
5087 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
5088 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
5089 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
5090 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
5091 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
5092 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
5093 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
5094 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
5095 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
5096 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
5097
afe64c1a
AC
50982002-01-28 Andrew Cagney <ac131313@redhat.com>
5099
5100 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
5101 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
5102 (initialize_current_architecture): Update target_byte_order using
5103 information from BFD.
aaa38bb5 5104 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
5105 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
5106
75bc7ddf
AC
51072002-01-28 Andrew Cagney <ac131313@redhat.com>
5108
5109 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
5110 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
5111
5112 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
5113 #ifdef INVALID_FLOAT.
5114 * infcmd.c (do_registers_info): Ditto.
5115 * values.c (unpack_double): Ditto. Add comment.
5116
5117 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
5118 already commented out.
5119
0280a90a
AS
51202002-01-26 Andreas Schwab <schwab@suse.de>
5121
5122 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5123 * m68klinux-nat.c: Update ptrace interface for fetching/storing
5124 registers and add support for PTRACE_GETREGS.
5125
7072a954
AC
51262002-01-24 Andrew Cagney <ac131313@redhat.com>
5127
5128 GDB 5.1.1 released from 5.1 branch.
5129 * NEWS: Add 5.1.1 news.
5130 * README: Sync with 5.1 branch.
5131
86f902e0
FF
51322002-01-23 Fred Fish <fnf@redhat.com>
5133
5134 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
5135 stabstring on initial malloc. Reallocing will copy it for us,
5136 if necessary.
5137
8af51c36
EZ
51382002-01-23 Elena Zannoni <ezannoni@redhat.com>
5139
aaa38bb5 5140 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
5141 (HFILES_NO_SRCDIR): Remove hpread.h.
5142 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
5143 (hpread.o): Update dependencies.
5144 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
5145
5146 * hp-psymtab-read.c: Remove file.
5147 * hp-symtab-read.c: Remove file.
5148 * hpread.h: Remove file.
5149
5150 * hpread.c: Merge all contents of hp-psymtab-read.c,
5151 hp-symtab-read.c and hpread.h into this file, as it was prior to
5152 January 1999.
5153
5154 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 5155 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
5156 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
5157 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
5158
dc5cfeb6
EZ
51592002-01-23 Elena Zannoni <ezannoni@redhat.com>
5160
5161 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
5162 fill_gregset): Call gdbarch_tdep() just once, assign result to
5163 variable and use that, instead of calling the function several
5164 times.
5165
ea87b71b
AO
51662002-01-24 Alexandre Oliva <aoliva@redhat.com>
5167
5168 * configure.host: Accept sparcv9 as alias for sparc64.
5169 * configure.tgt: Likewise.
5170
13fc0c2f
KB
51712002-01-22 Kevin Buettner <kevinb@redhat.com>
5172
5173 * solib-aix5.c (build_so_list_from_mapfile)
5174 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
5175 arguments is not reversed.
5176 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
5177 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 5178
7bd872fe
EZ
51792002-01-22 Elena Zannoni <ezannoni@redhat.com>
5180
5181 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
5182 modified version of obsolete sh_fetch_pseudo_register.
5183 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
5184 (sh4_register_read): New function.
5185 (sh_pseudo_register_write): New function. Renamed and modified
5186 version of obsolete sh_store_pseudo_register.
5187 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
5188 (sh4_register_write): New function.
5189 (sh_gdbarch_init): Remove setting of gdbarch function
5190 fetch_pseudo_register and store_pseudo_register. Remove setting of
5191 register_convert_to_raw, register_convert_to_virtual,
5192 register_convertible.
5193 (sh_sh4_register_convertible): Delete. No longer needed. All is
5194 taken care by architecture specific functions
5195 register_read/register_write.
5196 (sh_sh4_register_convert_to_virtual): Make static.
5197 (sh_sh4_register_convert_to_raw): Ditto.
5198
069e84fd
AC
51992002-01-22 Andrew Cagney <ac131313@redhat.com>
5200
5201 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
5202 (floatformat_is_nan, floatformat_mantissa): Ditto.
5203
5204 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
5205 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
5206 builtin_type_ieee_double_little,
5207 builtin_type_ieee_double_littlebyte_bigword,
5208 builtin_type_m68881_ext, builtin_type_i960_ext,
5209 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
5210 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
5211 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
5212 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
5213
211a4f69
CV
52142002-01-22 Corinna Vinschen <vinschen@redhat.com>
5215
5216 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
5217 parameter. Set frameless flag if it exists and depended of
5218 whether the scanned function is frameless or not.
5219 (xstormy16_skip_prologue): If function is frameless, return
5220 result of xstormy16_scan_prologue().
5221 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
5222 call.
5223
f81353e4
EZ
52242002-01-21 Elena Zannoni <ezannoni@redhat.com>
5225
5226 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
5227 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
5228 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
5229 sh_sh4_register_byte, sh_sh4_register_raw_size,
5230 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
5231 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
5232 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
5233 sh_store_pseudo_register, sh_do_pseudo_register): Call
5234 gdbarch_tdep() just once, assign result to variable and use that,
5235 instead of calling the function several times.
5236
63c73a17
MK
52372002-01-20 Mark Kettenis <kettenis@gnu.org>
5238
5239 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
5240 macros instead of LAST_FPU_CTRL_REGNUM.
5241 (store_register): Likewise.
5242
39ad761d
JB
52432002-01-21 Jim Blandy <jimb@redhat.com>
5244
5245 * infcmd.c (run_command): Check that the `exec' target layer's BFD
5246 is up-to-date before running the program, not just when a program
5247 exits.
5248
3d74b771
FF
52492002-01-21 Fred Fish <fnf@redhat.com>
5250
5251 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
5252 when we have found all instructions we are looking for.
5253
966fbf70
RE
52542002-01-21 Richard Earnshaw <rearnsha@arm.com>
5255
5256 * arm-tdep.c (arm_register_name): New function.
5257 (arm_registers_names): Make static.
5258 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
5259 (arm_register_name): Declare.
5260 (REGISTER_NAME): Use it.
5261
c3b4394c
RE
52622002-01-21 Richard Earnshaw <rearnsha@arm.com>
5263 Kevin Buettner <kevinb@redhat.com>
5264
5265 Convert arm targets to new FRAME interface.
5266 * arm-tdep.c (struct frame_extra_info): Remove fsr.
5267 (arm_frame_find_save_regs): Delete.
5268 (arm_frame_init_saved_regs): New.
5269 (arm_init_extra_frame_info): Alloacte saved_regs as required.
5270 Allocate extra_info as required. Convert all uses of fsr.regs
5271 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
5272 to use extra_info.
5273 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
5274 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
5275 (check_prologue_cache, save_prologue_cache): Likewise.
5276 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
5277 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
5278 (FRAME_FIND_SAVED_REGS): Delete.
5279 (arm_frame_find_saved_regs): Delete prototype.
5280 (arm_frame_init_saved_regs): New prototype.
5281 (FRAME_INIT_SAVED_REGS): Define.
5282
61d99182
AC
52832002-01-20 Andrew Cagney <ac131313@redhat.com>
5284
5285 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
5286
6aaea291
AC
52872002-01-20 Andrew Cagney <ac131313@redhat.com>
5288
5289 From Jeff Law <law@redhat.com>:
5290 * infttrace.c: Include <sys/pstat.h>.
5291 (child_pid_to_exec_file): Revamp. Use pstat call to get the
5292 exec file if the ttrace equivalent fails.
5293
15f698d2
AC
52942002-01-20 Andrew Cagney <ac131313@redhat.com>
5295
5296 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
5297 (closeLogFile): Ditto.
5298
f86ddd7c
MC
52992002-01-20 Michael Chastain <mec@shout.net>
5300
5301 * top.c (print_gdb_version): Bump copyright year to 2002.
5302
904507ce
AC
53032002-01-20 Andrew Cagney <ac131313@redhat.com>
5304
5305 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
5306 Zannoni and Eli Zaretskii.
5307
d7f0b9ce
DJ
53082002-01-20 Daniel Jacobowitz <drow@mvista.com>
5309
5310 * buildsym.c: Update copyright years.
5311 * c-typeprint.c: Likewise.
5312 * dwarf2read.c: Likewise.
5313 * f-typeprint.c: Likewise.
5314 * gdbtypes.c: Likewise.
5315 * gdbtypes.h: Likewise.
5316 * hp-symtab-read.c: Likewise.
5317 * hpread.c: Likewise.
5318 * mdebugread.c: Likewise.
5319 * p-typeprint.c: Likewise.
5320
3fd3d7d2
AC
53212002-01-20 Andrew Cagney <ac131313@redhat.com>
5322
5323 * remote-sim.c (gdbsim_open): Simplify code testing the macro
5324 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
5325 byte-order selectable.
5326 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
5327 * arch-utils.c: Ditto.
5328 (set_endian): Ditto.
5329 (set_endian_from_file): Ditto.
5330 * gdbserver/low-sim.c (create_inferior): Ditto.
5331 * gdbarch.sh: Ditto.
5332 * gdbarch.h: Re-generate.
aaa38bb5
AJ
5333 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5334 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
5335 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
5336 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5337 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5338 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5339 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
5340 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
5341 macro definition.
5342 * config/mips/tm-wince.h: Remove #undef of macro
5343 TARGET_BYTE_ORDER_SELECTABLE.
5344 * config/sh/tm-wince.h: Ditto.
5345
b02dede2
DJ
53462002-01-20 Daniel Jacobowitz <drow@mvista.com>
5347
5348 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
5349 member function fields. Add accessor macro
5350 TYPE_FN_FIELD_ARTIFICIAL.
5351 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
5352 * c-typeprint.c (c_type_print_base): Skip artificial member
5353 functions.
5354
c3643761
DJ
53552002-01-20 Daniel Jacobowitz <drow@mvista.com>
5356
5357 * f-typeprint.c: Delete unused function f_type_print_args.
5358 * p-typeprint.c: Delete unused function pascal_type_print_args.
5359
8176bb6d
DJ
53602002-01-20 Daniel Jacobowitz <drow@mvista.com>
5361
5362 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
5363 comment. Add ``artificial'' to ``union field_location''.
5364
5365 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
5366
5367 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
5368 * mdebugread.c (parse_symbol): Likewise.
5369 * stabsread.c (define_symbol): Likewise.
5370 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
5371 initializing TYPE_FIELD_BITPOS to n (obsolete).
5372 (hpread_doc_function_type): Likewise.
5373 * hpread.c (hpread_function_type): Likewise.
5374
7fd60527
AC
53752002-01-20 Andrew Cagney <ac131313@redhat.com>
5376
5377 * configure.in (host_makefile_frag): Only require a host makefile
5378 fragment when a native build.
5379 * configure: Re-generate.
5380
c2f05ac9
AC
53812002-01-20 Andrew Cagney <ac131313@redhat.com>
5382
5383 * doublest.h (floatformat_from_type): Declare.
5384 * doublest.c (floatformat_from_type): New function.
5385 (convert_typed_floating): Use.
5386
5387 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
5388 call to function floatformat_from_type.
5389
5390 * gdbarch.sh (IEEE_FLOAT): Delete.
5391 * gdbarch.h, gdbarch.c: Re-generate.
5392 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
5393 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
5394 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
5395 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
5396 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
5397 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
5398 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
5399 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
5400 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
5401 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
5402 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
5403 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
5404
5405 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
5406 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5407 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5408 * sh-tdep.c (sh_gdbarch_init): Ditto.
5409 * mips-tdep.c (mips_gdbarch_init): Ditto.
5410 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5411 * cris-tdep.c (cris_gdbarch_init): Ditto.
5412
abf22e64
AJ
54132002-01-20 Jiri Smid <smid@suse.cz>
5414
5415 * configure.host, configure.tgt: Support x86-64.
5416 * NEWS: Note new target x86-64.
5417
b7c4cbf8
AJ
5418 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
5419 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
5420 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
5421 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
5422 x86-64-linux-nat.o): Fix dependencies.
5423
82600034
AC
54242002-01-19 Andrew Cagney <ac131313@redhat.com>
5425
5426 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
5427 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
5428 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
5429 * config/sparc/xm-sun4os4.h: Delete file.
5430 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 5431
bbe5c628
AC
54322002-01-19 Andrew Cagney <ac131313@redhat.com>
5433
5434 * config/sparc/sparclynx.mh (XM_FILE): Delete.
5435 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
5436 * config/m68k/m68klynx.mh (XM_FILE): Delete.
5437 * config/i386/i386lynx.mh (XM_FILE): Delete.
5438 * config/rs6000/xm-rs6000ly.h: Delete file.
5439 * config/sparc/xm-sparclynx.h: Delete file.
5440 * config/m68k/xm-m68klynx.h: Delete file.
5441 * config/i386/xm-i386lynx.h: Delete file.
5442 * config/xm-lynx.h: Delete file.
5443 * config/djgpp/fnchange.lst: Update.
5444
f8453e34
JT
54452002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
5446
5447 * alpha-tdep.c (alpha_register_byte): New function.
5448 (alpha_register_raw_size): Ditto.
5449 (alpha_register_virtual_size): Ditto.
5450 (alpha_skip_prologue_internal): Renamed from
5451 alpha_skip_prologue.
5452 (alpha_skip_prologue): New version that calls
5453 alpha_skip_prologue_internal.
5454 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
5455 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
5456 second argument from alpha_skip_prologue.
5457 (REGISTER_BYTE): Use alpha_register_byte.
5458 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
5459 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
5460 (FRAMELESS_FUNCTION_INVOCATION): Use
5461 generic_frameless_function_invocation_not.
5462 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
5463 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
5464
52d9e613
AC
54652002-01-19 Andrew Cagney <ac131313@redhat.com>
5466
5467 * config/mips/xm-news-mips.h: Delete file.
5468 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
5469
5470 * config/m88k/xm-m88k.h: Delete file.
5471 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
5472 * config/m88k/xm-delta88v4.h: Ditto.
5473 * config/m88k/xm-delta88.h: Ditto.
5474
5475 * config/alpha/xm-fbsd.h: Delete file.
5476 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
5477
5478 * config/sparc/xm-sparc.h: Delete file.
5479 * Makefile.in (xm-sun4os4.h): Delete dependency.
5480 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
5481 * config/sparc/xm-sun4os4.h: Ditto.
5482 * config/sparc/xm-linux.h: Ditto.
5483
5484 * config/i386/xm-windows.h: Delete file.
5485
2d1b2124
AC
54862002-01-19 Andrew Cagney <ac131313@redhat.com>
5487
5488 * utils.c: Include <sys/param.h> for MAXPATHLEN.
5489 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
5490
ee1f65f0
JT
54912002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
5492
5493 * alpha-tdep.c (alpha_call_dummy_words): New.
5494 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
5495 (CALL_DUMMY_P): Define.
5496 (CALL_DUMMY_WORDS): Define.
5497 (SIZEOF_CALL_DUMMY_WORDS): Define.
5498
98081e55
PB
54992002-01-19 Per Bothner <per@bothner.com>
5500
5501 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
5502 isn't NULL, which can happen with some gcj-3.x-produced code.
5503
0d056799
JT
55042002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
5505
5506 * alpha-tdep.c (alpha_register_virtual_type): New function.
5507 (alpha_init_frame_pc_first): Ditto.
5508 (alpha_fix_call_dummy): Ditto.
5509 (alpha_store_struct_return): Ditto.
5510 (alpha_extract_struct_value_address): Ditto.
5511 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
5512 alpha_register_virtual_type.
5513 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
5514 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
5515 alpha_extract_struct_value_address.
5516 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
5517 (INIT_FRAME_PC): Use init_frame_pc_noop.
5518 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
5519
4604bcad
MK
55202002-01-19 Mark Kettenis <kettenis@gnu.org>
5521
5522 * i386gnu-nat.c: Include "i386-tdep.h".
5523 (fetch_fpregs): Simplify code dealing with uninitialized floating
5524 point states such that it doesn't require FP7_REGNUM.
5525
140f9984
JT
55262002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5527
abf22e64
AJ
5528 * alpha-tdep.c (frame_extra_info): New.
5529 (alpha_find_saved_regs): Make static. Use
140f9984
JT
5530 frame->extra_info.
5531 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
5532 (alpha_frame_saved_pc): Use frame->extra_info.
5533 (temp_saved_regs): Don't declare as struct frame_saved_regs.
5534 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
5535 (init_extra_frame_info): Rename to...
5536 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 5537 (alpha_print_extra_frame_info): New function.
140f9984
JT
5538 (alpha_frame_locals_address): Ditto.
5539 (alpha_frame_args_address): Ditto.
abf22e64 5540 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
5541 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
5542 alpha_frame_args_address.
abf22e64 5543 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 5544 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
5545 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
5546 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
5547 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
5548 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
5549
d734c450
JT
55502002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5551
5552 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
5553 (alpha_cannot_fetch_register): Ditto.
5554 (alpha_cannot_store_register): Ditto.
5555 (alpha_register_convertible): Ditto.
5556 (alpha_use_struct_convention): Ditto.
5557 * config/alpha/tm-alpha.h: Update copyright years.
5558 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
5559 (INNER_THAN): Use core_addr_lessthan.
5560 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
5561 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
5562 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
5563 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
5564 (FRAME_CHAIN): Remove unnecessary cast.
5565
b4ceaee6
AC
55662002-01-18 Andrew Cagney <ac131313@redhat.com>
5567
5568 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
5569 obsolete.
5570
0a65a603
AC
55712002-01-18 Andrew Cagney <ac131313@redhat.com>
5572
5573 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
5574 * monitor.c, remote-array.c, remote-bug.c: Ditto.
5575 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
5576 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
5577 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
5578 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
5579 * x86-64-linux-nat.c: Ditto.
5580
636a6dfc
JT
55812002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5582
abf22e64 5583 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
5584 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
5585 (REGISTER_NAME): Define.
5586
acceddb6
JT
55872002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5588
5589 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
5590
ec32e4be
JT
55912002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5592
5593 * alpha-tdep.c: Update copyright years.
5594 (alpha_next_pc): New function.
5595 (alpha_software_single_step): Ditto.
5596 * config/alpha/tm-alpha.h: Add prototype for
5597 alpha_software_single_step.
5598
e771a871
JT
55992002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5600
5601 * alphabsd-nat.c: Update copyright years.
5602 (fill_gregset): Use regcache_collect.
5603 (fill_fpregset): Likewise.
5604 (fetch_inferior_registers): Only fetch integer registers
5605 if requested to do so.
5606 (store_inferior_registers): Only store integer registers
5607 if requested to do so.
5608
7708fa01
AC
56092002-01-17 Andrew Cagney <ac131313@redhat.com>
5610
5611 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
5612 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
5613 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
5614 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
5615 * config/alpha/fbsd.mh (XDEPFILES): Delete.
5616 * config/arm/linux.mh (XDEPFILES): Delete.
5617 * config/arm/nbsd.mh (XDEPFILES): Delete.
5618 * config/i386/i386dgux.mh (XDEPFILES): Delete.
5619 * config/i386/i386sol2.mh (XDEPFILES): Delete.
5620 * config/i386/i386m3.mh (XDEPFILES): Delete.
5621 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
5622 * config/i386/i386gnu.mh (XDEPFILES): Delete.
5623 * config/i386/fbsd.mh (XDEPFILES): Delete.
5624 * config/i386/i386bsd.mh (XDEPFILES): Delete.
5625 * config/i386/i386sco5.mh (XDEPFILES): Delete.
5626 * config/i386/i386v4.mh (XDEPFILES): Delete.
5627 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
5628 * config/i386/i386sco4.mh (XDEPFILES): Delete.
5629 * config/i386/i386aix.mh (XDEPFILES): Delete.
5630 * config/i386/go32.mh (XDEPFILES): Delete.
5631 * config/i386/cygwin.mh (XDEPFILES): Delete.
5632 * config/i386/i386lynx.mh (XDEPFILES): Delete.
5633 * config/i386/i386mach.mh (XDEPFILES): Delete.
5634 * config/i386/i386v32.mh (XDEPFILES): Delete.
5635 * config/i386/linux.mh (XDEPFILES): Delete.
5636 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
5637 * config/i386/ncr3000.mh (XDEPFILES): Delete.
5638 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
5639 * config/i386/i386sco.mh (XDEPFILES): Delete.
5640 * config/i386/i386v.mh (XDEPFILES): Delete.
5641 * config/i386/nbsd.mh (XDEPFILES): Delete.
5642 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
5643 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
5644 * config/i386/symmetry.mh (XDEPFILES): Delete.
5645 * config/i386/obsd.mh (XDEPFILES): Delete.
5646 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
5647 * config/ia64/linux.mh (XDEPFILES): Delete.
5648 * config/ia64/aix.mh (XDEPFILES): Delete.
5649 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
5650 * config/m68k/dpx2.mh (XDEPFILES): Delete.
5651 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
5652 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
5653 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
5654 * config/m68k/linux.mh (XDEPFILES): Delete.
5655 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
5656 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
5657 * config/m68k/nbsd.mh (XDEPFILES): Delete.
5658 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
5659 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
5660 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
5661 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
5662 * config/m88k/delta88.mh (XDEPFILES): Delete.
5663 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
5664 * config/m88k/m88k.mh (XDEPFILES): Delete.
5665 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
5666 * config/mips/linux.mh (XDEPFILES): Delete.
5667 * config/mips/irix6.mh (XDEPFILES): Delete.
5668 * config/mips/irix5.mh (XDEPFILES): Delete.
5669 * config/mips/irix4.mh (XDEPFILES): Delete.
5670 * config/mips/irix3.mh (XDEPFILES): Delete.
5671 * config/mips/decstation.mh (XDEPFILES): Delete.
5672 * config/mips/mipsm3.mh (XDEPFILES): Delete.
5673 (NATDEPFILES): Move core-aout.o to here.
5674 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
5675 * config/pa/hpux1020.mh (XDEPFILES): Delete.
5676 * config/pa/hppabsd.mh (XDEPFILES): Delete.
5677 * config/pa/hppahpux.mh (XDEPFILES): Delete.
5678 * config/pa/hpux11w.mh (XDEPFILES): Delete.
5679 * config/pa/hppaosf.mh (XDEPFILES): Delete.
5680 * config/pa/hpux11.mh (XDEPFILES): Delete.
5681 * config/powerpc/aix.mh (XDEPFILES): Delete.
5682 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
5683 * config/powerpc/linux.mh (XDEPFILES): Delete.
5684 * config/romp/rtbsd.mh: Rename XDEPFILES.
5685 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
5686 * config/rs6000/aix4.mh (XDEPFILES): Delete.
5687 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
5688 * config/s390/s390.mh (XDEPFILES): Delete.
5689 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
5690 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
5691 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
5692 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
5693 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
5694 * config/sparc/nbsd.mh (XDEPFILES): Delete.
5695 * config/sparc/linux.mh (XDEPFILES): Delete.
5696 * config/vax/vaxult.mh (XDEPFILES): Delete.
5697 * config/vax/vaxult2.mh (XDEPFILES): Delete.
5698 * Makefile.in (DEPFILES): Remove XDEPFILES.
5699
375fc983
AC
57002002-01-17 Andrew Cagney <ac131313@redhat.com>
5701
5702 * utils.c (internal_verror): Fix comments, default is yes not no.
5703 Update queries to match. Default to quit and dump core.
5704
8926118c
AC
57052002-01-17 Andrew Cagney <ac131313@redhat.com>
5706
5707 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
5708 copyright.
5709 * defs.h, event-top.c, gdbcmd.h: Ditto.
5710 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
5711 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
5712 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
5713 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
5714 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
5715 * mi/mi-main.c:Ditto.
5716
5717 * stack.c, symfile.c: Update copyright.
5718
45b7b345
DJ
57192002-01-17 Daniel Jacobowitz <drow@mvista.com>
5720
db728ff7
DJ
5721 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
5722 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
5723 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
5724 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 5725
db728ff7
DJ
57262002-01-17 Daniel Jacobowitz <drow@mvista.com>
5727
5728 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
5729 * gdbserver/low-lynx.c (myattach): Likewise.
5730 * gdbserver/low-nbsd.c (myattach): Likewise.
5731 * gdbserver/low-sim.c (myattach): Likewise.
5732 * gdbserver/low-sparc.c (myattach): Likewise.
5733 * gdbserver/low-sun3.c (myattach): Likewise.
5734
5735 * gdbserver/low-linux.c (myattach): New function.
45b7b345 5736
db728ff7 5737 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
5738 (main): Handle "--attach".
5739
8de3c354
AC
57402002-01-16 Andrew Cagney <ac131313@redhat.com>
5741
5742 * MAINTAINERS (language support): Daniel Jacobwitz is C++
5743 maintainer.
5744
b0129042
DJ
57452002-01-15 Daniel Jacobowitz <drow@mvista.com>
5746
5747 * c-typeprint.c (is_type_conversion_operator): Add additional
5748 check for non-conversion operators.
5749
ba8679fb 57502002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
5751
5752 * linux-proc.c: Add "info proc" command, a la procfs.c.
5753 (read_mapping): New function, abstract and re-use code.
5754 (linux_find_memory_regions): Use new func read_mapping.
5755 (linux_info_proc_cmd): New function, implement "info proc".
5756 (_initialize_linux_proc): Add new command "info proc".
5757
e4f9b4d5
MS
57582002-01-15 Michael Snyder <msnyder@redhat.com>
5759
5760 * symfile.c (generic_load): Use bfd_map_over_sections method
5761 instead of manipulating bfd structure members directly.
5762 (add_section_size_callback): New function, bfd sections callback
5763 used by generic_load.
5764 (load_sections_callback): New function, bfd sections callback
5765 used by generic_load.
5766
08cf96df
EZ
57672002-01-15 Elena Zannoni <ezannoni@redhat.com>
5768
abf22e64 5769 [Based on work by Jim Blandy]
08cf96df
EZ
5770 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
5771 (builtin_type_vec128): Export.
5772 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
5773 types.
5774 (builtin_type_vec128): New builtin type for 128 bit vector
5775 registers.
5776 (build_gdbtypes): Initialize builtin_type_v16qi and
5777 builtin_type_v8hi. Create the vec128 register builtin type
5778 structure.
5779 (build_builtin_type_vec128): New function.
abf22e64 5780 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
5781 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
5782 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
5783 AltiVec register to new builtin type.
5784
d7242108
DJ
57852001-01-15 Daniel Jacobowitz <drow@mvista.com>
5786
5787 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
5788 to make_cv_type.
5789
4ee3352d
AC
57902002-01-14 Andrew Cagney <ac131313@redhat.com>
5791
5792 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
5793 CLEAN_UP_REGISTER_VALUE.
5794 * regcache.c (supply_register): Update only call.
5795
f015b2e7
AC
57962002-01-14 Andrew Cagney <ac131313@redhat.com>
5797
5798 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
5799 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
5800 a29k-*-vxworks* targets as obsolete.
5801
356ae49d
MS
58022002-01-14 Michael Snyder <msnyder@redhat.com>
5803
5804 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
5805 until we can resolve portability issues.
5806 * gregset.h: Remove references to fpxregs.
5807 * gcore.c (gcore_command): Initialize note_sec to NULL.
5808
ade8f45e
AC
58092002-01-13 Andrew Cagney <ac131313@redhat.com>
5810
5811 * signals.c (target_signal_to_name): Rewrite. Only use
5812 signals[].name when in bounds and non-NULL.
abf22e64 5813
89c49e7a
AC
58142002-01-13 Andrew Cagney <ac131313@redhat.com>
5815
5816 From Petr Ledvina <ledvinap@kae.zcu.cz>:
5817 * signals.c (target_signal_to_name): Verify that SIG is within the
5818 bounds of the signals array.
5819
4daa9f9f
AC
58202002-01-13 Andrew Cagney <ac131313@redhat.com>
5821
5822 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
5823
ba4bbdcb
KS
58242002-01-13 Keith Seitz <keiths@redhat.com>
5825
5826 * stack.c (print_frame_info_base): Print the frame's pc
5827 only if when print_frame_info_listing_hook is not defined.
5828
575bbeb6
KS
58292002-01-13 Keith Seitz <keiths@redhat.com>
5830
5831 * varobj.c (varobj_set_value): Make sure that there were no
5832 errors evaluating the object before attempting to set its
5833 value.
5834 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
5835 so this offset adjustment is no longer necessary.
5836 (create_child): Don't set the error flag if the child is
5837 a CPLUS_FAKE_CHILD.
5838 (value_of_child): If value_fetch_lazy fails, return NULL
5839 so that callers will be notified that an error occurred.
5840 (c_value_of_variable): Delay check of variable's validity
5841 until later. We actually want all structs and unions to have
5842 the value "{...}".
5843 Do not return "???" for variables which could not be evaluated.
5844 This error condition must be returned to the caller so that it
5845 can get the error condition from gdb.
5846 (cplus_name_of_child): Adjust index for vptr before figuring
5847 out the name of the child.
5848 (cplus_value_of_child): If a child's (real) parent is not valid,
5849 don't even bother trying to give a value for it. Just return
5850 an error. Change all instances in this function.
5851 (cplus_type_of_child): If our parent is one of the "fake"
5852 parents, we need to get at the type of the real parent, and
5853 derive the child's true type using this information.
5854
b76898ab
AC
58552002-01-13 Andrew Cagney <ac131313@redhat.com>
5856
5857 From 2002-01-09 John Marshall <johnm@falch.net>:
5858 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
5859 sources.redhat.com, and tweak some related URLs which had
5860 suffered from linkrot.
5861
b6649e88
AC
58622002-01-13 Andrew Cagney <ac131313@redhat.com>
5863
5864 From Jeff law:
5865 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
5866 structures passed in registers.
5867
82cc5033
EZ
58682002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
5869
5870 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
5871 white space which prevented compilation. Reported by DSK
5872 <dsk@student.unsw.edu.au>.
5873
ba5f2f8a
MS
58742002-01-11 Michael Snyder <msnyder@redhat.com>
5875
fbd35540
MS
5876 * symfile.c (build_section_addr_info_from_section_tab):
5877 Use bfd access method instead of manipulating bfd directly.
5878 (syms_from_objfile): Ditto.
5879 (simple_overlay_update_1): Ditto.
5880 (simple_overlay_update): Ditto.
5881 (generic_load): Ditto.
5882 (overlay_unmapped_address): FIXME comment, bfd access methods.
5883 (sections_overlap): FIXME comment, bfd access methods.
5884 (pc_in_mapped_range): FIXME comment, bfd access methods.
5885 (pc_in_unmapped_range): FIXME comment, bfd access methods.
5886 (section_is_mapped): FIXME comment, bfd access methods.
5887 (section_is_overlay): FIXME comment, bfd access methods.
5888
ba5f2f8a
MS
5889 * symfile.c (generic_load): Whitespace and long line cleanups.
5890 Remove duplicate variable, change several local variables to
5891 more appropriate data types.
5892 (print_transfer_performance): Use %lu instead of %ld for ulongs.
5893
17df2af6
AC
58942002-01-12 Andrew Cagney <ac131313@redhat.com>
5895
5896 From Peter Schauer:
5897 * language.c (longest_local_hex_string_custom): Use phex_nz to
5898 convert NUM to a hex string.
5899
ec920329
EZ
59002002-01-12 Elena Zannoni <ezannoni@redhat.com>
5901
5902 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
5903 the function.
538a76d6 5904 Update Copyright year.
ec920329 5905
3abd2e01
AC
59062002-01-12 Andrew Cagney <ac131313@redhat.com>
5907
5908 * language.c (longest_raw_hex_string): Delete unused function.
5909
b21b22e0
PS
59102002-01-11 Petr Sorfa <petrs@caldera.com>
5911
5912 * MAINTAINERS (write-after-approval): Add myself.
5913 * dwarf2read.c (read_tag_string_type): Handling of
5914 DW_AT_byte_size.
5915 (read_tag_string_type): FORTRAN fix to prevent propagation of
5916 first string size.
5917 (set_cu_language): Handling of DW_LANG_Fortran95
5918
747fe712
RE
59192002-01-11 Richard Earnshaw <rearnsha@arm.com>
5920
5921 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
5922 GETPID(inferior_ptid).
5923 (store_inferior_registers): Likewise.
5924
f1bea926
JM
59252002-01-10 Jason Merrill <jason@redhat.com>
5926
5927 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
5928 Fix DW_OP_minus.
5929
ae940673
AC
59302002-01-10 Andrew Cagney <ac131313@redhat.com>
5931
5932 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
5933 and bfd/elf32-sh-nbsd.c.
5934
00546b04
MS
59352002-01-10 Michael Snyder <msnyder@redhat.com>
5936
352ed7b4
MS
5937 * NEWS: Mention --pid and corefile/proc-id behavior change.
5938
c18be923
MS
5939 * Makefile.in: Add rules for gcore.o and linux-proc.o.
5940 * gcore.c: Include cli/cli-decode.h instead of command.h.
5941
00546b04
MS
5942 * main.c (captured_main): Add new command line option "--pid".
5943 If the second command line argument (following the symbol-file)
5944 begins with a digit, try to attach to it before trying to open
5945 it as a corefile.
5946 (print_gdb_help): Document the "--pid" argument.
5947
db60ec62
EZ
59482002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
5949
5950 * completer.c (command_completer): New function.
5951
5952 * completer.h <command_completer>: Add prototype.
5953
5954 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
5955 completer for the "help" command.
5956
39c22d1a
JM
59572002-01-09 Jason Merrill <jason@redhat.com>
5958
5959 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
5960
c564377f
MS
59612002-01-09 Michael Snyder <msnyder@redhat.com>
5962
975aec09
MS
5963 * i386-linux-nat.c (fill_fpxregset): Make global.
5964 (store_fpxregset): Ditto.
5965
db4a10fa
MS
5966 * gregset.h (gdb_fpxregset_t): Define.
5967 (supply_fpxregset): Prototype.
5968 (fill_fpxregset): Prototype.
5969
c564377f
MS
5970 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
5971
c3d45d70
RE
59722002-01-09 Richard Earnshaw <rearnsha@arm.com>
5973
5974 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
5975 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
5976 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
5977
fcc87af1
AC
59782002-01-09 Andrew Cagney <ac131313@redhat.com>
5979
5980 * MAINTAINERS: Update target maintainer rules so that any
5981 Maintainer can approve a tested patch for a maintenance-only
5982 target.
5983
dd96c05b
RE
59842002-01-09 Richard Earnshaw <rearnsha@arm.com>
5985
d4297db9 5986 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 5987
d4297db9 5988 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
5989 IN_SIGTRAMP.
5990
145fdc6e
MS
59912002-01-08 Michael Snyder <msnyder@redhat.com>
5992
5993 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
5994 real name of the executable, rather than the /proc name.
5995
be4d1333
MS
59962002-01-03 Michael Snyder <msnyder@redhat.com>
5997
5998 Implement a "generate-core-file" command in gdb, save target state.
5999 * gcore.c: New file. Implement new command 'generate-core-file'.
6000 Save a corefile image of the current state of the inferior.
6001 * linux-proc.c: Add linux-specific code for saving corefiles.
6002 * target.h (struct target_ops): Add new target vectors for saving
6003 corefiles; to_find_memory_regions and to_make_corefile_notes.
6004 (target_find_memory_regions): New macro.
6005 (target_make_corefile_notes): New macro.
6006 * target.c (update_current_target): Inherit new target methods.
6007 (dummy_find_memory_regions): New place-holder method.
6008 (dummy_make_corefile_notes): New place-holder method.
6009 (init_dummy_target): Initialize new dummy target vectors.
6010 * exec.c (exec_set_find_memory_regions): New function.
6011 Allow the exec_ops vector for memory regions to be taken over.
6012 (exec_make_note_section): New function, target vector method.
6013 * defs.h (exec_set_find_memory_regions): Export prototype.
6014 * procfs.c (proc_find_memory_regions): New function, corefile method.
6015 (procfs_make_note_section): New function, corefile method.
6016 (init_procfs_ops): Set new target vector pointers.
6017 (find_memory_regions_callback): New function.
6018 (procfs_do_thread_registers): New function.
6019 (procfs_corefile_thread_callback): New function.
6020 * sol-thread.c (sol_find_memory_regions): New function.
6021 (sol_make_note_section): New function.
6022 (init_sol_thread_ops): Initialize new target vectors.
6023 * inftarg.c (inftarg_set_find_memory_regions): New function.
6024 Allow to_find_memory_regions vector to be taken over.
6025 (inftarg_set_make_corefile_notes): New function.
6026 Allow to_make_corefile_notes vector to be taken over.
6027 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
6028 interface layer if not target_has_execution (may be a corefile).
6029 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
6030 * config/sparc/sun4sol2.mh: Ditto.
6031 * config/alpha/alpha-linux.mh: Ditto.
6032 * config/arm/linux.mh: Ditto.
6033 * config/i386/x86-64linux.mh: Ditto.
6034 * config/ia64/linux.mh: Ditto.
6035 * config/m68k/linux.mh: Ditto.
6036 * config/mips/linux.mh: Ditto.
6037 * config/powerpc/linux.mh: Ditto.
6038 * config/sparc/linux.mh: Ditto.
6039
c6b92abd
MS
60402002-01-07 Michael Snyder <msnyder@redhat.com>
6041
6042 * arm-linux-nat.c: Remove references to regcache.c internal data
6043 (registers[] and register_valid[]).
6044
4b09dc8c
MS
60452002-01-07 Michael Snyder <msnyder@redhat.com>
6046
abf22e64
AJ
6047 * linux-proc.c: New file. Implement child_pid_to_exec_file,
6048 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
6049 symbol file and shlibs.
6050 * Makefile.in: Add rule for linux-proc.o.
6051 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
6052 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
6053 * config/arm/linux.mh: Ditto.
6054 * config/i386/linux.mh: Ditto.
6055 * config/i386/x86-64linux.mh: Ditto.
6056 * config/ia64/linux.mh: Ditto.
6057 * config/m68k/linux.mh: Ditto.
6058 * config/mips/linux.mh: Ditto.
6059 * config/powerpc/linux.mh: Ditto.
6060 * config/sparc/linux.mh: Ditto.
6061
c25b74ac
PM
60622002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
6063
6064 * win32-nat.c: Add i386-tdep.h dependency.
6065
94cd915f
MS
60662002-01-07 Michael Snyder <msnyder@redhat.com>
6067
c7cccb76
MS
6068 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
6069 instead of bfd_get_arch_size. Don't bail out just because
6070 there's no exec_bfd.
abf22e64 6071
34c0bd93
MS
6072 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
6073 * p-valprint.c (pascal_object_print_value): Ditto.
6074 * somread.c (som_symtab_read): Ditto.
6075 * symfile.c (simple_free_overlay_region_table): Ditto.
6076 * valops.c (value_assign): Ditto.
6077
21c1c920
MS
6078 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
6079 use tilde_expand and strerror for opening save-tracepoints file.
6080
5bbd998e
MS
6081 * thread-db.c (thread_db_new_objfile): Indendation fix.
6082
94cd915f
MS
6083 * infptrace.c (GDB_MAX_ALLOCA): New define.
6084 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 6085 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
6086 can be overridden with whatever value is appropriate to the host).
6087 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
6088 alloca to allocate potentially large buffer.
6089 * rs6000-nat.c (child_xfer_memory): Ditto.
6090 * symm-nat.c (child_xfer_memory): Ditto.
6091 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
6092
494e8a93
JSC
60932002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
6094
6095 From Nick Clifton <nickc@redhat.com>
6096 * d10v-tdep.c: Set STACK_START to 0x200bffe.
6097
d0e1d48e
MS
60982002-01-07 Michael Snyder <msnyder@redhat.com>
6099
abf22e64 6100 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
6101 Don't use exec_bfd if it's NULL.
6102
290b2c7a
MK
61032002-01-06 Mark Kettenis <kettenis@gnu.org>
6104
abf22e64 6105 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 6106
aef21287
AC
61072002-01-06 Andrew Cagney <ac131313@redhat.com>
6108
6109 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
6110 * gnu-nat.c: Ditto.
6111
30efa627
AC
61122002-01-06 Andrew Cagney <ac131313@redhat.com>
6113
6114 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
6115 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
6116 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
6117 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
6118 z8k-coff have not been multi-arched. Update z8k-coff build
6119 status.
6120
9b4ff276
AC
61212002-01-06 Andrew Cagney <ac131313@redhat.com>
6122
6123 * MAINTAINERS: Mark a29k target as obsolete.
6124 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
6125 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
6126 comments.
6127 * NEWS: Note that a29k targets are obsolete.
6128 * a29k-tdep.c: Mark as obsolete.
6129 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
6130 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
6131 a29k-*-vxworks* targets as obsolete.
6132 * remote-adapt.c: Obsolete.
6133 * remote-eb.c: Obsolete.
6134 * remote-mm.c: Obsolete.
6135 * remote-udi.c: Obsolete.
6136 * config/a29k/a29k-udi.mt: Obsolete.
6137 * config/a29k/a29k.mt: Obsolete.
6138 * config/a29k/tm-a29k.h: Obsolete.
6139 * config/a29k/tm-vx29k.h: Obsolete.
6140 * config/a29k/vx29k.mt: Obsolete.
6141
a9011d31
AC
61422002-01-05 Andrew Cagney <ac131313@redhat.com>
6143
6144 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
6145 with BFD_ENDIAN_BIG.
6146
9299404e
AC
61472002-01-05 Andrew Cagney <ac131313@redhat.com>
6148
6149 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
6150 * configure, config.in: Re-generate.
6151 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
6152 * defs.h: Do not include <endian.h>.
6153
7e89e357
JT
61542002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
6155
6156 * acconfig.h (HAVE_PT_GETXMMREGS): New.
6157 * config.in: Regenerate.
6158 * configure.in: Update copyright years.
6159 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
6160 * configure: Regenerate.
6161 * i386bsd-nat.c: Update copyright years.
6162 (fill_gregset): Use regcache_collect.
6163 (fetch_inferior_registers): Only fetch integer registers
6164 if requested to do so. Add support for XMM registers
6165 using PT_GETXMMREGS.
6166 (store_inferior_registers): Only store integer registers
6167 if requested to do so. Add support for XMM registers
6168 using PT_SETXMMREGS.
6169 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
6170 (store_inferior_registers): Remove.
6171 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
6172 (fetch_elfcore_registers): New function.
6173 (i386nbsd_elfcore_fns): New.
6174 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
6175 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
6176 i386bsd-nat.o.
6177 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6178 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
6179 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
6180 * config/i386/tm-nbsd.h: Update copyright years.
6181 (HAVE_SSE_REGS): Define.
6182 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
6183 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
6184 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
6185 (SIGCONTEXT_PC_OFFSET): Remove.
6186 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
6187
a752853e
AC
61882002-01-05 Andrew Cagney <ac131313@redhat.com>
6189
6190 * configure.tgt: Remove powerpc-*-macos* target.
6191 * config/m68k/xm-mpw.h: Delete file.
6192 * config/xm-mpw.h: Delete file.
6193 * ser-mac.c: Delete file.
6194 * mpw-make.sed: Delete file.
6195 * mpw-config.in: Delete file.
6196 * mac-xdep.c: Delete file.
6197 * mac-gdb.r: Delete file.
6198 * mac-defs.h: Delete file.
6199 * mac-nat.c: Delete file.
6200 * config/powerpc/macos.mh: Delete file.
6201 * config/powerpc/macos.mt: Delete file.
6202 * config/powerpc/nm-macos.h: Delete file.
6203 * config/powerpc/tm-macos.h: Delete file.
6204 * source.c (openp, open_source_file): Remove obsolete code.
6205 * top.c (gdb_readline): Ditto.
6206 * utils.c (query): Ditto.
6207 * event-top.c (display_gdb_prompt): Ditto.
6208 * Makefile.in (ser-mac.o): Delete obsolete target.
6209 * NEWS: Update.
6210
d7449b42
AC
62112002-01-04 Andrew Cagney <ac131313@redhat.com>
6212
6213 * defs.h (BIG_ENDIAN): Delete macro definition.
6214 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
6215 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
6216 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
6217 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
6218 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
6219 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
6220 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
6221 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
6222 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
6223 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
6224 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
6225 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
6226 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
6227 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
6228 * gdbarch.c: Re-generate.
6229
356374e8
DJ
62302002-01-04 Daniel Jacobowitz <drow@mvista.com>
6231
6232 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
6233 for core files.
6234
a2b8f8f8
JT
62352002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6236
6237 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
6238
12466af9
AC
62392002-01-04 Andrew Cagney <ac131313@redhat.com>
6240
6241 * value.h (value_ptr): Delete typedef.
6242
3549ab40
JT
62432002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6244
6245 * i386nbsd-nat.c: Update copyright years.
6246 Include i386-tdep.h.
6247
fedbd091
EZ
62482002-01-04 Elena Zannoni <ezannoni@redhat.com>
6249
6250 * stabsread.c: Update copyright years.
6251
6252 From Debashis Mahata <debashis.mahata@wipro.com>:
6253 (read_struct_fields): Deal with Sun C compiler erroneous stab
6254 output for structs and unions.
fec8b34f 6255 Fix PR gdb/269.
fedbd091 6256
eb43544b
DJ
62572002-01-04 Daniel Jacobowitz <drow@mvista.com>
6258
6259 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
6260 prototype.
6261
1514d34e
DJ
62622002-01-04 Daniel Jacobowitz <drow@mvista.com>
6263
6264 * cp-abi.c: Fix whitespace.
6265 (baseclass_offset): New wrapper function.
6266 * cp-abi.h (baseclass_offset): Add prototype.
6267 (struct cp_abi_ops): Add baseclass_offset pointer.
6268
6269 * valops.c (vb_match): Move to...
6270 * gnu-v2-abi.c (vb_match): here.
6271 * valops.c (baseclass_offset): Move to...
6272 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
6273
6274 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
6275
6276 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
6277 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
6278 * hpacc-abi.c (init_hpacc_ops): Likewise.
6279
7f8c9282
DJ
62802002-01-04 Daniel Jacobowitz <drow@mvista.com>
6281
6282 * valops.c (find_overload_match): Accept obj as a
6283 reference parameter. Update it before returning.
6284 * value.h (find_overload_match): Update prototype.
6285 * eval.c (evaluate_subexp_standard): Pass object to
6286 find_overload_match by reference.
6287
f23631e4
AC
62882002-01-03 Andrew Cagney <ac131313@redhat.com>
6289
6290 * valarith.c: Replace value_ptr with struct value pointer. Remove
6291 register attribute from value declarations.
6292 * valops.c: Ditto.
6293 * value.h: Ditto.
6294 * scm-lang.c (scm_lookup_name): Ditto.
6295
79e10fab 62962002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 6297
79e10fab
AC
6298 Abstract the functionality of iterating over mapped memory
6299 regions into a general purpose iterator function.
abf22e64 6300 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
6301 iterator for memory sections.
6302 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
6303 (solib_mappings_callback): New function, callback for above.
6304 (info_proc_mappings): Reimpliment using iterate_over_mappings.
6305 (info_mappings_callback): New function, callback for above.
6306
6307 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
6308
c5ad026a
MK
63092002-01-01 Mark Kettenis <kettenis@gnu.org>
6310
d2a7c97a
MK
6311 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
6312 * i386-tdep.c: Include "elf-bfd.h".
6313 (process_note_abi_tag_sections): New function.
6314 (i386_gdbarch_init): Add code to recognize various OS/ABI
6315 combinations.
6316
c5ad026a
MK
6317 * maint.c (_initialize_maint_cmds): Add missing \ in
6318 string-literal.
6319
a1a5b71e 6320For older changes see ChangeLog-2001
c906108c
SS
6321\f
6322Local Variables:
6323mode: change-log
6324left-margin: 8
6325fill-column: 74
6326version-control: never
6327End: