* config/bfin-parse.y (check_macfunc): Loose the condition of
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5648af48
JB
12006-05-27 Joel Brobecker <brobecker@adacore.com>
2
3 From Peter Schauer <peterschauer@gmx.net>
4 * m2-typeprint.c (m2_record_fields): Move variable declarations
5 to the begining of the block.
6
03a73f77
MM
72006-05-23 Mark Mitchell <mark@codesourcery.com>
8
9 * mt-tdep.c (mt_register_name): Correct out-of-range logic to
10 include additional registers.
11
12 * mt-tdep.c (mt_gdb_regnums): Add ZI2, ZQ2, Ichannel2,
13 Iscramb2, Qscramb2, Qchannel2.
14 (mt_register_name): Likewise.
15 (mt_copro_register_type): Describe ZI2 and ZQ2.
16
17 * mt-tdep.c (mt_gdb_regnums): Define
18 MT_COPRO_PSEUDOREG_MAC_REGNUM.
19 (mt_register_name): Use it.
20 (mt_copro_register_type): Likewise.
21 (mt_register_type): Likewise.
22 (mt_pseudo_register_read): Likewise. Read the MAC register, not
23 the coprocessor register.
24 (mt_pseudo_register_write): Likewise.
25
2b3c8945
CF
262006-05-21 Christopher Faylor <cgf@timesys.com>
27
28 * win32-nat.c (cygwin_exceptions): New variable.
29 (handle_exception): Treat a cygwin exception like a normal exception if
30 cygwin_exceptions is true.
31 (_initialize_win32_nat): Add "set cygwin-exceptions" handler.
32
f79daebb
GM
332006-05-20 Gaius Mulley <gaius@glam.ac.uk>
34
35 * NEWS: (Improved Modula-2 language support): New section.
36
b4e70030
JB
372006-05-19 Joel Brobecker <brobecker@adacore.com>
38
39 * configure: Regenerate using proper version of autoconf.
40
a1f5b845
FF
412006-05-19 Fred Fish <fnf@specifix.com>
42
43 * Makefile.in: Fix spelling of 'explicitly' and 'explicit'.
44 * dwarfread.c: Fix spelling of 'unexpected'.
45 * mips-tdep.c: Fix spelling of 'possible' and 'Determine'.
46 * stack.c: Fix spelling of 'RETURN_VALUE'.
47
82d03102
PG
482006-05-18 Paul Gilliam <pgilliam@us.ibm.com
49
50 * solib-svr4.c (enable_break): Breakup a long line into 3 shorter ones.
51
f2da6b3a
DJ
522006-05-17 Daniel Jacobowitz <dan@codesourcery.com>
53
54 * dwarf2-frame.c: Include "value.h".
55 (read_reg): Use unpack_long and register_type.
56 * Makefile.in (dwarf2-frame.o): Update.
57
1f5befc1
DJ
582006-05-17 Daniel Jacobowitz <dan@codesourcery.com>
59
60 * remote-rdp.c: Deleted.
61 * NEWS: Mention removal of remote-rdp.c.
62
63 * Makefile.in (ALLDEPFILES): Remove remote-rdp.c.
64 (remote-rdp.o): Delete.
65 * README: Remove description of remote-rdp.c.
66 * arm-tdep.c (arm_breakpoint_from_pc): Remove obsolete comment.
67 * config/arm/embed.mt (TDEPFILES): Remove remote-rdp.o.
68
cd96dfc9
DJ
692006-05-16 Daniel Jacobowitz <dan@codesourcery.com>
70
71 * ser-e7kpc.c: Include <time.h> if it is available.
72
732006-05-16 Joel Brobecker <brobecker@adacore.com>
e374b601
JB
74
75 * version.in (version.in): Bump version number to 6.5.50 now
76 that the gdb-6.5 branch has been created.
77 * NEWS: Create a new section for changes that are included
78 since gdb-6.5. Name the "since gdb-6.4" section as the "in gdb-6.5"
79 section.
80
13942a42
JB
812006-05-16 Jim Blandy <jimb@codesourcery.com>
82
83 * MAINTAINERS (Authorized Committers): Gaius Mulley has accepted
84 the Global Maintainers' invitation to be an authorized committer
85 for the Modula-2 support.
86
8599da2d
MK
872006-05-15 Mark Kettenis <kettenis@gnu.org>
88
89 * ppcobsd-nat.c: Include "gdb_assert.h".
90 [PT_GETFPREGS] (getfpregs_supplies): New function.
91 (ppcobsd_fetch_registers, ppcobsd_fetch_registers): Hanlde OS
92 versions that have PT_GETFPREGS.
93 (_initialize_ppcobsd_nat) [PT_GETFPREGS]: Initialize
94 ppcobsd_fpreg_offsets.
95 * ppcobsd-tdep.h (ppcobsd_fpreg_offsets, ppcobsd_fpregset):
96 Declare.
97 * ppcobsd-tdep.c (ppcobsd_fpreg_offsets, ppcobsd_fpregset): New
98 variables.
99 (_initialize_ppcobsd_tdep): Initialize ppcobsd_fpreg_offsets.
100 * Makefile.in (ppcobsd-nat.o): Update dependencies.
101
4e8d927d
DJ
1022006-05-15 Daniel Jacobowitz <dan@codesourcery.com>
103
104 * configure.ac: Use GCC_HEADER_STDINT.
105 * acinclude.m4: Include stdint.m4.
106 * Makefile.in (gdb_stdint_h): Define.
107 (distclean): Remove gdb_stdint.h.
108 (Makefile, stamp-h): Update rules to generate only the correct
109 files.
110 (gdb_stdint.h, stamp-int): New rules.
111 * config.in, configure: Regenerated.
112
19ca80ba
DJ
1132006-05-15 Daniel Jacobowitz <dan@codesourcery.com>
114
115 * valprint.c: Include "exceptions.h".
116 (val_print): If something goes wrong while printing, supply an
117 error message.
118
245c7f48
DJ
1192006-05-15 Peter O'Gorman <gdb-patches@mlists.thewrittenword.com>
120
121 * source.c (get_current_source_symtab_and_line)
122 (set_current_source_symtab_and_line): Use { 0 }.
123 * cli/cli-cmds.c (list_command): Likewise.
124
53b33aeb
NR
1252006-05-14 Nick Roberts <nickrob@snap.net.nz>
126
127 * mi/gdb-mi.el (gdbmi-send): Correct regexp for repeat commands.
128 (gdbmi): Use new variable name gdb-pc-address.
129 (gdbmi-frame-handler): Use new variable name gdb-pc-address.
130 Check that a match has been found.
131
d3d3c7e6 1322006-05-13 Gaius Mulley <gaius@glam.ac.uk>
72019c9c 133
d3d3c7e6 134 * m2-lang.h: Added function extern prototypes for
229582b7 135 m2_is_long_set and get_long_set_bounds.
d3d3c7e6
GM
136 * m2-typeprint.c: Complete replacement.
137 (m2_print_type): Walk the Modula-2 type tree.
138 (m2_type_name): New function.
139 (m2_range): New function.
140 (m2_typedef): New function.
141 (m2_array): New function.
142 (m2_pointer): New function.
143 (m2_ref): New function.
144 (m2_unknown): New function.
145 (m2_union): New function.
146 (m2_procedure): New function.
147 (m2_print_bounds): New function.
148 (m2_short_set): New function.
149 (m2_is_long_set): New function.
150 (m2_get_discrete_bounds): New function.
151 (m2_is_long_set_of_type): New function.
152 (m2_long_set): New function.
153 (m2_record_fields): New function.
154 (m2_enum): New function.
1c547afb 155 * dwarf2read.c: Modified.
d3d3c7e6
GM
156 (read_set_type): New function.
157 (process_die): Call read_set_type.
1c547afb 158 (read_base_type): Modifed.
d3d3c7e6 159 (set_cu_language): Added Modula-2 case clause.
1c547afb 160 * m2-valprint.c: Complete replacement.
d3d3c7e6
GM
161 (print_function_pointer_address): New function.
162 (get_long_set_bounds): New function.
163 (m2_print_long_set): New function.
164 (print_unpacked_pointer): New function.
165 (print_variable_at_address): New function.
166 (m2_val_print): Replaced.
167 * gdb/MAINTAINERS (Write After Approval): Added
168 Gaius Mulley <gaius@glam.ac.uk>
72019c9c 169
def18405
MK
1702006-05-12 Mark Kettenis <kettenis@gnu.org>
171
172 * ppcnbsd-tdep.h: Update copyright year. Include <stddef.h>
173 (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
174 (ppcnbsd_fill_fpreg): Remove prototypes.
175 (struct regset): Add forward declaration.
176 (ppcnbsd_gregset, ppcnbsd_fpregset): Extern declarations.
177 * ppcnbsd-tdep.c: Update copyright year. Include "gdbtypes.h",
178 "regset.h" and "gdb_string.h". Don't include "breakpoint.h",
179 "value.h", target.h and nbsd-tdep.h". Reorder includes.
180 (REG_FIXREG_OFFSET, REG_LR_OFFSET, REG_CR_OFFSET, REG_XER_OFFSET)
181 (REG_CTR_OFFSET, REG_PC_OFFSET, SIZEOF_STRUCT_REG)
182 (FPREG_FPR_OFFSET, FPREG_FPSCR_OFFSET, SIZEOF_STRUCT_FPREG):
183 Remove macros.
184 (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
185 (ppcnbsd_fill_fpreg): Remove functions.
186 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
187 (ppcnbsd_core_fns, ppcnbsd_elfcore_fns): Remove variables.
188 (ppcnbsd_reg_offsets): New variable.
189 (ppcnbsd_gregset, ppcnbsd_fpregset): New variables.
190 (ppcnbsd_sigtramp_cache_init): Deal with new signal trampoline
191 introduced in NetBSD 2.0.
192 (ppcnbsd_sigtramp): Provide complete signal trampoline.
193 (ppcnbsd2_sigtramp): New variable.
194 (ppcnbsd_init_abi): Set svr4_fetch_link_map_offsets to
195 svr4_ilp32_fetch_link_map_offsets. Set regset_from_core_section.
196 Add ppcnbs2_sigtramp unwinder.
197 (_initialize_ppcnbsd_tdep): Don't use deprecated_add_core_fns.
198 Initialize ppcnbsd_reg_offsets.
199 * ppcnbsd-nat.c: Update copyright year. Reorder includes.
200 (getregs_supplies): Use regnum instead of regno.
201 (getfpregs_supplies): Likewise.
202 (ppcnbsd_fetch_inferior_registers): Likewise. Call
203 ppc_supply_gregset and ppc_suppply_fpregset instead of
204 ppcnbsd_supply_reg and ppcnbsd_supply_fpreg
205 (ppcnbsd_store_inferior_registers): Likewise. Call
206 ppc_collect_gregset and ppc_collect_fpregset instead of
207 ppcnbsd_fill_reg and ppcnbsd_fill_fpreg.
208 (ppcnbsd_supply_pcb): Use `gdb_byte *' instead of `char *'.
209 (_initialize_ppcnbsd_nat): Add some whitespace.
210 * Makefile.in (ppcnbsd-nat.o, ppcnbsd-tdep.o): Update dependencies.
211 * config/powerpc/nbsd.mh (NATDEPFILES): Remove infptrace.o.
212 (NAT_FILE): Remove.
213 * config/powerpc/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
214
c4c50d37
DJ
2152006-05-11 Alfred M. Szmidt <ams@gnu.org>
216
217 * gnu-nat.c (inf_validate_procs): Don't use lvalue in assignments.
218
576c2025
FF
2192006-05-11 Fred Fish <fnf@specifix.com>
220
221 * symtab.c (skip_prologue_using_sal): Handle single line functions
222 like "foo(){}", which may optimize down to a single return inst.
223
ba906c08
SE
2242006-05-10 Steve Ellcey <sje@cup.hp.com>
225
226 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Remove
227 message.
228
4bf8967c
AS
2292006-05-09 Andreas Schwab <schwab@suse.de>
230
231 * dwarf2-frame.c (struct dwarf2_fde): Add eh_frame_p.
232 (execute_cfa_program): Add parameter eh_frame_p. Call
233 dwarf2_frame_eh_frame_regnum when true.
234 (dwarf2_frame_cache): Pass eh_frame_p from fde to
235 execute_cfa_program.
236 (decode_frame_entry_1): Call dwarf2_frame_eh_frame_regnum when
237 processing .eh_frame. Copy eh_frame_p to the new fde.
238 (struct dwarf2_frame_ops): Add eh_frame_regnum.
239 (dwarf2_frame_set_eh_frame_regnum): Define.
240 (dwarf2_frame_eh_frame_regnum): Define.
241
242 * dwarf2-frame.h (dwarf2_frame_set_eh_frame_regnum): Declare.
243 (dwarf2_frame_eh_frame_regnum): Declare.
244
55e969c1
DM
2452006-05-06 David S. Miller <davem@sunset.davemloft.net>
246
247 * linux-nat.c (linux_nat_do_thread_registers): Check for
248 NULL collect_regset method.
249
92f38ec2
UW
2502006-05-06 Ulrich Weigand <uweigand@de.ibm.com>
251
252 * s390-tdep.c (s390_collect_regset): New function.
253 (s390_gregset, s390x_gregset, s390_fpregset): Add it.
254
6fed56b4
NR
2552006-05-06 Nick Roberts <nickrob@snap.net.nz>
256
257 * dwarf2read.c: Make LOC_OPTIMIZED_OUT the default value for a
258 symbol.
259
6fc19103
UW
2602006-05-05 Ulrich Weigand <uweigand@de.ibm.com>
261
262 * linux-nat.c (exit_lwp): Fix NULL pointer access.
263 (linux_nat_handle_extended): New parameter STOPPING.
264 (wait_lwp): Call it with STOPPING equals 1.
265 (linux_nat_wait): Call it with STOPPING equals 0.
266
d539ed7e
UW
2672006-05-05 Ulrich Weigand <uweigand@de.ibm.com>
268
269 * linux-nat.c (linux_nat_wait): Do not short-cut reporting
270 of 'uninteresting' signals when single-stepping.
271
49101e1c
DJ
2722006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
273
274 * MAINTAINERS: Move NEWS to the documentation entry.
275
4f844a66
DM
2762006-05-05 David S. Miller <davem@sunset.davemloft.net>
277
278 * linux-nat.c (linux_nat_do_thread_registers): Use the
279 regset_from_core_section infrastructure if the target
280 supports it.
281 * Makefile.in: Update dependencies.
bcc98f88
DM
282 * linux-thread-db.c (thread_db_store_registers): Use
283 regcache_raw_collect.
4f844a66 284
411cb3f9
PG
2852006-05-05: Paul Gilliam <pgilliam@us.ibm.com>
286
287 * ppc-linux-nat.c: Clean up types for ptrace.
288 Replace (CORE_ADDR) with (uintptr_t) to avoid the size difference
289 between a CORE_ADDR and a void* on ppc64 systems compiled for 32-bits.
290
597320e7
DJ
2912006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
292
293 * remote.c (remote_disconnect): Add TARGET argument.
294 * target.c (debug_to_disconnect): Delete.
295 (update_current_target): Do not inherit to_disconnect.
296 (target_disconnect): Search for a target to implement to_disconnect.
297 (setup_target_debug): Do not reference to_disconnect.
298 * target.h (struct target_ops): Add target argument to
299 to_disconnect.
300
401835eb
FF
3012006-05-06 Fred Fish <fnf@specifix.com>
302
303 * mips-tdep.c (mips_o64_push_dummy_call): Left shift big endian
304 structs or unions independent of ABI register size.
305
7a076fd2
FF
3062006-05-06 Fred Fish <fnf@specifix.com>
307
308 * mips-tdep.c (mips_o64_return_value): Replace stub that always
309 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
310
eec01795
DJ
3112006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
312
313 * mi/mi-main.c (captured_mi_execute_command): Check the return
314 value of -interpreter-exec.
315
14b3d9c9
JB
3162006-05-03 Vladimir Prus <ghost@cs.msu.su>
317
411cb3f9
PG
318 * varobj.c (c_value_of_variable): Ignore top-level references.
319 (Committed by Jim Blandy.)
14b3d9c9 320
1893a4c0
MK
3212006-04-30 Mark Kettenis <kettenis@gnu.org>
322
323 * breakpoint.c (insert_single_step_breakpoint): Make a failure to
324 insert a single-step breakpoint an error instead of a warning.
325
21f79b33
NW
3262006-05-01 Nathan J. Williams <nathanw@wasabisystems.com>
327
328 * ppcnbsd-tdep.c (ppcnbsd_return_value): Change type of last two
329 arguments from void * to gdb_byte *.
330
b8db102d
MS
3312006-04-26 Michael Snyder <msnyder@redhat.com>
332
333 * linux-fork.c (_initialize_linux_fork): Rename "delete-fork"
334 command to "delete fork" (no hyphen), compatible with other
335 "delete" commands.
336 (info_forks_command): Accept a fork ID argument, for info
337 on a single fork. Report if no matching forks.
338
bc0c849e
MK
3392006-04-25 Mark Kettenis <kettenis@gnu.org>
340
1893a4c0
MK
341 * breakpoint.c (remove_single_step_breakpoints): Bail out early if
342 no breakpoints are inserted.
343
bc0c849e
MK
344 From Masaki MURANAKA <monaka@monami-software.com>:
345 * mips-mdebug-tdep.c (mips_mdebug_frame_prev_register): Change
346 type of last argument to `gdb_byte *'
347
5f1fb6dc
JB
3482006-04-25 Jim Blandy <jimb@codesourcery.com>
349
350 Add support for 'target remote |' on MinGW.
351 * ser-mingw.c (struct pipe_state): New structure.
352 (make_pipe_state, free_pipe_state, cleanup_pipe_state)
353 (pipe_windows_open, pipe_windows_close, pipe_windows_read)
354 (pipe_windows_write, pipe_wait_handle): New functions.
355 (_initialize_ser_windows): Register a "pipe" interface based on
356 them.
357
c3e2b812
DJ
3582006-04-24 Daniel Jacobowitz <dan@codesourcery.com>
359
360 * ser-mingw.c: Include <conio.h>.
361 (struct ser_console_state, struct net_windows_state): Add exit_select,
362 have_stopped, thread.
363 (pipe_select_thread, console_select_thread)
364 (net_windows_select_thread): Don't create a local state copy or
365 close stop_select. Exit on exit_select instead of stop_select. Set
366 have_stopped.
367 (console_select_thread): Don't report control keypresses as pending
368 input.
369 (pipe_select_thread): Allow stop_select to interrupt sleeping.
370 (set_console_wait_handle): Create exit_select and have_stopped.
371 Save the thread handle. Check _kbhit before starting a thread.
372 (ser_console_done_wait_handle): New.
373 (ser_console_close): Close new handles. Wait for the thread to
374 exit.
375 (new_windows_select_thread): Assert that an event occurred.
376 (net_windows_wait_handle): Check for pending input before starting
377 a thread.
378 (net_windows_done_wait_handle): New.
379 (net_windows_open): Create exit_select and have_stopped.
380 Save the thread handle.
381 (net_windows_close): Close new handles. Wait for the thread to
382 exit.
383 (_intiialize_ser_windows): Register done_wait_handle methods.
384
385 * serial.c [USE_WIN32API] (serial_done_wait_handle): New.
386 * serial.h [USE_WIN32API] (struct serial_ops): Add done_wait_handle.
387 [USE_WIN32API] (serial_done_wait_handle): New prototype.
388 * mingw-hdep.c (gdb_select): Use serial_done_wait_handle.
389
b8eb021a
AS
3902006-04-23 Andreas Schwab <schwab@suse.de>
391
392 * rs6000-tdep.c: Include "reggroups.h" only once.
393 * Makefile.in (rs6000-tdep.o): Update dependencies.
394
4f1520fb
FR
3952006-04-21 Frederic Riss <frederic.riss@st.com>
396
397 * dwarf2read.c (dwarf2_start_subfile): Change prototype to accept
398 compilation directory as last argument.
399 Always pass comp_dir as second argument to start_subfile and prepend
400 dirname to the filename when necessary.
401 Remove now superfluous search for pre-existing subfile.
402 (dwarf_decode_lines): Pass the compilation directory to
403 dwarf2_start_subfile.
404
0271fba4
MS
4052006-04-20 Michael Snyder <msnyder@redhat.com>
406
407 * 2006-03-22 Jim Blandy <jimb@redhat.com>
408 Add support for the Renesas M32C and M16C.
409
410 * configure.tgt (m32c-*-*): New entry.
411 * config/m32c/m32c.mt: New file.
412 * m32c-tdep.c: New file.
413 * Makefile.in (elf_m32c_h): New variable.
414 (m32c-tdep.o): New rule.
415 * NEWS: Mention new target.
416 * MAINTAINERS: Designate Jim Blandy as responsible maintainer.
417
cfde0993
MS
4182006-04-20 Michael Snyder <msnyder@redhat.com>
419
420 * remote.c: Fix spelling error in comment.
421
cba5fab9
DJ
4222006-04-20 Daniel Jacobowitz <dan@codesourcery.com>
423
424 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_prev_register):
425 Correct type of VALUEP. Reported by Jean-Rene Peulve
426 <jr.peulve@wanadoo.fr>.
427
cbba9205
KI
4282006-04-19 Masaki Muranaka <monaka@monami-software.com>
429
430 * m32r-rom.c: On MinGW, include winsock.h instead of sys/types.h,
431 netdb.h, netinet/in.h.
432 (m32r_upload_command); Add calls WSAStartup().
433 * remote-m32r-sdi.c: On MinGW, include winsock.h instead of
434 netinet/in.h.
435
8181d85f
DJ
4362006-04-18 Daniel Jacobowitz <dan@codesourcery.com>
437
438 * breakpoint.c (deprecated_read_memory_nobpt): Update to use
439 shadow_len.
440 (insert_bp_location, reattach_breakpoints, remove_breakpoint)
441 (delete_breakpoint): Update calls to changed methods.
442 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
443 (single_step_breakpoints, insert_single_step_breakpoint)
444 (remove_single_step_breakpoints): New.
445 * breakpoint.h (struct bp_target_info): New.
446 (struct bp_location): Replace shadow_contents with
447 target_info and overlay_target_info.
448 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
449 (insert_single_step_breakpoint, remove_single_step_breakpoints): New
450 prototypes.
451 * gdbarch.sh: Forward declare struct bp_target_info in gdbarch.h.
452 (memory_insert_breakpoint, memory_remove_breakpoint): Update second
453 argument.
454 * mem-break.c (default_memory_insert_breakpoint): Update. Set
455 placed_address, placed_size, and shadow_len.
456 (default_memory_remove_breakpoint): Update. Don't use
457 BREAKPOINT_FROM_PC.
458 (memory_insert_breakpoint, memory_remove_breakpoint): Update.
459 * target.c (update_current_target): Update prototypes for changed
460 functions.
461 (debug_to_insert_breakpoint, debug_to_remove_breakpoint)
462 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint):
463 Update.
464 * target.h: Forward declare struct bp_target_info.
465 (struct target_ops): Use a bp_target_info argument for
466 to_insert_breakpoint, to_remove_breakpoint,
467 to_insert_hw_breakpoint, and to_remove_hw_breakpoint.
468 (target_insert_breakpoint, target_remove_breakpoint)
469 (target_insert_hw_breakpoint, target_remove_hw_breakpoint)
470 (memory_insert_breakpoint, memory_remove_breakpoint)
471 (default_memory_insert_breakpoint, default_memory_remove_breakpoint):
472 Update.
473 * config/i386/nm-i386.h: Forward declare struct bp_target_info.
474 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): Update.
475 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Likewise.
476
477 * gdbarch.c, gdbarch.h: Regenerated.
478
479 * alpha-tdep.c (alpha_software_single_step): Use
480 insert_single_step_breakpoint and remove_single_step_breakpoints.
481 Remove unused statics.
482 * arm-tdep.c (arm_software_single_step): Likewise. Add a note.
483 * cris-tdep.c (cris_software_single_step): Likewise.
484 * mips-tdep.c (mips_software_single_step): Likewise.
485 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
486 * sparc-tdep.c (sparc_software_single_step): Likewise.
487 * wince.c (struct thread_info_struct): Remove step_prev.
488 (undoSStep): Use remove_single_step_breakpoints.
489 (wince_software_single_step): Use insert_single_step_breakpoint.
490
491 * corelow.c (ignore): Remove unneeded prototype. Update arguments.
492 * exec.c (ignore): Likewise.
493 * sol-thread.c (ignore): Likewise.
494
495 * procfs.c (dbx_link_shadow_contents): Delete.
496 (dbx_link_bpt): New.
497 (procfs_mourn_inferior): Remove it if necessary.
498 (remove_dbx_link_breakpoint): Use it.
499 (insert_dbx_link_bpt_in_file): Set it.
500 (procfs_init_inferior): Don't update dbx_link_bpt_addr.
501 * rs6000-nat.c (exec_one_dummy_insn): Use
502 deprecated_insert_raw_breakpoint and
503 deprecated_remove_raw_breakpoint.
504 * solib-irix.c (shadow_contents, breakpoint_addr): Delete.
505 (base_breakpoint): New.
506 (disable_break): Use it.
507 (enable_break): Set it.
508
509 * i386-nat.c (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint):
510 Update.
511 * ia64-tdep.c (ia64_memory_insert_breakpoint)
512 (ia64_memory_remove_breakpoint): Likewise.
513 * m32r-tdep.c (m32r_memory_insert_breakpoint)
514 (m32r_memory_remove_breakpoint): Likewise.
515 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
516 Likewise. Remove unnecessary prototypes. Use placed_address
517 and placed_size. Removed useless read from memory.
518 * nto-procfs.c (procfs_insert_breakpoint)
519 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
520 (procfs_remove_hw_breakpoint): Update.
521 * ocd.c (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
522 * ocd.h (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
523 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
524 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Likewise.
525 * remote-e7000.c (e7000_insert_breakpoint)
526 (e7000_remove_breakpoint): Likewise.
527 * remote-m32r-sdi.c (m32r_insert_breakpoint)
528 (m32r_remove_breakpoint): Likewise.
529 * remote-mips.c (mips_insert_breakpoint)
530 (mips_remove_breakpoint): Likewise.
531 * remote-rdp.c (remote_rdp_insert_breakpoint)
532 (remote_rdp_remove_breakpoint): Likewise.
533 (rdp_step): Use deprecated_insert_raw_breakpoint and
534 deprecated_remove_raw_breakpoint.
535 * remote-sds.c (sds_insert_breakpoint, sds_remove_breakpoint):
536 Update.
537 * remote-sim.c (gdbsim_insert_breakpoint, gdbsim_remove_breakpoint):
538 Delete.
539 (init_gdbsim_ops): Use memory_insert_breakpoint and
540 memory_remove_breakpoint.
541 * remote-st.c (st2000_insert_breakpoint)
542 (st2000_remove_breakpoint): Update. Remove unused
543 BREAKPOINT_FROM_PC.
544 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
545 Update. Use placed_address and placed_size.
546 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Likewise.
547
01d3a6ce
DJ
5482006-04-12 Daniel Jacobowitz <dan@codesourcery.com>
549
550 * remote.c (extended_remote_restart): Pass the correct length
551 to getpkt.
552
2821caf1
JB
5532006-04-11 Jim Blandy <jimb@codesourcery.com>
554
555 * serial.c (serial_open): Check for special cases at the front of
556 the "device" name before scanning for the ':' that would indicate
557 an IP-based connection.
558
02c5aecd
CF
5592006-04-10 Christopher Faylor <cgf@timesys.com>
560
561 * win32-nat.c (open_symbol_file_object): New function.
562 (in_dynsym_resolve_code): Ditto.
563 (init_win32_ops): Fill in fields which ought not to be NULL.
564
cb832706
CF
5652006-04-10 Christopher Faylor <cgf@timesys.com>
566
567 * win32-nat.c (do_win32_fetch_inferior_registers): Don't do anything
568 with saved context if __COPY_CONTEXT_SIZE is not defined.
569 (handle_output_debug_string): Ditto.
570
03926e1f
DJ
5712006-04-10 Daniel Jacobowitz <dan@codesourcery.com>
572
573 * arm-linux-tdep.c (arm_linux_extract_return_value): Use gdb_byte.
574
b2a0b9b2
DM
5752006-04-09 David S. Miller <davem@sunset.davemloft.net>
576
577 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Append dwarf2
578 frame sniffer.
579 * sparc-tdep.c (sparc32_gdbarch_init): Make sure to call
580 dwarf2_frame_set_init_reg() before gdbarch_init_osabi() so
581 that the latter can override.
582 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
583
ee1b3323
UW
5842006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
585
586 * s390-tdep.c (struct s390_prologue_data): New field 'stack'.
587 (s390_store): Call pv_area_store to track stack slots.
588 (s390_load): Call pv_area_fetch to track stack slots.
589 (s390_check_for_saved): New function.
590 (s390_analyze_prologue): Call pv_area_scan. Allocate and free stack.
591
3fc46200
UW
5922006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
593
594 * Makefile.in (s390-tdep.o): Add dependency on $(prologue_value_h).
595 * s390-tdep.c: Include "prologue-value.h".
596 (struct prologue_value): Remove.
597 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
598 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
599 pv_logical_and, pv_is_identical, pv_is_register): Remove.
600 (compute_x_addr): Remove, replace by ...
601 (s390_addr): ... this new function.
602 (struct s390_prologue_data): Use pv_t instead of prologue_value.
603 (s390_store, s390_load): Likewise.
604 (s390_prologue_frame_unwind_cache): Likewise.
605 (s390_analyze_prologue): Likewise. Also, simplify and combine
606 several conditional statements.
607
d750b939
JB
6082006-04-08 Jim Blandy <jimb@codesourcery.com>
609
610 * Makefile.in (COMMON_OBS): List prologue-value.o. (Omitted from
611 last patch.)
612
0b4294d3
DM
6132006-04-08 David S. Miller <davem@sunset.davemloft.net>
614
615 * sparc-linux-tdep.c (sparc32_linux_step_trap): New.
616 (sparc32_linux_init_abi): Hook it into tdep->step_trap.
07c5f590
DM
617 (sparc32_linux_core_gregset,
618 sparc32_linux_supply_core_gregset,
619 sparc32_linux_collect_core_gregset,
620 sparc32_linux_supply_core_fpregset,
621 sparc32_linux_collect_core_fpregset): New.
622 (sparc32_linux_init_abi): Register them with generic sparc
623 core regset infrastructure.
0b4294d3
DM
624 * sparc64-linux-tdep.c (sparc64_linux_step_trap): New.
625 (sparc64_linux_init_abi): Hook it into tdep->step_trap.
07c5f590
DM
626 (sparc64_linux_core_gregset,
627 sparc64_linux_supply_core_gregset,
628 sparc64_linux_collect_core_gregset,
629 sparc64_linux_supply_core_fpregset,
630 sparc64_linux_collect_core_fpregset): New.
631 (sparc64_linux_init_abi): Register them with generic sparc
632 core regset infrastructure.
0b4294d3
DM
633 * Makefile.in: Update dependencies.
634
9c0dd46b
DM
6352006-04-07 David S. Miller <davem@sunset.davemloft.net>
636
637 * linux-nat.c (linux_nat_thread_alive): Handle targets that
638 do not implement PTRACE_PEEKUSER.
639
670aa98f
DJ
6402006-04-07 Daniel Jacobowitz <dan@codesourcery.com>
641
642 * remote.c (remote_wait): Convert warning to error before
643 parsing corrupt packets.
644
e28493f2
AS
6452006-04-07 Andrew Stubbs <andrew.stubbs@st.com>
646
647 * cli/cli-script.c (struct user_args): Add command field.
648 (arg_cleanup): Free command string.
649 (setup_user_args): Copy the command line before relying on it.
650
7f198e01
JB
6512006-04-06 Joel Brobecker <brobecker@adacore.com>
652
653 * breakpoint.c (_initialize_breakpoint): Add "del" as an alias
654 of the "delete" command.
655
c9f7217e
RC
6562006-04-06 Randolph Chung <tausq@debian.org>
657
658 * MAINTAINERS (Patch champions): Add myself.
659
d993720d
AS
6602006-04-05 Andreas Schwab <schwab@suse.de>
661
662 * Makefile.in: Update dependencies.
663
f5a9b87d
DM
6642006-04-05 David S. Miller <davem@sunset.davemloft.net>
665
666 * sparc-tdep.c (sparc32_dwarf2_frame_init_reg): New.
667 (sparc32_gdbarch_init): Pass it to dwarf2_frame_set_init_reg.
668 * Makefile.in (sparc-tdep.o): Update dependencies.
80f9e3aa
DM
669 * sparc-linux-tdep.c (sparc32_linux_sigframe_init): Pull register
670 window out of the correct stack frame.
671 * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): Likewise.
aff37fc1
DM
672 * dwarf2-frame.c (dwarf2_frame_ops init_reg): Add "next_frame"
673 argument.
674 (dwarf2_frame_default_init_reg): Likewise.
675 (dwarf2_frame_set_init_reg): Update init_reg arg.
676 (dwarf2_frame_init_reg): Take "next_frame" and pass it to
677 ops->init_reg().
678 (dwarf2_frame_cache): Pass next_frame to dwarf2_frame_init_reg.
679 * dwarf2-frame.h (dwarf2-frame_set_init_reg): Update declaration.
680 * cris-tdep.c (cris_dwarf2_frame_init_reg): Add next_frame arg.
681 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
682 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
683 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
684 * sparc-tdep.c (sparc32_struct_return_from_sym): New function.
685 (sparc32_frame_cache): Call it.
686 (sparc32_dwarf2_struct_return_p): New function.
687 (sparc_dwarf2_frame_init_reg): Use it to determine if the function
688 returns a structure and thus we have to indicate the return PC and
689 NPC are 4 bytes later than usual.
faea95b1
DM
690 * sparc-linux-tdep.c (sparc32_linux_init_abi): Append
691 dwarf2 frame sniffer.
692 * Makefile.in (sparc-linux-tdep.o): Update dependencies.
f5a9b87d 693
75e192e6
DM
6942006-04-04 David S. Miller <davem@davemloft.net>
695
696 * config/linux.mh (NATDEPFILES): Remove sparc-sol2-nat.o
697 * config/linux64.h (NATDEPFILES): Likewise
698 * sparc-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
699 fill_fpregset): New.
700 * sparc64-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
701 fill_fpregset): New.
0a59b3af
DM
702 * Makefile.in (sparc-linux-nat.o, sparc64-linux-nat.o): Update for
703 new includes.
704
dbcd679b
AS
7052006-04-04 Andreas Schwab <schwab@suse.de>
706
707 * Makefile.in (elf_common_h): Define.
708
357d3800
AS
7092006-04-03 Andrew Stubbs <andrew.stubbs@st.com>
710
711 * sh-tdep.c (sh_dwarf2_frame_init_reg): New function.
712 (sh_gdbarch_init): Call dwarf2_frame_set_init_reg().
713
d3c139e9
AS
7142006-03-31 Andrew Stubbs <andrew.stubbs@st.com>
715
716 * value.h (struct internalvar): Add field 'endian'.
717 * value.c (lookup_internalvar): Initialise endian.
718 (value_of_internalvar): Flip the endian of built-in types if required.
719 (set_internalvar): Set the endian.
720 (show_convenience): Access the value through value_of_internalvar().
721
bb858e6a
DJ
7222006-03-30 Vladimir Prus <ghost@cs.msu.su>
723
724 * remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum
725 instead of hardcoded integer literals.
726
61d9b92f
DJ
7272006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
728
729 * cli/cli-script.c (insert_args): Handle NULL user_args.
730
f7060f85
DJ
7312006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
732
733 * arm-tdep.c (thumb_scan_prologue): Don't try to analyze
734 the function at zero if we have no symbols.
735
295bf0ff
DJ
7362006-03-30 Adrien Kunysz <a_kunysz@yahoo.com>
737
738 * i386-stub.c (getpacket): Fix array overflow.
739 * m32r-stub.c (getpacket): Likewise.
740 * m68k-stub.c (getpacket): Likewise.
741 * sh-stub.c (getpacket): Likewise.
742 * sparc-stub.c (getpacket): Likewise.
743
7abfe014
DJ
7442006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
745
746 * frame.h (set_current_sal_from_frame): New prototype.
747 * stack.c (set_current_sal_from_frame): Make global.
748 * infrun.c (normal_stop): Call set_current_sal_from_frame.
749
0ec9a092
DJ
7502006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
751
752 * linux-thread-db.c: Include "linux-nat.h".
753 (check_for_thread_db): New function, split out from
754 thread_db_new_objfile. Remove dead check for active
755 thread_db on inapplicable targets.
756 (thread_db_new_objfile): Call check_for_thread_db.
757 * Makefile.in (linux-thread-db.o): Update.
758 * linux-nat.c (child_post_attach): Call check_for_thread_db.
759 (linux_child_post_startup_inferior): Likewise.
760 (lin_lwp_attach_lwp): Call target_post_attach instead of
761 child_post_attach.
762 * linux-nat.h (check_for_thread_db): New prototype.
763
6d820c5c
DJ
7642006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
765
766 * remote.c (struct remote_state): Add BUF and BUF_SIZE.
767 (init_remote_state): Initialize the new fields.
768 (get_memory_packet_size): Update BUF and BUF_SIZE if necessary.
769 (set_thread, remote_thread_alive, remote_unpack_thread_info_response)
770 (remote_get_threadinfo, parse_threadlist_response)
771 (remote_get_threadlist, remote_current_thread, remote_threads_info)
772 (remote_threads_extra_info, extended_remote_restart, get_offsets)
773 (remote_check_symbols, remote_open_1, remote_detach)
774 (remove_vcont_probe, remote_vcont_resume, remote_resume)
775 (remote_wait, remote_async_wait, fetch_register_using_p)
776 (remote_fetch_registers, store_register_using_P)
777 (remote_store_registers, check_binary_download, remote_write_bytes)
778 (remote_read_bytes, remote_insert_breakpoint)
779 (remote_remove_breakpoint, remote_insert_watchpoint)
780 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
781 (remote_remove_hw_breakpoint, compare_sections_command)
782 (remote_xfer_partial, remote_rcmd, packet_command)
783 (remote_get_thread_local_address): Use the global incoming buffer
784 instead of alloca or xmalloc. Limit outgoing packets to
785 rs->remote_packet_size and incoming packets to rs->buf_size.
786 Update calls to getpkt and remote_send.
787 (remote_send): Take arguments by reference.
788 (putpkt_binary): Eliminate junkbuf. Use skip_frame.
789 (skip_frame): New function.
790 (read_frame): Take arguments by reference. Expand the packet
791 buffer instead of issuing an error.
792 (getpkt, getpkt_sane): Take arguments by reference.
793 * remote.h (getpkt): Update prototype and doc.
794 * tracepoint.c (remote_get_noisy_reply): Take arguments by
795 reference.
796 (target_buf): Change from array to pointer.
797 (target_buf_size): New variable.
798 (remote_set_transparent_ranges): Update call to getpkt.
799 (trace_start_command, trace_stop_command, trace_status_command):
800 Update calls to remote_get_noisy_reply.
801 (finish_tfind_command): Take arguments by reference.
802 (trace_find_command, trace_find_pc_command)
803 (trace_find_tracepoint_command, trace_find_line_command):
804 (trace_find_range_command, trace_find_outside_command): Update
805 calls to finish_tfind_command.
806 (_initialize_tracepoint): Initialize target_buf_size and target_buf.
807
3d8dcac6
RC
8082005-03-30 Randolph Chung <tausq@debian.org>
809
810 * hppa-linux-tdep.c: Include regset.h.
811 (GR_REGNUM, TR_REGNUM, greg_map): New.
812 (hppa_linux_supply_regset, hppa_linux_supply_fpregset): New.
813 (hppa_linux_regset, hppa_linux_fpregset): New.
814 (hppa_linux_regset_from_core_section): New.
815 (hppa_linux_init_abi): Set regset_from_core_section.
816 (_initialize_hppa_linux_tdep): Register osabi handler for
817 64-bit Linux.
818 * Makefile.in (hppa-linux-tdep.o): Update dependencies.
819 * config/pa/linux.mh: Stop using core-regset.o
820
29d375ac
RC
8212006-03-30 Randolph Chung <tausq@debian.org>
822
823 * hppa-tdep.c (hppa_find_unwind_entry_in_block): New.
824 (hppa_frame_cache): Use new function to find unwind entry.
825 (hppa_frame_this_id): Likewise.
826 (hppa_frame_unwind_sniffer): Likewise.
827
f4267320
DJ
8282006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
829
830 * NEWS: Mention the removal of NLM.
831
8322006-03-29 Steve Ellcey <sje@cup.hp.com>
833
834 * Makefile.in (nlm): Remove target.
835 * configure.tgt (i[34567]86-*-netware*): Do not set build_nlm.
836 * configure.ac: Remove AC_CONFIG_SUBDIRS of nlm.
837 * configure: Regenerate.
838 * doc/gdb.texinfo: Remove gdbserve.nlm documentation.
839 * nlm: Remove directory.
840
698ba934
DJ
8412006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
842
843 * Makefile.in (utils.o): Update.
844 * top.c (in_user_command): New.
845 (command_line_input): Use input_from_terminal_p.
846 (input_from_terminal_p): Don't check caution. Handle
847 stdin == NULL for Insight.
848 * top.h (in_user_command, caution): New declarations.
849 * utils.c: Include "top.h".
850 (query, defaulted_query): Check caution here. Move the call
851 to input_from_terminal_p higher.
852 * cli/cli-script.c (do_restore_user_call_depth): Only decrement
853 the depth. Update in_user_command if necessary.
854 (execute_user_command): Don't clobber old_chain. Set
855 in_user_command. Let do_restore_user_call_depth handle
856 user_call_depth.
857 (read_command_lines): Check whether to prompt before calling
858 Insight hooks.
859 * tui/tui-hooks.c (tui_query_hook): Remove newly unnecessary
860 input_from_terminal_p check.
861
2f00de94
UW
8622006-03-29 Ulrich Weigand <uweigand@de.ibm.com>
863
864 * s390-nat.c (s390_insert_watchpoint): Add missing argument.
865 (s390_remove_watchpoint): Likewise.
866
7d30c22d
JB
8672006-03-28 Jim Blandy <jimb@codesourcery.com>
868
869 * prologue-value.c, prologue-value.h: New files.
870 * Makefile.in (prologue_value_h): New variable.
871 (HFILES_NO_SRCDIR): List prologue-value.h.
872 (SFILES): List prologue-value.c.
873 (COMMON_OBS): List prologue-value.o.
874 (prologue-value.o): New rule.
875
05c6a9a1
MS
8762006-03-27 Michael Snyder <msnyder@redhat.com>
877
878 * xstormy16-tdep.c (xstormy16_return_value, xstormy16_push_dummy_call,
879 xstormy16_pointer_to_address, xstormy16_address_to_pointer,
880 xstormy16_frame_prev_register): Change void* to gdb_byte*.
881 (xstormy16_push_dummy_call): Add block-local char* val,
882 to avoid type conflict with outer scope variable.
883
4e6cbc38
AS
8842006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
885
886 * sh-tdep.c (sh_gdbarch_init): Add missing architectures.
887
75483fbe
NR
8882006-03-27 Nick Roberts <nickrob@snap.net.nz>
889
890 * varobj.c (c_name_of_child, c_value_of_child): Allow non-zero
891 offsets for languages like Fortran.
892
97ce3a05
RC
8932006-03-26 Randolph Chung <tausq@debian.org>
894
895 * config/pa/hppa64.mt: Use HPUX version of the tm file.
896
be85b69f
NR
8972006-03-25 Nick Roberts <nickrob@snap.net.nz>
898
899 * mi/gdb-mi.el (gdbmi-send): Improve regexp to repeat commands.
900 Try to deal with continuation line.
901 (gdbmi, gdbmi-prompt1, gud-gdbmi-marker-filter): Update to new
902 variable names.
903 (gdb-break-list-regexp, gdb-stack-list-frames-regexp):
904 Future proof against new fields being added to MI output.
905 (gdbmi-prompt2, gdb-break-list-handler,gdb-get-source-file)
906 (gdbmi-frame-handler): Update to new variable name
907 gdb-get-buffer-create.
908 (gdbmi-frame-handler): Use hollow-right-triangle for all selected
909 frames which except the innermost (where execution has stopped).
910
7fc4b1a1
RC
9112006-03-24 Randolph Chung <tausq@debian.org>
912
913 * solib-som.c (link_map_start): Don't error out if there is
914 not yet a link map.
915
f973ed9c
DJ
9162006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
917
918 * linux-nat.c (linux_ops_saved): New.
919 (super_mourn_inferior, kill_inferior, threaded, linux_nat_ops)
920 (child_mourn_inferior, child_wait, linux_nat_create_inferior)
921 (linux_nat_fetch_registers, linux_nat_store_registers)
922 (linux_nat_child_post_startup_inferior, init_linux_nat_ops): Delete.
923 (init_lwp_list): Don't set threaded.
924 (add_lwp): Don't modify threaded.
925 (delete_lwp): Don't mention non-threaded mode.
926 (linux_nat_switch_fork): New.
927 (linux_nat_attach): Update inferior_ptid.
928 (linux_nat_wait): Handle num_lwps == 0 at entry. Don't check
929 threaded flag.
930 (linux_nat_kill): Handle pending forks and saved forks.
931 (linux_nat_mourn_inferior): Handle saved forks.
932 (linux_nat_pid_to_str): Don't use the LWP form when there is
933 only one thread.
934 (linux_target): Don't set to_wait, to_kill, or to_mourn_inferior.
935 (linux_nat_add_target): New.
936 (_initialize_linux_nat): Don't initialize the linux native target
937 here.
938 * linux-nat.h (linux_nat_add_target, linux_nat_switch_fork): New
939 prototypes.
940 * linux-fork.c: Include "linux-nat.h".
941 (add_fork): Update initial PID.
942 (fork_load_infrun_state): Call linux_nat_switch_fork.
943 * Makefile.in (linux-fork.o): Update.
944
945 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
946 linux_nat_add_target instead of add_target.
947 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Likewise.
948 * arm-linux-nat.c (_initialize_arm_linux_nat): Likewise.
949 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Likewise.
950 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Likewise.
951 * i386-linux-nat.c (_initialize_i386_linux_nat): Likewise.
952 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Likewise.
953 * m68klinux-nat.c (_initialize_m68k_linux_nat): Likewise.
954 * mips-linux-nat.c (_initialize_mips_linux_nat): Likewise.
955 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Likewise.
956 * s390-nat.c (_initialize_s390_nat): Likewise.
957 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Likewise.
958 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Likewise.
959
791b663b
DJ
9602006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
961
962 * linux-fork.c: Include "gdb_assert.h".
963 (fork_load_infrun_state): Set inferior_ptid and stop_pc here.
964 Update the register cache and selected frame also.
965 (linux_fork_mourn_inferior): Use fork_load_infrun_state. Return
966 to single fork mode if necessary.
967 (linux_fork_context): Remove bits handled by fork_load_infrun_state.
968 * Makefile.in (linux_fork_h): New.
969 (linux-fork.o, linux-nat.o): Update.
970
d311d956
AS
9712006-03-23 Andreas Schwab <schwab@suse.de>
972
973 * config/s390/s390.mh (NATDEPFILES): Add linux-fork.o.
974
a849c9ab
JB
9752006-03-18 Jim Blandy <jimb@codesourcery.com>
976
977 * symtab.h (enum address_class): Doc fix.
978
cf913f37
MS
9792006-03-16 Michael Snyder <msnyder@redhat.com>
980
712e3020 981 * tracepoint.c (tracepoint_save_command): Fix typo in error msg.
88c231eb 982 * target.c (push_target): Fix typo in comment.
94e08568 983 * remote.c (remote_watch_data_address): Fix typo in comment.
cf913f37
MS
984 * i386-tdep.c (i386_push_dummy_call): Fix typo in comment.
985
7c699b81
KB
9862006-03-15 Kevin Buettner <kevinb@redhat.com>
987
988 * frv-linux-tdep.c (gdbcore.h, regcache.h, regset.h, gdb_string.h):
989 Include.
990 (FRV_ELF_NGREG, FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR, FRV_PT_CCCR)
991 (FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0, FRV_PT_GNER1)
992 (FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR, FRV_PT_TBR)
993 (FRV_PT_EXEC_FDPIC_LOADMAP, FRV_PT_INTERP_FDPIC_LOADMAP): Define.
994 (frv_elf_greg_t, frv_elf_gregset_t, frv_elf_fpreg_t)
995 (frv_elf_fpregset_t): Define types.
996 (frv_linux_supply_gregset, frv_linux_supply_fpregset)
997 (frv_linux_regset_from_core_section: New functions.
998 (frv_linux_gregset, frv_linux_fpregset): New static globals.
999 (frv_linux_init_abi): Register the `regset_from_core_section' method.
1000 * Makefile.in (frv-linux-tdep.o): Update dependencies.
1001 * solib-frv.c (frv_current_sos): Relocate main executable after
1002 loading core file.
1003 (frv_clear_solib): Clean up space associated with
1004 `main_executable_lm_info'.
1005 * config/frv/frv.mt (TDEPFILES): Add corelow.o to this list.
1006
d37eb719
DJ
10072006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1008
1009 * Makefile.in (mips_linux_tdep_h): New.
1010 (mpis-linux-nat.o, mips-linux-tdep.o): Update.
1011 * mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
1012 <sys/ptrace.h>.
1013 (have_ptrace_regsets, super_fetch_registers, super_store_registers)
1014 (mips64_linux_regsets_fetch_registers)
1015 (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
1016 (mips64_linux_store_registers): New.
1017 (_initialize_mips_linux_nat): Override to_fetch_registers and
1018 to_store_registers.
1019 * mips-linux-tdep.h: New file.
1020 * mips-linux-tdep.c: Include "mips-linux-tdep.c".
1021 (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
1022 (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
1023 (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
1024 (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
1025 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
1026 (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
1027 (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
1028 (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
1029 (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
1030 (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
1031 (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
1032 (supply_32bit_reg): Use gdb_byte.
1033 (supply_64bit_reg): New.
1034 (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
1035 (mips_fill_fpregset, fetch_core_registers, supply_gregset)
1036 (fill_gregset, supply_fpregset): Update for renamed types.
1037 (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
1038 (mips64_fill_gregset): Make global. Handle 32-bit register
1039 sizes.
1040 (mips64_fill_fpregset): Make global. Use gdb_byte. Handle
1041 FP regsets properly.
1042
9f62d0e2
DJ
10432006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1044
1045 * mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
1046 (mips_fill_gregset): Renamed from fill_gregset.
1047 (mips_supply_fpregset): Renamed from supply_fpregset.
1048 (mips_fill_fpregset): Renamed from fill_fpregset.
1049 (fetch_core_registers): Update calls.
1050 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
1051 functions.
1052
26c53e50
DJ
10532006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1054
1055 * mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
1056
5b652102
DJ
10572006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1058
1059 * mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
1060 Correct arithmetic for 64-bit CORE_ADDR.
1061
d05f6826
DJ
10622006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1063
1064 * mips-linux-tdep.c: Include "floatformat.h".
1065 (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
0a407ead
DJ
1066 * mips-tdep.c (mips_n32n64_return_value): Support 128-bit long
1067 double.
d05f6826
DJ
1068 (print_gp_register_row): Don't print spaces before ignored
1069 or floating point registers.
6367c6b1 1070 * Makefile.in (mips-linux-tdep.o): Update.
d05f6826 1071
3e5af19e
DJ
10722006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1073
1074 * mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
1075 for code addresses.
1076 (non_heuristic_proc_desc): Likewise.
1077
dc60ece8
DJ
10782006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1079
1080 * mips-linux-nat.c: Include "gdb_proc_service.h".
1081 (PTRACE_GET_THREAD_AREA): Define.
1082 (ps_get_thread_area): New.
1083 * Makefile.in (mips-linux-nat.o): Update.
1084
2f83030f
JB
10852006-03-13 Jim Blandy <jimb@codesourcery.com>
1086
1087 * MAINTAINERS: Use my work address.
1088
56aac7e8 10892006-03-09 Michael Snyder <msnyder@redhat.com>
a9877905 1090
56aac7e8
MS
1091 * linux-nat.c (kill_inferior): Just call target_mourn_inferior
1092 instead of getting tricky for the multi-fork case.
1093 * linux-fork.c (linux_fork_killall): Call PT_KILL and waitpid
1094 for each fork, and then use init_fork_list to delete them.
a9877905 1095
831004b7
AO
10962006-03-08 Alexandre Oliva <aoliva@redhat.com>
1097
1098 * solib-svr4.c (svr4_current_sos): Move up initialization of
1099 l_addr, such that it clearly covers all cases.
1100
f1b4b38e
AS
11012006-03-08 Andreas Schwab <schwab@suse.de>
1102
1103 * ia64-tdep.c (ia64_libunwind_frame_this_id): Adapt use of
1104 libunwind_frame_prev_register to use a gdb_byte buffer and
1105 extract_unsigned_integer.
1106 (ia64_libunwind_sigtramp_frame_prev_register): Likewise.
1107
1108 * libunwind-frame.c (libunwind_frame_prev_register): Change type
1109 of last argument to `gdb_byte *'
1110 * libunwind-frame.h: Adjust declaration.
1111
f53f0d0b
PB
11122006-03-08 Paul Brook <paul@codesourcery.com>
1113
1114 * arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
1115 (arm_frame_align): New function.
1116 (arm_gdbarch_init): Use it.
1117
b67fd56f
AC
11182006-03-03 Khem Raj <khem@mvista.com>
1119
1120 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
1121 Committed by Andrew Cagney.
1122
a64ae7e0
CV
11232006-03-02 Corinna Vinschen <vinschen@redhat.com>
1124
1125 * mn10300-tdep.c (mn10300_push_dummy_call): Write breakpoint
1126 address to MDR register.
1127
9733fc94
DJ
11282006-03-01 Daniel Jacobowitz <dan@codesourcery.com>
1129
1130 * gdbtypes.c (lookup_struct_elt_type): Correct noerr for recursive
1131 calls.
1132
4897bfb9
RC
11332006-03-01 Randolph Chung <tausq@debian.org>
1134
1135 * somread.c (som_symfile_read): Update comment and remove unneeded
1136 use of a deprecated variable.
1137
6fcecea0
RC
11382006-03-01 Randolph Chung <tausq@debian.org>
1139
1140 * hppa-tdep.h (unwind_table_entry): Update field names to match HP
1141 runtime specification.
1142 * hppa-tdep.c (internalize_unwinds, hppa_frame_cache): Likewise.
1143 (unwind_command): Likewise.
1144
46acf081
RC
11452006-03-01 Randolph Chung <tausq@debian.org>
1146
1147 * hppa-tdep.c (hppa_frame_cache): Handle Region_Description and
1148 Pseudo_SP_Set in unwind record.
1149
477e69e8
RC
11502006-03-01 Randolph Chung <tausq@debian.org>
1151
1152 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Use
1153 TDEP->is_elf to determine if we are working with a SOM binary.
1154 (null_symtab_and_line): Remove unused variable.
1155 * config/pa/hppa64.mt: Use tm-hppa.h.
1156 * config/pa/tm-hppa64.h: Remove file.
1157
848359ac
WZ
11582006-03-01 Wu Zhou <woodzltc@cn.ibm.com>
1159
1160 * f-typeprint.c (f_type_print_base): Delete the redundant space.
1161
f9ec92b6
KB
11622006-02-28 Kevin Buettner <kevinb@redhat.com>
1163
1164 * Makefile.in (mn10300-linux-tdep.o): Update dependencies.
1165 * mn10300-linux-tdep.c (frame.h, trad-frame.h, tramp-frame.h):
1166 Include.
1167 (am33_linux_sigframe_cache_init): New function.
1168 (am33_linux_sigframe, am33_linux_rt_sigframe): New signal frame
1169 descriptions.
1170 (AM33_SIGCONTEXT_D0, AM33_SIGCONTEXT_D1, AM33_SIGCONTEXT_D2)
1171 (AM33_SIGCONTEXT_D3, AM33_SIGCONTEXT_A0, AM33_SIGCONTEXT_A1)
1172 (AM33_SIGCONTEXT_A2, AM33_SIGCONTEXT_A3, AM33_SIGCONTEXT_E0)
1173 (AM33_SIGCONTEXT_E1, AM33_SIGCONTEXT_E2, AM33_SIGCONTEXT_E3)
1174 (AM33_SIGCONTEXT_E4, AM33_SIGCONTEXT_E5, AM33_SIGCONTEXT_E6)
1175 (AM33_SIGCONTEXT_E7, AM33_SIGCONTEXT_LAR, AM33_SIGCONTEXT_LIR)
1176 (AM33_SIGCONTEXT_MDR, AM33_SIGCONTEXT_MCVF, AM33_SIGCONTEXT_MCRL)
1177 (AM33_SIGCONTEXT_MCRH, AM33_SIGCONTEXT_MDRQ, AM33_SIGCONTEXT_SP)
1178 (AM33_SIGCONTEXT_EPSW, AM33_SIGCONTEXT_PC, AM33_SIGCONTEXT_FPUCONTEXT):
1179 New constants.
1180 (am33_linux_init_osabi): Register signal frame unwinders.
1181
e92e42f5
KB
11822006-02-28 Kevin Buettner <kevinb@redhat.com>
1183
1184 * mn10300-tdep.c (mn10300_analyze_prologue): Implement backtrack
1185 out of pattern match by saving relevant state. Fix stack size
1186 adjustment bug.
1187
cc10cae3
AO
11882006-02-28 Alexandre Oliva <aoliva@redhat.com>
1189
1190 * solib-svr4.h (struct link_map_offsets): Add l_ld_offset and
1191 l_ld_size fields.
1192 * solib-svr4.c (struct lm_info): Add l_addr field.
1193 (LM_ADDR_FROM_LINK_MAP): Renamed from LM_ADDR.
1194 (HAS_LM_DYNAMIC_FROM_LINK_MAP): New.
1195 (LM_DYNAMIC_FROM_LINK_MAP): New.
1196 (LM_ADDR_CHECK): New. Use it instead of LM_ADDR.
1197 (svr4_current_sos): Initialize l_addr. Adjust.
1198 (svr4_relocate_section_addresses): Adjust.
1199 (svr4_ilp32_fetch_link_map_offsets): Define new members.
1200 (svr4_lp64_fetch_link_map_offsets): Likewise.
1201 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
1202 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Likewise.
1203 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
1204 * Makefile.in (solib-svr4.o): Depend on $(elf_bfd_h).
1205
691342f9
DM
12062006-02-26 David S. Miller <davem@sunset.davemloft.net>
1207
1208 * config/sparc/linux.mt (TDEPFILES): Add sol2-tdep.o.
1209 * config/sparc/linux64.mt (TDEPFILES): Likewise.
1210
2c387241
AM
12112006-02-27 Alan Modra <amodra@bigpond.net.au>
1212
1213 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
1214 (ppc_linux_remove_watchpoint): Likewise, and args.
1215
3597fb82
MK
12162006-02-26 Mark Kettenis <kettenis@gnu.org>
1217
1218 * i386obsd-tdep.c (i386obsd_trapframe_sniffer): Also recognize
1219 "soft" interrupts.
1220
637d6690
CW
12212006-02-24 Charles Wilson <cygwin@cwilson.fastmail.fm>
1222
1223 * gdb/defs.h: unconditionally include <fcntl.h>, and
1224 ensure that O_BINARY is defined.
1225 * gdb/solib.c(solib_open): ensure solib files are opened in
1226 binary mode.
1227 * gdb/corelow.c: Remove O_BINARY macro definition.
1228 * gdb/exec.c: Remove O_BINARY macro definition
1229 * gdb/remote-rdp.c: Remove O_BINARY macro definition
1230 * gdb/source.c: Remove O_BINARY macro definition
1231 * gdb/symfile.c: Remove O_BINARY macro definition
1232
9846e541
RC
12332006-02-24 Randolph Chung <tausq@debian.org>
1234
1235 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize
1236 argreg.
1237 * solib-som.c (som_solib_remove_inferior_hook): Remove unused
1238 function.
1239
2a5e440c
WZ
12402006-02-24 Wu Zhou <woodzltc@cn.ibm.com>
1241
1242 * f-exp.y: Symbol '%' is not used as the modulus operator in
1243 Fortran. Delete this from Fortran expression.
1244 It is now used by Fortran 90 and later to access the member
1245 of derived type. Add this into Fortran expression.
1246 * f-valprint.c (f_val_print): Add code to handle TYPE_CODE_STRUCT.
1247 Print each elements in the derived type.
1248 * f-typeprint.c (print_equivalent_f77_float_type): Add a parameter
1249 level into the function definition to do indented printing. And
1250 call fprintfi_filtered instead to do indented printing.
1251 (f_type_print_base): Replace fprintf_filtered with the indented
1252 version (fprintfi_filtered).
1253 (f_type_print_base): Call indented print_equivalent_f77_float_type.
1254 (f_type_print_base): Add code to handle TYPE_CODE_STRUCT. Print
1255 the definition of the derived type.
1256
92128691
DJ
12572006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
1258
1259 * gdb_curses.h: Provide a fallback prototype for tgetnum.
1260
a6205f53
DJ
12612006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
1262
1263 * doublest.h: Conditionalize DOUBLEST on PRINTF_HAS_LONG_DOUBLE
1264 also.
1265 (DOUBLEST_FORMAT): Rename to DOUBLEST_PRINT_FORMAT.
1266 (DOUBLEST_SCAN_FORMAT): New.
1267 * ada-lex.l (PRINTF_HAS_LONG_DOUBLE): Remove redefinitions.
1268 (processReal): Use DOUBLEST_SCAN_FORMAT.
1269 * c-exp.y (parse_number): Likewise.
1270 * jv-exp.y (parse_number): Likewise.
1271 * objc-exp.y (parse_number): Likewise.
1272 * p-exp.y (parse_number): Likewise.
1273
0f0b8dcd
DJ
12742006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
1275
1276 * event-top.c (async_do_nothing, async_disconnect)
1277 (async_stop_sig, async_float_handler): Remove duplicated
1278 prototypes.
1279 (handle_sighup): Guard prototype with SIGHUP.
1280 (async_do_nothing): Guard function and prototype with
1281 SIGQUIT || SIGHUP.
1282 (async_disconnect): Guard prototype with SIGHUP.
1283 (async_stop_sig): Guard prototype with STOP_SIGNAL.
1284
4e91d01c
DJ
12852006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
1286
1287 * maint.c (maintenance_dump_me): Remove unnecessary prototype.
1288
1e0600be
DJ
12892006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
1290
1291 * win32-termcap.c (tputs): Return 0.
1292
094a342e
MK
12932006-02-21 Mark Kettenis <kettenis@gnu.org>
1294
1295 * configure.ac: Introduce ---enable-werror, which adds -Werror to
1296 the compiler command line. Enabled by default. Disable with
1297 --disable-werror.
1298 * configure regenerate.
1299
74763737
DJ
13002006-02-21 Daniel Jacobowitz <dan@codesourcery.com>
1301
1302 * elfread.c (elf_symtab_read): Skip symbols which BFD considers
1303 special.
1304
13d35ae5
AS
13052006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
1306
1307 * defs.h (directory_switch): Add prototype.
1308 * main.c (captured_main): Use directory_switch() instead of
1309 directory_command() to add directories from the -d switch.
1310 * source.c (directory_switch): New function.
1311 (add_path): Use buildargv() to parse spaces in filenames properly.
1312 Strip multiple trailing '/' rather than just one.
1313
5b96932b
AS
13142006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
1315
1316 * symfile.c (add_symbol_file_command): Use buildargv(), instead of
1317 hand decoding the command line, to allow use of quotes and spaces.
1318 (_initialize_symfile): Reorganize the help message for add-symbol-file
1319 such that 'help files' shows a better message.
1320
a6b0a3f3
AS
13212006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
1322
1323 * sh-tdep.c (sh_generic_show_regs): Reformat both code and output.
1324 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs): Likewise.
1325 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs): Likewise.
1326 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs): Likewise.
1327
17fbb0bd
DJ
13282006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
1329
1330 * linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
1331 and __SIGRTMIN + 1.
1332
444abaca
DJ
13332006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
1334
1335 * remote.c: Add an enumeration for configurable remote
1336 packets.
1337 (remote_protocol_packets, set_remote_protocol_packet_cmd)
1338 (show_remote_protocol_packet_cmd): New.
1339 (remote_protocol_vcont)
1340 (set_remote_protocol_vcont_packet_cmd)
1341 (show_remote_protocol_vcont_packet_cmd)
1342 (remote_protocol_qSymbol)
1343 (set_remote_protocol_qSymbol_packet_cmd)
1344 (show_remote_protocol_qSymbol_packet_cmd)
1345 (remote_protocol_P, set_remote_protocol_P_packet_cmd)
1346 (show_remote_protocol_P_packet_cmd)
1347 (remote_protocol_Z)
1348 (set_remote_protocol_Z_software_bp_packet_cmd)
1349 (show_remote_protocol_Z_software_bp_packet_cmd)
1350 (set_remote_protocol_Z_hardware_bp_packet_cmd)
1351 (show_remote_protocol_Z_hardware_bp_packet_cmd)
1352 (set_remote_protocol_Z_write_wp_packet_cmd)
1353 (show_remote_protocol_Z_write_wp_packet_cmd)
1354 (set_remote_protocol_Z_read_wp_packet_cmd)
1355 (show_remote_protocol_Z_read_wp_packet_cmd)
1356 (set_remote_protocol_Z_access_wp_packet_cmd)
1357 (show_remote_protocol_Z_access_wp_packet_cmd)
1358 (remote_protocol_binary_download)
1359 (set_remote_protocol_binary_download_cmd)
1360 (show_remote_protocol_binary_download_cmd)
1361 (remote_protocol_qPart_auxv)
1362 (set_remote_protocol_qPart_auxv_packet_cmd)
1363 (show_remote_protocol_qPart_auxv_packet_cmd)
1364 (remote_protocol_qGetTLSAddr)
1365 (set_remote_protocol_qGetTLSAddr_packet_cmd)
1366 (show_remote_protocol_qGetTLSAddr_packet_cmd)
1367 (remote_protocol_p)
1368 (set_remote_protocol_p_packet_cmd)
1369 (show_remote_protocol_p_packet_cmd): Delete.
1370
1371 (init_all_packet_configs): Simplify.
1372 (set_remote_protocol_Z_packet_cmd)
1373 (show_remote_protocol_Z_packet_cmd)
1374 (remote_check_symbols, remote_vcont_probe, remote_vcont_resume)
1375 (remote_fetch_registers, remote_prepare_to_store)
1376 (remote_store_registers, check_binary_download)
1377 (remote_write_bytes, remote_insert_breakpoint)
1378 (remote_remove_breakpoint, remote_insert_watchpoint)
1379 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
1380 (remote_remove_hw_breakpoint, remote_xfer_partial)
1381 (remote_get_thread_local_address): Update for packet array.
1382 (_initialize_remote): Likewise; also update for common
1383 set/show commands.
1384
3bd72c6f
DJ
13852006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
1386
1387 * symfile.c (place_section): Correct retry logic.
1388
a244bdca
CF
13892006-02-19 Christopher Faylor <cgf@timesys.com>
1390
1391 * win32_nat.c (cygwin_load_start): New variable.
1392 (cygwin_load_end): Ditto.
1393 (have_saved_context): Ditto.
1394 (saved_context): Ditto.
1395 (max_dll_name_len): Delete obsolete variable.
1396 (do_win32_fetch_inferior_registers): Use context saved from cygwin1.dll
1397 if we are in a cygwin signal rather than a windows signal.
1398 (solib_symbols_add): Detect and store beginning and end of cygwin DLL
1399 if dll being loaded is the cygwin DLL.
1400 (register_loaded_dll): Remove calculation of max_dll_name_len.
1401 (win32_clear_solib): Ditto.
1402 (handle_load_dll): Delete obsolete variable. Remove unneeded call to
1403 solib_add.
1404 (handle_output_debug_string): Detect and store signal information sent
1405 by Cygwin here.
1406 (handle_exception): Silently pass on errors in the cygwin DLL. Return
1407 -1 on first pass exception.
1408 (win32_continue): Remove spurious clearing of continue_status.
1409 (get_win32_debug_event): Deal differently first chance exception.
1410
806e23c0
RC
14112006-02-19 Randolph Chung <tausq@debian.org>
1412
1413 * hppa-tdep.c (hppa_in_solib_call_trampoline): Only use if no
1414 unwind entry.
1415
d843c49c
FF
14162006-02-16 Fred Fish <fnf@specifix.com>
1417
1418 * eval.c (evaluate_subexp_standard): For OP_TYPE, return
1419 a non lval value zero, of the appropriate type, when avoiding
1420 side effects.
1421 * typeprint.c (ptype_eval): Remove function and declaration.
1422 (ptype_command): Simplify to just a call to whatis_exp.
1423
1c5bada0
PB
14242006-02-15 Paul Brook <paul@codesourcery.com>
1425
1426 * arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
1427 Load insn opcodes as unsigned values.
1428
96c1eda2
AO
14292006-02-14 Alexandre Oliva <aoliva@redhat.com>
1430
1431 * doublest.h (DOUBLEST): Use long double only if we can scan
1432 it in. Undefine HAVE_LONG_DOUBLE otherwise.
1433 (DOUBLEST_FORMAT): New.
1434 * c-exp.y (parse_number): Use it.
1435 * jv-exp.y (parse_number): Likewise.
1436 * objc-exp.y (parse_number): Likewise.
1437 * p-exp.y (parse_number): Likewise.
1438 * varobj.c (free_variable): Silence type-punning warnings.
1439 * tui/tui-data.h (struct tui_list): Change type of list member.
1440 * tui/tui-data.c: Remove no-longer-needed type casts.
1441 (source_windows): Silence type-punning warnings.
1442 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Likewise.
1443
92dd43fa
MK
14442006-02-13 Mark Kettenis <kettenis@gnu.org>
1445
1446 Fix PR breakpoints/2080.
1447 * i386-tdep.c (struct i386_frame_cache): Add stack_align member.
1448 (i386_analyze_stack_align): New function.
1449 (i386_analyze_prologue): Use i386_analyze_stack_align.
1450 (i386_frame_cache): Deal with stack realignment.
1451
7314787a
NR
14522006-02-14 Nick Roberts <nickrob@snap.net.nz>
1453
1454 * mi/gdb-mi.el: Use more functions from gdb-ui.el.
1455 (gdb-break-list-regexp): Match "what" field if present.
be85b69f 1456 (gdb-stack-list-frames-regexp): Match "from" field if present.
7314787a
NR
1457 (gdb-stack-list-frames-handler): Present output like "info
1458 breakpoints" so regexps can be shared with gdb-ui
1459
0ea3f30e
DJ
14602006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
1461
1462 * NEWS: Mention native Windows support.
1463 * Makefile.in (gdb_select_h, ser_tcp_h): New.
1464 (ALLDEPFILES): Add ser-mingw.c.
1465 (event-loop.o, inflow.o, mingw-hdep.o, posix-hdep.o, ser-base.o)
1466 (ser-tcp.o, ser-unix.o): Update.
1467 (ser-mingw.o): New rule.
1468 * configure: Regenerated.
1469 * configure.ac: Add ser-mingw.o for mingw32.
1470 * ser-mingw.c: New file.
1471 * event-loop.c: Include "gdb_select.h".
1472 (gdb_select): Remove, moved to mingw-hdep.c and posix-hdep.c.
1473 * ser-base.c: Include "gdb_select.h".
1474 (ser_base_wait_for): Use gdb_select.
1475 * serial.c (serial_for_fd): New function.
1476 (serial_fdopen): Try "terminal" before "hardwire". Initialize
1477 the allocated struct serial.
1478 (serial_wait_handle): New function.
1479 * serial.h (serial_for_fd, serial_wait_handle): New prototypes.
1480 (struct serial_ops) [USE_WIN32API]: Add wait_handle.
1481 * gdb_select.h: New file.
1482 * ser-tcp.c: Include "ser-tcp.h". Remove unused "ser-unix.h" include.
1483 (net_close, net_read_prim, net_write_prim): Make global.
1484 (net_open): Likewise. Pass an exception set to select. Whitespace fix.
1485 Document why we can not use gdb_select.
1486 (_initialize_ser_tcp) [USE_WIN32API]: Do not register TCP support here.
1487 * ser-tcp.h: New file.
1488 * inflow.c (gdb_has_a_terminal): Don't initialize stdin_serial here.
1489 (handle_sigio): Use gdb_select.
1490 (initialize_stdin_serial): New function.
1491 * terminal.h (initialize_stdin_serial): New prototype.
1492 * top.c (gdb_init): Call initialize_stdin_serial.
1493 * mingw-hdep.c (gdb_select): New function, moved from gdb_select in
1494 event-loop.c. Add exception condition support. Use serial_for_fd
1495 and serial_wait_handle. Fix timeout handling.
1496 * posix-hdep.c: Include "gdb_select.h".
1497 (gdb_select): New function.
1498 * remote-st.c (connect_command): Use gdb_select.
1499 * ser-unix.c: Include "gdb_select.h".
1500 (hardwire_send_break, wait_for): Use gdb_select.
1501
121ce6e5
DJ
15022006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
1503
1504 * Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
1505 (ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c.
1506 * configure.ac: Add gdb_host_obs to CONFIG_OBS. Set gdb_host_obs
1507 to posix-hdep.o by default.
1508 * configure: Regenerated.
1509 * configure.host: Document gdb_host_obs. Add an entry for
1510 i[34567]86-*-mingw32*.
1511 * mingw-hdep.c, posix-hdep.c: New files.
1512 * utils.c (safe_strerror): Remove, moved to posix-hdep.o.
1513
1f82754b
JB
15142006-02-10 Joel Brobecker <brobecker@adacore.com>
1515
1516 * defs.h (gdb_osabi): New enum value GDB_OSABI_AIX.
1517 * osabi.c (gdb_osabi_name): Add name of new value GDB_OSABI_AIX.
1518 * rs6000-tdep.h: New file.
1519 * rs6000-tdep.c: Include "rs6000-tdep.h".
1520 (rs6000_gdbarch_init): Remove enabling of software single step.
1521 Will be done in the AIX-specific initialization routine.
1522 * rs6000-aix-tdep.c: New file.
1523 * config/powerpc/aix.mt (TDEPFILES): Add rs6000-aix-tdep.o.
1524 * Makefile.in (rs6000_tdep_h): New variable.
1525 (rs6000-tdep.o): Update dependencies.
1526 (rs6000-aix-tdep.o): New rule.
1527
577b7047
JB
15282006-02-10 Joel Brobecker <brobecker@adacore.com>
1529
1530 * aix-thread.c (_initialize_aix_thread): Use add_setshow_boolean_cmd
1531 instead of add_setshow_zinteger_cmd to defined the aix-thread
1532 boolean setting.
1533
ff800d76
NR
15342006-02-10 Nick Roberts <nickrob@snap.net.nz>
1535
1536 * mi/gdb-mi.el: Update to reflect changes in Emacs 22.0.50.
1537
5afb4e99
DJ
15382006-02-09 Daniel Jacobowitz <dan@codesourcery.com>
1539
1540 * dwarf2read.c (struct dwarf2_per_cu_data): Reduce length to
1541 30 bits. Add load_all_dies flag.
1542 (load_partial_dies): Load all DIEs if per_cu->load_all_dies is set.
1543 Load DW_TAG_member by default. Remove internal_error call.
1544 (find_partial_die): Reload the compilation unit if we can not find
1545 a DIE in the cache. Call internal_error here if we still can not
1546 find the DIE.
1547
a832795c
NR
15482006-02-10 Nick Roberts <nickrob@snap.net.nz>
1549
1550 * breakpoint.c (print_one_breakpoint): Add break to case
1551 bp_catch_vfork in switch statement.
1552
c9dd6fef
WZ
15532006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
1554
1555 * config/i386/nm-i386sol2.h: Update copyright year.
1556 * config/mips/nm-irix5.h: Ditto.
1557 * config/sparc/nm-sol2.h: Ditto.
1558 * s390-nat.c: Ditto.
1559 * ppc-linux-nat.c: Ditto.
1560
2a3cdf79
WZ
15612006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
1562
1563 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Delete.
1564 * config/i386/nm-i386sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
1565 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1566 * config/mips/nm-irix5.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
1567 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1568 * config/sparc/nm-sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
1569 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1570 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): New.
1571 (inf_ttrace_region_size_ok_for_hw_watchpoint): Delete.
1572 (inf_ttrace_target): Delete to_region_size_ok_for_hw_watchpoint and
1573 add to_region_ok_for_hw_watchpoint.
1574 * s390-nat.c (s390_region_size_ok_for_hw_watchpoint): Delete.
1575 (s390_region_ok_for_hw_watchpoint): New.
1576 (_initialize_s390_nat): Delete to_region_size_ok_for_hw_watchpoint
1577 and add to_region_ok_for_hw_watchpoint.
1578 * target.c (default_region_size_ok_for_hw_watchpoint,
1579 debug_to_region_size_ok_for_hw_watchpoint): Delete prototype.
1580 (update_current_target): Delete to_region_size_ok_for_hw_watchpoint
1581 inheritance and default_region_size_ok_for_hw_watchpoint.
1582 (default_region_ok_for_hw_watchpoint): If len is less than or equal
1583 the length of void pointer, return ok.
1584 (default_region_size_ok_for_hw_watchpoint): Delete.
1585 (debug_to_region_size_ok_for_hw_watchpoint): Delete.
1586 (setup_target_debug): Delete to_region_size_ok_for_hw_watchpoint.
1587 * target.h (struct target_ops): Delete
1588 to_region_size_ok_for_hw_watchpoint.
1589 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1590
e0d24f8d
WZ
15912006-02-08 Ben Elliston <bje@au1.ibm.com>
1592 Wu Zhou <woodzltc@cn.ibm.com>
1593
1594 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG,
1595 PTRACE_GETSIGINFO): Define.
1596 (last_stopped_data_address): New.
1597 (ppc_linux_check_watch_resources): New function.
1598 (ppc_linux_region_ok_for_hw_watchpoint): New function.
1599 (ppc_linux_insert_watchpoint): New function.
1600 (ppc_linux_remove_watchpoint): New function.
1601 (ppc_linux_stopped_data_address): New function.
1602 (ppc_linux_stopped_by_watchpoint): New function.
1603 (_initialize_ppc_linux_nat): Set the above hardware watchpoint
1604 related target vectors.
1605 * rs6000-tdep.c (rs6000_gdbarch_init): Set PPC architectures
1606 to have nonsteppable watchpoint.
1607 * target.c (default_region_ok_for_hw_watchpoint,
1608 debug_to_region_ok_for_hw_watchpoint): New prototypes.
1609 (update_current_target): Inherit to_region_ok_for_hw_watchpoint
1610 and set default to_region_ok_for_hw_watchpoint.
1611 (default_region_ok_for_hw_watchpoint): New function.
1612 (debug_to_region_ok_for_hw_watchpoint): New function.
1613 (setup_target_debug): Set to_region_ok_for_hw_watchpoint of
1614 debug_target.
1615 * target.h (struct target_ops): Add a new target vector
1616 to_region_ok_for_hw_watchpoint.
1617 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define this if it is not
1618 defined anyplace else.
927890d0 1619
e0d24f8d 16202005-02-07 Joel Brobecker <brobecker@adacore.com>
927890d0
JB
1621 * symfile.c (add_symbol_file_command): Abort if the user forgot
1622 to provide the address when the file has been loaded.
1623
f4d408c6
DJ
16242006-02-07 Daniel Jacobowitz <dan@codesourcery.com>
1625
1626 * MAINTAINERS: Update file based on maintainers survey. Add
1627 a note to Past Maintainers. Move unresponsive or inactive
1628 maintainers to Authorized Committers or Past Maintainers as
1629 appropriate. Correct Jim Kingdon's email address. Remove
1630 vacant areas of responsibility.
1631
38fcd64c
DJ
16322006-02-06 Vladimir Prus <ghost@cs.msu.su>
1633
1634 * breakpoint.c (print_one_breakpoint): For MI-like UI, output
1635 fullname field.
1636
7b871fab
DJ
16372006-02-03 Daniel Jacobowitz <dan@codesourcery.com>
1638
1639 * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
1640 * exceptions.c (exception_none, exceptions_state_mc_init)
1641 (throw_vfatal): Use GDB_NO_ERROR.
1642
e4cd0d6a
MK
16432006-02-02 Mark Kettenis <kettenis@gnu.org>
1644
1645 * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
1646 r_map_size members. Add r_version_offset, r_version_size and
1647 r_ldsomap_offset members.
1648 * solib-svr4.c (solib_svr4_r_map): Renamed from
1649 fetch_link_map_member. Simplify using read_memory_typed_address.
1650 (solib_svr4_r_ldsomap): New function.
1651 (open_symbol_file_object): Use solib_svr_r_map.
1652 (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic
1653 linker by using solib_svr4_r_ldsomap.
1654 (svr4_ilp32_fetch_link_map_offsets)
1655 (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct
1656 link_map_offsets'.
1657 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for
1658 changes to `struct link_map_offsets'.
1659 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets)
1660 (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to
1661 `struct link_map_offsets'.
1662
e26af52f
DJ
16632006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1664
1665 * linux-nat.c (struct saved_ptids, threads_to_delete)
1666 (record_dead_thread, prune_lwps, find_thread_from_lwp)
1667 (exit_lwp): New.
1668 (linux_nat_resume): Call prune_lwps.
1669 (wait_lwp, linux_nat_wait): Call exit_lwp.
1670
46e9880c
DJ
16712006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1672
1673 * printcmd.c (printf_command): Make format string checking
1674 stricter. Add separate cases for long_arg, ptr_arg, and
1675 long_double_arg.
1676 * utils.c (xstrvprintf): Improve the error message issued
1677 for a bad format string.
1678 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
1679 New variables.
1680 (gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
1681 $(NO_WERROR_CFLAGS).
1682 (printcmd.o): Likewise. Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
1683 enable -Werror.
1684
37a105a1
DJ
16852006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1686
1687 * Makefile.in (remote.o): Update.
1688 * remote.c (show_packet_config_cmd): Shorten messages.
1689 (remote_set_cmdlist, remote_show_cmdlist): Make file-static.
1690 (show_remote_cmd): Iterate.
1691 (_initialize_remote): Remove remote_set_cmdlist,
1692 remote_show_cmdlist.
1693
ae5a43e0
DJ
16942006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1695
1696 * Makefile.in (gdbtypes_h, gdbtypes.o, utils.o): Update.
1697 * defs.h (hashtab_obstack_allocate, dummy_obstack_deallocate): Add
1698 prototypes.
1699 * dwarf2read.c (read_subroutine_type): Use TYPE_ZALLOC.
1700 (hashtab_obstack_allocate, dummy_obstack_deallocate): Moved to...
1701 * utils.c (hashtab_obstack_allocate, dummy_obstack_deallocate):
1702 ...here.
1703 * gdbtypes.c: Include "hashtab.h".
1704 (build_gdbtypes): Remove extra prototype.
1705 (struct type_pair, type_pair_hash, type_pair_eq)
1706 (create_copied_types_hash, copy_type_recursive): New.
1707 * gdbtypes.h: Include "hashtab.h".
1708 (TYPE_ZALLOC): New.
1709 (create_copied_types_hash, copy_type_recursive): New prototypes.
1710 * objfiles.c (free_objfile): Call preserve_values.
1711 * symfile.c (reread_symbols): Likewise.
1712 (clear_symtab_users): Remove calls to clear_value_history and
1713 clear_internalvars.
1714 * value.c (clear_value_history, clear_internalvars): Removed.
1715 (preserve_one_value, preserve_values): New functions.
1716 * value.h (clear_value_history, clear_internalvars): Removed.
1717 (preserve_values): New prototype.
1718
1719 * tracepoint.c (_initialize_tracepoint): Do not initialize convenience
1720 variables here.
1721
b929c77f
MK
17222006-01-29 Mark Kettenis <kettenis@gnu.org>
1723
1724 * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
1725 Fixes PR tdep/2075.
1726
1581f359
JB
17272006-01-27 Joel Brobecker <brobecker@adacore.com>
1728
1729 * MAINTAINERS: Use a consistent email address for brobecker.
1730
37706b70
JB
17312006-01-27 Joel Brobecker <brobecker@adacore.com>
1732
1733 * infcmd.c (post_create_inferior): Fix copy/paste error introduced
1734 in the previous change.
1735
9353355f
DJ
17362006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
1737
1738 PR gdb/1914
1739 * fork-child.c (fork_inferior): Don't call
1740 solib_create_inferior_hook.
1741 * infcmd.c (post_create_inferior): Call solib_add,
1742 solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
1743 (attach_command): Don't call solib_add or
1744 re_enable_breakpoints_in_shlibs. Call post_create_inferior
1745 instead.
1746 * remote.c (remote_open_1): Don't call solib_create_inferior_hook
1747 or observer_notify_inferior_created. Call post_create_inferior
1748 instead.
1749 * corelow.c: Don't include "observer.h".
1750 (solib_add_stub): Deleted.
1751 (core_open): Don't call observer_notify_inferior_created or
1752 solib_add_stub. Call post_create_inferior instead.
1753 * inf-ptrace.c: Don't include "observer.h".
1754 (inf_ptrace_attach): Don't call observer_notify_inferior_created.
1755 * inf-ttrace.c: Don't include "observer.h".
1756 (inf_ttrace_attach): Don't call observer_notify_inferior_created.
1757 * inferior.h (solib_create_inferior_hook): Remove redundant
1758 prototype.
1759 * inftarg.c: Don't include "observer.h".
1760 (child_attach): Don't call observer_notify_inferior_created.
1761 * Makefile.in: Update dependencies.
1762
281b533b
DJ
17632006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
1764
1765 * infcmd.c: Include "observer.h".
1766 (post_create_inferior): New function.
1767 (run_command_1): Call it. Also call proceed.
1768 * inferior.h (post_create_inferior): New prototype.
1769 * Makefile.in (infcmd.o): Update.
1770
1771 * gnu-nat.c (gnu_create_inferior): Don't call proceed.
1772 * go32-nat.c (go32_create_inferior): Likewise.
1773 * nto-procfs.c (procfs_create_inferior): Likewise.
1774 * procfs.c (procfs_create_inferior): Likewise.
1775 * remote-sim.c (gdbsim_create_inferior): Likewise.
1776 * remote.c (extended_remote_create_inferior)
1777 (extended_remote_async_create_inferior): Likewise.
1778 * win32-nat.c (win32_create_inferior): Likewise.
1779 * wince.c (child_create_inferior): Likewise.
1780
1781 * monitor.c (monitor_create_inferior): Don't call proceed.
1782 Set the PC manually.
1783 * ocd.c (ocd_create_inferior): Likewise.
1784 * remote-e7000.c (e7000_create_inferior): Likewise.
1785 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1786 * remote-mips.c (mips_create_inferior): Likewise.
1787 * remote-rdp.c (remote_rdp_create_inferior): Likewise.
1788 * remote-sds.c (sds_create_inferior): Likewise.
1789 * remote-st.c (st2000_create_inferior): Likewise.
1790
1791 * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
1792 proceed or observer_notify_inferior_created.
1793 * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
1794 * inftarg.c (child_create_inferior): Likewise.
1795
e23fc6de
DJ
17962006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
1797
1798 * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
1799 after mourning the inferior.
1800
13d6656b
JB
18012006-01-24 Jim Blandy <jimb@redhat.com>
1802
1803 * valarith.c (binop_user_defined_p): Handle refs to typedefs.
1804
59f92a09
FF
18052006-01-24 Fred Fish <fnf@specifix.com>
1806
1807 * parse.c (source.h): Include.
1808 (parse_exp_in_context): Use static source context if no
1809 other context found.
1810
dda63807
AS
18112006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
1812
1813 * sh-tdep.c: Include reggroups.h.
1814 (sh_register_reggroup_p): New function.
1815 (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
1816 * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
1817
4b505b12
AS
18182006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
1819
1820 * cli/cli-cmds.c: Include fcntl.h.
1821 (source_command): Use the GDB search path to find script files.
1822
721d14ba
DJ
18232006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
1824
1825 PR tdep/2029
1826 Suggested by Till Straumann <strauman@slac.stanford.edu>:
1827 * rs6000-tdep.c (skip_prologue): Update check for later mtlr
1828 instructions. Handle PIC bcl.
1829
3d64d617
DJ
18302006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
1831
1832 * config/djgpp/README: Typo fix.
1833 * config/djgpp/fnchange.lst: Update.
1834
0a8f48b9
MK
18352006-01-22 Mark Kettenis <kettenis@gnu.org>
1836
c893be75
MK
1837 * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
1838 (sparc_address_from_register): New prototype.
1839 (sparcnbsd_step_trap): New prototype.
1840 * sparc-tdep.c (sparc_address_from_register): Make globally
1841 visible.
1842 (sparc_analyze_control_transfer): Change prototype to accept
1843 `struct gdbarch *' as first argument. Allow for optional hnadling
1844 for trap instructions.
1845 (sparc_step_trap): New function.
1846 (sparc_software_single_step): Adjust call to
1847 sparc_analyze_control_trabsfer.
1848 (sparc32_gdbarch_init): Initialize TDEP->step_trap.
1849 * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
1850 (sparc32nbsd_init_abi): Set TDEP->step_trap.
1851 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
1852 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
1853
0a8f48b9
MK
1854 * sparc-tdep.c (sparc32_return_value): Convert to use
1855 RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
1856 RETURN_VALUE_STRUCT_CONVENTION.
1857 (sparc32_extract_struct_value_address): Remove.
1858
1f3a99d5
DJ
18592006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1860
1861 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
1862 (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
1863
84eb3c4f
DJ
18642006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1865
1866 * solib.c (info_sharedlibrary_command): Avoid internal_error.
1867
878d9193
MK
18682006-01-21 Mark Kettenis <kettenis@gnu.org>
1869
1870 * i386-tdep.c (i386_mxcsr_type): New variable.
1871 (i386_init_types): Initialize i386_mxcsr_type.
1872 (i386_register_type): Return i386_mxcsr_type for %mxcsr.
1873 * i386-tdep.c (i386_mxcsr_type): New extern.
1874 * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
1875 %mxcsr.
1876
acab6ab2
MM
18772006-01-20 Mark Mitchell <mark@codesourcery.com>
1878
1879 * Makefile.in (remote-rdi.o): Remove.
1880 (rdi-share/libangsd.a): Likewise.
1881 * README: Don't mention remote-rdi.c.
1882 * NEWS: Mention removal of rdi-share.
1883 * configure.ac: Don't configure rdi-share subdirectory.
1884 * remote-rdi.c: Remove.
1885 * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
1886 (TDEPLIBS): Remove rdi-share/libangsd.a.
1887 * rdi-share/Makefile.am: Remove.
1888 * rdi-share/Makefile.in: Likewise.
1889 * rdi-share/README.CYGNUS: Likewise.
1890 * rdi-share/aclocal.m4: Likewise.
1891 * rdi-share/adp.h: Likewise.
1892 * rdi-share/adperr.h: Likewise.
1893 * rdi-share/angel.h: Likewise.
1894 * rdi-share/angel_bytesex.c: Likewise.
1895 * rdi-share/angel_bytesex.h: Likewise.
1896 * rdi-share/angel_endian.h: Likewise.
1897 * rdi-share/ardi.c: Likewise.
1898 * rdi-share/ardi.h: Likewise.
1899 * rdi-share/armdbg.h: Likewise.
1900 * rdi-share/buffers.h: Likewise.
1901 * rdi-share/chandefs.h: Likewise.
1902 * rdi-share/channels.h: Likewise.
1903 * rdi-share/chanpriv.h: Likewise.
1904 * rdi-share/configure: Likewise.
1905 * rdi-share/configure.in: Likewise.
1906 * rdi-share/crc.c: Likewise.
1907 * rdi-share/crc.h: Likewise.
1908 * rdi-share/dbg_conf.h: Likewise.
1909 * rdi-share/dbg_cp.h: Likewise.
1910 * rdi-share/dbg_hif.h: Likewise.
1911 * rdi-share/dbg_rdi.h: Likewise.
1912 * rdi-share/devclnt.h: Likewise.
1913 * rdi-share/devices.h: Likewise.
1914 * rdi-share/devsw.c: Likewise.
1915 * rdi-share/devsw.h: Likewise.
1916 * rdi-share/drivers.c: Likewise.
1917 * rdi-share/drivers.h: Likewise.
1918 * rdi-share/etherdrv.c: Likewise.
1919 * rdi-share/ethernet.h: Likewise.
1920 * rdi-share/host.h: Likewise.
1921 * rdi-share/hostchan.c: Likewise.
1922 * rdi-share/hostchan.h: Likewise.
1923 * rdi-share/hsys.c: Likewise.
1924 * rdi-share/hsys.h: Likewise.
1925 * rdi-share/logging.c: Likewise.
1926 * rdi-share/logging.h: Likewise.
1927 * rdi-share/msgbuild.c: Likewise.
1928 * rdi-share/msgbuild.h: Likewise.
1929 * rdi-share/params.c: Likewise.
1930 * rdi-share/params.h: Likewise.
1931 * rdi-share/rx.c: Likewise.
1932 * rdi-share/rxtx.h: Likewise.
1933 * rdi-share/serdrv.c: Likewise.
1934 * rdi-share/serpardr.c: Likewise.
1935 * rdi-share/sys.h: Likewise.
1936 * rdi-share/tx.c: Likewise.
1937 * rdi-share/unixcomm.c: Likewise.
1938 * rdi-share/unixcomm.h: Likewise.
1939
4577207e
MK
19402006-01-21 Mark Kettenis <kettenis@gnu.org>
1941
1942 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
1943 Change type of last argument to `gdb_byte *'.
1944
34f55018
MK
19452006-01-20 Mark Kettenis <kettenis@gnu.org>
1946
1947 * hppa-tdep.h (hppa_in_solib_call_trampoline)
1948 (hppa_skip_trampoline_code): New prototypes.
1949 * hppa-tdep.c (struct insn_pattern): New.
1950 (hppa_long_branch_stub, hppa_long_branch_pic_stub)
1951 (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
1952 here from hppa-linux-tdep.c
1953 (HPPA_MAX_INSN_PATTERN_LEN): New define.
1954 (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
1955 (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
1956 functions based on functions removed from hppa-linux-tdep.c.
1957 * hppa-linux-tdep.c (hppa_long_branch_stub)
1958 (hppa_long_branch_pic_stub, hppa_import_stub)
1959 (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
1960 (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
1961 (hppa_linux_in_solib_call_trampoline)
1962 (hppa_linux_skip_trampoline_code): Removed.
1963 (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
1964 hppa_in_solib_call_trampoline and skip_trampoline_code to
1965 hppa_skip_trampoline_code.
1966 * hppabsd-tdep.c (hppabsd_init_abi): Set
1967 TDEP->in_solib_call_trampoline and skip_trampoline_code.
1968
7be93b9e
JB
19692006-01-20 Jim Blandy <jimb@redhat.com>
1970
f408839d
JB
1971 * MAINTAINERS: Change my E-mail address.
1972
7be93b9e
JB
1973 * configure.ac: Add -Wno-pointer-sign to list of build warnings.
1974 * configure: Regenerated.
1975
b2a74f99
DJ
19762006-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1977
1978 * MAINTAINERS: Overhaul.
1979
4f2aea11
MK
19802006-01-18 Mark Kettenis <kettenis@gnu.org>
1981
5ae96ec1
MK
1982 Based on a previous patch form Michal Ludvig:
1983 * amd64-tdep.c (amd64_sse_type): Remove.
1984 (amd64_register_info): Use i386_eflags_type and i386_sse_type
1985 where appropriate.
1986 (AMD64_NUM_REGS): Use ARRAY_SIZE.
1987 (amd64_register_type): Remove code to build amd_sse_type.
1988 * i386-tdep.c (i386_eflag_type): New variable.
1989 (i386_mmx_type, i386_sse_type): Make global.
1990 (i386_init_types): New function.
1991 (i386_build_mmx_type, i386_build_sse_type): Remove functions.
1992 (i386_register_type): Return i386_eflag_type, i386_sse_type and
1993 i386_mmx_type when appropriate.
1994 (_initialize_i386_tdep): Call i386_init_types.
1995 * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
1996 Declare extern.
1997
4f2aea11
MK
1998 Based on a previous patch form Michal Ludvig:
1999 * gdbtypes.c (append_flags_type_flag, init_flags_type): New
2000 functions.
2001 (is_integral_type, rank_one_type, recursive_dump_type): Add
2002 support for TYPE_CODE_FLAGS.
2003 * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
2004 (append_flags_type_field, init_flags_type): New prototypes.
2005 * ada-valprint.c (ada_val_print_1): Add support for
2006 TYPE_CODE_FLAGS.
2007 * c-valprint.c (c_val_print): Likewise.
2008 * f-valprint.c (f_val_print): Likewise.
2009 * p-valprint.c (pascal_val_print): Likewise.
2010 * valprint.c (val_print_type_code_flags): New function.
2011 * valprint.h (val_print_type_code_flags): New prototype.
2012 * value.c (unpack_long, value_from_longest): Add support for
2013 TYPE_CODE_FLAGS.
2014
4cdb5adf
CF
20152006-01-17 Christopher Faylor <cgf@timesys.com>
2016
2017 * MAINTAINERS: Very belatedly remove myself from from the list of
2018 people caught up in the paper trail.
2019
1193688d
JB
20202006-01-17 Jim Blandy <jimb@redhat.com>
2021
4e38b386
JB
2022 * symtab.h (struct general_symbol_info): Use gdb_byte for
2023 value.bytes.
2024 * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
2025 a floating-point constant's value.
2026 * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
2027 to char *.
2028 * findvar.c (read_var_value): Eliminate needless temporary.
2029
1193688d
JB
2030 * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
2031 to match prior change to dwarf2_read_section's type.
2032
0d1243d9
PG
20332006-01-16 Paul Gilliam <pgilliam@us.ibm.com>
2034
2035 * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
2036 * rs6000-tdep.c (insn_changes_sp_or_jumps)
2037 (rs6000_in_function_epilogue_p): New functions.
2038 (rs6000_gdbarch_init): Set in_function_epilogue_p.
2039
fe1b8b76
JB
20402006-01-17 Jim Blandy <jimb@redhat.com>
2041
2042 * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
2043 (struct line_header, struct partial_die_info, struct dwarf_block):
2044 Use gdb_byte for members that refer to Dwarf section contents.
2045 (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
2046 dwarf_decode_macros, load_comp_unit, load_partial_dies,
2047 locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
2048 read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
2049 read_8_bytes, read_address, read_attribute, read_attribute_value,
2050 read_comp_unit, read_comp_unit_head, read_die_and_children,
2051 read_die_and_siblings, read_full_die, read_indirect_string,
2052 read_initial_length, read_n_bytes, read_offset, read_partial_die,
2053 read_signed_leb128, read_string, read_unsigned_leb128,
2054 skip_children, skip_leb128, skip_one_die): Same.
2055
a0841d7a
DJ
20562006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
2057
2058 * complaints.c (stop_whining): Make signed.
2059 * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
2060
939b2b42
DJ
20612006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
2062
2063 * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
2064 notices.
2065
891d2f0b
DJ
20662006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
2067
2068 * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
2069 (read_offset): Change BYTES_READ argument to unsigned int.
2070 (dwarf2_build_psymtabs_easy, read_comp_unit_head)
2071 (create_all_comp_units, dwarf2_get_pc_bounds)
2072 (dwarf_decode_line_header, var_decode_location)
2073 (dwarf_decode_macros): Change local BYTES_READ variables to
2074 unsigned int.
2075 (read_indirect_string): Remove obsolete cast.
2076
cfd77fa1
DJ
20772006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
2078
2079 * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
2080 argument.
2081 (remote_fileio_func_open, remote_fileio_func_rename)
2082 (remote_fileio_func_unlink, remote_fileio_func_stat)
2083 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
2084 (remote_fileio_func_system): Cast the arguments to
2085 remote_read_bytes and remote_write_bytes.
2086 (remote_fileio_func_read, remote_fileio_func_write): Use a
2087 gdb_byte buffer.
2088 * remote.h (remote_read_bytes, remote_write_bytes): Update
2089 prototypes.
2090 * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
2091 (threadref_to_int): Replace bogus char * cast.
2092 (remote_unpack_thread_info_response): Use int for tag.
2093 (remote_threads_extra_info, remote_check_symbols): Cast string
2094 arguments to hex2bin.
2095 (remote_wait): Use a char buffer for packets and a gdb_byte
2096 buffer for registers.
2097 (remote_async_wait): Likewise.
2098 (remote_prepare_to_store, store_register_using_P)
2099 (remote_store_registers): Use gdb_byte buffers.
2100 (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
2101 for MYADDR and char buffers for strings.
2102 (remote_xfer_partial): Add casts for string operations on READBUF.
2103 (remote_rcmd): Cast strings passed to bin2hex.
2104
60bf0650
MM
21052006-01-16 Mark Mitchell <mark@codesourcery.com>
2106
2107 * aclocal.m4: Regenerate.
2108
60e81fcc
NS
21092006-01-16 Nathan Sidwell <nathan@codesourcery.com>
2110
2111 * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
2112 MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
2113 MT_COPRO_PSEUDOREG_REGS members. Adjust MT_NUM_PSEUDO_REGS.
2114 (mt_register_name): Lazily synthesize name for coprocessor pseudo
2115 array registers.
2116 (mt_copro_register_type): New. Broken out of ...
2117 (mt_register_type): ... here. Use it. Deal with coprocessor
2118 pseudo array.
2119 (mt_select_coprocessor): New.
2120 (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
2121 coprocessor pseudo array.
2122
f365de73
AS
21232006-01-16 Andrew Stubbs <andrew.stubbs@st.com>
2124
2125 * breakpoint.c (insert_breakpoints): Check that a thread exists
2126 before inserting thread specific breakpoints.
2127
9d519230
MK
21282006-01-15 Mark Kettenis <kettenis@gnu.org>
2129
6062517a
MK
2130 * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
2131 commit.
2132
9d519230
MK
2133 * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
2134 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
2135 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
2136 * config/alpha/nm-nbsd.h: Remove file.
2137 * config/alpha/nm-fbsd.h: Remove file
2138 * config/alpha/nbsd.mh (NAT_FILE): Remove.
2139 * config/alpha/fbsd.mh (NAT_FILE): Remove.
2140
0a029df5
DJ
21412006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
2142
2143 * macroexp.c (expand): Initialize argc.
2144 * stabsread.c (read_type): Handle errors from read_args.
2145 (read_args): Return NULL for errors.
2146
1731e543
MK
21472006-01-15 Mark Kettenis <kettenis@gnu.org>
2148
2149 * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
2150 strcmp to compare string to a byte buffer.
2151
777ea8f1
DJ
21522006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
2153
2154 * printcmd.c (output_command): Always initialize fmt.size.
2155 (printf_command): Use gdb_byte.
2156 * symfile.c (separate_debug_file_exists): Use gdb_byte.
2157 (load_section_callback, read_target_long_array): Likewise.
2158 (simple_read_overlay_table, simple_read_overlay_region_table)
2159 (simple_overlay_update_1): Correct calls to read_target_long_array.
2160 * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
2161 Also change local pointers.
2162 (val_print_string): Use gdb_byte.
2163
4b17b389
MK
21642006-01-15 Mark Kettenis <kettenis@gnu.org>
2165
2166 * alphafbsd-tdep.c: Include "solib-svr4.h".
2167 (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2168 svr4_lp64_fetch_link_map_offsets.
2169 * Makefile.in (alphafbsd-tdep.o): Update dependencies.
2170 * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
2171 solib-svr4.o.
2172 * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
2173 and solib-legacy.o.
2174 * config/alpha/nm-fbsd.h: Don't include "solib.h".
2175
bd4109fb
DJ
21762006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
2177
2178 * source.c (_initialize_source): Use add_setshow_integer_cmd.
2179
1dce6535
DJ
21802006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
2181
2182 * linux-fork.c (delete_fork_command, detach_fork_command): Use
2183 PIDGET.
2184
76a9d10f
MK
21852006-01-15 Mark Kettenis <kettenis@gnu.org>
2186
2187 * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
2188 Remove.
2189 (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
2190 svr4_ilp32_fetch_link_map_offsets.
2191 * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
2192 function.
2193 (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
2194 svr4_ilp32_fetch_link_map_offsets.
2195 * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
2196 (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
2197 (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
2198 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
2199 where appropriate.
2200 * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
2201 Simply call svr4_ilp32_fetch_link_map_offsets.
2202 (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
2203 svr4_lp64_fetch_link_map_offsets.
2204 * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
2205 function.
2206 (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
2207 svr4_ilp32_fetch_link_map_offsets.
2208 * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
2209 (s390x_svr4_fetch_link_map_offsets): Remove functions.
2210 (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
2211 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
2212 where appropriate.
2213
469db033
MK
22142006-01-15 Mark Kettenis <kettenis@gnu.org>
2215
25224166
MK
2216 * arm-tdep.c (arm_return_value): Change type of readbuf and
2217 writebuf arguments to `gdb_byte *'.
2218
469db033
MK
2219 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
2220 * Makefile.in (s390-tdep.o): Update dependencies.
2221
4dd7c9f6
MK
22222006-01-14 Mark Kettenis <kettenis@gnu.org>
2223
081bf9da
MK
2224 * sol2-tdep.h. sol2-tdep.c: New files.
2225 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
2226 (amd64_sol2_init_abi): Set skip_solib_resolver.
2227 * i386-sol2-tdep.c: Include "sol2-tdep.h".
2228 (i386_sol2_init_abi): Set skip_solib_resolver.
2229 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
2230 (sparc32_sol2_init_abi): Set skip_solib_resolver.
2231 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
2232 (sparc64_sol2_init_abi): Set skip_solib_resolver.
2233 * Makefile.in (sol2_tdep_h): New variable.
2234 (ALLDEPFILES): Add sol2-tdep.c.
2235 (sol2-tdep.o): New target.
2236 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
2237 (sparc64-sol2-tdep.o): Update dependencies
2238 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
2239 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
2240 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
2241 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
2242
c0f96416
MK
2243 * hppa-linux-tdep.c: Fix copyright indentation.
2244
4dd7c9f6
MK
2245 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
2246 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
2247 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
2248 functions.
2249 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
2250 floating-point registers.
2251
6da86618
MM
22522006-01-13 Mark Mitchell <mark@codesourcery.com>
2253
2254 * event-loop.c (gdb_select): Detect file descriptors that have
2255 been closed.
2256
ed944ce7
MK
22572006-01-13 Mark Kettenis <kettenis@gnu.org>
2258
2259 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
2260 and long_double_format accordingly.
2261
03ee6b2e
PH
22622006-01-12 Paul N. Hilfinger <hilfinger@adacore.com>
2263
2264 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
2265 translation problems.
2266 * ada-lang.c (ada_value_struct_elt): Change interface and handling
2267 of errors to avoid translation problem (and less than optimal error
2268 messages).
2269 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
2270 Use new interface to ada_value_struct_elt.
2271 * ada_lang.h (ada_value_struct_elt): Update declaration to new
2272 interface.
2273
2274 * ChangeLog: remove reference to ada-tasks.c from entry of
2275 2006-01-07.
2276
24b06219
MK
22772006-01-11 Mark Kettenis <kettenis@gnu.org>
2278
2279 * remote.c (get_memory_packet_size, set_thread)
2280 (remote_unpack_thread_info_response, remote_get_threadinfo)
2281 (parse_threadlist_response, remote_get_threadlist)
2282 (remote_current_thread, remote_threads_info)
2283 (remote_threads_extra_info, extended_remote_restart, get_offsets)
2284 (remote_check_symbols, remote_open_1, remote_detach)
2285 (remote_async_wait, remote_fetch_registers)
2286 (remote_store_registers, check_binary_download, putpkt_binary)
2287 (remote_insert_breakpoint, remote_insert_watchpoint)
2288 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
2289 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
2290 (packet_command): Remove redundant parenthesis.
2291
15550d6b
MK
22922006-01-10 Mark Kettenis <kettenis@gnu.org>
2293
dfb65433
MK
2294 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
2295 (read_memory_typed_address, write_memory)
2296 (write_memory_unsigned_integer, write_memory_signed_integer): Use
2297 gdb_byte where appropriate.
2298
508416a1
MK
2299 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
2300 'gdb_byte *'.
2301
f6519ebc
MK
2302 * target.h (target_read_memory_partial, target_write_memory_partial):
2303 Change second argument to 'gdb_byte *'.
2304 * target.c (target_xfer_memory_partial): Change third argument to
2305 'gdb_byte *'.
2306 (target_read_memory_partial, target_write_memory_partial): Change
2307 second argument to 'gdb_byte *'.
2308
15550d6b
MK
2309 * linespec.c (decode_objc): Make i1 and i2 unsigned.
2310 (find_method): Set values.sals to NULL.
2311
d7a30af7
MK
23122006-01-09 Mark Kettenis <kettenis@gnu.org>
2313
2314 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
2315 of 'char *' in cast.
2316
e1d5a0d2
PH
23172006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
2318
2319 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
03ee6b2e 2320 * ada-lang.c: I18n markup.
e1d5a0d2
PH
2321 Editorial: change "can not" => "cannot" throughout.
2322
790124be
MK
23232006-01-07 Mark Kettenis <kettenis@gnu.org>
2324
2325 * Makefile.in: Sort dependencies.
2326
3c481fdc
EZ
23272006-01-07 Eli Zaretskii <eliz@gnu.org>
2328
2329 * top.c (control_level): Remove unused variable.
2330
cb5d864f
FF
23312006-01-06 Fred Fish <fnf@specifix.com>
2332
2333 * objfiles.c (source.h): Include.
2334 (free_objfile): Update comment about clear_symtab_users().
2335 (free_objfile): Check all symtabs of objfile being freed and if
2336 one of them is the current source symtab, call
2337 clear_current_source_symtab_and_line().
2338
ac264b3b
MS
23392006-01-04 Michael Snyder <msnyder@redhat.com>
2340
2341 Checkpoint/Restart for Linux.
2342 * linux-nat.c: Add support for debugging multiple forks.
2343 Add #include for linux-fork.h (interface spec).
2344 (super_mourn_inferior): New function pointer.
2345 (child_mourn_inferior): New function / target method.
2346 (linux_target): Claim to_mourn_inferior method pointer.
2347 (child_follow_fork): Call interface to linux-fork, conditionally
2348 add new fork processes to list of debugged processes.
2349 (kill_inferior): Use interface to linux-fork to kill
2350 multiple processes.
2351
2352 * linux-fork.h: New file.
2353 * linux-fork.c: New file. Support for debugging multiple forks
2354 of the same program. Support for checkpoint and restart commands.
2355
2356 * infrun.c (nullify_last_target_wait_ptid): New function.
2357
2358 * Makefile.in: Add linux-fork.
2359 * config/*/linux.mh: Add linux-fork.
2360 * NEWS: Mention new functionality.
2361
f98ce7c2
PH
23622006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
2363
2364 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
2365 Change uses of "illegal" to "invalid".
2366
52ce6436
PH
23672006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
2368
2369 * ada-exp.y: Considerable reorganization to move functionality
2370 from ada-lex.l to here, where it is logically more appropriate.
2371 The original reason, however, was to prevent premature name
2372 lookups for selector names in record aggregates.
2373 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
2374 NAME for all of these.
2375 (VAR): New artificial token to clarify precedence rules.
2376 (OTHERS): New lexeme.
2377 (empty_stoken): New symbol.
2378 (%union): Remove ssym, voidval.
2379 (%type): Remove <voidval> type declarations.
2380 (syntax definitions): Add aggregates.
2381 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
2382 Rename some non-terminals to be closer to reference manual usage.
2383 Tighten up expression syntax to disallow certain non-Ada
2384 constructions such as X and then Y or else Z.
2385 (ada_parse): Remove initialization of left_block_context.
2386 (write_var_from_name): Remove.
2387 (write_var_or_type): New function, containing previous code from
2388 defunct write_var_from_name and name_lookup.
2389 (block_lookup): New function, moved from ada-lex.l
2390 (select_possible_type_sym): New function, factored out of
2391 name_lookup, which used to be in ada-lex.l.
2392 (find_primitive_type): Ditto.
2393 (chop_selector): Ditto.
2394 (write_ambiguous_var): New function, factored out of defunct
2395 write_var_from_name.
2396 (write_selectors): New function.
2397 (write_name_assoc): New function.
2398 (write_exp_op_with_string): New function.
2399
2400 * ada-lex.l (processId): Change interface to return stoken.
2401 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
2402 (block_lookup, name_lookup): Remove. Functionality moved to
2403 ada-exp.y.
2404 (state IN_STRING): Remove.
2405 (rules): Handle string escapes in processString.
2406 Add 'others' token.
2407 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
2408 yylval.sval (as simple strings).
2409 All name look-ups now handled in ada-exp.y.
2410 Introduce "::" (COLONCOLON) token and return as separate token.
2411 (processId): Change return convention. Comment.
2412 Leave leading "'" in place.
2413 (processString): New function.
2414 (find_dot_all): Add note to comment.
2415 Fix problem that allowed match only at the end.
2416
2417 * ada-lang.c: Introduce aggregates.
2418 (find_struct_field): Add new parameter to count fields skipped, and
2419 allow other output parameters to be NULL.
2420 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
2421 new find_struct_field.
2422 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
2423 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
2424 (num_component_specs, assign_component, assign_aggregate):
2425 (aggregate_assign_from_choices,aggregate_assign_positional)
2426 (aggregate_assign_others,add_component_interval):
2427 New functions.
2428 (ada_evaluate_subexp): Declare.
2429 Add aggregate-related operators.
2430 (ada_forward_operator_length): Declare.
2431 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
2432 Consolidate Ada operators, using ada_forward_operator_length.
2433 (ada_search_struct_field): Search in forward order.
2434 (ADA_OPERATORS): Add new aggregate operators.
2435 (ada_operator_length, ada_op_name, ada_forward_operator_length)
2436 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
2437 operators and OP_NAME.
2438 (ada_type_of_array): Use longest_to_int.
2439 (value_assign_to_component): New function.
2440 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
2441 Add OP_NAME case.
2442 (ada_forward_operator_length, ada_dump_subexp_body):
2443 Add OP_STRING case.
2444
2445 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
2446 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
2447
529cad9c
PH
24482006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
2449
2450 * ada-lang.c (process_raise_exception_name): Remove extraneous
2451 definition from unsubmitted code.
2452
2453 (is_lower_alphanum): New function.
2454 (ada_decode): Add support for decoding protected object subprograms
2455 and entries, and of entities declared inside protected object
2456 subprograms.
2457 Also add missing handling for__{DIGITS}+ suffixes.
2458 Allow '$<digits>' as valid overloading suffix.
2459 (is_name_suffix): Add handling for protected type entriy suffixes.
2460 Also add support for protected type subprogram suffixes, but keep
2461 it commented out for now, as there is an ambiguity between these
2462 entities and other internally generated entities.
2463 Allow '$<digits>' as valid overloading suffix.
2464 (is_valid_name_for_wild_match): New function.
2465 (wild_match): Add an exra level of verification of the entity name
2466 before declaring it a match for the given pattern.
2467
2468 (ada_type_of_array, ada_evaluate_subexp): Use more proper
2469 longest_to_int rather than cast.
2470
2471 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
2472
2473 (ada_coerce_to_simple_array): Call check_size to make sure
2474 that the object size is reasonable.
2475
2476 (ada_value_primitive_packed_val): Use correct location in target
2477 buffer for extracting packed record fields that are themselves records.
2478
2479 (add_defn_to_vec): Do not try to replace a stub type by its full
2480 type. Avoids a potential infinite loop.
2481
2482 (ada_lookup_symbol): Move return incorrectly placed return statement,
2483 causing a loop that should be scanning all object files to only
2484 scan the first one.
2485
2486 (ada_tag_name_2): New function.
2487 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
2488 use alternative representation.
2489
2490 (ada_find_renaming_symbol): Strip the function name suffix when
2491 computing the XR type name.
2492
2493 (ada_to_fixed_type): Try determining the tag only if we have the
2494 object's address.
2495 (to_fixed_array_type): Add comments.
2496
2497 (ada_check_typedef): Replace expression checking whether the given
2498 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
2499 consistent.
2500
2501 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
2502 '$' in addition to '.' for runtime auxiliary function name suffixes.
2503 See changes to ada_decode above.
2504
2505 (struct task_control_block): Add field called_task. (This change is
2506 to keep synchronized with our local sources; it does not affect the
2507 public version yet.)
2508
2509 * ada-typeprint.c (ada_print_type): Use int_string for printing
2510 modulus of modular type.
2511
2512 (print_range): Trivial editorial comment fix.
2513
2514 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
2515 double quote in string.
2516
9b799fe6
JB
25172006-01-01 Joel Brobecker <brobecker@adacore.com>
2518
2519 * top.c: Add 2006 to list of copyright years in file header.
2520
0bee0712
JB
25212006-01-01 Joel Brobecker <brobecker@adacore.com>
2522
2523 * top.c (print_gdb_version): Update copyright year to 2006.
2524
13c763f4
JB
25252006-01-01 Roger Sayle <roger@eyesopen.com>
2526 Elena Zannoni <ezannoni@redhat.com>
2527
2528 PR symtab/1651
2529 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
2530 for NULL before assigning this_symtab_psymtab->objfile to objfile.
2531 (scan_xcoff_symtab): Initialize next_symbol_text_func.
2532 (Committed by Jim Blandy)
2533
e50f0da1 2534For older changes see ChangeLog-2005.
c906108c
SS
2535\f
2536Local Variables:
2537mode: change-log
2538left-margin: 8
2539fill-column: 74
2540version-control: never
2541End:
This page took 0.885497 seconds and 4 git commands to generate.