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