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