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