* config/tm-linux.h: Delete file.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
982e9687
UW
12006-11-28 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * config/tm-linux.h: Delete file.
4 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Set to tm-alpha.h.
5 * config/alpha/tm-alphalinux.h: Delete file.
6 * config/arm/linux.mt (DEPRECATED_TM_FILE): Set to tm-arm.h
7 * config/arm/tm-linux.h: Delete file.
8 * config/i386/tm-linux.h: Do not include "config/tm-linux.h".
9 * config/ia64/tm-linux.h: Do not include "config/tm-linux.h".
10 * config/m32r/linux.mt (DEPRECATED_TM_FILE): Remove.
11 * config/mips/tm-linux.h: Do not include "config/tm-linux.h".
12 * config/pa/linux.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
13 * config/pa/tm-linux.h: Delete file.
14 * config/powerpc/tm-linux.h: Do not include "config/tm-linux.h".
15 * config/s390/linux.mt (DEPRECATED_TM_FILE): Remove.
16 * config/sh/linux.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
17 * config/sh/tm-linux.h: Delete file.
18 * alpha-linux-tdep.c: Include "symtab.h".
19 (alpha_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
20 * i386-linux-tdep.c: Include "symtab.h".
21 (i386_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
22 * ia64-linux-tdep.c: Include "symtab.h".
23 (ia64_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
24 * m32r-linux-tdep.c: Include "symtab.h".
25 (m32r_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
26 * mips-linux-tdep.c: Include "symtab.h".
27 (mips_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
28 * sh-linux-tdep.c: Include "symtab.h".
29 (sh_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
30 * s390-tdep.c (s390_gdbarch_init): Call
31 set_gdbarch_skip_trampoline_code.
32 * s390-nat.c: Do not include "tm.h".
33 * Makefile.in (alpha-linux-tdep.o): Add dependency on $(symtab_h).
34 (i386-linux-tdep.o): Likewise.
35 (ia64-linux-tdep.o): Likewise.
36 (m32r-linux-tdep.o): Likewise.
37 (mips-linux-tdep.o): Likewise.
38 (sh-linux-tdep.o): Likewise.
39 (s390-nat.o): Remove dependency on $(tm_h).
40
0b757755
UW
412006-11-28 Ulrich Weigand <uweigand@de.ibm.com>
42
43 * config/nm-linux.h: Do not include <signal.h>.
44 (REALTIME_LO, REALTIME_HI): Do not define.
45 * signals/signals.c (REALTIME_HI): Fix off-by-one bug.
46
51b57b6b
VP
472006-11-28 Vladimir Prus <vladimir@codesourcery.com>
48
49 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix cleanup
50 handlers. Free expression.
51
238ae9af
UW
522006-11-28 Ulrich Weigand <uweigand@de.ibm.com>
53
54 * config/tm-linux.h (REALTIME_LO, REALTIME_HI): Do not define.
55 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Likewise.
56
57 * config/rs6000/tm-rs6000ly.h (REALTIME_LO, REALTIME_HI): Move to ...
58 * config/nm-lynx.h (REALTIME_LO, REALTIME_HI): ... here.
59
60 * config/i386/nto.mh (NAT_FILE): Define.
61 * config/i386/nto.mt (DEPRECATED_TM_FILE): Remove.
62 * config/i386/tm-nto.h: Delete file.
63 * config/tm-nto.h: Delete file.
64 * config/nm-nto.h: New file.
65
66 * Makefile.in (nto-tdep.o): Add dependency on $(objfiles_h).
67 * nto-tdep.c: Include "objfiles.h" and <string.h>.
68
69 * coff-solib.h (SOLIB_UNLOADED_LIBRARY_PATHNAME): Define as "".
70 * xcoffread.c (read_xcoff_symtab): Initialize fcn_stab_saved.
71 * config/rs6000/rs6000lynx.mt (TDEPFILES): Add xcoffread.o.
72
3e9a2e52
DJ
732006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
74
75 * dwarf2-frame.c (decode_frame_entry_1): Skip unknown augmentations
76 without skipping the CIE.
77
acd65feb
VP
782006-11-28 Vladimir Prus <vladimir@codesourcery.com>
79
80 Fetch varobj values from memory in a single place,
81 and only fetch the values that are really needed.
82 * varobj.c (struct varobj): Clarify comment.
83 (my_value_equal): Remove.
84 (install_new_value): New function.
85 (type_of_child): Remove.
86 (varobj_create): Use install_new_value.
87 (varobj_set_value): Use value_contents_equal, not
88 my_value_equal.
89 (varobj_update): Use install_new_value.
90 (create_child): Likewise. Inline type_of_child here.
91 (value_of_child): Don't fetch the value.
92 (c_value_of_root): Likewise.
93 (c_value_of_variable): Likewise.
94 (type_changeable): Improve comments.
95
74ca34ce
DJ
962006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
97
98 * remote.c (struct remote_arch_state): Doc fix.
99 (compare_pnums): New function.
100 (init_remote_state): Only allocate packet_reg structures for raw
101 registers. Define the g/G packet format separately from creating
102 packet_reg. Don't use DEPRECATED_REGISTER_BYTE.
103 (packet_reg_from_regnum, packet_reg_from_pnum): Only iterate over
104 raw registers.
105 (register_bytes_found): Delete.
106 (fetch_register_using_p): Take a struct packet_reg. Handle disabled
107 'p' packet here. Use packet_ok.
108 (fetch_registers_using_g): New function, split out of
109 remote_fetch_registers. Check the 'g' packet more strictly. Save
110 its actual size and contents. Eliminate BUF. Only iterate over
111 raw registers.
112 (remote_fetch_registers): Use the new functions for 'p' and 'g'.
113 Mark unavailable registers.
114 (store_register_using_P): Likewise to fetch_register_using_p.
115 (store_registers_using_G): New function, split out of
116 remote_store_registers. Only iterate over raw registers. Don't
117 use register_bytes_found.
118 (remote_store_registers): Likewise to remote_fetch_registers.
119
fbcebcb1
DJ
1202006-11-28 Pedro Alves <pedro_alves@portugalmail.pt>
121
122 * coffread.c (cs_to_bfd_section): New function.
123 (cs_to_section): Use cs_to_bfd_section.
124 (record_minimal_symbol): Take the coff_symbol* parameter instead
125 of the symbol's name as a char*.
126 Add 'int section' parameter. Call prim_record_minimal_symbol_and_info
127 instead of prim_record_minimal_symbol_and_info.
128 Change return type to struct minimal_symbol *.
129 (coff_symtab_read): Adapt to new record_minimal_symbol's signature.
130 Make all minimal symbol creations go through record_minimal_symbol.
131
e86e87f7
DJ
1322006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
133
134 * symtab.c (find_pc_sect_line): Do not return a line before
135 the start of a symtab.
136
9c309e77
UW
1372006-11-24 Ulrich Weigand <uweigand@de.ibm.com>
138
139 * NEWS: SPU target is already supported in GDB 6.6.
140
5ea03926
UW
1412006-11-24 Ulrich Weigand <uweigand@de.ibm.com>
142
143 * Makefile.in (mips-linux-tdep.o) Add $(solib_h) dependency.
144 (nto-procfs.o): Likewise.
145 * mips-linux-tdep.c: Include "solib.h".
146 * nto-procfs.c: Likewise.
147 * config/nm-linux.h: Do not include "solib.h".
148 * config/nm-nbsd.h: Likewise.
149 * config/tm-linux.h: Likewise.
150 * config/alpha/nm-osf.h: Likewise.
151 * config/frv/tm-frv.h: Likewise.
152 * config/i386/nm-fbsh.h: Likewise.
153 * config/i386/nm-i386gnu.h: Likewise.
154 * config/i386/nm-i386sco5.h: Likewise.
155 * config/i386/nm-i386sol2.h: Likewise.
156 * config/i386/nm-i386v4.h: Likewise.
157 * config/i386/nm-i386v42mp.h: Likewise.
158 * config/i386/tm-i386sol2.h: Likewise.
159 * config/i386/tm-nto.h: Likewise.
160 * config/mips/nm-irix5.h: Likewise.
161 * config/mips/tm-nbsd.h: Likewise.
162 * config/pa/tm-hppah.h: Likewise.
163 * config/powerpc/tm-ppc-eabi.h: Likewise.
164 * config/rs6000/tm-rs6000.h: Likewise.
165 * config/sh/tm-nbsd.h: Likewise.
166 * config/sparc/nm-sol2.h: Likewise.
167 * config/sparc/tm-sol2.h: Likewise.
168 * config/arm/nbsdaout.mh: Remove NAT_FILE.
169 * config/i386/nbsdaout.mh: Likewise.
170 * config/i386/nbsdelf.mh: Likewise.
171 * config/i386/obsdaout.mh: Likewise.
172 * config/m68k/nbsdaout.mh: Likewise.
173 * config/m68k/obsd.mh: Likewise.
174 * config/sparc/nbsdaout.mh: Likewise.
175 * config/cris/cris.mt: Remove DEPRECATED_TM_FILE.
176 * config/i386/linux64.mt: Likewise.
177 * config/m68k/linux.mt: Likewise.
178 * config/m68k/nbsd.mt: Likewise.
179 * config/sparc/linux.mt: Likewise.
180 * config/sparc/linux64.mt: Likewise.
181 * config/vax/nbsd.mt: Likewise.
182
d1320b0b
UW
1832006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
184
185 * NEWS: New port to Cell Broadband Engine SPU.
186 * MAINTAINERS: Add myself as spu maintainer.
187
29d73ae4
DJ
1882006-11-22 Daniel Jacobowitz <dan@codesourcery.com>
189
190 * Makefile.in (arm-tdep.o): Update dependencies.
191 * arm-tdep.c (thumb_skip_prologue): Remove.
192 (thumb_analyze_prologue): New function.
193 (arm_skip_prologue): Use thumb_analyze_prologue.
194 (thumb_scan_prologue): Ditto.
195
a13e2c95
UW
1962006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
197
198 * configure.tgt: Enable gdbserver for SPU target.
199 * configure.ac: Build gdbserver when gdb_native is yes.
200 * configure: Regenerate.
201 * regformats/reg-spu.dat: New file.
202
59a59f84
DJ
2032006-11-22 Daniel Jacobowitz <dan@codesourcery.com>
204
205 * osabi.c (gdbarch_lookup_osabi): Do not return
206 GDB_OSABI_UNINITIALIZED.
207
771b4502
UW
2082006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
209
210 * config/powerpc/spu-linux.mh: New file.
211 * config/spu/spu.mt: New file.
212 * configure.ac: Provide gdb_native configuration variable.
213 * configure: Regenerate.
214 * configure.host: Support powerpc64 to spu 'pseudo-native' mode.
215 * configure.tgt: Add "spu" target_cpu and "spu*-*-*" target.
216 * Makefile.in (spu_tdep_h): New variable.
217 (ALLDEPFILES): Add spu-linux-nat.c and spu-tdep.c
218 (spu-linux-nat.o, spu-tdep.o): Add dependencies.
219 * spu-linux-nat.c: New file.
220 * spu-tdep.c: New file.
221 * spu-tdep.h: New file.
222
0b2b0195
UW
2232006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
224
225 * findvar.c (address_from_register): New function.
226 * value.h (address_from_register): Add prototype.
227 * dwarf2loc.c (dwarf_expr_read_reg): Use address_from_register.
228
765dc015
VP
2292006-11-22 Vladimir Prus <vladimir@codesourcery.com>
230
231 * breakpoint.c: Include "memattr.h".
232 (automatic_hardware_breakpoints): New.
233 (show_automatic_hardware_breakpoints): New.
234 (insert_bp_location): Automatically use
235 hardware breakpoints.
236 (_initialize_breakpoint): Register the "auto-hw"
237 variable.
238 * Makefile.in (breakpoint.o): Update dependencies.
239
4b5752d0
VP
2402006-11-21 Vladimir Prus <vladimir@codesourcery.com>
241
242 * memattr.h (enum mem_access_mode): New value
243 MEM_NONE.
244 * memattr.c (unknown_mem_attrib): New.
245 (inaccessible_by_default): New.
246 (show_inaccessible_by_default): New.
247 (lookup_mem_region): Check inaccessible_by_default.
248 (dummy_cmd): New.
249 (mem_set_cmdlist, mem_show_cmdlist): New.
250 (_initialize_mem): Register new "set" and "show"
251 commands.
252 * target.c (memory_xfer_partial): If memory type
253 is MEM_NONE, return an error.
254 Clip to region size when calling to_xfer_partial.
255 If upper limit of memory range is 0, don't clip
256 anything.
257
caac47b8
JB
2582006-11-20 Joel Brobecker <brobecker@adacore.com>
259
260 * README: Remove obsolete information.
261
155bd5d1
AC
2622006-11-20 Andrew Cagney <cagney@redhat.com>
263
264 * linux-nat.h: Refer to GNU/Linux or Linux kernel.
265 * linux-nat.c (lin_lwp_attach_lwp, linux_nat_thread_alive): Ditto.
266 * infcmd.c (attach_command): Ditto.
267 * hppa-linux-tdep.c (hppa_linux_regset): Ditto.
268 * mn10300-linux-tdep.c: Ditto. Update copyright year.
269 * frv-linux-tdep.c: Ditto. Update copyright year.
270
6dd09645
JB
2712006-11-19 Joel Brobecker <brobecker@adacore.com>
272
273 * NEWS: Add a new section for changes since GDB 6.6. Rename
274 the section "Changes since GDB 6.5" into "Changes in GDB 6.6".
275 Move a couple of items into the new section as they did not
276 make it to 6.6.
277
ab44b8eb
JB
2782006-11-19 Joel Brobecker <brobecker@adacore.com>
279
280 GDB 6.6 branch created (branch timestamp: 2006-11-15 12:00)
281 * version.in: Bump version to 6.6.50.20061119-cvs.
282
08f08ce6
DJ
2832006-11-18 Pedro Alves <pedro_alves@portugalmail.pt>
284
285 * prologue-value.c (clear_entries): Fix memory leak.
286
aef9c3b3
DJ
2872006-11-18 Pedro Alves <pedro_alves@portugalmail.pt>
288
289 * parse.c (write_exp_msymbol): Check SYMBOL_BFD_SECTION before
290 dereferencing it.
291
63f06803
DJ
2922006-11-17 Daniel Jacobowitz <dan@codesourcery.com>
293
294 * utils.c (string_to_core_addr): Use error instead of
295 internal_error.
296 * mi/mi-main.c (mi_execute_command): Check for a NULL message.
297
e554a4b2
DJ
2982006-11-17 Daniel Jacobowitz <dan@codesourcery.com>
299
300 * NEWS: Mention QPassSignals.
301
7a11f07a
MG
3022006-11-16 Maxim Grigoriev <maxim2405@gmail.com>
303
304 * MAINTAINERS (Responsible Maintainers): Add myself for Xtensa.
305 (Write After Approval): Add myself.
306
89be2091
DJ
3072006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
308
309 * remote.c (PACKET_QPassSignals): New.
310 (last_pass_packet, remote_pass_signals): New.
311 (remote_protocol_features): Add QPassSignals.
312 (remote_query_supported): Correct an infinite loop.
313 (remote_open_1): Reset last_pass_packet.
314 (remote_resume): Call remote_pass_signals.
315 (_initialize_remote): Register "set remote pass-signals".
316
ca3bf3bd
DJ
3172006-11-14 Maxim Grigoriev <maxim@tensilica.com>
318
319 * NEWS: New port to Xtensa.
320 * Makefile.in: Add dependencies for Xtensa files.
321 * configure.tgt (xtensa*, xtensa*-*-elf*): New.
322 * configure.host (xtensa*-*-elf*): New.
323 * config/xtensa/xtensa.mt: New file.
324 * xtensa-config.c: New file.
325 * xtensa-tdep.h: New file.
326 * xtensa-tdep.c: New file.
327
427c3a89
DJ
3282006-11-14 Daniel Jacobowitz <dan@codesourcery.com>
329
330 * remote.c (set_remote_cmd): Call help_list.
331 (show_remote_cmd): Skip legacy aliases. Handle non-show_cmd
332 entries. Add missed cleanup.
333 * cli/cli-setshow.c (cmd_show_list): Handle non-show_cmd entries.
334
1bc1fa8c
DJ
3352006-11-13 Paul Gilliam <pgilliam@us.ibm.com>
336
4019046a 337 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Don't futz with
1bc1fa8c 338 the floating point registers if there aren't any.
4019046a 339
59ea4f70
BH
3402006-11-12 Ben Harris <bjh21@NetBSD.org>
341
342 * arm-tdep.c (arm_unwind_pc): Use arm_addr_bits_remove.
343
e48af409
DJ
3442006-11-10 Daniel Jacobowitz <dan@codesourcery.com>
345
346 * frame.c (frame_register_unwind_location): New function.
347 (get_prev_frame_1): Check for UNWIND_NO_SAVED_PC.
348 (frame_stop_reason_string): Handle UNWIND_NO_SAVED_PC.
349 * frame.h (enum unwind_stop_reason): Add UNWIND_NO_SAVED_PC.
350
7a107747
DJ
3512006-11-10 Daniel Jacobowitz <dan@codesourcery.com>
352
353 * arch-utils.c (target_byte_order_user): Renamed from
354 target_byte_order.
355 (target_byte_order_auto, selected_byte_order): Removed.
356 (show_endian): Check target_byte_order_user.
357 (set_endian): Always update the architecture. Set
358 target_byte_order_user after success.
359 (target_architecture_auto): Removed.
360 (target_architecture_user): New.
361 (selected_architecture_name, show_architecture): Check it.
362 (set_architecture): Set target_architecture_user after success.
363 (gdbarch_from_bfd): Check the argument.
364 (default_byte_order): New.
365 (initialize_current_architecture): Set the global default
366 architecture and endianness.
367 (gdbarch_info_fill): Remove GDBARCH argument. Do not check the
368 previous architecture. Use exec_bfd, global selected architecture
369 and endianness, and global defaults.
370 * arch-utils.h (selected_byte_order): Remove prototype.
371 (gdbarch_info_fill): Update.
372 * exec.c (exec_file_attach): Update the architecture after removing
373 the current file.
374 * gdbarch.sh: Update comments.
375 (find_arch_by_info): Remove OLD_GDBARCH argument. Update call to
376 gdbarch_info_fill.
377 (gdbarch_find_by_info): Update call to find_arch_by_info.
378 * gdbarch.h, gdbarch.c: Regenerated.
379 * remote-sim.c (gdbsim_open): Use TARGET_BYTE_ORDER.
380
b5bf31df
JB
3812006-11-09 Joel Brobecker <brobecker@adacore.com>
382
383 * sparc-tdep.c (sparc_fetch_instruction): Read instruction
384 using read_memory_nobpt.
385
e5192dd8
JB
3862006-11-06 Jim Blandy <jimb@codesourcery.com>
387
e5192dd8
JB
388 * dwarf2loc.c (dwarf_expr_read_reg): Use frame_register_read
389 instead of frame_register. Doc fix.
390
8b9e3a15
VP
3912006-11-04 Vladimir Prus <vladimir@codesourcery.com>
392
393 * serial.c (serial_open): Strip leading spaces from program
394 name when opening pipe.
395
4bc9efe1
JB
3962006-11-03 Jim Blandy <jimb@codesourcery.com>
397
398 * dwarf2loc.c (dwarf_expr_read_reg): Use frame_unwind_register
399 instead of frame_register. Doc fix.
400
31ffec48
DJ
4012006-11-02 Daniel Jacobowitz <dan@codesourcery.com>
402
403 * dwarf2read.c (struct dwarf2_per_cu_data): Update comment.
404 (load_full_comp_unit): Take OBJFILE argument and use it.
405 (dwarf2_build_psymtabs_hard): Skip partial units.
406 (process_queue): Pass OBJFILE to load_full_comp_unit. Check
407 type_hash for read in CUs. Test psymtab for NULL.
408
625b5003
DJ
4092006-11-02 Daniel Jacobowitz <dan@codesourcery.com>
410
411 * arm-tdep.c (arm_gdbarch_init): Handle EF_ARM_EABI_VER5.
412
6e381ba0
VP
4132006-10-31 Vladimir Prus <vladimir@codesourcery.com>
414
415 * commands.h (enum command_class): Use different
416 values for class_deprecated and class_run.
417 * cli/cli-decode.c: (print_help_for_command): New.
418 (apropos_cmd): Use the above.
419 (help_list): Mention 'help all'
420 and 'apropos' when printing top-level help.
421 (help_all): Print the class name before printing
422 commands in that class. Don't print prefix commands
423 here, instead pass recurse flag to help_cmd_list.
424 Print list of unclassified commands at the end.
425 (help_cmd_list): When recursing, use all_commands class.
426 Recurse only if the class of the command matches.
427
f73adfeb
AS
4282006-10-27 Andreas Schwab <schwab@suse.de>
429
430 * gdbcmd.h (detachlist): Declare.
431 * infcmd.c (_initialize_infcmd): Define "detach" as prefix
432 command.
433 * linux-fork.c (_initialize_linux_fork): Rename
434 "detach-checkpoint" to "detach checkpoint" and "detach-fork" to
435 "detach fork".
436 * cli/cli-cmds.c (detachlist): Define.
437 (init_cmd_lists): Initialize it.
438 * cli/cli-cmds.h (detachlist): Declare.
439
7080f20f
JB
4402006-10-25 Jim Blandy <jimb@codesourcery.com>
441
442 * p-valprint.c (pascal_object_print_value): Add 'static' keyword
443 to function definition, to match declaration earlier in file.
444
3732ba62
PB
4452006-10-21 Paul Brook <paul@codesourcery.com>
446
447 * remote.c (remote_fetch_registers): Fix error message.
448
804e0f53
DJ
4492006-10-20 Daniel Jacobowitz <dan@codesourcery.com>
450
451 * gcore.c (MAX_COPY_BYTES): Define.
452 (gcore_copy_callback): Use it to limit allocation.
453
f86172a5
UW
4542006-10-19 Ulrich Weigand <uweigand@de.ibm.com>
455
456 * linux-thread-db.c (check_for_thread_db): Don't attempt to use
457 thread_db for remote targets.
458 * remote.c (remote_new_objfile): Always call predecessor on
459 new_objfile event chain.
460
6612ad7f
JB
4612006-10-19 Joel Brobecker <brobecker@adacore.com>
462
463 * solib.c (libpthread_solib_p): New function.
464 (solib_add): Always read the symbols from the libpthread library.
465
d674a25c
AS
4662006-10-19 Andrew Stubbs <andrew.stubbs@st.com>
467
468 * breakpoint.c (describe_other_breakpoints): Add thread parameter.
469 Annotate display with thread number where appropriate.
470 (create_breakpoints): Add thread parameter to call to
471 describe_other_breakpoints.
472
981c7f5a
DJ
4732006-10-18 Jim Blandy <jimb@codesourcery.com>
474 Daniel Jacobowitz <dan@codesourcery.com>
475
476 * utils.c (query): Use defaulted_query.
477 (defaulted_query): Handle having no default answer. Print out
478 messages even if we have no terminal. Prevent memory corruption.
479
55feb689
DJ
4802006-10-18 Daniel Jacobowitz <dan@codesourcery.com>
481
482 * frame.c (struct frame_info): Add stop_reason.
483 (get_prev_frame_1): Set stop_reason. Don't call error for
484 stop reasons.
485 (get_frame_unwind_stop_reason, frame_stop_reason_string): New.
486 * frame.h (enum unwind_stop_reason): New.
487 (get_frame_unwind_stop_reason, frame_stop_reason_string): New
488 prototypes.
489 * stack.c (frame_info): Print the stop reason.
490 (backtrace_command_1): Print the stop reason for errors.
491
8621d6a9
DJ
4922006-10-18 Daniel Jacobowitz <dan@codesourcery.com>
493
494 * inferior.h (start_remote): Update prototype.
495 * infrun.c (start_remote): Take FROM_TTY. Call
496 post_create_inferior.
497 * monitor.c (monitor_open): Update call to start_remote.
498 * remote-sds.c (sds_start_remote, sds_open): Likewise.
499 * remote.c (remote_start_remote): Likewise.
500 (remote_start_remote_dummy): Removed.
501 (remote_open): Update call to remote_start_remote. Do not call
502 post_create_inferior here.
503
34439770
DJ
5042006-10-18 Daniel Jacobowitz <dan@codesourcery.com>
505
506 * solib-svr4.c (debug_loader_offset_p, debug_loader_offset)
507 (debug_loader_name, svr4_default_sos): New.
508 (svr4_current_sos): Call svr4_default_sos.
509 (enable_break): Add a comment about AT_BASE. Set the new
510 variables and retry solib_add.
511 (svr4_clear_solib): Clear the new variables.
512
5132006-10-18 Daniel Jacobowitz <dan@codesourcery.com>
7d3d3ece
DJ
514
515 * NEWS: Mention support for TLS without debugging information.
516
52bb452f
DJ
5172006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
518
519 * remote-sim.c (gdbsim_kill): Call target_mourn_inferior.
520 (gdbsim_load): Don't bother to adjust inferior_ptid here.
521 (gdbsim_create_inferior): Mark the simulator as running.
522 (gdbsim_open): Don't bother fetching registers. Mark
523 the target as not running.
524 (gdbsim_xfer): When the program is not running, pass memory
525 requests down.
526 (gdbsim_mourn_inferior): Mark the target as not running.
527 * target.c (target_mark_running, target_mark_exited): New.
528 * target.h (target_has_execution): Update the comment.
529 (target_mark_running, target_mark_exited): New prototypes.
530
b40ce68a
JB
5312006-10-17 Joel Brobecker <brobecker@adacore.com>
532
533 * breakpoint.c (free_valchain): Minor reformatting.
534
79d4c408
DJ
5352006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
536
537 * solib-svr4.c (LM_ADDR_CHECK): Suggest shared library mismatch.
538
94277a38
DJ
5392006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
540
541 * Makefile.in (symtab.o): Update.
76101e23
AS
542 * symtab.h (matching_bfd_sections): New prototype.
543 * symtab.c (matching_bfd_sections): New.
94277a38
DJ
544 (find_pc_sect_psymbol, find_pc_sect_symtab): Use it.
545 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
546 * printcmd.c (sym_info): Ignore separate debug objfiles.
547
32a5b2f1
DJ
5482006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
549
550 * remote.c (remote_pid_to_str): Capitalize "Thread".
551
9b7194bc
DJ
5522006-10-15 Daniel Jacobowitz <dan@codesourcery.com>
553
554 PR remote/2158
555 * remote.c (remote_write_bytes): Throttle packet alignment
556 for small packets.
557
b255021a
NR
5582006-10-16 Jeff Johnston <jjohnstn@redhat.com>
559
560 * linux-thread-db.c (thread_db_wait): Don't bother continuing if
561 the wait result indicates the program terminated with a
562 signal (from gdb-6.3-ia64-sigill-20051115.patch, a patch for
563 Fedora Core 5).
564
366da635
DJ
5652006-10-11 Daniel Jacobowitz <dan@codesourcery.com>
566
567 * dwarf2read.c (dwarf_decode_lines): Call record_line upon
568 encountering a different subfile.
569
861cf606
FR
5702006-10-11 Denis Pilat <denis.pilat@st.com>
571
572 * tui/tui-source.c (tui_set_source_content): handle source
573 files that contain non unix end-of-line.
574
774a49c0
DJ
5752006-10-10 Daniel Jacobowitz <dan@codesourcery.com>
576
577 * ser-mingw.c (free_pipe_state, pipe_wait_handle): Update
578 for changes to pipe_select_thread.
579 (pipe_done_wait_handle): New.
580 (_initialize_ser_windows): Reference it.
581
9e35dae4
DJ
5822006-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
583 Daniel Jacobowitz <dan@codesourcery.com>
584
585 * Makefile.in (expprint.o, parse.o, target.o): Update.
586 * dwarf2loc.c (dwarf_expr_tls_address): Move body to
587 target_translate_tls_address. Call it.
588 * eval.c (evaluate_subexp_standard): Handle UNOP_MEMVAL_TLS.
589 * expprint.c (print_subexp_standard): Likewise.
590 (op_name_standard, dump_subexp_body_standard): Likewise.
591 * expression.h (enum exp_opcode): Add UNOP_MEMVAL_TLS.
592 (union exp_element): Add objfile.
593 * parse.c (write_exp_elt_objfile): New function.
594 (msym_tls_symbol_type): New.
595 (write_exp_msymbol): Handle TLS.
596 (operator_length_standard): Handle UNOP_MEMVAL_TLS.
597 (build_parse): Initialize msym_tls_symbol_type.
598 * parser-defs.h (write_exp_elt_objfile): New prototype.
599 * target.c (target_translate_tls_address): New.
600 * target.h (target_translate_tls_address): Add prototype.
601
58dc52c3
DJ
6022006-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
603
604 * solib.c (solib_open): Handle an empty solib_absolute_prefix like a
605 missing one.
606
8bb75286
DJ
6072006-10-09 Daniel Jacobowitz <dan@codesourcery.com>
608
609 * solib.c (solib_read_symbols): Stop if the file was not found.
610
d9639e13
DJ
6112006-10-09 Paul Pluzhnikov <ppluzhnikov@charter.net>
612
613 PR c++/2116
614 * valops.c (find_overload_match): Check for a NULL name.
615
714e295e
JB
6162006-10-06 Joel Brobecker <brobecker@adacore.com>
617
3e4d11fe 618 Fix PR symtab/2018
714e295e
JB
619 * dwarf2read.c (read_array_type): Set the type name if the name
620 attribute is present.
621
631b0ed0
JB
6222006-10-05 Joel Brobecker <brobecker@adacore.com>
623
624 * blockframe.c (block_innermost_frame): Rewrite frame search logic.
625
dbc981de
DJ
6262006-10-05 Daniel Jacobowitz <dan@codesourcery.com>
627
628 * Makefile.in (gdb_expat_h): New.
629 (xml_support_h): Add gdb_expat.h dependency.
630 (memory-map.o, xml-support.o): Likewise.
631 * gdb_expat.h: New file.
632 * xml-support.h: Include it.
633 * memory-map.c, xml-support.c: Likewise. Remove XML_STATUS_OK
634 definitions.
635
0b83947e
DJ
6362006-10-05 Daniel Jacobowitz <dan@codesourcery.com>
637
638 * remote.c (get_remote_state_raw): Renamed from get_remote_state.
639 (get_remote_state): New function.
640 (init_remote_state, _initialize_remote): Use get_remote_state_raw.
641
8aceae7e
FF
6422006-10-04 Fred Fish <fnf@specifix.com>
643
644 * vec.c: Include defs.h first. This pulls in config.h which can
645 affect other includes.
646
f31b3751
JB
6472006-10-04 Joel Brobecker <brobecker@adacore.com>
648
649 * somread.c (som_symtab_read): Avoid using alloca for potentially
650 large buffers.
651
d0a0254a
DJ
6522006-10-04 Daniel Jacobowitz <dan@codesourcery.com>
653
654 * arch-utils.h (gdbarch_info_fill): Remove duplicate prototype.
655
f2d483c4
DJ
6562006-10-03 Daniel Jacobowitz <dan@codesourcery.com>
657
658 * memory-map.c (XML_STATUS_OK, XML_STATUS_ERROR): Provide default
659 definitions.
660 * xml-support.c (XML_STATUS_OK, XML_STATUS_ERROR): Likewise.
661
f08799f9
DJ
6622006-09-22 Daniel Jacobowitz <dan@codesourcery.com>
663
664 * remote.c (remote_write_bytes_aux): Doc fix.
665
a76d924d
DJ
6662006-09-21 Vladimir Prus <vladimir@codesourcery.com>
667 Daniel Jacobowitz <dan@codesourcery.com>
668
669 * Makefile.in (SFILES): Add target-memory.c.
670 (COMMON_OBS): Add target-memory.o.
671 * memattr.c (lookup_mem_region): Adjust handling for
672 the top of memory. Improve comments.
673 * remote.c (packet_check_result): New function, split out
674 from packet_ok. Recognize "E." as an error prefix.
675 (packet_ok): Use it.
676 (remote_write_bytes_aux): New function, renamed from
677 remote_write_bytes. Take packet header, packet format,
678 and length flag as arguments.
679 (remote_write_bytes): Rewrite to use remote_write_bytes_aux.
680 (remote_send_printf, restore_remote_timeout)
681 (remote_flash_timeout, remote_flash_erase, remote_flash_write)
682 (remote_flash_done): New.
683 (remote_xfer_partial): Handle flash writes.
684 (init_remote_ops, init_remote_async_ops): Set to_flash_erase
685 and to_flash_done.
686 * symfile.c (struct load_section_data): Include a pointer to
687 the cumulative stats and a request queue. Move most members
688 to other types.
689 (struct load_progress_data, struct load_progress_section_data): New
690 types.
691 (load_progress): Handle a NULL baton and zero bytes. Update for
692 type changes.
693 (load_section_callback): Create memory write requests instead of
694 writing to memory. Don't print the progress message here.
695 (clear_memory_write_data): New function.
696 (generic_load): Use target_write_memory_blocks.
697 * target-memory.c: New file.
698 * target.c (update_current_target): Mention new uninherited methods.
699 (memory_xfer_partial): Issue an error for flash writes.
700 (target_flash_erase, target_flash_done): New functions.
701 (target_write_with_progress): Call the progress callback at the
702 start also.
703 * target.h (enum target_object): Add TARGET_OBJECT_FLASH.
704 (target_write_with_progress): Update comment.
705 (struct target_ops): Add to_flash_erase and to_flash_done.
706 (target_flash_erase, target_flash_done, struct memory_write_request)
707 (memory_write_request_s, enum flash_preserve_mode)
708 (target_write_memory_blocks): New, including a vector type
709 for memory_write_request_s.
710
fd79ecee
DJ
7112006-09-21 Vladimir Prus <vladimir@codesourcery.com>
712 Daniel Jacobowitz <dan@codesourcery.com>
713 Nathan Sidwell <nathan@codesourcery.com>
714
715 * Makefile.in (SFILES): Add memory-map.c and xml-support.c.
716 (memory_map_h, xml_support_h): New.
717 (target_h): Add vec_h dependency.
718 (COMMON_OBS): Add memory-map.o and xml-support.o.
719 (memory-map.o, xml-support.o): New rules.
720 (remote.o): Update.
721 * exceptions.h (enum errors): Add XML_PARSE_ERROR.
722 * infcmd.c (run_command_1, attach_command): Call target_pre_inferior.
723 * memattr.c (default_mem_attrib): Initialize blocksize.
724 (target_mem_region_list, mem_use_target)
725 (target_mem_regions_valid, mem_region_cmp, mem_region_init)
726 (require_user_regions, require_target_regions)
727 (invalidate_target_mem_regions): New.
728 (create_mem_region): Use mem_region_init.
729 (mem_clear): Move higher.
730 (lookup_mem_region): Use require_target_regions.
731 (mem_command): Implement "mem auto".
732 (mem_info_command): Handle target-supplied regions and flash
733 attributes.
734 (mem_enable_command, mem_disable_command, mem_delete_command): Use
735 require_user_regions.
736 (_initialize_mem): Mention "mem auto" in help.
737 * memattr.h (enum mem_access_mode): Add MEM_FLASH.
738 (struct mem_attrib): Add blocksize.
739 (invalidate_target_mem_regions, mem_region_init, mem_region_cmp): New
740 prototypes.
741 * remote.c: Include "memory-map.h".
742 (PACKET_qXfer_memory_map): New enum value.
743 (remote_protocol_features): Add qXfer:memory-map:read.
744 (remote_xfer_partial): Handle memory maps.
745 (remote_memory_map): New.
746 (init_remote_ops, init_remote_async_ops): Set to_memory_map.
747 (_initialize_remote): Register qXfer:memory-map:read.
748 * target.c (update_current_target): Mention to_memory_map.
749 (target_memory_map, target_pre_inferior): New.
750 (target_preopen): Call target_pre_inferior.
751 * target.h: Include "vec.h".
752 (enum target_object): Add TARGET_OBJECT_MEMORY_MAP.
753 (struct target_ops): Add to_memory_map.
754 (target_memory_map, target_pre_inferior): New prototypes.
755 * memory-map.c, memory-map.h, xml-support.c, xml-support.h: New files.
756
253c8abb
DJ
7572006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
758
759 * ada-lex.l (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
760 (strtoulst): Moved to ...
761 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
762 (strtoulst): ... here. Enhanced to behave more similarly
763 to strtoul.
764 * defs.h (strtoulst): New prototype.
765
c96fc75e
DJ
7662006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
767
768 * Makefile.in (memattr_h, memattr.o): Update.
769 * memattr.h: Include "vec.h".
770 (struct mem_region): Remove linked list pointer.
771 (mem_region_s): New typedef and corresponding vector.
772 * memattr.c: Include "vec.h".
773 (mem_region_chain): Delete.
774 (mem_region_list): New vector pointer.
775 (mem_region_lessthan): New function.
776 (create_mem_region): Remove unused return value. Use vector
777 operations. Remove linear search.
778 (delete_mem_region): Delete.
779 (lookup_mem_region): Use vector operations. Add a FIXME.
780 (mem_info_command): Update to work with vectors.
781 (mem_enable, mem_enable_command, mem_disable, mem_disable_command)
782 (mem_free, mem_delete): Likewise.
783
350da6ee
DJ
7842006-09-21 Nathan Sidwell <nathan@codesourcery.com>
785
786 * vec.h: New file.
787 * vec.c: New file.
788 * Makefile.in (SFILES): Add vec.c.
789 (vec_h): New.
790 (COMMON_OBJS): Add vec.o.
791 (vec.o): New target.
792
2e9f7625
DJ
7932006-09-20 Daniel Jacobowitz <dan@codesourcery.com>
794
795 PR remote/2154
796 * remote.c (remote_thread_alive): Remove local buf.
797 (remote_get_threadinfo): Remove local threadinfo_pkt.
798 (remote_get_threadlist): Remove unused threadlist_packet.
799 (remote_current_thread): Remove local buf.
800 (remote_threads_info): Set bufp after getpkt.
801 (remote_threads_extra_info): Remove local bufp.
802 (get_offsets): Set buf after getpkt.
803 (remote_check_symbols): Set reply after getpkt.
804 (remote_vcont_probe): Set buf after getpkt.
805 (remote_resume): Set buf after set_thread.
806 (remote_wait, remote_async_wait): Set buf after getpkt.
807 (fetch_register_using_p): Set buf after remote_send.
808 (remote_fetch_registers): Likewise.
809 (store_register_using_P): Don't use buf after remote_send.
810 (check_binary_download, remote_write_bytes)
811 (remote_read_bytes, remote_rcmd): Remove local buf.
812
6e90a7df
VP
8132006-09-17 Vladimir Prus <vladimir@codesourcery.com>
814
815 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Don't emit error
f28f46e7 816 if high requested frame number is larger than number of available
6e90a7df
VP
817 frames.
818
d51ca893
NR
8192006-09-16 Nick Roberts <nickrob@snap.net.nz>
820
821 * linux-nat.c (linux_test_for_tracefork): Don't leave zombie
822 process.
823
04d1f770
DJ
8242006-09-16 Andrzej Zaborowski <balrog@zabor.org>
825
826 * interps.c (interpreter_exec_cmd): Restore interpreter properties.
827
5a2901d9
DJ
8282006-09-10 Daniel Jacobowitz <dan@codesourcery.com>
829
830 PR threads/2149
831 * infrun.c (handle_inferior_event): Context switch after fork
832 and exec events.
833
4c850810
DJ
8342006-09-10 Daniel Jacobowitz <dan@codesourcery.com>
835
836 * infcall.c (call_function_by_hand): Check for function pointer
837 types.
838
0ba5a932
AS
8392006-09-10 Andreas Schwab <schwab@suse.de>
840
841 * m68k-tdep.c (m68k_analyze_register_saves): Fix decoding of
842 `move.l %R,-(%sp)'.
843
2ab1eb7a
VP
8442006-09-07 Vladimir Prus <vladimir@codesourcery.com>
845
6e90a7df 846 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Don't emit
2ab1eb7a
VP
847 error if high requested frame number is larger then number
848 of available frames.
849
7a0b0196
JB
8502006-09-07 Joel Brobecker <brobecker@adacore.com>
851
852 From Stephan Springl <springl-gdb@bfw-online.de>
853 * fork-child.c (fork_inferior): Fix typo.
854
d56874a7
DD
8552006-08-28 DJ Delorie <dj@redhat.com>
856
857 * m32c-tdep.c (m32c_decode_srcdest4): Initialize fields in sd
858 that may not be initialized elsewhere.
859 (m32c_decode_sd23): Likewise.
860
14711c82
DJ
8612006-08-25 Daniel Jacobowitz <dan@codesourcery.com>
862
863 * buildsym.c (finish_block): Don't adjust the boundaries of
864 nested functions.
865
f414f22f
AS
8662006-08-24 Andreas Schwab <schwab@suse.de>
867
868 * symfile.c (add_symbol_file_command): Fix off-by-one when
869 extending sect_opts.
870
461c8a2c
NR
8712006-08-24 Nick Roberts <nickrob@snap.net.nz>
872
873 * mi/gdb-mi.el: Refer to next release of Emacs as 22.1.
874
77a458b3
NR
8752006-08-23 Nick Roberts <nickrob@snap.net.nz>
876
877 * mi/gdb-mi.el (gdbmi): Remove gdb-force-update, initialize
878 other variables.
879 (gdbmi-send): Ensure any text properties can be removed.
880 (gdbmi-prompt1): Update to gdb-ui.el
881 (gud-gdbmi-marker-filter): Defer setting of gud-running.
882 Keep gdb-done-regexp for partial-output-buffer.
883 (gdb-stack-list-frames-handler): Add face to function names.
884
76b7178d
MK
8852006-08-22 Mark Kettenis <kettenis@gnu.org>
886
316703b9
MK
887 * valprint.c (val_print_type_code_flags): Fix GNU coding standards
888 violation.
889
2a1ce6ec
MK
890 * alpha-tdep.c (alpha_register_to_value, alpha_value_to_register)
891 (alpha_push_dummy_call, alpha_extract_return_value)
892 (alpha_breakpoint_from_pc, alpha_read_insn)
893 (alpha_get_longjmp_target, alpha_supply_int_regs)
894 (alpha_fill_int_regs, alpha_supply_fp_regs, alpha_fill_fp_regs)
895 (alpha_next_pc): Use gdb_byte instead of (unsigned) char where
896 appropriate.
897
fd936806
MK
898 * sparc64-tdep.c (sparc64_pstate_type, sparc64_fsr_type)
899 (sparc64_fprs_type): New variables.
900 (sparc64_init_types): New function.:
901 (sparc64_register_info): Use appropriate flag types for %fsr and
902 %fprs.
903 (sparc64_pseudo_register_info): Use appropriate type for %pstate.
904 (_initialize_sparc64_tdep): New function.
905
befae759
MK
906 * valprint.c (val_print_type_code_flags): Fix for bitfields larger
907 than 32 bits.
908
76b7178d
MK
909 * gdbtypes.c (init_flags_type): Set all fields to zero instead of
910 just the first one.
911
d3f4f91a
DJ
9122006-08-22 Daniel Jacobowitz <dan@codesourcery.com>
913
914 * Makefile.in (INTERNAL_CPPFLAGS): New.
915 (INTERNAL_CFLAGS_BASE): Use it.
916
a98b27f2
MS
9172006-08-22 Michael Snyder <Michael.Snyder@PalmSource.com>
918
919 * MAINTAINERS: Update my email address.
920
8695c747
DJ
9212006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
922
923 * Makefile.in (amd64_linux_tdep_h): New.
924 (amd64-linux-nat.o, amd64-linux-tdep.o): Update.
925 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Add
926 ORIG_RAX.
927 (_initialize_amd64_linux_nat): Set amd64_native_gregset64_num_regs.
928 * amd64-linux-tdep.c (amd64_linux_register_name)
929 (amd64_linux_register_type, amd64_linux_register_reggroup_p)
930 (amd64_linux_write_pc): New.
931 (amd64_linux_init_abi): Use them, and update num_regs.
932 * amd64-linux-tdep.h: New file.
933 * amd64-tdep.c (amd64_register_name, amd64_register_type): Make
934 public.
935 * amd64-tdep.h (amd64_register_name, amd64_register_type): New
936 prototypes.
937
938 * regformats/reg-x86-64-linux.dat: New file.
939
c17eaafe
DJ
9402006-08-18 Daniel Jacobowitz <dan@codesourcery.com>
941
942 * infrun.c (handle_inferior_event): Check the current frame ID
943 before unwinding to the previous frame.
944
61049d3b
DJ
9452006-08-18 Daniel Jacobowitz <dan@codesourcery.com>
946
947 * dwarf2read.c (quirk_gcc_member_function_pointer): Add GCC PR
948 number in a comment.
949
2c9771d3
MK
9502006-08-18 Mark Kettenis <kettenis@gnu.org>
951
952 * sparc-nat.c (sparc_xfer_wcookie): Signal EOF. Tweak comment.
953
c0dd20ea
DJ
9542006-08-18 Daniel Jacobowitz <dan@codesourcery.com>
955
956 * dwarf2read.c (quirk_gcc_member_function_pointer): New.
957 (read_structure_type): Call it.
958
17218d91
DJ
9592006-08-16 Daniel Jacobowitz <dan@codesourcery.com>
960
961 * NEWS: Mention "set trust-readonly-sections" fix.
962
2bc416ba
DJ
9632006-08-16 Daniel Jacobowitz <dan@codesourcery.com>
964
965 * remote.c, target.c: Strip trailing whitespace.
966
cf7a04e8
DJ
9672006-08-15 Daniel Jacobowitz <dan@codesourcery.com>
968
969 PR remote/1966
970 * dcache.c (dcache_write_line): Use target_write.
971 (dcache_read_line): Use target_read.
972 * mi/mi-main.c (mi_cmd_data_read_memory): Use target_read.
973 * symfile.c (struct load_section_data): Add new per-section
974 members.
975 (load_progress): New function.
976 (load_section_callback): Pass load_progress to the new
977 target_write_with_progress.
978 * target.c (current_xfer_partial, memory_xfer_partial): New.
979 (target_xfer_partial): New prototype.
980 (target_xfer_memory, target_xfer_partial_p, xfer_using_stratum)
981 (do_xfer_memory, target_xfer_memory_partial)
982 (target_read_memory_partial, target_write_memory_partial): Delete.
983 (trust_readonly): Move higher in the file.
984 (update_current_target): Use current_xer_partial.
985 (target_xfer_partial): Use memory_xfer_partial. Handle
986 TARGET_OBJECT_RAW_MEMORY specially.
987 (target_read_memory): Use target_read.
988 (target_write_memory): Use target_write.
989 (default_xfer_partial): Call to_xfer_partial directly.
990 (target_write_with_progress): New function, based on target_write.
991 (target_write): Call it.
992 * target.h (enum target_object): Add TARGET_OBJECT_RAW_MEMORY.
993 (target_write_with_progress): New prototype.
994 (do_xfer_memory, target_read_memory_partial)
995 (target_write_memory_partial): Delete prototypes.
996
b2182ed2
DJ
9972006-08-15 Daniel Jacobowitz <dan@codesourcery.com>
998
999 * remote.c (remote_write_bytes): Take a const buffer argument.
1000 Do the checks from remote_xfer_memory.
1001 (remote_read_bytes): Do the checks from remote_xfer_memory.
1002 (remote_xfer_memory): Remove checks pushed into lower level
1003 functions.
1004 (remote_xfer_partial): Call remote_write_bytes and remote_read_bytes
1005 directly.
1006 * remote.h (remote_write_bytes): Update prototype.
1007
9fa66fd7
AS
10082006-08-11 Andrew Stubbs <andrew.stubbs@st.com>
1009
1010 * NEWS: Add 'set trace-commands' command.
1011
8625200f
AS
10122006-08-10 Andrew Stubbs <andrew.stubbs@st.com>
1013
1014 * cli/cli-script.c (execute_user_command): Update command_next_depth
1015 on user-command call.
1016
4f8253f3
JB
10172006-08-09 Joel Brobecker <brobecker@adacore.com>
1018
1019 * NEWS: Add entry for new substitute-path commands.
1020
2f61ca93
JB
10212006-08-08 Joel Brobecker <brobecker@adacore.com>
1022
1023 * source.c: #include gdb_assert.h.
1024 (substitute_path_rule): New struct.
1025 (substitute_path_rules): New static global variable.
1026 (substitute_path_rule_matches): New function.
1027 (get_substitute_path_rule): New function.
1028 (rewrite_source_path): New function.
1029 (find_and_open_source): Add source path rewriting support.
1030 (strip_trailing_directory_separator): New function.
1031 (find_substitute_path_rule): New function.
1032 (add_substitute_path_rule): New function.
1033 (delete_substitute_path_rule): New function.
1034 (show_substitute_path_command): New function.
1035 (unset_substitute_path_command): New function.
1036 (set_substitute_path_command): New function.
1037 (_initialize_source): Add new substitute-path commands.
1038 * Makefile.in (source.o): Add dependency on gdb_assert.h.
1039
24a2a654
JB
10402006-08-08 Joel Brobecker <brobecker@adacore.com>
1041
1042 * i386-tdep.c (i386_follow_jump): Use read_memory_nobpt to read
1043 instructions.
1044 (i386_analyze_struct_return): Likewise.
1045 (i386_skip_probe): Likewise.
1046 (i386_match_insn): Likewise.
1047 (i386_analyze_frame_setup): Likewise.
1048 (i386_analyze_register_saves): Likewise.
1049 (i386_skip_prologue): Likewise.
1050
359a9262
JB
10512006-08-08 Joel Brobecker <brobecker@adacore.com>
1052
1053 * gdbcore.h (read_memory_nobpt): New function name instead of
1054 deprecated_read_memory_nobpt.
1055 * breakpoint.c (read_memory_nobpt): New function name instead
1056 of deprecated_read_memory_nobpt.
1057 Adjust calls to old deprecated_read_memory_nobpt accordingly.
1058 * alpha-tdep.c: Adjust calls to deprecated_read_memory_nobpt
1059 accordingly.
1060 * alphanbsd-tdep.c: Likewise.
1061 * frame.c: Likewise.
1062 * frv-tdep.c: Likewise.
1063 * hppa-linux-tdep.c: Likewise.
1064 * hppa-tdep.c: Likewise.
1065 * i386-linux-nat.c: Likewise.
1066 * m68klinux-tdep.c: Likewise.
1067 * mips-tdep.c: Likewise.
1068 * s390-tdep.c: Likewise.
1069
7fa2210b
DJ
10702006-08-08 Daniel Jacobowitz <dan@codesourcery.com>
1071
1072 * configure.ac: Check for expat.
1073 * acinclude.m4: Include AC_LIB_HAVE_LINKFLAGS dependencies.
1074 * Makefile.in (LIBEXPAT): New.
1075 (CLIBS): Include $(LIBEXPAT).
1076 * README: Mention expat.
1077 * configure, config.in: Regenerated.
1078
ce928021
DJ
10792006-08-08 Joel Sherrill <joel.sherrill@oarcorp.com>
1080
1081 * config/sparc/embed.mt: New file.
1082 * configure.tgt (sparc-*-rtems*): Use embed.mt.
1083
9bdcbae7
DJ
10842006-08-08 Daniel Jacobowitz <dan@codesourcery.com>
1085
1086 * Makefile.in (objfiles.o, symfile.o): Update.
1087 * objfiles.c: Include "expression.h" and "parser-defs.h".
1088 (free_objfile): Clear global blocks.
1089 * symfile.c: Include "parser-defs.h".
1090 (clear_symtab_users): Clear global blocks.
1091
67985547
TS
10922006-08-08 Thiemo Seufer <ths@mips.com>
1093
1094 * breakpoint.c (update_breakpoints_after_exec): Fix type mismatch.
1095
3d00d119
DJ
10962006-08-08 Vladimir Prus <vladimir@codesourcery.com>
1097
1098 * symfile.c (download_write_size): Remove.
1099 (show_download_write_size): Remove.
1100 (load_section_callback): Don't use download_write_size.
1101 (_initialize_symfile): Don't register download_write_size.
1102 * NEWS: Mention 'download-write-size' removal.
1103
0534816d
DJ
11042006-08-06 Daniel Jacobowitz <dan@codesourcery.com>
1105
1106 * expprint.c (print_subexp_standard, dump_subexp_body_standard): Add
1107 support for member pointers.
1108
47ccd048
MK
11092006-08-02 Mark Kettenis <kettenis@gnu.org>
1110
1111 * arm-tdep.h: Add multiple inclusion protection.
1112 (struct gdbarch): Add forward declaration.
1113 (armobsd_regset_from_core_section): New prototype.
1114 * armbsd-tdep.c: New file.
1115 * armobsd-tdep.c: Include "gdb_string.h".
1116 (armobsd_init_abi): Set regset_from_core_section.
1117 (armobsd_core_osabi_sniffer): New function.
1118 (_initialize_armobsd_tdep): Register armobsd_core_osabi_sniffer.
1119 * Makefile.in (ALLDEPFILES): Add armbsd-tdep.c.
1120 (armbsd-tdep.o): New dependency.
1121 (armnbsd-tdep.o): Update dependencies.
1122 * config/arm/obsd.mt (TDEPFILES): Add armbsd-tdep.o and corelow.o.
1123
87177905
TS
11242006-08-02 Thiemo Seufer <ths@mips.com>
1125
1126 * linux-thread-db.c (thread_db_get_thread_local_address): Fix type
1127 mismatch.
1128 * tui/tui-stack.c (tui_show_frame_info): Likewise.
1129
a22229c4
DJ
11302006-08-01 Daniel Jacobowitz <dan@codesourcery.com>
1131
1132 * c-exp.y (type): Remove incorrect pointer to member case.
1133 * objc-exp.y (type): Likewise.
1134 * p-exp.y (type): Likewise.
1135
7c00367c
MK
11362006-08-01 Mark Kettenis <kettenis@gnu.org>
1137
1138 * arm-tdep.h (enum struct_return): New.
1139 (struct gdbarch_tdep): Add struct_return member.
1140 * arm-tdep.c (arm_return_value): Return
1141 RETURN_VALUE_STRUCT_CONVENTION for aggregates when the ABI uses
1142 pcc_struct_return.
1143 (arm_gdbarch_init): Default to reg_struct_return.
1144 * armobsd-tdep.c (armobsd_init_abi): Set pcc_struct_return.
1145
4816ec69
MK
11462006-07-31 Mark Kettenis <kettenis@gnu.org>
1147
1148 * alpha-tdep.h (ALPHA_S0_REGNUM): New define.
1149 * alphabsd-nat.c: Include <sys/types.h>, <sys/signal.h>,
1150 <machine/pcb.h> and "bsd-kvm.h".
1151 (alphabsd_supply_pcb): New function.
1152 (_initialize_alphabsd_nat): Enable libkvm interface.
1153 * Makefile.in (alphabsd-nat.o): Update dependencies.
1154 * config/alpha/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1155 (LOADLIBES): New variable.
1156 * config/alpha/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1157 (LOADLIBES): New variable.
1158
35d5d4ee
FF
11592006-07-31 Fred Fish <fnf@specifix.com>
1160
1161 * arm-tdep.c (arm_make_prologue_cache): Use FRAME_OBSTACK_ZALLOC
1162 instead of calling frame_obstack_zalloc directly.
1163 (arm_make_stub_cache): Ditto.
1164 * frame-unwind.h: Ditto.
1165 * frame.c (create_new_frame): Ditto.
1166
0f9e5f32
BW
11672006-07-27 Bob Wilson <bob.wilson@acm.org>
1168
1169 * MAINTAINERS (Write After Approval): Add myself.
1170
e896d70e
DJ
11712006-07-27 Bob Wilson <bob.wilson@acm.org>
1172
1173 * main.c (captured_main): Print a newline after calling
1174 print_gdb_version instead of waiting until after the symbol file
1175 has been read. Adjust error_pre_print, quit_pre_print, and
1176 warning_pre_print values.
1177
f58b68aa
DJ
11782006-07-27 Roger Sayle <roger@eyesopen.com>
1179 Daniel Jacobowitz <dan@codesourcery.com>
1180
1181 * irix5-nat.c (fetch_core_registers): Simplify and correct logic.
1182
159f81f3
DJ
11832006-07-27 Daniel Jacobowitz <dan@codesourcery.com>
1184
1185 * target.h (target_read_stralloc): New prototype.
1186 * target.c (target_read_alloc_1): Renamed from target_read_alloc.
1187 Take new PADDING argument.
1188 (target_read_alloc): Use it.
1189 (target_read_stralloc): New function.
1190
40e57cf2
DJ
11912006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
1192
1193 * remote.c (remote_protocol_features): Correct qPart to qXfer.
1194
ab5c9f60
DJ
11952006-07-25 Daniel Jacobowitz <dan@codesourcery.com>
1196
1197 * eval.c (evaluate_subexp_for_address): Don't incorrectly discard
1198 calls to C++ operator*.
1199
725a826f
DJ
12002006-07-24 Roger Sayle <roger@eyesopen.com>
1201 Daniel Jacobowitz <dan@codesourcery.com>
1202
1203 * solib-irix.c (gdb_int32_bytes): Use gdb_byte instead of char.
1204 (gdb_int64_bytes): Likewise.
1205 (fetch_lm_info): Use .b fields of gdb_int32_bytes and gdb_int64_bytes
1206 as first argument to extract_unsigned_integer to silence compiler
1207 warnings.
1208
72dca2f5
FR
12092006-07-24 Frederic Riss <frederic.riss@st.com>
1210
1211 * dwarf2read.c (struct dwarf2_per_objfile): Add has_section_at_zero
1212 field.
1213 (dwarf2_locate_sections): Initialize
1214 dwarf2_per_objfile->has_section_at_zero.
1215 (dwarf2_get_pc_bounds): Use dwarf2_per_objfile->has_section_at_zero
1216 instead of HAS_RELOC test.
1217 (read_partial_die): Ditto.
1218
4c42eaff
DJ
12192006-07-24 Daniel Jacobowitz <dan@codesourcery.com>
1220
1221 * corefile.c (reopen_exec_file): Only check for an open exec file.
1222 Use exec_file_attach.
1223 * exec.c (exec_open): Make static.
1224 (exec_file_command): Don't use target_preopen. Query directly about
1225 changing the file.
1226 * gdbcore.h (exec_open): Remove prototype.
1227
12282006-07-24 Frederic Riss <frederic.riss@st.com>
b05e64e5
FR
1229
1230 * regcache.c (struct regcache): Make register_valid_p a signed char
1231 array.
1232
3f64f7b1
DJ
12332006-07-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1234 Daniel Jacobowitz <dan@codesourcery.com>
1235
1236 * linux-thread-db.c (thread_db_wait): Remove libthread_db
1237 after exec events.
1238
6aec2e11
DJ
12392006-07-24 Daniel Jacobowitz <dan@codesourcery.com>
1240
1241 * NEWS: Mention Windows cross debugging support.
1242
83eba059
DJ
12432006-07-23 Daniel Jacobowitz <dan@codesourcery.com>
1244
1245 * linux-nat.c (linux_nat_add_target): Remove extern.
1246 * linux-nat.h (thread_db_init): New prototype.
1247
b80864fb
DJ
12482006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
1249
1250 * configure.tgt: Build gdbserver for Cygwin and mingw32.
1251
66a79c16
DJ
12522006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
1253
1254 * config/i386/cygwin.mt (DEPRECATED_TM_FILE): Delete.
1255 * config/i386/nm-cygwin.h: Add contents of tm-cygwin.h.
1256 * config/i386/tm-cygwin.h: Delete file.
1257
fc5261f2
MK
12582006-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1259
1260 * infrun.c (handle_inferior_event): Typo.
1261
16026cd7
AS
12622006-07-21 Andrew Stubbs <andrew.stubbs@st.com>
1263
1264 * cli/cli-cmds.c (source_verbose, trace_commands): New variables.
1265 (source_script): New function.
1266 (source_verbose_cleanup): New function.
1267 (source_command): Move old contents to source_script.
1268 Make function static. Parse -v option and call source_script.
1269 (init_cli_cmds): Update source command help.
1270 Add 'set trace-commands' command.
1271 * cli/cli-script.c (command_next_depth): New static variable.
1272 (suppress_next_print_command_trace): New static variable.
1273 (reset_command_nest_depth): New function.
1274 (print_command_trace): New function.
1275 (execute_control_command): Split the continue_control and break_control
1276 cases, add calls to print_command_trace and count the nest depth.
1277 (while_command): Set suppress_next_print_command_trace.
1278 (if_command): Likewise.
1279 * top.c (execute_command): Call print_command_trace.
1280 * cli/cli-cmds.h (source_verbose, trace_commands): New extern variables.
1281 (source_command): Change to source_script.
1282 * main.c (captued_main): Use source_script instead of source_command.
1283 * top.h (source_command): Change to source_script.
1284 * event-top.c (display_gdb_prompt): Call reset_command_nest_depth.
1285 * cli/cli-script.h (print_command_trace): Export.
1286 (reset_command_nest_depth): Likewise.
1287
16963cb6
DJ
12882006-07-20 Daniel Jacobowitz <dan@codesourcery.com>
1289
1290 * eval.c (evaluate_struct_tuple): Skip static fields.
1291
6b26d61a
MK
12922006-07-19 Mark Kettenis <kettenis@gnu.org>
1293
6ea0ec3f
MK
1294 * alphaobsd-tdep.c: Include "obsd-tdep.h".
1295 (alphaobsd_init_abi): Set skip_solib_resolver.
1296 * Makefile.in (alphaobsd-tdep.o): Update dependencies.
1297 * config/alpha/obsd.mt (TDEPFILES): Add obsd-tdep.o.
1298
6b26d61a
MK
1299 * arm-tdep.c (arm_gdbarch_init): Get default floating-point model
1300 from ELF flags for binaries produced by the GNU toolchain.
1301
86cc68a8
NS
13022006-07-18 Nathan Sidwell <nathan@codesourcery.com>
1303
1304 * remote-fileio.c (remote_fileio_func_rename): Reorder to process
1305 input buffer before reading memory.
1306 (remote_fileio_func_stat): Likewise.
1307
29e8a844
DJ
13082006-07-18 Daniel Jacobowitz <dan@codesourcery.com>
1309
1310 * blockframe.c (find_pc_partial_function): Use the minimal symbol
1311 size to control the cache entry, if available.
1312 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle minimal
1313 symbols with zero and non-zero sizes differently.
1314
28b17333
DJ
13152006-07-18 Daniel Jacobowitz <dan@codesourcery.com>
1316
1317 * linux-thread-db.c (td_thr_getfpregs_p, td_thr_getgregs_p)
1318 (td_thr_setfpregs_p, td_thr_setgregs_p, thread_db_get_info)
1319 (thread_db_fetch_registers, thread_db_store_registers)
1320 (thread_db_thread_alive, thread_db_state_str): Delete.
1321 (thread_db_load): Don't look up regset functions.
1322 (thread_db_pid_to_str): Simplify.
1323 (thread_db_extra_thread_info): New.
1324 (init_thread_db_ops): Do not set to_fetch_registers,
1325 to_store_registers, or to_thread_alive. Set to_extra_thread_info.
1326 * Makefile.in: Remove linux-thread-db.o rule.
1327
e3ac4a1e
MK
13282006-07-18 Mark Kettenis <kettenis@gnu.org>
1329
1330 * armobsd-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
1331 (armobsd_sigframe_init): New function.
1332 (armobsd_sigframe): New variable.
1333 (armobsd_init_abi): Prepend armobsd_sigframe unwinder.
1334 * Makefile.in (armobsd-tdep.o): Update dependencies.
1335
08ae6d95
DJ
13362006-07-18 Denis PILAT <denis.pilat@st.com>
1337
1338 * monitor.c: Remove unused prototypes.
1339
6962ad99
VP
13402006-07-18 Vladimir Prus <vladimir@codesourcery.com>
1341
1342 * target.c (tcomplain): Mark with ATTR_NORETURN.
1343
0152ebd7
VP
1344 * defs.h (print_transfer_performance): Improve comments.
1345
aa88762a
MK
13462006-07-17 Mark Kettenis <kettenis@gnu.org>
1347
675dcf4f
MK
1348 * printcmd.c: Coding style fixes: add missing spaces in comments
1349 and wrapping long lines.
1350 (delete_display, enable_display_command, disable_display_command)
1351 (printf_command, display_info, undisplay_command, free_display)
1352 (display_command, x_command, address_info, set_command)
1353 (inspect_command, call_command, print_command, print_command_1)
1354 (validate_format, print_formatted, decode_format, sym_format):
1355 Remove prototypes.
1356 (x_command): Make static.
1357 (printf_command): Convert error into internal consistency check.
1358 (address_info): Avoid assignment within function call.
1359 (printf_command): Avoid redundant cast.
1360 * tracepoint.c (x_command): Remove extern prototype.
1361
aa88762a
MK
1362 * armobsd-tdep.c (armobsd_init_abi): Set skip_solib_resolver.
1363 * Makefile.in (armobsd-tdep.o): Update dependencies.
1364 * config/arm/obsd.mt (TDEPFILES): Add obsd-tdep.o.
1365
1cd566a4
MK
13662006-07-16 Mark Kettenis <kettenis@gnu.org>
1367
a58dc200
MK
1368 * armobsd-tdep.c: New file.
1369 * Makefile.in (ALLDEPFILES): Add armobsd-tdep.c.
1370 (armobsd-tdep.o): New dependency.
1371 * config/arm/obsd.mt: New file.
1372 * configure.tgt: (arm*-*-openbsd*): Set gdb_target to obsd.
1373
d7b7af6f 1374 * gdbarch.sh (deprecated_saved_pc_after_call): Delete.
a4bc5cf9 1375 * gdbarch.h, gdbarch.c: Re-generate.
d7b7af6f 1376
1cd566a4
MK
1377 * arm-tdep.c (arm_saved_pc_after_call): Delete.
1378 (arm_gdbarch_init): Do not set deprecated_saved_pc_after_call.
1379
96ffcb62
AS
13802006-07-16 Alfred M. Szmidt <ams@gnu.org>
1381
1382 * gnu-nat.c: Undefine _process_user_ before including
1383 <hurd/process_request.h>.
1384 (gnu_resume): Supply missing argument to error().
1385 (gnu_read_inferior): Add extra parenthesis around arithmetic
1386 expression to silence warnings from GCC.
1387 (gnu_write_inferior): Likewise.
1388 (gnu_xfer_memory): Changed type of MYADDR to `gdb_byte *'.
1389
424f3115
MK
13902006-07-16 Mark Kettenis <kettenis@gnu.org>
1391
1392 * armnbsd-tdep.c (arm_netbsd_elf_init_abi): Use
1393 svr4_ilp_fetch_link_map_offsets.
1394
a4ab4a25
MK
13952006-07-15 Mark Kettenis <kettenis@gnu.org>
1396
1397 * armnbsd-tdep.c: Don't include "nbsd-tdep.h".
1398 * config/arm/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
1399 (DEPRECATED_TM_FILE): Remove.
1400 * Makefile.in (armnbsd-tdep.o): Update dependencies.
1401
cd24f626
JB
14022006-07-14 Joel Brobecker <brobecker@adacore.com>
1403
1404 * PROBLEMS: Document threads/2137.
1405
06d65a1d
MK
14062006-07-13 Mark Kettenis <kettenis@gnu.org>
1407
1408 * config/alpha/tm-nbsd.h: Remove file.
1409 * config/alpha/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1410
4844f454
CV
14112006-07-13 Corinna Vinschen <vinschen@redhat.com>
1412
1413 * mips-tdep.c (mips_integer_to_address): Simplify be calling
1414 extract_signed_integer directly. Fix comment.
1415
7830cb4f
CV
14162006-07-13 Corinna Vinschen <vinschen@redhat.com>
1417
1418 * m32c-tdep.c (m32c_banked_register): New function.
1419 (m32c_banked_read): Use m32c_banked_register function to evaluate
1420 real register number.
1421 (m32c_banked_write): Ditto.
1422 (m32c_virtual_frame_pointer): New function.
1423 (m32c_gdbarch_init): Add set_gdbarch_virtual_frame_pointer call.
1424
9bb47d95
NS
14252006-07-13 Nathan Sidwell <nathan@codesourcery.com>
1426
1427 * m68k-tdep.c (m68k_frame_align): New.
1428 (m68k_gdbarch_init): Set frame_align here.
1429
9af2a054
AS
14302006-07-13 Denis PILAT <denis.pilat@st.com>
1431
1432 * interps.c (interpreter_completer): Allocate one more item to the
1433 'matches' list and set them all to 0 with a xcalloc.
1434
79ee37bc
NR
14352006-07-13 Nick Roberts <nickrob@snap.net.nz>
1436
1437 * annotate.c (annotate_frame_begin): Re-instate frame-begin
1438 annotation for level 3 annotations.
1439
fb933624
DJ
14402006-07-13 Paul N. Hilfinger <Hilfinger@adacore.com>
1441 Daniel Jacobowitz <dan@codesourcery.com>
1442
1443 * infcall.c (value_arg_coerce): Use value_cast_pointers for
1444 references. Avoid value_cast to a reference type. Don't silently
1445 convert pointers to references.
1446 * valops.c (value_cast_pointers): New, based on value_cast.
1447 (value_cast): Use it. Reject reference types.
1448 (value_ref): New.
1449 (typecmp): Use it.
1450 * value.h (value_cast_pointers, value_ref): New prototypes.
1451
d49c44d5
DJ
14522006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1453
1454 * remote.c (unpack_varlen_hex): Correct type of retval.
1455 Reported by Zhigang Gong <zhigang.gong@gmail.com>.
1456
99bcc461
DJ
14572006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1458
1459 * dwarf2read.c (dwarf2_symbol_mark_computed): Handle corrupted
1460 or missing location list information. Suggested by Jan
1461 Kratochvil <lace@jankratochvil.net>.
1462
cb587d83
DJ
14632006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1464
1465 * Makefile.in (arm_linux_tdep_h): New variable.
1466 (arm-linux-nat.o, arm-linux-tdep.o): Update.
1467 * arm-linux-nat.c: Include "arm-linux-tdep.h".
1468 (typeNone, typeSingle, typeDouble, typeExtended)
1469 (FPWORDS, ARM_CPSR_REGNUM, FPREG, FPA11)
1470 (fetch_nwfpe_single, fetch_nwfpe_double, fetch_nwfpe_none)
1471 (fetch_nwfpe_extended, fetch_nwfpe_register, store_nwfpe_single)
1472 (store_nwfpe_double, store_nwfpe_extended, store_nwfpe_register):
1473 Delete.
1474 (fetch_fpregister, fetch_fpregs, store_fpregister, store_fpregs):
1475 Use gdb_byte buffers, NWFPE_FPSR_OFFSET, supply_nwfpe_register,
1476 and collect_nwfpe_register.
1477 (fill_gregset, supply_gregset, fill_fpregset, supply_fpregset): Use
1478 new regset functions.
1479 * arm-linux-tdep.c: Include "regset.h" and "arm-linux-tdep.h".
1480 (arm_apcs_32): New declaration.
1481 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
1482 (arm_linux_collect_gregset, typeNone, typeSingle, typeDouble)
1483 (typeExtended, supply_nwfpe_register, collect_nwfpe_register)
1484 (arm_linux_supply_nwfpe, arm_linux_collect_nwfpe)
1485 (arm_linux_regset_from_core_section): New.
1486 (arm_linux_init_abi): Register arm_linux_regset_from_core_section.
1487 * arm-linux-tdep.h: New file.
1488 * arm-tdep.h (struct regset): Declare.
1489 (struct gdbarch_tdep): Add gregset, fpregset members.
1490 * config/arm/linux.mh (NATDEPFILES): Remove corelow.o and
1491 core-regset.o.
1492 * config/arm/linux.mt (TDEPFILES): Add corelow.o.
1493
8802d8ed
DJ
14942006-07-12 Jan Kratochvil <lace@jankratochvil.net>
1495
1496 * infrun.c (handle_inferior_event): Fixed typos in printf.
1497
6765f3e5
DJ
14982006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1499 Nathan Sidwell <nathan@codesourcery.com>
1500
1501 * remote.c (REMOTE_ALIGN_WRITES): New.
1502 (remote_write_bytes): Align large write packets. Remove unused
1503 payload_start variable.
1504
0876f84a
DJ
15052006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1506
1507 * remote.c (PACKET_qXfer_auxv): New, renamed from PACKET_qPart_auxv.
1508 (remote_supported_packet): Remove #if 0.
1509 (remote_protocol_features): Add qPart:auxv:read.
1510 (remote_unescape_input): New function.
1511 (readchar): Don't mask off the high bit.
1512 (read_frame): Use fputstrn_filtered for packet data.
1513 (getpkt_sane): Return the number of bytes read or -1. Use
1514 fputstrn_unfiltered.
1515 (remote_read_qxfer): New.
1516 (remote_xfer_partial): Use it for TARGET_OBJECT_AUXV.
1517 (_initialize_remote): Update packet registration.
1518 * defs.h (fputstrn_filtered): New prototype.
1519 * utils.c (fputstrn_filtered): New.
1520 * NEWS: Mention qXfer.
1521
13547ab6
DJ
15222006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1523
1524 * target.c (target_read): Stop if target_read_partial returns 0
1525 when some bytes have already been read.
1526 (target_write): Likewise for target_write_partial.
1527 (target_read_partial, target_write_partial): Make static.
1528 (target_read_alloc): New.
1529 * target.h: Doc fixes.
1530 (target_read_partial, target_write_partial): Delete prototypes.
1531 (target_read_alloc): New prototype.
1532
1533 * auxv.c (target_auxv_read): Delete.
1534 (target_auxv_search, fprint_target_auxv): Use target_read_alloc.
1535 * auxv.h (target_auxv_read): Delete prototype.
1536 * avr-tdep.c (avr_io_reg_read_command): Use target_read_alloc.
1537 * ia64-tdep.c (getunwind_table, get_kernel_table): Likewise.
1538 * linux-nat.c (linux_nat_make_corefile_notes): Likewise.
1539 * procfs.c (procfs_make_note_section): Likewise.
1540 * remote.c (remote_xfer_partial): Don't loop here.
1541 * sparc-tdep.c (sparc_fetch_wcookie): Use target_read.
1542
edfb1a26
DJ
15432006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1544
1545 * arm-linux-tdep.c: Doc fixes.
1546 (ARM_SIGCONTEXT_R0, ARM_UCONTEXT_SIGCONTEXT)
1547 (ARM_OLD_RT_SIGFRAME_SIGINFO, ARM_OLD_RT_SIGFRAME_UCONTEXT)
1548 (ARM_NEW_RT_SIGFRAME_UCONTEXT, ARM_NEW_SIGFRAME_MAGIC): New
1549 constants.
1550 (arm_linux_sigreturn_init, arm_linux_rt_sigreturn_init): Support
1551 the new signal frame layouts.
1552
6e2c7fa1
DJ
15532006-07-12 Mike Frysinger <vapier@gentoo.org>:
1554 Daniel Jacobowitz <dan@codesourcery.com>
1555
1556 * Makefile.in (init.c) [LANG, LC_ALL]: Set to `c'.
1557 * gdb_indent.sh, gdb_mbuild.sh, observer.sh: Likewise.
1558 * gdbarch.sh: Correct comment.
1559
e0f2823e
DJ
15602006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1561
1562 * MAINTAINERS: Add Alfred Szmidt for the Hurd.
1563
24c41760
MK
15642006-07-11 Mark Kettenis <kettenis@gnu.org>
1565
1566 * alpha-tdep.h (ALPHA_INSN_SIZE): New define.
1567
8a112c90
MK
15682006-07-10 Mark Kettenis <kettenis@gnu.org>
1569
1570 * alphaobsd-tdep.c: New file.
1571 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Do not register a
1572 handler for GDB_OSABI_OPENBSD_ELF.
1573 * Makefile.in (ALLDEPFILES): Add alphaobsd-tdep.c.
1574 (alphaobsd-tdep.o): New target.
1575 * config/alpha/obsd.mt: New file.
1576 * configure.tgt (alpha*-*-openbsd*): Set gdb_target to obsd.
1577
9823e921
RH
15782006-07-10 Richard Henderson <rth@redhat.com>
1579
1580 * alpha-tdep.h (struct gdbarch_tdep): Add return_in_memory.
1581 * alpha-tdep.c (alpha_register_byte): Remove.
1582 (alpha_extract_struct_value_address): Remove.
1583 (alpha_return_value): New.
1584 (alpha_return_in_memory_always): New.
1585 (alpha_gdbarch_init): Set tdep->return_in_memory. Don't call
1586 set_gdbarch_deprecated_register_byte. Do call set_gdbarch_return_value
1587 instead of set_gdbarch_deprecated_use_struct_convention,
1588 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
1589 or set_gdbarch_deprecated_extract_struct_value_address.
1590 * alphafbsd-tdep.c (alphafbsd_return_in_memory): Rename from
1591 alphafbsd_use_struct_convention, remove gcc_p argument.
1592 (alphafbsd_init_abi): Set tdep->return_in_memory instead of
1593 set_gdbarch_deprecated_use_struct_convention.
1594
789f3b5f
MK
15952006-07-09 Mark Kettenis <kettenis@gnu.org>
1596
b0ca8573
MK
1597 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): New
1598 prototype.
1599 * alphanbsd-tdep.c (alphanbsd_regset_from_core_section): Handle
1600 a.out-style core file format here. Make global.
1601 (alphanbsd_regset_from_core_section): Remove.
1602 (alphanbsd_sigtramp_offset): Make static.
1603 (alphanbsd_aout_init_abi): Remove.
1604 (alphanbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_ELF for
1605 a.out style core files.
1606 (_initialize_alphanbsd_tdep): Do not register a handler for
1607 GDB_OSABI_NETBSD_AOUT.
1608
3beabdb2 1609 * alphabsd-tdep.h: Tweak comments.
3b03cc43 1610 (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove.
3beabdb2
MK
1611 * alphanbsd-tdep.c: Reorder includes. Include "regset.h".
1612 (ALPHANBSD_SIZEOF_GREGS, ALPHANBSD_SIZEOF_FPREGS): New defines.
1613 (alphanbsd_supply_fpregset, alphanbsd_supply_gregset)
1614 (alphanbsd_aout_supply_gregset): New functions.
1615 (alphanbsd_gregset, alphanbsd_fpregset, alphanbsd_aout_gregset):
1616 New variables.
1617 (alphanbsd_regset_from_core_section)
1618 (alphanbsd_aout_regset_from_core_section): New functions.
1619 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1620 (alphanbsd_core_fns, alphanbsd_elf_fns): Remove variables.
1621 (alphanbsd_init_abi): Set regset_from_core_section.
1622 (alphanbsd_aout_init_abi, alphanbsd_core_osabi_sniffer): New
1623 functions.
1624 (_initialize_alphanbsd_tdep): Register NetBSD core file sniffer.
1625 Use alphanbsd_aout_init_abi whre appropriate. Don't call
1626 deprecated_add_core_fns.
1627 * Makefile.in (alphanbsd-tdep.o): Update dependencies.
1628
8fe7c54b
MK
1629 * alphabsd-tdep.c (alphabsd_supply_reg, alphabsd_fill_reg)
1630 (alphabsd_supply_fpreg, alphabsd_fill_fpreg): Add missing spaces.
1631
789f3b5f
MK
1632 * alphanbsd-tdep.c (alphanbsd_init_abi): Use
1633 svr4_lp64_fetch_link_map_offsets instead of
1634 nbsd_lp64_solib_svr4_fetch_link_map_offsets.
1635
09153d55
AS
16362006-07-06 Andrew Stubbs <andrew.stubbs@st.com>
1637
1638 * parse.c (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block
1639 write_exp_elt_longcst, write_exp_elt_dblcst, write_exp_elt_type,
1640 write_exp_elt_intern): Zero initialize tmp.
1641
2ec3381a
DJ
16422006-07-05 Daniel Jacobowitz <dan@codesourcery.com>
1643
1644 * remote.c (remote_xfer_partial): Remove KOD support.
1645 * target.h (enum target_object): Remove TARGET_OBJECT_KOD.
1646 * MAINTAINERS: Move Kernel Object Display entry to past maintainers.
071d802b
MK
1647 * Makefile.in (SFILES, kod_h, COMMON_OBS, kod.o, kod-cisco.o):
1648 Remove KOD support.
2ec3381a
DJ
1649 * mi/mi-cmds.c (mi_cmds): Remove dummy KOD commands.
1650 * NEWS: Mention KOD.
1651 * kod.h, kod.c, kod-cisco.c: Delete files.
1652
7fca722e
DJ
16532006-07-04 Daniel Jacobowitz <dan@codesourcery.com>
1654
1655 * remote.c (init_remote_state): Use xrealloc instead of xmalloc.
1656
4a35b02a
NW
16572006-07-03 Nathan J. Williams <nathanw@wasabisystems.com>
1658
1659 * bsd-kvm.c (bsd_kvm_open): Open the KVM interface read-write if
1660 write_files is set.
1661
a6f0780a
EZ
16622006-06-24 Eli Zaretskii <eliz@gnu.org>
1663
1664 * defs.h (DIRNAME_SEPARATOR) [!__CYGWIN__ && _WIN32]: Define to `;'.
1665
e4c16157
DJ
16662006-06-23 Daniel Jacobowitz <dan@codesourcery.com>
1667
1668 * arm-tdep.c (arm_register_type): Use unsigned types for registers.
1669 Add special types for sp and pc.
1670 * Makefile.in (arm-tdep.o): Update.
1671
a31ea83d
DJ
16722006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
1673
1674 * remote.c (remote_escape_output): New function.
1675 (remote_write_bytes): Use remote_escape_output.
1676
be2a5f71
DJ
16772006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
1678
1679 * NEWS: Mention qSupported.
1680 * remote.c (struct remote_state): Add explicit_packet_size.
1681 (get_remote_packet_size): Check explicit_packet_size.
1682 (get_memory_packet_size): Likewise.
1683 (PACKET_qSupported): New enum value.
1684 (struct protocol_feature, remote_supported_packet)
1685 (remote_packet_size, remote_protocol_features)
1686 (remote_query_supported): New.
1687 (remote_open_1): Reset explicit_packet_size. Call
1688 remote_query_supported.
1689 (_initialize_remote): Register qSupported.
1690
42b575e5
AS
16912006-06-21 Andrew Stubbs <andrew.stubbs@st.com>
1692
1693 * cli/cli-script.c (realloc_body_list): Zero new parts of body_list.
1694
9ae03986
JB
16952006-06-20 Joel Brobecker <brobecker@adacore.com>
1696
1697 * GDB 6.5 released from GDB 6.5 branch.
1698
8b07f6d8
MS
16992006-06-19 Michael Snyder <msnyder@redhat.com>
1700
1701 * mips-tdep.c (mips_eabi_push_dummy_call): For 32 bit ABI, to
1702 decide how many registers it takes to pass a floating point
1703 argument, what matters is the size of a floating point register
1704 (not the size of a general purpose register).
1705 (mips_o32_push_dummy_call): Ditto.
1706
ec5a4d75
KI
17072006-06-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1708
1709 * configure.tgt: Add gdbserver support for m32r-linux.
1710
8d3239d5
MK
17112006-06-18 Mark Kettenis <kettenis@gnu.org>
1712
1713 * m68klinux-tdep.c (m68k_linux_init_abi): Fix typo in comment.
1714
14e60db5
DJ
17152006-06-15 Daniel Jacobowitz <dan@codesourcery.com>
1716
1717 * infrun.c (insert_step_resume_breakpoint_at_caller): New function,
1718 based on insert_step_resume_breakpoint_at_frame.
1719 (handle_inferior_event): Update comments. Use
1720 insert_step_resume_breakpoint_at_caller.
1721 (insert_step_resume_breakpoint_at_frame): Revise comments.
1722
81a17f79
JB
17232006-06-14 Daniel Jacobowitz <dan@codesourcery.com>
1724
1725 * dwarf2read.c (read_unspecified_type): New function.
1726 (read_type_die): Handle DW_TAG_unspecified_type.
1727 (Committed by Julian Brown.)
1728
6490cafe
DJ
17292006-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1730
1731 * symfile.c (load_command): Check for a changed executable before
1732 "load".
1733
22e47e37
FF
17342006-06-13 Fred Fish <fnf@specifix.com>
1735
1736 * mips-tdep.c (mips_find_long_section): New function.
1737 (mips_gdbarch_init): Use it to set long and pointer sizes.
1738
5600ea19
NS
17392006-06-13 Nathan Sidwell <nathan@codesourcery.com>
1740
1741 * remote-file.io.c (remote_fileio_func_system): Treat zero length
1742 string as NULL. Adjust for NULL pointer argument.
1743 * doc/gdb.texinfo (system): Document behaviour with zero length
1744 string.
1745
bb572ddd
DJ
17462006-06-12 Daniel Jacobowitz <dan@codesourcery.com>
1747
1748 * remote.c (set_remote_protocol_packet_cmd)
1749 (show_remote_protocol_packet_cmd): New prototypes.
1750 (remote_set_cmdlist, remote_show_cmdlist): Move higher.
1751 (struct packet_config): Make name and title const.
1752 (add_packet_config_cmd): Remove unnecessary arguments.
1753 (_initialize_remote): Update calls.
1754
98739726
DJ
17552006-06-10 Daniel Jacobowitz <dan@codesourcery.com>
1756
1757 * mingw-hdep.c (gdb_select): Always check for NULL fd sets
1758 before calling FD_ISSET. Correct check for exceptfds which
1759 previously tested writefds.
1760
2b949cb6
JB
17612006-06-09 Daniel Jacobowitz <dan@codesourcery.com>
1762 Julian Brown <julian@codesourcery.com>
1763
4a9d57ab 1764 * dwarf2read.c (partial_read_comp_unit_head): Accept version 3.
2b949cb6 1765
5b031165
JB
17662006-06-09 Julian Brown <julian@codesourcery.com>
1767
1768 * MAINTAINERS (Write After Approval): Add myself.
1769
b2d6f210
MS
17702006-06-08 Michael Snyder <msnyder@redhat.com>
1771
1772 * mips-tdep.c (fp_register_arg_p): Recognize floating point typedefs.
1773
1dd41f16
NS
17742006-06-08 Nathan Sidwell <nathan@codesourcery.com>
1775
6dd0fba6
NS
1776 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): New.
1777 (m68k_gdbarch_init): Set it for dwarf & dwarf2 reg number
1778 conversion. Use M68K_NUM_REGS for number of regs.
1779
ad9a8f3f
NS
1780 * remote-fileio.c (remote_fileio_reset): New.
1781 * remote-fileio.h (remote_fileio_reset): Prototype.
1782 * remote.c (extended_remote_restart, remote_open_1): Call it.
1783
1784 * remote.c (remote_open_1): Do preopen tasks before
1dd41f16
NS
1785 irreversably destroying state.
1786
ea9c271d
DJ
17872006-06-08 Daniel Jacobowitz <dan@codesourcery.com>
1788
719abd53 1789 * remote.c (struct remote_state): New type, only containing
ea9c271d
DJ
1790 buf and buf_size.
1791 (remote_state): New variable.
1792 (get_remote_state): New function.
1793 (struct remote_arch_state): Renamed from struct remote_state.
1794 Removed buf and buf_size.
1795 (get_remote_arch_state): Renamed from get_remote_state. All
1796 necessary callers updated to call this function.
1797 (init_remote_state): Initialize the architecture-specific state.
1798 Update the target-specific state if necessary.
1799 (get_remote_packet_size): New function. All previous references
1800 changed to use this accessor function.
1801 (packet_reg_from_regnum, packet_reg_from_pnum): Take a
1802 remote_arch_state instead of a remote_state. All callers changed.
1803 (_initialize_remote): Initialize the packet buffer here.
1804
5cffb350
NS
18052006-06-06 Nathan Sidwell <nathan@codesourcery.com>
1806
ea9c271d 1807 * remote.c (remote_insert_watchpoint): Return -1, rather than
5cffb350
NS
1808 fatal error if packet is disabled.
1809 (remote_remove_watchpoint, remote_insert_hw_breakpoint,
1810 remote_remove_hw_breakpoint): Likewise.
1811
8a786d82
NR
18122006-06-02 Nick Roberts <nickrob@snap.net.nz>
1813
1814 * breakpoint.c (print_it_typical): Use EXEC_ASYNC_LOCATION_REACHED.
1815
f49e4e6d
MS
18162006-05-31 Michael Snyder <msnyder@redhat.com>
1817
1818 * mips-tdep.c: Comment tweaks.
1819
20e95c23
DJ
18202006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
1821
1822 * Makefile.in (top_builddir): Update comments.
1823 (INTL_DIR, INTL_SRC): Delete.
1824 (INTL, INTL_DEPS, INTL_CFLAGS): Update.
1825 * acinclude.m4: Include new gettext macros.
1826 * configure.ac: Use ZW_GNU_GETTEXT_SISTER_DIR. Remove copied
1827 CATALOGS code.
1828 * aclocal.m4, configure: Regenerated.
1829
9308fc88
DJ
18302006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
1831
1832 * Makefile.in (arm-linux-nat.o): Update dependencies.
1833 * arm-linux-nat.c: Include "gdb_proc_service.h".
1834 (PTRACE_GET_THREAD_AREA): Define.
1835 (ps_get_thread_area): New function.
1836
46ea248b
AO
18372006-05-28 Alexandre Oliva <aoliva@redhat.com>
1838
1839 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
1840 DWARF2_FRAME_REG_SAVED_VAL_OFFSET and
1841 DWARF2_FRAME_REG_SAVED_VAL_EXP.
1842 * dwarf2-frame.c (execute_cfa_program): Handle val_offset,
1843 val_offset_sf and val_expression.
1844 (dwarf2_frame_prev_register): Handle the new reg rules.
1845 (dwarf2_frame_this_id): Use pc instead of function entry point.
1846
56c987f6
AO
18472006-05-28 Alexandre Oliva <aoliva@redhat.com>
1848
1849 * dwarf2-frame.c (struct dwarf2_cie): Add signal_frame field.
1850 (dwarf2_frame_sniffer): Use it.
1851 (decode_frame_entry_1): Set it according to augmentation "S".
1852
5648af48
JB
18532006-05-27 Joel Brobecker <brobecker@adacore.com>
1854
1855 From Peter Schauer <peterschauer@gmx.net>
1856 * m2-typeprint.c (m2_record_fields): Move variable declarations
1857 to the begining of the block.
1858
03a73f77
MM
18592006-05-23 Mark Mitchell <mark@codesourcery.com>
1860
1861 * mt-tdep.c (mt_register_name): Correct out-of-range logic to
1862 include additional registers.
1863
1864 * mt-tdep.c (mt_gdb_regnums): Add ZI2, ZQ2, Ichannel2,
1865 Iscramb2, Qscramb2, Qchannel2.
1866 (mt_register_name): Likewise.
1867 (mt_copro_register_type): Describe ZI2 and ZQ2.
1868
1869 * mt-tdep.c (mt_gdb_regnums): Define
1870 MT_COPRO_PSEUDOREG_MAC_REGNUM.
1871 (mt_register_name): Use it.
1872 (mt_copro_register_type): Likewise.
1873 (mt_register_type): Likewise.
1874 (mt_pseudo_register_read): Likewise. Read the MAC register, not
1875 the coprocessor register.
1876 (mt_pseudo_register_write): Likewise.
1877
2b3c8945
CF
18782006-05-21 Christopher Faylor <cgf@timesys.com>
1879
1880 * win32-nat.c (cygwin_exceptions): New variable.
1881 (handle_exception): Treat a cygwin exception like a normal exception if
1882 cygwin_exceptions is true.
1883 (_initialize_win32_nat): Add "set cygwin-exceptions" handler.
1884
f79daebb
GM
18852006-05-20 Gaius Mulley <gaius@glam.ac.uk>
1886
1887 * NEWS: (Improved Modula-2 language support): New section.
1888
b4e70030
JB
18892006-05-19 Joel Brobecker <brobecker@adacore.com>
1890
1891 * configure: Regenerate using proper version of autoconf.
1892
a1f5b845
FF
18932006-05-19 Fred Fish <fnf@specifix.com>
1894
1895 * Makefile.in: Fix spelling of 'explicitly' and 'explicit'.
1896 * dwarfread.c: Fix spelling of 'unexpected'.
1897 * mips-tdep.c: Fix spelling of 'possible' and 'Determine'.
1898 * stack.c: Fix spelling of 'RETURN_VALUE'.
1899
82d03102
PG
19002006-05-18 Paul Gilliam <pgilliam@us.ibm.com
1901
1902 * solib-svr4.c (enable_break): Breakup a long line into 3 shorter ones.
1903
f2da6b3a
DJ
19042006-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1905
1906 * dwarf2-frame.c: Include "value.h".
1907 (read_reg): Use unpack_long and register_type.
1908 * Makefile.in (dwarf2-frame.o): Update.
1909
1f5befc1
DJ
19102006-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1911
1912 * remote-rdp.c: Deleted.
1913 * NEWS: Mention removal of remote-rdp.c.
1914
1915 * Makefile.in (ALLDEPFILES): Remove remote-rdp.c.
1916 (remote-rdp.o): Delete.
1917 * README: Remove description of remote-rdp.c.
1918 * arm-tdep.c (arm_breakpoint_from_pc): Remove obsolete comment.
1919 * config/arm/embed.mt (TDEPFILES): Remove remote-rdp.o.
1920
cd96dfc9
DJ
19212006-05-16 Daniel Jacobowitz <dan@codesourcery.com>
1922
1923 * ser-e7kpc.c: Include <time.h> if it is available.
1924
19252006-05-16 Joel Brobecker <brobecker@adacore.com>
e374b601
JB
1926
1927 * version.in (version.in): Bump version number to 6.5.50 now
1928 that the gdb-6.5 branch has been created.
1929 * NEWS: Create a new section for changes that are included
1930 since gdb-6.5. Name the "since gdb-6.4" section as the "in gdb-6.5"
1931 section.
1932
13942a42
JB
19332006-05-16 Jim Blandy <jimb@codesourcery.com>
1934
1935 * MAINTAINERS (Authorized Committers): Gaius Mulley has accepted
1936 the Global Maintainers' invitation to be an authorized committer
1937 for the Modula-2 support.
1938
8599da2d
MK
19392006-05-15 Mark Kettenis <kettenis@gnu.org>
1940
1941 * ppcobsd-nat.c: Include "gdb_assert.h".
1942 [PT_GETFPREGS] (getfpregs_supplies): New function.
1943 (ppcobsd_fetch_registers, ppcobsd_fetch_registers): Hanlde OS
1944 versions that have PT_GETFPREGS.
1945 (_initialize_ppcobsd_nat) [PT_GETFPREGS]: Initialize
1946 ppcobsd_fpreg_offsets.
1947 * ppcobsd-tdep.h (ppcobsd_fpreg_offsets, ppcobsd_fpregset):
1948 Declare.
1949 * ppcobsd-tdep.c (ppcobsd_fpreg_offsets, ppcobsd_fpregset): New
1950 variables.
1951 (_initialize_ppcobsd_tdep): Initialize ppcobsd_fpreg_offsets.
1952 * Makefile.in (ppcobsd-nat.o): Update dependencies.
1953
4e8d927d
DJ
19542006-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1955
1956 * configure.ac: Use GCC_HEADER_STDINT.
1957 * acinclude.m4: Include stdint.m4.
1958 * Makefile.in (gdb_stdint_h): Define.
1959 (distclean): Remove gdb_stdint.h.
1960 (Makefile, stamp-h): Update rules to generate only the correct
1961 files.
1962 (gdb_stdint.h, stamp-int): New rules.
1963 * config.in, configure: Regenerated.
1964
19ca80ba
DJ
19652006-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1966
1967 * valprint.c: Include "exceptions.h".
1968 (val_print): If something goes wrong while printing, supply an
1969 error message.
1970
245c7f48
DJ
19712006-05-15 Peter O'Gorman <gdb-patches@mlists.thewrittenword.com>
1972
1973 * source.c (get_current_source_symtab_and_line)
1974 (set_current_source_symtab_and_line): Use { 0 }.
1975 * cli/cli-cmds.c (list_command): Likewise.
1976
53b33aeb
NR
19772006-05-14 Nick Roberts <nickrob@snap.net.nz>
1978
1979 * mi/gdb-mi.el (gdbmi-send): Correct regexp for repeat commands.
1980 (gdbmi): Use new variable name gdb-pc-address.
1981 (gdbmi-frame-handler): Use new variable name gdb-pc-address.
1982 Check that a match has been found.
1983
d3d3c7e6 19842006-05-13 Gaius Mulley <gaius@glam.ac.uk>
72019c9c 1985
d3d3c7e6 1986 * m2-lang.h: Added function extern prototypes for
229582b7 1987 m2_is_long_set and get_long_set_bounds.
d3d3c7e6
GM
1988 * m2-typeprint.c: Complete replacement.
1989 (m2_print_type): Walk the Modula-2 type tree.
1990 (m2_type_name): New function.
1991 (m2_range): New function.
1992 (m2_typedef): New function.
1993 (m2_array): New function.
1994 (m2_pointer): New function.
1995 (m2_ref): New function.
1996 (m2_unknown): New function.
1997 (m2_union): New function.
1998 (m2_procedure): New function.
1999 (m2_print_bounds): New function.
2000 (m2_short_set): New function.
2001 (m2_is_long_set): New function.
2002 (m2_get_discrete_bounds): New function.
2003 (m2_is_long_set_of_type): New function.
2004 (m2_long_set): New function.
2005 (m2_record_fields): New function.
2006 (m2_enum): New function.
1c547afb 2007 * dwarf2read.c: Modified.
d3d3c7e6
GM
2008 (read_set_type): New function.
2009 (process_die): Call read_set_type.
1c547afb 2010 (read_base_type): Modifed.
d3d3c7e6 2011 (set_cu_language): Added Modula-2 case clause.
1c547afb 2012 * m2-valprint.c: Complete replacement.
d3d3c7e6
GM
2013 (print_function_pointer_address): New function.
2014 (get_long_set_bounds): New function.
2015 (m2_print_long_set): New function.
2016 (print_unpacked_pointer): New function.
2017 (print_variable_at_address): New function.
2018 (m2_val_print): Replaced.
2019 * gdb/MAINTAINERS (Write After Approval): Added
2020 Gaius Mulley <gaius@glam.ac.uk>
72019c9c 2021
def18405
MK
20222006-05-12 Mark Kettenis <kettenis@gnu.org>
2023
2024 * ppcnbsd-tdep.h: Update copyright year. Include <stddef.h>
2025 (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
2026 (ppcnbsd_fill_fpreg): Remove prototypes.
2027 (struct regset): Add forward declaration.
2028 (ppcnbsd_gregset, ppcnbsd_fpregset): Extern declarations.
2029 * ppcnbsd-tdep.c: Update copyright year. Include "gdbtypes.h",
2030 "regset.h" and "gdb_string.h". Don't include "breakpoint.h",
2031 "value.h", target.h and nbsd-tdep.h". Reorder includes.
2032 (REG_FIXREG_OFFSET, REG_LR_OFFSET, REG_CR_OFFSET, REG_XER_OFFSET)
2033 (REG_CTR_OFFSET, REG_PC_OFFSET, SIZEOF_STRUCT_REG)
2034 (FPREG_FPR_OFFSET, FPREG_FPSCR_OFFSET, SIZEOF_STRUCT_FPREG):
2035 Remove macros.
2036 (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
2037 (ppcnbsd_fill_fpreg): Remove functions.
2038 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
2039 (ppcnbsd_core_fns, ppcnbsd_elfcore_fns): Remove variables.
2040 (ppcnbsd_reg_offsets): New variable.
2041 (ppcnbsd_gregset, ppcnbsd_fpregset): New variables.
2042 (ppcnbsd_sigtramp_cache_init): Deal with new signal trampoline
2043 introduced in NetBSD 2.0.
2044 (ppcnbsd_sigtramp): Provide complete signal trampoline.
2045 (ppcnbsd2_sigtramp): New variable.
2046 (ppcnbsd_init_abi): Set svr4_fetch_link_map_offsets to
2047 svr4_ilp32_fetch_link_map_offsets. Set regset_from_core_section.
2048 Add ppcnbs2_sigtramp unwinder.
2049 (_initialize_ppcnbsd_tdep): Don't use deprecated_add_core_fns.
2050 Initialize ppcnbsd_reg_offsets.
2051 * ppcnbsd-nat.c: Update copyright year. Reorder includes.
2052 (getregs_supplies): Use regnum instead of regno.
2053 (getfpregs_supplies): Likewise.
2054 (ppcnbsd_fetch_inferior_registers): Likewise. Call
2055 ppc_supply_gregset and ppc_suppply_fpregset instead of
2056 ppcnbsd_supply_reg and ppcnbsd_supply_fpreg
2057 (ppcnbsd_store_inferior_registers): Likewise. Call
2058 ppc_collect_gregset and ppc_collect_fpregset instead of
2059 ppcnbsd_fill_reg and ppcnbsd_fill_fpreg.
2060 (ppcnbsd_supply_pcb): Use `gdb_byte *' instead of `char *'.
2061 (_initialize_ppcnbsd_nat): Add some whitespace.
2062 * Makefile.in (ppcnbsd-nat.o, ppcnbsd-tdep.o): Update dependencies.
2063 * config/powerpc/nbsd.mh (NATDEPFILES): Remove infptrace.o.
2064 (NAT_FILE): Remove.
2065 * config/powerpc/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
2066
c4c50d37
DJ
20672006-05-11 Alfred M. Szmidt <ams@gnu.org>
2068
2069 * gnu-nat.c (inf_validate_procs): Don't use lvalue in assignments.
2070
576c2025
FF
20712006-05-11 Fred Fish <fnf@specifix.com>
2072
2073 * symtab.c (skip_prologue_using_sal): Handle single line functions
2074 like "foo(){}", which may optimize down to a single return inst.
2075
ba906c08
SE
20762006-05-10 Steve Ellcey <sje@cup.hp.com>
2077
2078 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Remove
2079 message.
2080
4bf8967c
AS
20812006-05-09 Andreas Schwab <schwab@suse.de>
2082
2083 * dwarf2-frame.c (struct dwarf2_fde): Add eh_frame_p.
2084 (execute_cfa_program): Add parameter eh_frame_p. Call
2085 dwarf2_frame_eh_frame_regnum when true.
2086 (dwarf2_frame_cache): Pass eh_frame_p from fde to
2087 execute_cfa_program.
2088 (decode_frame_entry_1): Call dwarf2_frame_eh_frame_regnum when
2089 processing .eh_frame. Copy eh_frame_p to the new fde.
2090 (struct dwarf2_frame_ops): Add eh_frame_regnum.
2091 (dwarf2_frame_set_eh_frame_regnum): Define.
2092 (dwarf2_frame_eh_frame_regnum): Define.
2093
2094 * dwarf2-frame.h (dwarf2_frame_set_eh_frame_regnum): Declare.
2095 (dwarf2_frame_eh_frame_regnum): Declare.
2096
55e969c1
DM
20972006-05-06 David S. Miller <davem@sunset.davemloft.net>
2098
2099 * linux-nat.c (linux_nat_do_thread_registers): Check for
2100 NULL collect_regset method.
2101
92f38ec2
UW
21022006-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2103
2104 * s390-tdep.c (s390_collect_regset): New function.
2105 (s390_gregset, s390x_gregset, s390_fpregset): Add it.
2106
6fed56b4
NR
21072006-05-06 Nick Roberts <nickrob@snap.net.nz>
2108
2109 * dwarf2read.c: Make LOC_OPTIMIZED_OUT the default value for a
2110 symbol.
2111
6fc19103
UW
21122006-05-05 Ulrich Weigand <uweigand@de.ibm.com>
2113
2114 * linux-nat.c (exit_lwp): Fix NULL pointer access.
2115 (linux_nat_handle_extended): New parameter STOPPING.
2116 (wait_lwp): Call it with STOPPING equals 1.
2117 (linux_nat_wait): Call it with STOPPING equals 0.
2118
d539ed7e
UW
21192006-05-05 Ulrich Weigand <uweigand@de.ibm.com>
2120
2121 * linux-nat.c (linux_nat_wait): Do not short-cut reporting
2122 of 'uninteresting' signals when single-stepping.
2123
49101e1c
DJ
21242006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
2125
2126 * MAINTAINERS: Move NEWS to the documentation entry.
2127
4f844a66
DM
21282006-05-05 David S. Miller <davem@sunset.davemloft.net>
2129
2130 * linux-nat.c (linux_nat_do_thread_registers): Use the
2131 regset_from_core_section infrastructure if the target
2132 supports it.
2133 * Makefile.in: Update dependencies.
bcc98f88
DM
2134 * linux-thread-db.c (thread_db_store_registers): Use
2135 regcache_raw_collect.
4f844a66 2136
411cb3f9
PG
21372006-05-05: Paul Gilliam <pgilliam@us.ibm.com>
2138
2139 * ppc-linux-nat.c: Clean up types for ptrace.
2140 Replace (CORE_ADDR) with (uintptr_t) to avoid the size difference
2141 between a CORE_ADDR and a void* on ppc64 systems compiled for 32-bits.
2142
597320e7
DJ
21432006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
2144
2145 * remote.c (remote_disconnect): Add TARGET argument.
2146 * target.c (debug_to_disconnect): Delete.
2147 (update_current_target): Do not inherit to_disconnect.
2148 (target_disconnect): Search for a target to implement to_disconnect.
2149 (setup_target_debug): Do not reference to_disconnect.
2150 * target.h (struct target_ops): Add target argument to
2151 to_disconnect.
2152
401835eb
FF
21532006-05-06 Fred Fish <fnf@specifix.com>
2154
2155 * mips-tdep.c (mips_o64_push_dummy_call): Left shift big endian
2156 structs or unions independent of ABI register size.
2157
7a076fd2
FF
21582006-05-06 Fred Fish <fnf@specifix.com>
2159
2160 * mips-tdep.c (mips_o64_return_value): Replace stub that always
2161 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
2162
eec01795
DJ
21632006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
2164
2165 * mi/mi-main.c (captured_mi_execute_command): Check the return
2166 value of -interpreter-exec.
2167
14b3d9c9
JB
21682006-05-03 Vladimir Prus <ghost@cs.msu.su>
2169
411cb3f9
PG
2170 * varobj.c (c_value_of_variable): Ignore top-level references.
2171 (Committed by Jim Blandy.)
14b3d9c9 2172
1893a4c0
MK
21732006-04-30 Mark Kettenis <kettenis@gnu.org>
2174
2175 * breakpoint.c (insert_single_step_breakpoint): Make a failure to
2176 insert a single-step breakpoint an error instead of a warning.
2177
21f79b33
NW
21782006-05-01 Nathan J. Williams <nathanw@wasabisystems.com>
2179
2180 * ppcnbsd-tdep.c (ppcnbsd_return_value): Change type of last two
2181 arguments from void * to gdb_byte *.
2182
b8db102d
MS
21832006-04-26 Michael Snyder <msnyder@redhat.com>
2184
2185 * linux-fork.c (_initialize_linux_fork): Rename "delete-fork"
2186 command to "delete fork" (no hyphen), compatible with other
2187 "delete" commands.
2188 (info_forks_command): Accept a fork ID argument, for info
2189 on a single fork. Report if no matching forks.
2190
bc0c849e
MK
21912006-04-25 Mark Kettenis <kettenis@gnu.org>
2192
1893a4c0
MK
2193 * breakpoint.c (remove_single_step_breakpoints): Bail out early if
2194 no breakpoints are inserted.
2195
bc0c849e
MK
2196 From Masaki MURANAKA <monaka@monami-software.com>:
2197 * mips-mdebug-tdep.c (mips_mdebug_frame_prev_register): Change
2198 type of last argument to `gdb_byte *'
2199
5f1fb6dc
JB
22002006-04-25 Jim Blandy <jimb@codesourcery.com>
2201
2202 Add support for 'target remote |' on MinGW.
2203 * ser-mingw.c (struct pipe_state): New structure.
2204 (make_pipe_state, free_pipe_state, cleanup_pipe_state)
2205 (pipe_windows_open, pipe_windows_close, pipe_windows_read)
2206 (pipe_windows_write, pipe_wait_handle): New functions.
2207 (_initialize_ser_windows): Register a "pipe" interface based on
2208 them.
2209
c3e2b812
DJ
22102006-04-24 Daniel Jacobowitz <dan@codesourcery.com>
2211
2212 * ser-mingw.c: Include <conio.h>.
2213 (struct ser_console_state, struct net_windows_state): Add exit_select,
2214 have_stopped, thread.
2215 (pipe_select_thread, console_select_thread)
2216 (net_windows_select_thread): Don't create a local state copy or
2217 close stop_select. Exit on exit_select instead of stop_select. Set
2218 have_stopped.
2219 (console_select_thread): Don't report control keypresses as pending
2220 input.
2221 (pipe_select_thread): Allow stop_select to interrupt sleeping.
2222 (set_console_wait_handle): Create exit_select and have_stopped.
2223 Save the thread handle. Check _kbhit before starting a thread.
2224 (ser_console_done_wait_handle): New.
2225 (ser_console_close): Close new handles. Wait for the thread to
2226 exit.
2227 (new_windows_select_thread): Assert that an event occurred.
2228 (net_windows_wait_handle): Check for pending input before starting
2229 a thread.
2230 (net_windows_done_wait_handle): New.
2231 (net_windows_open): Create exit_select and have_stopped.
2232 Save the thread handle.
2233 (net_windows_close): Close new handles. Wait for the thread to
2234 exit.
2235 (_intiialize_ser_windows): Register done_wait_handle methods.
2236
2237 * serial.c [USE_WIN32API] (serial_done_wait_handle): New.
2238 * serial.h [USE_WIN32API] (struct serial_ops): Add done_wait_handle.
2239 [USE_WIN32API] (serial_done_wait_handle): New prototype.
2240 * mingw-hdep.c (gdb_select): Use serial_done_wait_handle.
2241
b8eb021a
AS
22422006-04-23 Andreas Schwab <schwab@suse.de>
2243
2244 * rs6000-tdep.c: Include "reggroups.h" only once.
2245 * Makefile.in (rs6000-tdep.o): Update dependencies.
2246
4f1520fb
FR
22472006-04-21 Frederic Riss <frederic.riss@st.com>
2248
2249 * dwarf2read.c (dwarf2_start_subfile): Change prototype to accept
2250 compilation directory as last argument.
2251 Always pass comp_dir as second argument to start_subfile and prepend
2252 dirname to the filename when necessary.
2253 Remove now superfluous search for pre-existing subfile.
2254 (dwarf_decode_lines): Pass the compilation directory to
2255 dwarf2_start_subfile.
2256
0271fba4
MS
22572006-04-20 Michael Snyder <msnyder@redhat.com>
2258
2259 * 2006-03-22 Jim Blandy <jimb@redhat.com>
2260 Add support for the Renesas M32C and M16C.
2261
2262 * configure.tgt (m32c-*-*): New entry.
2263 * config/m32c/m32c.mt: New file.
2264 * m32c-tdep.c: New file.
2265 * Makefile.in (elf_m32c_h): New variable.
2266 (m32c-tdep.o): New rule.
2267 * NEWS: Mention new target.
2268 * MAINTAINERS: Designate Jim Blandy as responsible maintainer.
2269
cfde0993
MS
22702006-04-20 Michael Snyder <msnyder@redhat.com>
2271
2272 * remote.c: Fix spelling error in comment.
2273
cba5fab9
DJ
22742006-04-20 Daniel Jacobowitz <dan@codesourcery.com>
2275
2276 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_prev_register):
2277 Correct type of VALUEP. Reported by Jean-Rene Peulve
2278 <jr.peulve@wanadoo.fr>.
2279
cbba9205
KI
22802006-04-19 Masaki Muranaka <monaka@monami-software.com>
2281
2282 * m32r-rom.c: On MinGW, include winsock.h instead of sys/types.h,
2283 netdb.h, netinet/in.h.
2284 (m32r_upload_command); Add calls WSAStartup().
2285 * remote-m32r-sdi.c: On MinGW, include winsock.h instead of
2286 netinet/in.h.
2287
8181d85f
DJ
22882006-04-18 Daniel Jacobowitz <dan@codesourcery.com>
2289
2290 * breakpoint.c (deprecated_read_memory_nobpt): Update to use
2291 shadow_len.
2292 (insert_bp_location, reattach_breakpoints, remove_breakpoint)
2293 (delete_breakpoint): Update calls to changed methods.
2294 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
2295 (single_step_breakpoints, insert_single_step_breakpoint)
2296 (remove_single_step_breakpoints): New.
2297 * breakpoint.h (struct bp_target_info): New.
2298 (struct bp_location): Replace shadow_contents with
2299 target_info and overlay_target_info.
2300 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
2301 (insert_single_step_breakpoint, remove_single_step_breakpoints): New
2302 prototypes.
2303 * gdbarch.sh: Forward declare struct bp_target_info in gdbarch.h.
2304 (memory_insert_breakpoint, memory_remove_breakpoint): Update second
2305 argument.
2306 * mem-break.c (default_memory_insert_breakpoint): Update. Set
2307 placed_address, placed_size, and shadow_len.
2308 (default_memory_remove_breakpoint): Update. Don't use
2309 BREAKPOINT_FROM_PC.
2310 (memory_insert_breakpoint, memory_remove_breakpoint): Update.
2311 * target.c (update_current_target): Update prototypes for changed
2312 functions.
2313 (debug_to_insert_breakpoint, debug_to_remove_breakpoint)
2314 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint):
2315 Update.
2316 * target.h: Forward declare struct bp_target_info.
2317 (struct target_ops): Use a bp_target_info argument for
2318 to_insert_breakpoint, to_remove_breakpoint,
2319 to_insert_hw_breakpoint, and to_remove_hw_breakpoint.
2320 (target_insert_breakpoint, target_remove_breakpoint)
2321 (target_insert_hw_breakpoint, target_remove_hw_breakpoint)
2322 (memory_insert_breakpoint, memory_remove_breakpoint)
2323 (default_memory_insert_breakpoint, default_memory_remove_breakpoint):
2324 Update.
2325 * config/i386/nm-i386.h: Forward declare struct bp_target_info.
2326 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): Update.
2327 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Likewise.
2328
2329 * gdbarch.c, gdbarch.h: Regenerated.
2330
2331 * alpha-tdep.c (alpha_software_single_step): Use
2332 insert_single_step_breakpoint and remove_single_step_breakpoints.
2333 Remove unused statics.
2334 * arm-tdep.c (arm_software_single_step): Likewise. Add a note.
2335 * cris-tdep.c (cris_software_single_step): Likewise.
2336 * mips-tdep.c (mips_software_single_step): Likewise.
2337 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
2338 * sparc-tdep.c (sparc_software_single_step): Likewise.
2339 * wince.c (struct thread_info_struct): Remove step_prev.
2340 (undoSStep): Use remove_single_step_breakpoints.
2341 (wince_software_single_step): Use insert_single_step_breakpoint.
2342
2343 * corelow.c (ignore): Remove unneeded prototype. Update arguments.
2344 * exec.c (ignore): Likewise.
2345 * sol-thread.c (ignore): Likewise.
2346
2347 * procfs.c (dbx_link_shadow_contents): Delete.
2348 (dbx_link_bpt): New.
2349 (procfs_mourn_inferior): Remove it if necessary.
2350 (remove_dbx_link_breakpoint): Use it.
2351 (insert_dbx_link_bpt_in_file): Set it.
2352 (procfs_init_inferior): Don't update dbx_link_bpt_addr.
2353 * rs6000-nat.c (exec_one_dummy_insn): Use
2354 deprecated_insert_raw_breakpoint and
2355 deprecated_remove_raw_breakpoint.
2356 * solib-irix.c (shadow_contents, breakpoint_addr): Delete.
2357 (base_breakpoint): New.
2358 (disable_break): Use it.
2359 (enable_break): Set it.
2360
2361 * i386-nat.c (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint):
2362 Update.
2363 * ia64-tdep.c (ia64_memory_insert_breakpoint)
2364 (ia64_memory_remove_breakpoint): Likewise.
2365 * m32r-tdep.c (m32r_memory_insert_breakpoint)
2366 (m32r_memory_remove_breakpoint): Likewise.
2367 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
2368 Likewise. Remove unnecessary prototypes. Use placed_address
2369 and placed_size. Removed useless read from memory.
2370 * nto-procfs.c (procfs_insert_breakpoint)
2371 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
2372 (procfs_remove_hw_breakpoint): Update.
2373 * ocd.c (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
2374 * ocd.h (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
2375 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2376 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Likewise.
2377 * remote-e7000.c (e7000_insert_breakpoint)
2378 (e7000_remove_breakpoint): Likewise.
2379 * remote-m32r-sdi.c (m32r_insert_breakpoint)
2380 (m32r_remove_breakpoint): Likewise.
2381 * remote-mips.c (mips_insert_breakpoint)
2382 (mips_remove_breakpoint): Likewise.
2383 * remote-rdp.c (remote_rdp_insert_breakpoint)
2384 (remote_rdp_remove_breakpoint): Likewise.
2385 (rdp_step): Use deprecated_insert_raw_breakpoint and
2386 deprecated_remove_raw_breakpoint.
2387 * remote-sds.c (sds_insert_breakpoint, sds_remove_breakpoint):
2388 Update.
2389 * remote-sim.c (gdbsim_insert_breakpoint, gdbsim_remove_breakpoint):
2390 Delete.
2391 (init_gdbsim_ops): Use memory_insert_breakpoint and
2392 memory_remove_breakpoint.
2393 * remote-st.c (st2000_insert_breakpoint)
2394 (st2000_remove_breakpoint): Update. Remove unused
2395 BREAKPOINT_FROM_PC.
2396 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
2397 Update. Use placed_address and placed_size.
2398 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Likewise.
2399
01d3a6ce
DJ
24002006-04-12 Daniel Jacobowitz <dan@codesourcery.com>
2401
2402 * remote.c (extended_remote_restart): Pass the correct length
2403 to getpkt.
2404
2821caf1
JB
24052006-04-11 Jim Blandy <jimb@codesourcery.com>
2406
2407 * serial.c (serial_open): Check for special cases at the front of
2408 the "device" name before scanning for the ':' that would indicate
2409 an IP-based connection.
2410
02c5aecd
CF
24112006-04-10 Christopher Faylor <cgf@timesys.com>
2412
2413 * win32-nat.c (open_symbol_file_object): New function.
2414 (in_dynsym_resolve_code): Ditto.
2415 (init_win32_ops): Fill in fields which ought not to be NULL.
2416
cb832706
CF
24172006-04-10 Christopher Faylor <cgf@timesys.com>
2418
2419 * win32-nat.c (do_win32_fetch_inferior_registers): Don't do anything
2420 with saved context if __COPY_CONTEXT_SIZE is not defined.
2421 (handle_output_debug_string): Ditto.
2422
03926e1f
DJ
24232006-04-10 Daniel Jacobowitz <dan@codesourcery.com>
2424
2425 * arm-linux-tdep.c (arm_linux_extract_return_value): Use gdb_byte.
2426
b2a0b9b2
DM
24272006-04-09 David S. Miller <davem@sunset.davemloft.net>
2428
2429 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Append dwarf2
2430 frame sniffer.
2431 * sparc-tdep.c (sparc32_gdbarch_init): Make sure to call
2432 dwarf2_frame_set_init_reg() before gdbarch_init_osabi() so
2433 that the latter can override.
2434 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
2435
ee1b3323
UW
24362006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
2437
2438 * s390-tdep.c (struct s390_prologue_data): New field 'stack'.
2439 (s390_store): Call pv_area_store to track stack slots.
2440 (s390_load): Call pv_area_fetch to track stack slots.
2441 (s390_check_for_saved): New function.
2442 (s390_analyze_prologue): Call pv_area_scan. Allocate and free stack.
2443
3fc46200
UW
24442006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
2445
2446 * Makefile.in (s390-tdep.o): Add dependency on $(prologue_value_h).
2447 * s390-tdep.c: Include "prologue-value.h".
2448 (struct prologue_value): Remove.
2449 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2450 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2451 pv_logical_and, pv_is_identical, pv_is_register): Remove.
2452 (compute_x_addr): Remove, replace by ...
2453 (s390_addr): ... this new function.
2454 (struct s390_prologue_data): Use pv_t instead of prologue_value.
2455 (s390_store, s390_load): Likewise.
2456 (s390_prologue_frame_unwind_cache): Likewise.
2457 (s390_analyze_prologue): Likewise. Also, simplify and combine
2458 several conditional statements.
2459
d750b939
JB
24602006-04-08 Jim Blandy <jimb@codesourcery.com>
2461
2462 * Makefile.in (COMMON_OBS): List prologue-value.o. (Omitted from
2463 last patch.)
2464
0b4294d3
DM
24652006-04-08 David S. Miller <davem@sunset.davemloft.net>
2466
2467 * sparc-linux-tdep.c (sparc32_linux_step_trap): New.
2468 (sparc32_linux_init_abi): Hook it into tdep->step_trap.
07c5f590
DM
2469 (sparc32_linux_core_gregset,
2470 sparc32_linux_supply_core_gregset,
2471 sparc32_linux_collect_core_gregset,
2472 sparc32_linux_supply_core_fpregset,
2473 sparc32_linux_collect_core_fpregset): New.
2474 (sparc32_linux_init_abi): Register them with generic sparc
2475 core regset infrastructure.
0b4294d3
DM
2476 * sparc64-linux-tdep.c (sparc64_linux_step_trap): New.
2477 (sparc64_linux_init_abi): Hook it into tdep->step_trap.
07c5f590
DM
2478 (sparc64_linux_core_gregset,
2479 sparc64_linux_supply_core_gregset,
2480 sparc64_linux_collect_core_gregset,
2481 sparc64_linux_supply_core_fpregset,
2482 sparc64_linux_collect_core_fpregset): New.
2483 (sparc64_linux_init_abi): Register them with generic sparc
2484 core regset infrastructure.
0b4294d3
DM
2485 * Makefile.in: Update dependencies.
2486
9c0dd46b
DM
24872006-04-07 David S. Miller <davem@sunset.davemloft.net>
2488
2489 * linux-nat.c (linux_nat_thread_alive): Handle targets that
2490 do not implement PTRACE_PEEKUSER.
2491
670aa98f
DJ
24922006-04-07 Daniel Jacobowitz <dan@codesourcery.com>
2493
2494 * remote.c (remote_wait): Convert warning to error before
2495 parsing corrupt packets.
2496
e28493f2
AS
24972006-04-07 Andrew Stubbs <andrew.stubbs@st.com>
2498
2499 * cli/cli-script.c (struct user_args): Add command field.
2500 (arg_cleanup): Free command string.
2501 (setup_user_args): Copy the command line before relying on it.
2502
7f198e01
JB
25032006-04-06 Joel Brobecker <brobecker@adacore.com>
2504
2505 * breakpoint.c (_initialize_breakpoint): Add "del" as an alias
2506 of the "delete" command.
2507
c9f7217e
RC
25082006-04-06 Randolph Chung <tausq@debian.org>
2509
2510 * MAINTAINERS (Patch champions): Add myself.
2511
d993720d
AS
25122006-04-05 Andreas Schwab <schwab@suse.de>
2513
2514 * Makefile.in: Update dependencies.
2515
f5a9b87d
DM
25162006-04-05 David S. Miller <davem@sunset.davemloft.net>
2517
2518 * sparc-tdep.c (sparc32_dwarf2_frame_init_reg): New.
2519 (sparc32_gdbarch_init): Pass it to dwarf2_frame_set_init_reg.
2520 * Makefile.in (sparc-tdep.o): Update dependencies.
80f9e3aa
DM
2521 * sparc-linux-tdep.c (sparc32_linux_sigframe_init): Pull register
2522 window out of the correct stack frame.
2523 * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): Likewise.
aff37fc1
DM
2524 * dwarf2-frame.c (dwarf2_frame_ops init_reg): Add "next_frame"
2525 argument.
2526 (dwarf2_frame_default_init_reg): Likewise.
2527 (dwarf2_frame_set_init_reg): Update init_reg arg.
2528 (dwarf2_frame_init_reg): Take "next_frame" and pass it to
2529 ops->init_reg().
2530 (dwarf2_frame_cache): Pass next_frame to dwarf2_frame_init_reg.
2531 * dwarf2-frame.h (dwarf2-frame_set_init_reg): Update declaration.
2532 * cris-tdep.c (cris_dwarf2_frame_init_reg): Add next_frame arg.
2533 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
2534 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
2535 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
2536 * sparc-tdep.c (sparc32_struct_return_from_sym): New function.
2537 (sparc32_frame_cache): Call it.
2538 (sparc32_dwarf2_struct_return_p): New function.
2539 (sparc_dwarf2_frame_init_reg): Use it to determine if the function
2540 returns a structure and thus we have to indicate the return PC and
2541 NPC are 4 bytes later than usual.
faea95b1
DM
2542 * sparc-linux-tdep.c (sparc32_linux_init_abi): Append
2543 dwarf2 frame sniffer.
2544 * Makefile.in (sparc-linux-tdep.o): Update dependencies.
f5a9b87d 2545
75e192e6
DM
25462006-04-04 David S. Miller <davem@davemloft.net>
2547
2548 * config/linux.mh (NATDEPFILES): Remove sparc-sol2-nat.o
2549 * config/linux64.h (NATDEPFILES): Likewise
2550 * sparc-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
2551 fill_fpregset): New.
2552 * sparc64-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
2553 fill_fpregset): New.
0a59b3af
DM
2554 * Makefile.in (sparc-linux-nat.o, sparc64-linux-nat.o): Update for
2555 new includes.
2556
dbcd679b
AS
25572006-04-04 Andreas Schwab <schwab@suse.de>
2558
2559 * Makefile.in (elf_common_h): Define.
2560
357d3800
AS
25612006-04-03 Andrew Stubbs <andrew.stubbs@st.com>
2562
2563 * sh-tdep.c (sh_dwarf2_frame_init_reg): New function.
2564 (sh_gdbarch_init): Call dwarf2_frame_set_init_reg().
2565
d3c139e9
AS
25662006-03-31 Andrew Stubbs <andrew.stubbs@st.com>
2567
2568 * value.h (struct internalvar): Add field 'endian'.
2569 * value.c (lookup_internalvar): Initialise endian.
2570 (value_of_internalvar): Flip the endian of built-in types if required.
2571 (set_internalvar): Set the endian.
2572 (show_convenience): Access the value through value_of_internalvar().
2573
bb858e6a
DJ
25742006-03-30 Vladimir Prus <ghost@cs.msu.su>
2575
2576 * remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum
2577 instead of hardcoded integer literals.
2578
61d9b92f
DJ
25792006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2580
2581 * cli/cli-script.c (insert_args): Handle NULL user_args.
2582
f7060f85
DJ
25832006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2584
2585 * arm-tdep.c (thumb_scan_prologue): Don't try to analyze
2586 the function at zero if we have no symbols.
2587
295bf0ff
DJ
25882006-03-30 Adrien Kunysz <a_kunysz@yahoo.com>
2589
2590 * i386-stub.c (getpacket): Fix array overflow.
2591 * m32r-stub.c (getpacket): Likewise.
2592 * m68k-stub.c (getpacket): Likewise.
2593 * sh-stub.c (getpacket): Likewise.
2594 * sparc-stub.c (getpacket): Likewise.
2595
7abfe014
DJ
25962006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2597
2598 * frame.h (set_current_sal_from_frame): New prototype.
2599 * stack.c (set_current_sal_from_frame): Make global.
2600 * infrun.c (normal_stop): Call set_current_sal_from_frame.
2601
0ec9a092
DJ
26022006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2603
2604 * linux-thread-db.c: Include "linux-nat.h".
2605 (check_for_thread_db): New function, split out from
2606 thread_db_new_objfile. Remove dead check for active
2607 thread_db on inapplicable targets.
2608 (thread_db_new_objfile): Call check_for_thread_db.
2609 * Makefile.in (linux-thread-db.o): Update.
2610 * linux-nat.c (child_post_attach): Call check_for_thread_db.
2611 (linux_child_post_startup_inferior): Likewise.
2612 (lin_lwp_attach_lwp): Call target_post_attach instead of
2613 child_post_attach.
2614 * linux-nat.h (check_for_thread_db): New prototype.
2615
6d820c5c
DJ
26162006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2617
2618 * remote.c (struct remote_state): Add BUF and BUF_SIZE.
2619 (init_remote_state): Initialize the new fields.
2620 (get_memory_packet_size): Update BUF and BUF_SIZE if necessary.
2621 (set_thread, remote_thread_alive, remote_unpack_thread_info_response)
2622 (remote_get_threadinfo, parse_threadlist_response)
2623 (remote_get_threadlist, remote_current_thread, remote_threads_info)
2624 (remote_threads_extra_info, extended_remote_restart, get_offsets)
2625 (remote_check_symbols, remote_open_1, remote_detach)
2626 (remove_vcont_probe, remote_vcont_resume, remote_resume)
2627 (remote_wait, remote_async_wait, fetch_register_using_p)
2628 (remote_fetch_registers, store_register_using_P)
2629 (remote_store_registers, check_binary_download, remote_write_bytes)
2630 (remote_read_bytes, remote_insert_breakpoint)
2631 (remote_remove_breakpoint, remote_insert_watchpoint)
2632 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
2633 (remote_remove_hw_breakpoint, compare_sections_command)
2634 (remote_xfer_partial, remote_rcmd, packet_command)
2635 (remote_get_thread_local_address): Use the global incoming buffer
2636 instead of alloca or xmalloc. Limit outgoing packets to
2637 rs->remote_packet_size and incoming packets to rs->buf_size.
2638 Update calls to getpkt and remote_send.
2639 (remote_send): Take arguments by reference.
2640 (putpkt_binary): Eliminate junkbuf. Use skip_frame.
2641 (skip_frame): New function.
2642 (read_frame): Take arguments by reference. Expand the packet
2643 buffer instead of issuing an error.
2644 (getpkt, getpkt_sane): Take arguments by reference.
2645 * remote.h (getpkt): Update prototype and doc.
2646 * tracepoint.c (remote_get_noisy_reply): Take arguments by
2647 reference.
2648 (target_buf): Change from array to pointer.
2649 (target_buf_size): New variable.
2650 (remote_set_transparent_ranges): Update call to getpkt.
2651 (trace_start_command, trace_stop_command, trace_status_command):
2652 Update calls to remote_get_noisy_reply.
2653 (finish_tfind_command): Take arguments by reference.
2654 (trace_find_command, trace_find_pc_command)
2655 (trace_find_tracepoint_command, trace_find_line_command):
2656 (trace_find_range_command, trace_find_outside_command): Update
2657 calls to finish_tfind_command.
2658 (_initialize_tracepoint): Initialize target_buf_size and target_buf.
2659
3d8dcac6
RC
26602005-03-30 Randolph Chung <tausq@debian.org>
2661
2662 * hppa-linux-tdep.c: Include regset.h.
2663 (GR_REGNUM, TR_REGNUM, greg_map): New.
2664 (hppa_linux_supply_regset, hppa_linux_supply_fpregset): New.
2665 (hppa_linux_regset, hppa_linux_fpregset): New.
2666 (hppa_linux_regset_from_core_section): New.
2667 (hppa_linux_init_abi): Set regset_from_core_section.
2668 (_initialize_hppa_linux_tdep): Register osabi handler for
2669 64-bit Linux.
2670 * Makefile.in (hppa-linux-tdep.o): Update dependencies.
2671 * config/pa/linux.mh: Stop using core-regset.o
2672
29d375ac
RC
26732006-03-30 Randolph Chung <tausq@debian.org>
2674
2675 * hppa-tdep.c (hppa_find_unwind_entry_in_block): New.
2676 (hppa_frame_cache): Use new function to find unwind entry.
2677 (hppa_frame_this_id): Likewise.
2678 (hppa_frame_unwind_sniffer): Likewise.
2679
f4267320
DJ
26802006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
2681
2682 * NEWS: Mention the removal of NLM.
2683
26842006-03-29 Steve Ellcey <sje@cup.hp.com>
2685
2686 * Makefile.in (nlm): Remove target.
2687 * configure.tgt (i[34567]86-*-netware*): Do not set build_nlm.
2688 * configure.ac: Remove AC_CONFIG_SUBDIRS of nlm.
2689 * configure: Regenerate.
2690 * doc/gdb.texinfo: Remove gdbserve.nlm documentation.
2691 * nlm: Remove directory.
2692
698ba934
DJ
26932006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
2694
2695 * Makefile.in (utils.o): Update.
2696 * top.c (in_user_command): New.
2697 (command_line_input): Use input_from_terminal_p.
2698 (input_from_terminal_p): Don't check caution. Handle
2699 stdin == NULL for Insight.
2700 * top.h (in_user_command, caution): New declarations.
2701 * utils.c: Include "top.h".
2702 (query, defaulted_query): Check caution here. Move the call
2703 to input_from_terminal_p higher.
2704 * cli/cli-script.c (do_restore_user_call_depth): Only decrement
2705 the depth. Update in_user_command if necessary.
2706 (execute_user_command): Don't clobber old_chain. Set
2707 in_user_command. Let do_restore_user_call_depth handle
2708 user_call_depth.
2709 (read_command_lines): Check whether to prompt before calling
2710 Insight hooks.
2711 * tui/tui-hooks.c (tui_query_hook): Remove newly unnecessary
2712 input_from_terminal_p check.
2713
2f00de94
UW
27142006-03-29 Ulrich Weigand <uweigand@de.ibm.com>
2715
2716 * s390-nat.c (s390_insert_watchpoint): Add missing argument.
2717 (s390_remove_watchpoint): Likewise.
2718
7d30c22d
JB
27192006-03-28 Jim Blandy <jimb@codesourcery.com>
2720
2721 * prologue-value.c, prologue-value.h: New files.
2722 * Makefile.in (prologue_value_h): New variable.
2723 (HFILES_NO_SRCDIR): List prologue-value.h.
2724 (SFILES): List prologue-value.c.
2725 (COMMON_OBS): List prologue-value.o.
2726 (prologue-value.o): New rule.
2727
05c6a9a1
MS
27282006-03-27 Michael Snyder <msnyder@redhat.com>
2729
2730 * xstormy16-tdep.c (xstormy16_return_value, xstormy16_push_dummy_call,
2731 xstormy16_pointer_to_address, xstormy16_address_to_pointer,
2732 xstormy16_frame_prev_register): Change void* to gdb_byte*.
2733 (xstormy16_push_dummy_call): Add block-local char* val,
2734 to avoid type conflict with outer scope variable.
2735
4e6cbc38
AS
27362006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
2737
2738 * sh-tdep.c (sh_gdbarch_init): Add missing architectures.
2739
75483fbe
NR
27402006-03-27 Nick Roberts <nickrob@snap.net.nz>
2741
d149de7b 2742 PR mi/1429
75483fbe
NR
2743 * varobj.c (c_name_of_child, c_value_of_child): Allow non-zero
2744 offsets for languages like Fortran.
2745
97ce3a05
RC
27462006-03-26 Randolph Chung <tausq@debian.org>
2747
2748 * config/pa/hppa64.mt: Use HPUX version of the tm file.
2749
be85b69f
NR
27502006-03-25 Nick Roberts <nickrob@snap.net.nz>
2751
2752 * mi/gdb-mi.el (gdbmi-send): Improve regexp to repeat commands.
2753 Try to deal with continuation line.
2754 (gdbmi, gdbmi-prompt1, gud-gdbmi-marker-filter): Update to new
2755 variable names.
2756 (gdb-break-list-regexp, gdb-stack-list-frames-regexp):
2757 Future proof against new fields being added to MI output.
2758 (gdbmi-prompt2, gdb-break-list-handler,gdb-get-source-file)
2759 (gdbmi-frame-handler): Update to new variable name
2760 gdb-get-buffer-create.
2761 (gdbmi-frame-handler): Use hollow-right-triangle for all selected
2762 frames which except the innermost (where execution has stopped).
2763
7fc4b1a1
RC
27642006-03-24 Randolph Chung <tausq@debian.org>
2765
2766 * solib-som.c (link_map_start): Don't error out if there is
2767 not yet a link map.
2768
f973ed9c
DJ
27692006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
2770
2771 * linux-nat.c (linux_ops_saved): New.
2772 (super_mourn_inferior, kill_inferior, threaded, linux_nat_ops)
2773 (child_mourn_inferior, child_wait, linux_nat_create_inferior)
2774 (linux_nat_fetch_registers, linux_nat_store_registers)
2775 (linux_nat_child_post_startup_inferior, init_linux_nat_ops): Delete.
2776 (init_lwp_list): Don't set threaded.
2777 (add_lwp): Don't modify threaded.
2778 (delete_lwp): Don't mention non-threaded mode.
2779 (linux_nat_switch_fork): New.
2780 (linux_nat_attach): Update inferior_ptid.
2781 (linux_nat_wait): Handle num_lwps == 0 at entry. Don't check
2782 threaded flag.
2783 (linux_nat_kill): Handle pending forks and saved forks.
2784 (linux_nat_mourn_inferior): Handle saved forks.
2785 (linux_nat_pid_to_str): Don't use the LWP form when there is
2786 only one thread.
2787 (linux_target): Don't set to_wait, to_kill, or to_mourn_inferior.
2788 (linux_nat_add_target): New.
2789 (_initialize_linux_nat): Don't initialize the linux native target
2790 here.
2791 * linux-nat.h (linux_nat_add_target, linux_nat_switch_fork): New
2792 prototypes.
2793 * linux-fork.c: Include "linux-nat.h".
2794 (add_fork): Update initial PID.
2795 (fork_load_infrun_state): Call linux_nat_switch_fork.
2796 * Makefile.in (linux-fork.o): Update.
2797
2798 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
2799 linux_nat_add_target instead of add_target.
2800 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Likewise.
2801 * arm-linux-nat.c (_initialize_arm_linux_nat): Likewise.
2802 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Likewise.
2803 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Likewise.
2804 * i386-linux-nat.c (_initialize_i386_linux_nat): Likewise.
2805 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Likewise.
2806 * m68klinux-nat.c (_initialize_m68k_linux_nat): Likewise.
2807 * mips-linux-nat.c (_initialize_mips_linux_nat): Likewise.
2808 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Likewise.
2809 * s390-nat.c (_initialize_s390_nat): Likewise.
2810 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Likewise.
2811 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Likewise.
2812
791b663b
DJ
28132006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
2814
2815 * linux-fork.c: Include "gdb_assert.h".
2816 (fork_load_infrun_state): Set inferior_ptid and stop_pc here.
2817 Update the register cache and selected frame also.
2818 (linux_fork_mourn_inferior): Use fork_load_infrun_state. Return
2819 to single fork mode if necessary.
2820 (linux_fork_context): Remove bits handled by fork_load_infrun_state.
2821 * Makefile.in (linux_fork_h): New.
2822 (linux-fork.o, linux-nat.o): Update.
2823
d311d956
AS
28242006-03-23 Andreas Schwab <schwab@suse.de>
2825
2826 * config/s390/s390.mh (NATDEPFILES): Add linux-fork.o.
2827
a849c9ab
JB
28282006-03-18 Jim Blandy <jimb@codesourcery.com>
2829
2830 * symtab.h (enum address_class): Doc fix.
2831
cf913f37
MS
28322006-03-16 Michael Snyder <msnyder@redhat.com>
2833
712e3020 2834 * tracepoint.c (tracepoint_save_command): Fix typo in error msg.
88c231eb 2835 * target.c (push_target): Fix typo in comment.
94e08568 2836 * remote.c (remote_watch_data_address): Fix typo in comment.
cf913f37
MS
2837 * i386-tdep.c (i386_push_dummy_call): Fix typo in comment.
2838
7c699b81
KB
28392006-03-15 Kevin Buettner <kevinb@redhat.com>
2840
2841 * frv-linux-tdep.c (gdbcore.h, regcache.h, regset.h, gdb_string.h):
2842 Include.
2843 (FRV_ELF_NGREG, FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR, FRV_PT_CCCR)
2844 (FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0, FRV_PT_GNER1)
2845 (FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR, FRV_PT_TBR)
2846 (FRV_PT_EXEC_FDPIC_LOADMAP, FRV_PT_INTERP_FDPIC_LOADMAP): Define.
2847 (frv_elf_greg_t, frv_elf_gregset_t, frv_elf_fpreg_t)
2848 (frv_elf_fpregset_t): Define types.
2849 (frv_linux_supply_gregset, frv_linux_supply_fpregset)
2850 (frv_linux_regset_from_core_section: New functions.
2851 (frv_linux_gregset, frv_linux_fpregset): New static globals.
2852 (frv_linux_init_abi): Register the `regset_from_core_section' method.
2853 * Makefile.in (frv-linux-tdep.o): Update dependencies.
2854 * solib-frv.c (frv_current_sos): Relocate main executable after
2855 loading core file.
2856 (frv_clear_solib): Clean up space associated with
2857 `main_executable_lm_info'.
2858 * config/frv/frv.mt (TDEPFILES): Add corelow.o to this list.
2859
d37eb719
DJ
28602006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2861
2862 * Makefile.in (mips_linux_tdep_h): New.
2863 (mpis-linux-nat.o, mips-linux-tdep.o): Update.
2864 * mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
2865 <sys/ptrace.h>.
2866 (have_ptrace_regsets, super_fetch_registers, super_store_registers)
2867 (mips64_linux_regsets_fetch_registers)
2868 (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
2869 (mips64_linux_store_registers): New.
2870 (_initialize_mips_linux_nat): Override to_fetch_registers and
2871 to_store_registers.
2872 * mips-linux-tdep.h: New file.
2873 * mips-linux-tdep.c: Include "mips-linux-tdep.c".
2874 (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
2875 (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
2876 (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
2877 (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
2878 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
2879 (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
2880 (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
2881 (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
2882 (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
2883 (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
2884 (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
2885 (supply_32bit_reg): Use gdb_byte.
2886 (supply_64bit_reg): New.
2887 (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
2888 (mips_fill_fpregset, fetch_core_registers, supply_gregset)
2889 (fill_gregset, supply_fpregset): Update for renamed types.
2890 (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
2891 (mips64_fill_gregset): Make global. Handle 32-bit register
2892 sizes.
2893 (mips64_fill_fpregset): Make global. Use gdb_byte. Handle
2894 FP regsets properly.
2895
9f62d0e2
DJ
28962006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2897
2898 * mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
2899 (mips_fill_gregset): Renamed from fill_gregset.
2900 (mips_supply_fpregset): Renamed from supply_fpregset.
2901 (mips_fill_fpregset): Renamed from fill_fpregset.
2902 (fetch_core_registers): Update calls.
2903 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
2904 functions.
2905
26c53e50
DJ
29062006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2907
2908 * mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
2909
5b652102
DJ
29102006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2911
2912 * mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
2913 Correct arithmetic for 64-bit CORE_ADDR.
2914
d05f6826
DJ
29152006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2916
2917 * mips-linux-tdep.c: Include "floatformat.h".
2918 (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
0a407ead
DJ
2919 * mips-tdep.c (mips_n32n64_return_value): Support 128-bit long
2920 double.
d05f6826
DJ
2921 (print_gp_register_row): Don't print spaces before ignored
2922 or floating point registers.
6367c6b1 2923 * Makefile.in (mips-linux-tdep.o): Update.
d05f6826 2924
3e5af19e
DJ
29252006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2926
2927 * mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
2928 for code addresses.
2929 (non_heuristic_proc_desc): Likewise.
2930
dc60ece8
DJ
29312006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2932
2933 * mips-linux-nat.c: Include "gdb_proc_service.h".
2934 (PTRACE_GET_THREAD_AREA): Define.
2935 (ps_get_thread_area): New.
2936 * Makefile.in (mips-linux-nat.o): Update.
2937
2f83030f
JB
29382006-03-13 Jim Blandy <jimb@codesourcery.com>
2939
2940 * MAINTAINERS: Use my work address.
2941
56aac7e8 29422006-03-09 Michael Snyder <msnyder@redhat.com>
a9877905 2943
56aac7e8
MS
2944 * linux-nat.c (kill_inferior): Just call target_mourn_inferior
2945 instead of getting tricky for the multi-fork case.
2946 * linux-fork.c (linux_fork_killall): Call PT_KILL and waitpid
2947 for each fork, and then use init_fork_list to delete them.
a9877905 2948
831004b7
AO
29492006-03-08 Alexandre Oliva <aoliva@redhat.com>
2950
2951 * solib-svr4.c (svr4_current_sos): Move up initialization of
2952 l_addr, such that it clearly covers all cases.
2953
f1b4b38e
AS
29542006-03-08 Andreas Schwab <schwab@suse.de>
2955
2956 * ia64-tdep.c (ia64_libunwind_frame_this_id): Adapt use of
2957 libunwind_frame_prev_register to use a gdb_byte buffer and
2958 extract_unsigned_integer.
2959 (ia64_libunwind_sigtramp_frame_prev_register): Likewise.
2960
2961 * libunwind-frame.c (libunwind_frame_prev_register): Change type
2962 of last argument to `gdb_byte *'
2963 * libunwind-frame.h: Adjust declaration.
2964
f53f0d0b
PB
29652006-03-08 Paul Brook <paul@codesourcery.com>
2966
2967 * arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
2968 (arm_frame_align): New function.
2969 (arm_gdbarch_init): Use it.
2970
b67fd56f
AC
29712006-03-03 Khem Raj <khem@mvista.com>
2972
2973 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
2974 Committed by Andrew Cagney.
2975
a64ae7e0
CV
29762006-03-02 Corinna Vinschen <vinschen@redhat.com>
2977
2978 * mn10300-tdep.c (mn10300_push_dummy_call): Write breakpoint
2979 address to MDR register.
2980
9733fc94
DJ
29812006-03-01 Daniel Jacobowitz <dan@codesourcery.com>
2982
2983 * gdbtypes.c (lookup_struct_elt_type): Correct noerr for recursive
2984 calls.
2985
4897bfb9
RC
29862006-03-01 Randolph Chung <tausq@debian.org>
2987
2988 * somread.c (som_symfile_read): Update comment and remove unneeded
2989 use of a deprecated variable.
2990
6fcecea0
RC
29912006-03-01 Randolph Chung <tausq@debian.org>
2992
2993 * hppa-tdep.h (unwind_table_entry): Update field names to match HP
2994 runtime specification.
2995 * hppa-tdep.c (internalize_unwinds, hppa_frame_cache): Likewise.
2996 (unwind_command): Likewise.
2997
46acf081
RC
29982006-03-01 Randolph Chung <tausq@debian.org>
2999
3000 * hppa-tdep.c (hppa_frame_cache): Handle Region_Description and
3001 Pseudo_SP_Set in unwind record.
3002
477e69e8
RC
30032006-03-01 Randolph Chung <tausq@debian.org>
3004
3005 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Use
3006 TDEP->is_elf to determine if we are working with a SOM binary.
3007 (null_symtab_and_line): Remove unused variable.
3008 * config/pa/hppa64.mt: Use tm-hppa.h.
3009 * config/pa/tm-hppa64.h: Remove file.
3010
848359ac
WZ
30112006-03-01 Wu Zhou <woodzltc@cn.ibm.com>
3012
3013 * f-typeprint.c (f_type_print_base): Delete the redundant space.
3014
f9ec92b6
KB
30152006-02-28 Kevin Buettner <kevinb@redhat.com>
3016
3017 * Makefile.in (mn10300-linux-tdep.o): Update dependencies.
3018 * mn10300-linux-tdep.c (frame.h, trad-frame.h, tramp-frame.h):
3019 Include.
3020 (am33_linux_sigframe_cache_init): New function.
3021 (am33_linux_sigframe, am33_linux_rt_sigframe): New signal frame
3022 descriptions.
3023 (AM33_SIGCONTEXT_D0, AM33_SIGCONTEXT_D1, AM33_SIGCONTEXT_D2)
3024 (AM33_SIGCONTEXT_D3, AM33_SIGCONTEXT_A0, AM33_SIGCONTEXT_A1)
3025 (AM33_SIGCONTEXT_A2, AM33_SIGCONTEXT_A3, AM33_SIGCONTEXT_E0)
3026 (AM33_SIGCONTEXT_E1, AM33_SIGCONTEXT_E2, AM33_SIGCONTEXT_E3)
3027 (AM33_SIGCONTEXT_E4, AM33_SIGCONTEXT_E5, AM33_SIGCONTEXT_E6)
3028 (AM33_SIGCONTEXT_E7, AM33_SIGCONTEXT_LAR, AM33_SIGCONTEXT_LIR)
3029 (AM33_SIGCONTEXT_MDR, AM33_SIGCONTEXT_MCVF, AM33_SIGCONTEXT_MCRL)
3030 (AM33_SIGCONTEXT_MCRH, AM33_SIGCONTEXT_MDRQ, AM33_SIGCONTEXT_SP)
3031 (AM33_SIGCONTEXT_EPSW, AM33_SIGCONTEXT_PC, AM33_SIGCONTEXT_FPUCONTEXT):
3032 New constants.
3033 (am33_linux_init_osabi): Register signal frame unwinders.
3034
e92e42f5
KB
30352006-02-28 Kevin Buettner <kevinb@redhat.com>
3036
3037 * mn10300-tdep.c (mn10300_analyze_prologue): Implement backtrack
3038 out of pattern match by saving relevant state. Fix stack size
3039 adjustment bug.
3040
cc10cae3
AO
30412006-02-28 Alexandre Oliva <aoliva@redhat.com>
3042
3043 * solib-svr4.h (struct link_map_offsets): Add l_ld_offset and
3044 l_ld_size fields.
3045 * solib-svr4.c (struct lm_info): Add l_addr field.
3046 (LM_ADDR_FROM_LINK_MAP): Renamed from LM_ADDR.
3047 (HAS_LM_DYNAMIC_FROM_LINK_MAP): New.
3048 (LM_DYNAMIC_FROM_LINK_MAP): New.
3049 (LM_ADDR_CHECK): New. Use it instead of LM_ADDR.
3050 (svr4_current_sos): Initialize l_addr. Adjust.
3051 (svr4_relocate_section_addresses): Adjust.
3052 (svr4_ilp32_fetch_link_map_offsets): Define new members.
3053 (svr4_lp64_fetch_link_map_offsets): Likewise.
3054 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3055 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Likewise.
3056 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
3057 * Makefile.in (solib-svr4.o): Depend on $(elf_bfd_h).
3058
691342f9
DM
30592006-02-26 David S. Miller <davem@sunset.davemloft.net>
3060
3061 * config/sparc/linux.mt (TDEPFILES): Add sol2-tdep.o.
3062 * config/sparc/linux64.mt (TDEPFILES): Likewise.
3063
2c387241
AM
30642006-02-27 Alan Modra <amodra@bigpond.net.au>
3065
3066 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
3067 (ppc_linux_remove_watchpoint): Likewise, and args.
3068
3597fb82
MK
30692006-02-26 Mark Kettenis <kettenis@gnu.org>
3070
3071 * i386obsd-tdep.c (i386obsd_trapframe_sniffer): Also recognize
3072 "soft" interrupts.
3073
637d6690
CW
30742006-02-24 Charles Wilson <cygwin@cwilson.fastmail.fm>
3075
3076 * gdb/defs.h: unconditionally include <fcntl.h>, and
3077 ensure that O_BINARY is defined.
3078 * gdb/solib.c(solib_open): ensure solib files are opened in
3079 binary mode.
3080 * gdb/corelow.c: Remove O_BINARY macro definition.
3081 * gdb/exec.c: Remove O_BINARY macro definition
3082 * gdb/remote-rdp.c: Remove O_BINARY macro definition
3083 * gdb/source.c: Remove O_BINARY macro definition
3084 * gdb/symfile.c: Remove O_BINARY macro definition
3085
9846e541
RC
30862006-02-24 Randolph Chung <tausq@debian.org>
3087
3088 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize
3089 argreg.
3090 * solib-som.c (som_solib_remove_inferior_hook): Remove unused
3091 function.
3092
2a5e440c
WZ
30932006-02-24 Wu Zhou <woodzltc@cn.ibm.com>
3094
3095 * f-exp.y: Symbol '%' is not used as the modulus operator in
3096 Fortran. Delete this from Fortran expression.
3097 It is now used by Fortran 90 and later to access the member
3098 of derived type. Add this into Fortran expression.
3099 * f-valprint.c (f_val_print): Add code to handle TYPE_CODE_STRUCT.
3100 Print each elements in the derived type.
3101 * f-typeprint.c (print_equivalent_f77_float_type): Add a parameter
3102 level into the function definition to do indented printing. And
3103 call fprintfi_filtered instead to do indented printing.
3104 (f_type_print_base): Replace fprintf_filtered with the indented
3105 version (fprintfi_filtered).
3106 (f_type_print_base): Call indented print_equivalent_f77_float_type.
3107 (f_type_print_base): Add code to handle TYPE_CODE_STRUCT. Print
3108 the definition of the derived type.
3109
92128691
DJ
31102006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
3111
3112 * gdb_curses.h: Provide a fallback prototype for tgetnum.
3113
a6205f53
DJ
31142006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
3115
3116 * doublest.h: Conditionalize DOUBLEST on PRINTF_HAS_LONG_DOUBLE
3117 also.
3118 (DOUBLEST_FORMAT): Rename to DOUBLEST_PRINT_FORMAT.
3119 (DOUBLEST_SCAN_FORMAT): New.
3120 * ada-lex.l (PRINTF_HAS_LONG_DOUBLE): Remove redefinitions.
3121 (processReal): Use DOUBLEST_SCAN_FORMAT.
3122 * c-exp.y (parse_number): Likewise.
3123 * jv-exp.y (parse_number): Likewise.
3124 * objc-exp.y (parse_number): Likewise.
3125 * p-exp.y (parse_number): Likewise.
3126
0f0b8dcd
DJ
31272006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
3128
3129 * event-top.c (async_do_nothing, async_disconnect)
3130 (async_stop_sig, async_float_handler): Remove duplicated
3131 prototypes.
3132 (handle_sighup): Guard prototype with SIGHUP.
3133 (async_do_nothing): Guard function and prototype with
3134 SIGQUIT || SIGHUP.
3135 (async_disconnect): Guard prototype with SIGHUP.
3136 (async_stop_sig): Guard prototype with STOP_SIGNAL.
3137
4e91d01c
DJ
31382006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
3139
3140 * maint.c (maintenance_dump_me): Remove unnecessary prototype.
3141
1e0600be
DJ
31422006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
3143
3144 * win32-termcap.c (tputs): Return 0.
3145
094a342e
MK
31462006-02-21 Mark Kettenis <kettenis@gnu.org>
3147
3148 * configure.ac: Introduce ---enable-werror, which adds -Werror to
3149 the compiler command line. Enabled by default. Disable with
3150 --disable-werror.
3151 * configure regenerate.
3152
74763737
DJ
31532006-02-21 Daniel Jacobowitz <dan@codesourcery.com>
3154
3155 * elfread.c (elf_symtab_read): Skip symbols which BFD considers
3156 special.
3157
13d35ae5
AS
31582006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
3159
3160 * defs.h (directory_switch): Add prototype.
3161 * main.c (captured_main): Use directory_switch() instead of
3162 directory_command() to add directories from the -d switch.
3163 * source.c (directory_switch): New function.
3164 (add_path): Use buildargv() to parse spaces in filenames properly.
3165 Strip multiple trailing '/' rather than just one.
3166
5b96932b
AS
31672006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
3168
3169 * symfile.c (add_symbol_file_command): Use buildargv(), instead of
3170 hand decoding the command line, to allow use of quotes and spaces.
3171 (_initialize_symfile): Reorganize the help message for add-symbol-file
3172 such that 'help files' shows a better message.
3173
a6b0a3f3
AS
31742006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
3175
3176 * sh-tdep.c (sh_generic_show_regs): Reformat both code and output.
3177 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs): Likewise.
3178 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs): Likewise.
3179 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs): Likewise.
3180
17fbb0bd
DJ
31812006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
3182
3183 * linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
3184 and __SIGRTMIN + 1.
3185
444abaca
DJ
31862006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
3187
3188 * remote.c: Add an enumeration for configurable remote
3189 packets.
3190 (remote_protocol_packets, set_remote_protocol_packet_cmd)
3191 (show_remote_protocol_packet_cmd): New.
3192 (remote_protocol_vcont)
3193 (set_remote_protocol_vcont_packet_cmd)
3194 (show_remote_protocol_vcont_packet_cmd)
3195 (remote_protocol_qSymbol)
3196 (set_remote_protocol_qSymbol_packet_cmd)
3197 (show_remote_protocol_qSymbol_packet_cmd)
3198 (remote_protocol_P, set_remote_protocol_P_packet_cmd)
3199 (show_remote_protocol_P_packet_cmd)
3200 (remote_protocol_Z)
3201 (set_remote_protocol_Z_software_bp_packet_cmd)
3202 (show_remote_protocol_Z_software_bp_packet_cmd)
3203 (set_remote_protocol_Z_hardware_bp_packet_cmd)
3204 (show_remote_protocol_Z_hardware_bp_packet_cmd)
3205 (set_remote_protocol_Z_write_wp_packet_cmd)
3206 (show_remote_protocol_Z_write_wp_packet_cmd)
3207 (set_remote_protocol_Z_read_wp_packet_cmd)
3208 (show_remote_protocol_Z_read_wp_packet_cmd)
3209 (set_remote_protocol_Z_access_wp_packet_cmd)
3210 (show_remote_protocol_Z_access_wp_packet_cmd)
3211 (remote_protocol_binary_download)
3212 (set_remote_protocol_binary_download_cmd)
3213 (show_remote_protocol_binary_download_cmd)
3214 (remote_protocol_qPart_auxv)
3215 (set_remote_protocol_qPart_auxv_packet_cmd)
3216 (show_remote_protocol_qPart_auxv_packet_cmd)
3217 (remote_protocol_qGetTLSAddr)
3218 (set_remote_protocol_qGetTLSAddr_packet_cmd)
3219 (show_remote_protocol_qGetTLSAddr_packet_cmd)
3220 (remote_protocol_p)
3221 (set_remote_protocol_p_packet_cmd)
3222 (show_remote_protocol_p_packet_cmd): Delete.
3223
3224 (init_all_packet_configs): Simplify.
3225 (set_remote_protocol_Z_packet_cmd)
3226 (show_remote_protocol_Z_packet_cmd)
3227 (remote_check_symbols, remote_vcont_probe, remote_vcont_resume)
3228 (remote_fetch_registers, remote_prepare_to_store)
3229 (remote_store_registers, check_binary_download)
3230 (remote_write_bytes, remote_insert_breakpoint)
3231 (remote_remove_breakpoint, remote_insert_watchpoint)
3232 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
3233 (remote_remove_hw_breakpoint, remote_xfer_partial)
3234 (remote_get_thread_local_address): Update for packet array.
3235 (_initialize_remote): Likewise; also update for common
3236 set/show commands.
3237
3bd72c6f
DJ
32382006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
3239
3240 * symfile.c (place_section): Correct retry logic.
3241
a244bdca
CF
32422006-02-19 Christopher Faylor <cgf@timesys.com>
3243
3244 * win32_nat.c (cygwin_load_start): New variable.
3245 (cygwin_load_end): Ditto.
3246 (have_saved_context): Ditto.
3247 (saved_context): Ditto.
3248 (max_dll_name_len): Delete obsolete variable.
3249 (do_win32_fetch_inferior_registers): Use context saved from cygwin1.dll
3250 if we are in a cygwin signal rather than a windows signal.
3251 (solib_symbols_add): Detect and store beginning and end of cygwin DLL
3252 if dll being loaded is the cygwin DLL.
3253 (register_loaded_dll): Remove calculation of max_dll_name_len.
3254 (win32_clear_solib): Ditto.
3255 (handle_load_dll): Delete obsolete variable. Remove unneeded call to
3256 solib_add.
3257 (handle_output_debug_string): Detect and store signal information sent
3258 by Cygwin here.
3259 (handle_exception): Silently pass on errors in the cygwin DLL. Return
3260 -1 on first pass exception.
3261 (win32_continue): Remove spurious clearing of continue_status.
3262 (get_win32_debug_event): Deal differently first chance exception.
3263
806e23c0
RC
32642006-02-19 Randolph Chung <tausq@debian.org>
3265
3266 * hppa-tdep.c (hppa_in_solib_call_trampoline): Only use if no
3267 unwind entry.
3268
d843c49c
FF
32692006-02-16 Fred Fish <fnf@specifix.com>
3270
3271 * eval.c (evaluate_subexp_standard): For OP_TYPE, return
3272 a non lval value zero, of the appropriate type, when avoiding
3273 side effects.
3274 * typeprint.c (ptype_eval): Remove function and declaration.
3275 (ptype_command): Simplify to just a call to whatis_exp.
3276
1c5bada0
PB
32772006-02-15 Paul Brook <paul@codesourcery.com>
3278
3279 * arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
3280 Load insn opcodes as unsigned values.
3281
96c1eda2
AO
32822006-02-14 Alexandre Oliva <aoliva@redhat.com>
3283
3284 * doublest.h (DOUBLEST): Use long double only if we can scan
3285 it in. Undefine HAVE_LONG_DOUBLE otherwise.
3286 (DOUBLEST_FORMAT): New.
3287 * c-exp.y (parse_number): Use it.
3288 * jv-exp.y (parse_number): Likewise.
3289 * objc-exp.y (parse_number): Likewise.
3290 * p-exp.y (parse_number): Likewise.
3291 * varobj.c (free_variable): Silence type-punning warnings.
3292 * tui/tui-data.h (struct tui_list): Change type of list member.
3293 * tui/tui-data.c: Remove no-longer-needed type casts.
3294 (source_windows): Silence type-punning warnings.
3295 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Likewise.
3296
92dd43fa
MK
32972006-02-13 Mark Kettenis <kettenis@gnu.org>
3298
3299 Fix PR breakpoints/2080.
3300 * i386-tdep.c (struct i386_frame_cache): Add stack_align member.
3301 (i386_analyze_stack_align): New function.
3302 (i386_analyze_prologue): Use i386_analyze_stack_align.
3303 (i386_frame_cache): Deal with stack realignment.
3304
7314787a
NR
33052006-02-14 Nick Roberts <nickrob@snap.net.nz>
3306
3307 * mi/gdb-mi.el: Use more functions from gdb-ui.el.
3308 (gdb-break-list-regexp): Match "what" field if present.
be85b69f 3309 (gdb-stack-list-frames-regexp): Match "from" field if present.
7314787a
NR
3310 (gdb-stack-list-frames-handler): Present output like "info
3311 breakpoints" so regexps can be shared with gdb-ui
3312
0ea3f30e
DJ
33132006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
3314
3315 * NEWS: Mention native Windows support.
3316 * Makefile.in (gdb_select_h, ser_tcp_h): New.
3317 (ALLDEPFILES): Add ser-mingw.c.
3318 (event-loop.o, inflow.o, mingw-hdep.o, posix-hdep.o, ser-base.o)
3319 (ser-tcp.o, ser-unix.o): Update.
3320 (ser-mingw.o): New rule.
3321 * configure: Regenerated.
3322 * configure.ac: Add ser-mingw.o for mingw32.
3323 * ser-mingw.c: New file.
3324 * event-loop.c: Include "gdb_select.h".
3325 (gdb_select): Remove, moved to mingw-hdep.c and posix-hdep.c.
3326 * ser-base.c: Include "gdb_select.h".
3327 (ser_base_wait_for): Use gdb_select.
3328 * serial.c (serial_for_fd): New function.
3329 (serial_fdopen): Try "terminal" before "hardwire". Initialize
3330 the allocated struct serial.
3331 (serial_wait_handle): New function.
3332 * serial.h (serial_for_fd, serial_wait_handle): New prototypes.
3333 (struct serial_ops) [USE_WIN32API]: Add wait_handle.
3334 * gdb_select.h: New file.
3335 * ser-tcp.c: Include "ser-tcp.h". Remove unused "ser-unix.h" include.
3336 (net_close, net_read_prim, net_write_prim): Make global.
3337 (net_open): Likewise. Pass an exception set to select. Whitespace fix.
3338 Document why we can not use gdb_select.
3339 (_initialize_ser_tcp) [USE_WIN32API]: Do not register TCP support here.
3340 * ser-tcp.h: New file.
3341 * inflow.c (gdb_has_a_terminal): Don't initialize stdin_serial here.
3342 (handle_sigio): Use gdb_select.
3343 (initialize_stdin_serial): New function.
3344 * terminal.h (initialize_stdin_serial): New prototype.
3345 * top.c (gdb_init): Call initialize_stdin_serial.
3346 * mingw-hdep.c (gdb_select): New function, moved from gdb_select in
3347 event-loop.c. Add exception condition support. Use serial_for_fd
3348 and serial_wait_handle. Fix timeout handling.
3349 * posix-hdep.c: Include "gdb_select.h".
3350 (gdb_select): New function.
3351 * remote-st.c (connect_command): Use gdb_select.
3352 * ser-unix.c: Include "gdb_select.h".
3353 (hardwire_send_break, wait_for): Use gdb_select.
3354
121ce6e5
DJ
33552006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
3356
3357 * Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
3358 (ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c.
3359 * configure.ac: Add gdb_host_obs to CONFIG_OBS. Set gdb_host_obs
3360 to posix-hdep.o by default.
3361 * configure: Regenerated.
3362 * configure.host: Document gdb_host_obs. Add an entry for
3363 i[34567]86-*-mingw32*.
3364 * mingw-hdep.c, posix-hdep.c: New files.
3365 * utils.c (safe_strerror): Remove, moved to posix-hdep.o.
3366
1f82754b
JB
33672006-02-10 Joel Brobecker <brobecker@adacore.com>
3368
3369 * defs.h (gdb_osabi): New enum value GDB_OSABI_AIX.
3370 * osabi.c (gdb_osabi_name): Add name of new value GDB_OSABI_AIX.
3371 * rs6000-tdep.h: New file.
3372 * rs6000-tdep.c: Include "rs6000-tdep.h".
3373 (rs6000_gdbarch_init): Remove enabling of software single step.
3374 Will be done in the AIX-specific initialization routine.
3375 * rs6000-aix-tdep.c: New file.
3376 * config/powerpc/aix.mt (TDEPFILES): Add rs6000-aix-tdep.o.
3377 * Makefile.in (rs6000_tdep_h): New variable.
3378 (rs6000-tdep.o): Update dependencies.
3379 (rs6000-aix-tdep.o): New rule.
3380
577b7047
JB
33812006-02-10 Joel Brobecker <brobecker@adacore.com>
3382
3383 * aix-thread.c (_initialize_aix_thread): Use add_setshow_boolean_cmd
3384 instead of add_setshow_zinteger_cmd to defined the aix-thread
3385 boolean setting.
3386
ff800d76
NR
33872006-02-10 Nick Roberts <nickrob@snap.net.nz>
3388
3389 * mi/gdb-mi.el: Update to reflect changes in Emacs 22.0.50.
3390
5afb4e99
DJ
33912006-02-09 Daniel Jacobowitz <dan@codesourcery.com>
3392
3393 * dwarf2read.c (struct dwarf2_per_cu_data): Reduce length to
3394 30 bits. Add load_all_dies flag.
3395 (load_partial_dies): Load all DIEs if per_cu->load_all_dies is set.
3396 Load DW_TAG_member by default. Remove internal_error call.
3397 (find_partial_die): Reload the compilation unit if we can not find
3398 a DIE in the cache. Call internal_error here if we still can not
3399 find the DIE.
3400
a832795c
NR
34012006-02-10 Nick Roberts <nickrob@snap.net.nz>
3402
3403 * breakpoint.c (print_one_breakpoint): Add break to case
3404 bp_catch_vfork in switch statement.
3405
c9dd6fef
WZ
34062006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
3407
3408 * config/i386/nm-i386sol2.h: Update copyright year.
3409 * config/mips/nm-irix5.h: Ditto.
3410 * config/sparc/nm-sol2.h: Ditto.
3411 * s390-nat.c: Ditto.
3412 * ppc-linux-nat.c: Ditto.
3413
2a3cdf79
WZ
34142006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
3415
3416 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Delete.
3417 * config/i386/nm-i386sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
3418 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
3419 * config/mips/nm-irix5.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
3420 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
3421 * config/sparc/nm-sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
3422 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
3423 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): New.
3424 (inf_ttrace_region_size_ok_for_hw_watchpoint): Delete.
3425 (inf_ttrace_target): Delete to_region_size_ok_for_hw_watchpoint and
3426 add to_region_ok_for_hw_watchpoint.
3427 * s390-nat.c (s390_region_size_ok_for_hw_watchpoint): Delete.
3428 (s390_region_ok_for_hw_watchpoint): New.
3429 (_initialize_s390_nat): Delete to_region_size_ok_for_hw_watchpoint
3430 and add to_region_ok_for_hw_watchpoint.
3431 * target.c (default_region_size_ok_for_hw_watchpoint,
3432 debug_to_region_size_ok_for_hw_watchpoint): Delete prototype.
3433 (update_current_target): Delete to_region_size_ok_for_hw_watchpoint
3434 inheritance and default_region_size_ok_for_hw_watchpoint.
3435 (default_region_ok_for_hw_watchpoint): If len is less than or equal
3436 the length of void pointer, return ok.
3437 (default_region_size_ok_for_hw_watchpoint): Delete.
3438 (debug_to_region_size_ok_for_hw_watchpoint): Delete.
3439 (setup_target_debug): Delete to_region_size_ok_for_hw_watchpoint.
3440 * target.h (struct target_ops): Delete
3441 to_region_size_ok_for_hw_watchpoint.
3442 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
3443
e0d24f8d
WZ
34442006-02-08 Ben Elliston <bje@au1.ibm.com>
3445 Wu Zhou <woodzltc@cn.ibm.com>
3446
3447 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG,
3448 PTRACE_GETSIGINFO): Define.
3449 (last_stopped_data_address): New.
3450 (ppc_linux_check_watch_resources): New function.
3451 (ppc_linux_region_ok_for_hw_watchpoint): New function.
3452 (ppc_linux_insert_watchpoint): New function.
3453 (ppc_linux_remove_watchpoint): New function.
3454 (ppc_linux_stopped_data_address): New function.
3455 (ppc_linux_stopped_by_watchpoint): New function.
3456 (_initialize_ppc_linux_nat): Set the above hardware watchpoint
3457 related target vectors.
3458 * rs6000-tdep.c (rs6000_gdbarch_init): Set PPC architectures
3459 to have nonsteppable watchpoint.
3460 * target.c (default_region_ok_for_hw_watchpoint,
3461 debug_to_region_ok_for_hw_watchpoint): New prototypes.
3462 (update_current_target): Inherit to_region_ok_for_hw_watchpoint
3463 and set default to_region_ok_for_hw_watchpoint.
3464 (default_region_ok_for_hw_watchpoint): New function.
3465 (debug_to_region_ok_for_hw_watchpoint): New function.
3466 (setup_target_debug): Set to_region_ok_for_hw_watchpoint of
3467 debug_target.
3468 * target.h (struct target_ops): Add a new target vector
3469 to_region_ok_for_hw_watchpoint.
3470 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define this if it is not
3471 defined anyplace else.
927890d0 3472
e0d24f8d 34732005-02-07 Joel Brobecker <brobecker@adacore.com>
927890d0
JB
3474 * symfile.c (add_symbol_file_command): Abort if the user forgot
3475 to provide the address when the file has been loaded.
3476
f4d408c6
DJ
34772006-02-07 Daniel Jacobowitz <dan@codesourcery.com>
3478
3479 * MAINTAINERS: Update file based on maintainers survey. Add
3480 a note to Past Maintainers. Move unresponsive or inactive
3481 maintainers to Authorized Committers or Past Maintainers as
3482 appropriate. Correct Jim Kingdon's email address. Remove
3483 vacant areas of responsibility.
3484
38fcd64c
DJ
34852006-02-06 Vladimir Prus <ghost@cs.msu.su>
3486
3487 * breakpoint.c (print_one_breakpoint): For MI-like UI, output
3488 fullname field.
3489
7b871fab
DJ
34902006-02-03 Daniel Jacobowitz <dan@codesourcery.com>
3491
3492 * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
3493 * exceptions.c (exception_none, exceptions_state_mc_init)
3494 (throw_vfatal): Use GDB_NO_ERROR.
3495
e4cd0d6a
MK
34962006-02-02 Mark Kettenis <kettenis@gnu.org>
3497
3498 * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
3499 r_map_size members. Add r_version_offset, r_version_size and
3500 r_ldsomap_offset members.
3501 * solib-svr4.c (solib_svr4_r_map): Renamed from
3502 fetch_link_map_member. Simplify using read_memory_typed_address.
3503 (solib_svr4_r_ldsomap): New function.
3504 (open_symbol_file_object): Use solib_svr_r_map.
3505 (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic
3506 linker by using solib_svr4_r_ldsomap.
3507 (svr4_ilp32_fetch_link_map_offsets)
3508 (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct
3509 link_map_offsets'.
3510 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for
3511 changes to `struct link_map_offsets'.
3512 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets)
3513 (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to
3514 `struct link_map_offsets'.
3515
e26af52f
DJ
35162006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3517
3518 * linux-nat.c (struct saved_ptids, threads_to_delete)
3519 (record_dead_thread, prune_lwps, find_thread_from_lwp)
3520 (exit_lwp): New.
3521 (linux_nat_resume): Call prune_lwps.
3522 (wait_lwp, linux_nat_wait): Call exit_lwp.
3523
46e9880c
DJ
35242006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3525
3526 * printcmd.c (printf_command): Make format string checking
3527 stricter. Add separate cases for long_arg, ptr_arg, and
3528 long_double_arg.
3529 * utils.c (xstrvprintf): Improve the error message issued
3530 for a bad format string.
3531 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
3532 New variables.
3533 (gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
3534 $(NO_WERROR_CFLAGS).
3535 (printcmd.o): Likewise. Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
3536 enable -Werror.
3537
37a105a1
DJ
35382006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3539
3540 * Makefile.in (remote.o): Update.
3541 * remote.c (show_packet_config_cmd): Shorten messages.
3542 (remote_set_cmdlist, remote_show_cmdlist): Make file-static.
3543 (show_remote_cmd): Iterate.
3544 (_initialize_remote): Remove remote_set_cmdlist,
3545 remote_show_cmdlist.
3546
ae5a43e0
DJ
35472006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3548
3549 * Makefile.in (gdbtypes_h, gdbtypes.o, utils.o): Update.
3550 * defs.h (hashtab_obstack_allocate, dummy_obstack_deallocate): Add
3551 prototypes.
3552 * dwarf2read.c (read_subroutine_type): Use TYPE_ZALLOC.
3553 (hashtab_obstack_allocate, dummy_obstack_deallocate): Moved to...
3554 * utils.c (hashtab_obstack_allocate, dummy_obstack_deallocate):
3555 ...here.
3556 * gdbtypes.c: Include "hashtab.h".
3557 (build_gdbtypes): Remove extra prototype.
3558 (struct type_pair, type_pair_hash, type_pair_eq)
3559 (create_copied_types_hash, copy_type_recursive): New.
3560 * gdbtypes.h: Include "hashtab.h".
3561 (TYPE_ZALLOC): New.
3562 (create_copied_types_hash, copy_type_recursive): New prototypes.
3563 * objfiles.c (free_objfile): Call preserve_values.
3564 * symfile.c (reread_symbols): Likewise.
3565 (clear_symtab_users): Remove calls to clear_value_history and
3566 clear_internalvars.
3567 * value.c (clear_value_history, clear_internalvars): Removed.
3568 (preserve_one_value, preserve_values): New functions.
3569 * value.h (clear_value_history, clear_internalvars): Removed.
3570 (preserve_values): New prototype.
3571
3572 * tracepoint.c (_initialize_tracepoint): Do not initialize convenience
3573 variables here.
3574
b929c77f
MK
35752006-01-29 Mark Kettenis <kettenis@gnu.org>
3576
3577 * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
3578 Fixes PR tdep/2075.
3579
1581f359
JB
35802006-01-27 Joel Brobecker <brobecker@adacore.com>
3581
3582 * MAINTAINERS: Use a consistent email address for brobecker.
3583
37706b70
JB
35842006-01-27 Joel Brobecker <brobecker@adacore.com>
3585
3586 * infcmd.c (post_create_inferior): Fix copy/paste error introduced
3587 in the previous change.
3588
9353355f
DJ
35892006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
3590
3591 PR gdb/1914
3592 * fork-child.c (fork_inferior): Don't call
3593 solib_create_inferior_hook.
3594 * infcmd.c (post_create_inferior): Call solib_add,
3595 solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
3596 (attach_command): Don't call solib_add or
3597 re_enable_breakpoints_in_shlibs. Call post_create_inferior
3598 instead.
3599 * remote.c (remote_open_1): Don't call solib_create_inferior_hook
3600 or observer_notify_inferior_created. Call post_create_inferior
3601 instead.
3602 * corelow.c: Don't include "observer.h".
3603 (solib_add_stub): Deleted.
3604 (core_open): Don't call observer_notify_inferior_created or
3605 solib_add_stub. Call post_create_inferior instead.
3606 * inf-ptrace.c: Don't include "observer.h".
3607 (inf_ptrace_attach): Don't call observer_notify_inferior_created.
3608 * inf-ttrace.c: Don't include "observer.h".
3609 (inf_ttrace_attach): Don't call observer_notify_inferior_created.
3610 * inferior.h (solib_create_inferior_hook): Remove redundant
3611 prototype.
3612 * inftarg.c: Don't include "observer.h".
3613 (child_attach): Don't call observer_notify_inferior_created.
3614 * Makefile.in: Update dependencies.
3615
281b533b
DJ
36162006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
3617
3618 * infcmd.c: Include "observer.h".
3619 (post_create_inferior): New function.
3620 (run_command_1): Call it. Also call proceed.
3621 * inferior.h (post_create_inferior): New prototype.
3622 * Makefile.in (infcmd.o): Update.
3623
3624 * gnu-nat.c (gnu_create_inferior): Don't call proceed.
3625 * go32-nat.c (go32_create_inferior): Likewise.
3626 * nto-procfs.c (procfs_create_inferior): Likewise.
3627 * procfs.c (procfs_create_inferior): Likewise.
3628 * remote-sim.c (gdbsim_create_inferior): Likewise.
3629 * remote.c (extended_remote_create_inferior)
3630 (extended_remote_async_create_inferior): Likewise.
3631 * win32-nat.c (win32_create_inferior): Likewise.
3632 * wince.c (child_create_inferior): Likewise.
3633
3634 * monitor.c (monitor_create_inferior): Don't call proceed.
3635 Set the PC manually.
3636 * ocd.c (ocd_create_inferior): Likewise.
3637 * remote-e7000.c (e7000_create_inferior): Likewise.
3638 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3639 * remote-mips.c (mips_create_inferior): Likewise.
3640 * remote-rdp.c (remote_rdp_create_inferior): Likewise.
3641 * remote-sds.c (sds_create_inferior): Likewise.
3642 * remote-st.c (st2000_create_inferior): Likewise.
3643
3644 * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
3645 proceed or observer_notify_inferior_created.
3646 * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
3647 * inftarg.c (child_create_inferior): Likewise.
3648
e23fc6de
DJ
36492006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
3650
3651 * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
3652 after mourning the inferior.
3653
13d6656b
JB
36542006-01-24 Jim Blandy <jimb@redhat.com>
3655
3656 * valarith.c (binop_user_defined_p): Handle refs to typedefs.
3657
59f92a09
FF
36582006-01-24 Fred Fish <fnf@specifix.com>
3659
3660 * parse.c (source.h): Include.
3661 (parse_exp_in_context): Use static source context if no
3662 other context found.
3663
dda63807
AS
36642006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
3665
3666 * sh-tdep.c: Include reggroups.h.
3667 (sh_register_reggroup_p): New function.
3668 (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
3669 * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
3670
4b505b12
AS
36712006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
3672
3673 * cli/cli-cmds.c: Include fcntl.h.
3674 (source_command): Use the GDB search path to find script files.
3675
721d14ba
DJ
36762006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
3677
3678 PR tdep/2029
3679 Suggested by Till Straumann <strauman@slac.stanford.edu>:
3680 * rs6000-tdep.c (skip_prologue): Update check for later mtlr
3681 instructions. Handle PIC bcl.
3682
3d64d617
DJ
36832006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
3684
3685 * config/djgpp/README: Typo fix.
3686 * config/djgpp/fnchange.lst: Update.
3687
0a8f48b9
MK
36882006-01-22 Mark Kettenis <kettenis@gnu.org>
3689
c893be75
MK
3690 * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
3691 (sparc_address_from_register): New prototype.
3692 (sparcnbsd_step_trap): New prototype.
3693 * sparc-tdep.c (sparc_address_from_register): Make globally
3694 visible.
3695 (sparc_analyze_control_transfer): Change prototype to accept
3696 `struct gdbarch *' as first argument. Allow for optional hnadling
3697 for trap instructions.
3698 (sparc_step_trap): New function.
3699 (sparc_software_single_step): Adjust call to
3700 sparc_analyze_control_trabsfer.
3701 (sparc32_gdbarch_init): Initialize TDEP->step_trap.
3702 * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
3703 (sparc32nbsd_init_abi): Set TDEP->step_trap.
3704 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
3705 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
3706
0a8f48b9
MK
3707 * sparc-tdep.c (sparc32_return_value): Convert to use
3708 RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
3709 RETURN_VALUE_STRUCT_CONVENTION.
3710 (sparc32_extract_struct_value_address): Remove.
3711
1f3a99d5
DJ
37122006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
3713
3714 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
3715 (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
3716
84eb3c4f
DJ
37172006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
3718
3719 * solib.c (info_sharedlibrary_command): Avoid internal_error.
3720
878d9193
MK
37212006-01-21 Mark Kettenis <kettenis@gnu.org>
3722
3723 * i386-tdep.c (i386_mxcsr_type): New variable.
3724 (i386_init_types): Initialize i386_mxcsr_type.
3725 (i386_register_type): Return i386_mxcsr_type for %mxcsr.
3726 * i386-tdep.c (i386_mxcsr_type): New extern.
3727 * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
3728 %mxcsr.
3729
acab6ab2
MM
37302006-01-20 Mark Mitchell <mark@codesourcery.com>
3731
3732 * Makefile.in (remote-rdi.o): Remove.
3733 (rdi-share/libangsd.a): Likewise.
3734 * README: Don't mention remote-rdi.c.
3735 * NEWS: Mention removal of rdi-share.
3736 * configure.ac: Don't configure rdi-share subdirectory.
3737 * remote-rdi.c: Remove.
3738 * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
3739 (TDEPLIBS): Remove rdi-share/libangsd.a.
3740 * rdi-share/Makefile.am: Remove.
3741 * rdi-share/Makefile.in: Likewise.
3742 * rdi-share/README.CYGNUS: Likewise.
3743 * rdi-share/aclocal.m4: Likewise.
3744 * rdi-share/adp.h: Likewise.
3745 * rdi-share/adperr.h: Likewise.
3746 * rdi-share/angel.h: Likewise.
3747 * rdi-share/angel_bytesex.c: Likewise.
3748 * rdi-share/angel_bytesex.h: Likewise.
3749 * rdi-share/angel_endian.h: Likewise.
3750 * rdi-share/ardi.c: Likewise.
3751 * rdi-share/ardi.h: Likewise.
3752 * rdi-share/armdbg.h: Likewise.
3753 * rdi-share/buffers.h: Likewise.
3754 * rdi-share/chandefs.h: Likewise.
3755 * rdi-share/channels.h: Likewise.
3756 * rdi-share/chanpriv.h: Likewise.
3757 * rdi-share/configure: Likewise.
3758 * rdi-share/configure.in: Likewise.
3759 * rdi-share/crc.c: Likewise.
3760 * rdi-share/crc.h: Likewise.
3761 * rdi-share/dbg_conf.h: Likewise.
3762 * rdi-share/dbg_cp.h: Likewise.
3763 * rdi-share/dbg_hif.h: Likewise.
3764 * rdi-share/dbg_rdi.h: Likewise.
3765 * rdi-share/devclnt.h: Likewise.
3766 * rdi-share/devices.h: Likewise.
3767 * rdi-share/devsw.c: Likewise.
3768 * rdi-share/devsw.h: Likewise.
3769 * rdi-share/drivers.c: Likewise.
3770 * rdi-share/drivers.h: Likewise.
3771 * rdi-share/etherdrv.c: Likewise.
3772 * rdi-share/ethernet.h: Likewise.
3773 * rdi-share/host.h: Likewise.
3774 * rdi-share/hostchan.c: Likewise.
3775 * rdi-share/hostchan.h: Likewise.
3776 * rdi-share/hsys.c: Likewise.
3777 * rdi-share/hsys.h: Likewise.
3778 * rdi-share/logging.c: Likewise.
3779 * rdi-share/logging.h: Likewise.
3780 * rdi-share/msgbuild.c: Likewise.
3781 * rdi-share/msgbuild.h: Likewise.
3782 * rdi-share/params.c: Likewise.
3783 * rdi-share/params.h: Likewise.
3784 * rdi-share/rx.c: Likewise.
3785 * rdi-share/rxtx.h: Likewise.
3786 * rdi-share/serdrv.c: Likewise.
3787 * rdi-share/serpardr.c: Likewise.
3788 * rdi-share/sys.h: Likewise.
3789 * rdi-share/tx.c: Likewise.
3790 * rdi-share/unixcomm.c: Likewise.
3791 * rdi-share/unixcomm.h: Likewise.
3792
4577207e
MK
37932006-01-21 Mark Kettenis <kettenis@gnu.org>
3794
3795 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
3796 Change type of last argument to `gdb_byte *'.
3797
34f55018
MK
37982006-01-20 Mark Kettenis <kettenis@gnu.org>
3799
3800 * hppa-tdep.h (hppa_in_solib_call_trampoline)
3801 (hppa_skip_trampoline_code): New prototypes.
3802 * hppa-tdep.c (struct insn_pattern): New.
3803 (hppa_long_branch_stub, hppa_long_branch_pic_stub)
3804 (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
3805 here from hppa-linux-tdep.c
3806 (HPPA_MAX_INSN_PATTERN_LEN): New define.
3807 (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
3808 (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
3809 functions based on functions removed from hppa-linux-tdep.c.
3810 * hppa-linux-tdep.c (hppa_long_branch_stub)
3811 (hppa_long_branch_pic_stub, hppa_import_stub)
3812 (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
3813 (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
3814 (hppa_linux_in_solib_call_trampoline)
3815 (hppa_linux_skip_trampoline_code): Removed.
3816 (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
3817 hppa_in_solib_call_trampoline and skip_trampoline_code to
3818 hppa_skip_trampoline_code.
3819 * hppabsd-tdep.c (hppabsd_init_abi): Set
3820 TDEP->in_solib_call_trampoline and skip_trampoline_code.
3821
7be93b9e
JB
38222006-01-20 Jim Blandy <jimb@redhat.com>
3823
f408839d
JB
3824 * MAINTAINERS: Change my E-mail address.
3825
7be93b9e
JB
3826 * configure.ac: Add -Wno-pointer-sign to list of build warnings.
3827 * configure: Regenerated.
3828
b2a74f99
DJ
38292006-01-20 Daniel Jacobowitz <dan@codesourcery.com>
3830
3831 * MAINTAINERS: Overhaul.
3832
4f2aea11
MK
38332006-01-18 Mark Kettenis <kettenis@gnu.org>
3834
5ae96ec1
MK
3835 Based on a previous patch form Michal Ludvig:
3836 * amd64-tdep.c (amd64_sse_type): Remove.
3837 (amd64_register_info): Use i386_eflags_type and i386_sse_type
3838 where appropriate.
3839 (AMD64_NUM_REGS): Use ARRAY_SIZE.
3840 (amd64_register_type): Remove code to build amd_sse_type.
3841 * i386-tdep.c (i386_eflag_type): New variable.
3842 (i386_mmx_type, i386_sse_type): Make global.
3843 (i386_init_types): New function.
3844 (i386_build_mmx_type, i386_build_sse_type): Remove functions.
3845 (i386_register_type): Return i386_eflag_type, i386_sse_type and
3846 i386_mmx_type when appropriate.
3847 (_initialize_i386_tdep): Call i386_init_types.
3848 * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
3849 Declare extern.
3850
4f2aea11
MK
3851 Based on a previous patch form Michal Ludvig:
3852 * gdbtypes.c (append_flags_type_flag, init_flags_type): New
3853 functions.
3854 (is_integral_type, rank_one_type, recursive_dump_type): Add
3855 support for TYPE_CODE_FLAGS.
3856 * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
3857 (append_flags_type_field, init_flags_type): New prototypes.
3858 * ada-valprint.c (ada_val_print_1): Add support for
3859 TYPE_CODE_FLAGS.
3860 * c-valprint.c (c_val_print): Likewise.
3861 * f-valprint.c (f_val_print): Likewise.
3862 * p-valprint.c (pascal_val_print): Likewise.
3863 * valprint.c (val_print_type_code_flags): New function.
3864 * valprint.h (val_print_type_code_flags): New prototype.
3865 * value.c (unpack_long, value_from_longest): Add support for
3866 TYPE_CODE_FLAGS.
3867
4cdb5adf
CF
38682006-01-17 Christopher Faylor <cgf@timesys.com>
3869
3870 * MAINTAINERS: Very belatedly remove myself from from the list of
3871 people caught up in the paper trail.
3872
1193688d
JB
38732006-01-17 Jim Blandy <jimb@redhat.com>
3874
4e38b386
JB
3875 * symtab.h (struct general_symbol_info): Use gdb_byte for
3876 value.bytes.
3877 * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
3878 a floating-point constant's value.
3879 * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
3880 to char *.
3881 * findvar.c (read_var_value): Eliminate needless temporary.
3882
1193688d
JB
3883 * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
3884 to match prior change to dwarf2_read_section's type.
3885
0d1243d9
PG
38862006-01-16 Paul Gilliam <pgilliam@us.ibm.com>
3887
3888 * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
3889 * rs6000-tdep.c (insn_changes_sp_or_jumps)
3890 (rs6000_in_function_epilogue_p): New functions.
3891 (rs6000_gdbarch_init): Set in_function_epilogue_p.
3892
fe1b8b76
JB
38932006-01-17 Jim Blandy <jimb@redhat.com>
3894
3895 * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
3896 (struct line_header, struct partial_die_info, struct dwarf_block):
3897 Use gdb_byte for members that refer to Dwarf section contents.
3898 (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
3899 dwarf_decode_macros, load_comp_unit, load_partial_dies,
3900 locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
3901 read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
3902 read_8_bytes, read_address, read_attribute, read_attribute_value,
3903 read_comp_unit, read_comp_unit_head, read_die_and_children,
3904 read_die_and_siblings, read_full_die, read_indirect_string,
3905 read_initial_length, read_n_bytes, read_offset, read_partial_die,
3906 read_signed_leb128, read_string, read_unsigned_leb128,
3907 skip_children, skip_leb128, skip_one_die): Same.
3908
a0841d7a
DJ
39092006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
3910
3911 * complaints.c (stop_whining): Make signed.
3912 * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
3913
939b2b42
DJ
39142006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
3915
3916 * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
3917 notices.
3918
891d2f0b
DJ
39192006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
3920
3921 * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
3922 (read_offset): Change BYTES_READ argument to unsigned int.
3923 (dwarf2_build_psymtabs_easy, read_comp_unit_head)
3924 (create_all_comp_units, dwarf2_get_pc_bounds)
3925 (dwarf_decode_line_header, var_decode_location)
3926 (dwarf_decode_macros): Change local BYTES_READ variables to
3927 unsigned int.
3928 (read_indirect_string): Remove obsolete cast.
3929
cfd77fa1
DJ
39302006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
3931
3932 * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
3933 argument.
3934 (remote_fileio_func_open, remote_fileio_func_rename)
3935 (remote_fileio_func_unlink, remote_fileio_func_stat)
3936 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
3937 (remote_fileio_func_system): Cast the arguments to
3938 remote_read_bytes and remote_write_bytes.
3939 (remote_fileio_func_read, remote_fileio_func_write): Use a
3940 gdb_byte buffer.
3941 * remote.h (remote_read_bytes, remote_write_bytes): Update
3942 prototypes.
3943 * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
3944 (threadref_to_int): Replace bogus char * cast.
3945 (remote_unpack_thread_info_response): Use int for tag.
3946 (remote_threads_extra_info, remote_check_symbols): Cast string
3947 arguments to hex2bin.
3948 (remote_wait): Use a char buffer for packets and a gdb_byte
3949 buffer for registers.
3950 (remote_async_wait): Likewise.
3951 (remote_prepare_to_store, store_register_using_P)
3952 (remote_store_registers): Use gdb_byte buffers.
3953 (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
3954 for MYADDR and char buffers for strings.
3955 (remote_xfer_partial): Add casts for string operations on READBUF.
3956 (remote_rcmd): Cast strings passed to bin2hex.
3957
60bf0650
MM
39582006-01-16 Mark Mitchell <mark@codesourcery.com>
3959
3960 * aclocal.m4: Regenerate.
3961
60e81fcc
NS
39622006-01-16 Nathan Sidwell <nathan@codesourcery.com>
3963
3964 * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
3965 MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
3966 MT_COPRO_PSEUDOREG_REGS members. Adjust MT_NUM_PSEUDO_REGS.
3967 (mt_register_name): Lazily synthesize name for coprocessor pseudo
3968 array registers.
3969 (mt_copro_register_type): New. Broken out of ...
3970 (mt_register_type): ... here. Use it. Deal with coprocessor
3971 pseudo array.
3972 (mt_select_coprocessor): New.
3973 (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
3974 coprocessor pseudo array.
3975
f365de73
AS
39762006-01-16 Andrew Stubbs <andrew.stubbs@st.com>
3977
3978 * breakpoint.c (insert_breakpoints): Check that a thread exists
3979 before inserting thread specific breakpoints.
3980
9d519230
MK
39812006-01-15 Mark Kettenis <kettenis@gnu.org>
3982
6062517a
MK
3983 * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
3984 commit.
3985
9d519230
MK
3986 * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
3987 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
3988 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
3989 * config/alpha/nm-nbsd.h: Remove file.
3990 * config/alpha/nm-fbsd.h: Remove file
3991 * config/alpha/nbsd.mh (NAT_FILE): Remove.
3992 * config/alpha/fbsd.mh (NAT_FILE): Remove.
3993
0a029df5
DJ
39942006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
3995
3996 * macroexp.c (expand): Initialize argc.
3997 * stabsread.c (read_type): Handle errors from read_args.
3998 (read_args): Return NULL for errors.
3999
1731e543
MK
40002006-01-15 Mark Kettenis <kettenis@gnu.org>
4001
4002 * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
4003 strcmp to compare string to a byte buffer.
4004
777ea8f1
DJ
40052006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
4006
4007 * printcmd.c (output_command): Always initialize fmt.size.
4008 (printf_command): Use gdb_byte.
4009 * symfile.c (separate_debug_file_exists): Use gdb_byte.
4010 (load_section_callback, read_target_long_array): Likewise.
4011 (simple_read_overlay_table, simple_read_overlay_region_table)
4012 (simple_overlay_update_1): Correct calls to read_target_long_array.
4013 * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
4014 Also change local pointers.
4015 (val_print_string): Use gdb_byte.
4016
4b17b389
MK
40172006-01-15 Mark Kettenis <kettenis@gnu.org>
4018
4019 * alphafbsd-tdep.c: Include "solib-svr4.h".
4020 (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
4021 svr4_lp64_fetch_link_map_offsets.
4022 * Makefile.in (alphafbsd-tdep.o): Update dependencies.
4023 * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
4024 solib-svr4.o.
4025 * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
4026 and solib-legacy.o.
4027 * config/alpha/nm-fbsd.h: Don't include "solib.h".
4028
bd4109fb
DJ
40292006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
4030
4031 * source.c (_initialize_source): Use add_setshow_integer_cmd.
4032
1dce6535
DJ
40332006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
4034
4035 * linux-fork.c (delete_fork_command, detach_fork_command): Use
4036 PIDGET.
4037
76a9d10f
MK
40382006-01-15 Mark Kettenis <kettenis@gnu.org>
4039
4040 * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
4041 Remove.
4042 (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
4043 svr4_ilp32_fetch_link_map_offsets.
4044 * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
4045 function.
4046 (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
4047 svr4_ilp32_fetch_link_map_offsets.
4048 * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
4049 (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
4050 (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
4051 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
4052 where appropriate.
4053 * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
4054 Simply call svr4_ilp32_fetch_link_map_offsets.
4055 (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
4056 svr4_lp64_fetch_link_map_offsets.
4057 * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
4058 function.
4059 (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
4060 svr4_ilp32_fetch_link_map_offsets.
4061 * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
4062 (s390x_svr4_fetch_link_map_offsets): Remove functions.
4063 (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
4064 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
4065 where appropriate.
4066
469db033
MK
40672006-01-15 Mark Kettenis <kettenis@gnu.org>
4068
25224166
MK
4069 * arm-tdep.c (arm_return_value): Change type of readbuf and
4070 writebuf arguments to `gdb_byte *'.
4071
469db033
MK
4072 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
4073 * Makefile.in (s390-tdep.o): Update dependencies.
4074
4dd7c9f6
MK
40752006-01-14 Mark Kettenis <kettenis@gnu.org>
4076
081bf9da
MK
4077 * sol2-tdep.h. sol2-tdep.c: New files.
4078 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
4079 (amd64_sol2_init_abi): Set skip_solib_resolver.
4080 * i386-sol2-tdep.c: Include "sol2-tdep.h".
4081 (i386_sol2_init_abi): Set skip_solib_resolver.
4082 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
4083 (sparc32_sol2_init_abi): Set skip_solib_resolver.
4084 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
4085 (sparc64_sol2_init_abi): Set skip_solib_resolver.
4086 * Makefile.in (sol2_tdep_h): New variable.
4087 (ALLDEPFILES): Add sol2-tdep.c.
4088 (sol2-tdep.o): New target.
4089 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
4090 (sparc64-sol2-tdep.o): Update dependencies
4091 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
4092 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
4093 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
4094 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
4095
c0f96416
MK
4096 * hppa-linux-tdep.c: Fix copyright indentation.
4097
4dd7c9f6
MK
4098 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
4099 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
4100 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
4101 functions.
4102 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
4103 floating-point registers.
4104
6da86618
MM
41052006-01-13 Mark Mitchell <mark@codesourcery.com>
4106
4107 * event-loop.c (gdb_select): Detect file descriptors that have
4108 been closed.
4109
ed944ce7
MK
41102006-01-13 Mark Kettenis <kettenis@gnu.org>
4111
4112 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
4113 and long_double_format accordingly.
4114
03ee6b2e
PH
41152006-01-12 Paul N. Hilfinger <hilfinger@adacore.com>
4116
4117 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
4118 translation problems.
4119 * ada-lang.c (ada_value_struct_elt): Change interface and handling
4120 of errors to avoid translation problem (and less than optimal error
4121 messages).
4122 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
4123 Use new interface to ada_value_struct_elt.
4124 * ada_lang.h (ada_value_struct_elt): Update declaration to new
4125 interface.
4126
4127 * ChangeLog: remove reference to ada-tasks.c from entry of
4128 2006-01-07.
4129
24b06219
MK
41302006-01-11 Mark Kettenis <kettenis@gnu.org>
4131
4132 * remote.c (get_memory_packet_size, set_thread)
4133 (remote_unpack_thread_info_response, remote_get_threadinfo)
4134 (parse_threadlist_response, remote_get_threadlist)
4135 (remote_current_thread, remote_threads_info)
4136 (remote_threads_extra_info, extended_remote_restart, get_offsets)
4137 (remote_check_symbols, remote_open_1, remote_detach)
4138 (remote_async_wait, remote_fetch_registers)
4139 (remote_store_registers, check_binary_download, putpkt_binary)
4140 (remote_insert_breakpoint, remote_insert_watchpoint)
4141 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
4142 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
4143 (packet_command): Remove redundant parenthesis.
4144
15550d6b
MK
41452006-01-10 Mark Kettenis <kettenis@gnu.org>
4146
dfb65433
MK
4147 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
4148 (read_memory_typed_address, write_memory)
4149 (write_memory_unsigned_integer, write_memory_signed_integer): Use
4150 gdb_byte where appropriate.
4151
508416a1
MK
4152 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
4153 'gdb_byte *'.
4154
f6519ebc
MK
4155 * target.h (target_read_memory_partial, target_write_memory_partial):
4156 Change second argument to 'gdb_byte *'.
4157 * target.c (target_xfer_memory_partial): Change third argument to
4158 'gdb_byte *'.
4159 (target_read_memory_partial, target_write_memory_partial): Change
4160 second argument to 'gdb_byte *'.
4161
15550d6b
MK
4162 * linespec.c (decode_objc): Make i1 and i2 unsigned.
4163 (find_method): Set values.sals to NULL.
4164
d7a30af7
MK
41652006-01-09 Mark Kettenis <kettenis@gnu.org>
4166
4167 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
4168 of 'char *' in cast.
4169
e1d5a0d2
PH
41702006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
4171
4172 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
03ee6b2e 4173 * ada-lang.c: I18n markup.
e1d5a0d2
PH
4174 Editorial: change "can not" => "cannot" throughout.
4175
790124be
MK
41762006-01-07 Mark Kettenis <kettenis@gnu.org>
4177
4178 * Makefile.in: Sort dependencies.
4179
3c481fdc
EZ
41802006-01-07 Eli Zaretskii <eliz@gnu.org>
4181
4182 * top.c (control_level): Remove unused variable.
4183
cb5d864f
FF
41842006-01-06 Fred Fish <fnf@specifix.com>
4185
4186 * objfiles.c (source.h): Include.
4187 (free_objfile): Update comment about clear_symtab_users().
4188 (free_objfile): Check all symtabs of objfile being freed and if
4189 one of them is the current source symtab, call
4190 clear_current_source_symtab_and_line().
4191
ac264b3b
MS
41922006-01-04 Michael Snyder <msnyder@redhat.com>
4193
4194 Checkpoint/Restart for Linux.
4195 * linux-nat.c: Add support for debugging multiple forks.
4196 Add #include for linux-fork.h (interface spec).
4197 (super_mourn_inferior): New function pointer.
4198 (child_mourn_inferior): New function / target method.
4199 (linux_target): Claim to_mourn_inferior method pointer.
4200 (child_follow_fork): Call interface to linux-fork, conditionally
4201 add new fork processes to list of debugged processes.
4202 (kill_inferior): Use interface to linux-fork to kill
4203 multiple processes.
4204
4205 * linux-fork.h: New file.
4206 * linux-fork.c: New file. Support for debugging multiple forks
4207 of the same program. Support for checkpoint and restart commands.
4208
4209 * infrun.c (nullify_last_target_wait_ptid): New function.
4210
4211 * Makefile.in: Add linux-fork.
4212 * config/*/linux.mh: Add linux-fork.
4213 * NEWS: Mention new functionality.
4214
f98ce7c2
PH
42152006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
4216
4217 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
4218 Change uses of "illegal" to "invalid".
4219
52ce6436
PH
42202006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
4221
4222 * ada-exp.y: Considerable reorganization to move functionality
4223 from ada-lex.l to here, where it is logically more appropriate.
4224 The original reason, however, was to prevent premature name
4225 lookups for selector names in record aggregates.
4226 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
4227 NAME for all of these.
4228 (VAR): New artificial token to clarify precedence rules.
4229 (OTHERS): New lexeme.
4230 (empty_stoken): New symbol.
4231 (%union): Remove ssym, voidval.
4232 (%type): Remove <voidval> type declarations.
4233 (syntax definitions): Add aggregates.
4234 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
4235 Rename some non-terminals to be closer to reference manual usage.
4236 Tighten up expression syntax to disallow certain non-Ada
4237 constructions such as X and then Y or else Z.
4238 (ada_parse): Remove initialization of left_block_context.
4239 (write_var_from_name): Remove.
4240 (write_var_or_type): New function, containing previous code from
4241 defunct write_var_from_name and name_lookup.
4242 (block_lookup): New function, moved from ada-lex.l
4243 (select_possible_type_sym): New function, factored out of
4244 name_lookup, which used to be in ada-lex.l.
4245 (find_primitive_type): Ditto.
4246 (chop_selector): Ditto.
4247 (write_ambiguous_var): New function, factored out of defunct
4248 write_var_from_name.
4249 (write_selectors): New function.
4250 (write_name_assoc): New function.
4251 (write_exp_op_with_string): New function.
4252
4253 * ada-lex.l (processId): Change interface to return stoken.
4254 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
4255 (block_lookup, name_lookup): Remove. Functionality moved to
4256 ada-exp.y.
4257 (state IN_STRING): Remove.
4258 (rules): Handle string escapes in processString.
4259 Add 'others' token.
4260 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
4261 yylval.sval (as simple strings).
4262 All name look-ups now handled in ada-exp.y.
4263 Introduce "::" (COLONCOLON) token and return as separate token.
4264 (processId): Change return convention. Comment.
4265 Leave leading "'" in place.
4266 (processString): New function.
4267 (find_dot_all): Add note to comment.
4268 Fix problem that allowed match only at the end.
4269
4270 * ada-lang.c: Introduce aggregates.
4271 (find_struct_field): Add new parameter to count fields skipped, and
4272 allow other output parameters to be NULL.
4273 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
4274 new find_struct_field.
4275 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
4276 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
4277 (num_component_specs, assign_component, assign_aggregate):
4278 (aggregate_assign_from_choices,aggregate_assign_positional)
4279 (aggregate_assign_others,add_component_interval):
4280 New functions.
4281 (ada_evaluate_subexp): Declare.
4282 Add aggregate-related operators.
4283 (ada_forward_operator_length): Declare.
4284 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
4285 Consolidate Ada operators, using ada_forward_operator_length.
4286 (ada_search_struct_field): Search in forward order.
4287 (ADA_OPERATORS): Add new aggregate operators.
4288 (ada_operator_length, ada_op_name, ada_forward_operator_length)
4289 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
4290 operators and OP_NAME.
4291 (ada_type_of_array): Use longest_to_int.
4292 (value_assign_to_component): New function.
4293 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
4294 Add OP_NAME case.
4295 (ada_forward_operator_length, ada_dump_subexp_body):
4296 Add OP_STRING case.
4297
4298 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
4299 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
4300
529cad9c
PH
43012006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
4302
4303 * ada-lang.c (process_raise_exception_name): Remove extraneous
4304 definition from unsubmitted code.
4305
4306 (is_lower_alphanum): New function.
4307 (ada_decode): Add support for decoding protected object subprograms
4308 and entries, and of entities declared inside protected object
4309 subprograms.
4310 Also add missing handling for__{DIGITS}+ suffixes.
4311 Allow '$<digits>' as valid overloading suffix.
4312 (is_name_suffix): Add handling for protected type entriy suffixes.
4313 Also add support for protected type subprogram suffixes, but keep
4314 it commented out for now, as there is an ambiguity between these
4315 entities and other internally generated entities.
4316 Allow '$<digits>' as valid overloading suffix.
4317 (is_valid_name_for_wild_match): New function.
4318 (wild_match): Add an exra level of verification of the entity name
4319 before declaring it a match for the given pattern.
4320
4321 (ada_type_of_array, ada_evaluate_subexp): Use more proper
4322 longest_to_int rather than cast.
4323
4324 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
4325
4326 (ada_coerce_to_simple_array): Call check_size to make sure
4327 that the object size is reasonable.
4328
4329 (ada_value_primitive_packed_val): Use correct location in target
4330 buffer for extracting packed record fields that are themselves records.
4331
4332 (add_defn_to_vec): Do not try to replace a stub type by its full
4333 type. Avoids a potential infinite loop.
4334
4335 (ada_lookup_symbol): Move return incorrectly placed return statement,
4336 causing a loop that should be scanning all object files to only
4337 scan the first one.
4338
4339 (ada_tag_name_2): New function.
4340 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
4341 use alternative representation.
4342
4343 (ada_find_renaming_symbol): Strip the function name suffix when
4344 computing the XR type name.
4345
4346 (ada_to_fixed_type): Try determining the tag only if we have the
4347 object's address.
4348 (to_fixed_array_type): Add comments.
4349
4350 (ada_check_typedef): Replace expression checking whether the given
4351 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
4352 consistent.
4353
4354 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
4355 '$' in addition to '.' for runtime auxiliary function name suffixes.
4356 See changes to ada_decode above.
4357
4358 (struct task_control_block): Add field called_task. (This change is
4359 to keep synchronized with our local sources; it does not affect the
4360 public version yet.)
4361
4362 * ada-typeprint.c (ada_print_type): Use int_string for printing
4363 modulus of modular type.
4364
4365 (print_range): Trivial editorial comment fix.
4366
4367 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
4368 double quote in string.
4369
9b799fe6
JB
43702006-01-01 Joel Brobecker <brobecker@adacore.com>
4371
4372 * top.c: Add 2006 to list of copyright years in file header.
4373
0bee0712
JB
43742006-01-01 Joel Brobecker <brobecker@adacore.com>
4375
4376 * top.c (print_gdb_version): Update copyright year to 2006.
4377
13c763f4
JB
43782006-01-01 Roger Sayle <roger@eyesopen.com>
4379 Elena Zannoni <ezannoni@redhat.com>
4380
4381 PR symtab/1651
4382 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
4383 for NULL before assigning this_symtab_psymtab->objfile to objfile.
4384 (scan_xcoff_symtab): Initialize next_symbol_text_func.
4385 (Committed by Jim Blandy)
4386
e50f0da1 4387For older changes see ChangeLog-2005.
c906108c
SS
4388\f
4389Local Variables:
4390mode: change-log
4391left-margin: 8
4392fill-column: 74
4393version-control: never
4394End:
This page took 0.983615 seconds and 4 git commands to generate.