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