2002-12-09 David Carlton <carlton@math.stanford.edu>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f3c39e76
DC
12002-12-09 David Carlton <carlton@math.stanford.edu>
2
3 * linespec.c (symtab_from_filename): New function.
4 (decode_line_1): Move code into symtab_from_filename.
5
1b84163e
KB
62002-12-09 Kevin Buettner <kevinb@redhat.com>
7
8 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
9
bdd78e62
AC
102002-12-07 Andrew Cagney <ac131313@redhat.com>
11
12 * f-valprint.c (info_common_command): Use get_frame_pc.
13 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
14 * ax-gdb.c (agent_command): Ditto.
15 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
16 (rs6000_pop_frame): Ditto.
17 (rs6000_frameless_function_invocation): Ditto.
18 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
19 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
20 * macroscope.c (default_macro_scope): Ditto.
21 * stack.c (print_frame_info_base): Ditto.
22 (print_frame, frame_info, print_frame_label_vars): Ditto.
23 (return_command, func_command, get_frame_language): Ditto.
24 * infcmd.c (finish_command): Ditto.
25 * dummy-frame.c (cached_find_dummy_frame): Ditto.
26 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
27 (break_at_finish_at_depth_command_1): Ditto.
28 (break_at_finish_command_1): Ditto.
29 (until_break_command, get_catch_sals): Ditto.
30 * blockframe.c (func_frame_chain_valid): Ditto.
31 (frameless_look_for_prologue): Ditto.
32 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
33
408400e7
AC
342002-12-08 Andrew Cagney <ac131313@redhat.com>
35
36 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
37 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
38
97f46953
AC
392002-12-08 Andrew Cagney <ac131313@redhat.com>
40
41 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
42 to pure functions.
43 * gdbarch.h, gdbarch.c: Re-generate.
44 * frame.c (get_prev_frame): Explictly assign prev's pc with value
45 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
46
47 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
48 declaration to a function returning a CORE_ADDR.
49 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
50 * arch-utils.c (init_frame_pc_noop): Return the PC value.
51 (init_frame_pc_default): Ditto.
52 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
53 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
54 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
55 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
56 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
57 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
58
59 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
60 to init_frame_pc_noop.
61 (i386_interix_init_frame_pc): Delete function.
62 * z8k-tdep.c (init_frame_pc): Delete function.
63 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
64 (INIT_FRAME_PC_FIRST): Ditto.
65 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
66 (INIT_FRAME_PC_FIRST): Ditto.
67 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
68 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
69 init_frame_pc_noop.
70 (INIT_FRAME_PC_FIRST): Convert to an expression.
71 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
72
8b36eed8
AC
732002-12-08 Andrew Cagney <ac131313@redhat.com>
74
75 * blockframe.c: Use get_frame_base instead of directly accessing
76 the `struct frame_info' member frame.
77 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
78 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
79
aeeccc89
EZ
802002-12-08 Elena Zannoni <ezannoni@redhat.com>
81
82 * Makefile.in (readline_h): Define.
83 (completer.o): Depend on readline_h.
84 (corelow.o): Ditto.
85 (event-top.o): Ditto.
86 (exec.o): Ditto.
87 (solib.o): Ditto.
88 (source.o): Ditto.
89 (symfile.o): Ditto.
90 (symmisc.o): Ditto.
91 (top.o): Ditto.
92 (tracepoint.o): Ditto.
93 (utils.o): Ditto.
94 (cli-dump.o): Ditto.
95 (tui-hooks.o): Ditto.
96 (tuiWin.o): Ditto.
97
38017ce8
EZ
982002-12-08 Elena Zannoni <ezannoni@redhat.com>
99
100 More cleanup from import of readline 4.3.
101 * completer.h (complete_line, readline_line_completion_function):
102 Update prototypes.
103 (line_completion_function): Removed, not used outside of completer.c.
104 * completer.c (readline_line_completion_function,
105 complete_function, line_completion_function): Use const for first
106 parameter.
107 (line_completion_function): Make static.
108 (filename_completer): filename_completion_function is now called
109 rl_filename_completion_function
110 * corelow.c: Include <readline/readline.h>.
111 * exec.c: Ditto.
112 * solib.c: Ditto.
113 * source.c: Ditto.
114 * symfile.c: Ditto.
115 * symmisc.c: Ditto.
116 * top.c (init_main): No need to coerce
117 readline_line_completion_function anymore.
118 * cli/cli-dump.c: Include <readline/readline.h>.
119
75e3c1f9
AC
1202002-12-08 Andrew Cagney <ac131313@redhat.com>
121
122 * stack.c (frame_info): Use get_prev_frame.
123 * blockframe.c (frame_address_in_block): Ditto.
124 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
125 (rs6000_frameless_function_invocation): Ditto.
126 (rs6000_frame_saved_pc): Ditto.
127 (rs6000_frame_chain): Ditto.
128 * arch-utils.c (init_frame_pc_default): Ditto.
129
0d2b8049
AC
1302002-12-08 Andrew Cagney <ac131313@redhat.com>
131
132 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
133 Delete redundant definition.
134
9255ee31
EZ
1352002-12-08 Elena Zannoni <ezannoni@redhat.com>
136
137 Import of readline 4.3:
138 * cli/cli-cmds.c: Include readline/tilde.h.
139 * cli/cli-setshow.c: Ditto.
140 * defs.h: Don't declare tilde_expand anymore, since readline
141 exports it.
142
3442dad6 1432002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
144
145 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
146 -Werror on this file.
147
52f87c51
AC
1482002-12-07 Andrew Cagney <ac131313@redhat.com>
149
150 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
151 the format name.
152 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
153 * gdbarch.c: Regenerate.
154
2ca6c561
AC
1552002-12-06 Andrew Cagney <ac131313@redhat.com>
156
157 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
158 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
159 provide a default value.
160 * gdbarch.h, gdbarch.c: Regenerate.
161 * frame.c (get_prev_frame): Update. Check
162 DEPRECATED_INIT_FRAME_PC_FIRST_P.
163 * s390-tdep.c (s390_gdbarch_init): Update.
164 * mips-tdep.c (mips_gdbarch_init): Update.
165 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
166 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
167 * alpha-tdep.c (alpha_gdbarch_init): Update.
168
e162d11b
EZ
1692002-12-06 Elena Zannoni <ezannoni@redhat.com>
170
171 * ia64-linux-nat.c: Include gdb_string.h.
172 * alpha-nat.c: Ditto.
2b298b5d
EZ
173 * ppc-linux-nat.c: Ditto.
174 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
175 Update dependencies.
e162d11b 176
aa0cd9c1
AC
1772002-12-05 Andrew Cagney <ac131313@redhat.com>
178
179 * gdbthread.h: Include "frame.h".
180 (struct thread_info): Replace step_frame_address with
181 step_frame_id.
182 * inferior.h: Include "frame.h".
183 (step_frame_id): Replace external variable step_frame_address.
184 * gdbthread.h (save_infrun_state): Replace step_frame_address
185 parameter with step_frame_id parameter.
186 (load_infrun_state): Ditto.
187 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
188 * infcmd.c (step_frame_id, step_1, step_once): Update.
189 * thread.c (load_infrun_state, save_infrun_state): Update.
190 * infrun.c (clear_proceed_status, save_inferior_status): Update.
191 (handle_inferior_event, step_over_function): Update.
192 (normal_stop, context_switch, restore_inferior_status): Update.
193 (struct inferior_status): Replace step_frame_address with
194 step_frame_id.
195
a9a9bd0f
DC
1962002-12-05 David Carlton <carlton@math.stanford.edu>
197
198 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
199 DW_TAG_member as well as a declaration as being a C++ static data
200 member.
201 (read_structure_scope): Combine tests for DW_TAG_member and
202 DW_TAG_variable.
203
614b3b14
DC
2042002-12-05 David Carlton <carlton@math.stanford.edu>
205
206 * linespec.c (decode_compound): New function.
207 (decode_line_1): Move code into decode_compound.
208
e4051eeb
DC
2092002-12-05 David Carlton <carlton@math.stanford.edu>
210
211 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
212 argument.
213 (lookup_symbol_aux): Do the 'field_of_this' check before checking
214 the static block. See PR gdb/804.
215
f61e8913
DC
2162002-12-05 David Carlton <carlton@math.stanford.edu>
217
218 * symtab.c (lookup_symbol_aux_block): New function.
219 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
220
1e9f55d0
AC
2212002-12-05 Andrew Cagney <ac131313@redhat.com>
222
223 * gdbarch.sh: Dump the predicate function and macro values.
224 (read): Print error on standard error.
225 * gdbarch.c: Regenerate.
226
d1973055
KB
2272002-12-04 Kevin Buettner <kevinb@redhat.com>
228
229 * Makefile.in (mips_tdep_h): Define.
230 (mips-tdep.o): Add mips_tdep_h to dependency list.
231 * mips-tdep.h: New file.
232 * mips-tdep.c (mips-tdep.h): Include.
233 (enum mips_abi): Move to mips-tdep.h.
234 (mips_abi): New function.
235
f1253c7b
DC
2362002-12-04 David Carlton <carlton@math.stanford.edu>
237
238 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
239
406bc4de
DC
2402002-12-04 David Carlton <carlton@math.stanford.edu>
241
242 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
243 function.
244 (lookup_symbol_aux_minsyms): New function.
245
2a3750c5
JB
2462002-12-04 J. Brobecker <brobecker@gnat.com>
247
248 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
249
961d8652
JB
2502002-12-04 J. Brobecker <brobecker@gnat.com>
251
252 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
253 which is an obsolete macro name.
254
38c52d5a
DJ
2552002-12-04 Daniel Jacobowitz <drow@mvista.com>
256
257 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
258 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
259
d8ef46f5
DJ
2602002-12-03 H.J. Lu (hjl@gnu.org)
261
262 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
263 (create_breakpoints): Make sure the addr_string field is not
264 NULL.
265
02ae7771
AC
2662002-12-03 Andrew Cagney <ac131313@redhat.com>
267
268 * sparc-nat.c (fetch_inferior_registers)
269 (store_inferior_registers): Add comment on problem of LWP vs
270 threads.
271
272 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
273 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
274 (lin_lwp_store_registers): Remove.
275 (init_lin_lwp_ops): Use fetch_inferior_registers
276 and store_inferior_registers directly.
277 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
278 (store_inferior_registers): Likewise.
279 Fix PR gdb/725.
280
7a424e99
AC
2812002-12-03 Andrew Cagney <ac131313@redhat.com>
282
283 * frame.h (get_frame_id): Convert to a function.
284 (null_frame_id, frame_id_p): Declare.
285 (frame_id_eq, frame_id_inner): Declare.
286 (frame_id_build): New function.
287 * frame.c (get_frame_id): Update. Use null_frame_id.
288 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
289 frame_id_inner.
290 (null_frame_id, frame_id_p): Define.
291 (frame_id_eq, frame_id_inner): Define.
292 (frame_id_build): New function.
293 * varobj.c (varobj_create): Update.
294 (varobj_update): Update.
295 * valops.c (value_assign): Update.
296 (new_root_variable): Update.
297 * infrun.c (save_inferior_status): Update.
298 * breakpoint.c (watch_command_1): Update.
299
891c7f5f
JB
3002002-12-03 J. Brobecker <brobecker@gnat.com>
301
302 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
303 (SNAP2): Likewise.
304
144da3c1
AC
3052002-12-03 Andrew Cagney <cagney@redhat.com>
306
46248966
AC
307 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
308 patch.
309
144da3c1
AC
310 * PROBLEMS: Mention PR gdb/725.
311
03c6228e
AS
3122002-12-03 Andreas Schwab <schwab@suse.de>
313
314 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
315
36e53c63
AF
3162002-12-02 Adam Fedor <fedor@gnu.org>
317 Klee Dienes <kdienes@apple.com>
318
319 * objc-lang.c (objc_printstr): Add width arg to match
320 printstr prototype.
321 (compare_selectors): Add 'const' to arg types.
322 (compare_classes): Likewise.
323 (find_imps): Cast msym pointer to avoid compiler warning.
324 (print_object_command): Validate the address before
325 passing it to the print routine.
326 (find_objc_msgcall_submethod): Change function argument to
327 return an int.
328 * objc-lang.h: Add 'extern' to all function declarations.
329 (value_nsstring): Add declaration.
330
504d5c7e
JB
3312002-12-02 J. Brobecker <brobecker@gnat.com>
332
333 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
334 Fixes a build failure on HP/UX.
335
336 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
337 failure on HP/UX.
338 (hpread_has_name): Advance declaration to avoid a compilation warning.
339 (pst_syms_count): Add missing variable type. By change, the compiler
340 was defaulting to int, which seems a good choice. Fixes a compilation
341 warning.
342 (pst_syms_size): Likewise.
343
59623e27
JB
3442002-12-02 J. Brobecker <brobecker@gnat.com>
345
346 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
347 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
348 later to set the proper gdbarch methods depending on the osabi.
349 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
350
a09a320d
JB
3512002-12-02 J. Brobecker <brobecker@gnat.com>
352
353 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
354 * osabi.c (gdb_osabi_name): Add strings images for the two new
355 enum values.
356 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
357
8a81a99e
AC
3582002-12-02 Andrew Cagney <ac131313@redhat.com>
359
360 * MAINTAINERS (Java): Global maintainers are responible for Java.
361 (Past Maintainers): Mention both Anthony Green and Per Bothner as
362 part Java maintainers.
363
7af35dad
JB
3642002-12-02 J. Brobecker <brobecker@gnat.com>
365
366 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
367 Fixes a compilation failure on AiX.
368
f4ede9bc
JB
3692002-12-02 J. Brobecker <brobecker@gnat.com>
370
371 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
372 why aix-thread.o is not listed.
373
ae45cd16
AC
3742002-12-01 Andrew Cagney <ac131313@redhat.com>
375
376 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
377 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
378 * gdbarch.h, gdbarch.c: Re-generate.
379 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
380 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
381 * config/pa/tm-hppa.h, frame.h: Update.
382 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
383 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
384 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
385 * cris-tdep.c, alpha-tdep.c: Update.
386 * frame.c (set_unwind_by_pc, create_new_frame): Use either
387 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
388 (get_prev_frame): Ditto.
389
020cc13c
AC
3902002-11-30 Andrew Cagney <cagney@redhat.com>
391
392 * exec.c (xfer_memory): Replace boolean with int.
393 * p-exp.y: Use 0 instead of false.
394 * corelow.c (gdb_check_format): Change return type to int from
395 boolean.
396 * utils.c: Don't include <curses.h> or <term.h> first.
397
1d9b2aa8
SC
3982002-11-29 Stephane Carrez <stcarrez@nerim.fr>
399
400 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
401 (m68hc11_register_byte): Remove.
402 (m68hc11_gdbarch_init): Don't set the above.
403
a193e397
AC
4042002-11-29 Andrew Cagney <cagney@redhat.com>
405
406 * remote-mips.c (mips_initialize): Force a selected frame rebuild
407 by calling get_selected_frame.
408 * ocd.c (ocd_start_remote): Use get_selected frame instead of
409 set_current_frame, create_new_frame, select_frame and
410 get_current_frame.
411 * remote-e7000.c (e7000_start_remote): Ditto.
412 * remote-mips.c (common_open): Ditto
413 * remote-rdp.c (remote_rdp_open): Ditto.
414
b5fc49aa
AS
4152002-11-29 Andreas Schwab <schwab@suse.de>
416
417 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
418 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
419 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
420 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
421 read_memory_unsigned_integer instead of read_memory_integer when
422 dealing with addresses and instruction opcodes.
423 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
424 (m68k_linux_frame_saved_pc): Likewise.
425
6e7f8b9c
AC
4262002-11-29 Andrew Cagney <ac131313@redhat.com>
427
428 * stack.c (selected_frame, select_frame): Move from here ...
429 * frame.c (selected_frame, select_frame): ... to here. Include
430 "language.h".
431 * Makefile.in (frame.o): Update dependencies.
432 * frame.c (get_selected_frame): New function.
433 * frame.h (get_selected_frame): Declare.
434 (deprecated_selected_frame): Rename selected_frame.
435 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
436 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
437 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
438 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
439 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
440 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
441 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
442 * z8k-tdep.c, cli/cli-cmds.c: Update.
443
805e2818
AC
4442002-11-29 Andrew Cagney <ac131313@redhat.com>
445
446 * frame.h (get_selected_block): Add comments.
447
1058bca7
AC
4482002-11-28 Andrew Cagney <ac131313@redhat.com>
449
450 * frame.c (pc_notcurrent): New function.
451 (find_frame_sal): New function.
452 * frame.h (find_frame_sal): Declare.
453 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
454 * stack.c (print_frame_info_base): Use find_frame_sal instead of
455 find_pc_line.
1058bca7
AC
456 (frame_info): Ditto.
457 * ada-lang.c (find_printable_frame): Ditto.
458
d92419e5
JB
4592002-11-28 J. Brobecker <brobecker@gnat.com>
460
461 * configure.in: Check that the pthdebug library is recent enough
462 before enabling thread support on native AiX.
463 * configure: Regenerate.
464
465 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
466 from the list of object files as it is now appended by configure
467 if thread support is enabled.
468 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
469 if thread support is enabled.
470
8c69fc49
AC
4712002-11-28 Andrew Cagney <cagney@redhat.com>
472
473 * stack.c (get_selected_block): In-line get_current_block.
474 * frame.h (get_current_block): Delete declaration.
475 * blockframe.c (get_current_block): Delete function.
476
07555a72
AC
4772002-11-28 Andrew Cagney <ac131313@redhat.com>
478
479 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
480 USE_GENERIC_DUMMY_FRAMES.
481 * gdbarch.h, gdbarch.c: Regenerate.
482 * valops.c, frame.c: Update.
483 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
484 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
485 * config/pa/tm-hppa.h, blockframe.c: Update.
486 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
487 * m68k-tdep.c, alpha-tdep.c: Ditto.
488
489 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
490 * mips-tdep.c: Ditto.
491
b99fa2d2
AC
4922002-11-27 Andrew Cagney <ac131313@redhat.com>
493
494 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
495 (USE_GENERIC_DUMMY_FRAMES): Default to true.
496 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
497 * gdbarch.c, gdbarch.h: Re-generate.
498 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
499 (CALL_DUMMY_LOCATION): Delete macro definition.
500 (PC_IN_CALL_DUMMY): Delete macro definitions.
501
502 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
503 default is already generic_pc_in_call_dummy.
504 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
505 * v850-tdep.c (v850_gdbarch_init): Ditto.
506 * sh-tdep.c (sh_gdbarch_init): Ditto.
507 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
508 * mips-tdep.c (mips_gdbarch_init): Ditto.
509 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
510 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
511 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
512 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
513 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
514 * avr-tdep.c (avr_gdbarch_init): Ditto.
515
516 * arm-tdep.c (arm_gdbarch_init): Do not set
517 use_generic_dummy_frames, default is already 1.
518 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
519 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
520 * v850-tdep.c (v850_gdbarch_init): Ditto.
521 * sh-tdep.c (sh_gdbarch_init): Ditto.
522 * s390-tdep.c (s390_gdbarch_init): Ditto.
523 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
524 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
525 * mips-tdep.c (mips_gdbarch_init): Ditto.
526 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
527 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
528 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
529 * i386-tdep.c (i386_gdbarch_init): Ditto.
530 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
531 * frv-tdep.c (frv_gdbarch_init): Ditto.
532 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
533 * cris-tdep.c (cris_gdbarch_init): Ditto.
534 * avr-tdep.c (avr_gdbarch_init): Ditto.
535
536 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
537 call_dummy_location, default is already AT_ENTRY_POINT.
538 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
539 * v850-tdep.c (v850_gdbarch_init): Ditto.
540 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
541 * sh-tdep.c (sh_gdbarch_init): Ditto.
542 * s390-tdep.c (s390_gdbarch_init): Ditto.
543 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
544 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
545 * mips-tdep.c (mips_gdbarch_init): Ditto.
546 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
547 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
548 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
549 * i386-tdep.c (i386_gdbarch_init): Ditto.
550 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
551 * frv-tdep.c (frv_gdbarch_init): Ditto.
552 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
553 * cris-tdep.c (cris_gdbarch_init): Ditto.
554 * avr-tdep.c (avr_gdbarch_init): Ditto.
555 * arm-tdep.c (arm_gdbarch_init): Ditto.
556 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
557
abc0af47
AC
5582002-11-28 Andrew Cagney <cagney@redhat.com>
559
560 * frame.h: Update comments on set_current_frame, create_new_frame,
561 flush_cached_frames, reinit_frame_cache, select_frame and
562 selected_frame.
563
ed5cedc5
AC
5642002-11-27 Andrew Cagney <cagney@redhat.com>
565
566 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
567 deprecated pc_in_call_dummy function.
568 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
569 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
570 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
571 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
572 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
573
b2a1bd4f
MH
5742002-11-26 Martin M. Hunt <hunt@redhat.com>
575
576 * Makefile.in: Remove Tix dependencies.
577 * acinclude.m4: Ditto.
578 * aclocal.m4: Ditto.
579 * configure.in: Ditto.
580 * configure: Regenerated.
581
f09cffaa
AC
5822002-11-26 Andrew Cagney <ac131313@redhat.com>
583
584 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
585 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
586 * gdbarch.c: Re-generate.
587
e92b0cc9
AC
5882002-11-26 Andrew Cagney <ac131313@redhat.com>
589
590 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
591 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
592 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
593 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
594 pc_in_call_dummy_at_entry_point.
595 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
596 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
597 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
598 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
599 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
600 pc_in_call_dummy_on_stack.
601 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
602 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
603 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
604 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
605 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
606
b4b88177
AC
6072002-11-26 Andrew Cagney <ac131313@redhat.com>
608
609 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
610 pc_in_call_dummy_before_text_end
611 (deprecated_pc_in_call_dummy_after_text_end): Rename
612 pc_in_call_dummy_after_text_end.
613 (deprecated_pc_in_call_dummy_on_stack): Rename
614 pc_in_call_dummy_on_stack.
615 (deprecated_pc_in_call_dummy_at_entry_point): Rename
616 pc_in_call_dummy_at_entry_point.
617 * m68k-tdep.c (m68k_gdbarch_init): Update.
618 * s390-tdep.c (s390_gdbarch_init): Update.
619 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
620 * vax-tdep.c (vax_gdbarch_init): Update.
621 * sparc-tdep.c (sparc_gdbarch_init): Update.
622 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
623 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
624 * i386-tdep.c (i386_gdbarch_init): Update.
625 * frv-tdep.c (frv_gdbarch_init): Update.
626 * cris-tdep.c (cris_gdbarch_init): Update.
627 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
628 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
629 (deprecated_pc_in_call_dummy_after_text_end)
630 (deprecated_pc_in_call_dummy_on_stack)
631 (deprecated_pc_in_call_dummy_at_entry_point): Update.
632 * alpha-tdep.c (alpha_gdbarch_init): Update.
633
eb784848
DJ
6342002-11-25 Daniel Jacobowitz <drow@mvista.com>
635
636 * acconfig.h (HAVE_PREAD64): Add.
637 * configure.in: Check for pread64.
638 * config.in: Regenerated.
639 * configure: Regenerated.
640 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
641 * linux-proc.c (linux_proc_xfer_memory): New function.
642 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
643
933c6fe4
DC
6442002-11-25 David Carlton <carlton@math.stanford.edu>
645
646 * dwarf2read.c (scan_partial_symbols): Descend into namespace
647 pdi's with no name.
648
158a8022
AC
6492002-11-25 Andrew Cagney <ac131313@redhat.com>
650
651 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
652 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
653
481d0f41
JB
6542002-11-25 Jim Blandy <jimb@redhat.com>
655
e8289572
JB
656 * symfile.c (init_objfile_sect_indices): New function.
657 (default_symfile_offsets): Move the section-index-initializing
658 stuff into init_objfile_sect_indices, and call that.
659
b29c9944
JB
660 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
661 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
662
13de58df
JB
663 * symfile.c (syms_from_objfile): Adjust indentation.
664
481d0f41
JB
665 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
666 || info_verbose isn't true.
667
7d6a26a7
AC
6682002-11-24 Andrew Cagney <ac131313@redhat.com>
669
670 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
671 default to get_frame_base.
672 * gdbarch.h, gdbarch.c: Regenerate.
673 * arch-utils.c (default_frame_address): Delete function.
674 * arch-utils.h (default_frame_address): Delete declaration
675
6abe1021
PM
6762002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
677
678 * varobj.c (find_frame_addr_in_frame_chain):
679 Use get_frame_base instead of FRAME_FP,
680 obvious fix.
681
c193f6ac
AC
6822002-11-19 Andrew Cagney <ac131313@redhat.com>
683
684 * frame.h (FRAME_FP): Delete macro.
685 (get_frame_base): New function declaration.
686 * frame.c (get_frame_base): New function.
687 (get_frame_id): Use ->frame.
688 (frame_find_by_id): Rewrite to use get_frame_id.
689 * blockframe.c: Use get_frame_base instead of FRAME_FP.
690 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
691 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
692 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
693 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
694 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
695 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
696
e5d2af14
AC
6972002-11-24 Andrew Cagney <ac131313@redhat.com>
698
699 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
700
931d12c6
AC
7012002-11-24 Andrew Cagney <ac131313@redhat.com>
702
703 * frame.c (set_unwind_by_pc): Revert change below, use
704 PC_IN_CALL_DUMMY.
705 (get_prev_frame): Ditto.
706
5e0f933e
AC
7072002-11-24 Andrew Cagney <ac131313@redhat.com>
708
709 * dummy-frame.c (pc_in_dummy_frame): New function.
710 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
711 (find_dummy_frame): Update comment.
712 (generic_pop_current_frame): Use get_frame_type.
713 * dummy-frame.h (pc_in_dummy_frame): Declare.
714 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
715 (create_new_frame): Use pc_in_dummy_frame.
716 (get_prev_frame): Use pc_in_dummy_frame.
717 (frame_saved_regs_register_unwind): Use get_prev_frame.
718 (deprecated_generic_get_saved_register): Use get_prev_frame.
719
7d8547c9
AC
7202002-11-23 Andrew Cagney <ac131313@redhat.com>
721
722 * blockframe.c (find_frame_addr_in_frame_chain): Move function
723 from here ...
724 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
725 (varobj_create): Note that frame ID should be used.
726 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
727
0225421b
AC
7282002-11-23 Andrew Cagney <ac131313@redhat.com>
729
730 * breakpoint.c: Include "gdb_assert.h".
731 (deprecated_frame_in_dummy): Assert that generic dummy frames are
732 not being used.
733 * Makefile.in (breakpoint.o): Update dependencies.
734 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
735 deprecated_frame_in_dummy.
736 * stack.c (print_frame_info_base): Ditto.
737 (frame_info): Ditto.
738 (print_frame_info_base): Ditto. Delete dead code.
739
32eeb91a
AS
7402002-11-23 Andreas Schwab <schwab@suse.de>
741
742 * Makefile.in (m68k_tdep_h): Define.
743 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
744 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
745 * m68k-tdep.c: Move register number enum ...
746 * m68k-tdep.h: ... to this new file and rename the constants from
747 E_* to M68K_*. All uses changed.
748 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
749 * abug-rom.c: Include "m68k-tdep.h". Use
750 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
751 * cpu32bug-rom.c: Likewise.
752 * dbug-rom.c: Likewise.
753 * m68k-tdep.c: Likewise.
754 * m68klinux-nat.c: Likewise.
755 * remote-est.c: Likewise.
756 * rom68k-rom.c: Likewise.
757 * config/m68k/tm-linux.h: Likewise.
758
9648bac8
AC
7592002-11-23 Andrew Cagney <ac131313@redhat.com>
760
761 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
762 dummy frame initialization code.
763 * mips-tdep.c (mips_gdbarch_init): Ditto.
764
91a175b3
CF
7652002-11-22 Christopher Faylor <cgf@redhat.com>
766
767 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
768 attach will hang.
769
f4ded5b1
AC
7702002-11-22 Andrew Cagney <ac131313@redhat.com>
771
772 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
773 to default_frame_address.
774 * gdbarch.h, gdbarch.c: Re-generate.
775
776 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
777 or frame_locals_address to default_frame_address.
778 * m68k-tdep.c (m68k_gdbarch_init): Update.
779 * i386-tdep.c (i386_gdbarch_init): Update.
780 * frv-tdep.c (frv_gdbarch_init): Update.
781 * sh-tdep.c (sh_gdbarch_init): Update.
782 * v850-tdep.c (v850_gdbarch_init): Update.
783 * sparc-tdep.c (sparc_gdbarch_init): Update.
784 * mips-tdep.c (mips_gdbarch_init): Update.
785 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
786 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
787 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
788
789 * cris-tdep.c (cris_frame_args_address): Delete function.
790 (cris_frame_locals_address): Delete function.
791 (cris_gdbarch_init): Do not set frame_args_address or
792 frame_locals_address.
793
f7c1e0f3
MS
7942002-11-22 Michael Snyder <msnyder@redhat.com>
795
796 * thread-db.c (thread_db_load): Tell the user what's going on
797 if dlopen fails on libthread_db.
798
03dac896
AS
7992002-11-23 Andreas Schwab <schwab@suse.de>
800
801 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
802 invariant return values.
803
7a67d0fe
AS
8042002-11-22 Andreas Schwab <schwab@suse.de>
805
806 * valops.c (value_slice): Move declaration of `offset' to avoid
807 warning.
808
5633f842
CF
8092002-11-22 Christopher Faylor <cgf@redhat.com>
810
811 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
812 (struct so_stuff): Add end_addr field.
813 (register_loaded_dll): Calculate and store end address of loaded dll.
814 (solib_address): New function.
815 (child_solib_loaded_library_pathname): Pass carefully constructed
816 section info to safe_symbol_file_add rather than ignoring it.
817 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
818 DLL is loaded.
819 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
820 (child_create_inferior): Fix a compiler warning.
821 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
822 (solib_address): Declare new function.
823
d85fe7f7
AS
8242002-11-22 Andreas Schwab <schwab@suse.de>
825
826 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
827 and FPS registers.
828
8308e54c
DJ
8292002-11-21 Daniel Jacobowitz <drow@mvista.com>
830
831 * maint.c (_initialize_maint_cmds): Fix typo. From
832 Francesco Potorti` <pot@gnu.org>.
833
8997bd5e
AC
8342002-11-21 Andrew Cagney <cagney@redhat.com>
835
836 * mips-tdep.c (mips_dump_tdep): Delete references to
837 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
838 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
839 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
840 * printcmd.c (build_address_symbolic): Delete calls to
841 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
842 (address_info): Ditto.
843 Fix PR gdb/773.
844
4e87b832
KD
8452002-11-19 Klee Dienes <kdienes@apple.com>
846 Adam Fedor <fedor@gnu.org>
847
848 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
849 the ability to explicitly specify the quote characters and word
850 break characters; if NULL is specified for either, use the old
851 behavior of using the characters used by the completer.
852 (skip_chars): New function. Convenience wrapper around
853 skip_quoted_chars to provide the original skip_chars behavior.
854 * completer.h (skip_quoted_chars): Add prototype.
855
9ba8d803
AC
8562002-11-19 Andrew Cagney <ac131313@redhat.com>
857
858 Problems reported by Paul Eggert.
859 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
860
0a595803
AS
8612002-11-19 Andreas Schwab <schwab@suse.de>
862
863 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
864 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
865 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
866 (m68k_linux_frame_saved_pc): Move to ...
867 * m68klinux-tdep.c: ... here. New file.
868 * Makefile.in (m68klinux-tdep.o): Add dependencies.
869 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
870
e8afa4d7
AF
8712002-11-19 Adam Fedor <fedor@gnu.org>
872
873 * objc-exp.y: Revert to old skip_quoted usage.
874
a76c9d72
AF
8752002-11-19 Adam Fedor <fedor@gnu.org>
876
877 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
878 (objc_lang_h): Define.
879 (YYFILES): Add objc-exp.tab.c.
880 (local-maintainer-clean): Remove objc-exp.tab.c.
881 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
882
fd0e9d45
PM
8832002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
884
885 * p-exp.y (typecast rule): Add automatic dereference of
886 pascal classes if needed.
887 (THIS): Set current_type.
888 Automatically dereference pascal classes.
889 (typebase rule): Add ^typebase recognition.
890
82eeeb94
AF
8912002-11-18 Adam Fedor <fedor@gnu.org>
892
893 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
894 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
895 (op_name): Handle OP_OBJC_SELF.
896 * Makefile.in (expprint.o): Add additional depends.
897
646df18d
AF
8982002-11-18 Adam Fedor <fedor@gnu.org>
899
900 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
901 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
902 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
903 * objc-exp.y: Likewise.
904
379b85df
AF
9052002-11-18 Adam Fedor <fedor@gnu.org>
906
907 * gdb/parser-defs.h: (struct objc_class_str): New structure
908 for parsing ObjC classes.
909
85cf597a
AC
9102002-11-18 Andrew Cagney <ac131313@redhat.com>
911
912 * stack.c (frame_relative_level): Copy function from here ...
913 * frame.c (frame_relative_level): ...to here.
914
5a203e44
AC
9152002-11-18 Andrew Cagney <ac131313@redhat.com>
916
917 * frame.h (enum frame_type): Define.
918 (get_frame_type): Declare.
919 (struct frame_info): Add field `type'. Delete field
920 signal_handler_caller.
921 (deprecated_set_frame_signal_handler_caller): Declare.
922 * frame.c (get_frame_type): New function.
923 (deprecated_set_frame_type): New function.
924 (create_new_frame): Set the frame's type.
925 (get_prev_frame): Similar.
926 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
927 * s390-tdep.c: Ditto.
928 * m68klinux-nat.c: Ditto.
929 * ns32k-tdep.c: Ditto.
930 * x86-64-linux-tdep.c: Ditto.
931 * vax-tdep.c: Ditto.
932 * rs6000-tdep.c: Ditto.
933 * ppc-linux-tdep.c: Ditto.
934 * i386-interix-tdep.c: Ditto.
935 * mips-tdep.c: Ditto.
936 * m68k-tdep.c: Ditto.
937 * hppa-tdep.c: Ditto.
938 * ia64-tdep.c: Ditto.
939 * cris-tdep.c: Ditto.
940 * arm-tdep.c: Ditto.
941 * alpha-tdep.c: Ditto.
942 * i386-tdep.c: Ditto.
943 * stack.c: Ditto.
944 * ada-lang.c: Ditto.
945 * blockframe.c: Update.
946 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
947 deprecated_set_frame_type instead of signal_handler_caller.
948 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
949 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
950 * breakpoint.h: Delete FIXME suggesting get_frame_type.
951
bf4ae8b2
KD
9522002-11-18 Klee Dienes <kdienes@apple.com>
953
954 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
955
a672ef13
KD
9562002-11-18 Klee Dienes <kdienes@apple.com>
957
958 * buildsym.c (pop_context): Add comment.
959
0c5e171a
KD
9602002-11-18 Klee Dienes <kdienes@apple.com>
961
962 * buildsym.h (pop_context): Convert to function, defined in
963 buildsym.c.
964 * buildsym.c: Include gdb_assert.h.
965 (pop_context): Implement as C function. Add check for stack
966 underflow.
967 * dbxread.c (process_one_symbol): Complain and stop processing
968 that symbol if we are already at the top of the context stack for
969 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
970 when processing N_RBRAC.
971
8a1f4c4c
DJ
9722002-11-16 Daniel Jacobowitz <drow@mvista.com>
973
974 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
975 define.
976 (struct target_waitstatus): Add opaque definition.
977 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
978 * exec.c (init_exec_ops): Likewise.
979 * fork-child.c (clone_and_follow_inferior): Remove.
980 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
981 * inferior.h (clone_and_follow_inferior): Remove prototype.
982 * infrun.c (follow_fork_mode_both): Remove.
983 (follow_fork_mode_kind_names): Remove commented out "both".
984 (follow_inferior_fork): Remove follow_fork_mode_both support.
985 * inftarg.c (child_clone_and_follow_inferior): Remove.
986 (child_post_follow_inferior_by_clone): Remove.
987 (init_child_ops): Don't set to_clone_and_follow_inferior
988 or to_post_follow_inferior_by_clone.
989 * target.c (default_clone_and_follow_inferior): Remove.
990 (cleanup_target): Don't set to_clone_and_follow_inferior
991 or to_post_follow_inferior_by_clone.
992 (find_default_clone_and_follow_inferior): Remove.
993 (init_dummy_target): Don't set to_clone_and_follow_inferior.
994 (debug_to_clone_and_follow_inferior): Remove.
995 (debug_to_post_follow_inferior_by_clone): Remove.
996 (setup_target_debug): Don't set to_clone_and_follow_inferior
997 or to_post_follow_inferior_by_clone.
998 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
999 and to_post_follow_inferior_by_clone.
1000 (child_clone_and_follow_inferior): Remove prototype.
1001 (child_post_follow_inferior_by_clone): Remove prototype.
1002 (target_clone_and_follow_inferior): Remove macro.
1003 (target_post_follow_inferior_by_clone): Remove macro.
1004 (find_default_clone_and_follow_inferior): Remove prototype.
1005
47932f85
DJ
10062002-11-16 Daniel Jacobowitz <drow@mvista.com>
1007
1008 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1009 inferior_has_vforked, and inferior_has_execd instead of
1010 target_has_forked, target_has_vforked, and target_has_execd.
1011 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1012 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1013 (CHILD_WAIT): Define.
1014 (child_wait): Add prototype.
1015 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1016 Add prototype.
1017 (hpux_has_vforked): Likewise, from child_has_vforked.
1018 (hpux_has_execd): Likewise, from child_has_execd.
1019 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1020 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1021 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1022 and hpux_has_syscall_event instead of the target hooks.
1023 * infrun.c (inferior_has_forked, inferior_has_vforked)
1024 (inferior_has_execd): New functions.
1025 * inftarg.c (not_same_real_pid): Remove.
1026 (child_wait): Remove references to not_same_real_pid,
1027 target_has_forked, target_has_vforked, target_has_execd,
1028 and target_has_syscall_event.
1029 (child_has_forked, child_has_vforked, child_has_execd)
1030 (child_has_syscall_event): Remove.
1031 (init_child_ops): Remove references to child_has_forked,
1032 child_has_vforked, child_has_execd, and child_has_syscall_event.
1033 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1034 (hpux_has_vforked): Likewise, from child_has_vforked.
1035 (hpux_has_execd): Likewise, from child_has_execd.
1036 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1037 * target.c (cleanup_target): Remove references to
1038 to_has_forked, to_has_vforked, to_has_execd, and
1039 to_has_syscall_event.
1040 (update_current_target): Likewise.
1041 (setup_target_debug): Likewise.
1042 (debug_to_has_forked): Remove.
1043 (debug_to_has_vforked): Remove.
1044 (debug_to_has_execd): Remove.
1045 (debug_to_has_syscall_event): Remove.
1046 * target.h (struct target_ops): Remove to_has_forked.
1047 to_has_vforked, to_has_execd, and to_has_syscall_event.
1048 (child_has_forked, child_has_vforked, child_has_execd)
1049 (child_has_syscall_event): Remove prototypes.
1050 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1051 prototypes.
1052 (target_has_forked, target_has_vforked, target_has_execd)
1053 (target_has_syscall_event): Remove macros.
1054
4088142a
DJ
10552002-11-16 Daniel Jacobowitz <drow@mvista.com>
1056
1057 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1058 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1059 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1060 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1061 * target.c (cleanup_target): Remove reference to
1062 to_can_follow_vfork_prior_to_exec.
1063 (update_current_target): Likewise.
1064 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1065 (setup_target_debug): Remove reference to
1066 to_can_follow_vfork_prior_to_exec.
1067 * target.h (struct target_ops): Remove
1068 to_can_follow_vfork_prior_to_exec.
1069 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1070 (target_can_follow_vfork_prior_to_exec): Remove definition.
1071 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1072 define.
1073 * infrun.c (follow_vfork_when_exec): Remove.
1074 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1075 (follow_exec): Likewise.
1076 (handle_inferior_event): Likewise.
1077 (keep_going): Likewise.
1078
18cde8d5
AC
10792002-11-15 Andrew Cagney <cagney@redhat.com>
1080
1081 * frame.c (generic_unwind_get_saved_register): Make static.
1082 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1083 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1084 defaults to generic_unwind_get_saved_register.
1085 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1086 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1087 * frv-tdep.c (frv_gdbarch_init): Ditto.
1088 * i386-tdep.c (i386_gdbarch_init): Ditto.
1089 * s390-tdep.c (s390_gdbarch_init): Ditto.
1090 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1091 * v850-tdep.c (v850_gdbarch_init): Ditto.
1092 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1093 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1094 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1095
a6b063af
AC
10962002-11-15 Andrew Cagney <cagney@redhat.com>
1097
1098 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1099 i386-tdep.c.
1100
f407986f
AC
11012002-11-15 Andrew Cagney <cagney@redhat.com>
1102
1103 * frame.h (sigtramp_saved_pc): Delete declaration.
1104 * blockframe.c (sigtramp_saved_pc): Delete function.
1105 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1106 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1107 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1108 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1109
f18c5a73
AC
11102002-11-15 Andrew Cagney <ac131313@redhat.com>
1111
1112 * frame.c (frame_pc_unwind): New function.
1113 (frame_saved_regs_pc_unwind): New function.
1114 (frame_register_unwind): Pass unwind_cache instead of
1115 register_unwind_cache.
1116 (set_unwind_by_pc): Add unwind_pc parameter, set.
1117 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1118 (get_prev_frame): Ditto.
1119 * frame.h (frame_pc_unwind_ftype): Declare.
1120 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1121 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1122 (frame_pc_unwind): Declare.
1123 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1124 (struct dummy_frame): Add comment mentioning that values are for
1125 previous frame.
1126 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1127 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1128 (generic_file_frame_chain_valid): Ditto.
1129 * stack.c (frame_info): Ditto.
1130
d9285969 11312002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
1132
1133 * linespec.c (locate_first_half): New function.
1134 (decode_line_1): Move code into locate_first_half.
1135
d741b867
AC
11362002-11-15 Andrew Cagney <ac131313@redhat.com>
1137
1138 * complaints.h: Add comment explaining how to eliminate a
1139 deprecated_complain call.
24382c5c 1140 * complaints.h: Fix spelling errors.
d741b867 1141
82d03c99
DC
11422002-11-15 David Carlton <carlton@math.stanford.edu>
1143
1144 * printcmd.c: Remove #include "disasm.h".
1145
c97eb5d9
AC
11462002-11-14 Andrew Cagney <ac131313@redhat.com>
1147
1148 * frame.h: Move the most relevant interface functions to the start
1149 of the file.
1150
524d7c18
AC
11512002-11-14 Andrew Cagney <ac131313@redhat.com>
1152
1153 * regcache.h (deprecated_registers): Rename registers.
1154 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1155 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1156 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1157 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1158 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1159 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1160 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1161 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1162 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1163 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1164 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1165 * v850ice.c: Update.
1166
6411e720
AC
1167Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1168
1169 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1170 NULL buffer.
1171
73937e03
AC
11722002-11-13 Andrew Cagney <cagney@redhat.com>
1173
1174 * regcache.h (deprecated_read_register_bytes): Rename
1175 read_register_bytes.
1176 (deprecated_write_register_bytes): Rename write_register_bytes.
1177 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1178 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1179 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1180 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1181 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1182 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1183 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1184 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1185 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1186 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1187 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1188 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1189 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1190 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1191
fb0cd46e
JB
11922002-11-13 Jim Blandy <jimb@redhat.com>
1193
1194 * findvar.c (read_var_value): Doc fix.
1195
2d28509a
AC
11962002-11-13 Andrew Cagney <cagney@redhat.com>
1197
1198 * regcache.c (struct regcache): Replace passthough_p with
1199 readonly_p.
1200 (regcache_xmalloc): Initialize readonly_p.
1201 (build_regcache): Initialize readonly_p.
1202 (regcache_save): New function.
1203 (regcache_restore): New function.
1204 (regcache_cpy): Re-implement using regcache_save and
1205 regcache_restore.
1206 (regcache_raw_read): Update.
1207 (regcache_cooked_read): When a read-only cache, checked for cached
1208 pseudo register values.
1209 (regcache_raw_write): Assert that the cache is not read-only.
1210 Remove code handling a non-passthrough cache.
1211 * regcache.h (regcache_save): Declare.
1212 (regcache_restore): Declare.
1213
067df2e5
AC
12142002-11-13 Andrew Cagney <cagney@redhat.com>
1215
1216 * regcache.c (struct regcache_descr): Add fields
1217 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1218 (init_legacy_regcache_descr): Compute the size of a cooked
1219 register cache and then assign that to sizeof_raw_registers. Set
1220 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1221 (init_legacy_regcache_descr): Ditto.
1222
51b1fe4e
AC
12232002-11-13 Andrew Cagney <cagney@redhat.com>
1224
1225 * regcache.c (register_buffer): Move to near start of file, update
1226 description.
1227 (regcache_raw_read): Use.
1228 (regcache_raw_write): Use.
1229 (struct regcache): Rename raw_registers to registers and
1230 raw_register_valid_p to register_valid_p.
1231 (regcache_xmalloc): Update.
1232 (regcache_xfree): Update.
1233 (register_buffer): Update.
1234 (regcache_cpy): Update.
1235 (regcache_cpy_no_passthrough): Update.
1236 (regcache_valid_p): Update.
1237 (deprecated_grub_regcache_for_registers): Update.
1238 (deprecated_grub_regcache_for_register_valid): Update.
1239 (set_register_cached): Update.
1240 (regcache_raw_write): Update.
1241
80b4c677
PM
12422002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1243
1244 * p-exp.y (name_not_typename): Use copy_name to
1245 set current_type variable for fields of THIS.
1246
0f3fafde
DJ
12472002-11-12 Daniel Jacobowitz <drow@mvista.com>
1248
1249 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1250 * monitor.c (init_base_monitor_ops): Likewise.
1251 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1252 * remote-array.c (init_array_ops): Likewise.
1253 * remote-e7000.c (init_e7000_ops): Likewise.
1254 * remote-es.c (init_es1800_ops): Likewise.
1255 (init_es1800_child_ops): Likewise.
1256 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1257 * remote-sim.c (init_gdbsim_ops): Likewise.
1258 * remote-st.c (init_st2000_ops): Likewise.
1259 * sol-thread.c (init_sol_core_ops): Likewise.
1260 (init_sol_thread_ops): Likewise.
1261 * v850ice.c (init_850ice_ops): Likewise.
1262 * win32-nat.c (init_child_ops): Likewise.
1263 * wince.c (init_child_ops): Likewise.
1264
82c0260e
AC
12652002-11-12 Andrew Cagney <ac131313@redhat.com>
1266
1267 * utils.c (gdb_realpath): Make rp a constant pointer.
1268
70d35819
AC
12692002-11-12 Andrew Cagney <ac131313@redhat.com>
1270
1271 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1272 a constant buffer; cannonicalize_file_name(); realpath() with a
1273 pathconf() defined buffer, xstrdup().
1274
9835a8b0
AC
12752002-11-12 Andrew Cagney <ac131313@redhat.com>
1276
1277 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1278 to hang2.C; hang3.c to hang3.C.
1279
3f47be5c
EZ
12802002-11-11 Elena Zannoni <ezannoni@redhat.com>
1281
1282 * findvar.c (read_var_value): Reenable TLS code.
1283
12842002-11-11 Elena Zannoni <ezannoni@redhat.com>
1285 Jim Blandy <jimb@redhat.com>
1286
1287 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1288 * target.c (update_current_target): Add
1289 to_get_thread_local_address.
1290 * target.h (to_get_thread_local_address): Export.
1291 (target_get_thread_local_address): Define.
1292 (target_get_thread_local_address_p): Define.
1293 * thread-db.c: Include solib-svr4.h.
1294 (td_thr_tls_get_addr_p): Define.
1295 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1296 (thread_db_get_thread_local_address): New function.
1297 (init_thread_db_ops): Initialize to_get_thread_local_address.
1298 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1299 * configure: Regenerate.
1300 * config.in: Regenerate.
1301
636b1a6d
DC
13022002-11-11 David Carlton <carlton@math.stanford.edu>
1303
1304 * linespec.c (set_flags): New function.
1305 (decode_line_1): Move code into set_flags.
1306
44fe14ab
DC
13072002-11-11 David Carlton <carlton@math.stanford.edu>
1308
1309 * linespec.c (decode_line_1): Move chunks of code to separate
1310 functions.
1311 (initialize_defaults): New function.
1312 (decode_indirect): New function.
1313
e6f181f5
AC
13142002-11-11 Andrew Cagney <ac131313@redhat.com>
1315
8971b011
AC
1316 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1317 instead of void_code_ptr.
1318 (sigtramp_saved_pc): Ditto.
1319
e6f181f5
AC
1320 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1321 i386_fp_regnum_p.
1322
01ad7f36
DJ
13232002-11-10 Daniel Jacobowitz <drow@mvista.com>
1324
1325 * gdbtypes.h (struct main_type): Move artificial flag out of
1326 loc. New member of ``struct field'' named static_kind. Reduce
1327 overloaded meaning of bitsize.
1328 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1329 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1330 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1331
1332 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1333 new fields.
1334 (template_to_fixed_record_type, template_to_static_fixed_type)
1335 (to_record_with_fixed_variant_part): Likewise.
1336 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1337 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1338 * dwarfread.c (struct_type, enum_type): Likewise.
1339 * hpread.c (hpread_read_enum_type)
1340 (hpread_read_function_type, hpread_read_doc_function_type)
1341 (hpread_read_struct_type): Likewise.
1342 * mdebugread.c (parse_symbol): Likewise.
1343
bf1e52be
AC
13442002-11-10 Andrew Cagney <ac131313@redhat.com>
1345
1346 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1347 * stack.c (print_frame_info_base): Update.
1348 (print_frame_info_base, frame_info): Update.
1349 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1350 (sparc_frame_saved_pc): Update.
1351 * ada-lang.c (find_printable_frame): Update.
1352 * breakpoint.c (deprecated_frame_in_dummy): Update.
1353
ce556f85
MK
13542002-11-09 Mark Kettenis <kettenis@gnu.org>
1355
1356 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1357 defined.
1358 (regmap): Extend to cover all registers.
1359 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1360 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1361 definitions.
1362 (fetch_register, sore_register): Simplify.
1363 (old_fetch_inferior_registers, old_store_inferior_registers):
1364 Remove functions.
1365 (cannot_fetch_register, cannot_store_register): Change
1366 implementation to use regmap array to decide which registers
1367 cannot be fetched/stored. This removes $orig_eax from the
1368 registers that cannot be fetched/stored.
1369 (fetch_inferior_registers): Call fetch_register directly instead
1370 of calling old_fetch_inferior_registers.
1371 (store_inferior_registers): Call store_register directly instead
1372 of calling old_store_inferior_registers.
1373 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1374 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1375 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1376
932bb524
KD
13772002-11-09 Klee Dienes <kdienes@apple.com>
1378
1379 * i387-tdep.c (i387_supply_register): When called with NULL as a
1380 buffer, mark the register as not provided (to mirror the behavior
1381 of supply_register).
1382 (i387_supply_fxsave): Ditto.
1383 (i387_supply_fsave): Ditto (inherits the behavior from
1384 i387_supply_register).
1385
ebe68b27
KD
13862002-11-09 Klee Dienes <kdienes@apple.com>
1387
1388 * blockframe.c (sigtramp_saved_pc): Use
1389 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1390 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1391 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1392
15220c65
AC
13932002-11-09 Andrew Cagney <ac131313@redhat.com>
1394
1395 * frame.c (get_prev_frame): Test prev_p to identify a previously
1396 unwound frame. Initialize prev_p.
1397 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1398 comment.
1399
95adb866
AC
14002002-11-09 Andrew Cagney <ac131313@redhat.com>
1401
1402 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1403 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1404 more comments. Zap dead code.
1405
e71ecd70
MK
14062002-11-09 Mark Kettenis <kettenis@gnu.org>
1407
1408 * infcmd.c (print_vector_info, print_float_info): Move code that
1409 checks whether the target has any registers and whether there is a
1410 selected frame up, such that it is also used if a target provides
1411 multi-arch definitions of these functions.
1412
c525330d
AC
14132002-11-08 Andrew Cagney <ac131313@redhat.com>
1414
72bdd927
AC
1415 * Makefile.in (DESTDIR): Define.
1416 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1417 prefix.
1418
c525330d
AC
1419 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1420 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1421
38c968cf
AC
14222002-11-08 Andrew Cagney <ac131313@redhat.com>
1423
1424 * i386-linux-tdep.c: Include "reggroups.h".
1425 (i386_linux_register_reggroup_p): New function.
1426 (i386_linux_init_abi): Set register_reggroup_p to
1427 i386_linux_register_reggroup_p.
1428 * i386-tdep.h (i386_register_reggroup_p): Declare.
1429 * i386-tdep.c: Include "reggroups.h".
1430 (i386_init_reggroups): New function.
1431 (i386_add_reggroups): New function.
1432 (i386_register_reggroup_p): New function.
1433 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1434 (_initialize_i386_tdep): Call i386_init_reggroups.
1435 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1436 specific reggroups.
1437
19e33363
MK
14382002-11-09 Mark Kettenis <kettenis@gnu.org>
1439
371a6e84
MK
1440 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1441 request that's available in *BSD.
1442
94ba925a
MK
1443 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1444
19e33363
MK
1445 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1446 FDOFF_REGNUM.
1447
8779790c
AC
14482002-11-08 Andrew Cagney <ac131313@redhat.com>
1449
1450 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1451 * dummy-frame.c (find_dummy_frame): Rename
1452 generic_find_dummy_frame, make static. Return the dummy frame
1453 instead of the regcache.
1454 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1455 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1456 (dummy_frame_register_unwind): Rename
1457 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1458 * dummy-frame.h (dummy_frame_register_unwind): Rename
1459 generic_call_dummy_register_unwind.
1460
8674b74f
MK
14612002-11-08 Mark Kettenis <kettenis@gnu.org>
1462
1463 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1464 except the inclusion of "i386/tm-i386.h", to...
1465 * config/i386/nm-i386v42mp.h: ...here.
1466 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1467
4c1e7e9d
AC
14682002-11-08 Andrew Cagney <ac131313@redhat.com>
1469
1470 * Makefile.in (frame.o): Update dependencies.
1471 * blockframe.c (current_frame, frame_obstack_alloc)
1472 (frame_saved_regs_zalloc, get_current_frame)
1473 (set_current_frame, create_new_frame)
1474 (set_unwind_by_pc, get_next_frame)
1475 (flush_cached_frames, reinit_frame_cache)
1476 (frame_saved_regs_register_unwind)
1477 (deprecated_generic_get_saved_register)
1478 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1479 (_initialize_blockframe): Move frame code from here...
1480 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1481 "annotate.h" and "dummy-frame.h".
1482 (_initialize_frame): New function.
1483
921e78cf
JB
14842002-11-08 Jim Blandy <jimb@redhat.com>
1485
1486 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1487 when we finish a function a context.
1488 * buildsym.h (outermost_context_p): New macro.
1489 (Bug analyzed by David Edelsohn.)
1490
9c1412c1
AC
14912002-11-08 Andrew Cagney <ac131313@redhat.com>
1492
1493 * blockframe.c: Include "dummy-frame.h".
1494 (struct dummy_frame, dummy_frame_stack)
1495 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1496 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1497 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1498 (generic_save_call_dummy_addr, generic_pop_current_frame)
1499 (generic_pop_dummy_frame, generic_fix_call_dummy)
1500 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1501 dummy frame code from here...
1502 * dummy-frame.c: ...to here. New file.
1503 * dummy-frame.h: New file.
1504 (generic_call_dummy_register_unwind): Declare.
1505 (generic_find_dummy_frame): Declare.
1506 * Makefile.in (SFILES): Add dummy-frame.c.
1507 (dummy-frame.o): Specify dependencies.
1508 (dummy_frame_h): Define.
1509 (COMMON_OBS): Add dummy-frame.o.
1510 (blockframe.o): Update dependencies.
1511
208d8187
JB
15122002-11-08 Jim Blandy <jimb@redhat.com>
1513
1514 * dwarf2read.c (read_func_scope): Restore local_symbols and
1515 param_symbols after we finish the function context. (Based on a
1516 patch from David Edelsohn.)
1517
413dad4d
DC
15182002-11-08 David Carlton <carlton@math.stanford.edu>
1519
1520 * linespec.c (symbol_found): New function.
1521 (minsym_found): New function.
1522 (decode_line_1): Separate out some code into separate functions.
1523
5512c44a
JB
15242002-11-08 Joel Brobecker <brobecker@gnat.com>
1525
1526 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1527 the benefit of the interix target.
1528 * i386-tdep.h (i386_frameless_signal_p): Declare.
1529
1b33ef47
AC
15302002-11-08 Andrew Cagney <ac131313@redhat.com>
1531
1532 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1533 declaration that snuck in from change below.
1534
23a34459
AC
15352002-11-06 Andrew Cagney <cagney@redhat.com>
1536
1537 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1538 all callers.
1539 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1540 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1541 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1542 (i386_mxcsr_regnum_p): new function. Use instead of
1543 MXCSR_REGNUM_P.
1544 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1545 (i386_sse_regnum_p): Declare.
1546 (i386_mxcsr_regnum_p): Declare.
1547 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1548 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1549 (IS_FP_REGNUM): Update definition.
1550 (IS_FPU_CTRL_REGNUM): Update definition..
1551 (IS_SSE_REGNUM): Update definition..
1552 * i386v-nat.c (register_u_addr): Update.
1553 * go32-nat.c (fetch_register): Update.
1554 (store_register): Update.
1555
d709c020
JB
15562002-11-07 Joel Brobecker <brobecker@gnat.com>
1557
1558 Preparation work to convert the hppa targets to multiarch partial.
1559
1560 * hppa-tdep.c: Add new functions replacing macro bodies from
1561 config/pa/tm-hppa.h. These function will be used to initialize
1562 the gdbarch structure. Import some comments from tm-hppa.h,
1563 and place them where appropriate, to avoid loosing them when
1564 we cleanup this file.
1565 (hppa_reg_struct_has_addr): New function.
1566 (hppa_inner_than): New function.
1567 (hppa_stack_align): New function.
1568 (hppa_pc_requires_run_before_use): New function.
1569 (hppa_instruction_nullified): New function.
1570 (hppa_register_byte): New function.
1571 (hppa_register_virtual_type): New function.
1572 (hppa_store_struct_return): New function.
1573 (hppa_cannot_store_register): New function.
1574 (hppa_frame_args_address): New function.
1575 (hppa_frame_locals_address): New function.
1576 (hppa_smash_text_address): New function.
1577 (hppa_coerce_float_to_double): New function. Requires the inclusion
1578 of "language.h".
1579
1580 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1581
1582 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1583 gdbarch-eligible macro to a call to the new associated function
1584 created in hppa-tdep.c.
1585 (INNER_THAN): Likewise.
1586 (STACK_ALIGN): Likewise.
1587 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1588 (INSTRUCTION_NULLIFIED): Likewise.
1589 (REGISTER_BYTE): Likewise.
1590 (REGISTER_VIRTUAL_TYPE): Likewise.
1591 (STORE_STRUCT_RETURN): Likewise.
1592 (CANNOT_STORE_REGISTER): Likewise.
1593 (FRAME_ARGS_ADDRESS): Likewise.
1594 (FRAME_LOCALS_ADDRESS): Likewise.
1595 (SMASH_TEXT_ADDRESS): Likewise.
1596 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1597 (ABOUT_TO_RETURN): Delete, as no longer used.
1598
83c31e7d
FN
15992002-11-07 Fernando Nasser <fnasser@redhat.com>
1600
1601 * printcmd.c (disassemble_command): Remove obsolete function.
1602 (_initialize_printcmd): Do not create disassemble command here.
1603 * cli/cli-cmds.c (disassemble_command): New function. Implements
1604 disassemble command.
1605 (init_cli_cmds): Create disassemble command here instead.
1606
0ec30a36
AC
16072002-11-07 Andrew Cagney <ac131313@redhat.com>
1608
1609 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1610
e600bd34
AC
16112002-11-07 Andrew Cagney <ac131313@redhat.com>
1612
1613 * regcache.h (regcache_cooked_read_using_offset_hack)
1614 (regcache_cooked_write_using_offset_hack): Delete declarations.
1615 (register_changed): Delete declaration.
1616 * regcache.c (regcache_cooked_read_using_offset_hack)
1617 (regcache_cooked_write_using_offset_hack): Delete functions.
1618 (cooked_xfer_using_offset_hack): Delete function.
1619 (register_changed): Delete function.
1620
568f8739
JB
16212002-11-07 Jim Blandy <jimb@redhat.com>
1622
1623 * macroscope.c: #include "complaints.h".
1624 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1625 but not in the macro table.
1626 * Makefile.in (macroscope.o): Record dependency.
1627
b0718b7b
JB
16282002-11-07 Joel Brobecker <brobecker@gnat.com>
1629
1630 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1631
2b9e5f3f
AC
16322002-11-07 Andrew Cagney <ac131313@redhat.com>
1633
1634 * regcache.c (deprecated_registers_fetched): Update.
1635 * regcache.h (deprecated_registers_fetched): Rename
1636 registers_fetched.
1637 * remote-vxsparc.c (vx_read_register): Update.
1638 * remote-vxmips.c (vx_read_register): Update.
1639 * remote-vx68.c (vx_read_register): Update.
1640 * irix5-nat.c (fetch_core_registers): Update.
1641 * mipsm3-nat.c (fetch_inferior_registers): Update.
1642 * sun3-nat.c (fetch_inferior_registers): Update.
1643 * symm-nat.c (fetch_inferior_registers): Update.
1644 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1645 (fetch_core_registers): Update.
1646 (fetch_kcore_registers): Update.
1647 * mips-nat.c (fetch_inferior_registers): Update.
1648 * corelow.c (get_core_registers): Update.
1649 * a68v-nat.c (fetch_inferior_registers): Update.
1650
e6e68f1f
JB
16512002-11-06 Joel Brobecker <brobecker@gnat.com>
1652
1653 Put in place the framework necessary for multiarching the hppa targets.
1654 * hppa-tdep.c (hppa_gdbarch_init): New function.
1655 (hppa_dump_tdep): New function.
1656 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1657 tdep structure dumper.
1658 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1659 until the multi-arching conversion has partially been completed.
1660
492254e9
AC
16612002-11-06 Andrew Cagney <ac131313@redhat.com>
1662
1663 * valops.c (value_assign): Merge lval_register case into
1664 lval_reg_frame_relative. Use frame_register and
1665 regcache_cooked_write instead of get_saved_register and
1666 write_register_bytes. After flushing the register cache, try to
1667 re-select the selected frame.
1668
8262ee23
AC
16692002-11-06 Andrew Cagney <ac131313@redhat.com>
1670
1671 * regcache.h (deprecated_register_valid): Rename register_valid.
1672 * regcache.c: Update.
1673 * ia64-aix-nat.c: Update.
1674 * i386gnu-nat.c: Update.
1675 * alpha-nat.c: Update.
1676 * sparc-nat.c: Update.
1677 * lynx-nat.c: Update.
1678 * remote-mips.c: Update.
1679
4facf7e8
JB
16802002-11-06 Joel Brobecker <brobecker@gnat.com>
1681
1682 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1683 to end of file, to be more consistent with the pratice followed
1684 by other targets.
1685
f9418c0f
AC
16862002-11-06 Andrew Cagney <ac131313@redhat.com>
1687
1688 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1689 (print_float_info): Print registers in float_reggroup.
1690 (print_vector_info): Print registers in vector_reggroup.
1691 (default_print_registers_info): When all, print registers in
1692 all_reggroup. Otherwize, print registers in general_reggroup.
1693 (registers_info): Rewrite. Add support for register groups.
1694 Eliminate a goto.
1695
3fe235a7
EZ
16962002-11-06 Elena Zannoni <ezannoni@redhat.com>
1697
1698 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1699 ages.
1700 (symtab_symbol_info): Remove eons old ifdeffed out code.
1701 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1702 command.
1703
ef944135
TR
17042002-11-06 Theodore A. Roth <troth@openavr.org>
1705
1706 * c-exp.y: Add missing semi-colons.
1707 * f-exp.y: Add missing semi-colons.
1708 * m2-exp.y: Add missing semi-colons.
1709 * p-exp.y: Add missing semi-colons.
1710 Add empty action to start rule to avoid a type clash error when
1711 building with bison >= 1.50.
1712
f8302a57
JB
17132002-11-06 Jim Blandy <jimb@redhat.com>
1714
1715 * macrotab.h (struct macro_source_file): Doc fix.
1716
6e382aa3
JJ
17172002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1718
1719 * varobj.c (child_exists, cplus_number_of_children): Change
1720 STREQ macro references to strcmp.
1721 (cplus_name_of_child): Change code to handle the fact that
1722 fields are not necessarily contiguous with regards to their
1723 access control. This is a fix for PR gdb/792.
1724
a216a322
AC
17252002-11-05 Andrew Cagney <ac131313@redhat.com>
1726
1727 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1728 * gdbarch.h, gdbarch.c: Regnerate.
1729 * frame.h (frame_register): Declare.
1730 * frame.c (frame_register): New function.
1731 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1732 GET_SAVED_REGISTER, otherwize call
1733 generic_unwind_get_saved_register.
1734 (frame_register_read): Use frame_register instead of
1735 get_saved_register.
1736
7d5b6fdd
EZ
17372002-11-05 Elena Zannoni <ezannoni@redhat.com>
1738
1739 From Jim Ingham <jingham@apple.com>:
1740 * event-top.c (gdb_disable_readline): New function.
1741 (_initialize_event_loop): Move comment.
1742
b7c64260
EZ
17432002-11-05 Elena Zannoni <ezannoni@redhat.com>
1744
1745 * event-loop.c (start_event_loop): Add comment.
1746 Update copyright.
1747
c2e1b8f2
AC
17482002-11-05 Andrew Cagney <ac131313@redhat.com>
1749
1750 * infcmd.c (default_print_registers_info): Do not call
1751 PRINT_REGISTER_HOOK.
1752
87647bb0
AC
17532002-11-05 Andrew Cagney <ac131313@redhat.com>
1754
1755 * sparc-tdep.c (sparc_print_register_hook): Make static.
1756 (sparc_print_registers_info): New function.
1757 (sparc_do_registers_info): New function.
1758 (sparclet_print_registers_info): New function.
1759 (sparclet_do_registers_info): New function.
1760 (do_sparc_print_registers_info): New function.
1761 (sparc_print_registers): New static function, clone of infcmd.c's
1762 default_print_registers_info.
1763 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1764 (sparclet_do_registers_info): Declare.
1765 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1766 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1767 Re-define.
1768 (sparc_do_registers_info): Declare.
1769 (PRINT_REGISTER_HOOK): Delete macro.
1770 (sparc_print_register_hook): Delete declaration.
1771
8155455b
DC
17722002-11-05 David Carlton <carlton@math.stanford.edu>
1773
1774 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1775 functions.
1776 (lookup_symbol_aux_local): New function.
1777 (lookup_symbol_aux_symtabs): New function.
1778 (lookup_symbol_aux_psymtabs): New function.
1779
29924310
DC
17802002-11-05 David Carlton <carlton@math.stanford.edu>
1781
1782 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1783 previous values of 'objfile' and 'block'.
1784
cc303028
PM
17852002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1786
1787 * values.c (value_change_enclosing_type): Set
1788 enclosing_type field correctly also for the case where
1789 more memory needs to be allocated.
1790
1d70089a
MK
17912002-11-03 Mark Kettenis <kettenis@gnu.org>
1792
f16a25ae
MK
1793 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1794 of puts_filtered.
1795
1d70089a
MK
1796 * i387-tdep.c (i387_print_float_info): Replace calls to
1797 register_read and deprecated_read_register_gen with calls to
1798 frame_register_read, and make the necessary adjustments to the
1799 surrounding code.
1800
7e20f3fb
AC
18012002-11-02 Andrew Cagney <ac131313@redhat.com>
1802
1803 * gdbarch.sh (register_reggroup_p): Allow default value.
1804 * gdbarch.h, gdbarch.c: Regenerate.
1805
192dbe33
AC
18062002-11-02 Andrew Cagney <ac131313@redhat.com>
1807
1808 * regcache.h: Add coment indicating replacements for deprecated
1809 functions.
1810
b59ff9d5
AC
18112002-11-02 Andrew Cagney <cagney@redhat.com>
1812
1813 * reggroups.h, reggroups.c: New files.
1814 * regcache.c: Include "reggroups.h".
1815 (enum regcache_dump_what): Add `regcache_dump_groups'.
1816 (regcache_dump): Contract size of the "Type" column. When
1817 specified, dump the register's groups.
1818 (maintenance_print_register_groups): New function.
1819 (_initialize_regcache): Add command `maint print register-groups'.
1820 * Makefile.in (COMMON_OBS): Add reggroups.o
1821 (SFILES): Add reggroups.c.
1822 (reggroups_h): Define.
1823 (regcache.o, gdbarch.o): Update dependencies.
1824 (reggroups.o): Specify dependencies.
1825 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1826 Add opaque declaration for `struct reggroup' in generated .h file.
1827 Include "reggroups.h" in generated .c file.
1828 gdbarch.h, gdbarch.c: Re-generate.
1829
4caf0990
AC
18302002-11-02 Andrew Cagney <cagney@redhat.com>
1831
1832 * regcache.h (deprecated_read_register_gen): Rename
1833 read_register_gen.
1834 (deprecated_write_register_gen): Rename write_register_gen.
1835 * i387-tdep.c: Update.
1836 * x86-64-linux-nat.c: Update
1837 * wince.c: Update.
1838 * thread-db.c: Update.
1839 * win32-nat.c: Update.
1840 * mips-tdep.c: Update.
1841 * d10v-tdep.c: Update.
1842 * cris-tdep.c: Update.
1843 * remote-sim.c: Update.
1844 * remote-rdi.c: Update.
1845 * remote-rdp.c: Update.
1846 * frame.c: Update.
1847 * target.c: Update.
1848 * blockframe.c: Update.
1849 * x86-64-tdep.c: Update.
1850 * xstormy16-tdep.c: Update.
1851 * sh-tdep.c: Update.
1852 * s390-tdep.c: Update.
1853 * rs6000-tdep.c: Update.
1854 * sparc-tdep.c: Update.
1855 * i386-tdep.c: Update.
1856 * dwarf2cfi.c: Update.
1857 * regcache.c: Update.
1858
7a7adcdf
JB
18592002-11-01 Joel Brobecker <brobecker@gnat.com>
1860
1861 New interix-specific files:
1862 * config/i386/nm-interix.h: New file.
1863 * config/i386/interix.mh: New file.
1864 * config/i386/interix.mt: New file.
1865 * i386-interix-nat.c: New file.
1866 * i386-interix-tdep.c: New file.
1867
bdcdd535
AC
18682002-11-01 Andrew Cagney <cagney@redhat.com>
1869
1870 * frame.h (deprecated_generic_get_saved_register): Rename
1871 generic_get_saved_register.
1872 * blockframe.c (deprecated_generic_get_saved_register): Update.
1873 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1874 (xstormy16_frame_saved_register): Update.
1875 * sh-tdep.c (sh_gdbarch_init): Update.
1876 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1877 * ia64-tdep.c (ia64_get_saved_register): Update.
1878 * cris-tdep.c (cris_gdbarch_init): Update.
1879 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1880 * arm-tdep.c (arm_gdbarch_init): Update.
1881
2a4b7c45
DJ
18822002-10-31 Daniel Jacobowitz <drow@mvista.com>
1883
1884 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1885
ef17e74b
DJ
18862002-10-31 Daniel Jacobowitz <drow@mvista.com>
1887
1888 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1889 trampolines in sigaction.
1890
4904ba5b
AC
18912002-10-31 Andrew Cagney <cagney@redhat.com>
1892
1893 * h8300-tdep.c: Include "gdb_assert.h".
1894 (h8300_print_register): Add gdbarch, file and frame parameters.
1895 Use frame_read_unsigned_register to read the register's value.
1896 Use fprintf_filtered to display output.
1897 (h8300_print_registers_info): Replace h8300_do_registers_info.
1898 (h8300_gdbarch_init): Set print_registers_info.
1899
f908a0eb
AC
19002002-10-31 Andrew Cagney <cagney@redhat.com>
1901
1902 * frame.c (frame_read_unsigned_register): New function.
1903 (frame_read_signed_register): New function.
1904 * frame.h (frame_read_unsigned_register): Declare.
1905 (frame_read_signed_register): Declare.
1906
c5646e11
AC
19072002-10-31 Andrew Cagney <cagney@redhat.com>
1908
1909 * h8500-tdep.c (h8500_print_registers_info): New static function,
1910 clone of infcmd.c's default_print_registers_info.
1911 (h8500_do_registers_info): New funtion.
1912 (h8500_print_register_hook): Rename print_register_hook, make
1913 static.
1914
1915 * config/h8500/tm-h8500.h: Update copyright.
1916 (DEPRECATED_DO_REGISTERS_INFO): Define.
1917 (h8500_do_registers_info: Declare.
1918 (PRINT_REGISTER_HOOK): Delete macro.
1919 (print_register_hook): Delete function.
1920
0bdd672b
AC
19212002-10-31 Andrew Cagney <cagney@redhat.com>
1922
1923 * z8k-tdep.c (z8k_print_register_hook): Make static.
1924 (z8k_print_registers_info): New static function, clone of
1925 infcmd.c's default_print_registers_info.
1926 (z8k_do_registers_info): New function. Wrap
1927 z8k_print_registers_info.
1928 * config/z8k/tm-z8k.h: Update copyright.
1929 (PRINT_REGISTER_HOOK): Delete macro.
1930 (z8k_print_register_hook): Delete declaration.
1931 (DEPRECATED_DO_REGISTERS_INFO): Define.
1932 (z8k_do_registers_info): Declare.
1933
bf9c25dc
JB
19342002-10-30 Joel Brobecker <brobecker@gnat.com>
1935
1936 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1937 as this is already provided by value.h, and was actually causing
1938 a compilation error because of a conflict in parameter type
1939 declaration due to a missing const keyword.
1940 (low_text_segment_addres): Fix a compilation warning.
1941
2c665b51
DJ
19422002-10-29 Daniel Jacobowitz <drow@mvista.com>
1943
1944 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1945 registers without a name.
1946 (mips_linux_cannot_store_register): Don't store registers without
1947 a name.
1948
e70ea697
DC
19492002-10-28 David Carlton <carlton@math.stanford.edu>
1950
1951 * symtab.c (find_addr_symbol): Delete. (It was already commented
1952 out.)
1953 * symtab.h: Delete prototype for find_addr_symbol.
1954
903ad3a6
AC
19552002-10-26 Andrew Cagney <cagney@redhat.com>
1956
1957 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1958 DO_REGISTERS_INFO.
1959 gdbarch.h, gdbarch.c: Re-generate.
1960 * infcmd.c (default_print_registers_info): Update reference.
1961 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1962 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1963 * sh-tdep.c (sh_gdbarch_init): Ditto.
1964 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1965 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1966
ab91194c
MK
19672002-10-26 Mark Kettenis <kettenis@gnu.org>
1968
e3033f15
MK
1969 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1970 cfi_init_extra_frame_info.
1971 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1972 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1973
b83b026c
MK
1974 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1975 target where necessary. Add more comments and remove the ones
1976 that don't provide any useful information.
1977
267bf4bb
MK
1978 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1979 deprecated_read_register_dummy with
1980 frame_unwind_unsigned_register.
1981
751f1375
MK
1982 * i386-tdep.c (i386_extract_struct_value_address): Use
1983 regcache_raw_read_unsigned instead of
1984 regcache_cooked_read_unsigned since we know that the register
1985 we're reading isn't a pseudo register. Rename variable 'val' into
1986 the more descriptive 'addr'.
1987
26abbdc4
MK
1988 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1989 (x86_64_push_return_address): Add comment.
1990 (x86_64_pop_frame): Make static.
1991 (examine_argument): Clarify comment.
1992 (x86_64_skip_prologue): Make prolog_expact variable static.
1993
9f1549cc
MK
1994 * dwarf2cfi.c: Fix some formatting problems.
1995 (context_cpy, read_encoded_pointer): Clarify comments.
1996
ab91194c
MK
1997 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1998 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1999 i386 target back into x86_64_gdbarch_init. Add some comments and
2000 remove meaningless ones.
2001
72367fb4
AC
20022002-10-25 Andrew Cagney <cagney@redhat.com>
2003
2004 * complaints.h (struct deprecated_complaint): Rename `struct
2005 complaint'.
2006 * complaints.c (complain): Update.
2007 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2008 incorrect comment indicating that "symfile.h" was being included
2009 for the `struct complaint' definition.
2010 * remote-vx.c: Update.
2011 * objc-lang.c: Update.
2012 * xcoffread.c: Update.
2013 * hpread.c: Update.
2014 * mdebugread.c: Update.
2015 * stabsread.c: Update.
2016 * dwarf2read.c: Update.
2017 * dwarfread.c: Update.
2018 * elfread.c: Update.
2019 * coffread.c: Update.
2020 * stabsread.h: Update.
2021 * dbxread.c: Update.
2022 * buildsym.c: Update.
2023 * gdbtypes.c: Update.
2024 * macrotab.c: Update.
2025
1f2baacc
MK
20262002-10-25 Mark Kettenis <kettenis@gnu.org>
2027
0c1a73d6
MK
2028 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2029 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2030 (x86_64_init_abi): ...new function.
2031
6aee4d54 2032 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
2033 * i386v-nat.c: Include "i386-tdep.h".
2034
8f9cbe01
AC
20352002-10-25 Andrew Cagney <cagney@redhat.com>
2036
5f11f355
AC
2037 * gdbtypes.c (address_space_name_to_int): Update.
2038 (address_space_int_to_name): Update.
2039 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2040 multi-arch predicate.
2041 (address_class_name_to_type_flags): Ditto.
2042 * gdbarch.h, gdbarch.c: Re-generate.
2043
8f9cbe01
AC
2044 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2045
e8d96a5d
MH
20462002-10-24 Martin M. Hunt <hunt@redhat.com>
2047
2048 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2049
fe39c653
EZ
20502002-10-24 Elena Zannoni <ezannoni@redhat.com>
2051
2052 * symtab.h (INIT_SAL): Delete macro.
2053 (init_sal): Export.
2054 * symtab.c (init_sal): New function.
2055
2056 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2057 to init_sal function call.
2058 (find_sal_from_funcs_and_line): Ditto.
2059 (all_sals_for_line): Ditto.
2060 * breakpoint.c (create_internal_breakpoint): Ditto.
2061 (create_fork_vfork_event_catchpoint): Ditto.
2062 (create_exec_event_catchpoint): Ditto.
2063 (parse_breakpoint_sals): Ditto.
2064 (watch_command_1): Ditto.
2065 (handle_gnu_4_16_catch_command): Ditto.
2066 (clear_command): Ditto.
2067 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2068 * infcmd.c (run_stack_dummy): Ditto.
2069 * infrun.c (process_event_stop_test): Ditto.
2070 (check_sigtramp2): Ditto.
2071 (step_over_function): Ditto.
2072 * linespec.c (decode_line_2): Ditto.
2073 (decode_line_1): Ditto.
2074 * source.c (line_info): Ditto.
2075 * symtab.c (find_pc_sect_line): Ditto.
2076
baed091b
ML
20772002-10-24 Michal Ludvig <mludvig@suse.cz>
2078
2079 * dwarf2cfi.c (struct context)
2080 (struct context_reg): Moved to dwarf2cfi.h
2081 (context_alloc, frame_state_alloc, context_cpy):
2082 Made extern instead of static, removed prototypes.
2083 * dwarf2cfi.h (struct context)
2084 (struct context_reg): New, moved from dwarf2cfi.c
2085 (context_alloc, frame_state_alloc, context_cpy):
2086 New prototypes.
2087 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2088 Changed from static to extern.
2089 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2090 (LINUX_SIGCONTEXT_FP_OFFSET)
2091 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2092 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2093 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2094 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2095 set_gdbarch_*() calls now use x86-64 specific functions
2096 instead of DWARF2 CFI ones.
2097 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2098 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2099 (x86_64_init_extra_frame_info): New prototypes.
2100
c38da1af
DC
21012002-10-23 David Carlton <carlton@math.stanford.edu>
2102
2103 * linespec.c: #include "parser-defs.h".
2104 Delete prototype for find_template_name_end.
2105 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2106
fb9b6b35
JJ
21072002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2108
2109 * NEWS: add recent mi fixes.
2110 * varobj.c (struct varobj): Add new "updated" flag.
2111 (new_variable): Default "updated" flag to 0.
2112 (varobj_set_value): Set "updated" flag to 1 if value
2113 changes.
2114 (varobj_update): Check varobj "updated" flag before
2115 comparing old and refreshed values. Fix for
2116 PR gdb/702.
2117
8da065d5
DC
21182002-10-23 David Carlton <carlton@math.stanford.edu>
2119
2120 * parse.c (parse_exp_1): Use BLOCK_START.
2121 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2122 SYMBOL_BLOCK_VALUE.
2123 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2124
87f2f08c
DC
21252002-10-23 David Carlton <carlton@math.stanford.edu>
2126
2127 * symtab.c: Delete cplusplus_hint.
2128 Delete prototype for find_template_name_end.
2129
88cda038
EZ
21302002-10-23 Elena Zannoni <ezannoni@redhat.com>
2131
2132 * symtab.h: Update comment.
2133
2625d86c
MS
21342002-10-23 Michael Snyder <msnyder@redhat.com>
2135
2136 * printcmd.c (address_info): Restore quotes in output.
2137 * valops.c (value_of_local): Restore quotes in error message.
2138
9cc0d196
EZ
21392002-10-23 Elena Zannoni <ezannoni@redhat.com>
2140
2141 * symtab.c (symbol_demangled_name): New function.
2142 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2143 turning most of it into a function.
2144 (symbol_demangled_name): Export.
2145
19de93d0
MS
21462002-10-23 Michael Snyder <msnyder@redhat.com>
2147
2148 * valops.c (value_of_local): Restore quotes in error message.
2149
89aad1f9
EZ
21502002-10-23 Elena Zannoni <ezannoni@redhat.com>
2151
2152 * symtab.c (symbol_init_language_specific): New function.
2153 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2154 turning most of it into a function.
2155 (symbol_init_language_specific): Export.
2156
d9fa45fe
DC
21572002-10-23 David Carlton <carlton@math.stanford.edu>
2158
2159 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2160 (dwarf_attr_name): Ditto.
2161 (dwarf_type_encoding_name): Ditto.
2162 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2163 (process_die): Handle DW_TAG_namespace,
2164 DW_TAG_imported_declaration, DW_TAG_imported_module.
2165 (read_namespace): New function.
2166
1045b512
JB
21672002-10-22 Joel Brobecker <brobecker@gnat.com>
2168
2169 * configure.in: Define NEW_PROC_API on Interix too.
2170 * configure: Regenerate.
2171
21722002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
2173
2174 * configure: Regenerate using the proper version of autoconf.
2175
3987b9d4
EZ
21762002-10-21 Elena Zannoni <ezannoni@redhat.com>
2177
2178 * findvar.c (read_var_value): Temporarily disable TLS code, until
2179 complete TLS support is added.
2180
9d774e44
EZ
21812002-10-21 Jim Blandy <jimb@redhat.com>
2182 Elena Zannoni <ezannoni@redhat.com>
2183
2184 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2185 for thread local storage locations.
2186 (struct symbol): Add objfile field.
2187 (SYMBOL_OBJFILE): Define.
2188 * dwarf2read.c (is_thread_local): New static variable.
2189 (new_symbol): If variable is in thread local fill in address class
2190 and objfile appropriately.
2191 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2192 stack operation.
2193 * printcmd.c (address_info): Print the information for thread
2194 local storage variable.
2195 * findvar.c (read_var_value): In case of thread local variable,
2196 defer to the target vector code to compute address.
2197
bc4a16ae
EZ
21982002-10-21 Elena Zannoni <ezannoni@redhat.com>
2199
2200 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2201 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2202
407caf07
EZ
22032002-10-21 Elena Zannoni <ezannoni@redhat.com>
2204
2205 * symtab.h (address_class): Rename
2206 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2207 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2208 * printcmd.c (address_info): Ditto.
2209 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2210
005328e3
MK
22112002-10-20 Mark Kettenis <kettenis@gnu.org>
2212
afdb036a
MK
2213 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2214 DBREG_DRX macro to acces debug registers.
2215
ca02e098
MK
2216 * Makefile.in (i386obsd-tdep.o): New target.
2217
03cc47f7
MK
2218 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2219 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2220
005328e3
MK
2221 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2222 * config/i386/obsd.mt: New file.
2223 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2224 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2225 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2226 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2227 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2228 * i386obsd-tdep.c: New file.
2229
9c96f9f2
AF
22302002-10-19 Adam Fedor <fedor@gnu.org>
2231
2232 * objc-exp.y (name_not_typename): Fix invalid comment.
2233
ce1ed485
MK
22342002-10-20 Mark Kettenis <kettenis@gnu.org>
2235
2236 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2237 to allocate partial syms and macro byte caches.
2238
1efc7aaa
DC
22392002-10-18 David Carlton <carlton@math.stanford.edu>
2240
2241 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2242
7e1d63ec
AF
22432002-10-18 Adam Fedor <fedor@gnu.org>
2244
2245 * stabsread.c (find_name_end): New function.
2246 (define_symbol): Use it.
2247
6e8d29a9
DJ
22482002-10-18 Daniel Jacobowitz <drow@mvista.com>
2249
2250 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2251 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2252 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2253 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2254
1efc7aaa 22552002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2256
2257 * symfile.h: Add opaque declaration for struct obstack.
2258 Declare obsavestring to take a const char *.
2259 * symfile.c (obsavestring): Make first argument a const char *.
2260
1aeae86e
AF
22612002-10-16 Adam Fedor <fedor@gnu.org>
2262
2263 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2264 names when matching breakpoints in current file.
2265
8b2dbe47
KB
22662002-10-16 Kevin Buettner <kevinb@redhat.com>
2267
2268 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2269 (read_tag_pointer_type): Add address class support.
2270 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2271 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2272 New methods.
2273 * gdbarch.h, gdbarch.c: Regenerate.
2274 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2275 (make_type_with_address_space, recursive_type_dump): Add address
2276 class support.
2277 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2278 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2279 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2280
74451869
KD
22812002-10-16 Klee Dienes <kdienes@apple.com>
2282
2283 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2284 to get the last character of a char[] buffer, not
2285 name[sizeof(vptr_name)-1].
2286
ff4cb3e8
AF
22872002-10-14 Adam Fedor <fedor@gnu.org>
2288
2289 * symtab.h: New objc_specific struct.
2290 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2291 (SYMBOL_DEMANGLED_NAME): Likewise.
2292
da2cf7e0
AF
22932002-10-14 Adam Fedor <fedor@gnu.org>
2294
2295 * symfile.c (init_filename_language_table): Add ObjC file extension.
2296
4a351cef
AF
22972002-10-14 Adam Fedor <fedor@gnu.org>
2298
2299 * utils.c (puts_filtered_tabular): New function.
2300 (fprintf_symbol_filtered): Get ObjC demangled name.
2301 * defs.h (puts_filtered_tabular): Declared.
2302
9750e763
KB
23032002-10-14 Kevin Buettner <kevinb@redhat.com>
2304
2305 * c-lang.h (c_type_print_varspec_prefix): Delete.
2306 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2307 ``need_post_space'' parameter. Adjust all callers.
2308
eee771c1
DJ
23092002-10-14 Daniel Jacobowitz <drow@mvista.com>
2310
2311 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2312 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2313 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2314 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2315
46c82446
AF
23162002-10-13 Adam Fedor <fedor@gnu.org>
2317
2318 * source.c (print_source_lines): Update comments.
2319
d069f99d
AF
23202002-10-13 Adam Fedor <fedor@gnu.org>
2321
2322 * valops.c (value_of_local): New function.
2323 (value_of_this): Use it.
2324 * value.h (value_of_local): Declared.
2325
53c551b7
AF
23262002-10-13 Adam Fedor <fedor@gnu.org>
2327
2328 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2329 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2330
eb392fbf
AF
23312002-10-12 Adam Fedor <fedor@gnu.org>
2332
2333 * language.c (binop_result_type): Add language_objc to case.
2334 (integral_type): Likewise.
2335 (character_type): Likewise.
2336 (string_type): Likewise.
2337 (boolean_type): Likewise.
2338 (structured_type): Likewise.
2339 (binop_type_check): Likewise.
2340
e2b23ee9
AF
23412002-10-11 Adam Fedor <fedor@gnu.org>
2342
2343 * printcmd.c (address_info): Print 'self' for ObjC.
2344
b01ab485
AF
23452002-10-11 Adam Fedor <fedor@gnu.org>
2346
2347 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2348 OP_SELF.
2349
806e6073
AF
23502002-10-11 Adam Fedor <fedor@gnu.org>
2351
2352 * language.h (CAST_IS_CONVERSION): Add language_objc.
2353
50f85cdf
AF
23542002-10-11 Adam Fedor <fedor@gnu.org>
2355
2356 * defs.h (enum language): Add language_objc.
2357
0d540cdf
KD
23582002-10-11 Klee Dienes <kdienes@apple.com>
2359
69266111 2360 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2361 * gdbcore.h (read_memory_typed_address): Add prototype.
2362 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2363 to read a value destined for a CORE_ADDR, not read_memory_integer.
2364 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2365 (f77_get_dynamic_lowerbound): Ditto.
2366
d5dc7960
MH
23672002-10-11 Martin M. Hunt <hunt@redhat.com>
2368
2369 * utils.c (string_to_core_addr): After turning string into
2370 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2371 which will do necessary sign-extension, etc.
2372
8343f86c
DJ
23732002-10-11 Daniel Jacobowitz <drow@mvista.com>
2374
2375 * c-exp.y (THIS): Delete token and grammar rule.
2376 (yylex): Don't return THIS.
2377 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2378 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2379 * demangle.c (cplus_markers): Update comment. Put '$'
2380 first. Remove CPLUS_MARKER.
2381 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2382 * jv-exp.y (THIS): Delete token and grammar rule.
2383 (yylex): Don't return THIS.
2384 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2385 * objc-exp.y (THIS): Delete token and grammar rule.
2386 (yylex): Don't return THIS.
2387 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2388 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2389 (read_member_functions): Likewise for opname.
2390 (read_tilde_fields): Use is_cplus_marker.
2391
2392 * defs.h (CPLUS_MARKER): Don't define.
2393 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2394 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2395 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2396 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2397 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2398
2399 * config/i386/tm-i386v4.h: Delete file.
2400 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2401 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2402 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2403 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2404 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2405 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2406 * config/i386/i386v4.mt (TM_FILE): Likewise.
2407 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2408
967c0d83
MM
24092002-10-10 Marko Mlinar <markom@opencores.org>
2410
2411 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2412 accidentially not commited 2002-10-09
2413 * gdbarch.h, gdbarch.c: Re-generate.
2414
f74fa174
MM
24152002-10-09 Marko Mlinar <markom@opencores.org>
2416
2417 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2418 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2419 * gdbarch.h, gdbarch.c: Re-generate.
2420
57349743
JB
24212002-10-08 Petr Sorfa <petrs@caldera.com>
2422
2423 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2424
2425 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2426 so we can work on more than one compilation unit at a time. This
2427 helps prepare GDB to handle inter-CU die references.
2428 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2429 the code to be defined before struct comp_unit_head.
2430 (comp_unit_head): Added new members - offset, cu_head,
2431 begin_die, next and dwarf2_abbrevs.
2432 (dwarf2_abbrevs): Removed single static var; now member of
2433 struct comp_unit_head.
2434 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2435 members.
2436 (psymtab_to_symtab_1): Changed to work with the new
2437 struct comp_unit_head.
2438 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2439 constructs the dwarf2_abbrevs[] inside the cu_header.
2440 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2441 dwarf2_abbrev table to clean up.
2442 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2443 handling of dwarf2_abbrevs inside the cu_header.
2444 (read_partial_die): Now supports the call to the new
2445 dwarf2_lookup_abbrev.
2446 (read_full_die): Now supports the call to the new
2447 dwarf2_lookup_abbrev.
2448
4092aadb
CF
24492002-10-06 Christopher Faylor <cgf@redhat.com>
2450
2451 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2452 insure that shell variables, such as "transformed_name" are propagated
2453 to later shell statements in rule.
2454
af0b2512
MK
24552002-10-06 Mark Kettenis <kettenis@gnu.org>
2456
2457 * config/i386/nm-i386sco.h: Add protection against
2458 multiple-inclusion. Include "i386/nm-i386v.h".
2459 (REGISTER_U_ADDR): Remove define.
2460 (i386_register_u_addr): Remove prototype.
2461
d6020d45
MS
24622002-10-04 Michael Snyder <msnyder@redhat.com>
2463
2464 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2465 before treating it as a single-step event.
2466
7248f48e
AF
24672002-10-03 Adam Fedor <fedor@gnu.org>
2468
2469 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2470 (objc_demangle): Remove assignment in if statements, Replace
2471 free with xfree.
2472 (add_msglist): Likewise.
2473 (end_msglist): Likewise.
2474 (complare_selectors): Likewise.
2475 (selectors_info): Likewise.
2476 (compare_classes): Likewise.
2477 (classes_info): Likewise.
2478 (print_object_command): Likewise.
2479 (find_objc_msgcall_submethod): Replace PTR with void *.
2480 * objc-lang.h: Remove check for __STDC__.
2481
52c6a6ac
JJ
24822002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2483
2484 * ui-out.h (ui_out_field_fmt_int): New prototype.
2485 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2486 of field width and alignment.
2487 * stack.c (print_frame_info_base): When printing frame level, use
2488 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2489 PR gdb/192
2490
7e3cec17
JJ
24912002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2492
2493 * MAINTAINERS: Add self to Write After Approval list.
2494
a58dd373
EZ
24952002-10-02 Elena Zannoni <ezannoni@redhat.com>
2496
2497 * infcmd.c (interrupt_target_command_wrapper): Delete.
2498 (interrupt_target_command): Make non static.
2499 (nofp_registers_info): Make static.
2500 * stack.c (return_command_wrapper): Delete.
2501 (return_command): Make non static.
2502
cee6ddeb
EZ
25032002-10-02 Elena Zannoni <ezannoni@redhat.com>
2504
2505 * event-top.c (gdb_setup_readline): New function. Code moved from
2506 _initialize_event_loop().
2507 (_initialize_event_loop): Call gdb_setup_readline().
2508
c4ed33b9
AC
25092002-10-02 Andrew Cagney <ac131313@redhat.com>
2510
2511 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2512 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2513 * gdbarch.h, gdbarch.c: Re-generate.
2514
cef4f5dd
DJ
25152002-10-02 Daniel Jacobowitz <drow@mvista.com>
2516
2517 Fix PR gdb/778
2518 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2519 before recursing.
2520 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2521 of fill_in_vptr_fieldno.
2522
36dc181b 25232002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2524
36dc181b
EZ
2525 * inferior.h (registers_info, stepi_command, nexti_command,
2526 continue_command, interrupt_target_command): Export from infcmd.c.
2527 * frame.h (args_info, selected_frame_level_changed_hook,
2528 return_command): Export from stack.c.
2529 * v850ice.c (stepi_command, nexti_command, continue_command): use
2530 prototypes from inferior.h.
2531 * tracepoint.c (registers_info, args_info, locals_info): Use
2532 prototypes from frame.h and inferior.h.
2533 * Makefile.in (mi-main.o): Add dependency on frame.h.
2534
6f99cb26
AC
25352002-10-02 Andrew Cagney <ac131313@redhat.com>
2536
da3eff49
AC
2537 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2538 value in register 3 adjusted by ppc_gp0_regnum.
2539
6f99cb26
AC
2540 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2541
da615bee
MM
25422002-10-02 Marko Mlinar <markom@opencores.org>
2543
2544 * MAINTAINERS: Add myself to the Write After Approval list.
2545
d154bee2
AO
25462002-10-01 Alexandre Oliva <aoliva@redhat.com>
2547
62a49b2c
AO
2548 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2549 of the section for the N64 ABI, fixed.
2550
d154bee2
AO
2551 * config/mips/tm-irix6.h: Include solib.h.
2552
ed348acc
EZ
25532002-10-01 Elena Zannoni <ezannoni@redhat.com>
2554
2555 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2556 GNU operators.
2557
da0f9dcd
AC
25582002-10-01 Andrew Cagney <ac131313@redhat.com>
2559
2560 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2561 and that "mi0" syntax has been removed.
2562
bdf64bac
DC
25632002-09-30 David Carlton <carlton@math.stanford.edu>
2564
2565 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2566 * ppc-sysv-tdep.c: #include "gdb_string.h".
2567 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2568 pacify GCC.
2569
54c2a1e6
AC
25702002-10-01 Andrew Cagney <ac131313@redhat.com>
2571
2572 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2573 "vrsave"'s register number.
2574
cedea778
AC
25752002-09-30 Andrew Cagney <ac131313@redhat.com>
2576
2577 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2578 use frame_unwind_signed_register to obtain the PC.
2579 (mips_frame_chain): Handle a generic dummy frame.
2580 (mips_init_extra_frame_info): When a generic dummy frame, don't
2581 re-compute the frame base.
2582 (mips_pop_frame): Handle generic dummy frames.
2583 (mips_gdbarch_init): When generic dummy frames, set
2584 use_generic_dummy_frames, push_dummy_frame to
2585 generic_push_dummy_frame, pc_in_call_dummy to
2586 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2587 generic_save_dummy_frame_tos.
2588
68315eb8
AC
25892002-09-30 Andrew Cagney <ac131313@redhat.com>
2590
2591 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2592 against TOP when TOP was explictly set.
2593 (generic_push_dummy_frame): Set TOP to zero.
2594
3b8630c3
EZ
25952002-09-30 Elena Zannoni <ezannoni@redhat.com>
2596
2597 * event-loop.c (start_event_loop): Rename variable 'result' to
2598 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2599
28ee05e9
KS
26002002-09-30 Keith Seitz <keiths@redhat.com>
2601
2602 * gdb-events.sh (selected_thread_changed): New event.
2603 * gdb-events.c: Regenerated.
2604 * gdb-events.h: Regenerated.
2605
6eecb1c8
HPN
26062002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2607
2608 * MAINTAINERS: Add self to Write After Approval list.
2609
92df71f0
FN
26102002-09-30 Fernando Nasser <fnasser@redhat.com>
2611
3b8630c3
EZ
2612 * disasm.c: New file.
2613 * disasm.h: New file.
92df71f0
FN
2614 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2615 (compare_lines): Ditto.
2616 (dump_insns): Ditto.
3b8630c3
EZ
2617 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2618 argument.
92df71f0 2619 (do_assembly_only): Ditto.
3b8630c3
EZ
2620 (do_disassembly): Renamed to gdb_disassembly and moved to
2621 disasm.c. Sdded uiout argument.
2622 * Makefile.in: Add new files. Reorder SFILES list. Update
2623 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2624
0c22854d
AC
26252002-09-29 Andrew Cagney <ac131313@redhat.com>
2626
2627 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2628 bfd/elf64-alpha-fbsd.c.
2629
e67f2023
AC
26302002-09-29 Andrew Cagney <ac131313@redhat.com>
2631
2632 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2633 i386gnu-tdep.c.
2634
89396210
AC
26352002-09-29 Andrew Cagney <ac131313@redhat.com>
2636
2637 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2638 __FUNCTION__.
2639 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2640 function name.
2641 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2642 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2643 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2644 (S_msg_sig_post_reply): Ditto.
2645
7079c36c
CV
26462002-09-28 Corinna Vinschen <vinschen@redhat.com>
2647
89396210
AC
2648 * sh-tdep.c (sh_use_struct_convention): Use definition according
2649 to ABI.
7079c36c
CV
2650 (sh_push_arguments): Store in register with correct endianess.
2651 (sh_default_store_return_value): Ditto.
2652 (sh_gdbarch_init): Set sizeof long double to 8.
2653
975ac915
MK
26542002-09-27 Mark Kettenis <kettenis@gnu.org>
2655
2656 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2657 Fix some whitespace problems.
2658
9bbe19fb
DC
26592002-09-27 David Carlton <carlton@math.stanford.edu>
2660
2661 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2662 (mcore-tdep.o): Ditto.
2663 (ns32k-tdep.o): Ditto.
2664 (ns32knbsd-tdep.o): Ditto.
2665 (sh3-rom.o): Ditto.
2666 (vax-tdep.o): Ditto.
2667 * cris-tdep.c: #include "gdb_string.h"
2668 * mcore-tdep.c: Ditto.
2669 * ns32k-tdep.c: Ditto.
2670 * ns32knbsd-tdep.c: Ditto.
2671 * sh3-rom.c: Ditto.
2672 * vax-tdep.c: Ditto.
2673
43b2fdc7
DC
26742002-09-27 David Carlton <carlton@math.stanford.edu>
2675
2676 * config/djgpp/fnchange.lst: Add entries for
2677 gdb/testsuite/gdb.c++/m-static files.
2678
e8cfbbd9
JW
26792002-09-27 Jim Wilson <wilson@redhat.com>
2680
2681 * MAINTAINERS: Add myself to the Write After Approval list.
2682
43b2fdc7 26832002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2684
2685 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2686
2687
9f3b7f07
AC
26882002-09-26 Andrew Cagney <ac131313@redhat.com>
2689
2690 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2691 frame.
2692
11269d7e
AC
26932002-09-26 Andrew Cagney <ac131313@redhat.com>
2694
2695 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2696 (rs6000_struct_return_address): Delete variable.
2697 (rs6000_store_struct_return): Update.
2698 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2699 deprecated_extract_struct_value_address.
2700 (rs6000_frame_align): New function.
2701 (rs6000_gdbarch_init): Set frame_align.
2702
f15ab4a7
AC
27032002-09-26 Andrew Cagney <ac131313@redhat.com>
2704
2705 From Grace Sainsbury <graces@redhat.com>:
2706 * Makefile.in (gdbtk-main.o): New target.
2707 (gdb.o): New target.
2708 (main_h): Define.
2709 (main.o): Update dependencies.
2710 (gdb$(EXEEXT)): Add gdb.o.
2711 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2712 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2713 (SUBDIR_GDBTK_CLEAN): Set.
2714 (install-gdbtk): Install the insight binary.
2715 (uninstall-gdbtk): New target.
2716 (all-gdbtk, clean-gdbtk): New rule.
2717 * top.c (use_windows): Default to zero.
2718 * main.c: Include "main.h".
2719 (main): Delete.
2720 (struct captured_main_args): Delete.
2721 (gdb_main): New function.
2722 * main.h: New file.
2723 * gdb.c: New File.
2724
e36180d7
AC
27252002-09-25 Andrew Cagney <cagney@redhat.com>
2726
2727 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2728 (frame_map_regnum_to_name): New function.
2729 (frame_map_name_to_regnum): New function.
2730 * frame.h (frame_map_name_to_regnum): Declare.
2731 (frame_map_regnum_to_name): Declare.
2732 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2733 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2734 * parse.c: Do not include "builtin-regs.h".
2735 (target_map_name_to_register): Delete function.
2736 (write_dollar_variable): Use frame_map_name_to_regnum.
2737 * parser-defs.h (target_map_name_to_register): Delete declaration.
2738 * expprint.c: Include "frame.h".
2739 (print_subexp): Use frame_map_regnum_to_name.
2740 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2741 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2742
8b69000d
AC
27432002-09-25 Andrew Cagney <ac131313@redhat.com>
2744
2745 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2746 wasn't saved, and the next innermost frame is a dummy, return the
2747 dummy frame's link register.
2748
046ca86a
JB
27492002-09-24 Jim Blandy <jimb@redhat.com>
2750
2751 Fix from Paul Breed:
2752 * main.c (captured_main): Add a `break' after the case for 'b'.
2753
94b66fa7
KS
27542002-09-24 Keith Seitz <keiths@redhat.com>
2755
2756 * varobj.c (c_type_of_child): Use get_target_type instead
2757 of TYPE_TARGET_TYPE.
2758
c214a6fd
FN
27592002-09-22 Fernando Nasser <fnasser@redhat.com>
2760
53cb0458
FN
2761 * source.c (get_current_or_default_source_symtab_and_line): Remove
2762 function.
2763 (set_default_source_symtab_and_line): New function. Attempts to
2764 determine a source file to list lines from if one is not currently
2765 defined.
2766 (get_current_source_symtab_and_line): Initialize sal.pc and
2767 sal.end fields.
2768 (set_current_source_symtab_and_line): Mark argument as const.
2769 * source.h: Update declarations and comments.
2770 * linespec.c (decode_line_1): Replace call to removed routine above.
2771 * stack.c (print_frame_info_base): Ditto.
2772 * cli/cli-cmds.c (edit_command): Ditto.
2773 (list_command): Ditto.
2774
27752002-09-22 Fernando Nasser <fnasser@redhat.com>
2776
d6020d45 2777 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2778 sal.pc and sal.end fields.
c214a6fd
FN
2779 (get_current_or_default_source_symtab_and_line): Ditto.
2780 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2781 so we do not cause a new source symtab to be searched for (reverting an
2782 unintentional change from the 2002-09-20 patch).
2783 * scm-lang.c (scm_unpac): Ditto.
2784
cc3b68a5
AC
27852002-09-21 Andrew Cagney <cagney@redhat.com>
2786
2787 * complaints.c (symfile_explanations): Remove new-line from
2788 ``isolated_message''.
2789 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2790 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2791
5835abe7
NC
27922002-09-20 Nick Clifton <nickc@redhat.com>
2793
2794 * NEWS: Announce that V850EA ISA is no longer supported.
2795 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2796
a15ef5f5
DC
27972002-09-20 David Carlton <carlton@math.stanford.edu>
2798
06ba1b39
DC
2799 * Makefile.in (c-lang.o): Correct dependencies.
2800 (utils.o): Gather dependencies.
2801 (charset.o): Move.
a15ef5f5
DC
2802 * c-lang.c: #include "gdb_string.h"
2803
87885426
FN
28042002-09-20 Fernando Nasser <fnasser@redhat.com>
2805
2806 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2807 * cli/cli-cmds.c (list_command): New function. Implements the new
2808 cli edit command.
2809 (_init_cli_cmds): Add new command definition.
2810 * gdb.1: Document edit command.
2811 * doc/gdb.texinfo: Document edit command.
2812
28132002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2814
2815 * source.c: Make global variables current_source_symtab and
2816 current_source_line static.
2817 (list_command): Moved to cli/cli-cmds.c.
2818 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2819 (get_first_line_listed): New accessor function.
2820 (get_lines_to_list): New accessor function.
2821 (get_current_source_symtab_and_line): New function. Retrieves the
2822 position in the source code that we consider current.
2823 (get_current_or_default_source_symtab_and_line): New function.
2824 Like the above but attempts to determine a default position if one
2825 is not currently defined.
2826 (set_current_source_symtab_and_line): New function. Sets the source
2827 code position considered current and returns the previously set one.
2828 (clear_current_source_symtab_and_line): Reset stored information about
2829 a current source line.
2830 (_initialize_source): Remove registration for the "list" command and
2831 its alias.
2832 * source.h: Add declarations for the new functions above.
2833 * symtab.h: Remove declarations for the global variables mentioned
2834 above.
2835 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2836 obtain current source line.
2837 * linespec.c (decode_line_1): Ditto.
2838 * macroscope.c (default_macro_scope): Ditto.
2839 * scm-lang.c (scm_unpac): Ditto.
2840 * stack.c (print_frame_info_base): Ditto.
2841 * symfile.c (clear_symtab_users): Ditto.
2842 * symtab.c (decode_line_spec): Ditto.
2843 * cli/cli-cmds.c (list_command): Moved here from source.c.
2844 (ambiguous_line_spec): Moved here from source.c.
2845 (_init_cli_cmds): Add definition for "list" and its alias.
2846 * Makefile.in: Update dependencies.
2847
ddd216ea
CV
28482002-09-20 Corinna Vinschen <vinschen@redhat.com>
2849
2850 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2851 with what gcc thinks is correct.
2852
6d305052
CV
28532002-09-20 Corinna Vinschen <vinschen@redhat.com>
2854
2855 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2856 multiple register push instruction.
2857
234b45d4
KB
28582002-09-19 Jim Blandy <jimb@redhat.com>
2859
2860 Add support for distinct host and target character sets.
2861 * charset.c, charset.h: New files.
2862 * c-exp.y: #include "charset.h".
2863 (yylex): Convert character and string literals to the target
2864 character set, before returning them as the semantic value of the
2865 token.
2866 * c-lang.c: #include "charset.h".
2867 (c_emit_char): Use charset-specific methods to recognize
2868 characters with backslash escape forms, to decide which characters
2869 to print literally and which to print using numeric escape
2870 sequences, and to convert target characters to host characters
2871 before printing.
2872 * utils.c: #include "charset.h".
2873 (no_control_char_error): New function.
2874 (parse_escape): Use charset-specific methods to recognize
2875 backslash escapes, parse `control character' notation, and convert
2876 characters from the host character set to the target character set.
2877 * configure.in: Set the default host character set.
2878 Check where to find iconv, and what its argument types might be.
2879 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2880 * Makefile.in (SFILES): List charset.c.
2881 (COMMON_OBS): List charset.o.
2882 (charset.o): New rule.
2883 (charset_h): New header dependency variable.
2884 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2885 (LIBICONV): New variable, set by configure.
2886 (CLIBS): Include $(LIBICONV) here.
2887 * aclocal.m4, config.in, configure: Regenerated.
2888
525d6a61
JB
28892002-09-19 Joel Brobecker <brobecker@gnat.com>
2890
2891 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2892 bison 1.35 warning.
2893
3ed93867
RE
28942002-09-19 Richard Earnshaw <rearnsha@arm.com>
2895
2896 * gdb_mbuild.sh: New file.
2897
437666f8
AC
28982002-09-19 Andrew Cagney <ac131313@redhat.com>
2899
2900 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2901
389e51db
AC
29022002-09-18 Andrew Cagney <ac131313@redhat.com>
2903
2904 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2905 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2906 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2907 valops.c, value.h: Revert previous change.
2908
3b4efeaa
MS
29092002-09-18 Michael Snyder <msnyder@redhat.com>
2910
2911 Preliminary support for Objective-C:
2912 * defs.h (language_objc): New enum value.
2913 (puts_filtered_tabular): Declaration only, exported from utils.c.
2914 (skip_quoted): Delete, declared in completer.h.
2915 * c-exp.y: Include completer.h.
2916 * p-exp.y: Ditto.
2917 * jv-exp.y: Ditto.
2918 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2919 New operator enum values.
2920 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2921 * language.c (binop_result_type): Handle language_objc case.
2922 (integral_type, character_type, string_type, boolean_type,
2923 structured_type, binop_type_check): Ditto.
2924 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2925 (struct objc_specific): Add to general_symbol_info.
2926 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2927 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2928 * parser-defs.h (struct objc_class_str): New struct type.
2929 (start_msglist, end_msglist, add_msglist): Declaration only,
2930 exported from objc-lang.c.
2931 * value.h (value_of_local, value_nsstring,
2932 call_function_by_hand_expecting_type): Exported from valops.c.
2933 * valops.c (find_function_addr): Export.
2934 (call_function_by_hand_expecting_type): New function.
2935 (value_of_local): New function.
2936 * symfile.c (init_filename_language_table): Add ".m" extension
2937 for Objective-C.
2938 * utils.c (puts_filtered_tabular): New function.
2939 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2940 (set/show demangle): Extend help-string to refer to ObjC.
2941 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2942 * stabsread.c (symbol_reference_defined): Objective-C symbols
2943 may contain colons: make allowances when scanning stabs strings
2944 for colons.
2945 (objc_find_colon): New function.
2946 * printcmd.c (address_info): If language == objc then print
2947 "self" instead of "this".
2948 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2949 OP_NSSTRING, and OP_SELF.
2950 (prefixify_subexp): Ditto.
2951 * source.c (print_source_lines): Mention objc in comment.
2952 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2953 method names.
2954
b9caf505
AC
29552002-09-18 Andrew Cagney <ac131313@redhat.com>
2956
2957 * complaints.h: Update copyright.
2958 (struct complaints): Declare.
2959 (struct complaint): Make `message' constant.
2960 (internal_complaint): Declare.
2961 (complaint): Declare.
2962 (complaint_root): Delete declaration.
2963 (symfile_complaints): Delete declaration.
2964 (struct complaints): Add opaque declaration.
2965 (clear_complaints): Add a complaints parameter.
2966 * complaints.c: Update copyright.
2967 (enum complaint_series): Define.
2968 (complaint_root): Delete.
2969 (struct complaints): Define.
2970 (complaint_sentinel, symfile_complaint_book): New variables.
2971 (symfile_explanations, symfile_complaints): New variables.
2972 New variables.
2973 (get_complaints): New function.
2974 (vcomplaint): New function.
2975 (complaint): New function.
2976 (internal_complaint): New function.
2977 (complain): Call vcomplain with symfile_complaint.
2978 (clear_complaints): Rewrite.
2979 (_initialize_complaints): Use add_setshow_command.
2980 * Makefile.in (complaints.o): Update dependencies.
2981 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2982 to call to clear_complaints.
2983 (new_symfile_objfile, reread_symbols): Ditto.
2984 (oldsyms_complaint): Delete.
2985 (empty_symtab_complaint, unknown_option_complaint): Delete.
2986 (free_named_symtabs): Use complaint instead of complain.
2987
d2e6263c
MS
29882002-09-18 Michael Snyder <msnyder@redhat.com>
2989
5fb2031a
AC
2990 Contributed by Apple Computer, Inc. Merged with current sources
2991 by Adam Fedor <fedor@doc.com> [cagney].
2992
d2e6263c
MS
2993 * objc-lang.c: First clean-up round: comments, indentation.
2994 * objc-lang.h: Ditto.
2995 * objc-lang.y: Ditto.
2996
dec43320
AC
29972002-09-18 Andrew Cagney <ac131313@redhat.com>
2998
2999 * maint.c (maintenance_internal_error): Print the parameter as the
3000 error message.
3001 (maintenance_internal_warning): New function.
3002 (_initialize_maint_cmds): Add command `maint internal-warning'.
3003
3004 * defs.h (internal_warning, internal_vwarning): Declare.
3005 * utils.c (struct internal_problem): Define.
3006 (internal_vproblem): New function.
3007 (internal_warning): New function.
3008 (internal_vwarning): New function.
3009 (internal_warning_problem, internal_error_problem): New variables.
3010 (internal_verror): Just call internal_vproblem.
3011
b81654f1
MS
30122002-09-18 Michael Snyder <msnyder@redhat.com>
3013
3014 * objc-lang.c: New file, support for Objective-C.
3015 Preliminary check-in, not yet integrated into gdb.
3016 * objc-lang.h: New file.
3017 * objc-exp.y: New file.
3018
0542c381
AC
30192002-09-18 Andrew Cagney <ac131313@redhat.com>
3020
7bda5e4a
AC
3021 * infrun.c (signal_stop_update): Convert definition to ISO C.
3022 (signal_print_update): Ditto.
3023 (signal_pass_update): Ditto.
3024 * inflow.c (terminal_save_ours): Ditto.
3025
5247b418
AC
3026 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3027 comments.
3028
fc60962c
AC
3029 * config/djgpp/fnchange.lst: Handle name clashes between
3030 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3031 bfd/coff-tic80.c.
3032
0542c381
AC
3033 * i386-linux-tdep.h: Fix tipo.
3034
5b924b9b
AF
30352002-09-18 Adam Fedor <fedor@gnu.org>
3036
3037 * MAINTAINERS: Add myself to the Write After Approval list.
3038
5afc051b
JB
30392002-09-18 Jim Blandy <jimb@redhat.com>
3040
3041 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3042 texthigh and textlow to reader-specific structs caused
3043 objfile_relocate to miss them. This is fixable, but the work that
3044 the change was supposed to prepare GDB for never got done anyway.
3045
eb944380
DC
30462002-09-18 David Carlton <carlton@math.stanford.edu>
3047
3048 * MAINTAINERS: Alphabetize Write After Approval list.
3049
948e66d9
DJ
30502002-09-18 Daniel Jacobowitz <drow@mvista.com>
3051
3052 Fix PR gdb/709
3053 * values.c (value_static_field): Call read_var_value.
3054
dc604539
AC
30552002-09-18 Andrew Cagney <ac131313@redhat.com>
3056
3057 * valops.c (hand_function_call): Align the initial stack pointer
3058 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3059 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3060 return value.
3061 * mips-tdep.c (mips_frame_align): New function.
3062 (mips_gdbarch_init): Set frame_align.
3063 * gdbarch.sh (FRAME_ALIGN): New method.
3064 * gdbarch.h, gdbarch.c: Re-generate.
3065
cb7e422f
ML
30662002-09-18 Michal Ludvig <mludvig@suse.cz>
3067
3068 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3069 registers.
3070
a094c6fb
AC
30712002-09-17 Andrew Cagney <ac131313@redhat.com>
3072
3073 * NEWS: Mention that MIPS $fp behavior changed.
3074 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3075 reference to FP_REGNUM.
3076 (mipsnbsd_cannot_store_register): Ditto.
3077 * mips-linux-nat.c: Update copyright.
3078 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3079 (mips_linux_cannot_store_register): Ditto.
3080 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3081 * config/mips/tm-mips.h: Update copyright.
3082 (FP_REGNUM): Delete macro.
3083 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3084 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3085 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3086 (mips_r3041_reg_names, mips_r3051_reg_names)
3087 (mips_r3081_reg_names): Replace "fp" with "".
3088 Fix PR gdb/480.
3089
45cf40d1
TR
30902002-09-17 Theodore A. Roth <troth@verinet.com>
3091
3092 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3093 generic_read_register_dummy() (PR gdb/703).
3094 (avr_push_return_address): #if 0 out unused vars.
3095 (avr_gdbarch_init): Enable use of avr_push_return_address().
3096
c7e701b5
MS
30972002-09-17 Michael Snyder <msnyder@redhat.com>
3098
d76ba2a5 3099 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
3100 RTE will take care of it.
3101
20bcf01c
AC
31022002-09-17 Andrew Cagney <ac131313@redhat.com>
3103
3104 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3105 invalid, return SP_REGNUM.
3106
009a9971 31072002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
3108
3109 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3110 point registers without sign extension.
3111
135c175f
AC
31122002-09-17 Andrew Cagney <cagney@redhat.com>
3113
3114 * blockframe.c (deprecated_read_register_dummy): Rename
3115 generic_read_register_dummy.
3116 * frame.c (frame_unwind_signed_register): New function.
3117 (frame_unwind_unsigned_register): New function.
3118 * frame.h (frame_unwind_signed_register): Declare.
3119 (frame_unwind_unsigned_register): Declare.
3120 (deprecated_read_register_dummy): Rename
3121 generic_read_register_dummy.
3122
3123 * h8300-tdep.c (h8300_frame_chain): Update.
3124 (h8300_frame_saved_pc): Update.
3125 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3126 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3127 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3128 (s390_frame_chain): Update.
3129 * v850-tdep.c (v850_find_callers_reg): Update.
3130 (v850_frame_saved_pc): Update.
3131 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3132 (m32r_find_callers_reg): Update.
3133 (m32r_frame_saved_pc): Update.
3134 * sh-tdep.c (sh_find_callers_reg): Update.
3135 (sh64_get_saved_pr): Update.
3136 (sh_init_extra_frame_info): Update.
3137 (sh_init_extra_frame_info): Update.
3138 (sh64_init_extra_frame_info): Update.
3139 (sh64_init_extra_frame_info): Update.
3140 * mcore-tdep.c (mcore_find_callers_reg): Update.
3141 (mcore_frame_saved_pc): Update.
3142 (mcore_init_extra_frame_info): Update.
3143 * i386-tdep.c (i386_frame_saved_pc): Update.
3144 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3145 (ia64_init_extra_frame_info): Update.
3146 (ia64_init_extra_frame_info): Update.
3147 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3148 * cris-tdep.c (cris_init_extra_frame_info): Update.
3149 * avr-tdep.c (avr_frame_chain): Update.
3150 (avr_init_extra_frame_info): Update.
3151 (avr_frame_saved_pc): Update.
3152 * arm-tdep.c (arm_find_callers_reg): Update.
3153 (arm_init_extra_frame_info): Update.
3154 (arm_frame_saved_pc): Update.
3155
a741e514
TT
31562002-09-17 Tom Tromey <tromey@redhat.com>
3157
3158 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3159 is "'".
3160
d1a8e808
CV
31612002-09-17 Corinna Vinschen <vinschen@redhat.com>
3162
3163 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3164 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3165 NEXT_PROLOGUE_INSN.
3166 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3167 NEXT_PROLOGUE_INSN.
3168
d9025a18
JB
31692002-09-16 Joel Brobecker <brobecker@gnat.com>
3170
3171 * osfsolib.c: Remove file, replaced by solib-osf.c.
3172 * Makefile.in: Remove compilation rules for osfsolib.c.
3173
1b2ef1b6
DC
31742002-09-16 David Carlton <carlton@math.stanford.edu>
3175
3176 * cp-valprint.c (cp_print_class_method): Correct args to
3177 check_stub_method_group.
3178
928e48af
CV
31792002-09-16 Corinna Vinschen <vinschen@redhat.com>
3180
3181 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3182 `set architecture'. Unify naming convention of functions.
3183 (h8300_skip_prologue): Improve prologue analysis.
3184 (h8300_push_arguments): Rewritten to more closely match GCC's
3185 bizarre argument-passing behavior, along with the comment describing
3186 said behavior.
3187 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3188 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3189 sim, remote-e7000.c, remote-hms.c and remote.c
3190
5e3397bb
MK
31912002-09-15 Mark Kettenis <kettenis@gnu.org>
3192
3193 * i386-tdep.c (gdb_print_insn_i386): Removed.
3194 (i386_print_insn): New function.
3195 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3196 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3197 tm_print_insn_info.
3198
f710f4fc
MK
31992002-09-14 Mark Kettenis <kettenis@gnu.org>
3200
3201 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3202 zero.
3203
db54fef4
CV
32042002-09-14 Corinna Vinschen <vinschen@redhat.com>
3205
3206 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3207 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3208 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3209
2becadee
CF
32102002-09-13 Christopher Faylor <cgf@redhat.com>
3211
3212 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3213
de17c821
DJ
32142002-09-13 Daniel Jacobowitz <drow@mvista.com>
3215
3216 * gdbtypes.c (check_stub_method): Make static.
3217 (check_stub_method_group): New function.
3218 * gdbtypes.h: Update prototypes.
3219 * cp-support.c: New file.
3220 * cp-support.h: New file.
3221
3222 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3223 (update_method_name_from_physname): New function.
3224 (read_member_functions): Correct method names for operators
3225 and v3 constructors/destructors. Separate v2 constructors and
3226 destructors.
3227 * Makefile.in (stabsread.o): Update dependencies.
3228 (SFILES): Add cp-support.c.
3229 (COMMON_OBS): Add cp-support.o.
3230 (cp_support_h, cp-support.o): Add.
3231
3232 * cp-valprint.c (cp_print_class_method): Call
3233 check_stub_method_group instead of check_stub_method. Remove
3234 extraneous QUITs.
3235 * p-valprint.c (pascal_object_print_class_method): Likewise.
3236 * valops.c (search_struct_method): Likewise.
3237 (find_method_list, value_struct_elt_for_reference): Likewise.
3238
e76cff22
AC
32392002-09-13 Andrew Cagney <cagney@redhat.com>
3240
3241 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3242 * gdbarch.h, gdbarch.c: Regenerate.
3243
905abb3f
AC
32442002-09-13 Andrew Cagney <ac131313@redhat.com>
3245
3246 * frame.c (find_saved_register): Delete function.
3247 * frame.h (find_saved_register): Delete declaration.
3248 Fix PR gdb/631.
3249
64159455
AC
3250Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3251
3252 * mips-tdep.c (read_next_frame_reg): Re-hack using
3253 frame_register_unwind.
3254
795e1e11
AC
3255Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3256
3257 * mips-tdep.c (mips_get_saved_register): Re-hack using
3258 frame_register_unwind.
3259
5720643c
JB
32602002-09-12 Joel Brobecker <brobecker@gnat.com>
3261
3262 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3263 vector. Will be useful for Interix.
3264 * gdbarch.h, gdbarch.c: Regenerate.
3265
3266 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3267 name of the malloc function by NAME_OF_MALLOC.
3268
3bada2a2
JB
32692002-09-12 Joel Brobecker <brobecker@gnat.com>
3270
3271 * value.h (find_function_in_inferior): Add const keyword to
3272 one of the parameters. Allows us to invoke this function with
3273 a const char *.
3274 * valops.c (find_function_in_inferior): Likewise.
3275
3db26b01
JB
32762002-09-12 Joel Brobecker <brobecker@gnat.com>
3277
3278 * exec.c (xfer_memory): Fix compilation warning with old versions
3279 of GCC.
3280 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3281
17c5ed2c
DC
32822002-09-12 David Carlton <carlton@math.stanford.edu>
3283
3284 * symtab.h: Run through gdb_indent.h.
3285 Add 2002 to Copyright year list.
3286
ecd1107e
AM
32872002-09-12 Alan Modra <amodra@bigpond.net.au>
3288
3289 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3290 mach constants.
3291 * MAINTAINERS: Add myself to write after approval list.
3292
e64f66d1
JB
32932002-09-11 J. Brobecker <brobecker@gnat.com>
3294
3295 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3296
f9395794
JB
32972002-09-11 J. Brobecker <brobecker@gnat.com>
3298
3299 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3300 Interix.
3301
1a303dec
MS
33022002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3303
3304 * procfs.c (do_detach): Clear current signal, not just fault.
3305 Corrects problem with breakpoint trap signal leaking to detached
3306 process on Tru64.
3307
c0219d42
MS
33082002-09-10 Michael Snyder <msnyder@redhat.com>
3309
3310 * buildsym.c (finish_block): Protect against null pointer.
3311
9d84ac84
AC
33122002-09-10 Andrew Cagney <cagney@redhat.com>
3313
3314 * infcmd.c (default_print_registers_info): Send all output to
3315 ``file'' instead of ``gdb_stdout''.
3316
77d8f2b4
MS
33172002-09-10 Michael Snyder <msnyder@redhat.com>
3318
3319 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3320 LONGEST, and use signed register read (addresses are sign-
3321 extended for mips).
3322
99656a61
SC
33232002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3324
3325 * event-loop.c (gdb_do_one_event): Make public.
3326 * event-loop.h (gdb_do_one_event): Declare.
3327
da12f4d8
JL
33282002-09-10 Jeff Law <law@redhat.com>
3329
3330 * infttrace.c (child_resume): Simplify and rework to avoid
3331 TT_PROC_CONTINUE.
3332
d0aee0c4
FF
33332002-09-09 Fred Fish <fnf@intrinsity.com>
3334
3335 * printcmd.c (print_scalar_formatted): "len" is the number of
3336 target bytes, NOT the number of target bits.
3337
7cb3ec5e
EZ
33382002-09-09 Elena Zannoni <ezannoni@redhat.com>
3339
3340 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3341 * top.c (init_main): Set rl_terminal_name.
3342
4dc81987
AS
33432002-09-08 Aidan Skinner <aidan@velvet.net>
3344
3345 * ada-lang.c (ada_array_bound, ada_type_match,
3346 _initialize_ada_language): Fix K&R definitions.
3347 * ada-tasks.c (get_current_task): Fix K&R definitions.
3348 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3349
842330b4
CF
33502002-09-07 Christopher Faylor <cgf@redhat.com>
3351
3352 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3353 Add XP.
3354
43156d82
MK
33552002-09-06 Mark Kettenis <kettenis@gnu.org>
3356
66da5fd8
MK
3357 * i386-tdep.c (i386_register_virtual_type,
3358 i386_register_convertible, i386_register_convert_to_virtual,
3359 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3360 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3361 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3362 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3363 Don't set push_arguments twice.
3364
4b218c18
MK
3365 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3366 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3367 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3368 sigtramp_end to NULL.
3369 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3370 defines.
3371 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3372
4cc314d5
MK
3373 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3374 whitespace.
3375
43156d82
MK
3376 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3377 * gdbarch.h, gdbarch.c: Re-generate.
3378 * blockframe.c (find_pc_sect_partial_function): Convert to use
3379 SIGTRAMP_START_P predicate.
3380
6672060b
MS
33812002-09-05 Michael Snyder <msnyder@redhat.com>
3382
a90c3637
MS
3383 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3384 generic_dummy_frame method and old method. Also distinguish
3385 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3386 (arm_extract_return_value): Use new regcache method.
a90c3637 3387
6672060b
MS
3388 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3389 adjustment that doesn't conform to the ABI.
3390 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3391 saved regcache, not from current regcache.
3392
299ffc64
AC
33932002-09-05 Andrew Cagney <ac131313@redhat.com>
3394
3395 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3396 * README: Update.
3397
a3a2ee65
JT
33982002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3399
3400 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3401 if arm_apcs_32 is false.
3402
2bc7eea9
AC
34032002-09-04 Andrew Cagney <ac131313@redhat.com>
3404
3405 GDB 5.3 branch created.
3406
8a55a7c5
TR
34072002-09-03 Theodore A. Roth <troth@verinet.com>
3408
3409 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3410 generic_unwind_get_saved_register.
3411
e26fb1d7
DC
34122002-09-03 David Carlton <carlton@math.stanford.edu>
3413
3414 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3415 argument (PR gdb/653). Update call to smash_to_method_type.
3416 (read_structure_scope): Update call to dwarf2_add_member_fn.
3417
30d52491
ML
34182002-09-03 Michal Ludvig <mludvig@suse.cz>
3419
3420 * x86-64-linux-tdep.c: Include gdb_string.h
3421 * x86-64-linux-nat.c: Ditto.
3422
06891d83
JT
34232002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3424
3425 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3426 when YYDEBUG is set to 1.
3427 * c-exp.y: Likewise.
3428 * f-exp.y: Likewise.
3429 * jv-exp.y: Likewise.
3430 * m2-exp.y: Likewise.
3431 * p-exp.y: Likewise.
3432
7d400e77
JT
34332002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3434
3435 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3436 dependency list.
3437 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3438 solib_svr4_fetch_link_map_offsets to
3439 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3440 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3441 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3442 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3443 solib-svr4.o, and solib-legacy.o.
3444 * config/i386/tm-nbsd.h: Include solib.h.
3445
704a27c4
JT
34462002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3447
3448 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3449 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3450 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3451 comment noting that this needs its own target configuration.
3452 * config/i386/nbsd.mt: New file.
3453 * config/i386/nbsdaout.mt: Remove.
3454 * config/i386/nbsdelf.mt: Ditto.
3455 * config/i386/tm-nbsdaout.h: Ditto.
3456
d66198e1
JT
34572002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3458
3459 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3460 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3461 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3462 tdep->sigtramp_end.
3463 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3464 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3465 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3466
3cac699e
JT
34672002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3468
3469 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3470 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3471 * i386-tdep.h (i386bsd_init_abi): New prototype.
3472 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3473 function declaration.
3474 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3475 for NetBSD-a.out or NetBSD-ELF.
3476 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3477 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3478 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3479 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3480 and nbsd-tdep.h.
3481 (i386nbsd_pc_in_sigtramp): New function.
3482 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3483 i386nbsd_pc_in_sigtramp.
3484 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3485 and i386nbsdelf_init_abi OS ABI handlers.
3486 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3487 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3488
7010ca0a
MK
34892002-09-02 Mark Kettenis <kettenis@gnu.org>
3490
3491 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3492 registers if the target really has them.
3493
6dd93b72
JT
34942002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3495
3496 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3497 than nbsd-tdep.h.
3498
2ca8ae21
JT
34992002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3500
3501 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3502 list.
3503 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3504 (alphanbsd_skip_sigtramp_frame): New functions.
3505 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3506 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3507 to alphanbsd_sigcontext_addr.
3508
3d9b49b0
JT
35092002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3510
3511 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3512 list.
3513 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3514 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3515 nbsd_pc_in_sigtramp.
3516 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3517 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3518 * nbsd-tdep.c: Include gdb_string.h.
3519 (nbsd_pc_in_sigtramp): New function.
3520 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3521 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3522 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3523 ppcnbsd_pc_in_sigtramp.
3524 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3525 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3526 shnbsd_pc_in_sigtramp.
3527 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3528 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3529 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3530
c860120c
PM
35312002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3532
3533 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3534 watchpoints to NULL.
3535 (insert_breakpoints): set val field of watchpoints if NULL.
3536
3537
c7612d53
JB
35382002-08-29 Jim Blandy <jimb@redhat.com>
3539
3540 * symtab.c (lookup_symbol_aux): In the cases where we find a
3541 minimal symbol of an appropriate name and use its address to
3542 select a symtab to read and search, use `name' (as passed to us)
3543 as the demangled name when searching the symtab's global and
3544 static blocks, not the minsym's name.
3545
66609862
KS
35462002-08-29 Keith Seitz <keiths@redhat.com>
3547
3548 * stack.c (print_frame_info_base): Always set current_source_symtab
3549 and current_source_line.
3550
151fefe2
JB
35512002-08-29 Donn Terry <donnte@microsoft.com>
3552
3553 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3554
bfb3754e
KS
35552002-08-28 Keith Seitz <keiths@redhat.com>
3556
3557 * stack.c (select_frame): Add FIXME concerning selected-frame
3558 events.
3559 (select_frame_command): Send selected-frame-level-changed
3560 event notification, but only if the level actually changed.
3561 (up_silently_base): Add selected-frame-level-changed event
3562 notification.
3563 (down_silently_base): Likewise.
3564
e822a2a0
AC
35652002-08-28 Andrew Cagney <ac131313@redhat.com>
3566
3567 * Makefile.in: Update dependencies for all gdb/*.c files.
3568
309367d4
TT
35692002-08-27 Tom Tromey <tromey@redhat.com>
3570
3571 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3572 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3573 Update dependencies.
3574 * i387-tdep.c: Include gdb_string.h.
3575 * osabi.c: Likewise.
3576 * i386-linux-nat.c: Likewise.
3577 * lin-lwp.c: Likewise.
3578 * ax-gdb.c: Likewise.
3579 * signals/signals.c: Likewise.
3580 * jv-valprint.c: Likewise.
3581 * p-lang.c: Likewise.
3582 * c-valprint.c: Likewise.
3583 * cp-abi.c: Likewise.
3584
e1507482
EZ
35852002-08-27 Elena Zannoni <ezannoni@redhat.com>
3586
3587 * cli/cli-script.h (copy_command_lines): Export.
3588 * breakpoint.c: Include cli/cli-script.h.
3589 * Makefile.in (breakpoint.o): Update dependencies.
3590
c6510018
MS
35912002-08-26 Michael Snyder <msnyder@redhat.com>
3592
3593 * breakpoint.c (insert_breakpoints): Protect all references
3594 to 'process_warning'. Shorten long lines.
3595
c2b8ed2c
MS
35962002-08-26 Joel Brobecker <brobecker@gnat.com>
3597
3598 * cli/cli-script.c (copy_command_lines): New function.
3599 * defs.h (copy_command_lines): Export.
3600 * testsuite/gdb.base/commands.exp: New tests for commands
3601 attached to a temporary breakpoint, and for commands that
3602 delete the breakpoint they are attached to.
3603
36042002-08-26 Michael Snyder <msnyder@redhat.com>
3605
3606 * breakpoint.c (bpstat_stop_status): Instead of copying the
3607 pointer to the breakpoint commands struct, make a new copy
3608 of the struct and point to that.
3609 (bpstat_clear): Free the commands struct.
3610 (bpstat_clear_actions): Free the commands struct.
3611 (bpstat_do_actions): Free the command actions. Also execute
3612 the local cleanups, instead of deleting them.
3613 (delete_breakpoint): Leave the commands field of the bpstat
3614 chain alone -- it will be freed later.
3615
64b84175
KB
36162002-08-26 Kevin Buettner <kevinb@redhat.com>
3617
3618 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3619 deleted in 2002-08-20 commit. This function is still used by
3620 ppc-linux-nat.c.
3621
55970da6
KS
36222002-08-26 Keith Seitz <keiths@redhat.com>
3623
3624 * gdb-events.sh: Add selected-frame-level-changed event.
3625 * gdb-events.c: Regenerated.
3626 * gdb-events.h: Regenerated.
3627
a790ad35
SC
36282002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3629
3630 Fix PR gdb/393:
3631 * inflow.c (terminal_save_ours): New function to save terminal
3632 settings.
3633 * inferior.h (terminal_save_ours): Declare.
3634 * target.c (debug_to_terminal_save_ours): New function.
3635 (cleanup_target): Defaults to_terminal_save_ours.
3636 (update_current_target): Inherit to_terminal_save_ours.
3637 (setup_target_debug): Set to_terminal_save_ours.
3638 * target.h (target_terminal_save_ours): New to save terminal settings.
3639 (target_ops): New member to_terminal_save_ours.
3640 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3641 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3642 * inftarg.c (init_child_ops): Likewise.
3643 * m3-nat.c (init_m3_ops): Likewise.
3644 * procfs.c (init_procfs_ops): Likewise.
3645 * wince.c (init_child_ops): Likewise.
3646 * win32-nat.c (init_child_ops): Likewise.
3647 * sol-thread.c (init_sol_thread_ops): Likewise.
3648
c00dcbe9
MK
36492002-08-26 Mark Kettenis <kettenis@gnu.org>
3650
3d7f4f49
MK
3651 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3652 use regcache_* functions.
3653 (i386_gdbarch_init): Set store_return_value instead of
3654 deprecated_store_return_value.
3655
c00dcbe9
MK
3656 * regcache.c (regcache_raw_write_signed,
3657 regcache_raw_write_unsigned): New functions.
3658 * regcache.h (regcache_raw_write_signed,
3659 regcache_raw_write_unsigned): New prototypes.
3660
0e0d15ca
AC
36612002-08-25 Andrew Cagney <ac131313@redhat.com>
3662
3663 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3664 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3665 source file dependencies. Cleanup corresponding generator rules.
3666
d3b22ed5
AC
36672002-08-25 Andrew Cagney <ac131313@redhat.com>
3668
3669 * regcache.h (register_offset_hack): Declare.
3670 (regcache_cooked_read_using_offset_hack): Declare.
3671 (regcache_cooked_write_using_offset_hack): Declare.
3672
3673 * regcache.c (register_offset_hack): New function.
3674 (regcache_cooked_read_using_offset_hack): New function.
3675 (regcache_cooked_write_using_offset_hack): New function.
3676 (regcache_dump): Check that the registers, according to their
3677 offset, are packed hard against each other.
3678 (cooked_xfer_using_offset_hack): New function.
3679
bb425013
AC
36802002-08-25 Andrew Cagney <ac131313@redhat.com>
3681
3682 * regcache.c (struct regcache_descr): Add field register_type.
3683 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3684 in as a parameter
3685 (init_regcache_descr): Initialize register_type. Pass the descr
3686 to init_legacy_regcache_descr. Use register_type instead of
3687 REGISTER_VIRTUAL_TYPE.
3688 (register_type): New function.
3689 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3690 * regcache.h (register_type): Declare.
3691
d0403e00
AC
36922002-08-25 Andrew Cagney <ac131313@redhat.com>
3693
3694 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3695 instead of deprecated_store_return_value. Fix fallout from
3696 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3697
0ed04cce
AC
36982002-08-25 Andrew Cagney <ac131313@redhat.com>
3699
3700 * regcache.c (max_register_size): New function.
3701 (init_legacy_regcache_descr): Ensure that max_register_size is
3702 large enough for REGISTER_VIRTUAL_SIZE.
3703 * regcache.h (max_register_size): Declare.
3704
46d79c04
AC
37052002-08-24 Andrew Cagney <ac131313@redhat.com>
3706
3707 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3708 store_return_value.
3709 (e500_extract_return_value): Change type of valbuf pointer to
3710 void.
3711
853c7bd0
MK
37122002-08-24 Mark Kettenis <kettenis@gnu.org>
3713
cd87e769
MK
3714 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3715 workaround.
3716
853c7bd0
MK
3717 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3718 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3719 long long) to prevent compiler warning on 64-bit systems.
3720
ebba8386
AC
37212002-08-23 Andrew Cagney <cagney@redhat.com>
3722
3723 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3724 (DEPRECATED_STORE_RETURN_VALUE): New method.
3725 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3726 * gdbarch.h, gdbarch.c: Re-generate.
3727
3728 * values.c (set_return_value): Pass current_regcache to
3729 STORE_RETURN_VALUE.
3730 * arch-utils.h (legacy_store_return_value): Declare.
3731 * arch-utils.c (legacy_store_return_value): New function.
3732 (legacy_extract_return_value): Update parameters.
3733
3734 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3735 STORE_RETURN_VALUE.
3736 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3737 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3738 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3739 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3740 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3741 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3742 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3743 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3744 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3745 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3746
3747 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3748 * i386-tdep.c (i386_extract_return_value): Update.
3749 * arch-utils.c (legacy_extract_return_value): Update.
3750 * frv-tdep.c (frv_gdbarch_init): Update.
3751 * cris-tdep.c (cris_gdbarch_init): Update.
3752 * d10v-tdep.c (d10v_gdbarch_init): Update.
3753 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3754 * m68k-tdep.c (m68k_gdbarch_init): Update.
3755 * mcore-tdep.c (mcore_gdbarch_init): Update.
3756 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3757 * s390-tdep.c (s390_gdbarch_init): Update.
3758 * sparc-tdep.c (sparc_gdbarch_init): Update.
3759 * sh-tdep.c (sh_gdbarch_init): Update.
3760 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3761 * v850-tdep.c (v850_gdbarch_init): Update.
3762 * avr-tdep.c (avr_gdbarch_init): Update.
3763 * ia64-tdep.c (ia64_gdbarch_init): Update.
3764 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3765 * vax-tdep.c (vax_gdbarch_init): Update.
3766 * alpha-tdep.c (alpha_gdbarch_init): Update.
3767 * arm-tdep.c (arm_gdbarch_init): Update.
3768 * mips-tdep.c (mips_gdbarch_init): Update.
3769 * i386-tdep.c (i386_gdbarch_init): Update.
3770
5bd8c6d0
AC
37712002-08-23 Andrew Cagney <ac131313@redhat.com>
3772
3773 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3774 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3775
e73e1724
MK
37762002-08-24 Mark Kettenis <kettenis@gnu.org>
3777
3778 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3779 problems.
3780
3e6564e1
JB
37812002-08-23 Joel Brobecker <brobecker@gnat.com>
3782
3783 * infrun.c (handle_inferior_event): Move a comment outside of a
3784 function call, in order to avoid indent reformatting this part
3785 of the code in an unreadable way.
3786
81d0cc19
GS
37872002-08-23 Grace Sainsbury <graces@redhat.com>
3788
3789 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3790 when breakpoints fail. Move general breakpoint error messages to
3791 insert_breakpoints.
3792 * breakpoint.c (insert_breakpoints): Change warnings when
3793 breakpoints are nto inserted to specify the type. Remove call to
3794 memory_error when hardware breakpoints can't be inserted. Remove
3795 multiple calls to warning so all messages are sent to the user at
3796 once.
3797 (delete_breakpoints): Make insert error messsages more explicit.
3798
17574093
DJ
37992002-08-23 Daniel Jacobowitz <drow@mvista.com>
3800
3801 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3802 gdbserver/ChangeLog.
3803
8acc2935
MK
38042002-08-23 Mark Kettenis <kettenis@gnu.org>
3805
dfe01d39
MK
3806 * i386-tdep.c: Include "objfiles.h".
3807 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3808 skip_trampoline_code.
3809 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3810 (CPLUS_MARKER): Define to '.'.
3811
8acc2935
MK
3812 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3813 member.
3814 (linux_corefile_thread_callback): Increase args->num_notes.
3815 (linux_make_note_section): Initialize thread_args.num_notes, and
3816 use it to determine whether notes for any threads were created.
3817
151fefe2 38182002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3819
3820 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3821 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3822 and PCUNKILL.
3823 (write_with_trace): Conditionalize out the switch branch handling
3824 PCSHOLD if the corresponding macro is not defined. Likewise for
3825 PRSABORT and PRSTOP.
3826 This change will be needed by the Interix port.
3827
e1507482
EZ
38282002-08-22 Elena Zannoni <ezannoni@redhat.com>
3829
3830 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3831 write_register wherever possible instead of manipulating the
3832 register bytes directly.
3833 Assign VALUE_CONTENTS to a variable and use that.
3834 The GPR numbers are now dependent on the architecture.
3835
96ff0de4
EZ
38362002-08-22 Elena Zannoni <ezannoni@redhat.com>
3837
3838 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3839 ev_offset fields.
3840 (skip_prologue): Add support for BookE/e500 instructions.
3841 (e500_extract_return_value): New function.
3842 (frame_get_saved_regs): Add support for saving ev registers and
3843 pseudo gpr's.
3844 (e500_store_return_value): New function.
3845 (rs6000_gdbarch_init): Move up default intializations of
3846 deprecated_extract_return_value and store_return_value. Overwrite
3847 init of store_return_value with e500 specific version.
3848 Set extract_return_value for e500.
3849
fbefca5b
EZ
38502002-08-22 Elena Zannoni <ezannoni@redhat.com>
3851
3852 * blockframe.c (generic_call_dummy_register_unwind): Use
3853 regcache_cooked_read to catch cases in which the variable is
3854 stored in a pseudo register.
3855
4d210288
AC
38562002-08-22 Andrew Cagney <cagney@redhat.com>
3857
3858 * NEWS: Mention that the i960 has been made obsolete.
3859 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3860 i960-tdep.c
3861 (remote-nrom.o): Obsolete target.
3862 (remote-nindy.o, i960-tdep.o): Ditto.
3863 * remote-nrom.c: Make file obsolete.
3864 * remote-nindy.c, remote-vx960.c: Ditto.
3865 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3866 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3867 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3868 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3869 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3870 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3871 i960-*-vxworks* obsolete.
3872 * MAINTAINERS: Note that the i960 is obsolete.
3873
6c0c456d
CV
38742002-08-21 Corinna Vinschen <vinschen@redhat.com
3875
3876 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3877 detach to allow reinitialization.
3878
9f9d12b3
AC
38792002-08-22 Andrew Cagney <ac131313@redhat.com>
3880
3881 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3882 attempt).
3883
ebeb39fe
JB
38842002-08-22 Jim Blandy <jimb@redhat.com>
3885
3886 * coffread.c (coff_symfile_read): Don't try to read the line
3887 number table from disk if the image file doesn't have a symbol
3888 table; we'll never actually look at the info anyway, and Windows
3889 ships DLL's with bogus file offsets for the line number data.
3890
5bf1c677
EZ
38912002-08-21 Elena Zannoni <ezannoni@redhat.com>
3892
3893 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3894 an e500 executable.
3895
71b8ef93
MS
38962002-08-21 Michael Snyder <msnyder@redhat.com>
3897
3898 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3899 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3900 (DEFAULT_MIPS_TYPE): Delete unused macro.
3901 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3902 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3903
d174216d
JB
39042002-08-21 Jim Blandy <jimb@redhat.com>
3905
3906 * valops.c (value_cast): Simplify and correct logic for doing a
3907 static cast from a pointer to a base class to a pointer to a
3908 derived class.
3909
0ab7a791
AC
39102002-08-21 Andrew Cagney <ac131313@redhat.com>
3911
3912 * infcmd.c (default_print_registers_info): Replace
3913 do_registers_info.
3914 (registers_info): Use gdbarch_print_registers_info instead of
3915 DO_REGISTERS_INFO.
3916 * inferior.h (default_print_registers_info): Replace
3917 do_registers_info.
3918 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3919 (DO_REGISTERS_INFO): Change to a predicate function.
3920 * gdbarch.h, gdbarch.c: Regenerate.
3921
e23792cc
KS
39222002-08-21 Keith Seitz <keiths@redhat.com>
3923
3924 * gdb-events.sh: Add target-changed event.
3925 * gdb-events.c: Regenerated.
3926 * gdb-events.c: Regenerated.
3927 * valops.c (value_assign): Add target-changed event notification
3928 to inlval_register, lval_memory, and lval_reg_frame_relative.
3929
9fb14e79
JB
39302002-08-21 Joel Brobecker <brobecker@gnat.com>
3931
3932 * NEWS: Add an entry regarding the improvement of the next/step
3933 operation on Alpha Tru64 multi-processor machines.
3934
6d39a69f
AC
39352002-08-21 Andrew Cagney <ac131313@redhat.com>
3936
72acd513
AC
3937 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3938 directores.
342af04b 3939 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3940 * Makefile.in (install-gdbtk): Move to install section.
3941 (rdi-share/libangsd.a): Move to end of file.
3942
fa5f27c7
AC
39432002-08-19 Andrew Cagney <ac131313@redhat.com>
3944
3945 * frame.c (frame_register_unwind): When a register, set addrp to
3946 the register's byte.
3947
5a89d8aa
MS
39482002-08-20 Michael Snyder <msnyder@redhat.com>
3949
3950 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3951 used locally, so move them from the target machine header to here.
3952 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3953 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3954 Make static.
3955 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3956
822e978b
AC
39572002-08-20 Andrew Cagney <cagney@redhat.com>
3958
3959 * NEWS: Mention that the Apollo line was made obsolete.
3960 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3961 m68*-hp-hpux* obsolete.
3962 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3963 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3964 * buildsym.c (make_blockvector): Make static.
3965 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3966 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3967 (ALLDEPFILES): Remove dstread.c.
3968 (dstread.o): Obsolete make rule.
3969 * dstread.c: Makefile obsolete.
3970 * dst.h: Ditto.
3971 * config/m68k/hp300hpux.mt: Ditto.
3972 * config/m68k/hp300hpux.mh: Ditto.
3973 * config/m68k/hp300bsd.mt: Ditto.
3974 * config/m68k/hp300bsd.mh: Ditto.
3975 * config/m68k/apollo68b.mt: Ditto.
3976 * config/m68k/apollo68v.mh: Ditto.
3977 * config/m68k/apollo68b.mh: Ditto.
3978
e41b17f0
MS
39792002-08-20 Michael Snyder <msnyder@redhat.com>
3980
3981 * mips-tdep.c (mips_in_return_stub): Make static.
3982 (mips_gdbarch_init): Set in_solib_return_trampoline.
3983 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3984
d50355b6
MS
39852002-08-20 Michael Snyder <msnyder@redhat.com>
3986
3987 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3988 * gdbarch.c, gdbarch.h: Regenerate.
3989 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3990 Add.
3991 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3992
757a7cc6
MS
39932002-08-20 Michael Snyder <msnyder@redhat.com>
3994
3995 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3996 (mips_gdbarch_init): Set skip_trampoline_code,
3997 in_solib_call_trampoline.
3998 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3999 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4000
c8001721
EZ
40012002-08-20 Elena Zannoni <ezannoni@redhat.com>
4002
4003 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4004
4005 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4006 vector type for ev registers.
4007 (e500_pseudo_register_read): New function.
4008 (e500_pseudo_register_write): New function.
4009 (e500_dwarf2_reg_to_regnum): New function.
4010 (PPC_UISA_NOFP_SPRS): New macro.
4011 (PPC_EV_REGS): New macro.
4012 (PPC_GPRS_PSEUDO_REGS): New macro.
4013 (registers_e500): New register set for e500.
4014 (variants): Add e500 variant.
4015 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4016 before setting architectural dependent variations. Initialize ev
4017 registers numbers. Add case for e500 architecture. Set the
4018 number of pseudo registers.
4019
64366f1c
EZ
40202002-08-20 Elena Zannoni <ezannoni@redhat.com>
4021
4022 * rs6000-tdep.c: Clean up comments.
4023
7e78f0ca
AC
40242002-08-20 Andrew Cagney <cagney@redhat.com>
4025
4026 * h8300-tdep.c: Re-indent file.
4027
697f7479
JB
40282002-08-20 Jim Blandy <jimb@redhat.com>
4029
4030 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4031 default for this.
697f7479 4032
e86ae29f
KS
40332002-08-20 Keith Seitz <keiths@redhat.com>
4034
4035 * breakpoints.c (watch_command_1): Use internal breakpoint
4036 when setting a watchpoint_scope breakpoint.
4037
216b504f
EZ
40382002-08-20 Elena Zannoni <ezannoni@redhat.com>
4039
4040 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4041 (build_builtin_type_vec64i): Ditto.
4042 (build_builtin_type_vec128): Ditto.
4043 (build_builtin_type_vec128i): Ditto.
4044
f7ab6ec6
MS
40452002-08-19 Michael Snyder <msnyder@redhat.com>
4046
4047 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4048 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4049 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4050 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4051 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4052 CALL_DUMMY_ADDRESS): Delete.
4053 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4054 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4055 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4056 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4057 push_return_address.
4058 (mips_register_raw_size, mips_eabi_use_struct_convention,
4059 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4060 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4061 mips_init_extra_frame_info, mips_eabi_push_arguments,
4062 mips_n32n64_push_arguments, mips_push_return_address,
4063 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4064 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4065
b5d1566e
MS
40662002-08-19 Michael Snyder <msnyder@redhat.com>
4067
4068 * mips-tdep.c (mips_frame_num_args): New function.
4069 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4070 frame_saved_pc, frame_args_address, frame_locals_address,
4071 frame_num_args, and frame_args_skip.
4072 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4073 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4074 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4075 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4076
2f1488ce
MS
40772002-08-20 Michael Snyder <msnyder@redhat.com>
4078
4079 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4080 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4081 * mips-tdep.c (mips_store_struct_return): New function.
4082 (mips_extract_struct_value_address): New function.
4083 (mips_gdbarch_init): Set store_struct_return and
4084 extract_struct_value_address.
4085
41ff2da1
DC
40862002-08-20 David Carlton <carlton@math.stanford.edu>
4087
4088 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4089 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4090 (read_file_scope): Check that line_header is nonzero before
4091 decoding macro information.
4092
e5451d58
MK
40932002-08-20 Mark Kettenis <kettenis@gnu.org>
4094
4095 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4096 flag the general-purpose registers as floating-point on targets
4097 that don't support the floating-point registers.
4098
4a6daafa
EZ
40992002-08-20 Elena Zannoni <ezannoni@redhat.com>
4100
4101 * rs6000-tdep.c (altivec_register_p): Delete.
4102 (rs6000_do_altivec_registers): Delete.
4103 (rs6000_altivec_registers_info): Delete.
4104 (rs6000_do_registers_info): Delete.
4105 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4106 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4107
ab4327e0
EZ
41082002-08-20 Elena Zannoni <ezannoni@redhat.com>
4109
4110 * infcmd.c (do_registers_info): Print vector registers in hex
4111 format only.
4112 (print_vector_info): Check that printing registers
4113 makes sense.
4114 (print_float_info): Ditto.
4115
cb1d2653
AC
41162002-08-20 Andrew Cagney <ac131313@redhat.com>
4117
4118 * mips-tdep.c (mips_gdbarch_init): Update.
4119 (mips_o32_extract_return_value): Rewrite.
4120 (mips_o32_store_return_value): Rewrite.
4121 (mips_o32_xfer_return_value): New function.
4122 (mips_xfer_register): Tweak debug print message. Allow for
4123 buf_offset when dumping the value transfered.
4124
dfc3d9b2
AC
41252002-08-20 Andrew Cagney <ac131313@redhat.com>
4126
4127 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4128 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4129 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4130 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4131 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4132
7807aa61
MS
41332002-08-14 Michael Snyder <msnyder@redhat.com>
4134
4135 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4136
489461e2
EZ
41372002-08-19 Elena Zannoni <ezannoni@redhat.com>
4138
4139 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4140 register.
4141 (P): New macro to define a register as a pseudo register.
4142 (R, R4, R8, R16, FR32, R64, R0): Updated.
4143 (struct variant): Add new fields for number of pseudo registers
4144 and number of total registers.
4145 (tot_num_registers): New macro replacing....
4146 (num_registers): ...deleted macro.
4147 (num_registers): New function.
4148 (num_pseudo_registers): New function.
4149 (variants): Update all variants to intialize new fields correctly.
4150 Postpone initialization of number of pseudo regs and real regs.
4151 (init_variants): New function.
4152 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4153 registers offsets.
4154
fcaffe4c
DC
41552002-08-19 David Carlton <carlton@math.stanford.edu>
4156
2c2738a0
DC
4157 * valops.c (search_struct_field): Change error message to treat
4158 return value of 0 from value_static_field as meaning that field is
4159 optimized out.
4160 (value_struct_elt_for_reference): Ditto.
4161 * values.c (value_static_field): Treat an unresolved location the
4162 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
4163 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4164 enclosed. Fix PR gdb/574.
fcaffe4c
DC
4165 * MAINTAINERS: Add self to Write After Approval list.
4166
88658117
AC
41672002-08-19 Andrew Cagney <ac131313@redhat.com>
4168
4169 * mips-tdep.c (mips_xfer_register): New function.
4170 (mips_n32n64_extract_return_value): Rewrite.
4171 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4172 instead of deprecated_extract_return_value.
4173
21283beb
EZ
41742002-08-19 Elena Zannoni <ezannoni@redhat.com>
4175
4176 * rs6000-tdep.c (TDEP): Delete macro.
4177 (branch_dest): Replace use of TDEP macro with its body.
4178 (rs6000_pop_frame): Ditto.
4179 (rs6000_push_arguments): Ditto.
4180 (rs6000_skip_trampoline_code): Ditto.
4181 (rs6000_frame_saved_pc): Ditto.
4182 (rs6000_frame_chain): Ditto.
4183 (rs6000_register_name): Ditto.
4184 (rs6000_register_byte): Ditto.
4185 (rs6000_register_raw_size): Ditto.
4186 (rs6000_register_virtual_type): Ditto.
4187 (rs6000_register_convertible): Ditto.
4188 (rs6000_convert_from_func_ptr_addr): Ditto.
4189
bf072999
DJ
41902002-08-19 Daniel Jacobowitz <drow@mvista.com>
4191
4192 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4193 conditionally.
4194 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4195 MIPS_LINUX_JB_ELEMENT_SIZE.
4196 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4197 for MAX_REGISTER_RAW_SIZE arrays.
4198 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4199 MIPS_LINUX_JB_ELEMENT_SIZE.
4200
9b949a49
PM
42012002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4202
4203 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4204
6d3e79c6
AS
42052002-08-19 Aidan Skinner <aidan@velvet.net>
4206
4207 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4208 ada-valprint.c ada-tasks.c.
4209 (YYFILES): Add ada-exp.y.
4210 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4211 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4212 (ada-exp.tab.o): New target.
4213
06c0b04e
AC
42142002-08-18 Andrew Cagney <ac131313@redhat.com>
4215
4216 * regcache.c (regcache_xfer_part): New function.
4217 (regcache_raw_read_part): New function.
4218 (regcache_raw_write_part): New function.
4219 (regcache_cooked_read_part): New function.
4220 (regcache_cooked_write_part): New function.
4221 * regcache.h (regcache_raw_read_part): Declare.
4222 (regcache_raw_write_part): Declare.
4223 (regcache_cooked_read_part): Declare.
4224 (regcache_cooked_write_part): Declare.
4225
92d1e331
DJ
42262002-08-18 Daniel Jacobowitz <drow@mvista.com>
4227
4228 * remote.c (remote_open_1): Add async_p.
4229 (remote_async_open_1): Delete.
4230 (open_remote_target): Delete.
4231 (remote_open, extended_remote_open): Update calls to remote_open_1.
4232 (remote_async_open, extended_remote_async_open): Call
4233 remote_open_1 instead of remote_async_open_1.
4234
247055de
MK
42352002-08-19 Mark Kettenis <kettenis@gnu.org>
4236
4237 * blockframe.c: Fix a few coding standard violations.
4238
641eda39
MK
42392002-08-19 Mark Kettenis <kettenis@gnu.org>
4240
0b717710
MK
4241 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4242 here from ...
4243 * config/i386/tm-i386sco5.h: ... here. File removed.
4244 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4245
26d28e12 4246 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4247 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4248 (TM_FILE): Set to tm-i386.h.
4249 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4250 * config/i386/tm-i386v.h: Remove file.
4251 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4252 instead of "i386/tm-i386v.h".
4253 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4254 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4255 "i386/tm-i386v.h".
4256 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4257 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4258 "i386/tm-i386.h".
4259
d4e0bab4
MK
42602002-08-18 Mark Kettenis <kettenis@gnu.org>
4261
4262 * config/i386/nm-i386v.h: Add protection against
4263 multiple-inclusion.
4264 (i386_register_u_addr): Remove prototype.
4265 (register_u_addr): New prototype.
4266 (REGISTER_U_ADDR): Redefine accordingly.
4267 * i386v-nat.c: Improve several comments.
4268 (i386_register_u_addr): Change signature and rename to
4269 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4270 ubase variable.
4271
46cac009
AC
42722002-08-18 Andrew Cagney <ac131313@redhat.com>
4273
4274 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4275 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4276 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4277 deprecated_extract_return_value.
4278 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4279 rename mips_o32o64_push_arguments.
4280 (mips_gdbarch_init): Update.
4281 (mips_extract_return_value): Delete.
4282 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4283 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4284 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4285 (mips_n32n64_extract_return_value): Clone
4286 mips_extract_return_value.
4287 (mips_store_return_value): Delete.
4288 (mips_o32_store_return_value): Clone mips_store_return_value.
4289 (mips_o64_store_return_value): Clone mips_store_return_value.
4290 (mips_eabi_store_return_value): Clone mips_store_return_value.
4291 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4292
d2e4a39e
AS
42932002-08-18 Aidan Skinner <aidan@velvet.net>
4294
0c30c098
AS
4295 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4296 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4297
42982002-08-18 Aidan Skinner <aidan@velvet.net>
4299
4300 * ada-lang.c: Run through gdb_indent.sh.
4301 * ada-lang.h: Run through gdb_indent.sh.
4302 * ada-tasks.c: Run through gdb_indent.sh.
4303 * ada-typeprint.c: Run through gdb_indent.sh.
4304 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4305
01fc4e33
AC
43062002-08-18 Andrew Cagney <ac131313@redhat.com>
4307
4308 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4309 ABI.
4310
d8ee244c
MK
43112002-08-18 Mark Kettenis <kettenis@gnu.org>
4312
c38d8261
MK
4313 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4314
222db64c
MK
4315 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4316 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4317
c2848c82
MK
4318 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4319 write_register_gen instead of write_register_bytes.
4320
d8ee244c
MK
4321 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4322 i[3456]-*-osf1mk* configurations have been made obsolete.
4323 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4324 i[3456]86-*-osf1mk* hosts obsolete.
4325 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4326 targets obsolete.
4327 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4328 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4329 config/i386/i386m3.mt, config/i386/nm-m3.h,
4330 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4331 config/i386/i386mk.mh, config/i386/i386mk.mt,
4332 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4333 obsolete.
4334 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4335 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4336 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4337
61d8d407
AC
43382002-08-18 Andrew Cagney <ac131313@redhat.com>
4339
4340 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4341 (hppa_value_returned_from_stack): Declare.
4342 (hppa_extract_return_value): Declare.
4343 * config/pa/hppa.mt: New file.
4344 * configure.tgt: Recognize hppa*-*-*.
4345 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4346
0c52bd59
MK
43472002-08-18 Mark Kettenis <kettenis@gnu.org>
4348
4349 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4350 comment.
4351
b5686e99
MK
43522002-08-17 Mark Kettenis <kettenis@gnu.org>
4353
4354 * top.c (gdb_rl_operate_and_get_next): Make sure
4355 operate-and-get-next functions correctly even when the history
4356 list is completely filled.
4357
c1bab85b
AC
43582002-08-18 Andrew Cagney <ac131313@redhat.com>
4359
4360 * MAINTAINERS (Target Instruction Set Architectures): Rename
4361 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4362 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4363 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4364 already listed under Host/Native.
4365
4366 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4367 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4368 mips*-*-*.
4369
32089c7c
AC
43702002-08-17 Andrew Cagney <ac131313@redhat.com>
4371
4372 * config/ia64/ia64.mt: New file.
4373 * config/alpha/alpha.mt: New file.
4374 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4375 ia64-linux-gnu. Mention that ia64-elf is broken.
4376 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4377
b4671f85
MK
43782002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4379
4380 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4381 generic_func_frame_valid instead of func_frame_valid.
4382
c8edd8b4
JB
43832002-08-16 Joel Brobecker <brobecker@gnat.com>
4384
4385 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4386 procfs appears to be broken when debugging on multi-processor
4387 machines. So enable software single stepping in order to avoid
4388 using the procfs interface to do next/step operations, using
4389 internal breakpoints instead.
4390
4391 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4392 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4393 make this pc address equal to the value it would have if the
4394 system stepping capability was used. Also set a new flag used
4395 to ensure that we don't readjust the PC one more time later.
4396
4397 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4398 address by DECR_PC_AFTER_BREAK when software single step is
4399 in use for this architecture, as this has already been taken
4400 care of in handle_inferior_event().
4401
238617f6
JB
44022002-08-16 Joel Brobecker <brobecker@gnat.com>
4403
4404 * infrun.c (handle_inferior_event): Minor reformatting, to make
4405 a rather long condition expression easier to read.
4406
541a7aac
AC
44072002-08-16 Andrew Cagney <ac131313@redhat.com>
4408
4409 * Makefile.in (gdbtk.o): Move to end of file.
4410 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4411 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4412 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4413 (gdbtk-wrapper.o, gdbres.o): Ditto.
4414
f92d4a7b
AC
44152002-08-16 Andrew Cagney <ac131313@redhat.com>
4416
4417 * Makefile.in (copying.o): Separate out compile rule.
4418 (hpux-thread.o, procfs.o, signals.o): Ditto.
4419 (v850ice.o, z8k-tdep.o): Ditto.
4420 (tui-file.o): Move to TUI section.
4421 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4422 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4423
1cce71eb
JB
44242002-08-16 Joel Brobecker <brobecker@gnat.com>
4425
4426 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4427 skip_trampoline_code, for better namespace-proofing.
4428
4429 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4430
0851f23d
JB
44312002-08-16 Joel Brobecker <brobecker@gnat.com>
4432
4433 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4434
f8d40ec8
JB
44352002-08-16 Joel Brobecker <brobecker@gnat.com>
4436
4437 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4438 signal, check whether we hit a breakpoint before checking for a
4439 single step breakpoint. Otherwise, GDB fails to notice that a
4440 breakpoint has been hit when stepping onto a breakpoint.
4441
63d022e0
KS
44422002-08-16 Keith Seitz <keiths@redhat.com>
4443
4444 * gdb-events.sh (clear_gdb_event_hooks): New function.
4445 * gdb-events.c: Regenerate.
4446 * gdb-events.h: Regenerate.
4447
6e31adb3
AC
44482002-08-16 Andrew Cagney <ac131313@redhat.com>
4449
4450 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4451 not_a_sw_breakpoint.
4452 * breakpoint.h (bpstat_stop_status): Add parameter names.
4453
c8189ed1
GS
44542002-08-16 Grace Sainsbury <graces@redhat.com>
4455
4456 * remote.c (remote_insert_hw_breakpoint)
4457 (remote_remove_hw_breakpoint): Fix calculation of length field
4458 for Z-packet.
4459
d05285fa
MS
44602002-08-15 Michael Snyder <msnyder@redhat.com>
4461
466d7106
MS
4462 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4463 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4464 (supply_fpregset): Ditto.
4465
d05285fa
MS
4466 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4467 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4468 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4469 (TARGET_READ_SP): Delete.
bf1f5b4c 4470 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4471 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4472 Delete.
4473 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4474 from macros to functions.
bf1f5b4c 4475
d05285fa
MS
4476 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4477 (mips_register_convertible, mips_register_convert_to_virtual,
4478 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4479 (mips_read_sp): New function.
4480 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4481 (mips_do_registers_info): Make static.
4482 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4483 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4484 (mips_register_convert_from_type, mips_register_convert_to_type):
4485 New functions.
4486 (mips_gdbarch_init): Set up function_start_offset,
4487 register_virtual_size, pc_in_sigtramp.
d05285fa 4488
e76f1f2e
AC
44892002-08-15 Andrew Cagney <ac131313@redhat.com>
4490
4491 * infcmd.c (vector_info): New function.
4492 (_initialize_infcmd): Add command "info vector".
4493 (print_vector_info): New function.
4494
4495 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4496 * gdbarch.h, gdbarch.c: Regenerate.
4497
4782dc19
AC
44982002-08-15 Andrew Cagney <ac131313@redhat.com>
4499
4500 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4501 ``print_all''. Only print vector registers when ``print_all''.
4502
23e3a7ac
AC
45032002-08-15 Andrew Cagney <ac131313@redhat.com>
4504
8e186fd6
AC
4505 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4506 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4507
23e3a7ac
AC
4508 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4509 Add `args' parameter.
4510 * gdbarch.h, gdbarch.c: Regenerate.
4511
4512 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4513
4514 * infcmd.c (float_info): Call print_float_info.
4515 (print_float_info): New function. By default, print the
4516 floating-point registers.
4517
4518 * arch-utils.h (default_print_float_info): Delete declaration.
4519 * arch-utils.c (default_print_float_info): Delete function.
4520
e0ca2bb9
MK
45212002-08-16 Mark Kettenis <kettenis@gnu.org>
4522
3f733acc
MK
4523 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4524 out define.
4525
7d8d2918
MK
4526 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4527 FRAME.
4528
1c7cc583
MK
4529 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4530 * configure.host: Make i[3456]86-*-aix host obsolete.
4531 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4532 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4533 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4534 config/i386/xm-i386aix.h: Make files obsolete.
4535 * i386aix-nat.c: Make file obsolete.
4536 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4537 (i386aix-nat.o): Make target obsolete.
4538
e0ca2bb9
MK
4539 * config/i386/nm-gnu.h: Removed.
4540 * config/i386/nm-i386gnu.h: New file.
4541 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4542 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4543 Moved here from ...
4544 * config/i386/tm-i386gnu.h: ... here. Removed.
4545 * config/i386/xm-i386gnu.h: Removed.
4546 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4547 (NAT_FILE): Set to nm-i386gnu.h.
4548 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4549 * i386-tdep.c: New file.
4550 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4551 (i386gnu-tdep.o): Specify dependencies.
4552
16057ec7 45532002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4554
6b99ee2e
MK
4555 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4556 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4557 Adjust a few comments to reflect reality a bit closer.
4558 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4559 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4560 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4561 target_insert_watchpoint, target_remove_watchpoint):
4562 Move defines to ...
4563 * config/i386/nm-i386sco5.h: ... here.
4564 (kernel_u_size): Add prototype. Improve a few comments and add
4565 protection against multiple inclusion.
4566
d9a6f65c
MK
4567 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4568 out define.
4569
047eff6a
MK
4570 * uw-thread.c (SP_ARG0): Define if not already defined.
4571 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4572
dcdb1290
MK
4573 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4574
5d2d0b2a
MK
4575 * config/i386/tm-i386.h: Don't include "regcache.h".
4576
61113f8b
MK
4577 * i387-tdep.h (i387_print_float_info): New prototype.
4578 * i387-tdep.c (print_i387_value, print_i387_ext,
4579 print_i387_status_word, print_i387_control_word): Add `struct
4580 ui_file *' argument and use it for output.
4581 (i387_print_float_info): Renamed from i387_float_info. Add
4582 `struct gdbarch *' and `struct ui_file *' arguments and use the
4583 latter for output.
4584 * i386-tdep.c: Include "i387-tdep.h".
4585 (i386_gdbarch_init): Set print_float_info.
4586 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4587 (FLOAT_INFO): Remove define.
4588
46e0f506
MS
45892002-08-13 Michael Snyder <msnyder@redhat.com>
4590
4591 * mips-tdep.c (mips_push_arguments): Rename to
4592 mips_eabi_push_arguments, and tune for EABI.
4593 (MIPS_REGS_HAVE_HOME_P): Delete.
4594 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4595 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4596 Delete references to mips_regs_have_home_p.
4597
409268de
KS
45982002-08-14 Keith Seitz <keiths@redhat.com>
4599
4600 * Makefile.in (install-gdbtk): Create insight plugin directory.
4601 Install plugins.tcl file.
4602
ffc6a242
KS
46032002-08-14 Keith Seitz <keiths@redhat.com>
4604
4605 * configure.in: Move SUBDIRS to near top of the file so that
4606 --enable options may add things to it.
4607 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4608 * configure: Regenerate.
4609
ebafbe83
MS
46102002-08-13 Michael Snyder <msnyder@redhat.com>
4611
4612 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4613 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4614 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4615
32f6f25d
AC
46162002-08-13 Andrew Cagney <ac131313@redhat.com>
4617
4618 * vax-tdep.c (vax_get_saved_register): Delete function.
4619 (vax_gdbarch_init): Update.
4620 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4621 (ns32k_gdbarch_init): Update.
4622 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4623 (alpha_gdbarch_init): Update.
4624
53826de9
AC
46252002-08-13 Andrew Cagney <cagney@redhat.com>
4626
4627 * regcache.c (init_regcache_descr): Overallocate the
4628 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4629 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4630 nr_raw_registers.
4631 (set_register_cached): Add range checking assertions. Use
4632 current_regcache.
4633
16057ec7 46342002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4635
4636 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4637 numbers for MMX registers.
4638
7b4c2dce
AC
46392002-08-13 Andrew Cagney <cagney@redhat.com>
4640
4641 * i386-tdep.c (i386_gdbarch_init): Use
4642 generic_unwind_get_saved_register.
4643
1e03ad20
KB
46442002-08-13 Kevin Buettner <kevinb@redhat.com>
4645
4646 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4647 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4648 target vector.
4649 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4650 Delete. Add comment regarding this now-deleted target method.
4651
548bcbec
SC
46522002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4653
4654 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4655 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4656 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4657 real PC and the page number (if it's within the memory bank window).
4658 (m68hc11_pseudo_register_write): Likewise when saving.
4659 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4660 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4661 (m68hc11_register_raw_size): And use 32-bit for it.
4662 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4663 16K memory bank is used by the prog; also use the virtual pc.
4664
7df11f59
SC
46652002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4666
4667 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4668 (m68hc11_gdbarch_init): Install it in gdbarch.
4669 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4670 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4671 (MSYMBOL_SIZE): New for documentation.
4672 (insn_return_kind): Enum to specify how a function returns.
4673 (frame_extra_info): Cleanup and record the return mode.
4674 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4675 register in address computation.
4676 (m68hc11_get_return_insn): New to obtain the return instruction used
4677 by the function.
4678 (m68hc11_frame_init_saved_regs): Take into account the return
4679 instruction used by the function for far and interrupt functions.
4680 (m68hc11_init_extra_frame_info): Take into account page register.
4681 (m68hc11_frame_args_address): Adjust according to the return mode.
4682 (show_regs): Print page register only when it's used.
4683
5706502a
SC
46842002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4685
4686 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4687 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4688 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4689 registers.
4690 (m68hc11_register_raw_size): Likewise.
4691
28fc6740
AC
46922002-08-13 Andrew Cagney <cagney@redhat.com>
4693
4694 * i386-tdep.c (i386_register_name): Handle mmx registers.
4695 (mmx_regnum_p): New function.
4696 (i386_mmx_names): New array.
4697 (mmx_num_regs): New variable.
4698 (i386_pseudo_register_read): New function.
4699 (i386_pseudo_register_write): New function.
4700 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4701
4702 * regcache.c (regcache_raw_read_unsigned): New function.
4703 (regcache_raw_read_signed): New function.
4704 * regcache.h (regcache_raw_read_unsigned): Declare.
4705 (regcache_raw_read_signed): Declare.
4706
a378f419
AC
47072002-08-13 Andrew Cagney <cagney@redhat.com>
4708
4709 * regcache.c (regcache_raw_read_as_address): Delete function.
4710 (regcache_cooked_read_signed): New function.
4711 (regcache_cooked_read_unsigned): New function.
4712 * regcache.h (regcache_cooked_read_signed): Declare.
4713 (regcache_cooked_read_unsigned): Declare.
4714 (regcache_raw_read_as_address): Delete declaration.
4715
4716 * blockframe.c (generic_read_register_dummy): Use
4717 regcache_cooked_read_unsigned.
4718 * i386-tdep.c (i386_extract_struct_value_address): Use
4719 regcache_cooked_read_unsigned.
4720
81967506
SC
47212002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4722
4723 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4724 double sizes according to ELF ABI flags.
4725 (gdbarch_tdep): Record elf_flags.
4726
ffe1f3ee
SC
47272002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4728
4729 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4730 (m6812_prolog): They can appear in 68HC12 function prologue.
4731 (m68hc11_frame_chain): Cleanup.
4732
98216c5d
AC
47332002-08-12 Andrew Cagney <cagney@redhat.com>
4734
4735 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4736 declarations.
4737 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4738 (i386_linux_register_raw_size): Delete function.
4739 (i386_linux_init_abi): Update.
4740 * i386-tdep.c (i386_register_raw_size): Delete function.
4741 (i386_register_byte): Delete function.
4742 (i386_gdbarch_init): Update.
4743 (i386_register_size): Delete array.
4744 (i386_register_offset): Delete array.
4745
4746 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4747 (REGISTER_RAW_SIZE): Delete macro.
4748 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4749 (REGISTER_BYTE): Delete macro.
4750
3b19021e
AS
47512002-08-11 Aidan Skinner <aidan@velvet.net>
4752
4753 * ada-lang.c (ada_lookup_partial_symbol)
4754 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4755 prototype names so that grep ^func works properly.
4756
4757 * ada-lang.c (ada_array_element_type)
4758 (ada_lookup_partial_symbol): Fix typos in parameter list.
4759
4760 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4761 Fix prototype names so that grep ^func works properly.
4762
b063e7a2
AC
47632002-08-10 Andrew Cagney <cagney@redhat.com>
4764 Elena Zannoni <ezannoni@redhat.com>
4765 Martin M. Hunt <hunt@redhat.com>
4766
4767 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4768 (build_builtin_type_vec128i): Set the vector bit.
4769 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4770 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4771 (build_builtin_type_vec64): New function.
4772 (build_builtin_type_vec64i): New function.
4773 (build_gdbtypes): Initialize builtin_type_vec64 and
4774 builtin_type_vec64i.
4775
a7e3c2ad
AC
47762002-08-09 Andrew Cagney <cagney@redhat.com>
4777
4778 * regcache.c (regcache_dump): Compare the register offset
4779 with REGISTER_BYTE.
4780 * arch-utils.c (generic_register_byte): New function.
4781 * arch-utils.h (generic_register_byte): Declare.
4782 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4783 * gdbarch.h, gdbarch.c: Regenerate.
4784
af030b9a
AC
47852002-08-09 Andrew Cagney <cagney@redhat.com>
4786
4787 * regcache.c: Include "gdbcmd.h"
4788 (_initialize_regcache): Add commands "maintenance print
4789 registers", "maintenance print raw-registers" and "maintenance
4790 print cooked-registers".
4791 (enum regcache_dump_what): Define.
4792 (dump_endian_bytes): New function.
4793 (regcache_dump): New function.
4794 (regcache_print): New function.
4795 (maintenance_print_registers): New function.
4796 (maintenance_print_raw_registers): New function.
4797 (maintenance_print_cooked_registers): New function.
4798 * Makefile.in (regcache.o): Update dependencies.
4799
cb3d25d1
MS
48002002-08-09 Michael Snyder <msnyder@redhat.com>
4801
4802 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4803 (mips_push_arguments): Correct some comments. Use paddr_nz
4804 for printing addresses in debug output. Replace static
4805 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4806 (mips_n32n64_push_arguments): New function, cloned from
4807 mips_push_arguments and tuned for the n32/n64 ABI.
4808 (mips_push_register): Buffer needs dynamic allocation.
4809 (mips_print_register): Ditto.
4810 (do_gp_register_row): Ditto.
4811 (mips_store_return_value): Ditto.
4812 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4813
2163ab9d
DH
48142002-08-09 Don Howard <dhoward@redhat.com>
4815
4816 * memattr.c (mem_info_command): Print special case of upper bound
4817 as max CORE_ADDR + 1.
4818
b78bcb18
MS
48192002-08-08 Michael Snyder <msnyder@redhat.com>
4820
4821 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4822 returns structs by ref if they're too big to fit in two registers.
4823
ffabd70d
KB
48242002-08-09 Kevin Buettner <kevinb@redhat.com>
4825
4826 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4827 saved regs value.
4828 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4829 mips_find_saved_regs().
4830 (mips_pop_frame): Likewise.
4831
fbcdb4a3
KB
48322002-08-09 Kevin Buettner <kevinb@redhat.com>
4833
4834 * blockframe.c (frame_saved_regs_register_unwind): Revise
4835 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4836 frames are in use.
4837
3c3bea1c
GS
48382002-08-09 Grace Sainsbury <graces@redhat.com>
4839
4840 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4841 T-packets; the 'a' is not taken as a register number.
4842 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4843 (remote_stopped_data_address): New functions; add to target
4844 vector.
4845 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4846 prototypes to match other implementations of this
4847 function. replace integer argument with pointer -- the length
4848 field in the Z-packet is the length of what is pointed to or 1 if
4849 pointer is null. Add to target vector.
4850 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4851 target vector.
4852
4853 From Mark Salter:
4854 * remote.c (remote_wait): Add support to extract optional
4855 watchpoint information from T-packet. Ignore unrecognized
4856 optional info in T-packet.
4857 (remote_async_wait): Ditto.
4858
5d1d95de
CV
48592002-08-09 Corinna Vinschen <vinschen@redhat.com>
4860
4861 * cli/cli-dump.c: Change fopen modes to use binary open modes
4862 as defined in include/fopen-bin.h throughout.
4863
c86b5b38
MS
48642002-08-08 Michael Snyder <msnyder@redhat.com>
4865
4866 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4867
b30590dc
KB
48682002-08-08 Kevin Buettner <kevinb@redhat.com>
4869
4870 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4871 assertion failure by returning early after a warning.
4872
498868ed
KB
48732002-08-08 Kevin Buettner <kevinb@redhat.com>
4874
4875 * mips-tdep.c (mips_find_saved_regs): Make static.
4876 (mips_frame_init_saved_regs): New function.
4877 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4878 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4879 (mips_find_saved_regs): Delete declaration.
4880
b2dd6311
GS
48812002-08-08 Grace Sainsbury <graces@redhat.com>
4882
3c3bea1c
GS
4883 * remote.c (remote_wait, remote_async_wait): Change
4884 thread_num from int to ULONGEST.
4885 (unpack_varlen_hex): Change result parameter from
4886 int * to ULONGEST *.
b2dd6311 4887
ea47855f
AC
48882002-08-08 Andrew Cagney <ac131313@redhat.com>
4889
4890 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4891 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4892 powerpc*-*-*.
4893 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4894
69db8bae
AC
48952002-08-08 Andrew Cagney <cagney@redhat.com>
4896
4897 * gcore.c (override_derive_stack_segment): Delete variable.
4898 (preempt_derive_stack_segment): Delete function.
4899 (derive_stack_segment): Delete function.
4900 (default_derive_stack_segment): Renamed to derive_stack_segment.
4901 (override_derive_heap_segment): Delete variable.
4902 (preempt_derive_heap_segment): Delete function.
4903 (derive_heap_segment): Delete function.
4904 (default_derive_heap_segment): Rename to derive_heap_segment.
4905
cb811fe7
MS
49062002-08-06 Michael Snyder <msnyder@redhat.com>
4907
4908 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4909 * mips-tdep.c (mips_EABI_use_struct_convention,
4910 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4911 New functions. (mips_use_struct_convention): Delete.
4912 (mips_gdbarch_init): set use_gdbarch_convention.
4913
8b389c40
MS
49142002-08-06 Michael Snyder <msnyder@redhat.com>
4915
4916 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4917 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4918 mips_o32_reg_struct_has_addr): New functions.
4919 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4920
5c27f28a
AC
49212002-08-07 Andrew Cagney <ac131313@redhat.com>
4922
4923 * regcache.c (pseudo_register): Delete function.
4924 (fetch_register): Delete function.
4925 (store_register): Delete function.
4926 (regcache_raw_read, legacy_read_register_gen): Use
4927 target_fetch_registers instead of fetch_register.
4928 (legacy_write_register_gen, regcache_raw_write): Use
4929 target_store_register instead of store_register.
4930 (write_register_bytes): Ditto.
4931
4932 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4933 (STORE_PSEUDO_REGISTER): Delete.
4934 * gdbarch.h, gdbarch.c: Regenerate.
4935
5b331675
CV
49362002-08-06 Corinna Vinschen <vinschen@redhat.com>
4937
4938 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4939 write dump file binary.
4940
6acdf5c7
MS
49412002-08-05 Michael Snyder <msnyder@redhat.com>
4942
4943 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4944 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4945 (mips_gdbarch_init): Set N32 target to be mips64.
4946
b2f01c35
KB
49472002-08-06 Kevin Buettner <kevinb@redhat.com>
4948
4949 * frame.c (find_saved_register): Break out of loop once saved
4950 register address is found. Don't mention sparc in loop comment
4951 anymore.
4952
63db5580
KB
49532002-08-06 Kevin Buettner <kevinb@redhat.com>
4954
4955 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4956 mips_default_saved_regsize to 8.
4957
5e34e75e
AC
49582002-08-06 Andrew Cagney <ac131313@redhat.com>
4959
4960 * gcore.c: Do not include <sys/procfs.h>.
4961 * Makefile.in (gcore.o): Update dependencies.
4962
eb4c54a2
AC
49632002-08-06 Andrew Cagney <cagney@redhat.com>
4964
4965 * configure.tgt: Make arc-*-* obsolete.
4966 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4967 * MAINTAINERS: Make arc-elf obsolete.
4968 * arc-tdep.c: Make file obsolete.
4969 * config/arc/arc.mt: Ditto.
4970 * config/arc/tm-arc.h: Ditto.
4971
ced15480
TR
49722002-08-05 Theodore A. Roth <troth@verinet.com>
4973
c1bab85b 4974 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4975
b4743822
AC
49762002-08-05 Andrew Cagney <ac131313@redhat.com>
4977
4978 * mcore-tdep.c (mcore_gdbarch_init): Use
4979 generic_unwind_get_saved_register instead of
4980 generic_get_saved_register.
4981 * v850-tdep.c (v850_gdbarch_init): Ditto.
4982 * frv-tdep.c (frv_gdbarch_init): Ditto.
4983 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4984 * s390-tdep.c (s390_gdbarch_init): Ditto.
4985 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4986 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4987 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4988
3956d554
JB
49892002-08-05 Joel Brobecker <brobecker@gnat.com>
4990
4991 * objfiles.h: Add missing #include "symfile.h"
4992
4993 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4994
8249c0d6
AC
49952002-08-04 Andrew Cagney <ac131313@redhat.com>
4996
4997 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4998 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4999 of FIELD_BITSIZE.
5000
b9d14705
DJ
50012002-08-04 Daniel Jacobowitz <drow@mvista.com>
5002
5003 * NEWS: Cleanup and nitpick.
5004
dd73b9bb
AC
50052002-08-03 Andrew Cagney <ac131313@redhat.com>
5006
5007 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5008
043a27f8
AC
50092002-08-03 Andrew Cagney <ac131313@redhat.com>
5010
5011 * Makefile.in (gdbtk-bp.o): Update dependencies.
5012 (gdbtk-register.o): Ditto.
5013 (gdbtk-varobj.o): Ditto.
5014
46ce284d
AC
50152002-08-03 Andrew Cagney <cagney@redhat.com>
5016
5017 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5018 m68hc11_fetch_pseudo_register.
5019 (m68hc11_pseudo_register_write): Replace
5020 m68hc11_store_pseudo_register.
5021 (m68hc11_gdbarch_init): Update.
5022
b66d6d2e
AC
5023Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5024
5025 * gdbarch.sh: Include "gdb_string.h".
5026 * gdbarch.c: Regenerate.
5027
5028 * regcache.c: Include "gdb_string.h".
5029 * ax-general.c: Ditto.
5030 * varobj.c: Ditto.
5031 * std-regs.c: Ditto.
5032 * fbsd-proc.c: Ditto.
5033 * thread.c: Ditto.
5034
5035 * Makefile.in (regcache.o): Update dependencies.
5036 (thread.o, gdbarch.o): Ditto.
5037 (ax-general.o, gdbarch.o): Ditto.
5038 (varobj.o, std-regs.o): Ditto.
5039 (fbsd-proc.o): Specify dependencies.
5040
29e1842b
AC
50412002-08-02 Andrew Cagney <cagney@redhat.com>
5042
5043 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5044 regnum.
5045 (regcache_cooked_write): Ditto.
5046
68365089
AC
50472002-08-02 Andrew Cagney <ac131313@redhat.com>
5048
5049 * regcache.c (regcache_cooked_read): New function.
5050 (regcache_cooked_write): New function.
5051 (read_register_gen): Rewrite using regcache_cooked_read.
5052 (write_register_gen): Rewrite using regcache_cooked_write.
5053
5054 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5055 Declare.
5056
d8124050
AC
50572002-08-02 Andrew Cagney <cagney@redhat.com>
5058
5059 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5060 Replace the architecture methods register_read and register_write.
5061 * gdbarch.h, gdbarch.c: Regenerate.
5062 * regcache.c (init_regcache_descr): Update.
5063 (read_register_gen): Update.
5064 (write_register_gen): Update.
5065 (supply_register): Update comment.
5066
5067 * sh-tdep.c (sh_gdbarch_init): Update.
5068 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5069 `regcache' and `gdbarch' parameters. Make `buffer' a void
5070 pointer. Update code.
5071 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5072 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5073 void pointer. Update code.
5074 (sh64_register_write): Delete.
5075 (sh4_register_read): Delete.
5076 (sh64_register_read): Delete.
5077 (sh4_register_write): Delete.
5078 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5079 void pointer, `to' parameter a void pointer.
5080 (sh_sh64_register_convert_to_raw): Ditto.
5081
a6425924
KB
50822002-08-01 Kevin Buettner <kevinb@redhat.com>
5083
5084 * mips-tdep.c (mips_register_virtual_type): Use architecture
5085 invariant return values.
5086
ff5922b5
AC
50872002-08-01 Andrew Cagney <cagney@redhat.com>
5088
5089 * linux-proc.c: Include "gdb_string.h".
5090 * Makefile.in (linux-proc.o): Update dependency list.
5091
32a6503c
KB
50922002-08-01 Kevin Buettner <kevinb@redhat.com>
5093
5094 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5095 comment.
5096
ccaa32c7
GS
50972002-08-01 Grace Sainsbury <graces@redhat.com>
5098
5099 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5100 to_insert_watchpoint, to_remove_watchpoint,
5101 to_stopped_by_watchpoint, to_stopped_data_address,
5102 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5103 target vecctor. Define their corresponding macros so they call
5104 them.
5105
5106 * target.c: Add default and debug versions of for
5107 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5108 to_insert_watchpoint, to_remove_watchpoint,
5109 to_stopped_by_watchpoint, to_stopped_data_address,
5110 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5111
78fde5f8
KB
51122002-08-01 Kevin Buettner <kevinb@redhat.com>
5113
5114 * mips-tdep.c (mips_register_virtual_type): New function.
5115 (mips_gdbarch_init): Register mips_register_virtual_type()
5116 with gdbarch machinery.
5117 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5118 this file instead of tm-bigmips.h.
5119 (MIPS_REGSIZE): Delete this macro.
5120 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5121 multiarch version in mips-tdep.c will be found.
5122
db034ac5
AC
51232002-08-01 Andrew Cagney <cagney@redhat.com>
5124
5125 * NEWS: Menion that CHILL has been made obsolete.
5126
5127 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
5128 * stabsread.c (read_range_type): Ditto.
5129 * gdbtypes.h: Ditto.
5130 * language.c (binop_type_check): Ditto.
5131 (binop_result_type): Ditto.
5132 (integral_type): Ditto.
5133 (character_type): Ditto.
5134 (string_type): Ditto.
5135 (boolean_type): Ditto.
5136 (structured_type): Ditto.
5137 (lang_bool_type): Ditto.
5138 (binop_type_check): Ditto.
5139 * language.h (_LANG_chill): Ditto.
5140 * dwarfread.c (set_cu_language): Ditto.
5141 * dwarfread.c (CHILL_PRODUCER): Ditto.
5142 * dwarfread.c (handle_producer): Ditto.
5143 * expression.h (enum exp_opcode): Ditto.
5144 * eval.c: Ditto for comments.
5145 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5146 * expprint.c (print_subexp): Ditto.
5147 (print_subexp): Ditto.
5148 * valops.c (value_cast): Ditto.
5149 (search_struct_field): Ditto.
5150 * value.h (COERCE_VARYING_ARRAY): Ditto.
5151 * symfile.c (init_filename_language_table): Ditto.
5152 (add_psymbol_with_dem_name_to_list): Ditto.
5153 * valarith.c (value_binop): Ditto.
5154 (value_neg): Ditto.
5155 * valops.c (value_slice): Ditto.
5156 * symtab.h (union language_specific): Ditto.
5157 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5158 (SYMBOL_DEMANGLED_NAME): Ditto.
5159 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5160 * defs.h (enum language): Ditto.
5161 * symtab.c (got_symtab): Ditto.
5162 * utils.c (fprintf_symbol_filtered): Ditto.
5163
5164 * ch-typeprint.c: Make file obsolete.
5165 * ch-valprint.c: Make file obsolete.
5166 * ch-lang.h: Make file obsolete.
5167 * ch-exp.c: Make file obsolete.
5168 * ch-lang.c: Make file obsolete.
5169
5170 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5171 CHILL_LIB.
5172 (TARGET_FLAGS_TO_PASS): Ditto.
5173 (CHILLFLAGS): Obsolete.
5174 (CHILL): Obsolete.
5175 (CHILL_FOR_TARGET): Obsolete.
5176 (CHILL_LIB): Obsolete.
5177 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5178 ch-valprint.c.
5179 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5180 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5181 ch-lang.o.
5182 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5183 targets.
5184
8aaf0b47
JB
51852002-07-31 Joel Brobecker <brobecker@gnat.com>
5186
5187 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5188 This does not change anything at the moment, but will be helpful
5189 later when full Ada support is integrated.
5190
f3a7b3a5
KB
51912002-07-31 Kevin Buettner <kevinb@redhat.com>
5192
5193 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5194 help message.
5195
fb850278
KB
51962002-07-31 Kevin Buettner <kevinb@redhat.com>
5197
5198 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5199 and save it in a local variable. Use variable in later test.
5200
e3bddbfa
KB
52012002-07-31 Kevin Buettner <kevinb@redhat.com>
5202
5203 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5204 test. (Thanks to Daniel Jacobowitz.)
5205
28d169de
KB
52062002-07-31 Kevin Buettner <kevinb@redhat.com>
5207
5208 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5209 (mips_abi_strings): Add "n64".
5210 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5211
7fe7e44e
KB
52122002-07-31 Kevin Buettner <kevinb@redhat.com>
5213
5214 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5215 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5216
c6caf090
KB
52172002-07-31 Kevin Buettner <kevinb@redhat.com>
5218
5219 * utils.c (host_pointer_to_address, address_to_host_pointer):
5220 Use gdb_assert() instead of explicit call to internal_error().
5221
c41669e0
KB
52222002-07-30 Kevin Buettner <kevinb@redhat.com>
5223
5224 * Makefile.in (rs6000-nat.o): Update dependencies.
5225
5226 From Nicholas Duffek:
5227 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5228 (aix-thread.o): New rule.
5229 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5230 * config/powerpc/aix432.mh: New file.
5231
2fda4977
DJ
52322002-07-30 Daniel Jacobowitz <drow@mvista.com>
5233
5234 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5235 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5236 (fetch_core_registers, ppc_linux_supply_gregset)
5237 (ppc_linux_supply_fpregset): New functions.
5238 (ppc_linux_regset_core_fns): New.
5239 (_initialize_ppc_linux_tdep): Call add_core_fns.
5240 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5241 and ppc_linux_supply_gregset.
5242 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5243 (supply_fpregset): Call ppc_linux_supply_fpregset.
5244 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5245 corelow.o.
5246 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5247
729051e6
DJ
52482002-07-30 Daniel Jacobowitz <drow@mvista.com>
5249
5250 * symtab.c (lookup_symbol): Demangle before lowercasing.
5251
5f8a3188
AC
52522002-07-30 Andrew Cagney <ac131313@redhat.com>
5253
5254 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5255 declaration.
5256 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5257 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5258 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5259 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5260 "gdb_string.h".
5261 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5262 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5263 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5264 (avr-tdep.o, mon960-rom.o): Ditto.
5265 (aout_stabs_gnu_h): Define.
5266 (symtab_h): Remove $(gdb_obstack_h).
5267
67f07146
JB
52682002-07-30 Jim Blandy <jimb@redhat.com>
5269
5270 Patch from David Carlton <carlton@math.stanford.edu>:
5271 * gdbinit.in: Move the `dir' commands that add GDB's own source
5272 directory to the search path to the end, so that the `gdb' source
5273 directory will be searched first.
5274
04ea0df1
AC
52752002-07-29 Andrew Cagney <ac131313@redhat.com>
5276
5277 * gdb_obstack.h: New file.
5278 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5279 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5280 * objfiles.h: Include "gdb_obstack.h".
5281 * Makefile.in (gdb_obstack_h): Define.
5282 (symtab_h): Add $(gdb_obstack_h).
5283 (objfiles_h): Add $(gdb_obstack_h).
5284
5285 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5286 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5287 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5288 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5289 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5290 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5291 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5292 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5293
5294 * Makefile.in (bcache.o): Update dependencies.
5295 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5296 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5297 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5298 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5299 (stabsread.o, symfile.o, symmisc.o): Ditto.
5300 (symtab.o, typeprint.o, macroexp.o): Ditto.
5301 (macrotab.o, mdebugread.o): Ditto.
5302 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5303 (coff_ecoff_h, aout_aout64_h): Define.
5304 (aout_stabs_gnu_h, libaout_h): Define.
5305
d138e37a
AC
53062002-07-29 Andrew Cagney <cagney@redhat.com>
5307
5308 * regcache.c (struct regcache_descr): Rename nr_registers to
5309 nr_cooked_registers. Revise comments describing the structure
5310 member fields.
5311 (init_regcache_descr): Update.
5312 (init_legacy_regcache_descr): Update.
5313 (read_register_gen, write_register_gen): When a cooked register in
5314 the raw register range, directly access the value from the raw
5315 register cache.
5316
460e6ec3
AC
53172002-07-29 Andrew Cagney <ac131313@redhat.com>
5318
5319 * z8k-tdep.c: Do not include "obstack.h".
5320 * h8300-tdep.c, h8500-tdep.c: Ditto.
5321 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5322 * valprint.c, v850-tdep.c: Ditto.
5323 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5324 * mn10200-tdep.c: Ditto.
5325
5326 * Makefile.in (z8k-tdep.o): Update dependencies.
5327 (m68hc11-tdep.o, valprint.o): Ditto.
5328 (v850-tdep.o, d10v-tdep.o): Ditto.
5329 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5330 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5331 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5332 (sh_opc_h, gdb_sim_sh_h): Define.
5333 (elf_sh_h, elf_bfd_h): Define.
5334 (opcode_m68hc11_h): Define.
5335 (OPCODES_SRC, OPCODES_DIR): define.
5336 (OPCODES): Use $(OPCODES_DIR).
5337 (gdb_sim_d10v_h): Rename sim_d10v_h.
5338 (gdb_sim_arm_h): Rename sim_arm_h.
5339
790c9cf0
KB
53402002-07-26 Kevin Buettner <kevinb@redhat.com>
5341
5342 * utils.c (host_pointer_to_address, address_to_host_pointer):
5343 Change internal_error() message to indicate function responsible
5344 for the error.
5345
9647fa49
KB
53462002-07-26 Kevin Buettner <kevinb@redhat.com>
5347
5348 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5349 calls to local_hex_string_custom().
5350
dabbe2c0
KB
53512002-07-26 Kevin Buettner <kevinb@redhat.com>
5352
5353 * irix5-nat.c: Move IRIX shared library support from here...
5354 * solib-irix.c: ...to here. Revised substantially to work with
5355 generic solib framework.
5356
b96d0a4e
KB
5357 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5358 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5359 * mips-irix-tdep.c: New file.
5360
313fb2f6
KB
5361 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5362 (mips-irix-tdep.o, solib-irix.o): New rules.
5363 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5364 solib-irix.o.
5365 * config/mips/irix6.mt (TDEPFILES): Likewise.
5366 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5367
ab2eaf26
KB
53682002-07-26 Kevin Buettner <kevinb@redhat.com>
5369
177e4768 5370 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5371 disabled (via ``#if 0'') includes.
5372
7244546a
KB
53732002-07-26 Kevin Buettner <kevinb@redhat.com>
5374
5375 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5376 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5377 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5378 Add support for the fpscr register.
5379 * rs6000-nat.c (regmap, fetch_inferior_registers)
5380 (store_inferior_registers, fetch_core_registers): Likewise.
5381
dd7be90a
KB
53822002-07-26 Kevin Buettner <kevinb@redhat.com>
5383
5384 * rs6000-nat.c (language.h): Include.
5385 (special_regs): Delete this array.
5386 (regmap): New function.
5387 (fetch_register, store_register): Use regmap() to map gdb
5388 register numbers to ptrace register numbers. Also, use
5389 outputs from regmap() to make decisions regarding type of
5390 ptrace() call to make. In particular, don't compare against
5391 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5392 (fetch_inferior_registers, store_inferior_registers): Where
5393 possible, obtain register numbers from tdep struct. Don't
5394 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5395 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5396 (LAST_UISA_SP_REGNUM): Delete.
5397
11bf77db
KB
53982002-07-25 Kevin Buettner <kevinb@redhat.com>
5399
5400 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5401 (fetch_registers, store_register, fetch_core_registers): Don't
5402 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5403 regcache_collect() as appropriate.
5404 (find_toc_address): Format hex address with local_hex_string().
5405
06afebeb
AC
54062002-07-25 Andrew Cagney <ac131313@redhat.com>
5407
5408 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5409 bfd/elf32-frv.c.
5410
8c554d79
TT
54112002-07-24 Tom Tromey <tromey@redhat.com>
5412
5413 * jv-exp.y: Marked all strings with _().
5414 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5415 internal_error.
5416 (MethodInvocation, CastExpression, parse_number, yyerror,
5417 java_type_from_name, push_expression_name, yylex): Typo fixes.
5418
e4c242d9
DJ
54192002-07-24 Daniel Jacobowitz <drow@mvista.com>
5420
5421 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5422 (tee_file_flush, tee_file_write, tee_file_fputs)
5423 (tee_file_isatty): New.
5424 * ui-file.h (tee_file_new): Add prototype.
5425
ebf56fd3
AS
54262002-07-24 Aidan Skinner <aidan@velvet.net>
5427
5428 * ada-lang.c: Change k&r style function definitions to prototyped
5429 form.
5430 * ada-typeprint.c: Change k&r style function definitions to prototyped
5431 form.
5432 * ada-valprint.c: Change k&r style function definitions to prototyped
5433 form.
5434
7fb623f7
AC
54352002-07-24 Andrew Cagney <cagney@redhat.com>
5436
5437 * README: Remove reference to remote-bug.
5438 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5439 remote-bug.c.
5440 (m88k-nat.o): Delete rule.
5441 (m88k-tdep.o): Delete rule.
5442 (remote-bug.o): Delete rule.
5443 * MAINTAINERS: Mark as obsolete.
5444 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5445 * m88k-tdep.c: Make file obsolete.
5446 * config/m88k/m88k.mh: Ditto.
5447 * config/m88k/delta88v4.mh: Ditto.
5448 * config/m88k/delta88v4.mt: Ditto.
5449 * config/m88k/delta88.mt: Ditto.
5450 * config/m88k/delta88.mh: Ditto.
5451 * remote-bug.c: Ditto.
5452 * config/m88k/tm-delta88.h: Ditto.
5453 * config/m88k/nm-delta88v4.h: Ditto.
5454 * config/m88k/xm-delta88.h: Ditto.
5455 * config/m88k/xm-dgux.h: Ditto.
5456 * config/m88k/tm-m88k.h: Ditto.
5457 * config/m88k/nm-m88k.h: Ditto.
5458 * config/m88k/tm-delta88v4.h: Ditto.
5459 * m88k-nat.c: Ditto.
5460 * cxux-nat.c: Ditto.
5461 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5462 and m88*-*-* obsolete.
5463 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5464 m88*-*-* obsolete.
5465
37611a2b
AC
54662002-07-24 Andrew Cagney <cagney@redhat.com>
5467
5468 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5469 constant. Same for local pointer variables.
5470 (extract_signed_integer): Ditto.
5471 * defs.h (extract_unsigned_integer): Update.
5472 (extract_signed_integer): Update.
5473
1aaa5f99
AC
54742002-07-24 Andrew Cagney <cagney@redhat.com>
5475
5476 * regcache.c (regcache_raw_write): Change buf parameter to a
5477 constant void pointer.
5478 (regcache_raw_read): Change buf parameter to a void pointer.
5479 (legacy_write_register_gen): Change myaddr parameter a constant
5480 void pointer.
5481 (supply_register): Change val parameter to a const void pointer.
5482 * regcache.h (regcache_raw_write): Update declaration.
5483 (regcache_raw_read): Update declaration.
5484 (supply_register): Update declaration.
5485
b4f5539f
TT
54862002-07-24 Tom Tromey <tromey@redhat.com>
5487
5488 * defs.h (gdb_readline_wrapper): Declare.
5489 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5490 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5491 * top.c (gdb_readline_wrapper): New function.
5492 (command_line_input): Use it.
5493
0818c12a
AC
54942002-07-24 Andrew Cagney <cagney@redhat.com>
5495
5496 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5497 regcache_read and regcache_write.
5498 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5499 * regcache.c: Update.
5500 * sh-tdep.c (sh64_push_arguments): Update comment.
5501 (sh_pseudo_register_read): Update.
5502 (sh_pseudo_register_write): Update.
5503 (sh4_register_read): Update.
5504 (sh4_register_write): Update.
5505 (sh64_pseudo_register_read): Update.
5506 (sh64_pseudo_register_write): Update.
5507 (sh64_register_read): Update.
5508 (sh64_register_write): Update.
5509 * i386-tdep.c (i386_extract_return_value): Update.
5510 (i386_extract_struct_value_address): Update.
5511 (i386_extract_return_value): Update.
5512 * blockframe.c (generic_read_register_dummy): Update.
5513 (generic_call_dummy_register_unwind): Update
5514 * infrun.c (write_inferior_status_register): Update.
5515
f7321c06
JB
55162002-07-23 Jim Blandy <jimb@redhat.com>
5517
5518 * parser-defs.h (expression_context_pc): Make this extern.
5519 (Thanks to Michael Snyder.)
5520
2037aebb
AC
55212002-07-23 Andrew Cagney <ac131313@redhat.com>
5522
5523 GDB 5.2.1 released from 5.2 branch.
5524 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5525 * README: Update to mention 5.2.1.
5526
66504d44
MS
55272002-07-23 Mark Salter <msalter@redhat.com>
5528
5529 * remote.c (remote_read_bytes): Fix check for error.
5530
27bae383
KB
55312002-07-22 Kevin Buettner <kevinb@redhat.com>
5532
5533 * aix-thread.c (language.h): Include.
5534 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5535 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5536 Print newlines at end of debug messages.
5537 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5538 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5539
55402002-07-22 Kevin Buettner <kevinb@redhat.com>
5541
5542 * aix-thread.c (ppc-tdep.h): Include.
5543 (special_register_p): New function.
5544 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5545 (store_regs_user_thread): Use register number information from
5546 gdbarch_tdep struct instead of hardcoded offsets relative to
5547 FIRST_UISA_SP_REGNUM.
5548 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5549 special_register_p() instead of using FPLAST_REGNUM and
5550 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5551 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5552 will be MQ's register number.
5553
55542002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5555
5556 * aix-thread.c (ops): Rename to aix_thread_ops.
5557 (base_ops): Rename to base_target.
5558 (ops_attach): Rename to aix_thread_attach.
5559 (ops_detach): Rename to aix_thread_detach.
5560 (ops_resume): Rename to aix_thread_detach.
5561 (ops_wait): Rename to aix_thread_wait.
5562 (ops_kill): Rename to aix_thread_kill.
5563 (init_ops): Rename to init_aix_thread_ops.
5564 (ops_fetch_register): Rename to aix_thread_fetch_register.
5565 (ops_store_register): Rename to aix_thread_store_register.
5566 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5567 (ops_thread_alive): Rename to aix_thread_thread_alive.
5568 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5569 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5570 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5571 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5572 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5573 (store_regs_lib): Rename to store_regs_user_thread.
5574 (store_regs_kern): Rename to store_regs_kernel_thread.
5575
27bae383 55762002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5577
5578 * aix-thread.c (ops_prepare_to_store): Eliminate.
5579 (init_ops): Don't initialize ops.prepare_to_store.
5580 (store_regs_kern): Pre-fetch register buffers from child,
5581 because some registers may not be in the cache. Copy
5582 regs from register cache only if they are cached.
5583 (store_regs_lib): Copy regs from register cache only
5584 if they are cached.
5585 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5586 fill_gprs64): Ditto.
5587
61c5da0b
KB
55882002-07-22 Kevin Buettner <kevinb@redhat.com>
5589
5590 * aix-thread.c (gdb_assert.h): Include.
5591 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5592 register sizes (from register cache) match size of buffer holding
5593 register data.
5594 (fill_sprs32): Change parameter types to match those in the ptrace()
5595 buffer.
5596 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5597 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5598
55992002-07-22 Michael Snyder <msnyder@redhat.com>
5600
5601 * aix-thread.c (supply_sprs64): Cosmetic change.
5602 (supply_sprs32): Cosmetic change.
5603 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5604 (fill_sprs64): Use regcache_collect instead of read_register.
5605 (store_regs_lib): Use regcache_collect instead of
5606 read_register. Use fill_sprs32 instead of fill_sprs64,
5607 if debugging a 32-bit architecture.
5608 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5609 out of the register cache, instead of passing a pointer into
5610 the register cache directly to ptrace. Use regcache_collect
5611 insteaad of read_register.
5612 (ops_prepare_to_store): Use target_read_registers instead
5613 of read_register_bytes.
5614
36479eb1
AS
56152002-07-20 Aidan Skinner <aidan@velvet.net>
5616
5617 * MAINTAINERS: Add self under write after approval.
5618
80ae6ee2
AS
56192002-07-20 Aidan Skinner <aidan@velvet.net>
5620
5621 * ada-tasks.c: Change k&r style function definitions to prototyped
5622 form.
5623
8a8ab2b9
AC
56242002-07-19 Andrew Cagney <ac131313@redhat.com>
5625
5626 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5627 * x86-64-tdep.c: Include "objfiles.h".
5628 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5629 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5630
fb16b900
ML
56312002-07-17 Michal Ludvig <michal@suse.cz>
5632
5633 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5634 (update_context): Initialise cfa variable.
5635
0fe7bf7b
MS
56362002-07-17 Michael Snyder <msnyder@redhat.com>
5637
5638 * aix-thread.c: Shorten some long lines.
5639 Bring comments into line with code spec.
5640
488f131b
JB
56412002-07-18 Joel Brobecker <brobecker@gnat.com>
5642
5643 * infrun.c: Re-indent using gdb_indent.sh.
5644
46c415d2
JB
56452002-07-18 Joel Brobecker <brobecker@gnat.com>
5646
5647 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5648 Leave the indentation temporarily untouched, to minimize the diffs.
5649
cdecafbe
EZ
56502002-07-18 Elena Zannoni <ezannoni@redhat.com>
5651
5652 * stabsread.c: Make os9k sections of the code obsolete,
5653 for real this time.
5654 * stabsread.h: Make os9k sections of the code obsolete.
5655
7b6aa020
ML
56562002-07-18 Michal Ludvig <mludvig@suse.cz>
5657
09ec9b38
ML
5658 * linux-low.c (regsets_store_inferior_registers): Add free()
5659 at the end of a loop to prevent memory leak.
5660 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5661 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5662 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5663 line a comment.
4894ac5d 5664 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5665
233282cd
JB
56662002-07-17 Jim Blandy <jimb@redhat.com>
5667
5668 * macrocmd.c (info_macro_command): Remove newline from error
5669 message.
5670
7b6aa020 56712002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5672
5673 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5674 (sh_gdbarch_init): Use it for sh-dsp.
5675
f7ef9339
KB
56762002-07-16 Kevin Buettner <kevinb@redhat.com>
5677
5678 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5679 64-bit DWARF2 format.
5680
8dd72958
JB
56812002-07-16 Joel Brobecker <brobecker@gnat.com>
5682
5683 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5684 <sys/proc.h> when not available.
5685
a99a9e1b
AC
56862002-07-16 Andrew Cagney <ac131313@redhat.com>
5687
5688 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5689 * stabsread.c: Make os9k sections of the code obsolete.
5690 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5691 * config/i386/i386os9k.mt: Make file obsolete.
5692 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5693 (COMMON_OBS): Remove os9kread.o
5694 (SFILES): Remove os9kread.c.
5695 (os9kread.o, remote-os9k.o): Make target obsolete.
5696 * remote-os9k.c: Make file obsolete.
5697 * os9kread.c: Make file obsolete.
5698 * Makefile.in
5699
7a3085c1
AC
57002002-07-16 Andrew Cagney <ac131313@redhat.com>
5701
5702 * NEWS: Mention that the FR30 has been made obsolete.
5703 * fr30-tdep.c: Make file obsolete.
5704 * config/fr30/tm-fr30.h: Ditto.
5705 * config/fr30/fr30.mt: Ditto.
5706 * configure.tgt: Make fr30-*-elf obsolete.
5707 * MAINTAINERS: Make fr30-elf obsolete.
5708
28a93f5a
PM
57092002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5710
5711 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5712 found is not inside a section.
5713
be006b8b
KB
57142002-07-15 Kevin Buettner <kevinb@redhat.com>
5715
5716 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5717 strerror().
5718 (pdc_realloc): Use xrealloc() instead of realloc().
5719
14fa3751
KB
57202002-07-15 Kevin Buettner <kevinb@redhat.com>
5721
5722 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5723 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5724 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5725 macros.
5726
42cc437f
KB
57272002-07-15 Kevin Buettner <kevinb@redhat.com>
5728
5729 * aix-thread.c (ptrace_check): Eliminate goto.
5730 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5731 problem.
5732
8e2c28d4
KB
57332002-07-15 Kevin Buettner <kevinb@redhat.com>
5734
5735 * aix-thread.c (gdbcmd.h): Include.
5736 (DEBUG, DBG, DBG2, dbg): Eliminate.
5737 (debug_aix_thread): New static global.
5738 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5739 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5740 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5741 invocations to DBG and DBG2 macros to test against
5742 ``debug_aix_thread'' and call fprintf_unfiltered().
5743 (_initialize_aix_thread): Add new command "set debug aix-thread".
5744
30413464
AC
57452002-07-15 Andrew Cagney <ac131313@redhat.com>
5746
5747 From Gerhard Tonn <TON@de.ibm.com>:
5748 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5749 instead of supply_register.
5750
7c43edc1
AC
57512002-07-15 Andrew Cagney <ac131313@redhat.com>
5752
5753 * dwarf2cfi.c: Include "gdb_assert.h".
5754 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5755 non-NULL.
5756 (update_context): Do not use __func__. Add missing ``break''.
5757 (update_context): Do not use __func__.
5758
9364a0ef
EZ
57592002-07-15 Elena Zannoni <ezannoni@redhat.com>
5760
5761 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5762 and its setting. Set gdbarch instruction printing functions
5763 directly. For non-rs6000 case use new function
5764 gdb_print_insn_powerpc.
5765 (gdb_print_insn_powerpc): New function.
5766
3fbeef0b
AC
57672002-07-13 Andrew Cagney <ac131313@redhat.com>
5768
92eb23c5 5769 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5770 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5771 * configure.tgt: Mark d30v-*-* as obsolete.
5772 * d30v-tdep.c: Mark file as obsolete.
5773 * config/d30v/d30v.mt: Ditto.
5774 * config/d30v/tm-d30v.h: Ditto.
5775
aacb1f0a
AS
57762002-07-13 Aidan Skinner <aidan@velvet.net>
5777
5778 * ada-tasks.c (add_task_entry): replace calls to
5779 malloc() with xmalloc
5780 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5781
5782 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5783 ada_finish_decode_line_1, all_sals_for_line
5784 ada_breakpoint_rewrite): replace calls to free() with xfree()
5785
c11d79f2
KB
57862002-07-12 Kevin Buettner <kevinb@redhat.com>
5787
5788 From Nicholas Duffek (with minor changes by Martin Hunt,
5789 Louis Hamilton, and Kevin Buettner):
5790 * aix-thread.c: New file.
5791
8e19ed76
PS
57922002-07-12 Petr Sorfa <petrs@caldera.com>
5793
5794 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5795 complaint for invalid attribute class or form.
5796 (read_func_scope): DW_AT_frame_base
5797 better handling of DW_AT_block*.
5798 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5799 better handling of DW_AT_block*.
5800 (read_common_block): DW_AT_location
5801 better handling of DW_AT_block*.
5802 (read_partial_die): DW_AT_location better handling
5803 of DW_AT_block*.
5804 (new_symbol): DW_AT_external better handling of
5805 DW_AT_block*. Proper initialization of variable
5806 "addr".
5807 (attr_form_is_block): New function that returns true
5808 if the attribute's form is of DW_FORM_block*.
5809
295401f7
DJ
58102002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5811
5812 * valops.c (find_method_list): Remove comment about
5813 removed STATIC_MEMFUNCP argument.
5814 (value_find_oload_method_list): Likewise.
5815
e42dc924
KB
58162002-07-12 Kevin Buettner <kevinb@redhat.com>
5817
5818 From Nicholas Duffek:
5819 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5820 target_new_objfile_hook.
5821
6904b546
KB
58222002-07-12 Kevin Buettner <kevinb@redhat.com>
5823
5824 From Nicholas Duffek:
5825 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5826 csect.
5827
53fe9346
AC
58282002-07-12 Andrew Cagney <cagney@redhat.com>
5829
5830 * MAINTAINERS: Mention --enable-sim-build-warnings.
5831 (m68hc11-elf): Disable sim build warnings.
5832 (m32r-elf): Mark as broken obsolete candidate.
5833 (x86_64-linux-gnu): Mark as buildable with -Werror.
5834 (arm-elf): Change -w to ``,'' which enables warnings but not
5835 -Werror.
5836
af5f3db6
AC
58372002-07-12 Andrew Cagney <ac131313@redhat.com>
5838
5839 * bcache.h: Update copyright.
5840 (struct bstring, struct bcache): Move definition to "bcache.c".
5841 Replaced by opaque declaration.
5842 (bcache_xfree): Replace free_bcache.
5843 (bcache_xmalloc, bcache_memory_used): Declare.
5844
5845 * bcache.c: Update copyright.
5846 (struct bstring, struct bcache): Moved to here from "bcache.h".
5847 Update comments.
5848 (bcache_xmalloc, bcache_memory_used): New functions.
5849 (bcache_xfree): Replace function free_bcache.
5850
5851 * Makefile.in (objfiles.o): Add $(bcache_h).
5852 (objfiles_h): Remove $(bcache_h).
5853 (symfile.o): Add $(bcache_h).
5854
5855 * symmisc.c: Update copyright.
5856 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5857 (print_objfile_statistics): Use bcache_memory_used.
5858
5859 * symfile.c: Include "bcache.h".
5860 (reread_symbols): Use bcache_xfree.
5861 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5862 (add_psymbol_to_list): Pass psymbol_cache by value.
5863 (add_psymbol_with_dem_name_to_list): Ditto.
5864
5865 * objfiles.h: Update copyright.
5866 (struct bcache): Declare opaque. Do not include "bcache.h".
5867 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5868 bcache'' pointers.
5869 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5870
5871 * objfiles.c: Include "bcache.h". Update copyright.
5872 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5873 macro_cache.
5874 (free_objfile): Use bcache_xfree.
5875
444199e7
GS
58762002-07-11 Grace Sainsbury <graces@redhat.com>
5877
5878 * monitor.c (monitor_fetch_register): Make name a constant.
5879 (monitor_store_register): Same.
5880
261397f8
DJ
58812002-07-11 Daniel Jacobowitz <drow@mvista.com>
5882
5883 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5884 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5885 (finish_block) For non-function blocks, hash the symbol table. For
5886 function blocks, mark the symbol table as unhashed.
5887 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5888 (msymbol_hash_iw): Likewise.
5889 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5890 value.
5891 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5892 (lookup_minimal_symbol): Likewise for both.
5893 * symtab.h (struct block): Add `hashtable' flag. Comment the
5894 hashtable.
5895 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5896 (ALL_BLOCK_SYMBOLS): Update.
5897 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5898 (struct symbol): Add `hash_next' pointer.
5899 * symtab.c (lookup_block_symbol): Search using the hash table when
5900 possible.
5901 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5902 (search_symbols, find_addr_symbol): Likewise.
5903
5904 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5905 (read_dst_symtab): Likewise.
5906 * jv-lang.c (get_java_class_symtab): Likewise.
5907 * mdebugread.c: Include "gdb_assert.h".
5908 (shrink_block): Assert that the block being modified is not hashed.
5909 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5910 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5911 symbols.
5912 (dump_symtab): Recognize hashed blocks.
5913 * printcmd.c (print_frame_args): Assert that function blocks do not
5914 have hashed symbol tables.
5915 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5916 (fill_in_ada_prototype, debug_print_block): Likewise.
5917 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5918
6f0eaa01
CV
59192002-07-11 Corinna Vinschen <vinschen@redhat.com>
5920
5921 * stack.c (print_frame): Use result of frame_address_in_block()
5922 instead of fi->pc when evaluating symbols.
5923 (backtrace_command_1): Ditto.
5924
a208b0cb
AC
59252002-07-11 Andrew Cagney <cagney@redhat.com>
5926
5927 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5928 Make static.
5929
5930 * arm-tdep.c (arm_register_name): Make return type constant.
5931
a6b6b089
AC
59322002-07-10 Andrew Cagney <ac131313@redhat.com>
5933
5ae5f592
AC
5934 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5935 prototype.
5936 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5937 * s390-tdep.c (s390_fp_regnum): Ditto.
5938 (s390_read_fp): Ditto.
5939 (s390_pop_frame): Ditto.
5940 (_initialize_s390_tdep): Ditto.
5941 * remote.c (get_remote_state): Ditto.
5942 * procfs.c (mappingflags): Ditto.
5943 * memattr.c (_initialize_mem): Ditto.
5944 * mcore-tdep.c (mcore_pop_frame): Ditto.
5945 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5946 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5947 * language.c (set_case_str): Ditto.
5948 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5949 * frv-tdep.c (new_variant): Ditto.
5950 (frv_stopped_data_address): Ditto.
5951 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5952 (context_alloc): Ditto.
5953 (frame_state_alloc): Ditto.
5954 (unwind_tmp_obstack_init): Ditto.
5955 (unwind_tmp_obstack_free): Ditto.
5956 (cfi_read_fp): Ditto.
5957 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5958 (cris_pop_frame): Ditto.
5959 * c-lang.c (scanning_macro_expansion): Ditto.
5960 (finished_macro_expansion): Ditto.
5961 (c_preprocess_and_parse): Ditto.
5962 * gdbarch.sh: Ditto.
5963 * gdbarch.h, gdbarch.c: Regenerate.
5964 * config/mn10200/tm-mn10200.h: Adjust indentation.
5965 * target.c: Adjust indentation.
5966 * symtab.h: Adjust indentation.
5967 * stabsread.h: Adjust indentation.
5968 * remote-es.c: Adjust indentation.
5969 * os9kread.c: Adjust indentation.
5970
59712002-07-10 Andrew Cagney <ac131313@redhat.com>
5972
a6b6b089
AC
5973 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5974 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5975
a1789893
GS
59762002-07-10 Grace Sainsbury <graces@redhat.com>
5977
5978 * NEWS: Mention m68k, mcore multi-arching.
5979 * MAINTAINERS: Change status of m68k, mcore to reflect
5980 multi-arching.
5981
02f0d45d
DJ
59822002-07-10 Daniel Jacobowitz <drow@mvista.com>
5983
5984 * valops.c (find_overload_match): Free oload_syms.
5985
f15f768e
JB
59862002-07-09 Joel Brobecker <brobecker@gnat.com>
5987
5988 Define HAVE_SYS_PROC_H if sys/proc.h exists
5989 * configure.in: Add check for sys/proc.h
5990 * config.in: Regenerate.
5991 * configure: Regenerate.
5992
902a7139
GS
59932002-07-09 Grace Sainsbury <graces@redhat.com>
5994
5995 * config/m68k/tm-m68k.h: Remove macros wrapped in
5996 #if !GDB_MULTI_ARCH.
5997
a534e424
AC
59982002-07-08 Andrew Cagney <ac131313@redhat.com>
5999
6000 * config.in, configure: Regenerate.
6001
9b94f7bf
MK
60022002-07-08 Mark Kettenis <kettenis@gnu.org>
6003
6004 * dwarf2cfi.c: Include "gcore.h".
6005 (execute_stack_op): Fix implementation of the
6006 DW_OP_deref and DW_OP_deref_size operators by letting do their
6007 lookup in the target.
6008
1d34db41
MK
60092002-07-07 Mark Kettenis <kettenis@gnu.org>
6010
6011 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6012 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6013 tdep->sc_sp_offset.
6014
79d5b63a
DJ
60152002-07-05 Daniel Jacobowitz <drow@mvista.com>
6016
6017 Fix PR gdb/595, gdb/602
6018 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6019 Don't call value_cast, just read the vtable pointer; update comments
6020 to match.
6021
3bb912e8
GS
60222002-07-05 Grace Sainsbury <graces@redhat.com>
6023
6024 * config/mcore/tm-mcore.h: Remove file.
6025 * config/mcore/mcore.mt: Remove definition of TM_FILE
6026 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6027
ca39387d
MK
60282002-07-05 Mark Kettenis <kettenis@gnu.org>
6029
6030 * i386bsd-tdep.c: Include "gdb_string.h".
6031
efdc1108
GS
60322002-07-04 Grace Sainsbury <graces@redhat.com>
6033
6034 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6035 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6036 mcore-tdep.
6037 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6038 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6039 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6040 (RETVAL_REGNUM): Move macros from tm-mcore.h
6041 (mcore_reg_struct_has_addr): New function.
6042 (mcore_gdbarch_init): Added initializations for the macros removed
6043 from tm-mcore.h.
6044
bb21884d
MK
60452002-07-04 Mark Kettenis <kettenis@gnu.org>
6046
6047 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6048 traditonal string branding within the ELF header.
6049
228c6d41
DJ
60502002-07-04 Daniel Jacobowitz <drow@mvista.com>
6051
6052 * symtab.c (remove_params): New function.
6053 (make_symbol_overload_list): Use it instead of cplus_demangle.
6054 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6055
2404952e
MK
60562002-07-04 Mark Kettenis <kettenis@gnu.org>
6057
e5e4acad
MK
6058 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6059
baadce09
MK
6060 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6061 New variables.
6062 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6063 and tdep->sigtramp_end.
6064 * i386obsd-nat.c: New file.
6065 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6066
2404952e
MK
6067 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6068 Don't call get_current_frame().
6069
9b4f1ba7
PM
60702002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6071
6072 * i386-nat.c (child_post_startup_inferior): New function
6073 calling i386_cleanup_dregs if
6074 I386_USE_GENERIC_WATCHPOINTS is defined.
6075 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6076 conditional to acknowledge that i386-nat.c has its
6077 own child_post_startup_inferior function.
6078
c0d1d883
MK
60792002-07-04 Mark Kettenis <kettenis@gnu.org>
6080
00f8375e
MK
6081 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6082 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6083 instead of MAX_REGISTER_RAW_SIZE.
6084 (i386_extract_return_value, i386_extract_struct_value_address):
6085 Convert to use regcache.
6086 (i386_gdbarch_init): Set max_register_raw_size and
6087 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6088 Set extract_return_value and extract_struct_value_address instead
6089 of their deprecated variants.
6090
c0d1d883
MK
6091 Convert i386 target to generic dummy frames.
6092 * i386-tdep.c: Include "symfile.h".
6093 (i386_frameless_signal_p): Consider a function to be frameless if
6094 the pc points at the first instruction of the function.
6095 (i386_frame_chain): Handle (generic) call dummies.
6096 (i386_frame_saved_pc): Likewise.
6097 (i386_frame_init_saved_regs): Remove code dealing with call
6098 dummies on the stack.
6099 (i386_push_dummy_frame): Removed.
6100 (i386_call_dummy_words): Removed.
6101 (i386_fix_call_dummy): Removed.
6102 (i386_push_return_address): New function.
6103 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6104 parameter, and don't call get_current_frame.
6105 (i386_pop_frame): New function.
6106 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6107 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6108 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6109 call_dummy_length to 0, set call_dummy_words to NULL, set
6110 sizeof_call_dummy_words to 0, set fix_call_dummy to
6111 generic_fix_call_dummy, set pc_in_call_dummy to
6112 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6113 generic_push_dummy_frame, set push_return_address to
6114 i386_push_return_address and set frame_chain_valid to
6115 generic_file_frame_chain_valid.
6116
049ee0e4
AC
61172002-07-03 Andrew Cagney <ac131313@redhat.com>
6118
6119 * gdbarch.sh (struct regcache): Add opaque declaration.
6120 (EXTRACT_RETURN_VALUE): New architecture method.
6121 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6122 * gdbarch.h, gdbarch.c: Regenerate.
6123 * arch-utils.c (legacy_extract_return_value): New function.
6124 * arch-utils.h (legacy_extract_return_value): Declare.
6125 * values.c (value_being_returned): Re-enable code handling
6126 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6127 deprecated_grub_regcache_for_registers call to block handling
6128 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6129 (EXTRACT_RETURN_VALUE): Do not define.
6130
4e0d9804
GS
61312002-07-03 Grace Sainsbury <graces@redhat.com>
6132
6133 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6134 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6135 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6136 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6137 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6138 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6139 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6140 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6141 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6142 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6143 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6144 argument so the function fits the prototype in the architecture
6145 vector.
6146 (mcore_pop_frame): Remove argument so the function fits the
6147 prototype. Use get_current_frame instead of the argument.
6148 (mcore_push_arguments): Change type of struct_return so the
6149 function can be used in the architecture vector.
6150 (mcore_store_struct_return): Add.
6151 (mcore_frame_init_saved_regs): Add.
6152 (mcore_gdbarch_init): Add function calls to replace the macros
6153 removed from tm-mcore.h
6154
36160dc4
AC
61552002-07-03 Andrew Cagney <ac131313@redhat.com>
6156
6157 * infcmd.c (print_return_value): Remove compatibility code calling
6158 deprecated_grub_regcache_for_registers.
6159
6160 * values.c: Include "regcache.h".
6161 (value_being_returned): Update. Use
6162 deprecated_grub_regcache_for_registers to extract the register
6163 buffer address.
6164 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6165 ``struct regcache''.
6166 * Makefile.in (values.o): Add dependency on $(regcache_h).
6167
6168 * inferior.h (run_stack_dummy): Change type of second parameter to
6169 a ``struct regcache''.
6170 * valops.c (hand_function_call): Change type of retbuf to ``struct
6171 regcache''. Allocate using regcache_xmalloc, clean using
6172 make_cleanup_regcache_xfree.
6173 * infcmd.c (run_stack_dummy): Update. Use
6174 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6175
6176 * regcache.c (do_regcache_xfree): New function.
6177 (make_cleanup_regcache_xfree): New function.
6178 * regcache.h (make_cleanup_regcache_xfree): Declare.
6179
e64d9b3d
MH
61802002-07-03 Martin M. Hunt <hunt@redhat.com>
6181
4dd79c29
MH
6182 * event-top.c (command_line_handler): Don't read past
6183 beginning of buffer.
e64d9b3d 6184
4dd79c29
MH
61852002-07-03 Martin M. Hunt <hunt@redhat.com>
6186
e64d9b3d
MH
6187 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6188 struct frame_id.
6189 (varobj_create): Store frame_id for root.
6190 (varobj_gen_name): Use xasprintf.
6191 (varobj_update): Save and restore frame using get_frame_id() and
6192 frame_find_by_id().
6193 (create_child): Use xasprintf.
6194 (new_root_variable): Initialize frame_id.
6195 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6196 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6197 to prevent memory leak.
6198
26e6c56a
AC
61992002-07-03 Andrew Cagney <ac131313@redhat.com>
6200
6201 * valops.c (hand_function_call): Move declaration of retbuf to
6202 start of function, allocate using malloc, add a cleanup but before
6203 the inf_status cleanup, cleanup the buffer. Rename local variable
6204 old_chain to inf_status_cleanup.
6205
f436dd25
MH
62062002-07-03 Martin M. Hunt <hunt@redhat.com>
6207
6208 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6209
6210 * cli/cli-decode.c (cmd_func_p): New function.
6211 (cmd_func): New function.
6212
6213 * command.h: Add cmd_func() and cmd_func_p().
6214
4cfe2084
GS
62152002-07-03 Grace Sainsbury <graces@redhat.com>
6216
6217 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6218 (REGISTER_SIZE): Remove.
6219 (MAX_REGISTER_RAW_SIZE): Remove.
6220 (REGISTER_VIRTUAL_TYPE): Remove.
6221 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6222 (REGISTER_NAME): Remove.
6223 (USE_GENERIC_DUMMY_FRAMES): Remove.
6224 (CALL_DUMMY): Remove.
6225 (CALL_DUMMY_START_OFFSET): Remove.
6226 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6227 (CALL_DUMMY_LOCATION): Remove.
6228 (FIX_CALL_DUMMY): Remove.
6229 (CALL_DUMMY_ADDRESS): Remove.
6230 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6231 (SAVE_DUMMY_FRAME_TOS): Remove.
6232 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6233 (mcore_register_virtual_type): New function.
6234 (mcore_register_byte): New function.
6235 (mcore_register_size): New function.
6236 (mcore_register_name): New function.
6237 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6238 macros removed from tm-mcore.h.
6239 (mcore_dump_tdep): Add.
6240 (_initialize_mcore_tdep): Add gdbarch_register call.
6241
4fd667e9
MK
62422002-07-03 Mark Kettenis <kettenis@gnu.org>
6243
6244 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6245 frameless_look_for_prologue, such that we actually call this
6246 function.
6247
42f99ac2
JB
62482002-07-02 Joel Brobecker <brobecker@gnat.com>
6249
6250 * frame.h (frame_address_in_block): New function.
6251
6252 * blockframe.c (frame_address_in_block): New function extracted
6253 from get_frame_block().
6254 (get_frame_block): Use frame_address_in_block().
6255 (block_innermost_frame): Use frame_address_in_block() to match
6256 the frame pc address against the block boundaries rather than
6257 the frame pc directly. This prevents a failure when a frame pc
6258 is actually a return-address pointing immediately after the end
6259 of the given block.
6260
103a1597 62612002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
6262
6263 * MAINTAINERS: Add self under write after approval.
6264
62652002-07-02 Grace Sainsbury <graces@redhat.com>
6266
103a1597
GS
6267 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6268 used in architecture vector. The default is
6269 m68k_local_breakpoint_from_pc.
6270 (m68k_local_breakpoint_from_pc): Add.
6271 (enum): Add register numbers from tm-m68k.h.
6272 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6273 vector.
6274 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6275 GDB_MULTI_ARCH_PARTIAL.
6276 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6277 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6278 m68k-tdep.c.
6279 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6280 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6281 to enum in m68k-tdep.c
6282
7a5a0534
JB
62832002-07-02 Joel Brobecker <brobecker@gnat.com>
6284
6285 * solib-osf.c (open_map): Compute the list of shared libraries
6286 loaded by the inferior, rather than the list of libraries loaded
6287 by GDB itself. Otherwise, GDB ends up reading the symbols from
6288 the wrong shared libraries...
6289
6f558d74
MK
62902002-07-02 Mark Kettenis <kettenis@gnu.org>
6291
b7d15bf7
MK
6292 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6293 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6294 macros.
6295 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6296 Remove functions.
6297 (FRAMELESS_SIGNAL): Remove function.
6298 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6299 i386_linux_saved_pc_after_call): Removed.
6300 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6301 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6302 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6303
6bff26de
MK
6304 * i386-tdep.c (i386_frameless_signal_p): New function.
6305 (i386_frame_chain): Deal with frameless signals.
6306 (i386_sigtramp_saved_sp): New function.
6307 (i386_frame_saved_pc): Deal with frameless signals.
6308 (i386_saved_pc_after_call): Make sure the correct value is
6309 returned just after entry into a sigtramp.
6310 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6311 i386fbsd4_sc_sp_offset): New variables.
6312 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6313 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6314 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6315 similiar to what we already did for sc_pc_offset.
6316 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6317 tdep->sc_sp_offset.
6318
6f558d74
MK
6319 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6320
145564b7
ML
63212002-07-02 Michal Ludvig <mludvig@suse.cz>
6322
6323 * config/i386/tm-x86-64linux.h: New.
6324 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6325 definitions.
6326 * config/i386/nm-x86-64.h: Rename to ...
6327 * config/i386/nm-x86-64linux.h: ... this one.
6328 * config/i386/x86-64linux.mh: Reflect the above change.
6329
3a1e71e3
MK
63302002-07-01 Mark Kettenis <kettenis@gnu.org>
6331
21d0e8a4
MK
6332 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6333 with sigcontext_addr. Add sc_sp_offset.
6334 (i386bsd_sigtramp_saved_pc): Remove prototype.
6335 (i386bsd_sicontext_addr): Add prototype.
6336 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6337 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6338 (i386_svr4_sigtramp_saved_pc): Removed.
6339 (i386_svr4_sigcontext_addr): New function.
6340 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6341 Initialize tdep->sigcontext_addr instead. Initialize
6342 tdep->sc_pc_offset and tdep->sc_sp_offset.
6343 (i386_gdbarch_init): Likewise.
6344 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6345 any more.
6346 (i386bsd_sigtramp_saved_pc): Remove function.
6347 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6348 Initialize tdep->sigcontext_addr instead. Initialize
6349 tdep->sc_pc_offset.
6350 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6351 of tdep->sigtramp_saved_pc.
6352 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6353 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6354 instead.
6355
3a1e71e3
MK
6356 * i386-tdep.c (i386_frameless_function_invocation,
6357 i386_frame_num_args, i386_frame_init_saved_regs,
6358 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6359 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6360 i386_extract_return_value, i386_store_return_value,
6361 i386_extract_struct_value_address, i386_register_virtual_type,
6362 i386_register_convertible, i386_register_convert_to_virtual,
6363 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6364 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6365 static.
6366
52e9098c
MK
63672002-07-01 Mark Kettenis <kettenis@gnu.org>
6368
77b13a25
MK
6369 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6370
52e9098c
MK
6371 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6372 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6373 this macro. Include "value.h".
6374
1b372fff
AS
63752002-06-30 Aidan Skinner <aidan@velvet.net>
6376
6377 * ada-exp.tab.c: remove as it's a generated file
6378 * ada-lex.c: remove as it's a generated file
6379
9c5045b5
MK
63802002-06-30 Mark Kettenis <kettenis@gnu.org>
6381
4a93c5bb
MK
6382 * config/i386/tm-i386.h (struct frame_info, struct
6383 frame_saved_regs, struct value, struct type): Remove forward
6384 declarations.
6385
322d4fe0
MK
6386 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6387 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6388 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6389 (FILL_FPXREGSET): Define.
6390
fdd8263d
MK
6391 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6392
482e577b
MK
6393 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6394 i[3456]86-*-netbsd* case.
6395 * config/i386/tm-obsd.h: Removed.
6396 * config/i386/obsd.mt: Removed.
6397 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6398 core-aout.o.
6399 (MH_CFLAGS): Add -DYYDEBUG=0.
6400
6916549a
MK
6401 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6402 i386nbsd_sc_pc_offset on OpenBSD too.
6403
9c5045b5
MK
6404 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6405 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6406 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6407 define.
6408 * i386bsd-tdep.c: Include "arch-utils.h".
6409 (i386bsd_aout_in_solib_call_trampoline): New function.
6410 (i386bsd_init_abi): Set in_solib_call_trampoline to
6411 i386bsd_aout_in_solib_call_trampoline.
6412 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6413 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6414
aa84d1bb
AC
64152002-06-28 Andrew Cagney <ac131313@redhat.com>
6416
6417 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6418 (struct obstack, struct bcache): Add opaque declarations.
6419 * Makefile.in (macrotab_h): Update
6420
b4d83933
AC
64212002-06-28 Andrew Cagney <ac131313@redhat.com>
6422
6423 * blockframe.c (generic_find_dummy_frame): Change return type to
6424 ``struct regcache''.
6425 (struct dummy_frame): Replace field ``registers'' with regcache, a
6426 struct regcache object.
6427 (generic_find_dummy_frame): Update.
6428 (generic_push_dummy_frame): Update. Use regcache_xfree,
6429 regcache_xmalloc and regcache_cpy.
6430 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6431 regcache_xfree.
6432 (deprecated_generic_find_dummy_frame): Update.
6433 (generic_read_register_dummy): Update. Use
6434 regcache_read_as_address.
6435 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6436 (generic_get_saved_register): Update. Use regcache_read.
6437
08c0b5bc
AC
64382002-06-28 Andrew Cagney <ac131313@redhat.com>
6439
6440 * Makefile.in (objfiles_h): Add $(bcache_h).
6441 * objfiles.h: Include "bcache.h".
6442
6443 * Makefile.in (symtab_h): Remove $(bcache_h).
6444 * symtab.h: Do not include "bcache.h".
6445
1f89801a
AC
64462002-06-28 Andrew Cagney <ac131313@redhat.com>
6447
6448 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6449 generic_func_frame_chain_valid.
6450
b9644b58
DB
64512002-06-28 David O'Brien <obrien@FreeBSD.org>
6452
6453 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6454 * config/i386/tm-fbsd.h: Likewise.
6455
dd486634
AC
64562002-06-28 Andrew Cagney <ac131313@redhat.com>
6457
6458 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6459 generic_unwind_get_saved_register.
6460
0b434a00
AC
64612002-06-27 Andrew Cagney <ac131313@redhat.com>
6462
6463 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6464 * regcache.c (supply_register): Add missing argument to
6465 register_buffer call.
6466
f30e5a77
AC
64672002-06-27 Andrew Cagney <ac131313@redhat.com>
6468
6469 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6470 Solaris /bin/grep does not not like it. From Peter Schauer.
6471
9f064c95
TT
64722002-06-26 Tom Tromey <tromey@redhat.com>
6473
6474 * command.h (add_setshow_cmd): Declare.
6475 (add_setshow_cmd_full): Declare.
6476 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6477 returns void. Use add_setshow_cmd_full.
6478 (add_setshow_cmd_full): New function.
6479 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6480 (add_setshow_boolean_cmd): Likewise.
6481
099c7589
JT
64822002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6483
6484 * config/vax/tm-vax.h: Protect from multiple inclusion.
6485 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6486 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6487 * config/vax/tm-vaxbsd.h: ...here. New file.
6488 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6489
1d049c5e
JT
64902002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6491
6492 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6493 (BELIEVE_PCC_PROMOTION): Remove.
6494 (AP_REGNUM): Move to...
6495 * config/vax/nm-vax.h: ...here.
6496 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6497 (vax_breakpoint_from_pc): New function.
6498 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6499 and gdbarch_believe_pcc_promotion.
6500
4791e091
JT
65012002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6502
6503 * Makefile.in (vax_tdep_h): Define.
6504 (vax-tdep.o): Use $(vax_tdep_h).
6505 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6506 (vax_dump_tdep): New function.
6507 (_initialize_vax_tdep): Register vax_dump_tdep.
6508 * vax-tdep.h: Include osabi.h.
6509 (struct gdbarch_tdep): New.
6510
da130f98
AC
65112002-06-26 Andrew Cagney <cagney@redhat.com>
6512
6513 * frame.h (deprecated_generic_find_dummy_frame): Rename
6514 generic_find_dummy_frame.
6515 * blockframe.c (generic_find_dummy_frame): Make static.
6516 (deprecated_generic_find_dummy_frame): New function.
6517 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6518 generic_find_dummy_frame with deprecated_find_dummy_frame.
6519 (sh64_nofp_frame_init_saved_regs): Ditto.
6520 (sh_fp_frame_init_saved_regs): Ditto.
6521 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6522 (s390_frame_chain): Ditto.
6523 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6524
6300c360
GS
65252002-06-26 Grace Sainsbury <graces@redhat.com>
6526
6527 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6528 gdbarch vector are at the top.
6529 (NUM_REGS): Remove.
6530 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6531 (FRAME_ARGS_ADDRESS): Remove.
6532 (FRAME_LOCALS_ADDRESS): Remove.
6533 (FRAME_NUM_ARGS): Remove.
6534 (FRAME_ARGS_SKIP): Remove.
6535 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6536 (m68k_gdbarch_init): Add gdbarch initializations for macros
6537 undefined in tm-m68k.h
6538
1c617db8
GS
65392002-06-26 Grace Sainsbury <graces@redhat.com>
6540
6541 * monitor.h: Add the function regname to monitor_ops
6542 structure. This way NUM_REGS does not have to be a constant.
6543 * monitor.c (monitor_fetch_register): Added support for regname
6544 function. The function is called if the array regnames is NULL.
6545 (monitor_store_register): Same.
da130f98
AC
6546 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6547 regnames array.
1c617db8
GS
6548 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6549 cpu32bug_cmds.regname to point to new function.
6550 * abug-rom.c (abug_regname): Same as above.
6551 (init_abug_cmds): Same.
6552 * dbug-rom.c (dbug_regname): Same as above.
6553 (init_dbug_cmds): Same.
6554 * remote-est.c (est_regname): Same.
6555 (init_est_cmds): Same.
6556 * rom68k-rom.c (rom68k_regname): Same.
6557 (init_rom68k_cmds): Same.
6558
ea9365bb
TT
65592002-06-25 Tom Tromey <tromey@redhat.com>
6560
6561 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6562
72cec141
AC
65632002-06-25 Andrew Cagney <cagney@redhat.com>
6564
6565 * infrun.c (stop_registers): Change variable's type to ``struct
6566 regcache'''.
6567 (xmalloc_inferior_status): Delete function.
6568 (free_inferior_status): Delete function.
6569 (normal_stop): Use regcache_cpy.
6570 (struct inferior_status): Change type of fields ``stop_registers''
6571 and ``registers'' to ``struct regcache''.
6572 (write_inferior_status_register): Use regcache_write.
6573 (save_inferior_status): Instead of calling
6574 xmalloc_inferior_status, allocate the inf_status buffer directly.
6575 Use regcache_dup_no_passthrough and regcache_dup to save the
6576 buffers.
6577 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6578 Replace the stop_registers regcache instead of overriding it. Use
6579 regcache_xfree. Instead of calling free_inferior_status, xfree
6580 the buffer directly.
6581 (discard_inferior_status): Use regcache_xfree. Instead of calling
6582 free_inferior_status, xfree the buffer directly.
6583 (build_infrun): Use regcache_xmalloc.
6584 (_initialize_infrun): Delete redundant call to build_infrun.
6585
6586 * Makefile.in (infcmd.o): Add $(regcache_h).
6587
6588 * infcmd.c: Include "regcache.h".
6589 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6590 obtain the address of `stop_registers' register buffer.
6591 (print_return_value): Ditto.
6592
6593 * inferior.h (struct regcache): Add opaque declaration.
6594 (stop_registers): Change variable's declared type to ``struct
6595 regcache''.
6596
defc6f8c
TT
65972002-06-24 Tom Tromey <tromey@redhat.com>
6598
c0e624e7
TT
6599 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6600 * target.c (initialize_targets): Fixed typo in
6601 trust-readonly-sections `show' documentation.
6602
defc6f8c
TT
6603 * main.c: Marked all strings with _().
6604
2b236d82
DH
66052002-06-24 Don Howard <dhoward@redhat.com>
6606
6607 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6608 that means max CORE_ADDR+1.
6609 (lookup_mem_region): Ditto.
6610 (mem_info_command): Ditto.
6611
942dc0e9
GS
66122002-06-24 Grace Sainsbury <graces@redhat.com>
6613
6614 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6615 (REGISTER_BYTES_OK): Remove.
6616 (REGISTER_BYTES): Remove.
6617 (STORE_STRUCT_RETURN): Remove.
6618 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6619 (STORE_RETURN_VALUE): Remove.
6620 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6621 (FRAME_CHAIN): Remove.
6622 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6623 (FRAME_SAVED_PC): Remove.
6624 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6625 (m68k_store_struct_return): Add.
6626 (m68k_deprecated_extract_return_value): Add.
6627 (m68k_deprecated_extract_struct_value_address): Add.
6628 (m68k_store_return_value): Add.
6629 (m68k_frame_chain): Add.
6630 (m68k_frameless_function_invocation): Add.
6631 (m68k_frame_saved_pc): Add.
6632 (m68k_gdbarch_init): added set_gdbarch calls for new
6633 functions and deleted macros.
6634
03c30d4d
TT
66352002-06-23 Tom Tromey <tromey@redhat.com>
6636
6637 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6638 (ALLDEPFILES): Likewise.
6639 (udiheaders): Removed.
6640 (udip2soc.o): Likewise.
6641 (udi2go32.o): Likewise.
6642 (udr.o): Likewise.
6643 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6644
37e71372
AC
66452002-06-22 Andrew Cagney <ac131313@redhat.com>
6646
06a6ac57
AC
6647 * infrun.c (_initialize_infrun): Delete unnecessary call to
6648 build_infrun.
6649
37e71372
AC
6650 * regcache.h: Update comments describing the regcache_cpy family
6651 of functions.
6652 (regcache_save, regcache_restore): Delete declaration.
6653 (regcache_save_no_passthrough): Delete declaration.
6654 (regcache_restore_no_passthrough): Delete declaration.
6655 * regcache.c (regcache_save): Delete function.
6656 (regcache_save_no_passthrough): Delete function.
6657 (regcache_restore): Delete function.
6658 (regcache_restore_no_passthrough): Delete function.
6659
78f6d055
AC
66602002-06-21 Andrew Cagney <ac131313@redhat.com>
6661
6662 * config/m68k/tm-m68k.h: Fix typo.
6663 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6664 (m68k_frame_init_saved_regs): Declare.
6665
78b119cb
JB
66662002-06-21 Jim Blandy <jimb@redhat.com>
6667
6668 Remove some vestiges of Harris 88k support.
6669 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6670 register numbering quirk.
6671 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6672 odd symbols occurring in Harris 88k ELF targets.
6673
0fbb3da7
TT
66742002-06-21 Tom Tromey <tromey@redhat.com>
6675
6676 * gdb_locale.h: New file.
6677 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6678 (defs_h): Added gdb_locale.h.
6679 * configure, config.in: Rebuilt.
6680 * configure.in (PACKAGE): Define.
6681 * defs.h: Include gdb_locale.h.
6682 * main.c (captured_main): Call setlocale, bindtextdomain,
6683 textdomain.
6684
456f8b9d
DB
66852002-06-21 Dave Brolley <brolley@redhat.com>
6686
6687 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6688 * config/frv/frv.mt: New file.
6689 * config/frv/tm-frv.h: New file.
6690 * configure.tgt: Support frv-*-*.
6691 * Makefile.in (frv-tdep.o): New target.
6692 * frv-tdep.c: New file.
6693 * NEWS: Mention frv.
6694
cdd463f9
DB
66952002-06-21 Dave Brolley <brolley@redhat.com>
6696
6697 * MAINTAINERS: Add self to "Write After Approval" list.
6698
5d3ed2e3
GS
66992002-06-21 Grace Sainsbury <graces@redhat.com>
6700
6701 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6702 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6703 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6704 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6705 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6706
6707 * m68k-tdep.c: Include arch-utils.h
6708 (m68k_register_raw_size): Add.
6709 (m68k_register_virtual_size): Add.
6710 (m68k_register_virtual_type): Add.
6711 (m68k_register_name): Add.
6712 (m68k_stack_align): Add.
6713 (m68k_register_byte): Add.
6714 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6715 tm-m68k.h.
6716
7f8e7424
GS
67172002-06-21 Grace Sainsbury <graces@redhat.com>
6718
a2c6a6d5 6719 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6720 m68k_find_saved_regs.
6721 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6722 references to it with frame->saved_regs.
7f8e7424
GS
6723 (m68k_gdbarch_init): Added function calls to initialize the
6724 gdbarch structure.
a2c6a6d5
GS
6725 (m68k_fix_call_dummy): Add.
6726 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6727 (CALL_DUMMY): Remove.
6728 (CALL_DUMMY_LENGTH): Remove.
6729 (CALL_DUMMY_START_OFFSET): Remove.
6730 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6731 (FIX_CALL_DUMMY): Remove.
6732 (PUSH_DUMMY_FRAME): Remove.
6733 (POP_FRAME): Remove.
7f8e7424 6734
f461f5cf
PM
67352002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6736
6737 * parse.c (parse_fprintf): New function used to avoid calls to
6738 fprintf in bison parser generated debug code.
6739 * parser-defs.h: Declaration of new parse_fprintf function.
6740 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6741 Set YYDEBUG to 1 by default.
6742 Set YYFPRINTF as parse_fprintf.
6743
7f0c12ed
ML
67442002-06-21 Michal Ludvig <mludvig@suse.cz>
6745
6746 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6747 encoding anymore.
6748 (pointer_encoding, enum ptr_encoding): New.
6749 (execute_cfa_program): Take care about pointer encoding.
6750 (dwarf2_build_frame_info): Only call parse_frame_info for
6751 .debug_frame and .eh_frame.
6752 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6753 fixed augmentation handling, added relative addressing,
6754 ignore duplicate FDEs. Added comments.
19d833a2 6755 * dwarf2cfi.c: Reindented.
7f0c12ed 6756
87c4a039
EZ
67572002-06-20 Elena Zannoni <ezannoni@redhat.com>
6758
6759 * event-top.c (command_handler): Don't use space_at_cmd_start
6760 unless there is sbrk() on the host. Assign time and space data
6761 to union fields of the appropriate length.
6762
1cf877ad
ML
67632002-06-20 Michal Ludvig <mludvig@suse.cz>
6764
6765 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6766 x86_64_register_name. Return type changed to 'const char *'.
6767 (x86_64_register_name2nr): Rename to x86_64_register_number.
6768 (x86_64_gdbarch_init): Update to reflect the change.
6769 * x86-64-tdep.h: Ditto.
6770 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6771 (supply_fpregset): Ditto.
6772
3fadccb3
AC
67732002-06-19 Andrew Cagney <cagney@redhat.com>
6774
6775 * regcache.h: Update copyright.
6776 (struct regcache, struct gdbarch): Add opaque declarations.
6777 (current_regcache): Declare global variable.
6778 (regcache_read, regcache_write): Add gdbarch parameter.
6779 (regcache_save, regcache_save_no_passthrough)
6780 (regcache_restore, regcache_restore_no_passthrough)
6781 (regcache_dup, regcache_dup_no_passthrough)
6782 (regcache_cpy, regcache_cpy_no_passthrough)
6783 (deprecated_grub_regcache_for_registers)
6784 (deprecated_grub_regcache_for_register_valid)
6785 (regcache_valid_p): Add function declarations.
6786
6787 * regcache.c: Update copyright.
6788 (regcache_descr_handle): New global variable.
6789 (struct regcache_descr): Define.
6790 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6791 (regcache_descr, xfree_regcache_descr): New functions.
6792 (struct regcache): Define.
6793 (regcache_xmalloc, regcache_xfree): New functions.
6794 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6795 (regcache_dup, regcache_dup_no_passthrough): New functions.
6796 (regcache_valid_p, regcache_read_as_address): New functions.
6797 (deprecated_grub_regcache_for_registers): New function.
6798 (deprecated_grub_regcache_for_register_valid): New function.
6799 (current_regcache): New global variable.
6800 (register_buffer): Add regcache parameter. Update calls.
6801 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6802 (read_register_gen, write_register_gen): Update register_buffer
6803 call. Test for legacy_p instead of gdbarch_register_read_p or
6804 gdbarch_register_write_p.
6805 (regcache_collect): Update register_buffer call.
6806 (build_regcache): Rewrite. Use deprecated grub functions.
6807 (regcache_save, regcache_save_no_passthrough): New functions.
6808 (regcache_restore, regcache_restore_no_passthrough): New
6809 functions.
6810 (_initialize_regcache): Create the regcache_data_handle. Swap
6811 current_regcache global variable.
6812
6813 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6814 parameter to regcache_read and regcache_write calls.
6815 (sh4_register_read): Ditto.
6816 (sh64_pseudo_register_read): Ditto.
6817 (sh64_register_read): Ditto.
6818 (sh_pseudo_register_write): Ditto.
6819 (sh4_register_write): Ditto.
6820 (sh64_pseudo_register_write): Ditto.
6821 (sh64_register_write): Ditto.
6822
6823 * defs.h (XCALLOC): Define.
6824
152d9db6
GS
68252002-06-19 Grace Sainsbury <graces@redhat.com>
6826
6827 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6828 * m68k-tdep.c (m68k_gdbarch_init): Added.
6829 (m68k_dump_tdep): Added.
6830
170911c7
DJ
68312002-06-19 Daniel Jacobowitz <drow@mvista.com>
6832
6833 * ada-lang.c (fill_in_ada_prototype): Update comment.
6834
2e4ebe70
DJ
68352002-06-19 Daniel Jacobowitz <drow@mvista.com>
6836
6837 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6838 MIPS_ABI_LAST.
6839 (mips_abi_string, mips_abi_strings): New.
6840 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6841 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6842 tdep->mips_abi_string. Honor mips_abi_string. Default to
6843 O32 if no ABI is found.
6844 (mips_dump_tdep): Use mips_abi_strings.
6845 (mips_abi_update): New function.
6846 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6847 ``set mips abi'' and ``show mips abi''. Check the size of
6848 mips_abi_strings.
6849
16775908
AC
68502002-06-19 Andrew Cagney <cagney@redhat.com>
6851
6852 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6853 constant.
6854
5051bfa4 68552002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6856
5051bfa4
JB
6857 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6858 current frame using only the first stack size adjustment. All
6859 subsequent size adjustments are not considered to be part of
6860 the "static" part of the current frame.
6861 Compute the address of the saved registers relative to the
6862 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6863 in use in this frame.
6864
56468235
DH
68652002-06-18 Don Howard <dhoward@redhat.com>
6866
6867 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6868 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6869 suggesting this solution.
6870
0b624158
AC
68712002-06-18 Andrew Cagney <ac131313@redhat.com>
6872
6873 * config/romp/xm-rtbsd.h: Delete file.
6874 * config/romp/rtbsd.mh: Delete file.
6875
221ea385
KS
68762002-06-18 Keith Seitz <keiths@redhat.com>
6877
6878 * breakpoint.c (condition_command): Post breakpoint_modify
6879 when a condition is added to an existing breakpoint.
6880 (commands_command): Likewise for commands.
6881 (set_ignore_count): Likewise for ignore counts.
6882 If no tty, do not simply return, still need to send event
6883 notification.
6884 (ignore_command): Only print a newline if the command came
6885 from a tty.
6886 Don't call breakpoints_changed, since this is now properly
6887 handled by set_ignore_count.
6888
5402eed1
AC
68892002-06-18 Andrew Cagney <cagney@redhat.com>
6890
6891 * MAINTAINERS: Note that cris-elf target can be compiled with
6892 -Werror.
6893 * cris-tdep.c (cris_register_name): Make return type constant.
6894 (cris_breakpoint_from_pc): Ditto.
6895
cc22880b
ML
68962002-06-18 Michal Ludvig <mludvig@suse.cz>
6897
6898 * frame.h (struct frame_info): Change type of context to
6899 'struct context'.
6900
fa88f677
AC
69012002-06-17 Andrew Cagney <cagney@redhat.com>
6902
6903 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6904 pointer.
6905 * gdbarch.h, gdbarch.c: Regenerate.
6906 * config/mips/tm-mips.h (mips_register_name): Update.
6907 * i386-tdep.h (i386_register_name): Update.
6908 * mips-tdep.c (mips_register_name): Update
6909 * alpha-tdep.c (alpha_register_name): Update.
6910 * arch-utils.c (legacy_register_name): Update.
6911 * arch-utils.h (legacy_register_name): Update.
6912 * avr-tdep.c (avr_register_name): Update.
6913 * ia64-tdep.c (ia64_register_name): Update.
6914 * i386-tdep.c (i386_register_name): Update.
6915 * sparc-tdep.c (sparc32_register_name): Update.
6916 (sparc64_register_name): Update.
6917 (sparclite_register_name): Update.
6918 (sparclet_register_name): Update.
6919 * sh-tdep.c (sh_generic_register_name): Update.
6920 (sh_sh_register_name): Update.
6921 (sh_sh3_register_name): Update.
6922 (sh_sh3e_register_name): Update.
6923 (sh_sh_dsp_register_name): Update.
6924 (sh_sh3_dsp_register_name): Update.
6925 (sh_sh4_register_name): Update.
6926 (sh_sh64_register_name): Update.
6927 * s390-tdep.c (s390_register_name): Update.
6928 * rs6000-tdep.c (rs6000_register_name): Update.
6929 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6930 (ns32k_register_name_32382): Update.
6931 * d10v-tdep.c (d10v_ts2_register_name): Update.
6932 (d10v_ts3_register_name): Update.
6933 * xstormy16-tdep.c (xstormy16_register_name): Update.
6934 * vax-tdep.c (vax_register_name): Update.
6935 * v850-tdep.c (v850_register_name): Update.
6936 * m68hc11-tdep.c (m68hc11_register_name): Update.
6937 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6938 (am33_register_name): Update.
6939
ea1e7ef6
GS
69402002-06-17 Grace Sainsbury <graces@redhat.com>
6941
6942 * m68k-tdep.c: Reindented.
6943
9b02dd1b
AC
69442002-06-17 Andrew Cagney <ac131313@redhat.com>
6945
6946 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6947 list of predefined types.
6948
8758dec1
MK
69492002-06-16 Mark Kettenis <kettenis@gnu.org>
6950
b6197528
MK
6951 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6952 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6953 REGISTER_CONVERT_TO_RAW): Remove defines.
6954 (i386_register_virtual_type, i386_register_convertible,
6955 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6956 Remove prototypes.
6957 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6958 macros mentioned above.
6959
82b47e62
MK
6960 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6961 (i386lynx_saved_pc_after_call): Remove prototype.
6962 * i386ly-tdep.c: Include "i386-tdep.h".
6963 (i386lynx_saved_pc_after_call): Make static. Use
6964 read_memory_nobpt instead of read_memory. Use
6965 read_memory_unsigned_integer instead of read_memory_integer.
6966 (i386lynx_init_abi): New function.
6967 (i386lynx_coff_osabi_sniffer): New function.
6968 (_initialize_i386bsd_tdep): New function.
6969
8758dec1
MK
6970 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6971 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6972 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6973 (i386_fix_call_dummy): Remove prototype.
6974 * i386-tdep.c (i386_call_dummy_words): New variable.
6975 (i386_gdbarch_init): Adjust for removal of the
6976 macros mentioned above.
6977
e9e68a56
AC
69782002-06-15 Andrew Cagney <ac131313@redhat.com>
6979
6980 * command.h (add_setshow_auto_boolean_cmd): Replace
6981 add_set_auto_boolean_cmd.
6982 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6983 add_set_auto_boolean_cmd.
6984 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6985 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6986 mask-address'' command.
6987 (show_mask_address): Add cmd parameter.
6988 * remote.c (add_packet_config_cmd): Update. Change type of
6989 set_func and show_func to cmd_sfunc_ftype.
6990 (_initialize_remote): Update `set remote Z-packet'
6991 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6992 (show_remote_protocol_e_packet_cmd): Ditto.
6993 (show_remote_protocol_E_packet_cmd): Ditto.
6994 (show_remote_protocol_P_packet_cmd): Ditto.
6995 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6996 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6997 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6998 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6999 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7000 (show_remote_protocol_Z_packet_cmd): Ditto.
7001 (show_remote_protocol_binary_download_cmd): Ditto.
7002 (show_remote_cmd): Pass NULL to all of above.
7003
fc08ec52
MK
70042002-06-15 Mark Kettenis <kettenis@gnu.org>
7005
7006 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7007 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7008 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7009 POP_FRAME): Remove defines.
7010 (i386_push_arguments, i386_store_struct_return,
7011 i386_extract_return_value, i386_store_return_value,
7012 i386_extract_struct_value_address, i386_push_dummy_frame,
7013 i386_pop_frame): Renove prototypes.
7014 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7015 macros mentioned above.
7016
e707bbc2
AC
70172002-06-15 Andrew Cagney <ac131313@redhat.com>
7018
7019 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7020 add_set_boolean_cmd.
7021 (add_setshow_cmd): New function.
7022 * command.h (add_setshow_boolean_cmd): Replace
7023 add_set_boolean_cmd.
7024 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7025 and ``set rdiromatzero''.
7026 * maint.c (_initialize_maint_cmds): Update commented out code.
7027 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7028 * target.c (initialize_targets): Update `set
7029 trust-readonly-sections'.
7030 * remote.c (_initialize_remote): Update `set remotebreak'.
7031
42fdc8df
MK
70322002-06-15 Mark Kettenis <kettenis@gnu.org>
7033
93924b6b
MK
7034 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7035 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7036 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7037 fit into multi-arch framework.
7038 (i386_breakpoint_from_pc): New function.
7039 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7040 above.
7041
42fdc8df
MK
7042 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7043 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7044 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7045 (i386_frameless_function_invocation, i386_frame_num_args,
7046 i386_frame_init_saved_regs): Remove prototypes.
7047 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7048 macros mentioned above.
7049
9773a94b
AC
70502002-06-15 Andrew Cagney <ac131313@redhat.com>
7051
7052 * cli/cli-decode.c (set_cmd_cfunc): Update.
7053 (set_cmd_sfunc): Update.
7054 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7055 (set_cmd_sfunc, set_cmd_cfunc): Update.
7056 * cli/cli-decode.h: Update.
7057
6e157172
MK
70582002-06-15 Mark Kettenis <kettenis@gnu.org>
7059
7060 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7061 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7062
7f19b9a2
AC
70632002-06-15 Andrew Cagney <ac131313@redhat.com>
7064
7065 * defs.h (auto_boolean): Declare enum.
7066 * command.h (cmd_auto_boolean): Delete enum.
7067 * mips-tdep.c (mask_address_var): Update.
7068 (mips_mask_address_p): Update.
7069 (show_mask_address): Update.
7070 * remote.c (struct packet_config): Update.
7071 (update_packet_config): Update.
7072 (show_packet_config_cmd): Update.
7073 (packet_ok): Update.
7074 (add_packet_config_cmd): Update.
7075 (_initialize_remote):
7076 * command.h: Update.
7077 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7078 (do_setshow_command): Update.
7079 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7080 * cli/cli-decode.h: Update.
7081
1cf88de5
MK
70822002-06-15 Mark Kettenis <kettenis@gnu.org>
7083
22ba8cf2
MK
7084 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7085 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7086 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7087 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7088 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7089 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7090
762c5349
MK
7091 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7092 list of DJGPP COFF targets.
7093
091198bb
MK
7094 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7095 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7096 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7097 (FP0_REGNUM): Remove define.
7098 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7099 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7100 (i386_register_virtual_size): Remove protoype.
7101 * i386-tdep.c (i386_register_virtual_size): Removed.
7102 (i386_extract_return_value, i386_store_return_value): Use
7103 FP0_REGNUM instead of NUM_FREGS to determine whether the
7104 floating-point registers are available.
7105 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7106 Adjust for removal of macros mentioned above.
7107
71082002-06-15 Mark Kettenis <kettenis@gnu.org>
7109
fcc9bf01
MK
7110 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7111 comments.
7112 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7113 Remove prototypes.
7114 (supply_gregset, fill_gregset): Remove use of register keyword and
7115 remove declaration for regmap. Use I386_NUM_GREGS instead of
7116 NUM_REGS and NUM_FREGS.
7117 (FPREGSET_FSAVE_OFFSET): Remove.
7118 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7119 NUM_FREGS to determine whether the floating-point registers are
7120 available.
7121
65e78234
MK
7122 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7123 gnu_store_registers): Replace usage of NUM_GREGS with
7124 I386_NUM_GREGS.
7125
98df6387
MK
7126 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7127 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7128 usage of NUM_GREGS with I386_NUM_GREGS.
7129
099a9414
MK
7130 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7131
57976e88
MK
7132 * i386bsd-nat.c: Include "i386-tdep.h".
7133 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7134 I386_NUM_GREGS.
7135
b335f4a6
MK
7136 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7137 and associated comment. They no longer make any sense, since we
7138 don't use this file anymore on Linux.
7139
1cf88de5
MK
7140 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7141 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7142 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7143 elements in these arrays.
7144 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7145 MAX_NUM_REGS.
7146
daa66587
MK
71472002-06-15 Mark Kettenis <kettenis@gnu.org>
7148
7149 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7150 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7151
26e9b323
AC
71522002-06-14 Andrew Cagney <cagney@redhat.com>
7153
7154 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7155 EXTRACT_RETURN_VALUE.
7156 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7157 EXTRACT_STRUCT_VALUE_ADDRESS.
7158 * gdbarch.h, gdbarch.c: Regenerate.
7159
7160 * values.c (value_being_returned): Handle
7161 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7162 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7163
7164 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7165 * arm-tdep.c (arm_gdbarch_init): Update.
7166 * avr-tdep.c (avr_gdbarch_init): Update.
7167 * cris-tdep.c (cris_gdbarch_init): Update.
7168 * d10v-tdep.c (d10v_gdbarch_init): Update.
7169 * ia64-tdep.c (ia64_gdbarch_init): Update.
7170 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7171 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7172 * s390-tdep.c (s390_gdbarch_init): Update.
7173 * sh-tdep.c (sh_gdbarch_init): Update.
7174 * s390-tdep.c (s390_gdbarch_init): Update.
7175 * sparc-tdep.c (sparc_gdbarch_init): Update.
7176 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7177 * v850-tdep.c (v850_gdbarch_init): Update.
7178 * vax-tdep.c (vax_gdbarch_init): Update.
7179 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7180 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7181
7182 * config/arc/tm-arc.h: Update.
7183 * config/d30v/tm-d30v.h: Update.
7184 * config/fr30/tm-fr30.h: Update.
7185 * config/h8300/tm-h8300.h: Update.
7186 * config/h8500/tm-h8500.h: Update.
7187 * config/i386/tm-i386.h: Update.
7188 * config/i386/tm-ptx.h: Update.
7189 * config/i386/tm-symmetry.h: Update.
7190 * config/i960/tm-i960.h: Update.
7191 * config/m32r/tm-m32r.h: Update.
7192 * config/m68k/tm-delta68.h: Update.
7193 * config/m68k/tm-linux.h: Update.
7194 * config/m68k/tm-m68k.h: Update.
7195 * config/m88k/tm-m88k.h: Update.
7196 * config/mcore/tm-mcore.h: Update.
7197 * config/mips/tm-mips.h: Update.
7198 * config/mn10200/tm-mn10200.h: Update.
7199 * config/pa/tm-hppa.h: Update.
7200 * config/pa/tm-hppa64.h: Update.
7201 * config/sparc/tm-sp64.h: Update.
7202 * config/sparc/tm-sparc.h: Update.
7203 * config/sparc/tm-sparclet.h: Update.
7204 * config/z8k/tm-z8k.h: Update.
7205
5179e78f
AC
72062002-06-14 Andrew Cagney <cagney@redhat.com>
7207
7208 * Makefile.in (i386_linux_tdep_h): Define.
7209 (i386_tdep_h, i387_tdep_h): Define.
7210 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7211 $(i386_tdep_h) and $(i387_tdep_h).
7212 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7213
8201327c
MK
72142002-06-14 Mark Kettenis <kettenis@gnu.org>
7215
edf393ac
MK
7216 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7217 Already covered by the default.
7218
896fb97d
MK
7219 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7220 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7221 (i386_gdbarch_init): Initialize long_double_format and long_double
7222 bit.
7223
8201327c
MK
7224 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7225 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7226 Move these to ...
7227 * config/i386/i386sol2.mh: ... here.
7228 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7229 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7230 (SIGCONTEXT_PC_OFFSET): Remove define.
7231 (IN_SIGTRAMP): Remove define.
7232 * i386-sol2-tdep.c: New file.
7233
7234 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7235 * config/i386/tm-i386nw.h: Removed.
7236
7237 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7238 USE_STRUCT_CONVENTION): Remove defines.
7239 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7240 (get_longjmp_target): Remove prototype.
7241 (IN_SIGTRAMP): Remove define.
7242 (i386bsd_in_sigtramp): Remove prototype.
7243 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7244 function. Update comment accordingly
7245 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7246 (FRAME_SAVED_PC): Remove define.
7247 (i386bsd_frame_saved_pc): Remove prototype.
7248 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7249 GET_LONGJMP_TARGET): Remove defines.
7250 (get_longjmp_target): Remove prototype.
7251 (IN_SIGTRAMP): Remove define.
7252 (i386bsd_in_sigtramp): Remove prototype.
7253 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7254 function. Update comment accordingly
7255 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7256 (FRAME_SAVED_PC): Remove define.
7257 (i386bsd_frame_saved_pc): Remove prototype.
7258 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7259 Remove prototype.
7260 (USE_STRUCT_CONVENTION): Remove prototype.
7261 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7262 declaration.
7263 (_initialize_i386bsd_nat): Revise logic to determine some
7264 constants at compile time when compiling a native GDB. Warn if
7265 things don't match up with what we expect.
7266 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7267 Remove variables.
7268 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7269 to use date stored in `struct gdbarch_tdep'.
7270 (i386bsd_sigcontext_offset): Remove varaible.
7271 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7272 stored in `struct gdbarch_tdep'.
7273 (i386bsd_frame_saved_pc): Make static.
7274 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7275 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7276 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7277 i386fbsd4_sc_pc_offset): New variables.
7278 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7279 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7280 functions.
7281 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7282 functions.
7283 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7284 Modify the value of i386fbsd_sigtramp_start and
7285 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7286 i386fbsd_sigtramp_end.
7287 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7288 function.
7289
7290 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7291 define to i386-linux-tdep.h.
7292 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7293 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7294 defines.
7295 (i386_linux_register_name, i386_linux_register_byte,
7296 i386_linux_register_raw_size): Remove prototypes.
7297 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7298 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7299 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7300 TARGET_WRITE_PC): Remove defines.
7301 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7302 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7303 i386_linux_write_pc): Remove prototypes.
7304 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7305 (get_longjmp_target): Remove prototype.
7306 * i386-linux-tdep.h: New file.
7307 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7308 * i386-linux-tdep.c: Include "i386-tdep.h" and
7309 "i386-linux-tdep.h".
7310 (i386_linux_register_name, i386_linux_register_byte,
7311 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7312 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7313 Make static.
7314 (i386_linux_init_abi): New function.
7315 (_initialize_i386_linux_tdep): New function.
7316
7317 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7318 (i386_saved_pc_after_call): Remove prototype.
7319 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7320 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7321 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7322 (i386_register_name, i386_stab_reg_to_regnum,
7323 i386_dwarf_reg_to_regnum): Remove prototypes.
7324 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7325 SIZEOF_SSE_REGS): Remove defines.
7326 (REGISTER_BYTES): Remove define.
7327 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7328 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7329 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7330 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7331 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7332 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7333 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7334 (get_longjmp_target): Remove prototype.
7335 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7336 (sigtramp_saved_pc): Remove define.
7337 (i386v4_sigtramp_saved_pc): Remove prototype.
7338 * config/i386/tm-go32.h (FRAME_CHAIN,
7339 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7340 (i386go32_frame_saved_pc): Remove prototype.
7341 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7342 (get_longjmp_target): Remove prototype.
7343 * i386-tdep.h: Include "osabi.h".
7344 (enum i386_abi): Removed.
7345 (enum struct_return): New enum.
7346 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7347 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7348 sc_pc_offset members.
7349 (i386_gdbarch_register_os_abi): Remove prototype.
7350 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7351 I386_SSE_NUM_REGS): New defines.
7352 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7353 I386_SSE_SIZEOF_REGS): New defines.
7354 (i386_register_name, i386_register_byte, i386_register_raw_size):
7355 New prototypes.
7356 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7357 (i386bsd_sigtramp_saved_pc): New prototype.
7358 * i386-tdep.c: Don't include "elf-bfd.h".
7359 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7360 i386_frame_chain, i386_saved_pc_after_call): Make static.
7361 (i386_frame_saved_pc): Rewrite to call architecture dependent
7362 function to deal with signal handlers. Make static.
7363 (i386go32_frame_saved_pc): Removed.
7364 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7365 Removed.
7366 (i386_get_longjmp_target): New function.
7367 (default_struct_convention, pcc_struct_convention,
7368 reg_struct_convention, valid_conventions, struct_convention): New
7369 variables.
7370 (i386_use_struct_convention): New function.
7371 (i386v4_sigtramp_saved_pc): Renamed to
7372 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7373 (i386_pc_in_sigtramp): New function.
7374 (i386_abi_names): Removed.
7375 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7376 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7377 Removed.
7378 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7379 i386_gdbarch_register_os_abi): Removed.
7380 (struct i386_abi_handler): Removed.
7381 (i386_abi_handler_list): Removed.
7382 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7383 functions.
7384 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7385 i386_nw_init_abi): New functions.
7386 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7387 Use set_gdbarch_xxx() calls instead of relying on macros for a
7388 number of calls.
7389 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7390 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7391 Register the various architecture variants defined in this file.
7392
ad2f7632
DJ
73932002-06-14 Daniel Jacobowitz <drow@mvista.com>
7394
7395 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7396 (struct main_type): Remove arg_types member. Update comments for
7397 struct field.
7398 (TYPE_ARG_TYPES): Remove.
7399 (TYPE_FN_FIELD_ARGS): Update.
7400 (smash_to_method_type): Update prototype.
7401
7402 * c-typeprint.c (cp_type_print_method_args): Take method type
7403 instead of argument list. Use new argument layout. Simplify.
7404 (c_type_print_args): Use new argument layout. Simplify.
7405 (c_type_print_base): Update call to cp_type_print_method_args.
7406 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7407 argument; use die->type instead. Update call to
7408 smash_to_method_type.
7409 (read_structure_scope): Update call to dwarf2_add_member_fn.
7410 * gdbtypes.c (allocate_stub_method): Update comment.
7411 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7412 Use new argument layout.
7413 (check_stub_method): Use new argument layout. Don't count
7414 void as an argument.
7415 (print_arg_types): Update comments. Use new argument layout.
7416 (recursive_dump_type): Don't print arg_types member.
7417 * hpread.c (hpread_read_struct_type): Use new argument layout.
7418 (fixup_class_method_type): Likewise.
7419 (hpread_type_lookup): Likewise.
7420 * stabsread.c (read_type): Update calls to read_args and
7421 smash_to_method_type.
7422 (read_args): Use new argument layout. Simplify.
7423 * valops.c (typecmp): Use new argument layout. Update parameters
7424 and comments. Simplify.
7425 (hand_function_call): Use new argument layout.
7426 (search_struct_method): Update call to typecmp.
7427 (find_overload_match): Use new argument layout.
7428
6da02953
DJ
74292002-06-13 Daniel Jacobowitz <drow@mvista.com>
7430
7431 * NEWS: Mention multithreaded debug support for gdbserver.
7432
519b2366
DJ
74332002-06-13 Daniel Jacobowitz <drow@mvista.com>
7434
7435 * MAINTAINERS: Mention NEWS.
7436
6c0d6680
DJ
74372002-06-13 Daniel Jacobowitz <drow@mvista.com>
7438
7439 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7440 (struct mips_objfile_private, compare_pdr_entries): New.
7441 (non_heuristic_proc_desc): Read the ".pdr" section if it
7442 is present.
7443
6529d2dd
AC
74442002-06-12 Andrew Cagney <ac131313@redhat.com>
7445
7446 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7447 (arm_debug): New static variable.
7448 (_initialize_arm_tdep): Add ``set debug arm'' command.
7449
26216b98
AC
74502002-06-12 Andrew Cagney <ac131313@redhat.com>
7451
7452 * Makefile.in (sim_arm_h): Define.
7453 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7454 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7455 (arm_register_sim_regno): New function, map an internal REGNUM
7456 onto a simulator register number.
7457 (arm_gdbarch_init): Set register_sim_regno.
7458
814b3ba0
AH
74592002-06-09 Aldy Hernandez <aldyh@redhat.com>
7460
7461 * MAINTAINERS: Add self.
7462
475b0867
JB
74632002-06-11 Jim Blandy <jimb@redhat.com>
7464
919d772c
JB
7465 * source.c (source_info): Mention whether the symtab has
7466 information about preprocessor macros.
7467
475b0867
JB
7468 Call the command `info macro', not `show macro'.
7469 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7470 Fix error message.
7471 (_initialize_macrocmd): Register `info_macro_command' in
7472 `infolist', not `showlist'.
7473
9e364162
DJ
74742002-06-11 Daniel Jacobowitz <drow@mvista.com>
7475
7476 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7477 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7478 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7479 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7480 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7481 unconditionally.
7482 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7483 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7484 (_initialize_mips_tdep): Remove dead code.
7485 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7486 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7487 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7488 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7489 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7490 MIPS_LAST_FP_ARG_REGNUM): Remove.
7491
23aa4c72
ML
74922002-06-11 Michal Ludvig <mludvig@suse.cz>
7493
7494 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7495 (unwind_tmp_obstack_free, parse_frame_info)
7496 (update_context, cfi_read_fp, cfi_write_fp)
7497 (cfi_frame_chain, cfi_init_extra_frame_info)
7498 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7499 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7500
70eb15a4
CV
75012002-06-11 Corinna Vinschen <vinschen@redhat.com>
7502
7503 * v850-tdep.c (v850_type_is_scalar): New function.
7504 (v850_use_struct_convention): Match current gcc implementation
7505 as close as possible.
7506 (v850_push_arguments): Fix stack_offset handling. Don't write
7507 struct_addr into register. This is done by v850_store_struct_return.
7508 (v850_extract_return_value): Care for structs.
7509 (v850_store_return_value): Ditto.
7510 (v850_store_struct_return): Actually write address.
7511
482a4d06
ML
75122002-06-11 Michal Ludvig <mludvig@suse.cz>
7513
7514 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7515 without debug information too.
7516
d855c300
AC
75172002-06-10 Andrew Cagney <ac131313@redhat.com>
7518
7519 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7520 Make multi-arch pure.
7521 * gdbarch.h, gdbarch.c: Re-generate.
7522 * arm-tdep.c (arm_print_float_info): Update.
7523 * arch-utils.h (default_print_float_info): Update.
7524 * arch-utils.c (default_print_float_info): Update.
7525 * infcmd.c (float_info): Update call.
7526
dd12a101
AC
75272002-06-10 Andrew Cagney <ac131313@redhat.com>
7528
7529 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7530 the front of the initialize list.
7531
101dcfbe
AC
75322002-06-10 Andrew Cagney <ac131313@redhat.com>
7533
7534 * infrun.c (struct inferior_status): Replace fields
7535 selected_frame_address and selected_level with field
7536 selected_frame_id.
7537 (save_inferior_status): Update. Use get_frame_id.
7538 (struct restore_selected_frame_args): Delete.
7539 (restore_selected_frame): Update. Use frame_find_by_id.
7540 (restore_inferior_status): Update.
7541
7542 * breakpoint.h (struct breakpoint): Change type of
7543 watchpoint_frame to frame_id.
7544 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7545 call to get_current_frame.
7546 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7547 get_current_frame.
7548 (watchpoint_check): Use frame_find_by_id.
7549
7550 * frame.h (record_selected_frame): Delete declaration.
7551 * stack.c (record_selected_frame): Delete function.
7552
7553 * frame.h (struct frame_id): Define.
7554 (get_frame_id): Declare.
7555 (frame_find_by_id): Declare.
7556 * frame.c (frame_find_by_id): New function.
7557 (get_frame_id): New function.
7558
304270b6
AV
75592002-06-10 Andrey Volkov <avolkov@transas.com>
7560
7561 * ser-e7kpc.c: Fix duplicated define and call of
7562 _initialize_ser_e7000pc
7563
2f2cf184
DJ
75642002-06-09 Daniel Jacobowitz <drow@mvista.com>
7565
7566 * signals/signals.c (target_signal_from_host): Fix #ifdef
7567 SIGRTMIN case.
7568 (do_target_signal_to_host): Likewise.
7569
caaa3122
DJ
75702002-06-09 Daniel Jacobowitz <drow@mvista.com>
7571
7572 * mips-tdep.c (mips_find_abi_section): New function.
7573 (mips_gdbarch_init): Call it.
7574
6ac5df3a
MK
75752002-06-09 Mark Kettenis <kettenis@gnu.org>
7576
7577 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7578 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7579 after Andrew's 2002-06-08 gdbarch change.
7580
82ea117a
MK
75812002-06-09 Mark Kettenis <kettenis@gnu.org>
7582
7583 * i386-linux-nat.c (suppy_gregset): Don't supply
7584 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7585 register cache.
7586 (fill_gregset): Don't fetch it under the same circumstances.
7587
3c25f8c7
AC
75882002-06-09 Andrew Cagney <cagney@redhat.com>
7589
7590 * Makefile.in (callback_h): Define.
7591 (remote_sim_h): Update path to remote-sim.h.
7592 (remote-rdp.o): Add $(callback_h).
7593 (remote-sim.o): Use $(callback_h).
7594 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7595 * remote-rdp.c: Include "gdb/callback.h".
7596
1029b7fa
MK
75972002-06-09 Mark Kettenis <kettenis@gnu.org>
7598
7599 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7600 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7601
616675d3
AC
76022002-06-08 Andrew Cagney <ac131313@redhat.com>
7603
a3efda28
AC
7604 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7605 * rdi-share/serpardr.c: Ditto.
7606 * rdi-share/unixcomm.c: Ditto.
7607 * rdi-share/serdrv.c: Ditto.
7608 * rdi-share/hostchan.h: Ditto.
7609 * rdi-share/hostchan.c: Ditto.
7610 * rdi-share/host.h: Ditto.
7611 * rdi-share/devsw.c: Ditto.
7612
c5f10366
AC
7613 * objfiles.h: Change type of obj_private to void pointer.
7614 * pa64solib.c: Update copyright. Don't include "assert.h", use
7615 strcmp instead of STREQ, use LONGEST, do not use PTR
7616 * somsolib.c: Ditto.
7617
616675d3
AC
7618 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7619 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7620 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7621
e4b415d9
AC
76222002-06-08 Andrew Cagney <ac131313@redhat.com>
7623
7624 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7625 (default_get_saved_register): Delete function.
7626 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7627 generic_unwind_get_saved_register.
7628 * gdbarch.h, gdbarch.c: Re-generate.
7629
ca0d0b52
AC
76302002-06-08 Andrew Cagney <ac131313@redhat.com>
7631
7632 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7633 generic_func_frame_chain_valid.
7634 * gdbarch.h, gdbarch.c: Re-generate.
7635 * blockframe.c (generic_func_frame_chain_valid): Only check
7636 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7637 passing FP to PC_IN_CALL_DUMMY.
7638 Fix PR gdb/360.
7639
76860b5f
AC
76402002-06-08 Andrew Cagney <ac131313@redhat.com>
7641
7642 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7643 (register_gdbarch_data): Initialize init_p.
7644 (gdbarch_data): Initialize data pointer using the init function.
7645 (init_gdbarch_data): Delete function.
7646 (gdbarch_update_p): Update.
7647 (initialize_non_multiarch): Update.
7648 (struct gdbarch): Add field initialized_p.
7649 * gdbarch.h, gdbarch.c: Re-generate.
7650
8dda9770
ML
76512002-06-07 Michal Ludvig <mludvig@suse.cz>
7652
7653 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7654 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7655 better do the things actually here.
7656 * x86-64-tdep.c (x86_64_register_name2nr): New.
7657 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7658 (x86_64_gdbarch_init): Respect the above change.
7659 * x86-64-tdep.h (x86_64_register_name2nr)
7660 (x86_64_register_nr2name): Add prototypes.
7661 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7662
3d79a47c
MS
76632002-06-06 Michael Snyder <msnyder@redhat.com>
7664
7bd91a28
MS
7665 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7666 Delete extra braces and re-indent.
7667 (d10v_store_return_value): Char return values
3d79a47c
MS
7668 must be shifted over by one byte in R0.
7669 (d10v_extract_return_value): Delete extra braces, re-indent.
7670
095a4c96
EZ
76712002-06-06 Elena Zannoni <ezannoni@redhat.com>
7672
7673 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7674 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7675 (d10v_integer_to_address): Rewrite.
7676 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7677 the d10v specific functions which take care of converting to the
7678 correct space.
7679
e8a77ca4
EZ
76802002-06-06 Elena Zannoni <ezannoni@redhat.com>
7681
7682 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7683 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7684
4f2e4a4f
AC
76852002-06-02 Andrew Cagney <ac131313@redhat.com>
7686
7687 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7688 includes.
7689 * config/tm-linux.h: Ditto.
7690 * config/alpha/tm-alphalinux.h: Ditto.
7691 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7692 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7693 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7694 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7695 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7696 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7697 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7698 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7699 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7700 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7701 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7702 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7703 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7704 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7705 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7706 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7707 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7708 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7709 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7710 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7711 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7712 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7713 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7714 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7715 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7716 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7717 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7718 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7719 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7720 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7721 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7722 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7723 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7724 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7725 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7726 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7727 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7728
ae2ab2ce
AS
77292002-05-04 Aidan Skinner <aidan@velvet.net>
7730
7731 * ada-exp.tab.c: New file
7732 * ada-exp.y: New file
7733 * ada-lang.c: New file
7734 * ada-lang.h: New file
7735 * ada-lex.c: New file
7736 * ada-lex.l: New file
7737 * ada-tasks.c: New file
7738 * ada-typeprint.c: New file
7739 * ada-valprint.c: New file
7740
0ddd0135
JT
77412002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7742
7743 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7744 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7745
750fbacc
JT
77462002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7747
7748 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7749 insetead of ppc-linux-tdep.o.
7750 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7751 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7752
df94e18a
AC
77532002-06-02 Andrew Cagney <ac131313@redhat.com>
7754
7755 2002-05-07 Christian Groessler <chris@groessler.org>
7756 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7757 bit register contents for little endian hosts.
7758
1a38ab75
AC
77592002-06-01 Andrew Cagney <ac131313@redhat.com>
7760
7761 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7762 any maintainer.
7763
8b1632ac
AC
77642002-06-01 Andrew Cagney <ac131313@redhat.com>
7765
7766 * gdbarch.h: Regenerate.
7767
627054c8
AC
77682002-06-01 Andrew Cagney <ac131313@redhat.com>
7769
7770 * MAINTAINERS: Add everyone to write-after-approval list.
7771
4f460812
AC
77722002-06-01 Andrew Cagney <ac131313@redhat.com>
7773
7774 * stack.c (frame_info): Use frame_register_unwind instead of
7775 saved_regs. Mention when the SP is on the stack or in a register.
7776
7777 * frame.h (frame_register_unwind_ftype): Define. Document.
7778 (struct frame_info): Add field register_unwind and
7779 register_unwind_cache.
7780 (frame_register_unwind): Declare.
7781 (generic_unwind_get_saved_register): Declare.
7782
7783 * frame.c (frame_register_unwind): New function.
7784 (generic_unwind_get_saved_register): New function.
7785
7786 * blockframe.c (generic_call_dummy_register_unwind): New function.
7787 (frame_saved_regs_register_unwind): New function.
7788 (set_unwind_by_pc): New function.
7789 (create_new_frame): New function.
7790 (get_prev_frame): New function.
7791
de888f76
AC
77922002-05-30 Andrew Cagney <ac131313@redhat.com>
7793
7794 * a29k-share/: Delete directory.
7795 * remote-vx29k.c: Delete file.
7796
2f2c3626
JT
77972002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7798
7799 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7800 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7801
9ce5c36a
JT
78022002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7803
7804 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7805 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7806 (sparc64nbsd-nat.o)
7807 (sparcnbsd-nat.o)
7808 (sparcnbsd-tdep.o): New dependency lists.
7809 * NEWS: Note new UltraSPARC NetBSD native configuration.
7810 * configure.host (sparc64-*-netbsd*): New host.
7811 * configure.tgt (sparc-*-netbsdelf*)
7812 (sparc-*-netbsd*): Set gdb_target to nbsd.
7813 (sparc64-*-netbsd*): New target.
7814 * sparc64nbsd-nat.c: New file.
7815 * sparcnbsd-nat.c: New file.
7816 * sparcnbsd-tdep.c: New file.
7817 * sparcnbsd-tdep.h: New file.
7818 * config/sparc/nbsd.mt: New file.
7819 * config/sparc/nbsd64.mh: New file.
7820 * config/sparc/nbsd64.mt: New file.
7821 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7822 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7823 (HOST_IPC): Remove.
7824 * config/sparc/nbsdaout.mt: Remove.
7825 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7826 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7827 (HOST_IPC): Remove.
7828 * config/sparc/nbsdelf.mt: Remove.
7829 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7830 sparc-nat.c compatiblity defines.
7831 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7832 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7833 * config/sparc/tm-nbsd64.h: New file.
7834 * config/sparc/tm-nbsdaout.h: Remove.
7835 * config/sparc/xm-nbsd.h: Remove.
7836
ef3cf062
JT
78372002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7838
7839 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7840 * sparc-tdep.c: Include osabi.h.
7841 (gdbarch_tdep): Add osabi member.
7842 (_initialize_sparc_tdep): Use gdbarch_register.
7843 (sparc_gdbarch_init): Use generic OS ABI framework.
7844 (sparc_dump_tdep): New function.
7845
ee8ff470
KB
78462002-05-30 Kevin Buettner <kevinb@redhat.com>
7847
7848 * corefile.c (do_captured_read_memory_integer): Return non-zero
7849 result.
7850 (safe_read_memory_integer): Copy result of memory read when
7851 status is non-zero. Also, add comments.
7852
7b112f9c
JT
78532002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7854
7855 * Makefile.in (ppc_tdep_h): Define.
7856 (ppc-linux-nat.o)
7857 (ppc-linux-tdep.o)
7858 (rs6000-tdep.o): Use $(ppc_tdep_h).
7859 (ppc-sysv-tdep.o)
7860 (ppcnbsd-nat.o)
7861 (ppcnbsd-tdep.o): New dependency lists.
7862 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7863 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7864 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7865 (ppc_sysv_abi_broken_use_struct_convention)
7866 (ppc_sysv_abi_use_struct_convention)
7867 (ppc_sysv_abi_push_arguments): Move to...
7868 * ppc-sysv-tdep.c: ...here.
7869 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7870 * rs6000-tdep.c (process_note_abi_tag_sections)
7871 (get_elfosabi): Remove.
7872 (rs6000_gdbarch_init): Use generic OS ABI framework.
7873 (rs6000_dump_tdep): New function.
7874 (_initialize_rs6000_tdep): Use gdbarch_register.
7875 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7876 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7877 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7878 of ppc-linux-tdep.o.
7879 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7880 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7881 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7882 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7883 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7884 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7885
480dd42a
JB
78862002-05-29 Jim Blandy <jimb@redhat.com>
7887
7888 * macroscope.c (default_macro_scope): Put `void' in empty argument
7889 list.
7890
4182591f
AC
78912002-05-29 Andrew Cagney <ac131313@redhat.com>
7892
7893 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7894 * arch-utils.c: Include "sim-regno.h".
7895 * gdbarch.sh: Don't include "sim-regno.h".
7896 * gdbarch.h, gdbarch.c: Regenerate.
7897 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7898 here.
7899 * arch-utils.h (legacy_register_sim_regno): To here.
7900 * remote-sim.c (legacy_register_sim_regno): Move function from
7901 here.
7902 * arch-utils.c (legacy_register_sim_regno): To here.
7903
8238d0bf
AC
79042002-05-28 Andrew Cagney <ac131313@redhat.com>
7905
7906 * sim-regno.h: New file.
7907 * Makefile.in (sim_regno_h): Define.
7908 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7909 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7910 (legacy_register_sim_regno): New function.
7911 (one2one_register_sim_regno): New function.
7912 (gdbsim_fetch_register): Rewrite.
7913 (gdbsim_store_register): Only store a register when
7914 REGISTER_SIM_REGNO is valid.
7915 * d10v-tdep.c: Include "sim-regno.h".
7916 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7917 (d10v_ts3_register_sim_regno): Ditto.
7918 * gdbarch.sh: Include "sim-regno.h".
7919 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7920 * gdbarch.h, gdbarch.c: Regenerate.
7921 * arch-utils.h (default_register_sim_regno): Delete declaration.
7922 * arch-utils.c (default_register_sim_regno): Delete function.
7923
485721b1
JT
79242002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7925
7926 * ppcnbsd-nat.c: Rewrite.
7927 * ppcnbsd-tdep.c: New file.
7928 * ppcnbsd-tdep.h: New file.
7929 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7930 solib.o, and solib-svr4.o.
7931 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7932 nbsd-tdep.o, and corelow.o.
7933
697f244d
AC
79342002-05-28 Andrew Cagney <ac131313@redhat.com>
7935
7936 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7937 `tr' and `sed'. Mention that `broken' targets are not expected to
7938 build.
7939
f08caad1 79402002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7941
7942 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7943 Let PC point right after the prologue before looking up symbols.
7944
3139facc
MH
79452002-05-27 Martin M. Hunt <hunt@redhat.com>
7946
7947 * i386-tdep.c (i386_register_virtual_type): Return
7948 builtin_type_vec128i for SSE registers.
7949
7950 * gdbtypes.h (builtin_type_vec128i): Declare.
7951
7952 * gdbtypes.c (build_builtin_type_vec128i): New function.
7953 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7954 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7955 (build_gdbtypes): Initialize new builtin vector types.
7956 (_initialize_gdbtypes): Register new vector types with gdbarch.
7957
6e3ba3b8
JT
79582002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7959
7960 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7961 since it has been multi-arch'd.
7962 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7963 Move Alpha and VAX multi-arch news entries to same section
7964 as other multi-arch news.
7965
93d5585d
JT
79662002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7967
7968 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7969 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7970 static. Rename some register numbers to put them in ns32k-tdep
7971 private namespace.
7972 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7973 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7974 functions.
7975 (_initialize_ns32k_tdep): Use gdbarch_register.
7976 * ns32k-tdep.h: New file.
7977 * ns32knbsd-tdep.c: New file.
7978 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7979 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7980 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7981 REGISTER_BYTES, REGISTER_BYTE): Remove.
7982 * config/ns32k/tm-ns32k.h: New file.
7983 * config/ns32k/tm-umax.h: Remove.
7984
efb2c70e
JT
79852002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7986
7987 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7988 ns32k_store_struct_return, ns32k_extract_return_value,
7989 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7990 functions.
7991 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7992 ns32k_saved_pc_after_call.
7993 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7994 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7995 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7996 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7997 ns32k_extract_struct_value_address.
7998
7bcc927b
JT
79992002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8000
8001 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8002 ns32k_fix_call_dummy): New.
8003 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8004 ns32k_call_dummy_words.
8005 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8006 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8007 CALL_DUMMY_NARGS): Remove.
8008 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8009
78f9d765
JT
80102002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8011
8012 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8013 ns32k_frame_saved_pc, ns32k_frame_args_address,
8014 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8015 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8016 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8017 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8018 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8019 (BREAKPOINT): Remove..
8020 (FRAME_CHAIN): Define as ns32k_frame_chain.
8021 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8022 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8023 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8024 (FRAME_FIND_SAVED_REGS): Remove.
8025 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8026 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8027 (POP_FRAME): Define as ns32k_pop_frame.
8028
f2c762e0
JT
80292002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8030
8031 * ns32k-tdep.c (ns32k_register_byte_32082,
8032 ns32k_register_byte_32382, ns32k_register_raw_size,
8033 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8034 functions.
8035 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8036 ns32k_register_byte_32382.
8037 * config/ns32k/tm-umax.h: Update copyright years.
8038 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8039 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8040 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8041 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8042 (ns32k_get_enter_addr): Fix prototype.
8043
af137673
JT
80442002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8045
8046 * ns32k-tdep.c: Update copyright years.
8047 (ns32k_register_name_32082): New function.
8048 (ns32k_register_name_32382): Ditto.
8049 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8050 (REGISTER_NAME): Define as ns32k_register_name_32382.
8051 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8052 (REGISTER_NAME): Define as ns32k_register_name_32082.
8053
a8bc7b56
JB
80542002-05-24 Jim Blandy <jimb@redhat.com>
8055
8056 * dwarf2read.c (free_line_header): Use xfree, not free.
8057
83a45910
JT
80582002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8059
8060 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8061 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8062
0db71247
AC
80632002-05-23 Andrew Cagney <ac131313@redhat.com>
8064
8065 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8066
b9e5e4dd
AC
80672002-05-23 Andrew Cagney <ac131313@redhat.com>
8068
8069 From Ross Alexander at NEC Europe:
8070 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8071
de530e84
MS
80722002-05-23 Michael Snyder <msnyder@redhat.com>
8073
8074 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8075 for input, rather than parse_and_eval_address.
8076
b91b96f4
AC
80772002-05-23 Andrew Cagney <ac131313@redhat.com>
8078
8079 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8080 * Makefile.in (sim_d10v_h): Update definition.
8081
8b279e7a
AC
80822002-05-24 Andrew Cagney <cagney@redhat.com>
8083
8084 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8085 change `2002-05-22 Michael Snyder' below.
8086 (d10v_push_arguments): Ditto.
8087 (d10v_extract_return_value): Ditto.
8088
0a3d0425
JB
80892002-05-23 Jim Blandy <jimb@redhat.com>
8090
8091 * macrotab.c (check_for_redefinition): Don't complain if the new
8092 definition is the same as the previous one. Take more arguments
8093 to allow the comparison.
8094 (macro_define_object, macro_define_function): Pass more arguments
8095 to check_for_redefinition.
8096
78eac43e
MS
80972002-05-22 Michael Snyder <msnyder@redhat.com>
8098
8099 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8100 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8101 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8102 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8103 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8104 Add a temp variable to save a call (and a memory read).
8105 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8106 if possible (so that PC_IN_CALL_DUMMY will work).
8107
9bc1edb8
CV
81082002-05-22 Corinna Vinschen <vinschen@redhat.com>
8109
8110 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8111
005ef3d2
ML
81122002-05-22 Michal Ludvig <mludvig@suse.cz>
8113
8114 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8115 fde->cie_ptr.
8116 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8117 (dwarf2_build_frame_info): Add offset to fde->initial_location
8118 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
8119 (execute_stack_op): Change type of 'result' from ULONGEST to
8120 CORE_ADDR.
005ef3d2 8121
fcf4f891
JT
81222002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8123
8124 * config/alpha/tm-nbsd.h: Include solib.h.
8125
cfef91e4
JT
81262002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8127
8128 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8129 assumptions about the host's byte order.
8130
9964235a
JT
81312002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8132
8133 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8134 to dependency list.
8135 * alphanbsd-tdep.c: Include solib-svr4.h.
8136 * shnbsd-tdep.c: Ditto.
8137
9eeef8ef
JT
81382002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8139
8140 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8141 nbsd-tdep.h to dependency list.
8142 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8143 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8144 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8145 nbsdaout.mh and nbsdelf.mh consistently.
8146 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8147 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8148 nbsdaout.mt and nbsdelf.mh consistently.
8149 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8150 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8151 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8152 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8153 a.out shared library stuff from here...
8154 * config/nm-nbsdaout.h: ...to here.
8155 * config/tm-nbsd.h: Remove.
8156 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8157 * config/arm/nbsd.mh: Remove.
8158 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8159 nbsd-tdep.o.
8160 * config/arm/nbsdaout.mh: New file.
8161 * config/arm/nbsdelf.mh: New file.
8162 * config/arm/nm-nbsdaout.h: New file.
8163 * config/i386/nbsd.mh: Remove.
8164 * config/i386/nbsd.mt: Remove.
8165 * config/i386/nbsdaout.mh: New file.
8166 * config/i386/nbsdaout.mt: New file.
8167 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8168 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8169 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8170 i386_register_u_addr): Remove.
8171 * config/i386/nm-nbsdaout.h: New file.
8172 * config/i386/nm-nbsdelf.h: Remove.
8173 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8174 (USE_STRUCT_CONVENTION): Remove.
8175 * config/i386/tm-nbsdaout.h: New file.
8176 * config/i386/tm-nbsdelf.h: Remove.
8177 * config/m68k/nbsd.mh: Remove.
8178 * config/m68k/nbsd.mt: Remove.
8179 * config/m68k/nbsdaout.mh: New file.
8180 * config/m68k/nbsdaout.mt: New file.
8181 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8182 * config/m68k/nm-nbsdaout.h: New file.
8183 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8184 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8185 * config/ns32k/nbsd.mh: Remove.
8186 * config/ns32k/nbsd.mt: Remove.
8187 * config/ns32k/nbsdaout.mh: New file.
8188 * config/ns32k/nbsdaout.mt: New file.
8189 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8190 * config/ns32k/nm-nbsdaout.h: New file.
8191 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8192 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8193 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8194 (SVR4_SHARED_LIBS): Remove.
8195 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8196 * config/sparc/nbsd.mh: Remove.
8197 * config/sparc/nbsd.mt: Remove.
8198 * config/sparc/nbsdaout.mh: New file.
8199 * config/sparc/nbsdaout.mt: New file.
8200 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8201 * config/sparc/nbsdelf.mt: New file.
8202 * config/sparc/nm-nbsdaout.h: New file.
8203 * config/sparc/nm-nbsdelf.h: Remove.
8204 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8205 * config/sparc/tm-nbsdaout.h: New file.
8206
257ce470
JT
82072002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8208
8209 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8210 mipsnbsd-tdep.c
8211 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8212
76a6d5fe
JT
82132002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8214
8215 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8216 shnbsd-nat.c.
8217 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8218
45888261
JT
82192002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8220
8221 * NEWS: Note new MIPS NetBSD native configuration.
8222 * configure.host (mips*-*-netbsd*): New host.
8223 * configure.tgt (mips*-*-netbsd*): New target.
8224 * mipsnbsd-nat.c: New file.
8225 * mipsnbsd-tdep.c: New file.
8226 * mipsnbsd-tdep.h: New file.
8227 * config/mips/nbsd.mh: New file.
8228 * config/mips/nbsd.mt: New file.
8229 * config/mips/nm-nbsd.h: New file.
8230 * config/mips/tm-nbsd.h: New file.
8231
70f80edf
JT
82322002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8233
8234 * Makefile.in (SFILES): Add osabi.c.
8235 (COMMON_OBS): Add osabi.o.
8236 (osabi.o): New dependency list.
8237 * osabi.c: New file.
8238 * osabi.h: New file.
8239 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8240
8241 * Makefile.in (alpha_tdep_h): Define and use instead of
8242 alpha-tdep.h.
8243 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8244 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8245 Remove.
8246 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8247 * alpha-tdep.h: Include osabi.h.
8248 (alpha_abi): Remove.
8249 (gdbarch_tdep): Use generic OS ABI framework.
8250 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8251 gdbarch_register_osabi.
8252 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8253 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8254 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8255
8256 * Makefile.in (sh_tdep_h): Add osabi.h.
8257 * sh-tdep.h (sh_osabi): Remove.
8258 (gdbarch_tdep): Use generic OS ABI framework.
8259 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8260 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8261 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8262 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8263
8264 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8265 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8266 gdbarch_register_osabi.
8267 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8268 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8269 (get_elfosabi): Rename to...
8270 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8271 ABI framework support routines.
8272 (arm_gdbarch_init): Use generic OS ABI framework.
8273 (arm_dump_tdep): Likewise.
8274 (_initialize_arm_tdep): Likewise.
8275 * arm-tdep.h: Include osabi.h.
8276 (arm_abi): Remove.
8277 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8278 osabi member.
8279 (arm_gdbarch_register_os_abi): Remove prototype.
8280 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8281 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8282
8283 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8284 * mips-tdep.c: Include osabi.h.
8285 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8286 OS ABI framework.
8287
d194345b
KH
82882002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8289
8290 * h8300-tdep.c: Fix formatting.
8291
70c6b0d1
EZ
82922002-05-20 Elena Zannoni <ezannoni@redhat.com>
8293
8294 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8295 printing vector registers.
8296
165b8e33
AC
82972002-05-19 Andrew Cagney <ac131313@redhat.com>
8298
8299 From Fernando Nasser:
8300 * remote.c (remote_async_open_1): Re-throw the exception when the
8301 connection fails.
8302 (remote_cisco_open): Ditto.
8303 (remote_open_1): Ditto.
8304
36918e70
AC
83052002-05-19 Andrew Cagney <ac131313@redhat.com>
8306
8307 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8308 (remote_start_remote): Add uiout parameter. Pass through to
8309 remote_start_remote_dummy.
8310 (remote_open_1): Use catch_exception instead of catch_errors.
8311 (remote_async_open_1): Ditto.
8312 (remote_cisco_open): Ditto.
8313
ae44c0c4
AC
83142002-05-19 Andrew Cagney <ac131313@redhat.com>
8315
8316 * remote.c (remote_start_remote): Replace PTR with void pointer.
8317 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8318 static.
8319
8efe637d
AC
83202002-05-18 Andrew Cagney <ac131313@redhat.com>
8321
8322 * gdb_indent.sh: Allow the script to be run in the sim directory.
8323
2f1b5984
MK
83242002-05-18 Mark Kettenis <kettenis@gnu.org>
8325
f0f625e2
MK
8326 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8327 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8328
2f1b5984
MK
8329 * corelow.c (core_open): Only call set_gdbarch_from_file if
8330 exec_bfd is NULL.
8331
fc974602
AV
83322002-05-17 Andrey Volkov <avolkov@transas.com>
8333
8334 * h8300-tdep.c: Add support of EXR register
8335 * config/h8300/tm-h8300.h: Ditto.
8336
906709f4
AV
83372002-05-17 Andrey Volkov <avolkov@transas.com>
8338
8339 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8340
6e591d68
AV
83412002-05-17 Andrey Volkov <avolkov@transas.com>
8342
8343 * h8300-tdep.c: Change literal regnums to REGNO.
8344
84f0252a
JB
83452002-05-17 Jim Blandy <jimb@redhat.com>
8346
e0e9281e
JB
8347 * NEWS: Note addition of macro support.
8348
84f0252a
JB
8349 Expand preprocessor macros in C expressions.
8350 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8351 (scan_macro_expansion, scanning_macro_expansion,
8352 finished_macro_expansion): New function declarations.
8353 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8354 variable declarations.
8355 * parser-defs.h (expression_context_pc): New declaration.
8356 * parse.c (expression_context_pc): New variable.
8357 (parse_exp_1): Set expression_context_pc, as well as
8358 expression_context_block.
8359 * c-exp.y (yylex): If we're not already reading the result of a
8360 macro expansion, try to macro-expand the next token. When we're
8361 done scanning a macro expansion, switch back to the mainline text.
8362 Commas and `if's in a macro's expansion don't terminate the input.
8363 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8364 (macro_original_text, macro_expanded_text,
8365 expression_macro_lookup_func, expression_macro_lookup_baton): New
8366 variables.
8367 (scan_macro_expansion, scanning_macro_expansion,
8368 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8369 c_preprocess_and_parse): New functions.
8370 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8371 c_preprocess_and_parse, instead of c_parse.
8372 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8373 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8374
1c509ca8
JR
8375Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8376
8377 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8378 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8379 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8380
2250ee0c
CV
83812002-05-17 Corinna Vinschen <vinschen@redhat.com>
8382
8383 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8384
ab3b8126
JT
83852002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8386
8387 * Makefile.in (sh_tdep_h): Define and use.
8388 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8389 register enum): Move to...
8390 * * sh-tdep.h: ...here.
8391 * sh-tdep.c: Include sh-tdep.h.
8392 * sh3-rom.c: Likewise.
8393 * shnbsd-tdep.c: Likewise.
8394
ed9d4749
MS
83952002-05-16 Michael Snyder <msnyder@redhat.com>
8396
8397 * arm-tdep.c: Spelling fix in comment.
8398
2e276125
JB
83992002-05-16 Jim Blandy <jimb@redhat.com>
8400
6821892e
JB
8401 Add commands for manually expanding macros and showing their
8402 definitions.
8403 * macrocmd.c, macroscope.c, macroscope.h: New files.
8404 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8405 (macroscope_h): New variable.
8406 (HFILES_NO_SRCDIR): Add macroscope.h.
8407 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8408 (macroscope.o, macrocmd.o): New rules.
8409
2e276125
JB
8410 Teach the Dwarf 2 reader to read macro information.
8411 * dwarf2read.c: #include "macrotab.h".
8412 (dwarf_macinfo_buffer): New variable.
8413 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8414 dwarf_macinfo_size.
8415 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8416 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8417 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8418 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8419 dwarf2_macro_spaces_in_definition): New complaints.
8420 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8421 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8422 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8423 the partial symbol table.
8424 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8425 from what's recorded in the partial symbol table.
8426 (read_file_scope): If the compilation unit has a
8427 `DW_AT_macro_info' attribute, read its macro information.
8428 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8429
2f53fe6c
DJ
84302002-05-16 Daniel Jacobowitz <drow@mvista.com>
8431
8432 Fix PR gdb/546
8433 * ser-tcp.c: Don't include <netinet/udp.h>.
8434
2be99286
SC
84352002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8436
8437 * MAINTAINERS: Update my email address.
8438
c9af212b 84392002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8440
8441 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8442 include file of the same name.
8443
bf5f1a52
CV
84442002-05-16 Corinna Vinschen <vinschen@redhat.com>
8445
8446 * configure.tgt: Mark v850 as multi-arched.
8447 * config/v850/tm-v850.h: Remove file.
8448 * config/v850/v850.mt: Eliminate TM_FILE.
8449
435e042a
CV
84502002-05-16 Corinna Vinschen <vinschen@redhat.com>
8451
8452 * v850-tdep.c: Full multi-arch.
8453 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8454 Define GDB_MULTI_ARCH to 2.
8455
9819c6c8
PM
84562002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8457
8458 * p-exp.y (current_type): New static variable.
8459 Carries the type of the expression at the position that is parsed.
8460 (push_current_type, pop_current_type): Two new functions. Used
8461 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8462 (search_field): New static variable. Set to one after parsing a point
8463 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8464 (FIELDNAME): New token. After a point only a token belonging to
8465 current_type type definition is allowed.
8466 (all over token rules): reset and change current_type according
8467 to rules.
8468 (exp '[' rule): insert implicit array index field if
8469 exp is a pascal string type.
8470
3a06899a
CV
84712002-05-16 Corinna Vinschen <vinschen@redhat.com>
8472
8473 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8474 frame info. Use frame_info's saved_regs instead of matching member
8475 in extra_frame_info throughout.
8476 (v850_frame_init_saved_regs): New function.
8477 (v850_init_extra_frame_info): Move most functionality into
8478 v850_frame_init_saved_regs().
8479 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8480 (v850_frame_find_saved_regs): Remove declaration.
8481 (FRAME_FIND_SAVED_REGS): Remove definition.
8482 (v850_frame_init_saved_regs): Add declaration.
8483 (FRAME_INIT_SAVED_REGS): Add definition.
8484
6ed14b0e
CV
84852002-05-16 Corinna Vinschen <vinschen@redhat.com>
8486
8487 * v850-tdep.c: Begin multi-arch'ing v850.
8488 (v850_target_architecture_hook): Remove function.
8489 (v850_gdbarch_init): New function. Add code previously in
8490 v850_target_architecture_hook().
8491 (_initialize_v850_tdep): Don't set target_architecture_hook.
8492 Call register_gdbarch_init() instead.
8493
42725910
DJ
84942002-05-16 Daniel Jacobowitz <drow@mvista.com>
8495
8496 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8497 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8498 (fixup_class_method_type): Likewise.
8499
99d9066e
JB
85002002-05-15 Jim Blandy <jimb@redhat.com>
8501
8502 Add macro structures to GDB's symbol tables. Nobody puts anything
8503 in them yet.
8504 * symtab.h (struct symtab): New member: `macro_table'.
8505 * buildsym.h (pending_macros): New global variable.
8506 * buildsym.c: #include "macrotab.h".
8507 (buildsym_init): Initialize `pending_macros'.
8508 (end_symtab): If we found macro information while reading a CU's
8509 debugging info, do build a symtab structure for it. Make the
8510 symtab point to the macro information, and clear the
8511 `pending_macros' pointer which held it while we were reading the
8512 debug info.
8513 (really_free_pendings): Free any pending macro table.
8514 * objfiles.h (struct objfile): New member: `macro_cache'.
8515 * objfiles.c (allocate_objfile): Set allocate and free functions
8516 for the macro cache's objstack.
8517 (free_objfile): Empty the macro cache's obstack.
8518 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8519 set new allocate and free functions for it.
8520 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8521 free functions for the macro cache's objstack. (Why is this
8522 function building its own objfile?)
8523 * symmisc.c (print_objfile_statistics): Print statistics on the
8524 macro bcache.
8525 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8526
c899585b
RE
85272002-05-15 Richard Earnshaw <rearnsha@arm.com>
8528
8529 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8530 (REGISTER_U_ADDR): Delete definition.
8531 (arm_register_u_addr): Delete declaration.
8532
a6cdd8c5
RE
85332002-05-15 Richard Earnshaw <rearnsha@arm.com>
8534
8535 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8536 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8537
c97dcfc7
AC
85382002-05-14 Andrew Cagney <ac131313@redhat.com>
8539
8540 * regcache.c (register_valid): Revise comments refering to "Not
8541 available" and "unavailable".
8542 * frame.c (frame_register_read): Ditto.
8543 * findvar.c (value_of_register): Ditto.
8544
93021b7d
AC
85452002-05-15 Andrew Cagney <cagney@redhat.com>
8546
8547 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8548 (remote-sim.o): Update dependencies.
8549 (d10v-tdep.o): Specify dependencies.
8550 (sim_d10v_h): Define.
8551
a86bc61c
JB
85522002-05-14 Jim Blandy <jimb@redhat.com>
8553
8554 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8555 * macrotab.c (macro_lookup_inclusion, find_definition,
8556 new_macro_table): Same.
8557
8558 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8559 not `! strcmp ()'. This is a dubious improvement.
8560 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8561
8562 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8563 although it's not necessary, to avoid a warning.
8564
2fdde8f8
DJ
85652002-05-14 Daniel Jacobowitz <drow@mvista.com>
8566
8567 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8568 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8569 TYPE_INSTANCE_FLAGS.
8570 (struct main_type): New.
8571 (struct type): Move most members to struct main_type. Change
8572 cv_type and as_type to new type_chain member. Add instance_flags.
8573 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8574 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8575 (finish_cv_type): Remove prototype.
8576 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8577 Set TYPE_CHAIN.
8578 (alloc_type_instance): New function.
8579 (smash_type): New function.
8580 (make_pointer_type, make_reference_type, make_function_type)
8581 (smash_to_member_type, smash_to_method_type): Call smash_type.
8582 (make_qualified_type): New function.
8583 (make_type_with_address_space): Call make_qualified_type.
8584 (make_cv_type): Likewise.
8585 (finish_cv_type): Remove unnecessary function.
8586 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8587 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8588 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8589 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8590 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8591 * hpread.c (hpread_read_struct_type): Likewise.
8592 * stabsread.c (read_struct_type): Likewise.
8593
843fedf4
EZ
85942002-05-14 Elena Zannoni <ezannoni@redhat.com>
8595
8596 * configure.tgt: Add a catch all sh* target, for cases like
8597 sh[2,3,4]-elf and sh-hms.
8598
05a6c72c
KS
85992002-05-14 Keith Seitz <keiths@redhat.com>
8600
8601 * event-loop.c (create_file_handler): Don't do anything but
8602 update data when we are given a fd which we are already
8603 monitoring.
8604
5d085aaf
ML
86052002-05-14 Michal Ludvig <mludvig@suse.cz>
8606
8607 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8608 (update_context): Use __func__ in warnings.
8609
9db8d71f
DJ
86102002-05-14 Daniel Jacobowitz <drow@mvista.com>
8611
8612 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8613 and tcp_close to net_open and net_close.
8614 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8615 using UDP if requested. Don't try to disable Nagle on UDP
8616 sockets.
8617 * remote.c (remote_serial_open): New function. Warn about UDP.
8618 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8619
5dbc6baa
EZ
86202002-05-13 Elena Zannoni <ezannoni@redhat.com>
8621
8622 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8623
cc3023f7
EZ
86242002-05-13 Elena Zannoni <ezannoni@redhat.com>
8625
8626 * configure.tgt: Remove sh-hms target.
8627 * MAINTAINERS: Don't list sh-hms as a separate target.
8628
ec2bcbe7
JB
86292002-05-13 Jim Blandy <jimb@redhat.com>
8630
8631 Add first preprocessor macro-expansion files.
8632 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8633 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8634 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8635 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8636 (COMMON_OBS): Add macrotab.o, macroexp.o.
8637 (macroexp.o, macrotab.o): New rules.
8638
6d531722
AC
86392002-05-13 Andrew Cagney <ac131313@redhat.com>
8640
8641 * config/m88k/tm-m88k.h: Update copyright.
8642 (m88k_target_write_pc): Declare
8643 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8644 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8645 (SHIFT_INST_REGS): Update definition.
8646 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8647 using old definition of TARGET_WRITE_PC.
8648 * regcache.c (generic_target_write_pc): Delete code handling
8649 NNPC_REGNUM.
8650 * gdbarch.sh (NNPC_REGNUM): Delete.
8651 * gdbarch.h, gdbarch.c: Regenerate.
8652
3e3f2739
RE
86532002-05-13 Richard Earnshaw <rearnsha@arm.com>
8654
8655 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8656 builtin reg number.
8657
0004e5a2
DJ
86582002-05-13 Daniel Jacobowitz <drow@mvista.com>
8659
8660 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8661 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8662 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8663 access macros.
8664 * c-typeprint.c (cp_type_print_method_args): Likewise.
8665 (c_type_print_args): Likewise.
8666 * d10v-tdep.c (d10v_push_arguments): Likewise.
8667 (d10v_extract_return_value): Likewise.
8668 * expprint.c (print_subexp): Likewise.
8669 * gdbtypes.c (lookup_primitive_typename): Likewise.
8670 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8671 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8672 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8673 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8674 (TYPE_VECTOR): Likewise.
8675 * hpread.c (hpread_read_struct_type)
8676 (fix_static_member_physnames, fixup_class_method_type)
8677 (hpread_type_lookup): Likewise.
8678 * mdebugread.c (parse_symbol, parse_type): Likewise.
8679 * p-lang.c (is_pascal_string_type): Likewise.
8680 * valops.c (hand_function_call): Likewise.
8681 * x86-64-tdep.c (classify_argument): Likewise.
8682
8683 * hpread.c (hpread_read_function_type)
8684 (hpread_read_doc_function_type): Call replace_type.
8685 * dstread.c (create_new_type): Delete.
8686 (decode_dst_structure, process_dst_function): Call alloc_type.
8687 Use type access macros.
8688
dff95cc7
MK
86892002-05-12 Mark Kettenis <kettenis@gnu.org>
8690
8691 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8692 the're not supported by the current architecture.
8693 (i387_fill_fxsave): Likewise.
8694
bbcd32ad
FF
86952002-05-12 Fred Fish <fnf@redhat.com>
8696
8697 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8698 sect_index_xxx members to index the first slot in section_offsets
8699 if all of the section_offsets are zero.
8700
89cf4787
MK
87012002-05-12 Mark Kettenis <kettenis@gnu.org>
8702
8703 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8704 checked in with last change.
8705
1f77ffc5
MK
87062002-05-12 Mark Kettenis <kettenis@gnu.org>
8707
8708 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8709 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8710 config.sub.
8711
89b8b4a9
DJ
87122002-05-12 Daniel Jacobowitz <drow@mvista.com>
8713
8714 * Makefile.in: Update dependencies.
8715
14a5e767
AC
87162002-05-11 Andrew Cagney <ac131313@redhat.com>
8717
8718 * language.c (local_hex_string_custom): Simplify. Do not depend
8719 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8720
8721 * memattr.c (mem_info_command): Replace calls to
8722 longest_local_hex_string and longest_local_hex_string_custom.
8723 * buildsym.c (make_blockvector): Ditto.
8724 * solib.c (info_sharedlibrary_command): Ditto.
8725 * tracepoint.c (tracepoints_info): Ditto.
8726 * symtab.c (print_msymbol_info): Ditto.
8727
8728 * language.c (local_hex_string): Delete.
8729 (local_hex_string_custom): Delete.
8730 (longest_local_hex_string): Rename to local_hex_string.
8731 (longest_local_hex_string_custom): Rename to
8732 local_hex_string_custom.
8733 * language.h (local_hex_string): Change parameter type to LONGEST.
8734 (local_hex_string_custom): Ditto.
8735 (longest_local_hex_string): Delete declaration.
8736 (longest_local_hex_string_custom): Ditto.
8737
8738 * solib.c: Update copyright.
8739 * memattr.c: Update copyright.
8740
13d01224
AC
87412002-05-11 Andrew Cagney <ac131313@redhat.com>
8742
8743 * arch-utils.h (legacy_register_to_value): Declare.
8744 (legacy_value_to_register): Declare.
8745 (legacy_convert_register_p): Declare.
8746 * arch-utils.c (legacy_register_to_value): New function.
8747 (legacy_value_to_register): New function.
8748 (legacy_convert_register_p): New function.
8749
8750 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8751 (VALUE_TO_REGISTER): Define.
8752 (CONVERT_REGISTER_P): Define.
8753 * gdbarch.h, gdbarch.c: Regenerate.
8754
8755 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8756 VALUE_TO_REGISTER.
8757 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8758 CONVERT_REGISTER_P.
8759
4a1970e4
DJ
87602005-05-11 Daniel Jacobowitz <drow@mvista.com>
8761 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8762
8763 * Makefile.in: Update dependencies for valops.c.
8764 * valops.c: Include "gdb_assert.h".
8765 (typecmp): Skip THIS parameter to methods.
8766 (find_method_list): Remove static_memfuncp argument,
8767 update callers. Check for stub methods.
8768 (find_value_oload_method_list): Don't set *static_memfuncp.
8769 (find_overload_match): Don't check for stub methods. Assert
8770 that methods are not stubbed. Handle static methods.
8771 (value_find_oload_method_list): Remove static_memfuncp argument.
8772 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8773 to the argument list for static stub methods.
8774 * value.h (value_find_oload_method_list): Update prototype.
8775
b2e75d78
AC
87762002-05-11 Andrew Cagney <ac131313@redhat.com>
8777
8778 * arch-utils.h (generic_register_size): Declare.
8779 (generic_register_raw_size, generic_register_virtual_size): Delete
8780 declarations.
8781 * arch-utils.c (generic_register_raw_size): Delete.
8782 (generic_register_size): New function.
8783 (generic_register_virtual_size): Delete.
8784
8785 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8786 default generic_register_size.
8787 * gdbarch.h, gdbarch.c: Re-generate.
8788
8789 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8790 register_virtual_size.
8791 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8792 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8793
451fbdda
AC
87942002-05-11 Andrew Cagney <ac131313@redhat.com>
8795
8796 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8797 * gdbarch.h, gdbarch.c: Regenerate.
8798 * gnu-v3-abi.c: Update copyright.
8799 (vtable_address_point_offset): Update.
8800 (gnuv3_rtti_type): Update.
8801 (gnuv3_baseclass_offset): Update.
8802 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8803 (init_fetch_link_map_offsets): Update.
8804 * remote.c (get_remote_state): Update.
8805
6d2f5cea
DJ
88062002-05-11 Daniel Jacobowitz <drow@mvista.com>
8807
8808 * TODO: Remove value_headof/value_from_vtable_info comment.
8809 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8810 * values.c (value_headof, value_from_vtable_info): Delete.
8811 * value.h (value_from_vtable_info): Delete prototype.
8812
d2324da4
AC
88132002-05-11 Andrew Cagney <ac131313@redhat.com>
8814
8815 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8816 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8817 $(gdb_regex_h).
8818 (gdb_assert_h): Define.
8819 (gdb_wait_h): Define.
8820 (gdb_regex_h): Define.
8821
5c717440
DJ
88222002-05-11 Daniel Jacobowitz <drow@mvista.com>
8823
8824 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8825 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8826
6c7861b3
JT
88272002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8828
8829 * nbsd-tdep.c: Fix comment.
8830
ea5bc2a6
JT
88312002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8832
8833 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8834 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8835 (nbsd-tdep.o): New dependency list.
8836 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8837 nbsd-tdep.h.
8838 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8839 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8840 * nbsd-tdep.c: New file.
8841 * nbsd-tdep.h: New file.
8842 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8843 nbsd-tdep.h.
8844 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8845 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8846 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8847 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8848
b28da865
JT
88492002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8850
8851 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8852 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8853 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8854 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8855 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8856 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8857
4b8ff1fa
JT
88582002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8859
8860 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8861 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8862 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8863 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8864 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8865 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8866 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8867
dfe6eb1f
JT
88682002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8869
8870 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8871 fetch_elfcore_registers to...
8872 * i386nbsd-tdep.c: ...here.
8873 (i386nbsd_use_struct_convention): Rename to...
8874 (i386nbsd_aout_use_struct_convention): ...this.
8875 (i386nbsd_supply_reg): New function.
8876 (i386nbsd_fill_reg): New function.
8877 (fetch_core_registers): Use i386nbsd_supply_reg.
8878 (fetch_elfcore_registers): Likewise.
8879 (_initialize_i386nbsd_tdep): New function.
8880 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8881 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8882 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8883 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8884 (i386nbsd_aout_use_struct_convention): ...this.
8885
20cb8cda
JT
88862002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8887
8888 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8889 (store_inferior_registers): Use shnbsd_fill_reg.
8890 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8891 sh_nbsd_supply_register): Collapse into...
8892 (shnbsd_supply_reg): ...this.
8893 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8894 (shnbsd_fill_reg): ...this.
8895 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8896 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8897 (fetch_core_registers): Use shnbsd_supply_reg.
8898 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8899 (sh_nbsd_core_fns): Rename to...
8900 (shnbsd_core_fns): ...this.
8901 (sh_nbsd_elfcore_fns): Rename to...
8902 (shnbsd_elfcore_fns): ...this.
8903 (sh_nbsd_init_abi): Rename to...
8904 (shnbsd_init_abi): ...this.
8905 (_initialize_sh_nbsd_tdep): Rename to...
8906 (_initialize_shnbsd_tdep): ...this.
8907 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8908 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8909 sh_nbsd_fill_register): Remove prototypes.
8910 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8911
e750d25e
JT
89122002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8913
8914 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8915 (i387-nat.o): Delete dependency list.
8916 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8917 (x86-64-linux-nat.o): Likewise.
8918 * i387-nat.c: Delete file, moving contents to...
8919 * i387-tdep.c: ...here.
8920 * i387-nat.h: Rename...
8921 * i387-tdep.h: ...to this.
8922 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8923 * i386-linux-nat.c: Likewise.
8924 * i386bsd-nat.c: Likewise.
8925 * i386gnu-nat.c: Likewise.
8926 * i386nbsd-nat.c: Likewise.
8927 * i386v4-nat.c: Likewise.
8928 * x86-64-linux-nat.c: Likewise.
8929 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8930 * config/i386/go32.mh (NATDEPFILES): Likewise.
8931 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8932 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8933 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8934 * config/i386/linux.mh (NATDEPFILES): Likewise.
8935 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8936 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8937 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8938 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8939
1aee598a
JT
89402002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8941
8942 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8943 (alphanbsd-nat.o): Remove dependency list.
8944 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8945 * alphanbsd-nat.c: Delete. Contents moved to...
8946 * alphanbsd-tdep.c: ...here.
8947 (_initialize_alphanbsd_tdep): Register core functions.
8948 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8949
12bcb0fe
JT
89502002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8951
8952 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8953 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8954 (alphanbsd-nat.o): Likewise.
8955 (alphabsd-tdep.o): New dependency list.
8956 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8957 (fill_gregset): Use alphabsd_fill_reg.
8958 (supply_fpregset): Use alphabsd_supply_fpreg.
8959 (fill_fpregset): Use alphabsd_fill_fpreg.
8960 (fetch_inferior_registers): Use struct reg and struct fpreg
8961 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8962 and alphabsd_supply_fpreg.
8963 (store_inferior_registers): Use struct reg and struct fpreg
8964 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8965 and alphabsd_fill_fpreg.
8966 * alphabsd-tdep.c: New file.
8967 * alphabsd-tdep.h: New file.
8968 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8969 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8970 alphabsd_supply_fpreg.
8971 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8972 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8973
361d1df0
EC
89742002-05-11 Eric Christopher <echristo@redhat.com>
8975
8976 * mips-tdep.c (mips_double_register_type): Fix thinko.
8977 (mips_single_register_type): Ditto.
8978 * MAINTAINERS: Add self.
8979
92dd7cee
MK
89802002-05-11 Mark Kettenis <kettenis@gnu.org>
8981
8982 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8983 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8984 right thing on architectures with different endianness and/or
8985 integer sizes.
8986
e27da16d
JT
89872002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8988
8989 From Christian Limpach <chris@Pin.LU>
8990 * configure.in: Change sed expression which comments out
8991 NATDEPFILES to also comment out continuation lines.
8992 * configure: Regenerate.
8993
ddde02bd
EZ
89942002-05-10 Elena Zannoni <ezannoni@redhat.com>
8995
8996 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8997 big patch.
8998
1c922164
EZ
89992002-05-10 Elena Zannoni <ezannoni@redhat.com>
9000
9001 * sh-tdep.c: Include correct file.
9002
283150cd
EZ
90032002-05-10 Elena Zannoni <ezannoni@redhat.com>
9004
9005 New support for sh64-elf (sh5) target.
9006
9007 * configure.tgt: For sh64-elf target, default to sh-elf.
9008
9009 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9010 (struct gdbarch_tdep): Add new fields for new registers and ABI
9011 info.
361d1df0 9012
283150cd
EZ
9013 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9014 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9015 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9016 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9017 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9018 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9019 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9020 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9021 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9022 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9023 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9024 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9025 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9026 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9027 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9028 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9029 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9030 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9031 sign_extend, sh64_nofp_frame_init_saved_regs,
9032 sh64_init_extra_frame_info, sh64_get_saved_register,
9033 sh64_extract_struct_value_address, sh64_pop_frame,
9034 sh64_push_arguments, sh64_extract_return_value,
9035 sh64_store_return_value, sh64_show_media_regs,
9036 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9037 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9038 sh_sh64_register_virtual_type,
9039 sh_sh64_register_convert_to_virtual,
9040 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9041 sh64_register_read, sh64_pseudo_register_write,
9042 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9043 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9044 sh64_do_pseudo_register, sh_compact_do_registers_info,
9045 sh64_do_registers_info, sh_gdbarch_init): New functions.
9046
3117ed25
EZ
90472002-05-10 Elena Zannoni <ezannoni@redhat.com>
9048
9049 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9050
2654e6d4
DJ
90512002-05-10 Daniel Jacobowitz <drow@mvista.com>
9052
9053 * linespec.c (decode_line_1): Check for a double quote after
9054 a filename correctly.
9055
9ab3e532
JB
90562002-05-10 Jim Blandy <jimb@redhat.com>
9057
9058 Properly track the size of the current objfile's .debug_line section.
9059 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9060 (DWARF_LINE_SIZE): New macro.
9061 (dwarf2_build_psymtabs_hard): Record the line section's size in
9062 the partial symbol table.
9063 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9064 symbol table.
9065
126fa72d
PS
90662002-05-10 Petr Sorfa <petrs@caldera.com>
9067
9068 * ia64-tdep.c: Handle breakpoints on L instruction type
9069 in MLX instruction bundle by moving the breakpoint to
9070 the third slot (X instruction type) as L holds only data.
9071
1f077a3e
KB
90722002-05-10 Kevin Buettner <kevinb@redhat.com>
9073
9074 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9075 (process_one_symbol): Complain about discarding local symbols
9076 due to a misplaced N_LBRAC entry.
9077
8120c9d5 90782002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
9079
9080 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
9081 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9082 decrease the depth we are at, in the case of templates.
361d1df0 9083
67b2c998
DJ
90842002-05-09 Daniel Jacobowitz <drow@mvista.com>
9085
9086 * mips-tdep.c (mips_float_register_type): New function.
9087 (mips_double_register_type): New function.
9088 (mips_print_register): Use them.
9089 (do_fp_register_row): Likewise.
9090
fd326606
DJ
90912002-05-09 Daniel Jacobowitz <drow@mvista.com>
9092
6609d9af 9093 * signals/signals.c (signals): Remove conditional compilation around
fd326606 9094 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 9095 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 9096
bef35864
MS
90972002-05-09 Michael Snyder <msnyder@redhat.com>
9098
9099 * remote-rdp.c (remote_rdp_can_run): Remove.
9100
c55a3f73
TT
91012002-05-09 Tom Tromey <tromey@redhat.com>
9102
9103 * jv-valprint.c (java_val_print): Handle `char' as a special case
9104 of TYPE_CODE_INT.
9105
b8d5e71d
MS
91062002-05-09 Michael Snyder <msnyder@redhat.com>
9107
9108 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9109 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 9110 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 9111 str r(0123),[sp,#nn].
361d1df0 9112 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
9113 order-independent by placing it in a loop.
9114
e2cd42dd
MS
91152002-05-06 Michael Snyder <msnyder@redhat.com>
9116
9117 * stabsread.c (read_type): Add recognition for new attribute:
9118 "@V;" means that an array type is actually a vector.
9119 This is analogous to the vector flag that's been added to dwarf2.
9120
3ce1502b
MK
91212002-05-09 Mark Kettenis <kettenis@gnu.org>
9122
9123 * i386-tdep.h (i386_abi): New enum.
9124 (struct gdbarch_tdep): Replace os_ident member with abi.
9125 (i386_gdbarch_register_os_abi): New prototype.
9126 * i386-tdep.c (i386_abi_names): New array.
9127 (process_note_abi_tag_sections): Removed.
9128 (process_note_sections): New function.
9129 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9130 (struct i386_abi_handler): New struct.
9131 (i386_abi_handler_list): New variable.
9132 (i386_gdbarch_register_os_abi): New function.
9133 (i386_gdbarch_init): Adapt for the changes given above.
9134
084c156a
DJ
91352002-05-08 Daniel Jacobowitz <drow@mvista.com>
9136
9137 * gregset.h: Say "GNU/Linux".
9138
6599f021
EZ
91392002-05-08 Elena Zannoni <ezannoni@redhat.com>
9140
9141 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9142 (build_gdbtypes): Build builtin_type_v2_float.
9143 (_initialize_gdbtypes): Register new builtin type.
9144
40af4b0c
AC
91452002-05-08 Andrew Cagney <ac131313@redhat.com>
9146
9147 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9148 (clear_gdbarch_swap): New function.
9149 (initialize_non_multiarch): Call.
9150 (gdbarch_update_p): Before calling init(), swap out and clear the
9151 existing architecture.
9152 * gdbarch.c: Regenerate.
9153
4fe84f46
JT
91542002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9155
9156 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9157 alphanbsd-tdep.c.
9158
4015edd1
JT
91592002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9160
9161 * sh-nbsd-nat.c: Rename to...
9162 * shnbsd-nat.c: ...this.
9163 * sh-nbsd-tdep.c: Rename to...
9164 * shnbsd-tdep.c: ...this.
9165 * sh-nbsd-tdep.h: Rename to...
9166 * shnbsd-tdep.h: ...this.
9167 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9168 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9169
0e2bd219
RE
91702002-05-08 Richard Earnshaw <rearnsha@arm.com>
9171
9172 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9173 concatenation for command help messages.
9174
13a38d45
JT
91752002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9176
9177 * NEWS: Note new sh*-*-netbsdelf* configuration.
9178 * configure.host: Set gdb_host_cpu to sh for all sh*.
9179 (sh*-*-netbsdelf*): New host.
9180 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9181 (sh*-*-netbsdelf*): New target.
9182 * sh-nbsd-nat.c: New file.
9183 * sh-nbsd-tdep.c: New file.
9184 * sh-nbsd-tdep.h: New file.
9185 * config/sh/nbsd.mh: New file.
9186 * config/sh/nbsd.mt: New file.
9187 * config/sh/nm-nbsd.h: New file.
9188 * config/sh/tm-nbsd.h: New file.
9189
d658f924
JT
91902002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9191
9192 * sh-tdep.c (sh_osabi_names): Declare.
9193 (process_note_abi_tag_sections): New function.
9194 (get_elfosabi): Ditto.
9195 (sh_gdbarch_register_os_abi): Ditto.
9196 (sh_dump_tdep): Ditto.
9197 _initialize_sh_tdep): Use gdbarch_register to register
9198 sh_gdbarch_init and sh_dump_tdep.
9199 * config/sh/tm-sh.h (sh_osabi): Declare.
9200 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9201
848cfffb
AC
92022002-05-07 Andrew Cagney <ac131313@redhat.com>
9203
9204 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9205 (thumb_scan_prologue): Ditto.
9206 (arm_find_callers_reg): Ditto.
9207 (arm_frame_chain): Ditto.
9208 (arm_init_extra_frame_info): Ditto.
9209 (arm_frame_saved_pc): Ditto.
9210 (arm_pop_frame): Ditto.
9211 (arm_push_return_address): New function.
9212 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9213 call_dummy_location, call_dummy_breakpoint_offset_p,
9214 call_dummy_breakpoint_offset, call_dummy_p,
9215 call_dummy_stack_adjust_p, call_dummy_words,
9216 sizeof_call_dummy_words, call_dummy_start_offset,
9217 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9218 call_dummy_address, push_return_address and push_dummy_frame for
9219 generic dummy frames.
9220
e7d717c0
JT
92212002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9222
9223 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9224 size computation for alloca.
9225 (sh_fp_frame_init_saved_regs): Likewise.
9226
7bbcf283
RE
92272002-05-07 Richard Earnshaw <rearnsha@arm.com>
9228
9229 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9230 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9231 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9232 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9233 * remote-rdp.c (remote_rdp_fetch_register): Use
9234 ARM_MAX_REGISTER_RAW_SIZE.
9235 (remote_rdp_store_register): Likewise.
9236
4657573b
ML
92372002-05-07 Michal Ludvig <mludvig@suse.cz>
9238
361d1df0 9239 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9240 added default labels to switch {} statements.
9241 * x86-64-tdep.c: Ditto.
9242 * x86-64-linux-nat.c: Ditto.
9243
010f3b2f
JT
92442002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9245
9246 * solib.h: Protect against multiple inclusion.
9247
debd256d
JB
92482002-05-06 Jim Blandy <jimb@redhat.com>
9249
9ab3e532
JB
9250 Add first preprocessor macro-expansion files.
9251 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9252 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9253 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9254 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9255 (COMMON_OBS): Add macrotab.o, macroexp.o.
9256 (macroexp.o, macrotab.o): New rules.
9257
debd256d
JB
9258 Separate the job of reading the line number info statement program
9259 header (...expialidocious) out into its own function.
9260 * dwarf2read.c (struct line_head, struct filenames, struct
9261 directories): Replace with...
9262 (struct line_header): New structure, containing the full
9263 contents of the statement program header, including the
9264 include directory and file name tables.
9265 (read_file_scope): If we have line number info, instead of just
9266 calling dwarf_decode_lines to do all the work, call
9267 dwarf_decode_line_header first to get a `struct line_header'
9268 containing the data in the statement program header, and then
9269 pass that to dwarf_decode_lines, which will pick up where that
9270 left off. Be sure to clean up the `struct line_header' object.
9271 (dwarf_decode_line_header, free_line_header, add_include_dir,
9272 add_file_name): New functions.
9273 (dwarf_decode_lines): Move all the code to read the statement
9274 program header into dwarf_decode_line_header. Take the line
9275 header it built as the first argument, instead of the offset to
9276 the compilation unit's line number info. Use the new `struct
9277 line_header' type instead of the old structures. No need to do
9278 cleanups here now, since we don't allocate anything.
9279 (dwarf2_statement_list_fits_in_line_number_section,
9280 dwarf2_line_header_too_long): New complaints.
9281
ac3aafc7
EZ
92822002-05-06 Elena Zannoni <ezannoni@redhat.com>
9283
9284 * gdbtypes.c (init_vector_type): New function.
9285 (build_builtin_type_vec128): Simplify the representation of SIMD
9286 registers.
9287 (build_gdbtypes): Initialize new builtin vector types.
9288 (_initialize_gdbtypes): Register new vector types with gdbarch.
9289 (builtin_type_v4_float, builtin_type_v4_int32,
9290 builtin_type_v8_int16, builtin_type_v16_int8,
9291 builtin_type_v2_int32, builtin_type_v4_int16,
9292 builtin_type_v8_int8): New (renamed) SIMD types.
9293
13e49980
MK
92942002-05-06 Mark Kettenis <kettenis@gnu.org>
9295
9296 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9297 (i387_fill_fxsave): Likewise.
9298
997b20b8
AO
92992002-05-05 Alexandre Oliva <aoliva@redhat.com>
9300
9301 * alpha-tdep.c (alpha_extract_return_value): Don't use
9302 non-constant array size in prototype.
9303
535c96ce
AC
93042002-05-04 Andrew Cagney <ac131313@redhat.com>
9305
9306 From Brian Taylor <briant at model dot com>:
9307 * ui-out.c (ui_out_field_core_addr): Use the function
9308 longest_local_hex_string_custom'to format addresses > 32 bits
9309 wide.
9310
9311 * ui-out.c (ui_out_field_core_addr): Update comment.
9312
bedfa57b
AC
93132002-05-04 Andrew Cagney <ac131313@redhat.com>
9314
9315 * stack.c (select_and_print_frame): Make static. Delete the
9316 parameter `level'.
9317 (func_command): Update call.
9318 (select_frame_command): Delete code computing the frame level.
9319 * frame.h (select_and_print_frame): Delete declaration.
9320
f621c63e
AC
93212002-05-04 Andrew Cagney <ac131313@redhat.com>
9322
9323 * sparc-tdep.c (sparc_get_saved_register): Comment why
9324 get_prev_frame call is safe.
9325
0f7d239c
AC
93262002-05-04 Andrew Cagney <ac131313@redhat.com>
9327
9328 * frame.h (select_frame): Delete level parameter.
9329 * stack.c (select_frame): Update. Use frame_relative_level to
9330 obtain the frame's level.
9331 (select_and_print_frame): Update call.
9332 (select_frame_command): Ditto.
9333 (up_silently_base): Ditto.
9334 (down_silently_base): Ditto.
9335 * ocd.c (ocd_start_remote): Ditto.
9336 * remote-rdp.c (remote_rdp_open): Ditto.
9337 * remote-mips.c (mips_initialize): Ditto.
9338 (common_open): Ditto.
9339 * remote-e7000.c (e7000_start_remote): Ditto.
9340 * m3-nat.c (select_thread): Ditto.
9341 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9342 (child_get_current_exception_event): Ditto.
9343 * varobj.c (varobj_create): Ditto.
9344 (varobj_update): Ditto.
9345 (c_value_of_root): Ditto.
9346 * tracepoint.c (finish_tfind_command): Ditto.
9347 * corelow.c (core_open): Ditto.
9348 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9349 * thread.c (info_threads_command): Ditto.
9350 (switch_to_thread): Ditto.
9351 * infrun.c (normal_stop): Ditto.
9352 (restore_selected_frame): Ditto.
9353 (restore_inferior_status): Ditto.
9354 * breakpoint.c (insert_breakpoints): Ditto.
9355 (watchpoint_check): Ditto.
9356 (bpstat_stop_status): Ditto.
9357 (do_enable_breakpoint): Ditto.
9358 * blockframe.c (flush_cached_frames): Ditto.
9359 (reinit_frame_cache): Ditto.
9360
71d6c7b1
AC
93612002-05-04 Andrew Cagney <ac131313@redhat.com>
9362
9363 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9364 maintainer.
9365
cda6c68a
JB
93662002-05-04 Jim Blandy <jimb@redhat.com>
9367
9368 * gdbtypes.c (replace_type): Doc fix.
9369
5c1c87f0
AC
93702002-05-04 Andrew Cagney <ac131313@redhat.com>
9371
9372 * valprint.c (strcat_longest): Delete commented out function.
9373 Update copyright.
9374
cd9bfe15
AC
93752002-05-04 Andrew Cagney <ac131313@redhat.com>
9376
9377 * MAINTAINERS: Mark a29k as deleted.
9378 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9379 Move new configurations to the top.
9380 * configure.tgt: Remove a29k.
9381 * config/a29k/tm-vx29k.h: Delete.
9382 * config/a29k/vx29k.mt: Delete.
9383 * config/a29k/tm-a29k.h: Delete.
9384 * config/a29k/a29k-udi.mt: Delete.
9385 * config/a29k/a29k.mt: Delete.
9386 * a29k-tdep.c: Delete.
9387 * remote-udi.c: Delete.
9388 * remote-mm.c: Delete.
9389 * remote-eb.c: Delete.
9390 * remote-adapt.c: Delete.
9391 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9392 * config/s390/s390x.mt: Ditto.
9393 * config/s390/s390.mt: Ditto.
9394 * config/sparc/sparclynx.mh: Ditto.
9395 * config/sparc/linux.mh: Ditto.
9396 * config/pa/hppaosf.mh: Ditto.
9397 * config/pa/hppabsd.mh: Ditto.
9398 * config/ns32k/nbsd.mt: Ditto.
9399 * config/mips/vr5000.mt: Ditto.
9400 * config/m68k/sun3os4.mh: Ditto.
9401 * config/m68k/nbsd.mt: Ditto.
9402 * config/m68k/m68klynx.mh: Ditto.
9403 * config/m32r/m32r.mt: Ditto.
9404 * config/i386/x86-64linux.mt: Ditto.
9405 * config/i386/nbsdelf.mt: Ditto.
9406 * config/i386/nbsd.mt: Ditto.
9407 * config/i386/i386lynx.mh: Ditto.
9408
bf0c5130
AC
94092002-05-04 Andrew Cagney <ac131313@redhat.com>
9410
9411 * target.c (debug_print_register): New function. Handle oversize
9412 registers.
9413 (debug_to_fetch_registers): Call.
9414 (debug_to_store_registers): Call.
9415
2ae1c2d2
JB
94162002-05-03 Jim Blandy <jimb@redhat.com>
9417
13a393b0
JB
9418 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9419 (read_type): Doc fix.
9420 * gdbtypes.c (replace_type): Doc fix.
9421
2ae1c2d2
JB
9422 * stabsread.c (multiply_defined_struct): New complaint.
9423 (read_struct_type): If the type we were passed isn't empty, or
9424 incomplete, don't read the new struct type into it; complain,
9425 and return the original type unchanged. Take a new `type_code'
9426 argument, which is the type code for the new type.
9427 (read_type): Rather than storing the type's type code here, pass
9428 it as an argument to read_struct_type, and let that take care of
9429 storing it. That way, we don't overwrite the original type code,
9430 so read_struct_type can use it to decide whether we're overwriting
9431 something we shouldn't.
9432 (complain_about_struct_wipeout): New function.
9433
8de9bdc4
AC
94342002-05-03 Andrew Cagney <ac131313@redhat.com>
9435
9436 * gdbarch.sh: Assert that gdbarch is non-NULL.
9437 * gdbarch.c: Regenerate.
9438
f773fdbb
JM
94392002-05-03 Jason Merrill <jason@redhat.com>
9440
9441 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9442 and return NULL.
9443
0e04a514
ML
94442002-05-03 Michal Ludvig <mludvig@suse.cz>
9445
9446 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9447 (x86_64_dwarf2gdb_regno_map_length),
9448 (x86_64_dwarf2_reg_to_regnum): Added.
9449 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9450 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9451 (_initialize_x86_64_tdep): Synced with the change above.
9452 (x86_64_skip_prologue): Reformulated message.
9453
065432a8
PM
94542002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9455
9456 * f-exp.y: Also use new prev_lexptr variable
9457 to improve error reporting. Based on Michael Snyder
9458 2002-04-24 dated patch to c-exp.y.
9459 * jv-exp.y: Likewise.
9460 * m2-exp.y: Likewise.
9461
a3162708
EZ
94622002-05-02 Elena Zannoni <ezannoni@redhat.com>
9463
9464 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9465 we are dealing with vectors.
9466
03620c38
PM
94672002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9468
9469 * config/m68k/tm-nbsd.h: Obvious fix,
9470 correct machine name.
9471
6604db2e
PM
94722002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9473
9474 * p-typeprint.c (pascal_type_print_base): Add support
9475 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9476
0906b739
PM
94772002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9478
9479 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9480 for fondamental pascal 'char' type.
9481
e2625b33
PM
94822002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9483
9484 * p-lang.h (is_pascal_string_type): Declaration changed,
9485 new sixth argument of type char ** added.
361d1df0 9486 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9487 changed. Args length_pos, length_size, string_pos, char_size
9488 can now be NULL. New argument arrayname set to the field
9489 name of the char array. Return value set to char array
9490 field index plus one.
361d1df0 9491 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9492 is_pascal_string_type function.
9493
cf17c188
AC
94942002-05-02 Andrew Cagney <cagney@redhat.com>
9495
9496 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9497 <cagney@redhat.com> change.
9498 * gdbarch.c: Regenerate.
9499
52bca491
AC
95002002-05-02 Andrew Cagney <cagney@redhat.com>
9501
9502 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9503 before probing for a new one. Detect errorenous gdbarch_init
9504 functions.
9505 * gdbarch.c: Regenerate.
9506
d5e72505
AC
95072002-05-01 Andrew Cagney <cagney@redhat.com>
9508
9509 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9510 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9511 * config/v850/tm-v850.h: Ditto. Update copyright.
9512
af566d9f
AC
95132002-04-30 Andrew Cagney <ac131313@redhat.com>
9514
9515 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9516 current_gdbarch.
9517
880d85fa
MS
95182002-04-30 Michael Snyder <msnyder@redhat.com>
9519
94c30b78
MS
9520 * arm-tdep.c: Whitespace clean-ups.
9521 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9522 should have been removed as part of 4/24 change.
9523
6f5987a6
KB
95242002-04-30 Kevin Buettner <kevinb@redhat.com>
9525
9526 * rs6000-tdep.c: Added comment describing how fpscr register
9527 numbers were chosen.
9528
1a113c93
MS
95292002-04-30 Michael Snyder <msnyder@redhat.com>
9530
9531 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9532
9a6f53fe
EZ
95332002-04-29 Elena Zannoni <ezannoni@redhat.com>
9534
9535 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9536 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9537 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9538
11ed25ac
KB
95392002-04-29 Kevin Buettner <kevinb@redhat.com>
9540
9541 From Louis Hamilton <hamilton@redhat.com>:
9542 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9543 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9544 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9545 not bfd-private xcoff data, to determine wordsize.
9546 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9547
ae232405
AC
95482002-04-29 Andrew Cagney <ac131313@redhat.com>
9549
9550 GDB 5.2 released from 5.2 branch.
9551
91fd20f7
ML
95522002-04-29 Michal Ludvig <mludvig@suse.cz>
9553
9554 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9555 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9556 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9557
2dc5091b
EZ
95582002-04-29 Elena Zannoni <ezannoni@redhat.com>
9559
9560 * rs6000-tdep.c (rs6000_extract_return_value,
9561 rs6000_store_return_value): Handle returning vectors.
9562 (rs6000_gdbarch_init): Use
9563 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9564 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9565 New function.
9566 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9567 vectors.
9568 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9569 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9570
2b9848d8
PM
95712002-04-24 Pierre Muller <ics.u-strasbg.fr>
9572
9573 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9574 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9575 with fprintf_unfiltered (gdb_stderr,...).
9576
f8d17dc5
PM
95772002-04-24 Pierre Muller <ics.u-strasbg.fr>
9578
9579 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9580 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9581 Replace fprintf (stderr,...
9582 with fprintf_unfiltered (gdb_stderr,....
9583 * remote-es.c: Likewise.
9584 * remote-os9k.c: Likewise.
9585 * remote-st.c: Likewise.
9586
2f2f1ad1
AS
95872002-04-28 Andreas Schwab <schwab@suse.de>
9588
9589 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9590 linux-proc.o and gcore.o.
9591
b6779aa2
AC
95922002-04-26 Michal Ludvig <mludvig@suse.cz>
9593
9594 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9595 code without frame pointers.
9596
7e57f5f4
AC
95972002-04-26 Andrew Cagney <ac131313@redhat.com>
9598
9599 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9600 ON_STACK is needed.
9601
2ceb85d0
BE
96022002-04-26 Ben Elliston <bje@redhat.com>
9603
9604 * target.c (do_xfer_memory): Correct reference to the new option
9605 "trust-readonly-sections".
9606
f5f8a009
EZ
96072002-04-26 Elena Zannoni <ezannoni@redhat.com>
9608
9609 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9610 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9611 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9612 vectors.
9613 (read_array_type): Record the fact that this array type is really a
9614 vector (i.e. are passed in by value).
9615
5868c862
JT
96162002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9617
9618 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9619 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9620 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9621 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9622 * alpha-linux-tdep.c: Include frame.h.
9623 (alpha_linux_sigcontext_addr): New function.
9624 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9625 alpha_linux_sigcontext_addr.
9626 * alpha-osf1-tdep.c: Include gdbcore.h.
9627 (alpha_osf1_sigcontext_addr): New function.
9628 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9629 alpha_osf1_sigcontext_addr.
9630 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9631 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9632
bfb01f37
AC
96332002-04-26 Andrew Cagney <ac131313@redhat.com>
9634
361d1df0 9635 * stack.c (selected_frame_level):
bfb01f37
AC
9636 (select_frame): Do not set selected_frame_level.
9637 * frame.h (selected_frame_level): Delete declaration.
9638
15813d3f
AC
96392002-04-26 Andrew Cagney <ac131313@redhat.com>
9640
9641 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9642 convert_from_func_ptr-addr when AIX / PowerOpen.
9643
6096c27a
AC
96442002-04-25 Andrew Cagney <ac131313@redhat.com>
9645
9646 * valops.c (hand_function_call): Call
9647 generic_save_call_dummy_addr.
9648 * frame.h (generic_save_call_dummy_addr): Declare.
9649 * blockframe.c (struct dummy_frame): Add fields call_lo and
9650 call_hi.
9651 (generic_find_dummy_frame): Check for PC in range call_lo to
9652 call_hi instead of entry_point_address.
9653 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9654 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9655 (generic_save_call_dummy_addr): New function.
9656
f510d44e
DM
96572002-04-24 David S. Miller <davem@redhat.com>
9658
9659 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9660 sparc_skip_prologue.
9661 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9662 information to find prologue when possible.
9663 (sparc_prologue_frameless_p): Call examine_prologue directly.
9664 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9665 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9666 second argument.
9667 (SKIP_PROLOGUE): Likewise.
9668
15d72a92
JT
96692002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9670
9671 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9672 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9673 indicate that the condition it was testing is always true.
9674 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9675 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9676 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9677
accc6d1f
JT
96782002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9679
9680 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9681 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9682 tdep->jb_pc and tdep->jb_elt_size.
9683 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9684 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9685 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9686 * alpha-nat.c (get_longjmp_target): Remove.
9687 (JB_ELEMENT_SIZE): Ditto.
9688 (JB_PC): Ditto.
9689 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9690 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9691 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9692 to alpha_get_longjmp_target.
9693 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9694 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9695 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9696
1bfdc549
AC
96972002-04-25 Andrew Cagney <ac131313@redhat.com>
9698
9699 * README: Update to GDB 5.2.
9700
1bd316f0
AC
97012002-04-25 Andrew Cagney <ac131313@redhat.com>
9702
9703 * gdbarch.sh (LC_ALL): Set to `c'.
9704
2e5ff58c
TR
97052002-04-25 Theodore A. Roth <troth@verinet.com>
9706
9707 * avr-tdep.c: Ran through gdb_indent.sh.
9708
e33ce519
TR
97092002-04-25 Theodore A. Roth <troth@verinet.com>
9710
9711 * MAINTAINERS: Add myself as AVR maintainer.
9712 * NEWS: Note new target avr.
9713
8818c391
TR
97142002-04-25 Theodore A. Roth <troth@verinet.com>
9715
9716 * Makefile.in: Add support for AVR target.
9717 * configure.tgt: Add support for AVR target.
9718 * avr-tdep.c: New file
9719 * config/avr/avr.mt: New file.
9720
79509c2d
TR
97212002-04-25 Theodore A. Roth <troth@verinet.com>
9722
9723 * MAINTAINERS: Add myself to write-after-approval.
9724
dac8068e
PM
97252002-04-24 Pierre Muller <ics.u-strasbg.fr>
9726
9727 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9728 with fprintf_unfiltered (gdb_stderr,....
9729
25bf3106
PM
97302002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9731
9732 Fix PR gdb/508.
9733 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9734
24467a86
PM
97352002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9736
9737 * p-exp.y: Also use new prev_lexptr variable
9738 to improve error reporting. Based on Michael Snyder
9739 2002-04-24 dated patch to c-exp.y.
9740
95b80706
JT
97412002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9742
9743 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9744 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9745 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9746 to 0.
9747 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9748 and struct value.
9749 (FUNCTION_START_OFFSET): Remove.
9750 (BREAKPOINT): Ditto.
9751
e90cc612
JT
97522002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9753
9754 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9755 * NEWS: Ditto.
9756
6c72f9f9
JT
97572002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9758
9759 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9760 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9761 alpha_linux_pc_in_sigtramp.
9762 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9763 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9764 alpha_osf1_pc_in_sigtramp.
9765 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9766 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9767 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9768 alphafbsd_pc_in_sigtramp.
9769 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9770 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9771 alphanbsd_pc_in_sigtramp.
9772 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9773 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9774
5e4f3379
JT
97752002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9776
9777 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9778
da8ca43d
JT
97792002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9780
9781 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9782 alphanbsd-tdep.c.
9783 (alphanbsd-nat.o): New dependency list.
9784 (alphanbsd-tdep.o): Ditto.
9785 * NEWS: Note new native NetBSD/alpha configuration.
9786 * alphanbsd-nat.c: New file.
9787 * alphanbsd-tdep.c: Ditto.
9788 * configure.host (alpha*-*-netbsd*): New host.
9789 * configure.tgt (alpha*-*-netbsd*): New target.
9790 * config/alpha/nbsd.mh: New file.
9791 * config/alpha/nbsd.mt: Ditto.
9792 * config/alpha/nm-nbsd.h: Ditto.
9793 * config/alpha/tm-nbsd.h: Ditto.
9794
36a6271d
JT
97952002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9796
9797 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9798 (alpha-osf1-tdep.o): New dependency list.
9799 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9800 and skip_sigtramp_frame members.
9801 * alpha-linux-tdep.c: Include gdbcore.h.
9802 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9803 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9804 * alpha-osf1-tdep.c: New file.
9805 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9806 alpha-osf1-dep.c.
9807 (alpha_frame_past_sigtramp_frame): New function.
9808 (alpha_dynamic_sigtramp_offset): Ditto.
9809 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9810 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9811 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9812 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9813 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9814 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9815 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9816 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9817 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9818 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9819 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9820 to find_solib_trampoline_target.
9821 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9822 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9823 (SKIP_TRAMPOLINE_CODE): Remove.
9824 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9825 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9826 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9827 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9828 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9829 (PROC_SIGTRAMP_MAGIC): Ditto.
9830 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9831 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9832 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9833 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9834 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9835
2f4bc57b
JT
98362002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9837
9838 * NEWS: Note that Alpha targets are now multi-arch.
9839
665132f9
MS
98402002-04-24 Michael Snyder <msnyder@redhat.com>
9841
9842 * parser-defs.h (prev_lexptr): New external variable.
9843 * parse.c (parse_exp_1): Set prev_lexptr to null before
9844 calling the language-specific parser.
9845 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9846 (yyerror): Use prev_lexptr in error reporting.
9847
32872fa7
DJ
98482002-04-24 Daniel Jacobowitz <drow@mvista.com>
9849
9850 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9851 * gregset.h: If FILL_FPXREGSET is defined, provide
9852 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9853 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9854 is defined, call fill_fpxregset.
9855
57e76fac
MS
98562002-04-24 Roland McGrath <roland@frob.com>
9857
9858 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9859 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9860 (supply_gregset, supply_fpregset): New functions.
9861
9862 * gnu-nat.c (gnu_find_memory_regions): New function.
9863 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9864 (gnu_xfer_memory): Add a cast.
9865
f43845b3
MS
98662002-04-24 Michael Snyder <msnyder@redhat.com>
9867
361d1df0 9868 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9869 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9870 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9871 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9872 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9873 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9874
a0abec03
AC
9875Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9876
9877 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9878 NUM_PSEUDO_REGS can be used.
9879
d7bd68ca
AC
98802002-04-24 Andrew Cagney <ac131313@redhat.com>
9881
9882 * arch-utils.h: Update copyright.
9883
9884 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9885 * gdbarch.h, gdbarch.c: Re-generate.
9886
9887 * inferior.h (IN_SIGTRAMP): Delete definition.
9888 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9889 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9890
9891 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9892 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9893 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9894 (find_proc_framesize): Ditto.
9895 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9896 (alpha_init_extra_frame_info): Ditto.
9897 * infrun.c (handle_inferior_event): Ditto.
9898 (handle_inferior_event): Ditto.
9899 (check_sigtramp2): Ditto.
9900 * blockframe.c (create_new_frame): Ditto.
9901 (get_prev_frame): Ditto.
9902 * ppc-linux-tdep.c: Update comments.
9903 * i386-linux-tdep.c: Update comments.
9904 * breakpoint.c (bpstat_what): Update comment.
9905
4867e41e
DM
99062002-04-24 David S. Miller <davem@redhat.com>
9907
21d83aa5
DM
9908 * i960-tdep.c (register_in_window_p): New function.
9909 (i960_find_saved_register): Use it instead of
9910 REGISTER_IN_WINDOW_P.
9911 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9912
4867e41e
DM
9913 * symtab.h (find_stab_function_addr): Kill extern.
9914 * minsyms.c (find_stab_function_addr): Remove from here...
9915 * dbxread.c: ... to here, and mark it static.
9916
69cdf6a2
DM
99172002-04-20 David S. Miller <davem@redhat.com>
9918
9919 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9920 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9921
5a595886
DM
99222002-04-21 David S. Miller <davem@redhat.com>
9923
9924 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9925 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9926 (vx_write_register): Likewise.
9927
1da1a192
JB
99282002-04-23 J. Brobecker <brobecker@gnat.com>
9929
9930 * source.c (is_regular_file): New function.
9931 (openp): Check wether file to open is a regular file
9932 to avoid opening directories.
9933
baa6f10b
JT
99342002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9935
9936 * findvar.c (extract_signed_integer): Cast printf argument
9937 to suppress format warning.
9938 (extract_unsigned_integer): Likewise.
9939 * infcmd.c (registers_info): Likewise.
9940 * top.c (get_prompt_1): Likewise.
9941 * valops.c (value_assign): Likewise.
9942 * valprint.c (print_decimal): Likewise.
9943
b2c4da81
L
99442002-04-22 H.J. Lu (hjl@gnu.org)
9945
9946 * c-exp.y (typebase): Support
361d1df0 9947
b2c4da81
L
9948 [long|long long|short] [signed|unsigned] [int|]
9949
9950 and
9951
9952 signed [long|long long|short] int
9953
f267bd6a
JT
99542002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9955
9956 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9957 and vax-tdep.h.
9958 * vax-tdep.h: New file.
9959 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9960 Make several routines static.
9961 (vax_get_saved_register): New function.
9962 (vax_gdbarch_init): New function.
9963 (_initialize_vax_tdep): Register vax_gdbarch_init.
9964 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9965 Remove macros now under the control of gdbarch.
9966
da3c6d4a
MS
99672002-04-22 Michael Snyder <msnyder@redhat.com>
9968
11d3b27d
MS
9969 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9970 Some whitespace and coding standards tweaks.
da3c6d4a 9971
a33f7558
JT
99722002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9973
9974 * vax-tdep.c: Include regcache.h.
9975 (vax_call_dummy_words): New.
9976 (sizeof_vax_call_dummy_words): New.
9977 (vax_fix_call_dummy): New function.
9978 (vax_saved_pc_after_call): Ditto.
9979 * config/vax/tm-vax.h: Don't include regcache.h.
9980 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9981 (CALL_DUMMY): Remove.
9982 (CALL_DUMMY_WORDS): Define.
9983 (SIZEOF_CALL_DUMMY_WORDS): Define.
9984 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9985
47a73475
MS
99862002-04-18 Michael Snyder <msnyder@redhat.com>
9987
9988 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9989
52efde73
JT
99902002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9991
9992 * vax-tdep.c (vax_frame_chain): New function.
9993 (vax_push_dummy_frame): Ditto.
9994 (vax_pop_frame): Ditto.
9995 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9996 (FRAMELESS_FUNCTION_INVOCATION): Use
9997 generic_frameless_function_invocation_not.
9998 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9999 (POP_FRAME): Use vax_pop_frame.
10000
ea74468c
JT
100012002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10002
10003 * vax-tdep.c (vax_store_struct_return): New function.
10004 (vax_extract_return_value): Ditto.
10005 (vax_store_return_value): Ditto.
10006 (vax_extract_struct_value_address): Ditto.
10007 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10008 vax_store_struct_return.
10009 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10010 (STORE_RETURN_VALUE): Use vax_store_return_value.
10011 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10012
5516aa92
JT
100132002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10014
10015 * vax-tdep.c (vax_frame_saved_pc): New function.
10016 (vax_frame_args_address_correct): Ditto.
10017 (vax_frame_args_address): Ditto.
10018 (vax_frame_locals_address): Ditto.
10019 (vax_frame_num_args): Move code to be in proximity to
10020 other frame-related functions.
10021 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10022 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10023 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10024 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10025 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10026
36af0b35
L
100272002-04-22 H.J. Lu (hjl@gnu.org)
10028
10029 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10030 includedir.
10031
ab62c900
JT
100322002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10033
10034 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10035 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10036 (FRAME_INIT_SAVED_REGS): New macro.
10037
7232b100
JT
100382002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10039
10040 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10041
b70d2aee
JT
100422002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10043
10044 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10045 where needed.
10046 (fetch_osf_core_registers): Likewise.
10047 (supply_gregset): Likewise.
10048
a0e8a2d1 100492002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 10050
a0e8a2d1
JB
10051 * symfile.h (get_section_index): Define.
10052 * symfile.c (get_section_index): New function.
10053 * mdebugread.c (SC_IS_SBSS): New macro.
10054 (SC_IS_BSS): Return true for the scBss storage class only, as
10055 the scSBss storage class refers to the .sbss section.
10056 (parse_partial_symbols): Discard the symbols which associated
10057 section does not exist.
10058 Make sure to use the .sbss section index for symbols which
10059 storage class is scBss, rather than using the .bss section index.
10060
51eb8b08
JT
100612002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10062
10063 * vax-tdep.c: Update copyright years.
10064 (vax_register_name): New function.
10065 (vax_register_byte): Ditto.
10066 (vax_register_raw_size): Ditto.
10067 (vax_register_virtual_size): Ditto.
10068 (vax_register_virtual_type): Ditto.
10069 * config/vax/tm-vax.h: Update copyright years.
10070 (REGISTER_NAMES): Remove.
10071 (REGISTER_NAME): Define.
10072 (REGISTER_BYTE): Use vax_register_byte.
10073 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10074 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10075 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10076
6cc1c0a8
AC
100772002-04-21 Andrew Cagney <ac131313@redhat.com>
10078
10079 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10080 declaration
10081 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10082
9319a2fe
DM
100832002-04-21 David S. Miller <davem@redhat.com>
10084
10085 * arch-utils.c (generic_prologue_frameless_p): Kill
10086 SKIP_PROLOGUE_FRAMELESS_P code.
10087 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10088 references.
10089 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10090 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10091 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10092 references.
10093 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10094 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10095 (sparc_gdbarch_init): Pass it to
10096 set_gdbarch_prologue_frameless_p.
a0e8a2d1 10097
e9ed6d01
JT
100982002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10099
10100 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10101 (alphabsd-nat.o): New dependency list.
10102
36012033
JT
101032002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10104
10105 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10106 alphafbsd-tdep.c.
10107 (alpha-linux-tdep.o): New dependency list.
10108 (alphafbsd-tdep.o): Likewise.
10109
3379287a
JT
101102002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10111
10112 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10113 to here...
10114 * alpha-tdep.c: ...from here.
10115 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10116
4bcbd6cb
JT
101172002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10118
10119 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10120 prototype from here...
10121 * alpha-tdep.h: ...to here.
10122
b31da25e
AC
101232002-04-21 Andrew Cagney <ac131313@redhat.com>
10124
10125 * frame.h (selected_frame_level): Document as deprecated.
10126 (frame_relative_level): Declare.
10127 * stack.c (frame_relative_level): New function.
10128 (selected_frame_level): Document as deprecated.
10129 (select_frame): Do not set the selected_frame_level.
10130
10131 * stack.c (frame_info, record_selected_frame): Update.
10132 (frame_command, current_frame_command): Update.
10133 (up_silently_base, up_command, down_silently_base): Update.
10134 (down_command): Update.
10135 * inflow.c (kill_command): Update.
10136 * tracepoint.c (finish_tfind_command): Update.
10137 * corelow.c (core_open): Update.
10138 * thread.c (info_threads_command): Update.
10139 (do_captured_thread_select): Update.
10140 * infcmd.c (finish_command): Update.
10141 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10142
9c1d6fe5
JT
101432002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10144
10145 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10146
ab89facf
AC
101472002-04-21 Andrew Cagney <ac131313@redhat.com>
10148
10149 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10150 type const.
10151
82a4efa1
JT
101522002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10153
10154 * alphafbsd-tdep.c: Update copyright years. Include
10155 alpha-tdep.h.
10156 (alphafbsd_use_struct_convention): Make static.
10157 (alphafbsd_init_abi): New function.
10158 (_initialize_alphafbsd_tdep): New function.
10159 * config/alpha/tm-fbsd.h: Update copyright years.
10160 (USE_STRUCT_CONVENTION): Remove.
10161
44dffaac
JT
101622002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10163
10164 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10165 an Alpha ABI variant.
10166 (alpha_abi_handler_list): Declare.
10167 (alpha_gdbarch_register_os_abi): New function.
10168 (alpha_gdbarch_init): Give registered ABI variant handlers a
10169 chance to tweak the gdbarch once we have set up defaults.
10170 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10171
65585be4
JT
101722002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10173
10174 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10175 to standard_coerce_float_to_double.
10176 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10177
d9b023cc
JT
101782002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10179
10180 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10181 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10182 from gdbarch_tdep rather than a constant.
10183 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10184 the default text address for all Alpha Unix ABIs.
10185 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10186 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10187
dc129d82
JT
101882002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10189
10190 * alpha-tdep.h: New file. Includes several Alpha target constants
10191 taken from...
10192 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10193 let gdbarch deal with.
10194 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10195 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10196 to dependency list.
10197 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10198 Alpha target register names.
10199 * alphabsd-nat.c: Likewise.
10200 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10201 Alpha target register names. Make serveral routines static.
10202 (alpha_get_saved_register): New function.
10203 (alpha_abi_names): New.
10204 (process_note_abi_tag_sections): New function.
10205 (get_elfosabi): New function.
10206 (alpha_gdbarch_init): New function.
10207 (alpha_dump_tdep): New function.
10208 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10209
d49d1e0a
AC
102102002-04-21 Andrew Cagney <ac131313@redhat.com>
10211
10212 * frame.c (find_saved_register): Delete #ifdef
10213 HAVE_REGISTER_WINDOWS code.
10214 * config/sparc/tm-sparc.h: Update comments.
10215 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10216
92e8c9ed
AC
102172002-04-21 Andrew Cagney <ac131313@redhat.com>
10218
10219 * i960-tdep.c (i960_find_saved_register): New function.
10220 (i960_get_saved_register): New function.
10221 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10222 (i960_get_saved_register): Declare.
10223 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10224
e1925118
DM
102252002-04-20 David S. Miller <davem@redhat.com>
10226
10227 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10228
29673b29
AC
102292002-04-20 Andrew Cagney <ac131313@redhat.com>
10230
10231 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10232 instead of NUM_PSEUDO_REGS.
10233
6c86dcd5
DM
102342002-04-20 David S. Miller <davem@redhat.com>
10235
10236 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10237 GDB_MULTI_ARCH_PARTIAL
10238 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10239 define, let tm-sp64.h do it.
10240
aa40ec90
JT
102412002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10242
10243 * frame.c (find_saved_register): Avoid a NULL pointer
10244 dereference and actually walk the frame list.
10245
0f79675b
AC
102462002-04-20 Andrew Cagney <ac131313@redhat.com>
10247
10248 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10249 sorted in most most-recent-used order. Document.
10250 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10251
f91305dd 102522002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10253
10254 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10255 instead of ->prev.
10256 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10257 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10258 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10259 instead of ->prev.
10260
73d322b1
EZ
102612002-04-19 Elena Zannoni <ezannoni@redhat.com>
10262
10263 Fix PR gdb/471.
10264 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10265 (build_builtin_type_vec128): Ditto.
10266 (append_composite_type_field): Fix calculation of type length in
10267 union case.
10268
ccd9a834
EZ
102692002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10270
10271 * config/djgpp/README: Update.
10272
10273 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10274 compiler warnings.
10275
a57f9e49
JT
102762002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10277
10278 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10279 (alpha_setup_arbitrary_frame): ...to this.
10280 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10281 for alpha_setup_arbitrary_frame.
10282
f4f9705a
AC
102832002-04-18 Andrew Cagney <cagney@redhat.com>
10284
10285 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10286 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10287
f4f9705a
AC
10288 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10289 * target.h (memory_breakpoint_from_pc): Update declaration.
10290 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10291
10292 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10293 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10294 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10295 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10296 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10297 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10298 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10299 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10300 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10301 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10302 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10303 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10304
10305 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10306 const pointer.
10307 * monitor.c (monitor_insert_breakpoint): Ditto.
10308 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10309
10310 * config/mcore/tm-mcore.h: Update copyright.
10311 * mem-break.c: Ditto.
10312 * xstormy16-tdep.c: Ditto.
10313
29f319b8
PM
103142002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10315
10316 * p-exp.y: Add precedence rule for '^' token.
10317 This removes the shift/reduce conflicts.
10318 Remove the comment concerning these shift/reduce conflicts.
10319
ebeac11a
EZ
103202002-04-18 Elena Zannoni <ezannoni@redhat.com>
10321
10322 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10323 (registers_powerpc_nofp): New register set for processors
10324 without floating point unit.
10325
27c31547
DM
103262002-04-18 David S. Miller <davem@redhat.com>
10327
10328 * MAINTAINERS: Add myself to write-after-approval.
10329
47a73475
MS
103302002-04-17 Michael Snyder <msnyder@redhat.com>
10331
10332 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10333
953836b2
AC
103342002-04-17 Andrew Cagney <ac131313@redhat.com>
10335
10336 * rs6000-tdep.c (frame_initial_stack_address): Use
10337 frame_register_read to read the alloca_reg.
10338
8b0d4340
AC
103392002-04-17 Andrew Cagney <ac131313@redhat.com>
10340
10341 * frame.c (find_saved_register): Find saved registers in the next
10342 not prev frame.
10343 Fix PR gdb/365.
10344
d8864532
AC
103452002-04-17 Andrew Cagney <ac131313@redhat.com>
10346
10347 * gdbarch.sh (LANG): Set to ``c''.
10348
36cc83a3 103492002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10350
36cc83a3 10351 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10352
2f4150cc 103532002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10354
10355 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10356 Update copyright.
10357
628703c6 10358 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10359 Also fix PR gdb/391.
361d1df0 10360
56157b4a
AC
103612002-04-14 Andrew Cagney <ac131313@redhat.com>
10362
10363 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10364 * aclocal.m4, configure: Re-generate.
10365 Fix PR gdb/391.
361d1df0 10366
6d1e3329
EZ
103672002-04-14 Elena Zannoni <ezannoni@redhat.com>
10368
10369 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10370 instead of tm_print_insn.
10371
cb06fa07
EZ
103722002-04-14 Elena Zannoni <ezannoni@redhat.com>
10373
10374 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10375
f208ba17
AC
103762002-04-14 Andrew Cagney <ac131313@redhat.com>
10377
10378 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10379 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10380 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10381
20f01a46
DH
103822002-04-12 Don Howard <dhoward@redhat.com>
10383
10384 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10385 max_user_call_depth.
10386 (init_cmd_lists): Initialize the new value;
10387 * cli/cli-script.c (execute_user_command): Limit the call depth of
10388 user defined commands. This avoids a core-dump when user commands
10389 are infinitly recursive.
10390
a88376a3
KB
103912002-04-12 Kevin Buettner <kevinb@redhat.com>
10392
10393 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10394 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10395 from tdep struct instead of DEFAULT_LR_SAVE.
10396 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10397 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10398 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10399
f2172603
MS
104002002-04-12 Michael Snyder <msnyder@redhat.com>
10401
694f61fb 10402 * Remote.c: Spelling fix.
20fe79c8
MS
10403 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10404 If no symbol found for "sbrk", try "_sbrk".
10405 (make_output_phdrs): Use bfd_section_name.
10406 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10407 * eval.c: Indentation fix-ups.
169a7369
MS
10408 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10409 in case it gets applied to an address that is already
10410 in the instruction space.
de74f71f
MS
10411 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10412 * symfile.c: Fix indentation, long lines.
f2172603
MS
10413 * source.c: White space fix-up.
10414
cda5a58a
AC
104152002-04-12 Andrew Cagney <cagney@redhat.com>
10416
10417 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10418 * frame.c (frame_register_read): New function. Return non-zero on
10419 success.
10420 (read_relative_register_raw_bytes_for_frame): Delete.
10421 (read_relative_register_raw_bytes): Delete.
10422 * frame.h (frame_register_read): Declare.
10423 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10424 * sh-tdep.c: Ditto.
10425 * infcmd.c (do_registers_info): Ditto.
10426 * hppa-tdep.c: Ditto.
10427 * rs6000-tdep.c: Ditto.
10428 * h8500-tdep.c: Ditto.
10429 * mips-tdep.c: Ditto.
10430 * h8300-tdep.c: Ditto.
10431 * z8k-tdep.c: Ditto.
10432
2ea5f656
KB
104332002-04-12 Kevin Buettner <kevinb@redhat.com>
10434
10435 From Jimi X <jimix@watson.ibm.com>:
10436 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10437 64-bit SysV ABI.
10438
27b15785
KB
104392002-04-12 Kevin Buettner <kevinb@redhat.com>
10440
10441 From Jimi X <jimix@watson.ibm.com>:
10442 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10443 bfd info.
10444
5d57ee30
KB
104452002-04-12 Kevin Buettner <kevinb@redhat.com>
10446
10447 From Jimi X <jimix@watson.ibm.com>:
10448 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10449 register sets for these processor variants.
10450
bc1e36ca
DJ
104512002-04-11 Daniel Jacobowitz <drow@mvista.com>
10452
bc1e36ca
DJ
10453 * regformats/reg-ppc.dat: Support FPSCR.
10454
e3f36dbd
KB
104552002-04-11 Kevin Buettner <kevinb@redhat.com>
10456
10457 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10458 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10459 Add fpscr as an invalid/unfetchable register.
10460 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10461 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10462 (fill_fpregset): Add support for register fpscr.
10463 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10464 (fill_gregset): Account for the fact that register ``mq'' might
10465 not exist.
10466 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10467 (registers_power): Add fpscr to register set at slot 71.
10468 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10469 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10470
943c9c25
MS
104712002-04-11 Michael Snyder <msnyder@redhat.com>
10472
10473 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10474 * configure: Regenerate.
10475 * config.in: Regenerate.
10476 * acconfig.h: Add define for _SYSCALL32.
10477 * core-sol2.c: Remove #define _SYSCALL32.
10478 * solib-legacy.c: Remove #define _SYSCALL32.
10479
d8c0a2e7
AC
104802002-04-10 Andrew Cagney <ac131313@redhat.com>
10481
10482 * stack.c (select_frame): Cleanup internal error message, do not
10483 use %p.
10484
7cc19214
AC
104852002-04-10 Andrew Cagney <ac131313@redhat.com>
10486
10487 * stack.c (select_frame): Check that selected_frame and the
10488 specified level are as expected.
10489 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10490 Update copyright.
10491 * frame.h (struct frame_info): Add field `level'. Update
10492 copyright.
10493 Work-in-progress PR gdb/464.
10494
67a2b77e
AC
104952002-04-10 Andrew Cagney <ac131313@redhat.com>
10496
10497 * maint.c (maint_print_section_info): Rename print_section_info.
10498 (print_bfd_section_info, print_objfile_section_info): Update.
10499 * inferior.h (struct gdbarch): Add opaque declaration.
10500 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10501 * gdbarch.h: Regenerate.
10502
8cfda98c
ML
105032002-04-10 Michal Ludvig <mludvig@suse.cz>
10504
10505 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10506 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10507 (kernel_u_size): Added.
10508 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10509 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10510
ca439ad2 105112002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10512
ca439ad2
JI
10513 * valarith.c (find_size_for_pointer_math): New function, either returns
10514 the size for a pointer's target, returns 1 for void *, or errors for
10515 incomplete types.
10516 (value_add, value_sub): use find_size_for_pointer_math.
10517
2f2893d9
DJ
105182002-04-09 Daniel Jacobowitz <drow@mvista.com>
10519
10520 * linux-low.c (linux_look_up_symbols): New hook.
10521 (linux_target_ops): Add linux_look_up_symbols.
10522 * remote-utils.c (decode_address): New function.
10523 (look_up_one_symbol): New function.
10524 * server.c (handle_query): Call target look_up_symbols hook.
10525 * server.h (look_up_one_symbol): Add prototype.
10526 * target.h (struct target_ops): Add look_up_symbols hook.
10527
96cb11df
AC
105282002-04-09 Andrew Cagney <ac131313@redhat.com>
10529
10530 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10531 override FP_REGNUM with frame->fp. Update copyright.
10532 * parse.c (num_std_regs, std_regs): Delete.
10533 (target_map_name_to_register): Do not search std_regs. Update
10534 function description.
10535 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10536 declarations. Update copyright.
10537 Fix PR gdb/251.
361d1df0 10538
97658e92
DJ
105392002-04-09 Daniel Jacobowitz <drow@mvista.com>
10540
10541 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10542 after the last symbol in a block.
10543
6044e3eb
PM
105442002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10545
10546 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10547 is non zero as a found symbol.
10548
0406ec40
AC
105492002-04-08 Andrew Cagney <ac131313@redhat.com>
10550
10551 * findvar.c: Include "builtin-regs.h".
10552 (value_of_register): Call value_of_builtin_reg when applicable.
10553 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10554 (target_map_name_to_register): Call
10555 builtin_reg_map_name_to_regnum.
10556 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10557 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10558 (builtin_regs_h): Define.
10559 (builtin-regs.o): New target.
10560 (findvar.o): Add $(builtin_regs_h).
10561 * builtin-regs.c, builtin-regs.h: New files.
10562 * std-regs.c: New file.
10563 Partial fix for PR gdb/251.
10564
56a6dfb9
KB
105652002-04-08 Kevin Buettner <kevinb@redhat.com>
10566
10567 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10568 it's no longer required.
10569
3a808432
AC
105702002-04-08 Andrew Cagney <ac131313@redhat.com>
10571
10572 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10573
7c40d541
KB
105742002-04-08 Kevin Buettner <kevinb@redhat.com>
10575
10576 From Jimi X <jimix@watson.ibm.com>:
10577 * rs6000-tdep.c (rs6000_software_single_step): Use
10578 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10579 and size. Use target_insert_breakpoint() and
10580 target_remove_breakpoint() to insert and remove breakpoints
10581 instead of explicit memory reads and writes.
10582
cc9836a8
KB
105832002-04-08 Kevin Buettner <kevinb@redhat.com>
10584
10585 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10586 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10587 ELF_OBJECT_FORMAT ifdef.
10588
7495d1dc
KB
105892002-04-08 Kevin Buettner <kevinb@redhat.com>
10590
10591 From Jimi X <jimix@watson.ibm.com>:
10592 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10593
4288e836
KB
105942002-04-08 Kevin Buettner <kevinb@redhat.com>
10595
10596 From Jimi X <jimix@watson.ibm.com>:
10597 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10598 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10599
a4e4e501
MK
106002002-04-07 Mark Kettenis <kettenis@gnu.org>
10601
10602 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10603 s/asprintf/xasprintf/.
10604 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10605
006defba
AC
106062002-04-07 Andrew Cagney <ac131313@redhat.com>
10607
10608 I believe Jeff Law denies responsability for this one:
10609 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10610 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10611 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10612 Work-around for PR gdb/366.
10613
7aa83cac
EZ
106142002-04-07 Elena Zannoni <ezannoni@redhat.com>
10615
10616 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10617 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10618 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10619
cf1fcca1
EZ
106202002-04-07 Elena Zannoni <ezannoni@redhat.com>
10621
10622 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10623 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10624 information.
10625
3f289e6f
AC
106262002-04-07 Andrew Cagney <ac131313@redhat.com>
10627
10628 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10629 maintainer.
10630
129188f6
AC
106312002-04-07 Andrew Cagney <ac131313@redhat.com>
10632
10633 * README (Reporting Bugs in GDB): Document the bug web page as the
10634 prefered way of submitting bugs.
10635 Fix PR gdb/402.
10636
1200cd6e
AC
106372002-04-06 Andrew Cagney <ac131313@redhat.com>
10638
10639 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10640 -1. Update comment.
10641 * gdbarch.h, gdbarch.c: Re-generate.
10642
2853c33c
AS
106432002-04-07 Andreas Schwab <schwab@suse.de>
10644
10645 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10646 buffer to regcache_collect.
10647
c2169756
AC
106482002-04-06 Andrew Cagney <ac131313@redhat.com>
10649
10650 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10651 * gdbarch.c, gdbarch.h: Re-generate.
10652
25f1b008
AC
106532002-04-06 Andrew Cagney <ac131313@redhat.com>
10654
10655 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10656 declaration. Fix -Werror.
10657
59263426
DJ
106582002-04-05 Daniel Jacobowitz <drow@mvista.com>
10659
10660 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10661 * gdbarch.c: Regenerate.
10662
f5db4da3
MS
106632002-04-05 Michael Snyder <msnyder@redhat.com>
10664
80f8a6eb
MS
10665 * breakpoint.c (clear_command): Rewrite middle section to
10666 combine two loops with identical control conditions.
10667 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10668 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10669
ad3dcc5c
L
106702002-04-05 H.J. Lu (hjl@gnu.org)
10671
10672 * solib-svr4.c (bkpt_names): Add "__start".
10673
f32e7a74
AC
106742002-04-04 Andrew Cagney <ac131313@redhat.com>
10675
10676 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10677 as test for 64 bit target.
10678
8227c0ff
AC
106792002-04-05 Andrew Cagney <ac131313@redhat.com>
10680
10681 * h8500-tdep.c (h8500_write_fp): Delete function.
10682 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10683 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10684 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10685 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10686 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10687 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10688 (s390_write_fp):
10689 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10690 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10691 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10692 (d10v_write_fp): Delete function.
10693 * inferior.h (write_fp, generic_target_write_fp): Delete
10694 declarations.
10695 * regcache.c (generic_target_write_fp): Delete function.
10696 (write_fp): Delete function.
10697 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10698 * gdbarch.h, gdbarch.c: Regenerate.
10699 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10700 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10701 (sparc64_write_fp): Delete declaration.
10702 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10703 (h8500_write_fp): Delete declaration.
10704
2757dd86
AC
107052002-04-04 Andrew Cagney <ac131313@redhat.com>
10706
10707 * sparc-tdep.c (sparc64_write_fp): Delete.
10708 (sparc_push_dummy_frame): Replace write_fp call with code to store
10709 the FP directly.
10710 (sparc_gdbarch_init): Do not initialize write_fp.
10711
c69255e1
KB
107122002-04-05 Kevin Buettner <kevinb@redhat.com>
10713
10714 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10715 clause.
10716
ae767bfb
JB
107172002-03-29 Jim Blandy <jimb@redhat.com>
10718
10719 * stack.c (get_selected_block): Add new argument `addr_in_block',
10720 used to return the exact code address we used to select the block,
10721 not just the block.
10722 * blockframe.c (get_frame_block, get_current_block): Same.
10723 * frame.h (get_frame_block, get_current_block,
10724 get_selected_block): Update declarations.
10725 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10726 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10727
84d2ac95
MS
107282002-04-05 Michael Snyder <msnyder@redhat.com>
10729
10730 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10731 warning message.
10732
596aa3bf
JB
107332002-04-05 J. Brobecker <brobecker@gnat.com>
10734
10735 * utils.c (xfullpath): New function.
10736 * defs.h (xfullpath): Add declaration.
10737 * source.c (openp): Use xfullpath in place of gdb_realpath to
10738 avoid resolving the basename part of filenames when the
10739 associated file is a symbolic link. This fixes a potential
10740 inconsistency between the filenames known to GDB and the
10741 filenames it prints in the annotations.
10742 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10743 to be able to match a filename with either the real filename, or
10744 the name of any symbolic link to this file.
10745 (lookup_partial_symtab): Ditto.
10746
c02f5703
MS
107472002-04-04 Michael Snyder <msnyder@redhat.com>
10748
10749 * breakpoint.c: Add support for hardware breakpoints in overlays.
10750 (overlay_events_enabled): New state variable.
10751 (insert_breakpoints): Use overlay_events_enabled to decide
10752 whether to attempt to set a breakpoint at the overlay load addr.
10753 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10754 (remove_breakpoint): Use overlay_events_enabled to decide
10755 whether breakpoints need to be removed from overlay load addr.
10756 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10757 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10758 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10759 disable_overlay_breakpoints): Update overlay_events_enabled.
10760
5fb290d7
DJ
107612002-04-04 Daniel Jacobowitz <drow@mvista.com>
10762
10763 * dwarf2read.c (struct function_range): New.
10764 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10765 (check_cu_functions): New.
10766 (read_file_scope): Initialize global function lists.
10767 Call dwarf_decode_line after processing children.
10768 (read_func_scope): Add to global function list.
10769 (dwarf_decode_lines): Call check_cu_functions everywhere
10770 record_line is called. Call record_line with a linenumber
10771 of 0 to mark sequence ends.
10772
7b3fabf0
ML
107732002-04-04 Michal Ludvig <mludvig@suse.cz>
10774
361d1df0 10775 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10776 change sync with glibc.
10777
bce58c09
JB
107782002-04-03 Jim Blandy <jimb@redhat.com>
10779
10780 * configure.in: Call AC_C_INLINE.
10781 * configure: Regenerated.
361d1df0 10782
2fccf04a
DJ
107832002-04-01 Daniel Jacobowitz <drow@mvista.com>
10784
10785 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10786 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10787
2d1bfe2e
MK
107882002-03-31 Mark Kettenis <kettenis@gnu.org>
10789
a5941fbf
MK
10790 * NEWS: Mention gcore support on FreeBSD/i386.
10791
a90cd31d
MK
10792 * fbsd-proc.c: New file.
10793 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10794 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10795
2d1bfe2e
MK
10796 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10797 while statement.
10798
9eb6e5a1
JB
107992002-03-29 Jim Blandy <jimb@redhat.com>
10800
10801 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10802 unescaped newlines in string literals, but newer ones don't. So
10803 escape them.
10804
f02df580
MS
108052002-03-26 Michael Snyder <msnyder@redhat.com>
10806 Andrew Cagney <cagney@redhat.com>
10807
361d1df0 10808 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10809 restore file to memory.
10810 * cli/cli-dump.h: New file.
10811 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10812 * NEWS: Mention new commands.
f02df580 10813
109f874e
MS
108142002-03-28 Michael Snyder <msnyder@redhat.com>
10815
10816 * symfile.c (symbol_file_add): Move test for null symbols to later.
10817
520f6ade
AC
108182002-03-27 Andrew Cagney <ac131313@redhat.com>
10819
10820 From veksler at il.ibm.com:
10821 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10822 the xstrduped original path.
10823 Fix PR gdb/417.
10824
d4654627
MS
108252002-03-27 Michael Snyder <msnyder@redhat.com>
10826
10827 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10828 * infcmd.c (_initialize_infcmd): Ditto.
10829 * language.c (_initialize_language): Ditto.
10830 * symfile.c (_initialize_symfile): Ditto.
10831 * top.c (_init_main): Ditto.
10832 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10833
6be8bc0c
EZ
108342002-03-27 Elena Zannoni <ezannoni@redhat.com>
10835
10836 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10837 vector registers handling.
10838 (skip_prologue): Handle new AltiVec instructions. Fill in new
10839 fields of frame data.
10840 (frame_get_saved_regs): Fill in information for AltiVec registers.
10841
12af6855
JB
108422002-03-27 Jim Blandy <jimb@redhat.com>
10843
10844 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10845 a function; leave this macro here to invoke that function.
10846 (symbol_init_mangled_name): Declaration for that function.
10847 * symtab.c (symbol_init_mangled_name): New function.
10848
dc672865
AC
108492002-03-27 Andrew Cagney <ac131313@redhat.com>
10850
10851 * valarith.c: Replace strerror with safe_strerror.
10852 * tracepoint.c: Ditto.
10853 * lin-lwp.c: Ditto.
10854 * go32-nat.c: Ditto.
10855 * inflow.c: Ditto.
10856 * gnu-nat.c: Ditto.
10857
d96429cd
AS
108582002-03-27 Andreas Schwab <schwab@suse.de>
10859
10860 * event-top.c (command_line_handler): Remove useless if.
10861
7e336ba1
AJ
108622002-03-27 Andreas Jaeger <aj@suse.de>
10863
10864 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10865 comment.
10866
de220d0f
ML
108672002-03-27 Michal Ludvig <mludvig@suse.cz>
10868
10869 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10870 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10871 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10872 (x86_64_linux_dr_get_status, supply_gregset),
10873 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10874 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10875 (x86_64_register_info_table): Add.
10876 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10877 (x86_64_register_raw_size, x86_64_register_virtual_type),
10878 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10879 general x86_64_register_info_table.
10880 (i386_gdbarch_init): gdbarch_register_bytes is now set
10881 dynamicaly during initialization.
10882 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10883 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10884
0e98d0a7
DJ
108852002-03-27 Daniel Jacobowitz <drow@mvista.com>
10886
10887 * gdbserver/server.c (main): Call target_signal_to_host_p
10888 and target_signal_to_host on signals received from the remote.
10889 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10890 target_signal_from_host on signals sent to the remote.
10891 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10892 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10893
3130066b
DJ
108942002-03-27 Daniel Jacobowitz <drow@mvista.com>
10895
10896 * signals/signals.c: Include "server.h" in gdbserver build.
10897 (target_signal_from_name): Don't use STREQ.
10898 (_initialize_signals): Likewise. Don't include function in
10899 gdbserver build.
10900
9aedf4f4
DJ
109012002-03-27 Daniel Jacobowitz <drow@mvista.com>
10902
10903 * signals.c: Moved to...
10904 * signals/signals.c: Here.
7e336ba1 10905 * Makefile (signals.o): Update.
9aedf4f4 10906
3fa41cdb
JL
109072002-03-26 Jeff Law (law@redhat.com)
10908
10909 * somread.c (som_symtab_read): Remove some commented out code and
10910 updated related comments. Do not set the minimal symbol table to
10911 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10912 in a dynamic executable.
10913 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10914 where we are unable to find the minimal symbol for the given
10915 PC value.
10916
ee677e8d
MS
109172002-03-25 Jeff Law (law@redhat.com)
10918
10919 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10920
e76e1718
ML
109212002-03-25 Michal Ludvig <mludvig@suse.cz>
10922
10923 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10924
18a642a1
AC
109252002-03-23 Andrew Cagney <ac131313@redhat.com>
10926
10927 * command.h: Update copyright.
10928 (struct cmd_list_element): Replace definition with opaque
10929 declaration.
10930 (enum cmd_types): Document that it will eventually be moved to
10931 cli/cli-decode.h
10932 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10933 (MALLOCED_REPLACEMENT): Delete macro.
10934 * Makefile.in (cli_decode_h): Add $(command_h).
10935 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10936 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10937 * completer.c: Include "cli/cli-decode.h".
10938 * maint.c: Include "cli/cli-decode.h".
10939 * cli/cli-decode.h: Include "command.h".
10940 (enum command_class): Delete.
10941 (enum cmd_types): Comment out.
10942 (enum cmd_auto_boolean): Delete.
10943 (enum var_types): Delete.
10944
b2875cc0
AC
109452002-03-23 Andrew Cagney <ac131313@redhat.com>
10946
10947 * cli/cli-decode.c: Include "gdb_assert.h".
10948 (add_set_or_show_cmd): New static function.
10949 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10950 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10951 all fields, such as func, from the set command.
10952
3b45974e
AC
109532002-03-23 Andrew Cagney <ac131313@redhat.com>
10954
10955 * MAINTAINERS (sh-elf): Change warning flag to -w.
10956
823ca731
AC
109572002-03-23 Andrew Cagney <cagney@redhat.com>
10958
10959 * defs.h (error): Add printf format attribute.
10960 * thread-db.c (thread_from_lwp): Fix error format string.
10961 * stack.c (parse_frame_specification): Ditto.
10962 * cli/cli-decode.c (undef_cmd_error): Ditto.
10963 * scm-lang.c (scm_lookup_name): Ditto.
10964 * tracepoint.c (trace_error): Ditto.
10965 * remote-utils.c (usage): Ditto.
10966 * remote.c (compare_sections_command): Ditto.
10967 Fix PR gdb/328.
10968
0e101458
AC
109692002-03-22 Andrew Cagney <ac131313@redhat.com>
10970
10971 * gdbtypes.c (append_composite_type_field): New function.
10972 (init_composite_type): New function.
10973 * gdbtypes.h (append_composite_type_field): Declare.
10974 (init_composite_type): Ditto.
10975
8e0662df
EZ
109762002-03-22 Elena Zannoni <ezannoni@redhat.com>
10977
10978 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10979 function.
8e0662df
EZ
10980 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10981 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10982 structure returning convention for SYSV ABI case, but not
10983 for GNU/Linux, FreeBSD, or NetBSD.
10984
3121eff0
DJ
109852002-03-22 Daniel Jacobowitz <drow@mvista.com>
10986
10987 * symtab.h (lookup_block_symbol): Add mangled_name argument
10988 to prototype.
10989
10990 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10991 with new mangled_name argument.
10992 * linespec.c (decode_line_1): Likewise.
10993 * valops (value_of_this): Likewise.
10994 * symtab.c (lookup_transparent_type): Likewise.
10995 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10996 (lookup_symbol): If we are given a mangled name, pass it down
10997 to lookup_symbol_aux.
10998 (lookup_block_symbol): If we are given a mangled name to check
10999 against, only return symbols which match it.
11000
349b409f
CF
110012002-03-22 Christopher Faylor <cgf@redhat.com>
11002
11003 * win32-nat.c (child_create_inferior): Check for proper shell to use
11004 here, in case the user changes it on the fly.
11005 (_initialize_inftarg): Remove shell path considerations.
11006
2a873819
EZ
110072002-03-21 Elena Zannoni <ezannoni@redhat.com>
11008
11009 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11010 for gdbarch_max_register_raw_size and max_register_virtual_size.
11011 Adjust copyright year.
11012
a1b9830c
DJ
110132002-03-21 Daniel Jacobowitz <drow@mvista.com>
11014
11015 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11016 in a function to cover the entire beginning of the function
11017 as well if it does not already.
11018
8b5790f2
TR
110192002-03-21 Tom Rix <trix@redhat.com>
11020
11021 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11022 (rs6000_ptrace64): Renamed from ptrace64.
11023
bdbe5747
MH
110242002-03-20 Martin M. Hunt <hunt@redhat.com>
11025
11026 * gdbserver/remote-utils.c (remote_open): Don't call
11027 getprotobyname, we're all using TCP here so just use
11028 IPPROTO_TCP.
7e336ba1 11029 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
11030
110312002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 11032
bdbe5747
MH
11033 * regcache.c (_initialize_regcache): No need to call
11034 build_regcache() at this time; it gets called whenever
11035 the gdbarch changes.
11036
7781cd62
DB
110372002-03-20 David O'Brien <obrien@FreeBSD.org>
11038
11039 * sparc-nat.c: Include sys/param.h where possible.
11040
f65ca430
DJ
110412002-03-20 Daniel Jacobowitz <drow@mvista.com>
11042
11043 Fix PR gdb/422.
11044 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11045 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11046 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11047 complex types.
11048 * stabsread.c (rs6000_builtin_type): Likewise.
11049 (read_sun_floating_type): Likewise.
11050
0c867556
PS
110512002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11052
11053 * stabsread.c (read_member_functions): Remove skip code for duplicate
11054 constructor/destructor methods. Use standard parsing for these
11055 methods and just do not chain them to the list of methods after
11056 parsing.
11057
12b9c64f
AO
110582002-03-19 Alexandre Oliva <aoliva@redhat.com>
11059
11060 * coffread.c: Remove redundant static declarations. Replace
11061 occurrences of `PTR' with `void *'.
11062 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11063 * top.h (quit_cover): Likewise.
11064 * defs.h (catch_errors): Likewise.
11065
349c5d5f
AC
110662002-03-18 Andrew Cagney <ac131313@redhat.com>
11067
11068 * defs.h (XMALLOC): Define.
11069 * gdb-events.sh (XMALLOC): Delete macro.
11070 * gdb-events.c, gdb-events.h: Regenerate.
11071 * gdbarch.sh (XMALLOC): Delete macro.
11072 * gdbarch.c: Regenerate.
11073 * serial.c (XMALLOC): Delete macro.
11074 * ui-file.c (XMALLOC): Ditto.
11075 * ser-unix.h (XMALLOC): Ditto.
11076 * sh-tdep.c (XMALLOC): Ditto.
11077 * ui-out.c (XMALLOC): Ditto.
11078 * utils.c (XMALLOC): Ditto.
11079 * i386-tdep.c (XMALLOC): Ditto.
11080 * gdb-events.c (XMALLOC): Ditto.
11081 * d10v-tdep.c (XMALLOC): Ditto.
11082 * cli-out.c (XMALLOC): Ditto.
11083
11084 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11085 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11086 * ui-file.c, ui-out.c: Ditto.
11087
7d0766f3
AC
110882002-03-18 Andrew Cagney <ac131313@redhat.com>
11089
11090 * command.h (struct cmd_list_element): Add field context.
11091 (set_cmd_context, get_cmd_context): Declare.
11092 * cli/cli-decode.h: Ditto.
11093 * cli/cli-decode.c (get_cmd_context): New function.
11094 (set_cmd_context): New function.
11095 (add_cmd): Initialize context.
11096 Part of fixing PR gdb/145 and PR gdb/146.
11097
5913bcb0
AC
110982002-03-17 Andrew Cagney <ac131313@redhat.com>
11099
1868c04e
AC
11100 * cli/cli-decode.c (cmd_type): New function.
11101 * command.h (cmd_type): Declare.
11102 * infrun.c (set_schedlock_func): Call function cmd_type.
11103 * kod.c (kod_set_os): Call cmd_type.
11104 * cris-tdep.c (cris_version_update): Use function cmd_type.
11105 (cris_mode_update, cris_abi_update): Ditto.
11106
5913bcb0
AC
11107 * command.h: (execute_cmd_post_hook): Declare.
11108 (execute_cmd_pre_hook): Declare.
11109 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11110 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11111 functions. Execute pre/post hook while ensuring that afterwords
11112 hook_in is cleared.
11113 * top.c (execute_command): Use execute_cmd_post_hook, and
11114 execute_cmd_pre_hook to execute pre/post commands.
11115 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11116 hook_stop_stub.
11117 (hook_stop_stub): Call execute_cmd_pre_hook.
11118
b51450c9
AC
111192002-03-17 Andrew Cagney <ac131313@redhat.com>
11120
11121 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11122 set'' and this leads to a core dump. Move xstrdup of
11123 operating_system to after check that it is not NULL.
11124
f66c9f11
AC
111252002-03-17 Andrew Cagney <ac131313@redhat.com>
11126
8e694ecf
AC
11127 * kod.c (kod_set_os): Remove unnecessary check that
11128 ``command->type'' is set_cmd.
11129
f66c9f11
AC
11130 * valprint.c (set_input_radix): Use input_radix.
11131 (set_output_radix): Use output_radix.
11132 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11133 isn't reverted.
11134
9d01611c
AC
111352002-03-16 Andrew Cagney <ac131313@redhat.com>
11136
11137 * value.h (struct value): Delete field ``substring_addr''. Change
11138 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
11139 force_core_addr_align and force_pointer_aligh.
11140
11141 * value.h (struct value): Fix typo in above change.
9d01611c 11142
4156bb53
PS
111432002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11144
11145 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11146 to fix internal_error from ``maintenance print architecture''.
11147
0e5e3ea6
PS
111482002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11149
11150 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11151 for gcc versions after gcc-2.8.1.
11152
9b013045
PS
111532002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11154
11155 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11156 for method resolution. Restore adjustment of ``this'' pointer after
11157 calling value_struct_elt, which was accidentally removed during the
11158 HP merge.
11159
376c9600
AC
111602002-03-15 Andrew Cagney <ac131313@redhat.com>
11161
11162 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11163 value_of_register.
11164 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11165 get_saved_register.
11166 * value.h (value_of_register): Update.
11167
a4db0f07
RH
111682002-03-14 Richard Henderson <rth@redhat.com>
11169
11170 * configure.in: Detect declaration for canonicalize_file_name.
11171 * utils.c (canonicalize_file_name): Declare, if needed.
11172 (gdb_realpath): Prefer realpath if available and usable.
11173 * config.in, configure: Rebuild.
11174
96383835
RH
111752002-03-14 Richard Henderson <rth@redhat.com>
11176
11177 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11178 a constant array bound.
11179
11180 * MAINTAINERS: Add myself to write-after-approval.
11181
75245b24
MS
111822002-03-14 Michael Snyder <msnyder@redhat.com>
11183
11184 * symfile.c (syms_from_objfile): Return immediately if no syms.
11185 (symbol_file_add): Return immediately if no syms.
11186 (find_sym_fns): Return immediately if no syms.
11187
e641a1ca
ML
111882002-03-13 Michal Ludvig <mludvig@suse.cz>
11189
11190 * gdbserver/remote-util.c (remote_open): Print remote-side's
11191 IP address when remote debugging over the network.
7e336ba1 11192
df08bfec
DB
111932002-03-12 David O'Brien <obrien@FreeBSD.org>
11194
11195 * config/sparc/fbsd.mh: Fix copyright.
11196 * config/sparc/fbsd.mt: Likewise.
11197
9a57864f
RE
111982002-03-11 Richard Earnshaw <rearnsha@arm.com>
11199
11200 * MAINTAINERS: Fix typo in name of gdb warnings option.
11201 (x86-64): Fix formating so that this can be parsed by awk.
11202
dd7bf85e
DJ
112032002-03-10 Daniel Jacobowitz <drow@mvista.com>
11204
11205 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11206 * defs.h: Include "gdb/signals.h".
11207 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11208
33a0a2ac
ML
112092002-03-10 Michal Ludvig <mludvig@suse.cz>
11210
11211 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11212 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11213 from x86-64-tdep.h
11214
dd824b04
DJ
112152002-03-10 Daniel Jacobowitz <drow@mvista.com>
11216 Don Howard <dhoward@redhat.com>
11217
11218 * mips-tdep.c (ST0_FR): Define.
11219 (mips2_fp_compat): New function, temporarily disabled.
11220 (mips_read_fp_register_single): New function.
11221 (mips_read_fp_register_double): New function.
11222 (mips_print_register): Use them.
11223 (do_fp_register_row): Likewise.
11224
6a41ff59
AC
112252002-03-09 Andrew Cagney <ac131313@redhat.com>
11226
11227 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11228 approval''.
11229
4ea09c10
PS
112302002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11231
11232 * stabsread.c (read_member_functions): Fix is_stub test for
11233 static member functions, improve comment.
11234
6ccc741d
RE
112352002-03-07 Richard Earnshaw <rearnsha@arm.com>
11236
11237 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11238 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11239 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11240 commands that set boolean values.
11241 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11242 (arm_rdi_resume): Always initialize PC.
11243 (arm_rdi_open): Don't use rslt as a boolean.
11244 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11245 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11246 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11247 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11248
438013df
AO
112492002-03-06 Alexandre Oliva <aoliva@redhat.com>
11250
11251 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11252 * configure: Rebuilt.
11253
70ed8774
SC
112542002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11255
11256 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11257 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11258
5ba2abeb
AC
112592002-03-06 Andrew Cagney <ac131313@redhat.com>
11260
11261 * cli/cli-decode.c (set_cmd_completer): New function.
11262 * command.h (set_cmd_completer): Declare.
11263 * cli/cli-decode.h (set_cmd_completer): Ditto.
11264
11265 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11266 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11267 * win32-nat.c (_initialize_inftarg): Ditto.
11268 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11269 * proc-api.c (_initialize_proc_api): Ditto.
11270 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11271 * source.c (_initialize_source): Ditto.
11272 * exec.c (_initialize_exec): Ditto.
11273 * solib.c (_initialize_solib): Ditto.
11274 * top.c (init_main): Ditto.
11275 * tracepoint.c (_initialize_tracepoint): Ditto.
11276 * symfile.c (_initialize_symfile): Ditto.
11277 * printcmd.c (_initialize_printcmd): Ditto.
11278 * infcmd.c (_initialize_infcmd): Ditto.
11279 * corefile.c (_initialize_core): Ditto.
11280
f779ca99
AC
112812002-03-05 Andrew Cagney <ac131313@redhat.com>
11282
11283 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11284
01a3934b
AC
112852002-03-05 Andrew Cagney <ac131313@redhat.com>
11286
11287 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11288
37057839
AC
112892002-03-05 Andrew Cagney <ac131313@redhat.com>
11290
11291 * NEWS: Update headings, 5.2 has branched.
11292
c6ecbae5
DJ
112932002-03-04 Daniel Jacobowitz <drow@mvista.com>
11294
11295 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11296 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11297 (register_addr, REGISTER_RAW_SIZE): Likewise.
11298 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11299 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11300
e9f30c21
ML
113012002-03-03 Michal Ludvig <mludvig@suse.cz>
11302
11303 * MAINTAINERS (x86-64): Add myself.
11304 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11305 changed value_ptr -> struct value *
11306
54394ac3
DB
113072002-03-01 David O'Brien <obrien@FreeBSD.org>
11308
11309 * configure.host (sparc64-*-freebsd): Add.
11310 * configure.tgt: Likewise.
11311 * config/sparc/fbsd.mh: New file.
11312 * config/sparc/fbsd.mt: Likewise.
11313 * config/sparc/nm-fbsd.h: Likewise.
11314 * config/sparc/tm-fbsd.h: Likewise.
11315
bfe95955
DJ
113162002-03-01 Daniel Jacobowitz <drow@mvista.com>
11317
11318 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11319 regformats/reg-s390x.dat.
11320
f33c6cbf
AC
113212002-03-01 Andrew Cagney <ac131313@redhat.com>
11322
11323 * utils.c: Add FIXME explaining true/false problem.
11324
5ecaa7dd
AC
113252002-02-28 Andrew Cagney <ac131313@redhat.com>
11326
11327 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11328
2a251cc2
MC
113292002-02-28 Michael Chastain <mec@shout.net>
11330
11331 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11332
6a8031a3 113332002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11334
11335 * gdbserver/linux-s390-low.c: New file.
11336 * regformats/reg-s390.dat: New file.
11337 * regformats/reg-s390x.dat: New file.
11338 * gdbserver/configure.srv: Add S/390.
11339 * gdbserver/Makefile.in: Add S/390.
11340 * configure.tgt: Enable gdbserver for S/390.
11341
ac469903
EZ
113422002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11343
11344 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11345 first line of the doc string for "info dos", except at the end of
11346 the sentence, since the short help stops at the first period.
11347
985cb1a3
JM
113482002-02-28 Jason Merrill <jason@redhat.com>
11349
11350 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11351
c570663e
FF
113522002-02-27 Fred Fish <fnf@redhat.com>
11353
11354 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11355 comment (dumy -> dummy).
11356
43630227
PS
113572002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11358
11359 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11360
b84911e8
RB
113612002-02-27 Rodney Brown <rbrown64@csc.com.au>
11362
11363 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11364
58caa3dc
DJ
113652002-02-27 Daniel Jacobowitz <drow@mvista.com>
11366
11367 * gdbserver/acconfig.h: New file.
11368 * gdbserver/i387-fp.c: New file.
11369 * gdbserver/i387-fp.h: New file.
11370 * gdbserver/linux-x86-64.c: New file.
11371 * regformats/reg-x86-64.dat: New file.
11372 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11373 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11374 * gdbserver/configure.in: Add support for regsets.
11375 * gdbserver/config.in: Regenerate.
11376 * gdbserver/configure: Regenerate.
11377 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11378 * gdbserver/linux-low.h: New file.
11379 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11380 for regsets.
11381 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11382 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11383 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11384 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11385 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11386 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11387 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11388 "i387-fp.h". Add PTRACE_GETREGS and friends.
11389 * gdbserver/regcache.c (supply_register): New function.
11390 (supply_register_by_name): New function.
11391 (collect_register): New function.
11392 (collect_register_by_name): New function.
11393
93652174
DJ
113942002-02-27 Daniel Jacobowitz <drow@mvista.com>
11395
11396 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11397 (config.status): Add configure.srv dependency.
11398 (server_h): Add config.h dependency.
11399
a02e4a61
DJ
114002002-02-27 Daniel Jacobowitz <drow@mvista.com>
11401
11402 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11403 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11404 * gdbserver/configure.srv: Change i386-*-linux* to use
11405 reg-i386-linux.o.
11406
ce0eebec
AC
114072002-02-26 Andrew Cagney <ac131313@redhat.com>
11408
11409 * x86-64-tdep.c: Re-indent. Update copyright date.
11410
82dbc5f7
AC
114112002-02-26 Andrew Cagney <ac131313@redhat.com>
11412
11413 From Michal Ludvig <mludvig@suse.cz>:
11414 * x86-64-tdep.c (value.h): Delete.
11415 (gdb_assert.h): Include.
11416 (x86_64_register_convert_to_virtual,
11417 x86_64_register_convert_to_raw ): Add check which lets only
11418 floating-point values to be converted.
11419 (value_push): Delete.
11420 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11421 (i386_gdbarch_init): Number of register_bytes fixed.
11422
e4621584
AC
114232002-02-26 Andrew Cagney <ac131313@redhat.com>
11424
11425 * MAINTAINERS: Add x86-64 target.
11426
81a9a963
AC
114272002-02-26 Andrew Cagney <ac131313@redhat.com>
11428
11429 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11430 * osfsolib.c (solib_map_sections): Ditto.
11431 * irix5-nat.c (solib_map_sections): Ditto.
11432 * corelow.c (gdb_check_format): Ditto.
11433 * symfile.c (symfile_bfd_open): Ditto.
11434 * solib.c (solib_map_sections): Ditto.
11435 Fix PR gdb/354.
7e336ba1 11436
0f017ab9
AC
114372002-02-26 Andrew Cagney <ac131313@redhat.com>
11438
11439 * remote.c (_initialize_remote): By default, disable ``e'' and
11440 ``E'' step out-of-range packets.
11441
75738c29
AS
114422002-02-26 Andreas Schwab <schwab@suse.de>
11443
11444 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11445 m68k_linux_frame_saved_pc.
11446 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11447 in_sigtramp.
11448 (SIGCONTEXT_PC_OFFSET): Remove.
11449 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11450 m68k_linux_sigtramp_saved_pc): New functions.
11451 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11452 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11453 (UCONTEXT_PC_OFFSET): Define.
11454 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11455 non-RT and RT signal trampolines.
11456
7e8ed687
RE
114572002-02-26 Richard Earnshaw <rearnsha@arm.com>
11458
11459 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11460 (TARGET_NBPG, STACK_END_ADDR): Delete
11461 (VARIABLES_INSIDE_BLOCK): Delete.
11462
6972bc8b
AC
114632002-02-25 Andrew Cagney <ac131313@redhat.com>
11464
11465 * utils.c (perror_with_name): Make string parameter constant.
11466 (print_sys_errmsg): Ditto.
11467 (query): Ditto.
11468 * defs.h (perror_with_name): Update.
11469 (print_sys_errmsg): Update.
11470 (query): Update.
11471
aa32f823
DJ
114722002-02-25 Daniel Jacobowitz <drow@mvista.com>
11473
11474 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11475 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11476
19caaa45
PS
114772002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11478
11479 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11480 if it already matches the current architecture from the exec file.
11481 Include arch-utils.h for gdbarch_info_init prototype.
11482 * Makefile.in (rs6000-nat.o): Update dependencies.
11483
d951901f
EZ
114842002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11485
11486 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11487 list of exported variables.
11488
7ea81414
DJ
114892002-02-24 Daniel Jacobowitz <drow@mvista.com>
11490
11491 * gdbserver/configure.srv: New file.
11492 * gdbserver/configure.in: Use configure.srv instead
11493 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11494 from it.
11495 * gdbserver/configure: Regenerated.
11496 * gdbserver/terminal.h: New file.
11497 * gdbserver/Makefile.in: Update for configure changes. Remove
11498 more unneeded include paths.
11499
080fe24b
AC
115002002-02-24 Andrew Cagney <ac131313@redhat.com>
11501
11502 From wiz at danbala:
11503 * config/sparc/tm-sp64.h: Fix grammar and typos.
11504 Fix PR gdb/287.
11505
8605d56e
AC
115062002-02-24 Andrew Cagney <ac131313@redhat.com>
11507
11508 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11509 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11510 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11511 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11512 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11513 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11514 * s390-tdep.c: Ditto.
92362027
AC
11515 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11516 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11517 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11518 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11519 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11520 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11521 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11522 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11523 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11524 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11525 Fix PR gdb/378.
7e336ba1 11526
8ed32cc0
AC
115272002-02-23 Andrew Cagney <ac131313@redhat.com>
11528
a3007b6f
AC
11529 * lin-thread.c: Delete file.
11530 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11531 to gdb_proc_service.h.
11532 * configure: Re-generate.
11533
50a9e2f1
AC
11534 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11535 * serial.c (serial_open): Delete check for "ocd".
11536 Fix PR gdb/349.
11537
8b6e7932
AC
11538 * Makefile.in (linux-thread.o): Delete target.
11539 * linux-thread.c: Delete file.
11540
d155c46b
AC
11541 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11542 renamed SH files to be consistent.
11543
8ed32cc0
AC
11544 * symtab.c (sort_search_symbols): Use xfree.
11545
0e18d038
RE
115462002-02-23 Richard Earnshaw <rearnsha@arm.com>
11547
11548 * arm-linux-tdep.c (arm_linux_init_abi): Register
11549 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11550 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11551 definition with undef, since we don't want the sysvr4 definition.
11552 (SKIP_TRAMPOLINE_CODE): Likewise.
11553
27aac7ff
AC
115542002-02-23 Andrew Cagney <ac131313@redhat.com>
11555
11556 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11557
11558 * configure.in: (AC_CHECK_FUNCS) Added test for
11559 canonicalize_file_name Regenerated.
11560 * config.in, configure: Regenerated.
11561 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11562 defined use canonicalize_file_name.
7e336ba1 11563
65a6e0ee
MC
115642002-02-23 Michael Chastain <mec@shout.net>
11565
11566 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11567
47b95330
AC
115682002-02-23 Andrew Cagney <ac131313@redhat.com>
11569
11570 * README: Remove references to cygnus.com.
11571 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11572 dot com'' form. Remove references to cygnus.com and sourceware.
11573
696f451b
AC
115742002-02-23 Andrew Cagney <ac131313@redhat.com>
11575
11576 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11577 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11578 1003.1-2001 no longer allows "head -1".
11579 * gdb/Makefile.in (version.c): Likewise.
11580 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11581 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11582 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11583
bbaca940
AC
115842002-02-23 Andrew Cagney <ac131313@redhat.com>
11585
11586 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11587 * command.h (cmd_cfunc_eq): Declare.
11588 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11589
11590 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11591 ``struct cmd_list_element *''.
11592 * cli/cli-cmds.c (is_complete_command): Update. Use
11593 cmd_cfunc_eq.
11594 * top.c (execute_command): Pass the command to
11595 is_complete_command.
11596 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11597
b8b8b047
AC
115982002-02-23 Andrew Cagney <ac131313@redhat.com>
11599
11600 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11601 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11602 architecture defines.
11603 * s390-tdep.c (s390_gdbarch_init): Likewise.
11604
19d3fc80
RE
116052002-02-23 Richard Earnshaw <rearnsha@arm.com>
11606
11607 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11608 (arm_linux_push_arguments): Likewise.
11609 (arm_linux_init_abi): Register them. Also register linux-specific
11610 call_dummy_words.
11611 (find_minsym_and_objfile): Use strcmp, not STREQ.
11612 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11613 (arm_linux_call_dummy_words): Delete declaration.
11614 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11615 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11616 declarations.
11617 (LOWEST_PC): Delete.
11618
3ab13650
PS
116192002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11620
11621 * maint.c (print_section_info): Do not prepend `0x' to filepos
11622 output, it will be handled by local_hex_string_custom.
11623
19d3fc80 116242002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11625
11626 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11627 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11628 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11629
d85a5daf
JB
116302002-02-22 Jim Blandy <jimb@redhat.com>
11631
11632 Indicate that the bcache functions don't change the strings
11633 they're passed.
11634 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11635 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11636
eeb25b8a
PM
116372002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11638
11639 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11640
6badb179
CF
116412002-02-21 Christopher Faylor <cgf@redhat.com>
11642
11643 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11644 find the complete path to a loaded DLL.
11645
e8717518
FF
116462002-02-21 Fred Fish <fnf@redhat.com>
11647
11648 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11649 that marks the end of the range of a function, enter a line number
11650 entry that has a line number of zero and a PC offset that matches
11651 the end of the function. This starts a range of PC's for which no
11652 line number information is known.
11653 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11654 PC's for which no line number info is found (line number is zero)
11655 then we didn't find any valid line information.
11656 * symtab.h: Document use of zero line number entry.
11657
9abe5450
EZ
116582002-02-21 Elena Zannoni <ezannoni@redhat.com>
11659
11660 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11661 (have_ptrace_getvrregs): Define for run time checks.
11662 (gdb_vrregset_t): New type for Altivec register handling.
11663 (fetch_register, store_register): Fetch/store altivec register
11664 when needed.
11665 (fetch_altivec_register, store_altivec_register): New functions.
11666 (supply_vrregset, fill_vrregset): New functions.
11667 (fetch_altivec_registers, store_altivec_registers): New functions.
11668 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11669 registers as well.
11670
aaa38bb5
AJ
116712002-02-21 Jiri Smid <smid@suse.cz>
11672
11673 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11674
b34db576
RE
116752002-02-21 Richard Earnshaw <rearnsha@arm.com>
11676
11677 * Makefile.in (armnbsd-nat.o): Update dependencies.
11678 * armnbsd-nat.c (supply_gregset): New function. Common code to
11679 supply the integer register set.
11680 (supply_fparegset): New function. Similar for FPA registers.
11681 (fetch_regs, fetch_fp_regs): Use them.
11682 (fetch_core_registers): Likewise.
11683 (fetch_elfcore_registers): New function.
11684 (arm_netbsd_elfcore_fns): New core-file type specification.
11685 (_initialize_arm_netbsd_nat): Register it.
11686
3e56fc4b
RE
116872002-02-21 Richard Earnshaw <rearnsha@arm.com>
11688
11689 * armnbsd-nat.c: Include gdbcore.h.
11690 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11691 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11692 'void' to declaration, to shut up ARI.
11693 (fetch_core_registers): Make static. Rewrite using supply_register.
11694 (arm_netbsd_core_fns): New core-file type specification.
11695 (_initialize_arm_netbsd_nat): New function.
11696
097f6b0b
CF
116972002-02-21 Christopher Faylor <cgf@redhat.com>
11698
11699 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11700 value.
11701
c914e0cc
CF
117022002-02-20 Christopher Faylor <cgf@redhat.com>
11703
11704 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11705 fails.
11706
385fa495
DJ
117072002-02-20 Daniel Jacobowitz <drow@mvista.com>
11708
11709 * jv-exp.y (parse_number): Change type of implicit longs
11710 to builtin_type_uint64.
11711
e5f1222d
DJ
117122002-02-20 Daniel Jacobowitz <drow@mvista.com>
11713
11714 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11715 to be an integer instead of a `union wait'.
11716
75c9abc6
DJ
117172002-02-20 Daniel Jacobowitz <drow@mvista.com>
11718
11719 * mips-linux-nat.c: Call the operating system GNU/Linux.
11720 * mips-linux-tdep.c: Likewise.
11721 * mips-tdep.c: Likewise.
11722
551792a5
DJ
117232002-02-20 Daniel Jacobowitz <drow@mvista.com>
11724
11725 Fix PR gdb/265.
11726 * jv-exp.y (parse_number): Handle 64-bit integers.
11727
ee6e2b82
DJ
117282002-02-20 Daniel Jacobowitz <drow@mvista.com>
11729
11730 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11731 AC_STDC_HEADERS to AC_HEADER_STDC.
11732 * gdbserver/configure: Regenerated.
11733
a48442a0
RE
117342002-02-20 Richard Earnshaw <rearnsha@arm.com>
11735
11736 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11737 is defined.
11738 * sparc-tdep.c (get_longjmp_target): Likewise.
11739
fe419ffc
RE
117402002-02-20 Richard Earnshaw <rearnsha@arm.com>
11741
11742 * News: Add news about ARM and Multi-arch. Mention the new target
11743 arm*-*-netbsd*.
11744
5832ed7e
JB
117452002-02-19 Jim Blandy <jimb@redhat.com>
11746
11747 * stabsread.c (error_type_complaint): Improve error message.
11748
84563040
DJ
117492002-02-19 Daniel Jacobowitz <drow@mvista.com>
11750
11751 * gdbserver/README: Update documentation.
11752 * gdbserver/configure.in: Update configury to match documentation.
11753 * gdbserver/Makefile.in: Likewise.
11754 * gdbserver/configure: Regenerated.
11755 * gdbserver/aclocal.m4: New file, generated by aclocal.
11756 * gdbserver/config.in: New file, generated by autoheader.
11757
375fd65b
RE
117582002-02-19 Richard Earnshaw <rearnsha@arm.com>
11759
11760 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11761 armnbsd-nat.c.
11762
08216dd7
RE
117632002-02-19 Richard Earnshaw <rearnsha@arm.com>
11764
11765 * arm-tdep.h (enum arm_float_model): New enum.
11766 (struct gdbarch_tdep): Add fp_model.
11767 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11768 up floating-point conversions until we know the floating-point model
11769 in use by the inferior. Don't complain about being unable to
11770 determine the ABI of the inferior when we don't have one.
11771 (arm_extract_return_value): Support different floating-point models.
11772 (arm_store_return_value): Likewise.
aaa38bb5 11773 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11774 ARM_FLOAT_SOFT.
11775 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11776
65d6d66a
PS
117772002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11778
11779 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11780 of ``current_gdbarch''.
11781
47221191
RE
117822002-02-19 Richard Earnshaw <rearnsha@arm.com>
11783
11784 * armnbsd-nat.c : ANSIfy all function declarations.
11785 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11786 (fetch_inferior_registers): Re-implement in terms of above.
11787 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11788 (store_inferior_registers): Re-implement in terms of above.
11789
fdf39c9a
RE
117902002-02-19 Richard Earnshaw <rearnsha@arm.com>
11791
aaa38bb5 11792 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11793 kernel.
11794 * arm-linux-tdep.c: Likewise.
11795 * config/arm/tm-linux.h: Likewise.
11796
93247f88
RE
117972002-02-19 Richard Earnshaw <rearnsha@arm.com>
11798
11799 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11800 * config/arm/nbsd.mt (TM_FILE): Delete.
11801 * config/arm/tm-nbsd.h: Delete.
11802
d7b486e7
RE
118032002-02-19 Richard Earnshaw <rearnsha@arm.com>
11804
11805 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11806 Initialize CALL_DUMMY_LENGTH.
11807
41d39a95
RE
118082002-02-19 Richard Earnshaw <rearnsha@arm.com>
11809
11810 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11811 function.
11812 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11813 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11814 defines one thing and that is incorrect for this port.
11815 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11816
e1195560
PM
118172002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11818
11819 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11820
c1748f97
PM
118212002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11822
11823 * win32-nat.c (display_selector): New function. Displays information
11824 about the information returned by GetThreadSelectorEntry API function.
11825 (display_selectors): New function. Displays the infomation of
11826 the selector given as argument, or of CS, DS ans FS selectors
11827 if no argument is given.
11828 ( _initialize_inftarg): Add "w32" as info prefix command.
11829 Add "info w32 selector" as command calling display_selectors.
11830
e41e6bbf
PM
118312002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11832
11833 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11834 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11835 if not defined.
11836
0d3a9f48
RE
118372002-02-18 Richard Earnshaw <rearnsha@arm.com>
11838
11839 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11840
3fb4b924
RE
118412002-02-18 Richard Earnshaw <rearnsha@arm.com>
11842
11843 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11844 (arm_fix_call_dummy): Call it.
11845 (arm_call_dummy_breakpoint_offset): Delete.
11846 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11847 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11848
7f55af32
AC
118492002-02-18 Andrew Cagney <ac131313@redhat.com>
11850
11851 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11852 Default to func_frame_chain_valid.
11853 * gdbarch.h, gdbarch.c: Re-generate.
11854 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11855
05f13b9c
EZ
118562002-02-18 Elena Zannoni <ezannoni@redhat.com>
11857
11858 * ppc-linux-nat.c: Update copyright.
11859 (fetch_register, store_register): Add tid parameter, don't compute
11860 tid here.
11861 (fetch_ppc_registers, store_ppc_registers): Add tid
11862 parameter. Pass it along to callees.
11863 (fetch_inferior_registers, store_inferior_registers): Compute tid
11864 here, and pass it to calleed functions.
11865 (fill_gregset, supply_fpregset): Clean up formatting.
11866
d7afb4c9
RE
118672002-02-18 Richard Earnshaw <rearnsha@arm.com>
11868
11869 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11870 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11871
9df628e0
RE
118722002-02-18 Richard Earnshaw <rearnsha@arm.com>
11873
11874 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11875 * gdbarch.c gdbarch.h: Regenerate.
11876 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11877 function.
11878 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11879 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11880 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11881
11882 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11883 * arm-tdep.c (arm_get_longjmp_target): New function.
11884 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11885 this to a positive value register arm_get_longjmp_target as the
11886 longjmp handler.
11887 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11888 (arm_linux_init_abi): Set up longjmp description in tdep.
11889 * armnbsd-nat.c (get_longjmp_target): Delete.
11890 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11891 description in tdep.
11892 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11893 (get_longjmp_target): Delete declaration.
11894 (GET_LONGJMP_TARGET): Delete.
11895 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11896 (GET_LONGJMP_TARGET): Delete.
11897
57bc8964
KB
118982002-02-17 Kevin Buettner <kevinb@redhat.com>
11899
11900 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11901 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11902 of ``current_gdbarch''.
11903
83d31a92
TT
119042002-02-17 Tom Tromey <tromey@redhat.com>
11905
11906 * cli/cli-cmds.c (compare_strings): New function.
11907 (complete_command): Only print each unique item once.
11908 * completer.h (complete_line): Declare.
11909 * completer.c (complete_line): New function.
11910 (line_completion_function): Use it.
11911
17ef5d92
AC
119122002-02-16 Andrew Cagney <ac131313@redhat.com>
11913
11914 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11915 * gdbarch.h, gdbarch.c: Re-generate.
11916
491b8946
DJ
119172002-02-16 Daniel Jacobowitz <drow@mvista.com>
11918
11919 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11920
119212002-02-16 Daniel Jacobowitz <drow@mvista.com>
11922
11923 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11924 * valops.c (value_arg_coerce): Don't take the address of a reference
11925 to convert an argument to a reference.
11926
dfe7f3ac
CF
119272002-02-15 Christopher Faylor <cgf@redhat.com>
11928
11929 * win32-nat.c (get_image_name): New function.
11930 (handle_load_dll): Use get_image_name function.
11931 (get_child_debug_event): Avoid registering debug events until possibly
11932 execed process is started.
11933 (child_create_inferior): Allow invocation via shell so that command
11934 line redirection, etc. works ok.
11935 (_initialize_inftarg): Add new command: "set shell" to control whether
11936 a shell is used to start a process.
11937
1d33e73a
DJ
119382002-02-15 Daniel Jacobowitz <drow@mvista.com>
11939
11940 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11941 instead of find_register_by_number.
11942 (cannot_store_register): Likewise.
11943
48cd0caa
PM
119442002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11945
aaa38bb5 11946 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11947 fprintf_unfiltered (gdb_stderr, ...).
11948
8656e7d8
DJ
119492002-02-15 Daniel Jacobowitz <drow@mvista.com>
11950
11951 * gdbserver/gdbserver.1: Document --attach.
11952
66e810cd
RE
119532002-02-15 Richard Earnshaw <rearnsha@arm.com>
11954
11955 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11956 descriptions.
11957 * arm-tdep.c (arm_default_arm_le_breakpoint)
11958 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11959 (arm_default_thumb_be_breakpoint): New. Initialize them from
11960 traditional breakpoint defines.
11961 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11962 (arm_gdbarch_init): Initialize new breakpoint variables.
11963 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11964 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11965 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11966 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11967 code out to ...
11968 (arm_netbsd_init_abi_common): ... here; new function.
11969 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11970 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11971 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11972 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11973
97e03143
RE
119742002-02-15 Richard Earnshaw <rearnsha@arm.com>
11975
11976 * arm-tdep.h (enum arm_abi): New enum.
11977 (struct gdbarch_tdep): New structure.
11978 (LOWEST_PC): Provide a default.
11979 (arm_gdbarch_register_os_abi): Declare new function.
11980 * arm-tdep.c (arm_abi_names): New array.
11981 (process_note_abi_tag_sections): New function.
11982 (get_elfosabi): New function.
11983 (arm_gdbarch_register_os_abi): New function.
11984 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11985 support for that ABI has been built in, then call the appropriate
11986 configuration routine. Use gdbarch_num_regs() to get the number
11987 of registers.
11988 (arm_dump_tdep): New function.
11989 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11990 place-holder functions.
11991 (_initialize_arm_tdep): Register them.
11992 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11993
11994 * armnbsd-tdep.c: New file.
11995 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11996 * config/arm/nbsd.mt (TDEPFILES): Add it.
11997 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11998
11999 * armnbsd-nat.c: Include regcache.h.
12000 * Makefile.in (armnbsd-nat.o): Update dependency list.
12001
12002 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12003
ad68be46
DJ
120042002-02-14 Daniel Jacobowitz <drow@mvista.com>
12005
12006 * gdbserver/Makefile.in: Fix typos in target rules.
12007
003d6d1d
DJ
120082002-02-14 Daniel Jacobowitz <drow@mvista.com>
12009
aaa38bb5 12010 Fix part of PR gdb/267.
003d6d1d
DJ
12011 * linespec.c (find_methods): Handle constructors specially for now.
12012
6b230f1b
CV
120132002-02-14 Corinna Vinschen <vinschen@redhat.com>
12014
12015 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12016 handling.
12017 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12018 standard_coerce_float_to_double().
12019
1ea98d12
CF
120202002-02-14 Christopher Faylor <cgf@redhat.com>
12021
12022 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12023 GDBINIT_FILENAME.
12024
dd47e6fd
EZ
120252002-02-14 Elena Zannoni <ezannoni@redhat.com>
12026
12027 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12028 find_variant_by_name, because it confuses the multiarch
12029 framework. Return NULL if there isn't an architecture with the
12030 user supplied name, instead of forcing a different one without
12031 recording the change with the multiarch machinery.
12032 (find_variant_by_name): Delete.
12033
d7e39b9e
PS
120342002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12035
12036 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12037 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12038
76e42a4f
MH
120392002-02-13 Martin M. Hunt <hunt@redhat.com>
12040
aaa38bb5 12041 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
12042 print_frame_info_listing_hook, set current_source_symtab.
12043
0a30fbc4
DJ
120442002-02-14 Daniel Jacobowitz <drow@mvista.com>
12045
12046 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12047 and remove unused $(INCLUDE_DIR).
12048 Add regcache.c to OBS.
12049 Add generated register protocol files to clean target.
12050 Update dependencies for new objects, obsolete old target code.
12051
12052 * gdbserver/linux-low.c: Remove all platform-specific code to
12053 new files. Remove various dead code. Update to use regcache
12054 functionality.
12055 * gdbserver/remote-utils.c (fromhex): Add return statement
12056 to quiet warning.
12057 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12058 constant.
12059 (input_interrupt): Add integer parameter to match prototype
12060 of a signal handler.
12061 (outreg): Use register_data ().
12062 (prepare_resume_reply): Use gdbserver_expedite_regs.
12063 * gdbserver/server.c (main): Dynamically allocate own_buf because
12064 PBUFSIZ is no longer constant. Use registers_to_string () and
12065 registers_from_string ().
12066 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12067 for error (), fatal (), and warning (). Update definition of
12068 PBUFSIZ to use regcache functionality. Add include guard.
12069 * gdbserver/utils.c (fatal): Add missing ``const''.
12070 (warning): New function.
12071
12072 * regformats/regdat.sh: Include "regcache.h" in generated files.
12073 Provide init_registers () function.
12074 * regformats/regdef.h: Add prototype for set_register_cache ().
12075 Add include guard.
12076
12077 * gdbserver/linux-arm-low.c: New file.
12078 * gdbserver/linux-i386-low.c: New file.
12079 * gdbserver/linux-ia64-low.c: New file.
12080 * gdbserver/linux-m68k-low.c: New file.
12081 * gdbserver/linux-mips-low.c: New file.
12082 * gdbserver/linux-ppc-low.c: New file.
12083 * gdbserver/linux-sh-low.c: New file.
12084
12085 * gdbserver/regcache.c: New file.
12086 * gdbserver/regcache.h: New file.
12087
12088 * gdbserver/low-linux.c: Removed obsolete file.
12089
4cc841d0
DJ
120902002-02-14 Daniel Jacobowitz <drow@mvista.com>
12091
12092 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12093 * config/i386/linux.mt: Likewise.
12094 * config/ia64/linux.mt: Likewise.
12095 * config/m68k/linux.mh: Likewise.
12096 * config/powerpc/linux.mh: Likewise.
12097 * config/mips/linux.mt: Likewise.
12098
12099 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12100
12101 * config/i386/i386lynx.mh: Mark gdbserver variables
12102 as (currently) obsolete for this target.
12103 * config/i386/nbsd.mt: Likewise.
12104 * config/i386/nbsdelf.mt: Likewise.
12105 * config/m32r/m32r.mt: Likewise.
12106 * config/m68k/m68klynx.mh: Likewise.
12107 * config/m68k/nbsd.mt: Likewise.
12108 * config/m68k/sun3os4.mh: Likewise.
12109 * config/mips/vr5000.mt: Likewise.
12110 * config/ns32k/nbsd.mt: Likewise.
12111 * config/pa/hppabsd.mh: Likewise.
12112 * config/pa/hppaosf.mh: Likewise.
12113 * config/powerpc/nbsd.mt: Likewise.
12114 * config/rs6000/rs6000lynx.mh: Likewise.
12115 * config/s390/s390.mt: Likewise.
12116 * config/s390/s390x.mt: Likewise.
12117 * config/sparc/sparclynx.mh: Likewise.
12118 * config/sparc/sun4os4.mh: Likewise.
12119 * config/i386/x86-64linux.mt: Likewise.
12120 * config/sparc/linux.mh: Likewise.
12121
a85f51e7
DJ
121222002-02-14 Daniel Jacobowitz <drow@mvista.com>
12123
12124 * configure.tgt: Configure gdbserver only for known working
12125 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12126 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12127 SUBDIRS if it is configured. Update comment for ${nativefile}.
12128 * configure: Regenerated.
12129
65554fef
MS
121302002-02-13 Michael Snyder <msnyder@redhat.com>
12131
670a52db
MS
12132 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12133
6dbdc4a3
MS
12134 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12135 (default_gcore_mach): Just return 0, work around a problem in bfd.
12136 (default_gcore_target): OK to return NULL if exec_bfd is null.
12137 (make_mem_sec): Use a cast, avoid a warning.
12138
12139 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 12140 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
12141 sizeof (host pointer) != sizeof (target pointer)).
12142 (procfs_make_note_section): Avoid overflow in psargs string.
12143
aaa38bb5 12144 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
12145 implementation return an error.
12146
121472002-02-13 Rodney Brown <rbrown64@csc.com.au>
12148
12149 * procfs.c (procfs_make_note_section): Provide a default definition
12150 (for alpha-dec-osf4.0f). Fix typos.
12151
1e4d76e7
EZ
121522002-02-13 Elena Zannoni <ezannoni@redhat.com>
12153
12154 * linux-proc.c: Add include of regcache.h.
12155 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12156
b6d1a1d5
AC
121572002-02-13 Andrew Cagney <ac131313@redhat.com>
12158
12159 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
12160 * memattr.c (create_mem_region): Disallow useless empty region.
12161 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 12162 non-overlapping.
b6d1a1d5 12163
6c6ea35e
MC
121642002-02-13 Michael Chastain <mec@shout.net>
12165
12166 * defs.h: Kill CONST_PTR.
12167 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12168 * c-lang.c (c_builtin_types): Likewise.
12169 * ch-lang.c (ch_builtin_types): Likewise.
12170 * f-lang.c (f_builtin_types): Likewise.
12171 * language.c (unknown_builtin_types): Likewise.
12172 * m2-lang.c (m2_builtin_types): Likewise.
12173 * p-lang.c (pascal_builtin_types): Likewise.
12174 * scm-lang.c (c_builtin_types): Likewise.
12175
3e0b0f48
KS
121762002-02-13 Keith Seitz <keiths@redhat.com>
12177
12178 * arm-tdep.h (arm_get_next_pc): Add declaration.
12179
67255d04
RE
121802002-02-13 Richard Earnshaw <rearnsha@arm.com>
12181
12182 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12183 with other related struct-returning functions.
12184 (arm_extract_struct_value_address): New function.
12185 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12186 initialize float_format, double_format and long_double_format as
12187 appropriate to the endianness of the target.
12188 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12189 (arm_use_struct_convention): Delete declaration.
12190 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12191
079777f6
KS
121922002-02-13 Keith Seitz <keiths@redhat.com>
12193
12194 * defs.h (core_addr_to_string_nz): New function.
12195
34588f23
MK
121962002-02-13 Mark Kettenis <kettenis@gnu.org>
12197
12198 Apply missing bits of 2002-01-15 patch.
12199 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12200 (fill_fpregset): Use i387_fill_fsave.
12201
49b563f9
KS
122022002-02-12 Keith Seitz <keiths@redhat.com>
12203
49b563f9
KS
12204 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12205 (core_addr_to_string_nz): New function.
12206
aeb98c60
RE
122072002-02-11 Richard Earnshaw <rearnsha@arm.com>
12208
12209 * arm-linux-nat.c: Really include arm-tdep.h.
12210 * config/arm/tm-linux.h (struct type, struct value): Declare.
12211
65554fef
MS
122122002-02-11 Michael Snyder <msnyder@redhat.com>
12213
12214 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12215 (gcore section): Ifdef for Solaris and Unixware only.
12216 (procfs_do_thread_registers): Unixware needs one lwpstatus
12217 per thread (not one prstatus or pstatus).
12218 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12219 not over all gdb threads. For unixware, call elfcore_write_pstatus
12220 once before iterating over threads.
12221
34e8f22d
RE
122222002-02-11 Richard Earnshaw <rearnsha@arm.com>
12223
12224 * arm-tdep.h: New file.
12225 * arm-tdep.c: Include arm-tdep.h.
12226 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12227 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12228 (arm_print_float_info, arm_register_type, convert_to_extended)
12229 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12230 (arm_extract_return_value, arm_register_name): Make static.
12231 (arm_software_single_step): Similarly. Fix types in declaration.
12232 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12233 (arm_store_return_value, arm_store_struct_return): New functions.
12234 (arm_gdbarch_init): Register the above functions. Also register
12235 call_dummy_start_offset, sizeof_call_dummy_words,
12236 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12237 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12238 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12239 prologue_cache.saved_regs here, rather than ...
12240 (_initialize_arm_tdep): ... here.
12241 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12242 declarations.
12243 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12244 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12245 (arm_print_float_info, arm_register_type, convert_to_extended)
12246 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12247 (arm_extract_return_value, arm_register_name): Delete declarations.
12248 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12249 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12250 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12251 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12252 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12253 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12254 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12255 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12256 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12257 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12258 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12259 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12260 interface.
12261 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12262 * remote-rdi.c remote-rdp.c: Likewise.
12263 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12264 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12265 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12266 definition.
12267
12268 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12269 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12270 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12271 from non-ARM_ prefixed definitions.
12272 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12273 all uses of above.
12274 * remote-rdi.c remote-rdp.c: Likewise.
12275 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12276
148754e5
RE
122772002-02-11 Richard Earnshaw <rearnsha@arm.com>
12278
12279 * arm-tdep.c (arm_frameless_function_invocation)
12280 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12281 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12282 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12283 (arm_pop_frame, arm_get_next_pc): Make static.
12284 (arm_gdbarch_init): Register above in gdbarch structure.
12285 (arm_read_fp): Renamed from arm_target_read_fp.
12286 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12287 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12288 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12289 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12290 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12291 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12292 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12293 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12294 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12295 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12296 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12297
434d2d4f
DJ
122982002-02-10 Daniel Jacobowitz <drow@mvista.com>
12299
12300 * symtab.c (compare_search_syms): New function.
12301 (sort_search_symbols): New function.
12302 (search_symbols): Sort symbols after searching rather than
12303 before.
12304
55241689
AC
123052002-02-10 Andrew Cagney <ac131313@redhat.com>
12306
12307 * NEWS: Linux -> GNU/Linux.
12308
028c194b
AC
123092002-02-10 Andrew Cagney <ac131313@redhat.com>
12310
12311 * gdbarch.sh: For for level one methods, disallow a definition
12312 when partially multi-arched. Add comments explaining rationale.
12313 * gdbarch.h: Re-generate.
12314
6acf50cd
AC
123152002-02-10 Andrew Cagney <ac131313@redhat.com>
12316
12317 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12318 multi-arch partial.
aaa38bb5 12319
50248794
AC
123202002-02-10 Andrew Cagney <ac131313@redhat.com>
12321
12322 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12323 field. Use diff -u.
12324 * gdbarch.c: Re-generate.
12325
c30e0066
AC
123262002-02-10 Andrew Cagney <ac131313@redhat.com>
12327
9b56c5f3 12328 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12329 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12330 partial.
12331
6e6d6484
AC
123322002-02-10 Andrew Cagney <ac131313@redhat.com>
12333
12334 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12335 multi-arch partial.
12336 (PUSH_ARGUMENTS): Switch to using predefault.
12337 * gdbarch.c: Regenerate.
12338
c203844d
AC
123392002-02-10 Andrew Cagney <ac131313@redhat.com>
12340
12341 * valops.c (PUSH_ARGUMENTS): Delete definition.
12342 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12343 partial. Default to default_push_arguments.
12344 * gdbarch.h, gdbarch.c: Regenerate.
12345
b5a2688f
AC
123462002-02-09 Andrew Cagney <ac131313@redhat.com>
12347
12348 * defs.h (throw_exception): Rename return_to_top_level. Update
12349 comments.
12350 * utils.c (error_stream, internal_verror, quit): Ditto.
12351 * top.c (throw_exception, catcher): Ditto.
12352 * sparclet-rom.c (sparclet_load): Ditto.
12353 * remote.c (interrupt_query, minitelnet): Ditto.
12354 * remote-sds.c (interrupt_query): Ditto.
12355 * remote-mips.c (mips_error, mips_kill): Ditto.
12356 * ocd.c (interrupt_query): Ditto.
12357 * monitor.c (monitor_interrupt_query): Ditto.
12358 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12359 * target.h: Update comment.
aaa38bb5 12360
b5a2688f 12361 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12362
2fa5c1e0
AC
123632002-02-09 Andrew Cagney <ac131313@redhat.com>
12364
12365 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12366 default_double_format.
12367 * gdbarch.h, gdbarch.c: Re-generate.
12368 * findvar.c (floatformat_unknown): Delete variable definition.
12369 * doublest.h (floatformat_unknown): Delete variable declaration.
12370
da966255
JB
123712002-02-09 Jim Blandy <jimb@redhat.com>
12372
12373 * stabsread.c (read_type): Add code to parse Sun's syntax for
12374 prototyped function types.
12375
123a4891
AC
123762002-02-09 Andrew Cagney <ac131313@redhat.com>
12377
12378 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12379 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12380
fb39c8f3
PS
123812002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12382
12383 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12384 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12385 now _initialize_xcoffsolib gets called again and overrides the
12386 commands from solib.c in a native configuration.
12387
0b87a11d
MK
123882002-02-09 Mark Kettenis <kettenis@gnu.org>
12389
12390 * doublest.c (store_typed_floating): Don't try to return a value.
12391 Fixes PR gdb/290.
12392
bdc2fc72
JB
123932002-02-08 Jim Blandy <jimb@redhat.com>
12394
12395 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12396 is prototyped and has no arguments, print its argument list as
12397 `(void)'.
12398
da69bbcf
CD
123992002-02-08 Chris Demetriou <cgd@broadcom.com>
12400
12401 * MAINTAINERS (write-after-approval): Add myself.
12402 (paper-trail): I've escaped!
aaa38bb5 12403
b69571f5
CF
124042002-02-08 Christopher Faylor <cgf@redhat.com>
12405
12406 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12407 changes.
12408 (_initialize_check_for_gdb_ini): Ditto.
12409
f6871398
MH
124102002-02-08 Martin M. Hunt <hunt@redhat.com>
12411
12412 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12413 xaprintf -> xasprintf.
12414
4e52d31c
PM
124152002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12416
12417 * win32-nat.c: Remove use of printf and sprintf functions.
12418
39bbf761
RE
124192002-02-08 Richard Earnshaw <rearnsha@arm.com>
12420
12421 * arm-tdep.c (arm_frame_chain_valid): Make static.
12422 (arm_push_arguments): Likewise.
12423 (arm_gdbarch_init): New function.
12424 (_initialize_arm_tdep): Call it.
12425 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12426 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12427 (FRAME_CHAIN_VALID): Delete.
12428 (arm_frame_chain_valid): Delete declaration.
12429 (PUSH_ARGUMENTS): Delete.
12430 (arm_push_arguments): Delete declaration.
12431 (CALL_DUMMY_P): Delete.
12432
9c9532c9
CV
124332002-02-08 Andrew Cagney <ac131313@redhat.com>
12434 Corinna Vinschen <vinschen@redhat.com>
12435
12436 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12437 on builtin float types.
12438
4e8f7a8b
DJ
124392002-02-08 Daniel Jacobowitz <drow@mvista.com>
12440
12441 * utils.c: Include <curses.h> before "bfd.h".
12442 * tui/tui-hooks.c: Likewise.
12443 * tui/tui.c: Likewise.
12444 * tui/tuiCommand.c: Likewise.
12445 * tui/tuiData.c: Likewise.
12446 * tui/tuiDataWin.c: Likewise.
12447 * tui/tuiDisassem.c: Likewise.
12448 * tui/tuiGeneralWin.c: Likewise.
12449 * tui/tuiIO.c: Likewise.
12450 * tui/tuiLayout.c: Likewise.
12451 * tui/tuiRegs.c: Likewise.
12452 * tui/tuiSource.c: Likewise.
12453 * tui/tuiSourceWin.c: Likewise.
12454 * tui/tuiStack.c: Likewise.
12455 * tui/tuiWin.c: Likewise.
12456
cd4bffcf
EZ
124572002-02-07 Elena Zannoni <ezannoni@redhat.com>
12458
12459 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12460 to include space for pseudoregs as well. Update loops accordingly.
12461 (sh_fp_frame_init_saved_regs): Ditto.
12462 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12463
26806ce2
AC
124642002-02-07 Andrew Cagney <ac131313@redhat.com>
12465
12466 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12467 Add Richard Earnshaw to Arm maintainers.
12468
97fdab62
AC
124692002-02-07 Andrew Cagney <ac131313@redhat.com>
12470
a6b98203
AC
12471 * defs.h (warning_begin): Delete declaration.
12472
97fdab62
AC
12473 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12474 Delete macro.
12475
78b29b40
MS
124762002-02-07 Michael Snyder <msnyder@redhat.com>
12477
aaa38bb5 12478 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12479 Logic bug, remove misplaced else.
12480
d8849953
KD
124812002-02-07 Klee Dienes <klee@apple.com>
12482
12483 * fork-inferior.c (fork_inferior): Add '!' to the list of
12484 characters that need to be quoted when building a string for the
12485 shell. Quote '!' specifically with a backslash, since CSH chokes
12486 when trying to evaluate "str!str".
aaa38bb5 12487
095778a0
NC
124882002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12489
12490 * rdi-share/host.h: Only provide a typedef for bool if it is not
12491 defined.
12492
1900040c
MS
124932002-02-04 Michael Snyder <msnyder@redhat.com>
12494
12495 * breakpoint.h (enum bptype): Add new overlay event bp type.
12496 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12497
1900040c
MS
12498 * breakpoint.c (create_internal_breakpoint): New function.
12499 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12500 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12501 (create_thread_event_breakpoint): Ditto.
12502 (create_solib_event_breakpoint): Ditto.
12503 (create_overlay_event_breakpoint): New function.
12504 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12505 (update_breakpoints_after_exec): Delete and re-initialize
12506 overlay event breakpoints after an exec. Add FIXME comment
12507 about longjmp breakpoint.
12508 (print_it_typical): Ignore overlay event breakpoints.
12509 (print_one_breakpoint): Ditto.
12510 (mention): Ditto.
12511 (bpstat_what): Do not stop for overlay event breakpoints.
12512 (delete_breakpoint): Don't delete overlay event breakpoints.
12513 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12514 (breakpoint_re_set): Re-create overlay event breakpoint.
12515
12516 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12517 (overlay_manual_command): Disable overlay breakpoints.
12518 (overlay_off_command): Disable overlay breakpoints.
12519
082fc60d
RE
125202002-02-06 Richard Earnshaw <rearnsha@arm.com>
12521
12522 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12523 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12524 to here from config/tm-arm.h.
12525 (coff_sym_is_thumb): Make static.
12526 (arm_elf_make_msymbol_special): New function.
12527 (arm_coff_make_msymbol_special): New function.
12528 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12529 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12530 (coff_sym_is_thumb): Delete declaration.
12531 (arm_elf_make_msymbol_special): Declare.
12532 (arm_coff_make_msymbol_special): Declare.
12533 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12534 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12535
039c5766
RE
125362002-02-06 Richard Earnshaw <rearnsha@arm.com>
12537
12538 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12539
125402002-02-06 Richard Earnshaw <rearnsha@arm.com>
12541
12542 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12543 * gdbarch.c gdbarch.h: Regenerate.
12544 * arch-utils.c (default_print_float_info): New function.
12545 * arch-utils.h (default_print_float_info): Prototype it.
12546 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12547 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12548 (PRINT_FLOAT_INFO): Document it.
12549
12550 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12551 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12552 (PRINT_FLOAT_INFO): Define.
12553
58fa08f0
PM
125542002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12555
aaa38bb5 12556 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12557 Add typecast to sprintf argument to suppress a warning.
12558
7393af7c
PM
125592002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12560
58fa08f0 12561 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12562 to allow easier handling of pass state.
12563 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12564 that gives exception name and address.
12565 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12566 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12567 exceptions added.
aaa38bb5
AJ
12568 (child_continue): Correctly report continue_status.
12569 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12570 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12571 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12572 the exception should be passed to debuggee or not.
12573
6af4589c
MS
125742002-02-05 Michael Snyder <msnyder@redhat.com>
12575
12576 * regcache.c (fetch_register): Call target_fetch_register
12577 only if we don't call FETCH_PSEUDO_REGISTER.
12578 (store_register): Call target_store_register only if we
12579 don't call STORE_PSEUDO_REGISTER.
12580
a2cf933a
EZ
125812002-02-05 Elena Zannoni <ezannoni@redhat.com>
12582
12583 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12584 ELF_MAKE_MSYMBOL_SPECIAL.
12585 * gdbarch.c, gdbarch.h: Regenerate.
12586 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12587 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12588 * elfread.c (elf_symtab_read): Compile use of
12589 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12590 multiarched.
12591 * coffread.c (coff_symtab_read): Ditto, for
12592 COFF_MAKE_MSYMBOL_SPECIAL.
12593
6bb7be43
JB
125942002-02-05 Jim Blandy <jimb@redhat.com>
12595
12596 * solib-svr4.c (svr4_truncate_ptr): New function.
12597 (svr4_relocate_section_addresses): Do the address arithmetic with
12598 the appropriate truncation for target addresses, even when
12599 CORE_ADDR is larger than a target address.
12600
e18651ec
DJ
126012002-02-05 Daniel Jacobowitz <drow@mvista.com>
12602
12603 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12604 to (int *).
12605
6b2725be
DJ
126062002-02-05 Daniel Jacobowitz <drow@mvista.com>
12607
12608 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12609 code.
12610
fca9e603
DJ
126112002-02-05 Daniel Jacobowitz <drow@mvista.com>
12612
12613 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12614
6c537a52
DJ
126152002-02-05 Daniel Jacobowitz <drow@mvista.com>
12616
12617 * gdbserver/linux-low.c: Remove unused include files.
12618
d844cde6
DJ
126192002-02-05 Daniel Jacobowitz <drow@mvista.com>
12620
12621 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12622 (read_inferior_memory): Use it.
12623 (write_inferior_memory): Likewise.
12624
d07c63e7
DJ
126252002-02-05 Daniel Jacobowitz <drow@mvista.com>
12626
12627 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12628 grubbing through sys_errlist.
12629
da6d8c04
DJ
126302002-02-05 Daniel Jacobowitz <drow@mvista.com>
12631
12632 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12633
5b421780
PM
126342002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12635 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12636
9f60d481
AC
126372002-02-04 Andrew Cagney <ac131313@redhat.com>
12638
12639 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12640 (do_sfunc, set_cmd_sfunc): New functions.
12641
12642 * command.h (struct cmd_list_element): Add field func.
12643 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12644 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12645 * cli/cli-decode.h: Ditto.
12646
12647 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12648 (help_all, help_cmd_list): Ditto.
12649 (find_cmd, complete_on_cmdlist): Ditto.
12650 * top.c (execute_command): Ditto.
12651
12652 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12653 function.sfunc.
12654
12655 * infcmd.c (notice_args_read): Fix function signature.
12656
12657 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12658 * cli/cli-decode.c (add_set_cmd): Ditto.
12659 * utils.c (initialize_utils): Ditto.
12660 * maint.c (_initialize_maint_cmds): Ditto.
12661 * infrun.c (_initialize_infrun): Ditto.
12662 * demangle.c (_initialize_demangler): Ditto.
12663 * remote.c (add_packet_config_cmd): Ditto.
12664 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12665 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12666 * proc-api.c (_initialize_proc_api): Ditto.
12667 * kod.c (_initialize_kod): Ditto.
12668 * valprint.c (_initialize_valprint): Ditto.
12669 * top.c (init_main): Ditto.
12670 * infcmd.c (_initialize_infcmd): Ditto.
12671 * corefile.c (_initialize_core): Ditto.
12672 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12673 * arch-utils.c (initialize_current_architecture): Ditto.
12674 (_initialize_gdbarch_utils): Ditto.
12675 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12676
12677 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12678 * wince.c (_initialize_inftarg): Ditto.
12679 * symfile.c (_initialize_symfile): Ditto.
12680 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12681 * language.c (_initialize_language): Ditto.
12682 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12683
f9ba0717
MS
126842002-02-04 Michael Snyder <msnyder@redhat.com>
12685
12686 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12687
0c74b2a7
DJ
126882002-02-04 Daniel Jacobowitz <drow@mvista.com>
12689
12690 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12691 Add rules for building the register data files.
12692
c638789f
DJ
126932002-02-04 Daniel Jacobowitz <drow@mvista.com>
12694
12695 * regformats/regdat.sh: Add braces to the definition of
12696 expedite_regs_${arch}.
12697
db253027
DJ
126982002-02-04 Daniel Jacobowitz <drow@mvista.com>
12699
12700 * regformats/regdef.h (struct reg): Add comment describing the
12701 requirements for offset and size fields.
12702
206be19c
AS
127032002-02-04 Andreas Schwab <schwab@suse.de>
12704
12705 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12706 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12707
181c1381
RE
127082002-02-04 Richard Earnshaw <rearnsha@arm.com>
12709
12710 * gdbarch.sh (copyright): Update years in generated header.
12711 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12712 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12713 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12714 * dbxread.c: Likewise.
12715 * dwarfread.c: Likewise.
12716 * elfread.c: Likewise.
12717 * somread.c: Likewise.
12718
12719 * arm-tdep.c (arm_smash_text_address): New function.
12720 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12721
fa4ba8da
PM
127222002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12723
12724 Add support for hardware watchpoints on win32 native.
aaa38bb5 12725 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12726 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12727 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12728 of debug registers.
12729 (debug_registers_changed): New variable. Reflects when debug registers
12730 are changed and need to be written to inferior.
aaa38bb5 12731 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12732 was set, used when new threads are created.
12733 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12734 i386-nat code.
12735 (thread_rec): Set dr array if id is the thread of current_event .
12736 (child_continue, child_resume): Change the debug registers for all
12737 threads if debug_registers_changed.
12738 (child_add_thread): Change the debug registers if debug_registers_used.
12739 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12740 Link nm.h to new nm-cygwin.h file.
12741 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12742 of hardware registers.
12743
a73c86fb
AC
127442002-02-03 Andrew Cagney <ac131313@redhat.com>
12745
12746 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12747 Restore behavour broken by 2002-01-20 Andrew Cagney
12748 <ac131313@redhat.com> IEEE_FLOAT removal.
12749
acf5ed49
DJ
127502002-02-03 Daniel Jacobowitz <drow@mvista.com>
12751
12752 * c-valprint.c (c_val_print): Pass a proper valaddr to
12753 cp_print_class_method.
12754 * valops.c (search_struct_method): If there is only one method
12755 and args is NULL, return that method.
12756
493d28d5
DJ
127572002-02-03 Daniel Jacobowitz <drow@mvista.com>
12758
12759 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12760 accessing tag_name directly.
12761
7495dfdb
DJ
127622002-02-03 Daniel Jacobowitz <drow@mvista.com>
12763
12764 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12765 of accessing tag_name directly.
12766
dd6bda65
DJ
127672002-02-03 Daniel Jacobowitz <drow@mvista.com>
12768
12769 PR gdb/280
12770 * gdbtypes.c (replace_type): New function.
12771 * gdbtypes.h (replace_type): Add prototype.
12772 * stabsread.c (read_type): Use replace_type.
12773
88fe217c
RE
127742002-02-03 Richard Earnshaw <rearnsha@arm.com>
12775
12776 * Makefile.in (memattr.o): Add missing dependencies rule.
12777
e5d66720
PS
127782002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12779
12780 * breakpoint.c (break_at_finish_command): Really export.
12781 (break_at_finish_at_depth_command): Ditto.
12782 (tbreak_at_finish_command): Ditto.
12783 * hppa-tdep.c: Include completer.h.
12784 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12785 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12786
fffee0be
AC
127872002-02-01 Andrew Cagney <ac131313@redhat.com>
12788
12789 * utils.c (do_write): New function.
12790 (error_stream): Rewrite combining the code from error_begin and
12791 verror.
12792 (verror): Rewrite using error_stream.
12793 (error_begin): Delete function.
12794
255e7dbf
AC
127952002-02-01 Andrew Cagney <ac131313@redhat.com>
12796
12797 * utils.c (error_begin): Make static.
12798 * defs.h (error_begin): Delete declaration.
12799
12800 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12801 (decode_line_1): Use cplusplus_error instead of error_begin,
12802 cplusplus_hint and return_to_top_level.
12803 * coffread.c (coff_symfile_read): Use error instead of error_begin
12804 and return_to_top_level.
12805 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12806
ddfe3c15
AC
128072002-02-01 Andrew Cagney <ac131313@redhat.com>
12808
12809 * language.h (type_error, range_error): Make string parameter
12810 constant.
12811 * language.c (warning_pre_print): Delete extern declaration.
12812 * dwarfread.c (warning_pre_print): Ditto.
12813 * language.c (type_error, range_error): Rewrite to use verror and
12814 vwarning instead of warning_begin.
12815
03ac34d5
MS
128162002-02-01 Michael Snyder <msnyder@redhat.com>
12817
261c4ca2
MS
12818 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12819 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12820
e00d1dc8
AC
128212002-02-01 Andrew Cagney <ac131313@redhat.com>
12822
12823 * command.h (NO_FUNCTION): Delete macro.
12824 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12825 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12826 * tracepoint.c (_initialize_tracepoint): Ditto.
12827 * cli/cli-decode.c (add_set_cmd): Ditto.
12828 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12829
76b79d6e
DJ
128302002-02-01 Daniel Jacobowitz <drow@mvista.com>
12831
12832 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12833 Update ``this'' pointer when calling virtual functions.
12834
799f9e91
MS
128352002-02-01 Michael Snyder <msnyder@redhat.com>
12836
c7bd442c 12837 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12838 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12839
3cf384d4
DJ
128402002-02-01 Daniel Jacobowitz <drow@mvista.com>
12841
12842 * regformats/reg-arm.dat: New file.
12843 * regformats/reg-i386.dat: New file.
12844 * regformats/reg-ia64.dat: New file.
12845 * regformats/reg-m68k.dat: New file.
12846 * regformats/reg-mips.dat: New file.
12847 * regformats/reg-ppc.dat: New file.
12848 * regformats/reg-sh.dat: New file.
12849 * regformats/regdef.h: New file.
12850 * regformats/regdat.sh: New file.
12851
0defa245
RE
128522002-02-01 Richard Earnshaw <reanrsha@arm.com>
12853
12854 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12855 (arm_frame_args_address, arm_frame_locals_address): New functions.
12856 (arm_frame_num_args): New function.
12857 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12858 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12859 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12860
405f26e6
MS
128612002-01-31 Michael Snyder <msnyder@redhat.com>
12862
502fd408
MS
12863 * breakpoint.c (break_at_finish_command): Export.
12864 (break_at_finish_at_depth_command): Export.
12865 (tbreak_at_finish_command): Export.
d6020d45 12866 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12867 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12868 "txbreak" commands, which are HPPA specific.
502fd408 12869
7d35e135
MS
12870 * printcmd.c (disassemble_command): Remove an ancient
12871 artifact of an old merge.
12872
aaa38bb5 12873 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12874 Define enum constant values for overlay mode.
12875 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12876 (overlay_is_mapped, overlay_auto_command,
12877 overlay_manual_command): Ditto.
d874f1e2 12878
aaa38bb5
AJ
12879 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12880 breakpoint_here_p, breakpoint_inserted_here_p,
12881 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12882 describe_other_breakpoints, check_duplicates, clear_command):
12883 Coding standard fixes.
12884
8add0441 12885 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12886 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12887 code: check bfd SEC_READONLY flag for section.
12888
e351066e
AC
128892002-01-31 Andrew Cagney <ac131313@redhat.com>
12890
7d35e135 12891 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12892
8a48e967
DJ
128932002-01-30 Daniel Jacobowitz <drow@mvista.com>
12894
12895 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12896 data symbols, since we search based on textlow and texthigh.
12897 (find_pc_sect_symtab): Likewise.
12898
f5a96129
AC
128992002-01-30 Andrew Cagney <ac131313@redhat.com>
12900
12901 * defs.h (vwarning): Declare.
f5a96129
AC
12902 * utils.c (vwarning): New function.
12903 (warning): Call vwarning.
12904 (warning_begin): Delete function.
12905
12906 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12907 the warning message.
12908 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12909 warning_begin.
12910
cefd4ef5
MS
129112002-01-30 Michael Snyder <msnyder@redhat.com>
12912
1a703748
MS
12913 * NEWS: Mention "set trust-readonly-sections" command.
12914 Mention generate-core-file command.
cefd4ef5 12915
3a11626d
MS
129162002-01-15 Michael Snyder <msnyder@redhat.com>
12917
12918 * target.c: New command, "set trust-readonly-sections on".
12919 (do_xfer_memory): Honor the suggestion to trust readonly sections
12920 by reading them from the object file instead of from the target.
12921 (initialize_targets): Register command "set trust-readonly-sections".
12922
d1c7e53b
AC
129232002-01-29 Andrew Cagney <ac131313@redhat.com>
12924
12925 * parse.c (target_map_name_to_register): Simplify, search regs and
12926 pseudo-regs using a single loop.
12927
e2c9a72c
AC
129282002-01-30 Andrew Cagney <ac131313@redhat.com>
12929
12930 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12931
69824b4e
MK
129322002-01-15 Rodney Brown <rbrown64@csc.com.au>
12933
12934 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12935 * config/i386/i386v42mp.mh: Add i387-nat.o .
12936 * i386v4-nat.c: Include i387-nat.h.
12937 (supply_fpregset): Use i387_supply_fsave.
12938 (fill_fpregset): Use i387_fill_fsave.
12939
6eb69eab
RE
129402002-01-30 Richard Earnshaw <rearnsha@arm.com>
12941
12942 * arm-tdep.c (arm_call_dummy_words): Define.
12943 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12944 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12945 (CALL_DUMMY_WORDS): Define.
12946 (arm_call_dummy_words): Declare.
12947 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12948 (arm_linux_call_dummy_words): Declare.
12949
9852326a
AS
129502002-01-30 Andreas Schwab <schwab@suse.de>
12951
12952 * m68klinux-nat.c: Fix last change to use regcache_collect
12953 instead of referencing registers[] directly.
12954
977a3030
AC
129552002-01-29 Andrew Cagney <ac131313@redhat.com>
12956
12957 * parse.c (target_map_name_to_register): Delete code wrapped in
12958 #ifdef REGISTER_NAME_ALIAS_HOOK.
12959
2076c72b
MS
129602002-01-28 Michael Snyder <msnyder@redhat.com>
12961
12962 * regcache.c (legacy_read_register_gen): Need to be able to
12963 read pseudo-register as well as real register.
12964 (legacy_write_register_gen): Ditto.
12965
8fcc723b
AC
129662002-01-28 Andrew Cagney <ac131313@redhat.com>
12967
12968 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12969 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12970 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12971 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12972 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12973 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12974 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12975 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12976 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12977 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12978 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12979 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12980 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12981 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12982 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12983 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12984 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12985 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12986 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12987 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12988
afe64c1a
AC
129892002-01-28 Andrew Cagney <ac131313@redhat.com>
12990
12991 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12992 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12993 (initialize_current_architecture): Update target_byte_order using
12994 information from BFD.
aaa38bb5 12995 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12996 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12997
75bc7ddf
AC
129982002-01-28 Andrew Cagney <ac131313@redhat.com>
12999
13000 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13001 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13002
13003 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13004 #ifdef INVALID_FLOAT.
13005 * infcmd.c (do_registers_info): Ditto.
13006 * values.c (unpack_double): Ditto. Add comment.
13007
13008 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13009 already commented out.
13010
0280a90a
AS
130112002-01-26 Andreas Schwab <schwab@suse.de>
13012
13013 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13014 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13015 registers and add support for PTRACE_GETREGS.
13016
7072a954
AC
130172002-01-24 Andrew Cagney <ac131313@redhat.com>
13018
13019 GDB 5.1.1 released from 5.1 branch.
13020 * NEWS: Add 5.1.1 news.
13021 * README: Sync with 5.1 branch.
13022
86f902e0
FF
130232002-01-23 Fred Fish <fnf@redhat.com>
13024
13025 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13026 stabstring on initial malloc. Reallocing will copy it for us,
13027 if necessary.
13028
8af51c36
EZ
130292002-01-23 Elena Zannoni <ezannoni@redhat.com>
13030
aaa38bb5 13031 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
13032 (HFILES_NO_SRCDIR): Remove hpread.h.
13033 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13034 (hpread.o): Update dependencies.
13035 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13036
13037 * hp-psymtab-read.c: Remove file.
13038 * hp-symtab-read.c: Remove file.
13039 * hpread.h: Remove file.
13040
13041 * hpread.c: Merge all contents of hp-psymtab-read.c,
13042 hp-symtab-read.c and hpread.h into this file, as it was prior to
13043 January 1999.
13044
13045 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 13046 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
13047 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13048 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13049
dc5cfeb6
EZ
130502002-01-23 Elena Zannoni <ezannoni@redhat.com>
13051
13052 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13053 fill_gregset): Call gdbarch_tdep() just once, assign result to
13054 variable and use that, instead of calling the function several
13055 times.
13056
ea87b71b
AO
130572002-01-24 Alexandre Oliva <aoliva@redhat.com>
13058
13059 * configure.host: Accept sparcv9 as alias for sparc64.
13060 * configure.tgt: Likewise.
13061
13fc0c2f
KB
130622002-01-22 Kevin Buettner <kevinb@redhat.com>
13063
13064 * solib-aix5.c (build_so_list_from_mapfile)
13065 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13066 arguments is not reversed.
13067 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13068 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 13069
7bd872fe
EZ
130702002-01-22 Elena Zannoni <ezannoni@redhat.com>
13071
13072 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13073 modified version of obsolete sh_fetch_pseudo_register.
13074 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13075 (sh4_register_read): New function.
13076 (sh_pseudo_register_write): New function. Renamed and modified
13077 version of obsolete sh_store_pseudo_register.
13078 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13079 (sh4_register_write): New function.
13080 (sh_gdbarch_init): Remove setting of gdbarch function
13081 fetch_pseudo_register and store_pseudo_register. Remove setting of
13082 register_convert_to_raw, register_convert_to_virtual,
13083 register_convertible.
13084 (sh_sh4_register_convertible): Delete. No longer needed. All is
13085 taken care by architecture specific functions
13086 register_read/register_write.
13087 (sh_sh4_register_convert_to_virtual): Make static.
13088 (sh_sh4_register_convert_to_raw): Ditto.
13089
069e84fd
AC
130902002-01-22 Andrew Cagney <ac131313@redhat.com>
13091
13092 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13093 (floatformat_is_nan, floatformat_mantissa): Ditto.
13094
13095 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13096 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13097 builtin_type_ieee_double_little,
13098 builtin_type_ieee_double_littlebyte_bigword,
13099 builtin_type_m68881_ext, builtin_type_i960_ext,
13100 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13101 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13102 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13103 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13104
211a4f69
CV
131052002-01-22 Corinna Vinschen <vinschen@redhat.com>
13106
13107 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13108 parameter. Set frameless flag if it exists and depended of
13109 whether the scanned function is frameless or not.
13110 (xstormy16_skip_prologue): If function is frameless, return
13111 result of xstormy16_scan_prologue().
13112 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13113 call.
13114
f81353e4
EZ
131152002-01-21 Elena Zannoni <ezannoni@redhat.com>
13116
13117 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13118 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13119 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13120 sh_sh4_register_byte, sh_sh4_register_raw_size,
13121 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13122 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13123 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13124 sh_store_pseudo_register, sh_do_pseudo_register): Call
13125 gdbarch_tdep() just once, assign result to variable and use that,
13126 instead of calling the function several times.
13127
63c73a17
MK
131282002-01-20 Mark Kettenis <kettenis@gnu.org>
13129
13130 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13131 macros instead of LAST_FPU_CTRL_REGNUM.
13132 (store_register): Likewise.
13133
39ad761d
JB
131342002-01-21 Jim Blandy <jimb@redhat.com>
13135
13136 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13137 is up-to-date before running the program, not just when a program
13138 exits.
13139
3d74b771
FF
131402002-01-21 Fred Fish <fnf@redhat.com>
13141
13142 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13143 when we have found all instructions we are looking for.
13144
966fbf70
RE
131452002-01-21 Richard Earnshaw <rearnsha@arm.com>
13146
13147 * arm-tdep.c (arm_register_name): New function.
13148 (arm_registers_names): Make static.
13149 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13150 (arm_register_name): Declare.
13151 (REGISTER_NAME): Use it.
13152
c3b4394c
RE
131532002-01-21 Richard Earnshaw <rearnsha@arm.com>
13154 Kevin Buettner <kevinb@redhat.com>
13155
13156 Convert arm targets to new FRAME interface.
13157 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13158 (arm_frame_find_save_regs): Delete.
13159 (arm_frame_init_saved_regs): New.
13160 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13161 Allocate extra_info as required. Convert all uses of fsr.regs
13162 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13163 to use extra_info.
13164 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13165 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13166 (check_prologue_cache, save_prologue_cache): Likewise.
13167 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13168 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13169 (FRAME_FIND_SAVED_REGS): Delete.
13170 (arm_frame_find_saved_regs): Delete prototype.
13171 (arm_frame_init_saved_regs): New prototype.
13172 (FRAME_INIT_SAVED_REGS): Define.
13173
61d99182
AC
131742002-01-20 Andrew Cagney <ac131313@redhat.com>
13175
13176 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13177
6aaea291
AC
131782002-01-20 Andrew Cagney <ac131313@redhat.com>
13179
13180 From Jeff Law <law@redhat.com>:
13181 * infttrace.c: Include <sys/pstat.h>.
13182 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13183 exec file if the ttrace equivalent fails.
13184
15f698d2
AC
131852002-01-20 Andrew Cagney <ac131313@redhat.com>
13186
13187 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13188 (closeLogFile): Ditto.
13189
f86ddd7c
MC
131902002-01-20 Michael Chastain <mec@shout.net>
13191
13192 * top.c (print_gdb_version): Bump copyright year to 2002.
13193
904507ce
AC
131942002-01-20 Andrew Cagney <ac131313@redhat.com>
13195
13196 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13197 Zannoni and Eli Zaretskii.
13198
d7f0b9ce
DJ
131992002-01-20 Daniel Jacobowitz <drow@mvista.com>
13200
13201 * buildsym.c: Update copyright years.
13202 * c-typeprint.c: Likewise.
13203 * dwarf2read.c: Likewise.
13204 * f-typeprint.c: Likewise.
13205 * gdbtypes.c: Likewise.
13206 * gdbtypes.h: Likewise.
13207 * hp-symtab-read.c: Likewise.
13208 * hpread.c: Likewise.
13209 * mdebugread.c: Likewise.
13210 * p-typeprint.c: Likewise.
13211
3fd3d7d2
AC
132122002-01-20 Andrew Cagney <ac131313@redhat.com>
13213
13214 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13215 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13216 byte-order selectable.
13217 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13218 * arch-utils.c: Ditto.
13219 (set_endian): Ditto.
13220 (set_endian_from_file): Ditto.
13221 * gdbserver/low-sim.c (create_inferior): Ditto.
13222 * gdbarch.sh: Ditto.
13223 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13224 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13225 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13226 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13227 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13228 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13229 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13230 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13231 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13232 macro definition.
13233 * config/mips/tm-wince.h: Remove #undef of macro
13234 TARGET_BYTE_ORDER_SELECTABLE.
13235 * config/sh/tm-wince.h: Ditto.
13236
b02dede2
DJ
132372002-01-20 Daniel Jacobowitz <drow@mvista.com>
13238
13239 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13240 member function fields. Add accessor macro
13241 TYPE_FN_FIELD_ARTIFICIAL.
13242 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13243 * c-typeprint.c (c_type_print_base): Skip artificial member
13244 functions.
13245
c3643761
DJ
132462002-01-20 Daniel Jacobowitz <drow@mvista.com>
13247
13248 * f-typeprint.c: Delete unused function f_type_print_args.
13249 * p-typeprint.c: Delete unused function pascal_type_print_args.
13250
8176bb6d
DJ
132512002-01-20 Daniel Jacobowitz <drow@mvista.com>
13252
13253 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13254 comment. Add ``artificial'' to ``union field_location''.
13255
13256 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13257
13258 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13259 * mdebugread.c (parse_symbol): Likewise.
13260 * stabsread.c (define_symbol): Likewise.
13261 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13262 initializing TYPE_FIELD_BITPOS to n (obsolete).
13263 (hpread_doc_function_type): Likewise.
13264 * hpread.c (hpread_function_type): Likewise.
13265
7fd60527
AC
132662002-01-20 Andrew Cagney <ac131313@redhat.com>
13267
13268 * configure.in (host_makefile_frag): Only require a host makefile
13269 fragment when a native build.
13270 * configure: Re-generate.
13271
c2f05ac9
AC
132722002-01-20 Andrew Cagney <ac131313@redhat.com>
13273
13274 * doublest.h (floatformat_from_type): Declare.
13275 * doublest.c (floatformat_from_type): New function.
13276 (convert_typed_floating): Use.
13277
13278 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13279 call to function floatformat_from_type.
13280
13281 * gdbarch.sh (IEEE_FLOAT): Delete.
13282 * gdbarch.h, gdbarch.c: Re-generate.
13283 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13284 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13285 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13286 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13287 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13288 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13289 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13290 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13291 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13292 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13293 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13294 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13295
13296 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13297 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13298 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13299 * sh-tdep.c (sh_gdbarch_init): Ditto.
13300 * mips-tdep.c (mips_gdbarch_init): Ditto.
13301 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13302 * cris-tdep.c (cris_gdbarch_init): Ditto.
13303
abf22e64
AJ
133042002-01-20 Jiri Smid <smid@suse.cz>
13305
13306 * configure.host, configure.tgt: Support x86-64.
13307 * NEWS: Note new target x86-64.
13308
b7c4cbf8
AJ
13309 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13310 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13311 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13312 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13313 x86-64-linux-nat.o): Fix dependencies.
13314
82600034
AC
133152002-01-19 Andrew Cagney <ac131313@redhat.com>
13316
13317 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13318 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13319 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13320 * config/sparc/xm-sun4os4.h: Delete file.
13321 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13322
bbe5c628
AC
133232002-01-19 Andrew Cagney <ac131313@redhat.com>
13324
13325 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13326 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13327 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13328 * config/i386/i386lynx.mh (XM_FILE): Delete.
13329 * config/rs6000/xm-rs6000ly.h: Delete file.
13330 * config/sparc/xm-sparclynx.h: Delete file.
13331 * config/m68k/xm-m68klynx.h: Delete file.
13332 * config/i386/xm-i386lynx.h: Delete file.
13333 * config/xm-lynx.h: Delete file.
13334 * config/djgpp/fnchange.lst: Update.
13335
f8453e34
JT
133362002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13337
13338 * alpha-tdep.c (alpha_register_byte): New function.
13339 (alpha_register_raw_size): Ditto.
13340 (alpha_register_virtual_size): Ditto.
13341 (alpha_skip_prologue_internal): Renamed from
13342 alpha_skip_prologue.
13343 (alpha_skip_prologue): New version that calls
13344 alpha_skip_prologue_internal.
13345 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13346 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13347 second argument from alpha_skip_prologue.
13348 (REGISTER_BYTE): Use alpha_register_byte.
13349 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13350 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13351 (FRAMELESS_FUNCTION_INVOCATION): Use
13352 generic_frameless_function_invocation_not.
13353 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13354 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13355
52d9e613
AC
133562002-01-19 Andrew Cagney <ac131313@redhat.com>
13357
13358 * config/mips/xm-news-mips.h: Delete file.
13359 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13360
13361 * config/m88k/xm-m88k.h: Delete file.
13362 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13363 * config/m88k/xm-delta88v4.h: Ditto.
13364 * config/m88k/xm-delta88.h: Ditto.
13365
13366 * config/alpha/xm-fbsd.h: Delete file.
13367 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13368
13369 * config/sparc/xm-sparc.h: Delete file.
13370 * Makefile.in (xm-sun4os4.h): Delete dependency.
13371 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13372 * config/sparc/xm-sun4os4.h: Ditto.
13373 * config/sparc/xm-linux.h: Ditto.
13374
13375 * config/i386/xm-windows.h: Delete file.
13376
2d1b2124
AC
133772002-01-19 Andrew Cagney <ac131313@redhat.com>
13378
13379 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13380 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13381
ee1f65f0
JT
133822002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13383
13384 * alpha-tdep.c (alpha_call_dummy_words): New.
13385 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13386 (CALL_DUMMY_P): Define.
13387 (CALL_DUMMY_WORDS): Define.
13388 (SIZEOF_CALL_DUMMY_WORDS): Define.
13389
98081e55
PB
133902002-01-19 Per Bothner <per@bothner.com>
13391
13392 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13393 isn't NULL, which can happen with some gcj-3.x-produced code.
13394
0d056799
JT
133952002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13396
13397 * alpha-tdep.c (alpha_register_virtual_type): New function.
13398 (alpha_init_frame_pc_first): Ditto.
13399 (alpha_fix_call_dummy): Ditto.
13400 (alpha_store_struct_return): Ditto.
13401 (alpha_extract_struct_value_address): Ditto.
13402 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13403 alpha_register_virtual_type.
13404 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13405 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13406 alpha_extract_struct_value_address.
13407 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13408 (INIT_FRAME_PC): Use init_frame_pc_noop.
13409 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13410
4604bcad
MK
134112002-01-19 Mark Kettenis <kettenis@gnu.org>
13412
13413 * i386gnu-nat.c: Include "i386-tdep.h".
13414 (fetch_fpregs): Simplify code dealing with uninitialized floating
13415 point states such that it doesn't require FP7_REGNUM.
13416
140f9984
JT
134172002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13418
abf22e64
AJ
13419 * alpha-tdep.c (frame_extra_info): New.
13420 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13421 frame->extra_info.
13422 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13423 (alpha_frame_saved_pc): Use frame->extra_info.
13424 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13425 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13426 (init_extra_frame_info): Rename to...
13427 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13428 (alpha_print_extra_frame_info): New function.
140f9984
JT
13429 (alpha_frame_locals_address): Ditto.
13430 (alpha_frame_args_address): Ditto.
abf22e64 13431 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13432 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13433 alpha_frame_args_address.
abf22e64 13434 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13435 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13436 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13437 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13438 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13439 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13440
d734c450
JT
134412002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13442
13443 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13444 (alpha_cannot_fetch_register): Ditto.
13445 (alpha_cannot_store_register): Ditto.
13446 (alpha_register_convertible): Ditto.
13447 (alpha_use_struct_convention): Ditto.
13448 * config/alpha/tm-alpha.h: Update copyright years.
13449 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13450 (INNER_THAN): Use core_addr_lessthan.
13451 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13452 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13453 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13454 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13455 (FRAME_CHAIN): Remove unnecessary cast.
13456
b4ceaee6
AC
134572002-01-18 Andrew Cagney <ac131313@redhat.com>
13458
13459 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13460 obsolete.
13461
0a65a603
AC
134622002-01-18 Andrew Cagney <ac131313@redhat.com>
13463
13464 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13465 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13466 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13467 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13468 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13469 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13470 * x86-64-linux-nat.c: Ditto.
13471
636a6dfc
JT
134722002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13473
abf22e64 13474 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13475 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13476 (REGISTER_NAME): Define.
13477
acceddb6
JT
134782002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13479
13480 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13481
ec32e4be
JT
134822002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13483
13484 * alpha-tdep.c: Update copyright years.
13485 (alpha_next_pc): New function.
13486 (alpha_software_single_step): Ditto.
13487 * config/alpha/tm-alpha.h: Add prototype for
13488 alpha_software_single_step.
13489
e771a871
JT
134902002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13491
13492 * alphabsd-nat.c: Update copyright years.
13493 (fill_gregset): Use regcache_collect.
13494 (fill_fpregset): Likewise.
13495 (fetch_inferior_registers): Only fetch integer registers
13496 if requested to do so.
13497 (store_inferior_registers): Only store integer registers
13498 if requested to do so.
13499
7708fa01
AC
135002002-01-17 Andrew Cagney <ac131313@redhat.com>
13501
13502 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13503 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13504 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13505 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13506 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13507 * config/arm/linux.mh (XDEPFILES): Delete.
13508 * config/arm/nbsd.mh (XDEPFILES): Delete.
13509 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13510 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13511 * config/i386/i386m3.mh (XDEPFILES): Delete.
13512 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13513 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13514 * config/i386/fbsd.mh (XDEPFILES): Delete.
13515 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13516 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13517 * config/i386/i386v4.mh (XDEPFILES): Delete.
13518 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13519 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13520 * config/i386/i386aix.mh (XDEPFILES): Delete.
13521 * config/i386/go32.mh (XDEPFILES): Delete.
13522 * config/i386/cygwin.mh (XDEPFILES): Delete.
13523 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13524 * config/i386/i386mach.mh (XDEPFILES): Delete.
13525 * config/i386/i386v32.mh (XDEPFILES): Delete.
13526 * config/i386/linux.mh (XDEPFILES): Delete.
13527 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13528 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13529 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13530 * config/i386/i386sco.mh (XDEPFILES): Delete.
13531 * config/i386/i386v.mh (XDEPFILES): Delete.
13532 * config/i386/nbsd.mh (XDEPFILES): Delete.
13533 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13534 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13535 * config/i386/symmetry.mh (XDEPFILES): Delete.
13536 * config/i386/obsd.mh (XDEPFILES): Delete.
13537 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13538 * config/ia64/linux.mh (XDEPFILES): Delete.
13539 * config/ia64/aix.mh (XDEPFILES): Delete.
13540 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13541 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13542 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13543 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13544 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13545 * config/m68k/linux.mh (XDEPFILES): Delete.
13546 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13547 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13548 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13549 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13550 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13551 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13552 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13553 * config/m88k/delta88.mh (XDEPFILES): Delete.
13554 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13555 * config/m88k/m88k.mh (XDEPFILES): Delete.
13556 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13557 * config/mips/linux.mh (XDEPFILES): Delete.
13558 * config/mips/irix6.mh (XDEPFILES): Delete.
13559 * config/mips/irix5.mh (XDEPFILES): Delete.
13560 * config/mips/irix4.mh (XDEPFILES): Delete.
13561 * config/mips/irix3.mh (XDEPFILES): Delete.
13562 * config/mips/decstation.mh (XDEPFILES): Delete.
13563 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13564 (NATDEPFILES): Move core-aout.o to here.
13565 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13566 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13567 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13568 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13569 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13570 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13571 * config/pa/hpux11.mh (XDEPFILES): Delete.
13572 * config/powerpc/aix.mh (XDEPFILES): Delete.
13573 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13574 * config/powerpc/linux.mh (XDEPFILES): Delete.
13575 * config/romp/rtbsd.mh: Rename XDEPFILES.
13576 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13577 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13578 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13579 * config/s390/s390.mh (XDEPFILES): Delete.
13580 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13581 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13582 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13583 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13584 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13585 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13586 * config/sparc/linux.mh (XDEPFILES): Delete.
13587 * config/vax/vaxult.mh (XDEPFILES): Delete.
13588 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13589 * Makefile.in (DEPFILES): Remove XDEPFILES.
13590
375fc983
AC
135912002-01-17 Andrew Cagney <ac131313@redhat.com>
13592
13593 * utils.c (internal_verror): Fix comments, default is yes not no.
13594 Update queries to match. Default to quit and dump core.
13595
8926118c
AC
135962002-01-17 Andrew Cagney <ac131313@redhat.com>
13597
13598 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13599 copyright.
13600 * defs.h, event-top.c, gdbcmd.h: Ditto.
13601 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13602 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13603 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13604 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13605 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13606 * mi/mi-main.c:Ditto.
13607
13608 * stack.c, symfile.c: Update copyright.
13609
45b7b345
DJ
136102002-01-17 Daniel Jacobowitz <drow@mvista.com>
13611
db728ff7
DJ
13612 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13613 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13614 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13615 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13616
db728ff7
DJ
136172002-01-17 Daniel Jacobowitz <drow@mvista.com>
13618
13619 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13620 * gdbserver/low-lynx.c (myattach): Likewise.
13621 * gdbserver/low-nbsd.c (myattach): Likewise.
13622 * gdbserver/low-sim.c (myattach): Likewise.
13623 * gdbserver/low-sparc.c (myattach): Likewise.
13624 * gdbserver/low-sun3.c (myattach): Likewise.
13625
13626 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13627
db728ff7 13628 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13629 (main): Handle "--attach".
13630
8de3c354
AC
136312002-01-16 Andrew Cagney <ac131313@redhat.com>
13632
13633 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13634 maintainer.
13635
b0129042
DJ
136362002-01-15 Daniel Jacobowitz <drow@mvista.com>
13637
13638 * c-typeprint.c (is_type_conversion_operator): Add additional
13639 check for non-conversion operators.
13640
ba8679fb 136412002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13642
13643 * linux-proc.c: Add "info proc" command, a la procfs.c.
13644 (read_mapping): New function, abstract and re-use code.
13645 (linux_find_memory_regions): Use new func read_mapping.
13646 (linux_info_proc_cmd): New function, implement "info proc".
13647 (_initialize_linux_proc): Add new command "info proc".
13648
e4f9b4d5
MS
136492002-01-15 Michael Snyder <msnyder@redhat.com>
13650
13651 * symfile.c (generic_load): Use bfd_map_over_sections method
13652 instead of manipulating bfd structure members directly.
13653 (add_section_size_callback): New function, bfd sections callback
13654 used by generic_load.
13655 (load_sections_callback): New function, bfd sections callback
13656 used by generic_load.
13657
08cf96df
EZ
136582002-01-15 Elena Zannoni <ezannoni@redhat.com>
13659
abf22e64 13660 [Based on work by Jim Blandy]
08cf96df
EZ
13661 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13662 (builtin_type_vec128): Export.
13663 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13664 types.
13665 (builtin_type_vec128): New builtin type for 128 bit vector
13666 registers.
13667 (build_gdbtypes): Initialize builtin_type_v16qi and
13668 builtin_type_v8hi. Create the vec128 register builtin type
13669 structure.
13670 (build_builtin_type_vec128): New function.
abf22e64 13671 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13672 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13673 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13674 AltiVec register to new builtin type.
13675
d7242108
DJ
136762001-01-15 Daniel Jacobowitz <drow@mvista.com>
13677
13678 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13679 to make_cv_type.
13680
4ee3352d
AC
136812002-01-14 Andrew Cagney <ac131313@redhat.com>
13682
13683 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13684 CLEAN_UP_REGISTER_VALUE.
13685 * regcache.c (supply_register): Update only call.
13686
f015b2e7
AC
136872002-01-14 Andrew Cagney <ac131313@redhat.com>
13688
13689 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13690 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13691 a29k-*-vxworks* targets as obsolete.
13692
356ae49d
MS
136932002-01-14 Michael Snyder <msnyder@redhat.com>
13694
13695 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13696 until we can resolve portability issues.
13697 * gregset.h: Remove references to fpxregs.
13698 * gcore.c (gcore_command): Initialize note_sec to NULL.
13699
ade8f45e
AC
137002002-01-13 Andrew Cagney <ac131313@redhat.com>
13701
13702 * signals.c (target_signal_to_name): Rewrite. Only use
13703 signals[].name when in bounds and non-NULL.
abf22e64 13704
89c49e7a
AC
137052002-01-13 Andrew Cagney <ac131313@redhat.com>
13706
13707 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13708 * signals.c (target_signal_to_name): Verify that SIG is within the
13709 bounds of the signals array.
13710
4daa9f9f
AC
137112002-01-13 Andrew Cagney <ac131313@redhat.com>
13712
13713 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13714
ba4bbdcb
KS
137152002-01-13 Keith Seitz <keiths@redhat.com>
13716
13717 * stack.c (print_frame_info_base): Print the frame's pc
13718 only if when print_frame_info_listing_hook is not defined.
13719
575bbeb6
KS
137202002-01-13 Keith Seitz <keiths@redhat.com>
13721
13722 * varobj.c (varobj_set_value): Make sure that there were no
13723 errors evaluating the object before attempting to set its
13724 value.
13725 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13726 so this offset adjustment is no longer necessary.
13727 (create_child): Don't set the error flag if the child is
13728 a CPLUS_FAKE_CHILD.
13729 (value_of_child): If value_fetch_lazy fails, return NULL
13730 so that callers will be notified that an error occurred.
13731 (c_value_of_variable): Delay check of variable's validity
13732 until later. We actually want all structs and unions to have
13733 the value "{...}".
13734 Do not return "???" for variables which could not be evaluated.
13735 This error condition must be returned to the caller so that it
13736 can get the error condition from gdb.
13737 (cplus_name_of_child): Adjust index for vptr before figuring
13738 out the name of the child.
13739 (cplus_value_of_child): If a child's (real) parent is not valid,
13740 don't even bother trying to give a value for it. Just return
13741 an error. Change all instances in this function.
13742 (cplus_type_of_child): If our parent is one of the "fake"
13743 parents, we need to get at the type of the real parent, and
13744 derive the child's true type using this information.
13745
b76898ab
AC
137462002-01-13 Andrew Cagney <ac131313@redhat.com>
13747
13748 From 2002-01-09 John Marshall <johnm@falch.net>:
13749 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13750 sources.redhat.com, and tweak some related URLs which had
13751 suffered from linkrot.
13752
b6649e88
AC
137532002-01-13 Andrew Cagney <ac131313@redhat.com>
13754
13755 From Jeff law:
13756 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13757 structures passed in registers.
13758
82cc5033
EZ
137592002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13760
13761 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13762 white space which prevented compilation. Reported by DSK
13763 <dsk@student.unsw.edu.au>.
13764
ba5f2f8a
MS
137652002-01-11 Michael Snyder <msnyder@redhat.com>
13766
fbd35540
MS
13767 * symfile.c (build_section_addr_info_from_section_tab):
13768 Use bfd access method instead of manipulating bfd directly.
13769 (syms_from_objfile): Ditto.
13770 (simple_overlay_update_1): Ditto.
13771 (simple_overlay_update): Ditto.
13772 (generic_load): Ditto.
13773 (overlay_unmapped_address): FIXME comment, bfd access methods.
13774 (sections_overlap): FIXME comment, bfd access methods.
13775 (pc_in_mapped_range): FIXME comment, bfd access methods.
13776 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13777 (section_is_mapped): FIXME comment, bfd access methods.
13778 (section_is_overlay): FIXME comment, bfd access methods.
13779
ba5f2f8a
MS
13780 * symfile.c (generic_load): Whitespace and long line cleanups.
13781 Remove duplicate variable, change several local variables to
13782 more appropriate data types.
13783 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13784
17df2af6
AC
137852002-01-12 Andrew Cagney <ac131313@redhat.com>
13786
13787 From Peter Schauer:
13788 * language.c (longest_local_hex_string_custom): Use phex_nz to
13789 convert NUM to a hex string.
13790
ec920329
EZ
137912002-01-12 Elena Zannoni <ezannoni@redhat.com>
13792
13793 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13794 the function.
538a76d6 13795 Update Copyright year.
ec920329 13796
3abd2e01
AC
137972002-01-12 Andrew Cagney <ac131313@redhat.com>
13798
13799 * language.c (longest_raw_hex_string): Delete unused function.
13800
b21b22e0
PS
138012002-01-11 Petr Sorfa <petrs@caldera.com>
13802
13803 * MAINTAINERS (write-after-approval): Add myself.
13804 * dwarf2read.c (read_tag_string_type): Handling of
13805 DW_AT_byte_size.
13806 (read_tag_string_type): FORTRAN fix to prevent propagation of
13807 first string size.
13808 (set_cu_language): Handling of DW_LANG_Fortran95
13809
747fe712
RE
138102002-01-11 Richard Earnshaw <rearnsha@arm.com>
13811
13812 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13813 GETPID(inferior_ptid).
13814 (store_inferior_registers): Likewise.
13815
f1bea926
JM
138162002-01-10 Jason Merrill <jason@redhat.com>
13817
13818 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13819 Fix DW_OP_minus.
13820
ae940673
AC
138212002-01-10 Andrew Cagney <ac131313@redhat.com>
13822
13823 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13824 and bfd/elf32-sh-nbsd.c.
13825
00546b04
MS
138262002-01-10 Michael Snyder <msnyder@redhat.com>
13827
352ed7b4
MS
13828 * NEWS: Mention --pid and corefile/proc-id behavior change.
13829
c18be923
MS
13830 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13831 * gcore.c: Include cli/cli-decode.h instead of command.h.
13832
00546b04
MS
13833 * main.c (captured_main): Add new command line option "--pid".
13834 If the second command line argument (following the symbol-file)
13835 begins with a digit, try to attach to it before trying to open
13836 it as a corefile.
13837 (print_gdb_help): Document the "--pid" argument.
13838
db60ec62
EZ
138392002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13840
13841 * completer.c (command_completer): New function.
13842
13843 * completer.h <command_completer>: Add prototype.
13844
13845 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13846 completer for the "help" command.
13847
39c22d1a
JM
138482002-01-09 Jason Merrill <jason@redhat.com>
13849
13850 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13851
c564377f
MS
138522002-01-09 Michael Snyder <msnyder@redhat.com>
13853
975aec09
MS
13854 * i386-linux-nat.c (fill_fpxregset): Make global.
13855 (store_fpxregset): Ditto.
13856
db4a10fa
MS
13857 * gregset.h (gdb_fpxregset_t): Define.
13858 (supply_fpxregset): Prototype.
13859 (fill_fpxregset): Prototype.
13860
c564377f
MS
13861 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13862
c3d45d70
RE
138632002-01-09 Richard Earnshaw <rearnsha@arm.com>
13864
13865 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13866 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13867 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13868
fcc87af1
AC
138692002-01-09 Andrew Cagney <ac131313@redhat.com>
13870
13871 * MAINTAINERS: Update target maintainer rules so that any
13872 Maintainer can approve a tested patch for a maintenance-only
13873 target.
13874
dd96c05b
RE
138752002-01-09 Richard Earnshaw <rearnsha@arm.com>
13876
d4297db9 13877 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13878
d4297db9 13879 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13880 IN_SIGTRAMP.
13881
145fdc6e
MS
138822002-01-08 Michael Snyder <msnyder@redhat.com>
13883
13884 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13885 real name of the executable, rather than the /proc name.
13886
be4d1333
MS
138872002-01-03 Michael Snyder <msnyder@redhat.com>
13888
13889 Implement a "generate-core-file" command in gdb, save target state.
13890 * gcore.c: New file. Implement new command 'generate-core-file'.
13891 Save a corefile image of the current state of the inferior.
13892 * linux-proc.c: Add linux-specific code for saving corefiles.
13893 * target.h (struct target_ops): Add new target vectors for saving
13894 corefiles; to_find_memory_regions and to_make_corefile_notes.
13895 (target_find_memory_regions): New macro.
13896 (target_make_corefile_notes): New macro.
13897 * target.c (update_current_target): Inherit new target methods.
13898 (dummy_find_memory_regions): New place-holder method.
13899 (dummy_make_corefile_notes): New place-holder method.
13900 (init_dummy_target): Initialize new dummy target vectors.
13901 * exec.c (exec_set_find_memory_regions): New function.
13902 Allow the exec_ops vector for memory regions to be taken over.
13903 (exec_make_note_section): New function, target vector method.
13904 * defs.h (exec_set_find_memory_regions): Export prototype.
13905 * procfs.c (proc_find_memory_regions): New function, corefile method.
13906 (procfs_make_note_section): New function, corefile method.
13907 (init_procfs_ops): Set new target vector pointers.
13908 (find_memory_regions_callback): New function.
13909 (procfs_do_thread_registers): New function.
13910 (procfs_corefile_thread_callback): New function.
13911 * sol-thread.c (sol_find_memory_regions): New function.
13912 (sol_make_note_section): New function.
13913 (init_sol_thread_ops): Initialize new target vectors.
13914 * inftarg.c (inftarg_set_find_memory_regions): New function.
13915 Allow to_find_memory_regions vector to be taken over.
13916 (inftarg_set_make_corefile_notes): New function.
13917 Allow to_make_corefile_notes vector to be taken over.
13918 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13919 interface layer if not target_has_execution (may be a corefile).
13920 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13921 * config/sparc/sun4sol2.mh: Ditto.
13922 * config/alpha/alpha-linux.mh: Ditto.
13923 * config/arm/linux.mh: Ditto.
13924 * config/i386/x86-64linux.mh: Ditto.
13925 * config/ia64/linux.mh: Ditto.
13926 * config/m68k/linux.mh: Ditto.
13927 * config/mips/linux.mh: Ditto.
13928 * config/powerpc/linux.mh: Ditto.
13929 * config/sparc/linux.mh: Ditto.
13930
c6b92abd
MS
139312002-01-07 Michael Snyder <msnyder@redhat.com>
13932
13933 * arm-linux-nat.c: Remove references to regcache.c internal data
13934 (registers[] and register_valid[]).
13935
4b09dc8c
MS
139362002-01-07 Michael Snyder <msnyder@redhat.com>
13937
abf22e64
AJ
13938 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13939 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13940 symbol file and shlibs.
13941 * Makefile.in: Add rule for linux-proc.o.
13942 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13943 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13944 * config/arm/linux.mh: Ditto.
13945 * config/i386/linux.mh: Ditto.
13946 * config/i386/x86-64linux.mh: Ditto.
13947 * config/ia64/linux.mh: Ditto.
13948 * config/m68k/linux.mh: Ditto.
13949 * config/mips/linux.mh: Ditto.
13950 * config/powerpc/linux.mh: Ditto.
13951 * config/sparc/linux.mh: Ditto.
13952
c25b74ac
PM
139532002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13954
13955 * win32-nat.c: Add i386-tdep.h dependency.
13956
94cd915f
MS
139572002-01-07 Michael Snyder <msnyder@redhat.com>
13958
c7cccb76
MS
13959 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13960 instead of bfd_get_arch_size. Don't bail out just because
13961 there's no exec_bfd.
abf22e64 13962
34c0bd93
MS
13963 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13964 * p-valprint.c (pascal_object_print_value): Ditto.
13965 * somread.c (som_symtab_read): Ditto.
13966 * symfile.c (simple_free_overlay_region_table): Ditto.
13967 * valops.c (value_assign): Ditto.
13968
21c1c920
MS
13969 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13970 use tilde_expand and strerror for opening save-tracepoints file.
13971
5bbd998e
MS
13972 * thread-db.c (thread_db_new_objfile): Indendation fix.
13973
94cd915f
MS
13974 * infptrace.c (GDB_MAX_ALLOCA): New define.
13975 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13976 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13977 can be overridden with whatever value is appropriate to the host).
13978 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13979 alloca to allocate potentially large buffer.
13980 * rs6000-nat.c (child_xfer_memory): Ditto.
13981 * symm-nat.c (child_xfer_memory): Ditto.
13982 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13983
494e8a93
JSC
139842002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13985
13986 From Nick Clifton <nickc@redhat.com>
13987 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13988
d0e1d48e
MS
139892002-01-07 Michael Snyder <msnyder@redhat.com>
13990
abf22e64 13991 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13992 Don't use exec_bfd if it's NULL.
13993
290b2c7a
MK
139942002-01-06 Mark Kettenis <kettenis@gnu.org>
13995
abf22e64 13996 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13997
aef21287
AC
139982002-01-06 Andrew Cagney <ac131313@redhat.com>
13999
14000 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14001 * gnu-nat.c: Ditto.
14002
30efa627
AC
140032002-01-06 Andrew Cagney <ac131313@redhat.com>
14004
14005 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14006 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14007 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14008 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14009 z8k-coff have not been multi-arched. Update z8k-coff build
14010 status.
14011
9b4ff276
AC
140122002-01-06 Andrew Cagney <ac131313@redhat.com>
14013
14014 * MAINTAINERS: Mark a29k target as obsolete.
14015 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14016 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14017 comments.
14018 * NEWS: Note that a29k targets are obsolete.
14019 * a29k-tdep.c: Mark as obsolete.
14020 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14021 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14022 a29k-*-vxworks* targets as obsolete.
14023 * remote-adapt.c: Obsolete.
14024 * remote-eb.c: Obsolete.
14025 * remote-mm.c: Obsolete.
14026 * remote-udi.c: Obsolete.
14027 * config/a29k/a29k-udi.mt: Obsolete.
14028 * config/a29k/a29k.mt: Obsolete.
14029 * config/a29k/tm-a29k.h: Obsolete.
14030 * config/a29k/tm-vx29k.h: Obsolete.
14031 * config/a29k/vx29k.mt: Obsolete.
14032
a9011d31
AC
140332002-01-05 Andrew Cagney <ac131313@redhat.com>
14034
14035 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14036 with BFD_ENDIAN_BIG.
14037
9299404e
AC
140382002-01-05 Andrew Cagney <ac131313@redhat.com>
14039
14040 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14041 * configure, config.in: Re-generate.
14042 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14043 * defs.h: Do not include <endian.h>.
14044
7e89e357
JT
140452002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14046
14047 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14048 * config.in: Regenerate.
14049 * configure.in: Update copyright years.
14050 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14051 * configure: Regenerate.
14052 * i386bsd-nat.c: Update copyright years.
14053 (fill_gregset): Use regcache_collect.
14054 (fetch_inferior_registers): Only fetch integer registers
14055 if requested to do so. Add support for XMM registers
14056 using PT_GETXMMREGS.
14057 (store_inferior_registers): Only store integer registers
14058 if requested to do so. Add support for XMM registers
14059 using PT_SETXMMREGS.
14060 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14061 (store_inferior_registers): Remove.
14062 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14063 (fetch_elfcore_registers): New function.
14064 (i386nbsd_elfcore_fns): New.
14065 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14066 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14067 i386bsd-nat.o.
14068 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14069 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14070 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14071 * config/i386/tm-nbsd.h: Update copyright years.
14072 (HAVE_SSE_REGS): Define.
14073 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14074 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14075 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14076 (SIGCONTEXT_PC_OFFSET): Remove.
14077 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14078
a752853e
AC
140792002-01-05 Andrew Cagney <ac131313@redhat.com>
14080
14081 * configure.tgt: Remove powerpc-*-macos* target.
14082 * config/m68k/xm-mpw.h: Delete file.
14083 * config/xm-mpw.h: Delete file.
14084 * ser-mac.c: Delete file.
14085 * mpw-make.sed: Delete file.
14086 * mpw-config.in: Delete file.
14087 * mac-xdep.c: Delete file.
14088 * mac-gdb.r: Delete file.
14089 * mac-defs.h: Delete file.
14090 * mac-nat.c: Delete file.
14091 * config/powerpc/macos.mh: Delete file.
14092 * config/powerpc/macos.mt: Delete file.
14093 * config/powerpc/nm-macos.h: Delete file.
14094 * config/powerpc/tm-macos.h: Delete file.
14095 * source.c (openp, open_source_file): Remove obsolete code.
14096 * top.c (gdb_readline): Ditto.
14097 * utils.c (query): Ditto.
14098 * event-top.c (display_gdb_prompt): Ditto.
14099 * Makefile.in (ser-mac.o): Delete obsolete target.
14100 * NEWS: Update.
14101
d7449b42
AC
141022002-01-04 Andrew Cagney <ac131313@redhat.com>
14103
14104 * defs.h (BIG_ENDIAN): Delete macro definition.
14105 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14106 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14107 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14108 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14109 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14110 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14111 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14112 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14113 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14114 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14115 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14116 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14117 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14118 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14119 * gdbarch.c: Re-generate.
14120
356374e8
DJ
141212002-01-04 Daniel Jacobowitz <drow@mvista.com>
14122
14123 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14124 for core files.
14125
a2b8f8f8
JT
141262002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14127
14128 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14129
12466af9
AC
141302002-01-04 Andrew Cagney <ac131313@redhat.com>
14131
14132 * value.h (value_ptr): Delete typedef.
14133
3549ab40
JT
141342002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14135
14136 * i386nbsd-nat.c: Update copyright years.
14137 Include i386-tdep.h.
14138
fedbd091
EZ
141392002-01-04 Elena Zannoni <ezannoni@redhat.com>
14140
14141 * stabsread.c: Update copyright years.
14142
14143 From Debashis Mahata <debashis.mahata@wipro.com>:
14144 (read_struct_fields): Deal with Sun C compiler erroneous stab
14145 output for structs and unions.
fec8b34f 14146 Fix PR gdb/269.
fedbd091 14147
eb43544b
DJ
141482002-01-04 Daniel Jacobowitz <drow@mvista.com>
14149
14150 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14151 prototype.
14152
1514d34e
DJ
141532002-01-04 Daniel Jacobowitz <drow@mvista.com>
14154
14155 * cp-abi.c: Fix whitespace.
14156 (baseclass_offset): New wrapper function.
14157 * cp-abi.h (baseclass_offset): Add prototype.
14158 (struct cp_abi_ops): Add baseclass_offset pointer.
14159
14160 * valops.c (vb_match): Move to...
14161 * gnu-v2-abi.c (vb_match): here.
14162 * valops.c (baseclass_offset): Move to...
14163 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14164
14165 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14166
14167 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14168 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14169 * hpacc-abi.c (init_hpacc_ops): Likewise.
14170
7f8c9282
DJ
141712002-01-04 Daniel Jacobowitz <drow@mvista.com>
14172
14173 * valops.c (find_overload_match): Accept obj as a
14174 reference parameter. Update it before returning.
14175 * value.h (find_overload_match): Update prototype.
14176 * eval.c (evaluate_subexp_standard): Pass object to
14177 find_overload_match by reference.
14178
f23631e4
AC
141792002-01-03 Andrew Cagney <ac131313@redhat.com>
14180
14181 * valarith.c: Replace value_ptr with struct value pointer. Remove
14182 register attribute from value declarations.
14183 * valops.c: Ditto.
14184 * value.h: Ditto.
14185 * scm-lang.c (scm_lookup_name): Ditto.
14186
79e10fab 141872002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 14188
79e10fab
AC
14189 Abstract the functionality of iterating over mapped memory
14190 regions into a general purpose iterator function.
abf22e64 14191 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
14192 iterator for memory sections.
14193 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14194 (solib_mappings_callback): New function, callback for above.
14195 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14196 (info_mappings_callback): New function, callback for above.
14197
14198 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14199
c5ad026a
MK
142002002-01-01 Mark Kettenis <kettenis@gnu.org>
14201
d2a7c97a
MK
14202 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14203 * i386-tdep.c: Include "elf-bfd.h".
14204 (process_note_abi_tag_sections): New function.
14205 (i386_gdbarch_init): Add code to recognize various OS/ABI
14206 combinations.
14207
c5ad026a
MK
14208 * maint.c (_initialize_maint_cmds): Add missing \ in
14209 string-literal.
14210
a1a5b71e 14211For older changes see ChangeLog-2001
c906108c
SS
14212\f
14213Local Variables:
14214mode: change-log
14215left-margin: 8
14216fill-column: 74
14217version-control: never
14218End:
This page took 1.099335 seconds and 4 git commands to generate.