2003-02-19 David Carlton <carlton@math.stanford.edu>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
fe898f56
DC
12003-02-19 David Carlton <carlton@math.stanford.edu>
2
3 * Makefile.in (SFILES): Add block.c.
4 (block_h): New.
5 (COMMON_OBS): Add block.o.
6 (block.o): New.
7 (x86-64-tdep.o): Add $(block_h).
8 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
13 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
14 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
15 * value.h: Add opaque declaration for struct block.
16 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
17 * ada-lang.h: Ditto.
18 * x86-64-tdep.c: #include "block.h"
19 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
20 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
21 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
22 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
23 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
24 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
25 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
26 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
27 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
28 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
29 * symtab.c (block_function): Ditto.
30 (contained_in): Ditto.
31 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
32 block.h. Add opaque declaration for struct block.
33 * symtab.h: Move block_function and contained_in declarations to
34 block.h. Add opaque declarations for struct block, struct
35 blockvector.
36 (struct block): Move to block.h.
37 (struct blockvector): Ditto.
38 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
39 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
40 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
41 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
42 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
43 Ditto.
44 * block.c: New file.
45 * block.h: New file.
46
173345b5
TR
472003-02-19 Theodore A. Roth <troth@openavr.org>
48
49 * avr-tdep.c (avr_extract_return_value): Remove function.
50 (avr_store_return_value): Remove function.
51 (avr_extract_struct_value_address): Remove function.
52 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
53
338ef23d
AC
542003-02-19 Andrew Cagney <ac131313@redhat.com>
55
56 * rs6000-tdep.c: Include "gdb_assert.h".
57 (registers_e500): Add "acc" and "spefscr".
58 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
59 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
60 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
61 really is "r0".
62 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
63
5412f5f3
KS
642003-02-18 Keith Seitz <keiths@redhat.com>
65
66 * Makefile.in: Add gdbtk-interps.c.
67
881324eb
KB
682003-02-18 Kevin Buettner <kevinb@redhat.com>
69
70 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
71 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
72
6a2f5abf
AC
732003-02-18 Andrew Cagney <cagney@redhat.com>
74
75 * symtab.h (struct objfile): Add opaque declaration.
76
54c7009d
EZ
772003-02-18 Elena Zannoni <ezannoni@redhat.com>
78
79 From Jim Ingham <jingham@apple.com>:
80 * dbxread.c (process_one_symbol): Use last_function_start rather
81 than function_start_offset to find the real beginning of the
82 current function. The latter is just the text section offset on
83 some systems, the former is always the real function start.
84
7ee6d7eb
AC
852003-02-17 Andrew Cagney <cagney@redhat.com>
86
87 * configure.in: Revert ${target} != ${host}.
88
2846da9b
AC
892003-02-17 Andrew Cagney <ac131313@redhat.com>
90
91 * configure.in (Makefile): Use the test ${target} != ${host},
92 instead of the absence of the "nm.h" file, to determine of the
93 configuration non-native.
94 * configure: Regenerate.
95
3b27aeea
EZ
962003-02-14 Elena Zannoni <ezannoni@redhat.com>
97
98 From Brian Ford <ford@vss.fsi.com>
99
100 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
101 conditionalize tui_active test.
102 (lookup_cmd_1): Ditto.
103
b0b1c2c0
MK
1042003-02-14 Mark Kettenis <kettenis@gnu.org>
105
106 * configure.in: Add check for _etext.
107 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
108 available.
109 * config.in, configure: regenerated.
110
8f05cde5
DJ
1112003-02-14 Daniel Jacobowitz <drow@mvista.com>
112
113 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
114
021e7609
AC
1152003-02-14 Andrew Cagney <ac131313@redhat.com>
116
117 * main.c (tui_version): Delete variable.
118 (captured_main): When --tui, set interpreter_p to "tui" instead of
119 enabling tui_version.
120 * printcmd.c (display_command) [TUI]: Test tui_active instead of
121 tui_version.
122 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
123 * cli/cli-cmds.c (disassemble_command): Ditto.
124 * defs.h (tui_version): Delete declaration.
125 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
126 (tui-interp.o): Add rules.
127 (SUBDIR_TUI_OBS): Add "tui-interp.o".
128
e325dcec
CF
1292003-02-14 Christopher Faylor <cgf@redhat.com>
130
131 * win32-nat.cc (register_loaded_dll): Correctly set address range for
132 just-loaded dll.
133
c4f90d87
JM
1342003-02-12 Jason Molenda (jmolenda@apple.com)
135
136 * symmisc.c (print_objfile_statistics): Include information about
137 the number of psymtabs and symtabs in each object file.
138
e46e5ccd
KS
1392003-02-13 Keith R Seitz <keiths@redhat.com>
140
141 * main.h (struct captured_main_args): Add interpreter_p.
142 * main.c (captured_main): Initialize interpreter_p from context.
143 * gdb.c (main): Set interpreter_p argument.
144 * Makefile.in (gdb.o): Add dependency for interps.h.
145
fe97fe9c
AC
1462003-02-12 Andrew Cagney <ac131313@redhat.com>
147
148 * event-top.c (cli_command_loop): Delete declaration.
149 (_initialize_event_loop): Delete function setting event_loop_hook.
150 * event-top.h (cli_command_loop): Declare. Update copyright.
151 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
152 * interps.c (current_interp_command_loop): When event_loop_p, call
153 cli_command_loop.
154
1cdac4ef
AC
1552003-02-12 Andrew Cagney <ac131313@redhat.com>
156
157 * interps.h (interp_command_loop_ftype): Change return type to
158 void.
159
48037ead
ML
1602003-02-12 Michal Ludvig <mludvig@suse.cz>
161
162 * x86-64-tdep.c (x86_64_extract_return_value)
163 (x86_64_store_return_value): Use regcache instead of regbuf.
164 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
165 * x86-64-linux-nat.c (fill_gregset): Use regcache.
166
033afc63
AC
1672003-02-11 Andrew Cagney <ac131313@redhat.com>
168
169 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
170 * aclocal.m4: Regenerate.
171 * configure: Regenerate.
172
173 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
174 TCL_LD_SEARCH_FLAGS.
175
40d02bca
ML
1762003-02-10 Michal Ludvig <mludvig@suse.cz>
177
178 * dwarf2cfi.c: Reindented.
179
11308a41
AC
1802003-02-09 Andrew Cagney <ac131313@redhat.com>
181
182 * interps.c (clear_interpreter_hooks): Convert function definition
183 to ISO C.
184
e1c1c0f6
DC
1852003-02-07 David Carlton <carlton@math.stanford.edu>
186
187 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
188
ab5d3da6
KB
1892003-02-07 Kevin Buettner <kevinb@redhat.com>
190
191 * gdbtypes.h (struct main_type): Move ``length'' field from here...
192 (struct type): ...to here.
193 (TYPE_LENGTH): Adjust to reflect different location of ``length''
194 field.
195 * gdbtypes.c (make_qualified_type): Set length on newly created type.
196 (replace_type): Set length on all type variants for a given type.
197
b8a92b82
AC
1982003-02-07 Andrew Cagney <ac131313@redhat.com>
199
200 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
201 <sys/stat.h>.
202 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
203
5cb316ef
AC
2042003-02-06 Andrew Cagney <ac131313@redhat.com>
205
2555fe1a
AC
206 * Makefile.in (symm-nat.o): Update dependencies.
207 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
208 (lynx-nat.o, ia64-linux-nat.): Ditto.
209 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
210 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
211 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
212
44270758
AC
213 * Makefile.in (inflow_h): Define.
214 (procfs.o, inflow.o, procfs.o): Update dependencies.
215 * inftarg.c (child_stop): Delete extern declaration of
216 inferior_process_group. Include "inflow.h".
217 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
218 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
219 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
220 (our_process_group, inferior_process_group): Extern declarations.
221
df8f7274
AC
222 * procfs.c: Include "gdb_assert.h".
223
5cb316ef
AC
224 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
225 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
226 * jv-typeprint.c (java_type_print_base): Ditto.
227 * typeprint.c (typedef_print): Eliminate STREQ.
228 * cli/cli-script.c (define_command, define_command): Ditto.
229 * main.c (captured_main): Ditto.
230 * values.c (lookup_internalvar): Ditto.
231 * utils.c (safe_strerror, parse_escape): Eliminate assignment
232 within `if' conditional.
233 * linespec.c (decode_line_2): Ditto.
234 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
235 (bfd_openw_with_cleanup): Ditto.
236
2a28ccea
MK
2372003-02-07 Mark Kettenis <kettenis@gnu.org>
238
239 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
240 legacy_extract_return_value and store_return_value to
241 legacy_return_value.
242
786b8124
CF
2432003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
244
245 * win32-nat.c (get_relocated_section_addrs): New function. Find
246 section load addresses for symbol handling in relocated DLLs.
247 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
248
b871e4ec
FF
2492003-02-05 Fred Fish <fnf@intrinsity.com>
250
251 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
252 '=' and '!='.
253 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
254 with '&' and '=='.
255 (angel_RDI_info): Ditto.
256 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
257 with '&' and '!='.
258 (threads_continue_all_with_signals): Ditto.
259
4389a95a
AC
2602003-02-05 Jim Ingham <jingham@apple.com>
261 Keith Seitz <keiths@redhat.com>
262 Elena Zannoni <ezannoni@redhat.com>
263 Andrew Cagney <ac131313@redhat.com>
264
265 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
266 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
267 (SUBDIR_MI_OBS): Add "mi-interp.o".
268 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
269 (SFILES): Add "interps.c".
270 (COMMON_OBS): Add "interps.o".
271 (interps_h, mi_main_h): Define.
272 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
273 (mi-main.o, main.o, event-top.o): Update dependencies.
274 * cli/cli-interp.c: New file.
275 * interps.h, interps.c: New files.
276 * top.c: (gdb_init): Don't install the default interpreter, handed
277 by captured_main.
278 * main.c: Include "interps.h".
279 (interpreter_p): Note that it should malloc'ed.
280 (captured_command_loop): Call current_interp_command_loop.
281 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
282 xfree and xstrdup when updating interpreter_p. Install the
283 default interpreter. Add hack to stop mi1's copyright notice
284 being encoded.
285 * event-top.h (gdb_setup_readline): Declare.
286 (gdb_disable_readline): Declare.
287 * event-top.c: Include "interps.h".
288 (display_gdb_prompt): Call current_interp_display_prompt_p.
289 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
290 gdb_stdlog, and gdb_stdtarg.
291 (_initialize_event_loop): Don't call gdb_setup_readline.
292 * cli-out.c (cli_out_set_stream): New function.
293 * cli-out.h (cli_out_set_stream): Declare.
294
ff3b5810
MK
2952003-02-06 Mark Kettenis <kettenis@gnu.org>
296
297 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
298 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
299 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
300 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
301 config/i386/i386v42mp.mt: Removed.
302
5b729aa5
MK
3032003-02-05 Mark Kettenis <kettenis@gnu.org>
304
305 * configure.tgt (*-*-solaris*): Set gdb_osabi to
306 GDB_OSABI_SOLARIS.
307
8cc15142
MC
3082003-02-05 Michael Chastain <mec@shout.net>
309
310 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
311 2.12.1 and earlier versions.
312
5aa5d4b9
AC
3132003-02-05 Andrew Cagney <ac131313@redhat.com>
314
315 Remove orphaned hosts, targets and files.
316 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
317 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
318 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
319 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
320 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
321 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
322 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
323 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
324 * config/sparc/tm-sp64sim.h: Delete.
325 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
326 hosts.
327 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
328 mips*-dec-mach3* targets.
329
b68767c1
MC
3302003-02-04 Michael Chastain <mec@shout.net>
331
332 * NEWS: Fix typo: sepcifying -> specifying.
333
5ae7ca1d
MC
3342003-02-04 Michael Chastain <mec@shout.net>
335
336 * dwarfread.c: Add documentation on the state of dwarf-1,
337 looking towards obsoletion.
338
d08a4280
MC
3392003-02-03 Michael Chastain <mec@shout.net>
340
341 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
342 gdb/testsuite/gdb.c++/pr-1023.exp.
343
e9be73e4
AC
3442003-02-04 Andrew Cagney <ac131313@redhat.com>
345
346 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
347 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
348
349 * utils.c (init_page_info): Delete reference to MPW in comments.
350 * main.c (captured_main): Delete #ifdef MPW.
351
05d57f6f
AC
3522003-02-04 Andrew Cagney <ac131313@redhat.com>
353
354 * NEWS: Note that the m32r-*-elf* is obsolete.
355 * monitor.c (monitor_expect): Obsolete reference to m32r.
356 * configure.tgt: Mark m32r-*-elf* as obsolete.
357 * MAINTAINERS: Mark m32k as obsolete.
358 * m32r-rom.c: Obsolete file.
359 * config/m32r/m32r.mt: Obsolete file.
360 * config/m32r/tm-m32r.h: Obsolete file.
361 * m32r-stub.c: Obsolete file.
362 * m32r-tdep.c: Obsolete file.
363
8b0e5691
AC
3642003-02-04 Andrew Cagney <ac131313@redhat.com>
365
366 * NEWS: Mention that the z8k-zilog-none is obsolete.
367 * MAINTAINERS: Mark z8k as obsolete.
368 * configure.tgt: Obsolete the z8k-*-coff* target.
369 * config/z8k/z8k.mt: Obsolete file.
370 * config/z8k/tm-z8k.h: Obsolete file.
371 * z8k-tdep.c: Obsolete file.
372
67f16606
AC
3732003-02-04 Andrew Cagney <ac131313@redhat.com>
374
375 * NEWS: Mention that the mn10200-elf is obsolete.
376 * configure.tgt: Obsolete mn10200-*-* target.
377 * breakpoint.c (update_breakpoints_after_exec): Update comment to
378 mention that the mn10200 is obsolete.
379 * breakpoint.h: Ditto.
380 * MAINTAINERS: Mark the mn10200-elf as obsolete.
381 * config/mn10200/mn10200.mt: Obsolete file.
382 * config/mn10200/tm-mn10200.h: Obsolete file.
383 * mn10200-tdep.c: Obsolete file.
384
fd2299bd
AC
3852003-02-04 Andrew Cagney <ac131313@redhat.com>
386
387 * MAINTAINERS: Mark h8500 as obsolete.
388 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
389 * findvar.c (value_from_register): Ditto.
390 * h8500-tdep.c: Mark file as obsolete.
391 * config/h8500/h8500.mt: Ditto.
392 * config/h8500/tm-h8500.h: Ditto.
393 * NEWS: Mention that h8500 is obsolete.
394
eb9a305d
DC
3952003-02-04 David Carlton <carlton@math.stanford.edu>
396
397 * objfiles.c (allocate_objfile): Always set name. Add comment at
398 start of function.
399 * jv-lang.c (get_dynamics_objfile): Add comment.
400
406fc7fb
DC
4012003-02-04 David Carlton <carlton@math.stanford.edu>
402
403 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
404 * printcmd.c (build_address_symbolic): Replace uses of
405 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
406 SYMBOL_NAME, and asm_demangle.
407 Update copyright.
408
93d91629
DC
4092003-02-04 David Carlton <carlton@math.stanford.edu>
410
411 * linespec.c (decode_compound): Extract code into
412 lookup_prefix_sym.
413 (lookup_prefix_sym): New function.
414
1c5cb38e
DC
4152003-02-04 David Carlton <carlton@math.stanford.edu>
416
417 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
418 FLOAT_COERCION_BADNESS.
419 * gdbtypes.c (rank_one_type): Replace all uses of
420 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
421
0cf824c9
JB
4222003-02-04 Jim Blandy <jimb@redhat.com>
423
424 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
425 section, let dwarf_macinfo_section point to it, not
426 dwarf_loc_section.
427
a2d356b0
DJ
4282003-02-04 Daniel Jacobowitz <drow@mvista.com>
429
430 Pointed out by Anton Blanchard <anton@samba.org>.
431 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
432 (ppc_linux_at_sigtramp_return_path): Use it.
433
2de7ced7
DJ
4342003-02-04 Daniel Jacobowitz <drow@mvista.com>
435
436 * defs.h (streq): Add prototype.
437 * utils.c (streq): New function.
438
439 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
440 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
441 * mdebugread.c (new_symbol): Likewise.
442 * stabsread.c (define_symbol): Likewise.
443 * coffread.c (process_coff_symbol): Likewise.
444 * dwarfread.c (new_symbol): Likewise.
445
446 * minsyms.c (prim_record_minimal_symbol_and_info): Use
447 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
448 here.
449 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
450 SYMBOL_INIT_DEMANGLED_NAME.
451 * objfiles.c: Include "hashtab.h".
452 (allocate_objfile): Call htab_set_functions_ex for the
453 demangled_names_hash.
454 (free_objfile): Call htab_delete for the demangled_names_hash.
455 * objfiles.h (struct htab): Add declaration.
456 (struct objfile): Add demangled_names_hash.
457 * symfile.c: Include "hashtab.h".
458 (reread_symbols): Call htab_delete for the demangled_names_hash.
459 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
460 SYMBOL_NAME in the bcache.
461 * symtab.c: Include "hashtab.h". Update comments.
462 (create_demangled_names_hash, symbol_set_names): New functions.
463 (symbol_find_demangled_name): New function, broken out from
464 symbol_init_demangled_names.
465 (symbol_init_demangled_names): Use it.
466 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
467 (SYMBOL_SET_NAMES): New macro.
468 (symbol_set_names): Add prototype.
469
15831452
JB
4702003-02-03 Jim Blandy <jimb@redhat.com>
471
472 Use a single, consistent representation for an empty minimal
473 symbol table in an objfile.
474 * objfiles.c (terminate_minimal_symbol_table): New function.
475 (allocate_objfile): Call it.
476 * objfiles.h (terminate_minimal_symbol_table): New declaration.
477 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
478 non-NULL.
479 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
480 objfile has minimal symbols, compare minimal_symbol_count to zero,
481 instead of comparing msymbols with NULL.
482 * objfiles.c (have_minimal_symbols): Same.
483 * solib-sunos.c (solib_add_common_symbols): Call
484 terminate_minimal_symbol_table.
485 * symfile.c (reread_symbols): Same.
486
ffc65945
KB
4872003-02-03 Kevin Buettner <kevinb@redhat.com>
488
489 * s390-tdep.c (s390_address_class_type_flags)
490 (s390_address_class_type_flags_to_name)
491 (s390_address_class_name_to_type_flags): New functions.
492 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
493 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
494
f211c6d4
MS
4952003-02-03 Michael Snyder <msnyder@redhat.com>
496
497 * arm-tdep.c: Fix spell-o in comment.
498
659b0389
ML
4992003-02-03 Michal Ludvig <mludvig@suse.cz>
500
501 * dwarf2cfi.c (pointer_encoding): Added new parameter.
502 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
503 error messages to contain BFD filename.
504
3b31d625
EZ
5052003-02-02 Elena Zannoni <ezannoni@redhat.com>
506
997b089a 507 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
508 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
509 (do_mixed_source_and_assembly): Use
510 make_cleanup_ui_out_tuple_begin_end and
511 make_cleanup_ui_out_tuple_begin_end.
512 (do_mixed_source_and_assembly): Ditto.
513 * thread.c (do_captured_list_thread_ids): Ditto.
514 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
515 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
516 ui_out_tuple_end): Delete prototypes.
517 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
518 ui_out_list_end, ui_out_tuple_end): Delete.
519
520 From Kevin Buettner <kevinb@redhat.com>:
521 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
522 * ui-out.c (make_cleanup_ui_out_table_begin_end)
523 (do_cleanup_table_end): New functions.
524 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
525 Use cleanups to invoke_ui_out_tuple_end().
526 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
527 * cli/cli-setshow.c (cmd_show_list): Use
528 make_cleanup_ui_out_tuple_begin_end.
529
5b181d62
AC
5302003-02-02 Andrew Cagney <ac131313@redhat.com>
531
532 * frame.c (frame_unwind_register): New function.
533 (frame_unwind_unsigned_register): Use.
534 (frame_unwind_signed_register): Use.
535 (frame_read_register): New function.
536 * frame.h (frame_unwind_register): Declare.
537 (frame_read_register): Declare.
538
539 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
540 and frame_unwind_register instead of read_memory, write_register
541 and deprecated_write_register_bytes.
542
5f601589
AC
5432003-02-02 Andrew Cagney <ac131313@redhat.com>
544
545 * frame.h: Note that namelen can be negative.
546 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
547 NAME's length.
548
549 * NEWS: Mention that the d10v's `regs' command is deprecated.
550 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
551 (d10v_print_registers_info): New function.
552 (show_regs): Call d10v_print_registers_info.
553 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
554
6a3fe0a4
MK
5552003-02-02 Mark Kettenis <kettenis@gnu.org>
556
557 * stack.c (print_frame_info): Restore call to annotate_frame_begin
558 lost in the previous patch.
559
075559bc
AC
5602003-02-01 Andrew Cagney <ac131313@redhat.com>
561
562 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
563 * stack.c (print_frame_info_base): Output complete FRAME tuple
564 for synthesized frames.
565
6789195b
AC
5662003-02-02 Andrew Cagney <ac131313@redhat.com>
567
568 * mips-nat.c (zerobuf): Delete.
569 (fetch_inferior_registers): Alloc local zerobuf.
570 (fetch_core_registers): Alloc local zerobuf.
571 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
572 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
573 * thread-db.c (thread_db_store_registers): Ditto.
574 * sh-tdep.c (sh_do_register): Ditto.
575 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
576 * remote-sim.c (gdbsim_store_register): Ditto.
577 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
578 * remote-e7000.c (fetch_regs_from_dump): Ditto.
579 * monitor.c (monitor_supply_register): Ditto.
580 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
581 * mips-nat.c (fetch_inferior_registers): Ditto.
582 * m68klinux-nat.c (fetch_register): Ditto.
583 * lynx-nat.c (fetch_inferior_registers): Ditto.
584 (fetch_inferior_registers): Ditto.
585 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
586 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
587 (hpux_thread_store_registers): Ditto.
588 * hppah-nat.c (fetch_register): Ditto.
589 * hppab-nat.c (fetch_register): Ditto.
590 * hppa-tdep.c (pa_register_look_aside): Ditto.
591 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
592 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
593
e669114a
AC
5942003-02-01 Andrew Cagney <ac131313@redhat.com>
595
596 * gdbarch.sh: Explictly specify all method levels. When a
597 variable with an empty level, provide a non-multi-arch default.
598 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
599 * gdbarch.h: Re-generate.
600 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
601 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
602
9a043c1d
AC
6032003-02-01 Andrew Cagney <ac131313@redhat.com>
604
605 * defs.h (host_pointer_to_address): Delete declaration.
606 (address_to_host_pointer): Delete declaration.
607 * utils.c (host_pointer_to_address): Delete function.
608 (address_to_host_pointer): Delete function.
609 * procfs.c (procfs_address_to_host_pointer): New function.
610 * procfs.c (proc_set_watchpoint): Use.
611 (procfs_can_use_hw_breakpoint): Update comments.
612 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
613 (som_solib_add): Use.
614 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
615 * hppa-tdep.c (unwind_command): Use.
616
7ca9f392
AC
6172003-02-01 Andrew Cagney <ac131313@redhat.com>
618
94bbfd30
AC
619 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
620 strlen d_name.
621
7ca9f392
AC
622 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
623 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
624 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
625 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
626 (define_symbol): Update.
627 * symfile.c (generic_load): Remove references to nindy.
628 * symtab.c: Remove references to nindy.
629
31a85ea2
AC
6302003-02-01 Andrew Cagney <ac131313@redhat.com>
631
632 * infcmd.c (print_float_info): Delete code conditional on
633 FLOAT_INFO.
634 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
635 * config/m68k/nm-apollo68b.h: Ditto.
636 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
637 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
638 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
639
f6e85fc8
MK
6402003-02-01 Mark Kettenis <kettenis@gnu.org>
641
6015b6a0
MK
642 * config/i386/tm-i386os9k.h: Removed.
643
f7a30bdf
MK
644 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
645 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
646 they're identical to i[3456]86-*-sysv* now.
647 * config/i386/i386v32.mh: Removed.
648 * config/i386/xm-i386v32.h: Removed.
649 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
650
28d52111
MK
651 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
652
4d3f6bce
MK
653 * config/i386/i386dgux.mh: Removed.
654 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
655
f6e85fc8
MK
656 * configure.in: Fix typo.
657 * configure: Regenerated.
658
53955967
DC
6592003-01-31 David Carlton <carlton@math.stanford.edu>
660
661 * dwarf2read.c (dwarf2_locate_sections): Set
662 dwarf_ranges_section.
663
b1364885
AC
6642003-01-31 Andrew Cagney <ac131313@redhat.com>
665
8dbb1c65
AC
666 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
667 * utils.c: Update comments documenting legitimate uses of PTR.
668
8731e58e
AC
669 * utils.c: Re-indent.
670
b1364885
AC
671 * config/djgpp/fnchange.lst: Delete nindy files.
672 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
673 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
674 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
675 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
676 * nindy-share/README, nindy-share/Onindy.c: Delete files.
677 * nindy-tdep.c, nindy-share/Makefile: Delete files.
678 * Makefile.in (init.c): Remove nindy references.
679 (saber_gdb): Delete rule.
680 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
681 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
682 and a68v-nat.c.
683 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
684 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
685 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
686 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
687 nindy-share/stop.h.
688 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
689 * saber.suppress: Delete file.
690
086df311
DJ
6912003-01-31 Daniel Jacobowitz <drow@mvista.com>
692
693 * dbxread.c (stabs_data): New static variable.
694 (fill_symbuf): Support an in-memory buffer for stabs data.
695 (stabs_seek): New function.
696 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
697 (read_ofile_symtab): Use stabs_seek.
698 (elfstab_build_psymtabs): Take an asection* instead of
699 an offset and size. Relocate the stabs data if necessary.
700 Save the section* for dbx_psymtab_to_symtab.
701 * dwarf2read.c: Add section variables for each debug section.
702 (dwarf2_locate_sections): Fill them in.
703 (dwarf2_read_section): Take an asection* argument.
704 Relocate the section contents if necessary.
705 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
706 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
707 it to dwarf2_read_section.
708 (dwarf2_build_frame_info): Update callers.
709 * elfread.c (elf_symfile_read): Update call to
710 elfstab_build_psymtabs.
711 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
712 (DBX_STAB_SECTION): New macro.
713 * stabsread.h (elfstab_build_psymtabs): Update prototype.
714 * symfile.c (symfile_dummy_outputs): New function.
715 (symfile_relocate_debug_section): New function.
716 * symfile.h (symfile_relocate_debug_section): Add prototype.
717
87d1b352
RH
7182003-01-31 Richard Henderson <rth@redhat.com>
719
720 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
721 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
722 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
723 * alpha-tdep.c (alpha_register_name): Add "unique".
724 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
725 (ALPHA_UNIQUE_REGNUM): New.
726 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
727
c48861fb
AC
7282003-01-31 Andrew Cagney <ac131313@redhat.com>
729
730 * README: Remove reference to Ericsson 1800 monitor.
731 * Makefile.in (remote-es.o): Delete rule.
732 (ALLDEPFILES): Delete remote-es.c.
733 * remote-es.c: Delete file.
734 * config/m68k/es1800.mt: Delete file.
735 * config/djgpp/fnchange.lst: Update.
736 * configure.tgt: Delete m68*-ericsson-* target.
737
d764a824
AF
7382003-01-31 Adam Fedor <fedor@gnu.org>
739
740 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
741 Remove duplicate/shadowing variable of same name.
742
fe36c4f4
JB
7432003-01-30 Jim Blandy <jimb@redhat.com>
744
745 * symfile.c (find_separate_debug_file): Assert that the objfile's
746 directory name we compute ends with a slash, and then assume that
747 that's so everywhere we use it.
748
cb741690
DJ
7492003-01-30 Daniel Jacobowitz <drow@mvista.com>
750
751 * valops.c (value_assign): Flush frame cache after stores to memory
752 also.
753
96ee5227
AC
7542003-01-30 Andrew Cagney <ac131313@redhat.com>
755
756 * Makefile.in (mon960-rom.o): Delete rule.
757 * mon960-rom.c: Delete file.
758
7f6104a9
AC
7592003-01-30 Andrew Cagney <ac131313@redhat.com>
760
761 * d10v-tdep.c: Include "frame-unwind.h".
762 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
763 list.
764 (next_addr, uses_frame): Delete.
765 (struct d10v_unwind_cache): Define.
766 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
767 Use info instead of next_addr and uses_frame globals.
768 (d10v_frame_init_saved_regs): Delete function.
769 (d10v_init_extra_frame_info): Delete function.
770 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
771 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
772 init_frame_pc or frame_saved_pc.
773 (d10v_pop_frame): Delete function.
774 (do_d10v_pop_frame): Delete function.
775 (d10v_frame_chain): Delete function.
776 (d10v_frame_chain_valid): Delete function.
777 (d10v_frame_pc_unwind): New function.
778 (d10v_frame_id_unwind): New function.
779 (saved_regs_unwinder): New function.
780 (d10v_frame_register_unwind): New function.
781 (d10v_frame_pop): New function.
782 (d10v_frame_unwind): New variable.
783 (d10v_frame_p): New function.
784 (d10v_frame_saved_pc): Delete function.
785 * Makefile.in (d10v-tdep.o): Update dependencies.
786
cad2e848
JB
7872003-01-30 J. Brobecker <brobecker@gnat.com>
788
789 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
790 causing some regressions due to a change in the default value
791 for this macro.
792
af34e669
DJ
7932003-01-29 Richard Henderson <rth@redhat.com>
794 Elena Zannoni <ezannoni@redhat.com>
795 Daniel Jacobowitz <drow@mvista.com>
796
797 Fix PR gdb/961.
798 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
799 variables.
800 (RANGES_SECTION): New.
801 (dwarf_ranges_buffer): New variable.
802 (struct comp_unit_head): Add member "die".
803 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
804 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
805 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
806 (dwarf2_locate_sections): Likewise.
807 (dwarf2_build_psymtabs): Read .debug_ranges.
808 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
809 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
810 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
811 Look for DW_AT_ranges and return the bounding box.
812
baa93fa6
CF
8132003-01-29 Brian Ford <ford@vss.fsi.com>
814
815 * win32-nat.c (cygwin_pid): Removed as unused.
816 (child_attach): Try fall back to Cygwin pid.
817
c63f977f
JB
8182003-01-29 Jim Blandy <jimb@redhat.com>
819
820 * objfiles.h (struct objfile): Doc fix.
821
d62d1979
AC
8222003-01-29 Andrew Cagney <ac131313@redhat.com>
823
824 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
825 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
826 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
827 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
828 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
829 (FRAME_SAVED_PC): Change to a function with predicate.
830 * gdbarch.h, gdbarch.c: Re-generate.
831
1ae18a04
AC
8322003-01-28 Andrew Cagney <ac131313@redhat.com>
833
52287340
AC
834 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
835
1ae18a04
AC
836 * complaints.c (complain): Delete function.
837 * complaints.h (struct deprecated_complaint): Delete definition.
838 (complain): Delete declaration.
839
f2c16bd6
KB
8402003-01-28 Kevin Buettner <kevinb@redhat.com>
841
842 * mips-tdep.c (mips_init_extra_frame_info): Return early for
843 dummy frames.
844
a94dd1fd
AC
8452003-01-27 Andrew Cagney <ac131313@redhat.com>
846
847 * sentinel-frame.h, sentinel-frame.c: New files.
848 * Makefile.in (frame.o): Update dependencies.
849 (SFILES): Add sentinel-frame.c.
850 (sentinel_frame_h): Define.
851 (COMMON_OBS): Add sentinel-frame.o.
852 (sentinel-frame.o): Specify dependencies.
853 * frame.c: Include "sentinel-frame.h".
854 (frame_register_unwind): Rewrite assuming that there is always a a
855 ->next frame.
856 (frame_register, generic_unwind_get_saved_register): Ditto.
857 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
858 (create_sentinel_frame, unwind_to_current_frame): New functions.
859 (get_current_frame): Rewrite using create_sentinel_frame and
860 unwind_to_current_frame. When possible, always create a frame.
861 (create_new_frame): Set next to the sentinel frame.
862 (get_next_frame): Rewrite. Don't go below the level 0 frame.
863 (deprecated_update_frame_pc_hack): Update the next frame's PC and
864 ID cache when necessary.
865 (frame_saved_regs_id_unwind): Use frame_relative_level.
866 (deprecated_generic_get_saved_register): Use frame_relative_level,
867 get_frame_saved_regs, get_frame_pc, get_frame_base and
868 get_next_frame.
869 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
870 frame_register.
871
5378adc4
DJ
8722003-01-27 Daniel Jacobowitz <drow@mvista.com>
873
874 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
875
51ee2ddc
DJ
8762003-01-27 Daniel Jacobowitz <drow@mvista.com>
877
878 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
879 (maintenance_set_profile_cmd): Use error () instead of warning ().
880
d9feb4e7
DJ
8812003-01-27 Daniel Jacobowitz <drow@mvista.com>
882
883 * configure.in: Check that -pg works if using --enable-profiling.
884 Check for monstartup and _mcleanup regardless of --enable-profiling.
885 * maint.c: Check for monstartup and _mcleanup before using them.
886 * config.in: Regenerated.
887 * configure: Regenerated.
888
2d188dd3
NC
8892003-01-24 Nick Clifton <nickc@redhat.com>
890
891 * Add sh2e support:
892
893 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
894
895 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
896 (sh2e_show_regs): New.
897 (sh_gdbarch_init): Handle bfd_mach_sh2e.
898 * config/sh/tm-sh.h: Added sh2e to comments.
899
cb3c37b2
JB
9002003-01-23 Jim Blandy <jimb@redhat.com>
901
902 * symfile.c (syms_from_objfile): Don't print the "(no debugging
903 symbols found)" message here; we haven't checked for a separate
904 debug info file yet, so we don't know yet.
905 (symbol_file_add_with_addrs_or_offsets): Print it here, after
906 we've looked everywhere. Also, there's no need to print a special
907 message when we're loading the separate debug info file: the one
908 symbol_file_add prints is fine.
909
5b5d99cf
JB
9102003-01-23 Alexander Larsson <alexl@redhat.com>
911 Jim Blandy <jimb@redhat.com>
912
913 Add support for executables whose debug info has been separated
914 out into a separate file, leaving only a link behind.
915 * objfiles.h (struct objfile): New fields: separate_debug_objfile
916 and separate_debug_objfile_backlink.
917 (put_objfile_before): New declaration.
918 * symfile.c: #include "filenames.h".
919 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
920 debug info in a separate file, read that, too. Save the addrs
921 argument, so we can use it again to read the separated debug info;
922 syms_from_objfile modifies the table we pass it.
923 (reread_symbols): After re-reading an objfile, call
924 reread_separate_symbols to refresh its separate debug info
925 objfile, if it has one.
926 (reread_separate_symbols, find_separate_debug_file,
927 get_debug_link_info, separate_debug_file_exists): New functions.
928 (debug_file_directory): New global var.
929 (_initialize_symfile): Initialize debug_file_directory, and
930 provide the new `set debug-file-directory' command to let the user
931 change it.
932 * objfiles.c (free_objfile): If this objfile has its debug info in
933 a separate objfile, free that one too. If this is itself a
934 separate debug info objfile, clear our parent's backlink.
935 (put_objfile_before): New function.
936 * utils.c (gnu_debuglink_crc32): New function.
937 * defs.h (gnu_debuglink_crc32): New declaration.
938 * Makefile.in (symfile.o): Note dependency on "filenames.h".
939 * configure.in: Handle --with-separate-debug-dir config option.
940 * acinclude.m4 (AC_DEFINE_DIR): New macro.
941 * acconfig.h (DEBUGDIR): New macro.
942 * configure, aclocal.m4, config.in: Regenerated.
943
7e8580c1
JB
9442003-01-22 Jim Blandy <jimb@redhat.com>
945
7904e09f
JB
946 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
947 like the old symbol_file_add, but taking new arguments: you can
948 now pass in either a `struct section_addr_info' list to say where
949 each section is loaded, or a `struct section_offsets' table. Pass
950 these new arguments through to syms_from_objfile as appropriate.
951 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
952 with the appropriate quiescent values for the new arguments.
953
7e8580c1
JB
954 * symfile.c: #include "gdb_assert.h".
955 (syms_from_objfile): Add the ability to pass in a section offset
956 table directly, as an alternative to the section_addr_info table.
957 Document arguments better.
958 (symbol_file_add): Pass extra arguments to syms_from_objfile.
959 * symfile.h (syms_from_objfile): Update declaration.
960 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
961 syms_from_objfile.
962 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
963
d28f9cdf
DJ
9642003-01-22 Daniel Jacobowitz <drow@mvista.com>
965
966 Original patch by Tom Tromey <tromey@cygnus.com> and
967 Jason Molenda <jmolenda@apple.com>.
968 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
969 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
970 * NEWS: Mention profiling.
971 * configure.in (--enable-gdbtk): Fix typo.
972 (--enable-profiling): New. Set PROFILE_CFLAGS.
973 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
974 Fill in function.
975 (profiling_state): New variable.
976 (mcleanup_wrapper): New function.
977 (_initialize_maint): Remove NOTYET, fix call to
978 add_setshow_boolean_cmd for "maint set profile".
979 * configure: Regenerated.
980
df21e465
MH
9812003-01-21 Martin M. Hunt <hunt@redhat.com>
982
983 * Makefile.in (install-gdbtk): Install PNG images too.
984
73c1f219
AC
9852003-01-21 Andrew Cagney <ac131313@redhat.com>
986
987 * exec.c (text_start): Delete global variable.
988 (exec_file_attach): Make text_start local to the function.
989 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
990 * valops.c (hand_function_call): Delete code that handles
991 BEFORE_TEXT_END and AFTER_TEXT_END.
992 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
993 of CALL_DUMMY_LOCATION.
994 * gdbarch.c: Regenerate.
995 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
996 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
997 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
998 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
999 (text_end): Delete extern declaration.
1000
eb4f72c5
AC
10012003-01-21 Andrew Cagney <ac131313@redhat.com>
1002
1003 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
1004 * blockframe.c (backtrace_below_main): Move to "frame.c".
1005 (frame_chain_valid): Delete check for backtrace_below_main.
1006 (_initialize_blockframe): Delete initialization, move ``set
1007 backtrace-below-main'' command to "frame.c".
1008 (do_flush_frames_sfunc): Delete function.
1009 * frame.c: Include "command.h" and "gdbcmd.h".
1010 (frame_type_from_pc): New function.
1011 (create_new_frame): Use frame_type_from_pc.
1012 (legacy_get_prev_frame): New function.
1013 (get_prev_frame): Rewrite. When an old style frame, call
1014 legacy_get_prev_frame. Otherwize, unwind the PC first.
1015 (_initialize_frame): Add ``set backtrace-below-main'' command.
1016 * Makefile.in (frame.o): Update dependencies.
1017
778ce8cc
AC
10182003-01-19 Andrew Cagney <ac131313@redhat.com>
1019
1020 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
1021 DEPRECATED_REGISTERS_INFO.
1022
01c193c8
AC
10232003-01-19 Andrew Cagney <ac131313@redhat.com>
1024
1025 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
1026 Maintainers'. Update `Various Maintainers'.
1027
dedc2a2b
AC
10282003-01-19 Andrew Cagney <ac131313@redhat.com>
1029
1030 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
1031 * gdbarch.sh (POP_FRAME): Change to function with predicate.
1032 Suppress actual parameters when `-'.
1033 * gdbarch.h, gdbarch.c: Regenerate.
1034
b7261c70
AC
10352003-01-19 Andrew Cagney <ac131313@redhat.com>
1036
1037 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
1038 code handling dummy frames.
1039
dbe9fe58
AC
10402003-01-19 Andrew Cagney <ac131313@redhat.com>
1041
1042 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
1043 (struct frame_unwind): Add field pop.
1044 * frame.h (frame_pop): Declare.
1045 * frame.c (frame_saved_regs_pop): New function.
1046 (trad_frame_unwinder): Add frame_saved_regs_pop.
1047 (frame_pop): New function.
1048 * dummy-frame.c (dummy_frame_pop): New function.
1049 (discard_innermost_dummy): New function.
1050 (generic_pop_dummy_frame): Use discard_innermost_dummy.
1051 (dummy_frame_unwind): Add dummy_frame_pop.
1052 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
1053 * valops.c (hand_function_call): Ditto.
1054 * stack.c (return_command): Ditto.
1055
570b8f7c
AC
10562003-01-18 Andrew Cagney <ac131313@redhat.com>
1057
1058 * cris-tdep.c: Fix function declaration indentation.
1059 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
1060 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
1061 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
1062 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
1063 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
1064 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
1065
10662003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
1067
1068 * README (Unpacking and Installation -- quick overview):
1069 Warn against ".../gdb-5.3/gdb/configure".
1070
494cca16
AC
10712003-01-18 Andrew Cagney <ac131313@redhat.com>
1072
1073 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
1074 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
1075 (struct frame_unwind): Declare opaque.
1076 (dummy_frame_p): Declare function.
1077 * dummy-frame.c (dummy_frame_id_unwind): Make static.
1078 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
1079 * dummy-frame.c: Include "frame-unwind.h".
1080 (dummy_frame_p): New function.
1081 (dummy_frame_unwind): New variable.
1082 * frame.c: Include "frame-unwind.h".
1083 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
1084 to use the new unwind field.
1085 (set_unwind_by_pc): Delete function.
1086 (create_new_frame, get_prev_frame): Set unwind field using
1087 frame_unwind_find_by_pc.
1088 (trad_frame_unwind, trad_frame_unwinder): New variables.
1089 * frame.h (trad_frame_unwind): Declare variable.
1090 (frame_id_unwind_ftype): Delete declaration.
1091 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
1092 (struct frame_unwind): Declare opaque.
1093 (struct frame_info): Replace the fields id_unwind, pc_unwind and
1094 register_unwind with a single unwind pointer.
1095 * frame-unwind.h, frame-unwind.c: New files.
1096 * Makefile.in (SFILES): Add frame-unwind.c.
1097 (frame_unwind_h): Define.
1098 (COMMON_OBS): Add frame-unwind.o.
1099 (frame-unwind.o): Specify dependencies.
1100 (frame.o, dummy-frame.o): Update dependencies.
1101
4efb68b1
AC
11022003-01-18 Andrew Cagney <ac131313@redhat.com>
1103
1104 * ada-valprint.c: Eliminate PTR.
1105 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
1106 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
1107 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
1108 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
1109 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
1110 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
1111 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
1112
a84d24ee
AC
11132003-01-17 Andrew Cagney <ac131313@redhat.com>
1114
762f08a3
AC
1115 * main.c (captured_main): Don't use PTR.
1116 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
1117 * gdbtypes.c (lookup_primitive_typename): Ditto.
1118 (lookup_struct_elt_type): Ditto.
1119 * f-valprint.c (info_common_command): Ditto.
1120 (list_all_visible_commons): Ditto.
1121 * jv-typeprint.c (java_type_print_base): Ditto.
1122
a84d24ee
AC
1123 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
1124 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
1125 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
1126 i386-interix-nat.c and i386-interix-tdep.c. Rename
1127 m68klinux-nat.c and m68klinux-tdep.c. Rename
1128 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
1129 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
1130 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
1131 * main.c (captured_main): Use xfree, not free.
1132
c170fb60
AC
11332003-01-16 Andrew Cagney <ac131313@redhat.com>
1134
1135 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
1136 ID back using a parameter.
1137 * frame.c (frame_id_unwind): Update call.
1138 (frame_saved_regs_id_unwind): Update.
1139 * dummy-frame.c (dummy_frame_id_unwind): Update function.
1140 * dummy-frame.h (struct frame_id): Add opaque declaration.
1141 (dummy_frame_id_unwind): Update declaration.
1142
867f3898
AC
11432003-01-15 Andrew Cagney <ac131313@redhat.com>
1144
1145 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
1146
40622be8 11472003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 1148
40622be8 1149 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 1150
ae66c1fc
EZ
11512003-01-14 Elena Zannoni <ezannoni@redhat.com>
1152
997b089a 1153 Fix PR gdb/898
ae66c1fc
EZ
1154 * breakpoint.c (until_break_command): Add new argument. Use it to
1155 decide whether to stop only at the current frame or not.
1156 * breakpoint.h (until_break_command): Update prototype.
1157 * infcmd.c (until_command): Add new argument to until_break_command
1158 call.
1159 (advance_command): New function.
1160 (_initialize_infcmd): Update help string for 'until' command.
1161 Add new 'advance' command.
1162
a04257e6
DC
11632003-01-14 David Carlton <carlton@math.stanford.edu>
1164
1165 * linespec.c (decode_line_1): Normalize comments.
1166 (set_flags): Ditto.
1167 (locate_first_half): Ditto.
1168 (decode_compound): Ditto.
1169 (symtab_from_filename): Ditto.
1170 (decode_all_digits): Ditto.
1171 (decode_dollar): Ditto.
1172 (find_methods): Ditto.
1173 (find_toplevel_char): Ditto.
1174
1bac305b
AC
11752003-01-13 Andrew Cagney <ac131313@redhat.com>
1176
1177 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
1178 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
1179 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
1180 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
1181 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
1182 * language.c, language.h, m32r-tdep.c: Update copyright.
1183 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
1184 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
1185 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
1186 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
1187 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
1188 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
1189
25caa7a8
EZ
11902003-01-13 Elena Zannoni <ezannoni@redhat.com>
1191
1192 * stabsread.h (process_later, resolve_cfront_continuation):
1193 Obsolete.
1194 Update copyright years.
1195 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
1196 Update copyright year.
1197 * dbxread.c(struct cont_elem): Obsolete.
1198 (process_later, process_now): Obsolete functions.
1199 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
1200 Update copyright year.
1201 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
1202 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
1203 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
1204 (parse_partial_symbols): Obsolete cfront support.
1205 * stabsread.c
1206 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
1207 macros.
1208 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
1209 read_cfront_baseclasses, read_cfront_member_functions,
1210 resolve_cfront_continuation,read_cfront_static_fields,
1211 copy_cfront_struct_fields): Obsolete functions.
1212 (define_symbol, read_one_struct_field): Obsolete cfront support.
1213 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
1214 Update Copyright year.
1215
7789c6f5
EZ
12162003-01-13 Elena Zannoni <ezannoni@redhat.com>
1217
1218 * stack.c (print_frame_info, print_stack_frame_base_stub,
1219 print_stack_frame_base, show_and_print_stack_frame_stub,
1220 show_and_print_stack_frame, print_only_stack_frame_stub,
1221 print_only_stack_frame): Delete functions.
1222 (print_stack_frame_stub): Call print_frame_info instead of
1223 print_frame_info_base.
1224 (print_frame_info_base): Rename to print_frame_info.
1225 (backtrace_command_1): Call print_frame_info, instead of
1226 print_frame_info_base.
1227 (current_frame_command): Call print_stack_frame, instead of
1228 print_only_stack_frame.
1229 (frame_command): Call print_stack_frame, instead of
1230 show_and_print_stack_frame.
1231 (up_command): Ditto.
1232 (down_command): Ditto.
1233 * frame.h (print_only_stack_frame): Delete prototype.
1234 * infrun.c (normal_stop): Call print_stack_frame, instead of
1235 show_and_print_stack_frame.
1236 * thread.c (info_threads_command): Call print_stack_frame, instead
1237 of print_only_stack_frame.
1238
3f5a3016
AC
12392003-01-13 Andrew Cagney <ac131313@redhat.com>
1240
d99ba314
AC
1241 * README (Graphical interface to GDB): Update URL. Point at
1242 gdb/links/.
1243
3f5a3016
AC
1244 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
1245 version match.
1246
083ae935
DJ
12472003-01-13 Daniel Jacobowitz <drow@mvista.com>
1248
1249 * symtab.c (find_pc_sect_line): Don't consider end-of-function
1250 lines.
1251
5365276c
DJ
12522003-01-13 Daniel Jacobowitz <drow@mvista.com>
1253
1254 * thread-db.c (attach_thread): Prototype.
1255 (struct private_thread_info): Remove lwpid. Add thread handle (th),
1256 thread information (ti), and valid flags (th_valid, ti_valid).
1257 (attach_thread): Move target_pid_to_str call to after the thread
1258 is added to GDB's list. Initialize the cache.
1259 (thread_get_info_callback, thread_db_map_id2thr)
1260 (thread_db_get_info): New functions.
1261 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
1262 (thread_db_store_registers, thread_db_thread_alive)
1263 (thread_db_get_thread_local_address): Use them.
1264 (thread_db_pid_to_str): Likewise. Return "Missing" instead
1265 of calling error() for threads in unknown state.
1266
1267 (clear_lwpid_callback): New function.
1268 (thread_db_resume): Use it to clear the cache.
1269
9fc30b6b
DJ
12702003-01-13 Daniel Jacobowitz <drow@mvista.com>
1271
1272 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
1273 (resume_callback): Remove dead code.
1274
8f871025
AC
12752003-01-13 Andrew Cagney <ac131313@redhat.com>
1276
1277 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
1278 predicate.
1279 * gdbarch.h, gdbarch.c: Regenerate.
1280 * stack.c (frame_info): Only initialize the saved registers when
1281 FRAME_INIT_SAVED_REGS_P.
1282 * frame.c (frame_saved_regs_register_unwind): Assert
1283 FRAME_INIT_SAVED_REGS_P.
1284 (deprecated_generic_get_saved_register): Ditto.
1285
3f565f1e
DJ
12862003-01-13 Daniel Jacobowitz <drow@mvista.com>
1287
1288 * source.c (openp): Squelch warning about "filename".
1289
072b1022
DJ
12902003-01-13 Daniel Jacobowitz <drow@mvista.com>
1291
1292 * source.c (openp): If the file does not exist don't necessarily
1293 search the path.
1294
973ccf8b
DJ
12952003-01-13 Daniel Jacobowitz <drow@mvista.com>
1296
1297 Fix PR gdb/872.
1298 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
1299 (integer_types_same_name_p): New function.
1300 (rank_one_type): Use it.
1301 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
1302
030292b7
DJ
13032003-01-13 Daniel Jacobowitz <drow@mvista.com>
1304
1305 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
1306 variables.
1307 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
1308 * configure.in: Add --with-sysroot.
1309 * configure: Regenerated.
1310 * main.c (gdb_sysroot): New variable.
1311 (captured_main): Initialize gdb_sysroot.
1312 * defs.h (gdb_sysroot): New extern declaration.
1313 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
1314
afb5d334
MC
13152003-01-12 Michael Chastain <mec@shout.net>
1316
1317 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
1318
751ceeb4
MC
13192003-01-12 Michael Chastain <mec@shout.net>
1320
1321 * top.c (print_gdb_version): Bump copyright year to 2003.
1322
94cd26f8
DC
13232003-01-12 David Carlton <carlton@bactrian.org>
1324
1325 * linespec.c (symtab_from_filename): Rename variable 's' to
1326 'file_symtab'.
1327
1ce79225
AC
13282003-01-12 Andrew Cagney <ac131313@redhat.com>
1329
1330 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
1331 dummy frame.
1332 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
1333
fa1fd571
AC
13342003-01-12 Andrew Cagney <ac131313@redhat.com>
1335
1336 * d10v-tdep.c: Include "gdb_assert.h".
1337 (d10v_store_return_value): Rewrite to match current interface.
1338 (d10v_extract_struct_value_address): Ditto.
1339 (d10v_extract_return_value): Ditto.
1340 (d10v_gdbarch_init): Set store_restore_value,
1341 extract_struct_value_address and extract_return_value.
1342
68b8d23e
JB
13432003-01-12 J. Brobecker <brobecker@gnat.com>
1344
1345 * hpread.c (set_namestring): New procedure replacing the
1346 SET_NAMESTRING macro.
1347 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
1348 by calls to set_namestring.
1349
13502003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
1351
1352 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
1353 a compilation warning.
1354 (hpread_process_one_debug_symbol): Likewise.
1355
88d262ca
DC
13562003-01-10 David Carlton <carlton@math.stanford.edu>
1357
1358 * linespec.c (decode_line_1): Rename variable 's' to
1359 'file_symtab'.
1360 (decode_all_digits): Rename argument 's' to 'file_symtab'.
1361 (decode_dollar): Ditto.
1362 (decode_variable): Ditto.
1363 (symbol_found): Ditto.
1364
86669319
MC
13652003-01-09 Michael Chastain <mec@shout.net>
1366
1367 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
1368
616a9dc4
CV
13692003-01-07 Corinna Vinschen <vinschen@redhat.com>
1370
1371 * win32-nat.c (set_process_privilege): New function.
1372 (child_attach): Call set_process_privilege() to enable the
1373 SE_DEBUG_NAME user privilege if available in process token.
1374
3269bcfa
JB
13752003-01-10 J. Brobecker <brobecker@gnat.com>
1376
1377 * hpread.c (hpread_process_one_debug_symbol): Fix a small
1378 compilation error in the previous revision.
1379
2b0ee454
DC
13802003-01-09 David Carlton <carlton@math.stanford.edu>
1381
1382 * linespec.c: Update copyright.
1383
b3ba1b44
DJ
13842003-01-09 Daniel Jacobowitz <drow@mvista.com>
1385
1386 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
1387 than inferior_ptid.
1388 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
1389
4ef3f3be
AC
13902003-01-09 Andrew Cagney <ac131313@redhat.com>
1391
479ab5a0
AC
1392 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
1393 Update comments.
1394 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
1395 (frame_saved_regs_zalloc): Update.
1396 (frame_saved_regs_register_unwind): Update.
1397 (create_new_frame): Update.
1398 (get_prev_frame): Update.
1399 (frame_extra_info_zalloc): Update.
1400 (deprecated_get_frame_saved_regs): Update.
1401 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
1402 * cris-tdep.c: Update comment.
1403
bde58177
AC
1404 * somsolib.h: Fix function indentation.
1405 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
1406 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
1407 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
1408 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
1409 * somsolib.c, inftarg.c: Remove assignment in if conditional.
1410
4ef3f3be
AC
1411 * infrun.c (follow_fork): Use ISO C definition.
1412 * expprint.c (print_subexp): Use xfree instead of free.
1413 * charset.c: Include "gdb_string.h" instead of <string.h>.
1414 (register_iconv_charsets): Use ISO C definition.
1415 (host_charset, target_charset): Ditto.
1416 * Makefile.in (charset.o): Update dependencies.
1417 (mi-cmd-env.o): Update dependencies.
1418
1c615f7a
AC
14192003-01-08 Andrew Cagney <cagney@redhat.com>
1420
1421 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
1422 get_frame_base.
1423
c9a1dc08
AC
14242003-01-08 Andrew Cagney <ac131313@redhat.com>
1425
1426 * gdb_mbuild.sh: Add --keep option. When specified, keep the
1427 build directories. Save edited gdb output in Mbuild.log. If a
1428 build fails, remove any final GDB executable.
1429
dbad9d94
AC
14302003-01-08 Andrew Cagney <ac131313@redhat.com>
1431
1432 * gdb_mbuild.sh: Edit the output of `maint print architecture'
1433 replacing hex constants with function names and stripping leading
1434 file name directory prefixes.
1435
8d357cca
AC
14362003-01-08 Andrew Cagney <cagney@redhat.com>
1437
1438 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
1439 get_frame_base.
1440
bca02a8a
DC
14412003-01-08 David Carlton <carlton@math.stanford.edu>
1442
1443 * linespec.c (decode_line_1): Move code into decode_variable.
1444 (decode_variable): New function.
1445
7f8ab3a0
AC
14462003-01-08 Andrew Cagney <ac131313@redhat.com>
1447
1448 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
1449
7b5849cc
AC
14502003-01-08 Andrew Cagney <cagney@redhat.com>
1451
1452 * cris-tdep.c (cris_frame_init_saved_regs): Use
1453 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
1454 saved_regs buffer.
1455 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
1456 (sh64_nofp_frame_init_saved_regs): Ditto.
1457 (sh_fp_frame_init_saved_regs): Ditto.
1458 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
1459 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
1460 * mcore-tdep.c (analyze_dummy_frame): Ditto.
1461 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
1462
72a5efb3
DJ
14632003-01-08 Daniel Jacobowitz <drow@mvista.com>
1464
1465 * minsyms.c (lookup_minimal_symbol): Update comment.
1466 (lookup_minimal_symbol_text): Update comment. Use the hash table.
1467 (lookup_minimal_symbol_solib_trampoline): Likewise.
1468
11c02a10
AC
14692003-01-08 Andrew Cagney <cagney@redhat.com>
1470
aab3ea25
AC
1471 * d10v-tdep.c (d10v_init_extra_frame_info): Use
1472 frame_relative_level.
1473
da50a4b7
AC
1474 * alpha-tdep.c: Use get_frame_extra_info.
1475 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1476 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
1477 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
1478 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
1479
11c02a10
AC
1480 * alpha-tdep.c: Use get_next_frame.
1481 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1482 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
1483 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
1484 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
1485 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
1486 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
1487 * xstormy16-tdep.c: Ditto.
1488
1e2330ba
AC
14892003-01-07 Andrew Cagney <cagney@redhat.com>
1490
1491 * alpha-tdep.c: Use get_frame_base.
1492 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1493 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
1494 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
1495 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
1496 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
1497 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
1498 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
1499 * config/sparc/tm-sparc.h: Ditto.
1500
2d75187b
AC
15012003-01-07 Andrew Cagney <cagney@redhat.com>
1502
1503 * frame.c (deprecated_get_frame_context): New function.
1504 (deprecated_set_frame_context): New function.
1505 * frame.h (deprecated_get_frame_context): Declare.
1506 (deprecated_set_frame_context): Declare.
1507 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
1508 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
1509
483d36b2
AC
15102003-01-07 Andrew Cagney <cagney@redhat.com>
1511
1512 * frame.c (deprecated_set_frame_next_hack): New function.
1513 (deprecated_set_frame_prev_hack): New function.
1514 * frame.h (deprecated_set_frame_next_hack): Declare.
1515 (deprecated_set_frame_prev_hack): Declare.
1516 * mcore-tdep.c (analyze_dummy_frame): Use
1517 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
1518 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
1519
14e91ac5
DC
15202003-01-07 David Carlton <carlton@math.stanford.edu>
1521
1522 * linespec.c (decode_line_1): Move code into decode_dollar.
1523 (decode_dollar): New function.
1524
b0c6b05c
AC
15252003-01-07 Andrew Cagney <cagney@redhat.com>
1526
1527 * arm-tdep.c (arm_init_extra_frame_info): Use
1528 deprecated_update_frame_base_hack.
1529 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
1530 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
1531 (fix_frame_pointer): Ditto.
1532 (mn10300_analyze_prologue): Ditto.
1533
a00a19e9
AC
15342003-01-07 Andrew Cagney <cagney@redhat.com>
1535
1536 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
1537 extra_info using frame_extra_info_zalloc.
1538 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
1539 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
1540 (sh64_init_extra_frame_info): Ditto.
1541 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
1542 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
1543 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
1544 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
1545 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
1546 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
1547 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
1548 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
1549 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
1550 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
1551 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
1552 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
1553
1554 * mn10300-tdep.c (analyze_dummy_frame): Use
1555 deprecated_set_frame_extra_info_hack.
1556 * mcore-tdep.c (analyze_dummy_frame): Ditto.
1557
1fb4c65b
JB
15582003-01-07 J. Brobecker <brobecker@gnat.com>
1559
1560 * mdebugread.c (parse_symbol): Skip stProc entries which storage
1561 class is not scText. These do not define "real" procedures.
1562 (parse_partial_symbols): Likewise.
1563
9fe7d6bf
MS
15642003-01-06 Michael Snyder <msnyder@redhat.com>
1565
1566 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
1567
f6c609c4
AC
15682003-01-06 Andrew Cagney <ac131313@redhat.com>
1569
1570 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
1571 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
1572 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
1573 deprecated_frame_xmalloc_with_cleanup.
1574 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
1575 deprecated_frame_xmalloc.
1576 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
1577 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
1578
d995ff4b
AC
15792003-01-06 Andrew Cagney <cagney@redhat.com>
1580
84dc46cb
AC
1581 * x86-64-linux-tdep.c: Include "osabi.h".
1582 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
1583
d995ff4b
AC
1584 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
1585
66140c26
AC
15862003-01-06 Andrew Cagney <cagney@redhat.com>
1587
1588 * MAINTAINERS (Target Instruction Set Architectures): Update
1589 arm-elf. Can be built with -Werror, has been multiarched.
1590
1591 * value.h (unpack_long): Make buffer parameter constant.
1592 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
1593 * scm-lang.h (scm_parse): Ditto.
1594 * defs.h (extract_typed_address, extract_address): Ditto.
1595 (extract_long_unsigned_integer): Ditto.
1596 * inferior.h (unsigned_pointer_to_address): Ditto.
1597 (signed_pointer_to_address): Ditto.
1598 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
1599 * gdbarch.h, gdbarch.c: Regenerate.
1600 * findvar.c (extract_long_unsigned_integer): Update.
1601 (extract_address): Update.
1602 (extract_typed_address): Update.
1603 (unsigned_pointer_to_address): Update.
1604 * values.c (unpack_long): Update.
1605 (unpack_double): Update.
1606 (unpack_pointer): Update.
1607 (unpack_field_as_long): Update.
1608 * d10v-tdep.c (d10v_pointer_to_address): Update.
1609 * avr-tdep.c (avr_pointer_to_address): Update.
1610 * scm-lang.c (scm_unpack): Update.
1611 * findvar.c (signed_pointer_to_address): Update.
1612
b089b3da
ML
16132003-01-06 Michal Ludvig <mludvig@suse.cz>
1614
1615 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
1616 since it is in i386-tdep.c.
1617
aff87235
JB
16182003-01-06 J. Brobecker <brobecker@gnat.com>
1619
1620 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
1621 failure introduced in the previous change.
1622
34f5e845
MC
16232003-01-05 Michael Chastain <mec@shout.net>
1624
1625 * README: Remove references to deleted remote-*.c files:
1626 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
1627 remote-nrom.c, remote-os9k.c, remote-udi.c.
1628
28bcfd30
MK
16292003-01-05 Mark Kettenis <kettenis@gnu.org>
1630
1631 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
1632 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
1633 i386_get_longjmp_target.
1634
15a5b3ee
AC
16352003-01-05 Andrew Cagney <ac131313@redhat.com>
1636
1637 * arm-tdep.c (prologue_cache): Change to a pointer.
1638 (_initialize_arm_tdep): Allocate prologue_cache.
1639 (check_prologue_cache): Update.
1640 (save_prologue_cache): Update.
1641 (arm_gdbarch_init): Update.
1642
c263362b
DJ
16432003-01-04 Daniel Jacobowitz <drow@mvista.com>
1644
1645 * stabsread.c (update_method_name_from_physname): Call complaint()
1646 instead of error.
1647
51603483
DJ
16482003-01-04 Daniel Jacobowitz <drow@mvista.com>
1649
1650 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
1651 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
1652 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
1653
1654 * blockframe.c: Include "gdbcmd.h" and "command.h".
1655 (backtrace_below_main): New variable.
1656 (file_frame_chain_valid, func_frame_chain_valid)
1657 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
1658 (generic_func_frame_chain_valid): Remove functions.
1659 (frame_chain_valid, do_flush_frames_sfunc): New functions.
1660 (_initialize_blockframe): New function.
1661 * Makefile.in (blockframe.o): Update dependencies.
1662 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
1663 comment. Call frame_chain_valid ().
1664 * frame.h: Remove old prototypes. Add prototype for
1665 frame_chain_valid and update comments to match.
1666 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
1667 Remove old comment.
1668 * gdbarch.h: Regenerated.
1669 * gdbarch.c: Regenerated.
1670
1671 * alpha-tdep.c (alpha_gdbarch_init): Don't call
1672 set_gdbarch_frame_chain_valid.
1673 * avr-tdep.c (avr_gdbarch_init): Likewise.
1674 * cris-tdep.c (cris_gdbarch_init): Likewise.
1675 * frv-tdep.c (frv_gdbarch_init): Likewise.
1676 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
1677 * i386-tdep.c (i386_svr4_init_abi): Likewise.
1678 (i386_nw_init_abi): Likewise.
1679 (i386_gdbarch_init): Likewise.
1680 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
1681 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
1682 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
1683 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1684 * mips-tdep.c (mips_gdbarch_init): Likewise.
1685 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1686 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
1687 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
1688 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1689 * s390-tdep.c (s390_gdbarch_init): Likewise.
1690 * sh-tdep.c (sh_gdbarch_init): Likewise.
1691 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1692 * v850-tdep.c (v850_gdbarch_init): Likewise.
1693 * vax-tdep.c (vax_gdbarch_init): Likewise.
1694 * x86-64-tdep.c (x86_64_init_abi): Likewise.
1695
1696 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
1697 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
1698 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
1699 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
1700 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
1701 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
1702 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
1703 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
1704
b00a8037
DJ
17052002-01-04 Daniel Jacobowitz <drow@mvista.com>
1706
1707 * Makefile.in (acconfig_h): Remove incorrect macro.
1708 (config_h): Define.
1709 (osabi.o): Update dependencies.
1710 * configure.tgt: Set gdb_osabi based on target triplet.
1711 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
1712 * configure: Regenerated.
1713 * config.in: Regenerated.
1714 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
1715 (GDB_OSABI_DEFAULT): Define if not already defined.
1716 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
1717 (set_osabi_string): New variables.
1718 (gdbarch_register_osabi): Add new OS ABI to
1719 gdb_osabi_available_names.
1720 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
1721 (set_osabi, show_osabi): New functions.
1722 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
1723
4be87837
DJ
17242003-01-04 Daniel Jacobowitz <drow@mvista.com>
1725
1726 * arch-utils.c (gdbarch_info_init): Set osabi to
1727 GDB_OSABI_UNINITIALIZED.
1728 * gdbarch.sh: Add osabi to struct gdbarch and to struct
1729 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
1730 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
1731 * gdbarch.c: Regenerated.
1732 * gdbarch.h: Regenerated.
1733 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
1734 there's no BFD.
1735 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
1736 * osabi.h (enum gdb_osabi): Move to defs.h.
1737 (gdbarch_init_osabi): Update prototype.
1738 * defs.h (enum gdb_osabi): Moved here.
1739 * Makefile.in: Update dependencies.
1740
1741 * alpha-tdep.h: Don't include "osabi.h".
1742 (struct gdbarch_tdep): Remove osabi member.
1743 * alpha-tdep.c: Include "osabi.h".
1744 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1745 iterate over arches. Update call to gdbarch_init_osabi.
1746 (alpha_dump_tdep): Don't dump osabi.
1747 * alpha-linux-tdep.c: Include "osabi.h".
1748 * alpha-osf1-tdep.c: Include "osabi.h".
1749 * alphafbsd-tdep.c: Include "osabi.h".
1750 * alphanbsd-tdep.c: Include "osabi.h".
1751
1752 * arm-tdep.h: Don't include "osabi.h".
1753 (struct gdbarch_tdep): Remove osabi member.
1754 * arm-tdep.c: Include "osabi.h".
1755 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1756 iterate over arches. Update call to gdbarch_init_osabi.
1757 (arm_dump_tdep): Don't dump osabi.
1758 * arm-linux-tdep.c: Include "osabi.h".
1759 * armnbsd-tdep.c: Include "osabi.h".
1760
1761 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
1762 Update call to gdbarch_init_osabi.
1763
1764 * i386-tdep.h: Don't include "osabi.h".
1765 (struct gdbarch_tdep): Remove osabi member.
1766 * i386-tdep.c: Include "osabi.h".
1767 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1768 iterate over arches. Update call to gdbarch_init_osabi.
1769 (i386_dump_tdep): Don't dump osabi.
1770 * i386-linux-tdep.c: Include "osabi.h".
1771 * i386-sol2-tdep.c: Include "osabi.h".
1772 * i386bsd-tdep.c: Include "osabi.h".
1773 * i386gnu-tdep.c: Include "osabi.h".
1774 * i386ly-tdep.c: Include "osabi.h".
1775 * i386nbsd-tdep.c: Include "osabi.h".
1776 * i386obsd-tdep.c: Include "osabi.h".
1777
1778 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
1779 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1780 check osabi when iterating over arches. Update call to
1781 gdbarch_init_osabi.
1782 (mips_dump_tdep): Don't dump osabi.
1783
1784 * ns32k-tdep.h: Don't include "osabi.h".
1785 (struct gdbarch_tdep): Remove.
1786 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
1787 gdbarch_lookup_osabi. Don't iterate over arches. Don't
1788 allocate tdep. Update call to gdbarch_init_osabi.
1789 (ns32k_dump_tdep): Remove.
1790 (_initialize_ns32k_tdep): Update call to gdbarch_register.
1791 * ns32knbsd-tdep.c: Include "osabi.h".
1792
1793 * ppc-tdep.h: Don't include "osabi.h".
1794 (struct gdbarch_tdep): Remove osabi member.
1795 * rs6000-tdep.c: Include "osabi.h".
1796 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
1797 osabi when iterating over arches. Update call to
1798 gdbarch_init_osabi.
1799 (rs6000_dump_tdep): Don't dump osabi.
1800 * ppc-linux-tdep.c: Include "osabi.h".
1801 * ppcnbsd-tdep.c: Include "osabi.h".
1802
1803 * sh-tdep.h: Don't include "osabi.h".
1804 (struct gdbarch_tdep): Remove osabi member.
1805 * sh-tdep.c: Include "osabi.h".
1806 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1807 iterate over arches. Update call to gdbarch_init_osabi.
1808 (sh_dump_tdep): Don't dump osabi.
1809 * shnbsd-tdep.c: Include "osabi.h".
1810
1811 * sparc-tdep.c: Include "osabi.h".
1812 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1813 iterate over arches. Update call to gdbarch_init_osabi.
1814 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
1815 tdep structure.
1816
1817 * vax-tdep.h: Don't include "osabi.h".
1818 (struct gdbarch_tdep): Remove.
1819 * vax-tdep.c: Include "osabi.h".
1820 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1821 iterate over arches. Don't allocate tdep. Update call
1822 to gdbarch_init_osabi.
1823 (vax_dump_tdep): Remove.
1824 (_initialize_vax_tdep): Update call to gdbarch_register.
1825
a881cf8e
DJ
18262003-01-04 Daniel Jacobowitz <drow@mvista.com>
1827
1828 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
1829 entirely.
1830 (breakpoint_re_set_one): Don't fetch the value for a disabled
1831 watchpoint.
1832
1e698235
DJ
18332003-01-04 Daniel Jacobowitz <drow@mvista.com>
1834
1835 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
1836 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
1837 (COERCE_FLOAT_TO_DOUBLE): Remove.
1838 * gdbarch.c: Regenerate.
1839 * gdbarch.h: Regenerate.
1840 * Makefile.in: Remove value_h from gdbarch_h.
1841 * valops.c (coerce_float_to_double): New variable.
1842 (default_coerce_float_to_double): Remove.
1843 (standard_coerce_float_to_double): Remove.
1844 (value_arg_coerce): Use coerce_float_to_double.
1845 (_initialize_valops): Add "set coerce-float-to-double".
1846 * value.h (default_coerce_float_to_double): Remove prototype.
1847 (standard_coerce_float_to_double): Remove prototype.
1848
1849 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
1850 prototyped.
1851 * mdebugread.c (parse_symbol): Likewise.
1852 * stabsread.c (define_symbol): Mark all functions as prototyped.
1853
1854 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
1855 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
1856 set_gdbarch_coerce_float_to_double.
1857 * arm-tdep.c (arm_gdbarch_init): Likewise.
1858 * frv-tdep.c (frv_gdbarch_init): Likewise.
1859 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
1860 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
1861 * mips-tdep.c (mips_gdbarch_init): Likewise.
1862 (mips_coerce_float_to_double): Remove.
1863 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1864 (rs6000_coerce_float_to_double): Remove.
1865 * s390-tdep.c (s390_gdbarch_init): Likewise.
1866 * sh-tdep.c (sh_gdbarch_init): Likewise.
1867 (sh_coerce_float_to_double): Remove.
1868 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1869 (sparc_coerce_float_to_double): Remove.
1870 * v850-tdep.c (v850_gdbarch_init): Likewise.
1871 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
1872 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1873 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
1874 (hppa_coerce_float_to_double): Remove prototype.
1875 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1876
f436a26a
DJ
18772003-01-04 Daniel Jacobowitz <drow@mvista.com>
1878
1879 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
1880
248f8055
DJ
18812003-01-04 Daniel Jacobowitz <drow@mvista.com>
1882
1883 Suggested by Stewart Brown <sb24@avaya.com>:
1884 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
1885 in recursive calls. Handle TYPE_CODE_TYPEDEF.
1886 (c_type_print_varspec_suffix): Likewise.
1887
72cfdc76
MK
18882003-01-04 Mark Kettenis <kettenis@gnu.org>
1889
bfd260bb
MK
1890 * configure.in: Don't set and AC_SUBST SUBDIRS.
1891 * configure: Regenerated.
1892
72cfdc76
MK
1893 * configure.in: Remove code dealing with shared libraries.
1894 * Makefile.in: Remove HLDFLAGS and HLDENV.
1895 * configure: Regenerated.
1896
c8b8a898
AC
18972003-01-04 Andrew Cagney <ac131313@redhat.com>
1898
1899 * frame.c (deprecated_frame_xmalloc): New function.
1900 (deprecated_set_frame_saved_regs_hack): New function.
1901 (deprecated_set_frame_extra_info_hack): New function.
1902 * frame.h (deprecated_frame_xmalloc): Declare.
1903 (deprecated_set_frame_saved_regs_hack): Declare.
1904 (deprecated_set_frame_extra_info_hack): Declare.
1905
14abd0fb
MK
19062003-01-04 Mark Kettenis <kettenis@gnu.org>
1907
8ee53726
MK
1908 * configure.in: Move code that provides the --enable-gdbtk option
1909 right after the code that handles the --enable-tui option, and
1910 polish it somewhat.
1911 * configure: Regenerated.
1912
14abd0fb
MK
1913 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
1914 AC_CHECK_FUNCS and remove the old check for pread64.
1915 * acinclude.m4 (AC_GNU_SOURCE): New macro.
1916 * acconfig.h (_GNU_SOURCE): Add.
1917 (HAVE_PREAD64): Remove.
1918 * configure, aclocal.m4, config.in: Regenerated.
1919
b2fb4676
AC
19202003-01-03 Andrew Cagney <ac131313@redhat.com>
1921
1922 * alpha-tdep.c: Use get_frame_saved_regs.
1923 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1924 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
1925 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
1926 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
1927 * vax-tdep.c, xstormy16-tdep.c: Ditto.
1928
8dcde887
MK
19292003-01-03 Mark Kettenis <kettenis@gnu.org>
1930
1931 * configure.in: Remove all use of the SUBDIRS variable; add
1932 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
1933 code providing the --enable-multi-ice option, and move it right in
1934 front of the code that checks whether gdbserver is supported.
1935 Polish that too.
1936 * configure: Regenerated.
1937 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
1938 @SUBDIRS@.
1939
8ccd593b
AC
19402003-01-03 Andrew Cagney <cagney@redhat.com>
1941
1942 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
1943 * avr-tdep.c, cris-tdep.c: Ditto.
1944 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
1945 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
1946
91151a06
MK
19472003-01-03 Mark Kettenis <kettenis@gnu.org>
1948
1949 * configure.in: Remove --enable-netrom option.
1950 * configure: Regenerated.
1951
8fe84d01
MK
19522003-01-03 Mark Kettenis <kettenis@gnu.org>
1953
1954 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
1955 declaration for `struct re_pattern_buffer' instead.
1956 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
1957
f0394be6
JB
19582003-01-03 J. Brobecker <brobecker@gnat.com>
1959
1960 * mdebugread.c (parse_symbol): Count until the stEnd matching
1961 the structure name.
1962
27e9bf90
MK
19632003-01-02 Mark Kettenis <kettenis@gnu.org>
1964
93d331ba
MK
1965 * configure.in: Remove --with-cpu option.
1966 subscripts. Remove evil changequotes here.
1967 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
1968 * config.in, configure: Regenerated.
1969
27e9bf90
MK
1970 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
1971 * configure.in: Cleanup section that sources GDB and BFD configure
1972 subscripts. Remove evil changequotes here.
1973 * config.in, configure: Regenerated.
1974
50abf9e5
AC
19752003-01-02 Andrew Cagney <ac131313@redhat.com>
1976
1977 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
1978 frame accessor methods.
1979 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1980 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
1981 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1982 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
1983 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
1984 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
1985 * z8k-tdep.c: Ditto.
1986
287c1a40
MK
19872003-01-02 Mark Kettenis <kettenis@gnu.org>
1988
f5dbc56d
MK
1989 * configure.in: Remove UI_OUT configuration code.
1990 * ada-lang.c: Update assuming UI_OUT is always true.
1991 * Makefile.in (UIOUT_CFLAGS): Remove.
1992 * configure: Regenerated.
1993 * TODO: Remove blurb about elimination of -DUI_OUT.
1994
627af7ea
MK
1995 * configure.in: Move code that provides the --enable-gdbcli,
1996 --enable-gdbmi options right before the code that handles the
1997 --enable-tui option. Polish a bit.
1998 * configure: Regenerated.
1999
06825bd1
MK
2000 * configure.in: Rewrite check for GNU regex and the
2001 --without-included regex option, and move it into the "Checks for
2002 library functions" section. This makes us use the system regex
2003 again by default on systems with version 2 of the GNU C library.
2004 This was apparently broken.
2005 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
2006 * acconfig.h (USE_INCLUDED_REGEX): Remove.
2007 * config.in, configure: Regenerated.
2008
287c1a40
MK
2009 * configure.in: Move code that provides the --enable-tui option
2010 before the "Checks for libraries" section. Polish the code
2011 somewhat and set need_curses to yes if we build the TUI. Rewrite
2012 code that looks for a library providing termcap functionality to
2013 match more closely what's done in the Readline library, and move
2014 it into to the "Checks for libraries" section.
2015 * configure: Regenerated.
2016 * Makefile.in (TERMCAP): Remove variable.
2017 * config/i386/go32.mh (TERMCAP): Remove variable.
2018
684e56bf
AC
20192003-01-02 Andrew Cagney <ac131313@redhat.com>
2020
2021 * MAINTAINERS: Mention gdb_mbuild.sh.
2022 * gdb_mbuild.sh: Rewrite.
2023
e1ea1d75
MK
20242003-01-02 Mark Kettenis <kettenis@gnu.org>
2025
2026 * configure.in: Fix typo in last change.
2027 * config.in, configure: Regenerated.
2028
1b831c93
AC
20292003-01-02 Andrew Cagney <ac131313@redhat.com>
2030
2031 * valarith.c (value_binop): Delete obsolete code and comments.
2032 * configure.host: Ditto.
2033 * buildsym.h (make_blockvector): Ditto.
2034 * buildsym.c (make_blockvector): Ditto.
2035 * defs.h (enum language): Ditto.
2036 (chill_demangle): Ditto.
2037 * elfread.c (elf_symtab_read): Ditto.
2038 * dwarfread.c (CHILL_PRODUCER): Ditto.
2039 (set_cu_language): Ditto.
2040 (handle_producer): Ditto.
2041 * expprint.c (print_subexp): Ditto.
2042 * gdbtypes.c (chill_varying_type): Ditto.
2043 * gdbtypes.h (builtin_type_chill_bool): Ditto.
2044 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
2045 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
2046 (chill_varying_type): Ditto.
2047 * language.h (_LANG_chill): Ditto.
2048 * language.c (binop_result_type, integral_type): Ditto.
2049 (character_type, string_type, structured_type): Ditto.
2050 (lang_bool_type, binop_type_check): Ditto.
2051 * stabsread.h (os9k_stabs): Ditto.
2052 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
2053 (define_symbol, read_type, read_struct_fields): Ditto.
2054 (read_array_type, read_enum_type, read_huge_number): Ditto.
2055 (read_range_type, start_stabs): Ditto.
2056 * symfile.c (init_filename_language_table): Ditto.
2057 (add_psymbol_with_dem_name_to_list): Ditto.
2058 * symtab.c (symbol_init_language_specific): Ditto.
2059 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
2060 * symtab.h (struct general_symbol_info): Ditto.
2061 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2062 * typeprint.c (typedef_print): Ditto.
2063 * utils.c (fprintf_symbol_filtered): Ditto.
2064 * valops.c (value_cast, search_struct_field, value_slice): Delete
2065 obsolete code.
2066 (varying_to_slice): Delete function.
2067 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
2068 (varying_to_slice): Delete declaration.
2069 * MAINTAINERS: Update.
2070
8bb2c122
MK
20712003-01-02 Mark Kettenis <kettenis@gnu.org>
2072
97bf5e38
MK
2073 * configure.in: Reorganize "Checks for library functions section"
2074 a bit. Remove check for `btowc' and `isascii' functions.
2075 * configure: Regenerated.
2076
5ee754fc
MK
2077 * acconfig.h (_MSE_INT_H): Remove.
2078 * configure.in: Create "Checks for header files" section, and move
2079 appropriate tests there. Don't check for objlist.h, wchar.h,
2080 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
2081 misdetection fix. Also add "Checks for types", "Checks for
2082 compiler characteristics" and "Checks for library functions"
2083 sections.
2084 * config.in, configure: Regenerated.
2085
8bb2c122
MK
2086 * configure.in: Create "Checks for programs" section, and move
2087 appropriate tests there.
2088
9a156167
MK
20892003-01-01 Mark Kettenis <kettenis@gnu.org>
2090
2091 * configure.in: Create "Checks for libraries" section, and move
2092 appropriate tests there. Cleanup check for wctype in libw. Use
2093 AC_SEARCH_LIBS to see whether we need libsocket.
2094 * configure: Regenerated.
2095
a80e2bcb 2096For older changes see ChangeLog-2002
c906108c
SS
2097\f
2098Local Variables:
2099mode: change-log
2100left-margin: 8
2101fill-column: 74
2102version-control: never
2103End:
This page took 0.465527 seconds and 4 git commands to generate.