2008-08-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
dde7c0a9
VP
12008-08-15 Vladimir Prus <vladimir@codesourcery.com>
2
3 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
4 call linux_target twice.
5
ebd67d87
AR
62008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
7
8 * nto-tdep.c (lm_info): Updated struct lm_info definition from
9 solib-svr4.c
10 (LM_ADDR): Use l_addr if available; if not, use link map and set
11 l_addr.
12
886a217c
TT
132008-08-14 Tom Tromey <tromey@redhat.com>
14
15 * macrocmd.c (macro_define_command): Check for NULL argument.
16 (macro_undef_command): Likewise.
17
3d488bfc
PA
182008-08-14 Pedro Alves <pedro@codesourcery.com>
19
20 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
21
33e5cbd6
PA
222008-08-13 Pedro Alves <pedro@codesourcery.com>
23
24 * breakpoint.c (always_inserted_auto, always_inserted_on)
25 (always_inserted_off, always_inserted_enums): New.
26 (always_inserted_mode): Change type to char* and point to
27 always_inserted_auto.
28 (show_always_inserted_mode): In auto mode, also show the current
29 effect of the option.
30 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
31 (_initialize_breakpoint): Make the "set breakpoints
32 always-inserted" command an enum command. Extend help to describe
33 the auto mode.
34
8fbde58b
UW
352008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
36
37 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
38 query valid) bit. Ignore bits outside the condition field.
39 (info_spu_proxydma_command): Ignore bits outside the field.
40
11fa8e43
MS
412008-08-12 Michael Snyder <msnyder@vmware.com>
42
43 * MAINTAINERS: Update my email address.
44
fcb09a75
UW
452008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
46
47 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
48
a6f3e723
SL
492008-08-12 Pedro Alves <pedro@codesourcery.com>
50
51 Add no-ack mode to the remote protocol --- optionally stop ACKing
52 packets and responses when we have a reliable communication
53 medium.
54
55 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
56
57 * remote.c (struct remote_state): Add noack_mode field.
58 (PACKET_QStartNoAckMode): New.
59 (remote_start_remote): Don't any outstanding packet here.
60 (remote_open_1): Clear noack_mode. Ack any outstanding packet
61 here. Activate noack mode if requested.
62 (remote_protocol_features): Add QStartNoAckMode.
63 (remote_open_1):
64 (putpkt_binary): Don't send ack in noack mode.
65 (read_frame): Don't recompute the checksum in noack mode.
66 (getpkt_sane): Skip sending ack if in noack mode.
67 (_initialize_remote): Add set/show remote noack mode.
68 * NEWS: Note the new features.
69
8ab3d180
KB
702008-08-11 Kevin Buettner <kevinb@redhat.com>
71
72 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
73 New macros.
74 (rs6000_skip_main_prologue): New function.
75 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
76
63a61bf6
SL
772008-08-11 Sandra Loosemore <sandra@codesourcery.com>
78
79 * MAINTAINERS (Write After Approval): Add self.
80
9d4fde75
SS
812008-08-11 Stan Shebs <stan@codesourcery.com>
82
83 ARM BE8 support.
84 * disasm.c (gdb_disassemble_info): Set endian_code.
85 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
86 * gdbarch.h, gdbarch.c: Regenerate.
87 * arch-utils.c (initialize_current_architecture): Set the
88 default byte_order_for_code.
89 (gdbarch_info_init): Ditto.
90 (gdbarch_info_fill): Ditto.
91 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
92 (thumb_analyze_prologue): Swap halfword if code endianness is
93 different from general endianness.
94 (arm_skip_prologue): Similarly.
95 (arm_scan_prologue): Ditto.
96 (thumb_get_next_pc): Ditto.
97 (arm_get_next_pc): Ditto.
98 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
99 choose correct endianness for breakpoints.
100
6c613132
PA
1012008-08-10 Pedro Alves <pedro@codesourcery.com>
102
103 * bsd-kvm.c: Include "gdbthread.h".
104 (bsd_kvm_ptid): New.
105 (bsd_kvm_open): Add a main thread.
106 (bsd_kvm_close): Delete it.
107 (bsd_kvm_thread_alive): New.
108 (bsd_kvm_pid_to_str): New.
109 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
110 bsd_kvm_pid_to_str.
111 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
112
6eb7ee03
PA
1132008-08-09 Pedro Alves <pedro@codesourcery.com>
114
115 * buildsym.c (start_subfile): Properly cast sentinel in concat
116 call.
117 * cp-name-parser.y: Include "config.h".
118 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
119 concat call.
120 * gdb_select.h: Include sys/time.h if sys/select.h is not
121 available.
122
444c3224
PA
1232008-08-09 Pedro Alves <pedro@codesourcery.com>
124
125 * go32-nat.c: Include "gdbthread.h".
126 (go32_stop, go32_kill_inferior): Delete the main thread.
127 (go32_create_inferior): Add it.
128 (go32_thread_alive, go32_pid_to_str): New.
129 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
130
9d0b3624
PA
1312008-08-09 Pedro Alves <pedro@codesourcery.com>
132
133 * go32-nat.c (fetch_register, store_register): Pass the regcache
134 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
135 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
136 (struct seg_descr, struct seg_descr): pack the whole struct
137 instead of each member individually.
138
509238d6
AS
1392008-08-09 Andreas Schwab <schwab@suse.de>
140
141 * python/python.c (_initialize_python): Use unabbreviated commands
142 in prefix name.
143
c068b4e8
DJ
1442008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
145
146 * Makefile.in (stamp-h): Also create .deps.
147
21374e5f
TT
1482008-08-09 Tom Tromey <tromey@redhat.com>
149
150 * Makefile.in (generated_files): Add GNULIB_H.
151
7be67755
DA
1522008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
153
154 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
155 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
156 Revise comment.
157 (pa64_current_sos): Remove map private warning warning.
158 * solib-som.c: Include string.h and sys/utsname.h.
159 (get_hpux_major_release): New function.
160 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
161 about shared library private mapping on HP-UX 11 and later. Only force
162 private mapping of shared libraries on HP-UX 10 and earlier.
163 (link_map_start): Delete warning.
164
e0c62198
L
1652008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
166 H.J. Lu <hongjiu.lu@intel.com>
167 Mark Kettenis <kettenis@gnu.org>
168
169 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
170 (amd64_init_frame_cache): Initialize saved_sp_reg.
171 (amd64_analyze_stack_align): New.
172 (amd64_analyze_prologue): Call it.
173 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
174 %rip to 8 when halfway aligning the stack.
175
176 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
177 AMD64_R14_REGNUM.
178
179 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
180 saved_sp_reg.
181 (i386_alloc_frame_cache): Remove stack_align. Initialize
182 saved_sp_reg to -1.
183 (i386_analyze_stack_align): Rewrite.
184 (i386_frame_cache): Use saved_sp_reg if it is valid.
185
b9db4ced
UW
1862008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
187
188 * target.c: Include "solib.h".
189 (target_pre_inferior): Call no_shared_libraries.
190 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
191 or clear_solib.
192 (attach_command): Do not call clear_solib.
193
3979a37f
MK
1942008-08-09 Mark Kettenis <kettenis@gnu.org>
195
196 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
197 the %eip register.
198
2b26d9fa
TT
1992008-08-08 Tom Tromey <tromey@redhat.com>
200
201 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
202 POSTCOMPILE.
203 (python-utils.o): Likewise.
204
f1648876
AS
2052008-08-08 Andreas Schwab <schwab@suse.de>
206
207 * corefile.c (_initialize_core): Remove spurious paren from set
208 gnutarget doc string.
209
b7622095
LM
2102008-08-08 Luis Machado <luisgpm@br.ibm.com>
211
212 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
f1648876 213 Define PPC_FEATURE_BOOKE.
b7622095
LM
214 (ppc_linux_get_hwcap): New function.
215 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
216 4-bytes alignment restrictions.
217 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
218 positioning of the read/write flags.
219 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
220 4-bytes alignment.
221
2dc38344
PA
2222008-08-08 Pedro Alves <pedro@codesourcery.com>
223
224 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
225
226 * win32-nat.c (win32_add_thread): Change thread argument type to
227 ptid_t. Adjust.
228 (win32_add_thread): Adjust.
229 (win32_delete_thread): Change thread argument type to ptid_t.
230 Adjust.
231 (win32_fetch_inferior_registers, win32_store_inferior_registers)
232 (win32_resume, get_win32_debug_event, get_win32_debug_event)
233 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
234 (init_win32_ops): Put to_magic last.
235 (win32_win32_thread_alive): Adjust.
236
4d6c6261
PA
2372008-08-08 Pedro Alves <pedro@codesourcery.com>
238
239 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
240 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
241
e5ef4d75
PA
2422008-08-08 Pedro Alves <pedro@codesourcery.com>
243
244 * remote-m32r-sdi.c: Include "gdbthread.h".
245 (remote_m32r_ptid): New.
246 (m32r_close): Delete the main thread.
247 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
248 main thread.
249 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
250 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
251
a417dc56
RW
2522008-08-07 Tom Tromey <tromey@redhat.com>
253 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
254
255 * aclocal.m4, configure: Rebuild.
256 * configure.in: Call ZW_CREATE_DEPDIR,
257 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
258 (MAKE, GMAKE): New substs.
259 * acinclude.m4: Include depstand.m4.
260 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
261 COMPILE, POSTCOMPILE, depcomp): New variables.
262 Remove all _h variables.
263 Remove many .o targets.
264 ($(srcdir)/copying.c): avoid backslash-newline after comment
265 sign (@maintainer_mode_true@).
266 (HFILES_NO_SRCDIR): Regenerate.
267 (generated_files): New variable.
268 (all_gdbtk_cflags): Likewise.
269 (.c.o): Rewrote.
270 (init.o, version.o, copying.o): Remove.
271 (distclean): Remove DEPDIR.
272 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
273 printcmd.o, procfs.o, v850ice.o): Rewrite.
274 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
275 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
276 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
277 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
278 gdbtk-wrapper.o): Likewise.
279 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
280 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
281 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
282 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
283 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
284 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
285 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
286 tui-wingeneral.o, tui-winsource.o): Likewise.
287 (all_object_files): New variable.
288 ($(all_object_files)): New target.
289 Include dependency files, when using GNU Make.
290
12ab8a60
UW
2912008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
292
293 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
294 the valid bit set. Ensure display order respects partial
295 order defined by dependency bits.
296
6536cc32
DA
2972008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
298
299 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
300 setup.
301
f73a15e4
MK
3022008-08-06 Mark Kettenis <kettenis@gnu.org>
303
304 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
305 OpenBSD 4.3.
306
d57a3c85
TJB
3072008-08-06 Vladimir Prus <vladimir@codesourcery.com>
308 Tom Tromey <tromey@redhat.com>
309 Thiago Jung Bauermann <bauerman@br.ibm.com>
310 Doug Evans <dje@google.com>
311
312 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
313 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
314 PYTHON_CFLAGS): New.
315 (python_h, python_internal_h): New.
316 (cli-script.o): Depend on python.h
317 (python.o, python-utils.o): New.
318 * cli/cli-script.c (print_command_lines): Handle python_control.
319 (execute_control_command): Handle python_control.
320 (execute_control_command_untraced): New function.
321 (while_command): Call execute_control_command_untraced.
322 (if_command): Likewise.
323 (get_command_line): Remove static attribute.
324 (read_next_line): Handle "python".
325 (recurse_read_control_structure): Handle python_control.
326 (read_command_lines): Handle python_control.
327 Include python.h.
328 * cli/cli-script.h (get_command_line): Add prototype.
329 (execute_control_command_untraced): Likewise.
330 * configure.ac: Add --with-python.
331 * defs.h (enum command_control_type) <python_control>: New
332 constant.
333 * python/python-internal.h: New file.
334 * python/python.c: New file.
335 * python/python.h: New file.
336 * python/python-utils.c: New file.
337 * NEWS: Mention Python scripting support and its new commands.
338
5141027d
UW
3392008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
340
341 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
342
353cfe88
PM
3432008-08-06 Phil Muldoon <pmuldoon@redhat.com>
344
f1648876 345 * MAINTAINERS (Write After Approval): Add self.
353cfe88 346
d6b74ac4
PM
3472008-08-06 Phil Muldoon <pmuldoon@redhat.com>
348
349 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
350 (insert_breakpoint_locations): Likewise.
351
ef0d312a
MS
3522008-08-05 Phil Muldoon <pmuldoon@redhat.com>
353
354 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
355 breakpoint.
356 (set_longjmp_breakpoint): Likewise.
357
fb6d93b2
UW
3582008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
359
360 PR build/2490
361 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
362 defined.
363
e6ad058a
TT
3642008-08-05 Tom Tromey <tromey@redhat.com>
365
366 * bcache.c (deprecated_bcache_added): Initialize obstack.
367 (bcache_xmalloc): Don't initialize obstack.
368 (bcache_xfree): Conditionally free obstack.
369 (bcache_memory_used): Update.
370
11d31d94
TT
3712008-08-05 Tom Tromey <tromey@redhat.com>
372
373 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
374 bcache_full.
375 (append_psymbol_to_list): Accept a const pointer.
376 (add_psymbol_to_list): Fix const correctness.
377 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
378 (bcache_full): Declare.
379 * bcache.c (bcache_data, deprecated_bcache): Remove.
380 (bcache): Use bcache_full.
381 (bcache_full): Rename from deprecated_bcache_added. Change return
382 type.
383
5be973eb
SS
3842008-08-04 Stan Shebs <stan@codesourcery.com>
385
386 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
387 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
388 (enable_break): Remove test of BKPT_AT_SYMBOL.
389
5062cc19
KS
3902008-08-02 Keith Seitz <keiths@redhat.com>
391
392 * acinclude.m4: Include ../config/tcl.m4 to pick up
393 standard Tcl configury bits.
394 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
395 * configure.ac: Don't check if ../itcl exists when building
396 gdbtk. It could be installed.
397 Rewrite gdbtk configury to allow for using system-supplied
f1648876 398 Tcl and Tk. Gdbtk no longer requires build-time access to
5062cc19
KS
399 itcl and itk.
400 * Makefile.in: Remove everything related to itcl and itk.
401 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
402 configure.ac.
403 Remove v850ice.o build rule.
404 (ALL_TCL_CFLAGS): New convenience defintion. Change all
405 gdbtk sources to use it.
406 * configure: Regenerate.
f1648876 407
6d76a53d
SS
4082008-07-31 Stan Shebs <stan@codesourcery.com>
409
410 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
411
ed7c5e43
SS
4122008-07-30 Stan Shebs <stan@codesourcery.com>
413
414 * objfiles.c (TARGET_KEEP_SECTION): Remove.
415 (add_to_objfile_sections): Remove use.
416
22ad7fee
TT
4172008-07-29 Tom Tromey <tromey@redhat.com>
418
419 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
420 (lookup_cmd_composition): Likewise.
421
d5529a84
TT
4222008-07-29 Tom Tromey <tromey@redhat.com>
423
424 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
425 dead code. Fix indentation.
426
938f4ca8
SS
4272008-07-29 Stan Shebs <stan@codesourcery.com>
428
429 * main.c (captured_main): Remove long-unused #if 0 blocks.
430
7f4b89d1
TT
4312008-07-28 Tom Tromey <tromey@redhat.com>
432
433 * annotate.h (deprecated_annotate_starting_hook): Remove.
434 (deprecated_annotate_stopped_hook): Remove.
435 (deprecated_annotate_exited_hook): Remove.
436 * Makefile.in (annotate.o): Depend on observer_h.
437 * top.c (deprecated_delete_breakpoint_hook): Remove.
438 (deprecated_create_breakpoint_hook): Likewise.
439 (deprecated_modify_breakpoint_hook): Likewise.
440 * interps.c (clear_interpreter_hooks): Update for removed hooks.
441 * breakpoint.c (mention): Don't call removed hook.
442 (delete_breakpoint): Likewise.
443 (disable_breakpoint): Likewise.
444 (do_enable_breakpoint): Likewise.
445 * annotate.c: Include observer.h.
446 (breakpoint_changed): Change type of argument.
447 (_initialize_annotate): Register observers.
448 (deprecated_annotate_starting_hook): Remove.
449 (deprecated_annotate_stopped_hook): Remove.
450 (deprecated_annotate_exited_hook): Remove.
451 (annotate_starting): Update for hook removal.
452 (annotate_stopped): Likewise.
453 (annotate_exited): Likewise.
454 * defs.h (deprecated_delete_breakpoint_hook): Remove.
455 (deprecated_create_breakpoint_hook): Likewise.
456 (deprecated_modify_breakpoint_hook): Likewise.
457
8641e682
TT
4582008-07-28 Tom Tromey <tromey@redhat.com>
459
460 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
461
064ef605
DJ
4622008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
463
464 * configure.ac: Check for the GNU/Linux ptrace signature.
465 * configure: Regenerated.
466
57380f4e
DJ
4672008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
468
469 * linux-nat.c (resume_callback): Add more debugging output.
470 (linux_nat_has_pending_sigint): New function, based on
471 linux_nat_has_pending.
472 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
473 (stop_wait_callback): Remove flush_mask handling. Honor
474 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
475 to recursive calls.
476 (linux_nat_has_pending, flush_callback): Remove.
477 (linux_nat_filter_event): Check for ignore_sigint.
478 (linux_nat_wait): Remove flush_mask support and call to
479 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
480 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
481
e09490f1
DJ
4822008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
483
484 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
485 report events from resumed threads.
486
e38d4e1a
DJ
4872008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
488
489 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
490 (mips_linux_init_abi): Set tdep->syscall_next_pc.
491 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
492 mips-tdep.h.
493 (mips32_next_pc): Handle the syscall instruction.
494 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
495 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
496
fa8de41e
TT
4972008-07-26 Tom Tromey <tromey@redhat.com>
498
499 PR gdb/1158:
500 * valops.c (value_struct_elt): Treat function-valued field as a
501 static method.
502
ccb3ac8a
TT
5032008-07-26 Tom Tromey <tromey@redhat.com>
504
505 PR gdb/1136:
506 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
507 longer tokens first.
508
d72314c6
VP
5092008-07-26 Vladimir Prus <vladimir@codesourcery.com>
510
511 Kill cmd_async_ok.
f1648876
AS
512 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
513 (get_cmd_async_ok): Remove.
514 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
515 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
516 * infcmd.c (_initialize_infcmd): Likewise.
517 * thread.c (_initialize_thread): Likewise.
d72314c6 518
5b68030f
JM
5192008-07-25 Joseph Myers <joseph@codesourcery.com>
520
521 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
522 128-bit long doubles in even-odd pairs of FPRs. Do not
523 right-align float arguments for big-endian.
524 (mips_n32n64_return_value): Apply return value convention for
525 structs containing one or two floating-point values to soft-float
526 as well as hard-float. Handle 128-bit long doubles in such
527 structs.
528 (mips_o32_push_dummy_call): Only skip one integer register for a
529 float argument passed in an FPR.
530
383f836e
TT
5312008-07-25 Tom Tromey <tromey@redhat.com>
532
533 * tui/tui-hooks.c: Include observer.h.
534 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
535 Remove.
536 (tui_bp_created_observer, tui_bp_deleted_observer,
537 tui_bp_modified_observer): New globals.
538 (tui_install_hooks): Use observers, not events.
539 (tui_remove_hooks): Likewise.
540 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
541 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
542 globals.
543 (breakpoint_notify): Check mi_can_breakpoint_notify.
544 (breakpoint_hooks): Remove.
545 (mi_cmd_break_insert): Attach observers. Don't use events.
546 * tracepoint.c: Include observer.h, not gdb-events.h.
547 (tracepoint_operation, trace_pass_command): Notify observer.
548 * interps.c: Don't include gdb-events.h.
549 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
550 * gdbarch.c: Rebuild.
551 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
552 (deprecated_current_gdbarch_select_hack): Notify observer.
553 * breakpoint.h: Don't include gdb-events.h.
554 * breakpoint.c: Don't include gdb-events.h.
555 (condition_command): Notify observer.
556 (commands_command): Likewise.
557 (commands_from_control_command): Likewise.
558 (mention, delete_breakpoint, set_ignore_count): Likewise.
559 (disable_breakpoint, do_enable_breakpoint): Likewise.
560 * Makefile.in (gdb_events_h): Remove.
561 (breakpoint_h): Update.
562 (COMMON_OBS): Remove gdb-events.o.
563 (gdb-events.o): Remove.
564 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
565 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
566 * gdb-events.c: Remove.
567 * gdb-events.h: Remove.
568 * gdb-events.sh: Remove.
569
60e569b9
PA
5702008-07-24 Pedro Alves <pedro@codesourcery.com>
571
572 * remote.c (remote_threads_extra_info): Don't query the remote
573 server about info on the internally added main thread.
574
a6a7f2a5
AR
5752008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
576
577 * nto-procfs.c (procfs_attach): Populate initial thread list.
578 (procfs_wait): Return new pid, built from the inferior status.
579
e63e4db2
TJB
5802008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
581
582 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
583 * configure: Regenerate.
584
14ef7606
AR
5852008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
586
587 * nto-procfs.c (procfs_xfer_memory): Changed signature.
588 (procfs_resume): Workaround for dereferencing type-punned pointer
589 warning.
f1648876 590 * nto-tdep.c (nto_parse_redirection): Change signature to be const
14ef7606
AR
591 correct.
592 * nto-tdep.h (nto_parse_redirection): Likewise.
593
cfd8ab24
SS
5942008-07-21 Stan Shebs <stan@codesourcery.com>
595
596 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
597 * gdbarch.sh: Adjust comment to refer to
598 in_solib_dynsym_resolve_code().
599 * gdbarch.h, gdbarch.c: Update.
600 * solib-osf.c: Ditto.
601 * infrun.c: Ditto.
602 (handle_inferior_event): Use in_solib_dynsym_resolve_code
603 unconditionally.
604 * config/mips/nm-irix5.h: Remove undef of
605 IN_SOLIB_DYNSYM_RESOLVE_CODE.
606
781b42b0
TT
6072008-07-21 Tom Tromey <tromey@redhat.com>
608
609 * symfile.c (reread_symbols): Don't pass argument to observer.
610 * exec.c (exec_file_attach): Don't pass argument to observer.
611 * ada-lang.c (ada_executable_changed_observer): Remove argument.
612 * symtab.c (symtab_observer_executable_changed): Remove argument.
613 * observer.sh: Handle functions with no arguments.
614
a366c65a 6152008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
f1648876 616 Chris Demetriou <cgd@google.com>
a366c65a
CD
617
618 * elfread.c (elf_symfile_segments): Fix the check that each loadable
619 section fits within an ELF segment to handle ELF segments that hit
620 the end of the address space.
621
073d253f
CD
6222008-07-20 Chris Demetriou <cgd@google.com>
623
624 * MAINTAINERS (Write After Approval): Add self.
625
d7d9f01e
TT
6262008-07-18 Tom Tromey <tromey@redhat.com>
627
628 PR gdb/855:
629 * NEWS: Add entry for macro commands.
630 * Makefile.in (macrocmd.o): Add gdb_string.h.
631 * macroscope.h (user_macro_scope): Declare.
632 (default_macro_scope): Update documentation.
633 (macro_user_macros): Declare.
634 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
635 Use user_macro_scope.
636 (null_macro_lookup): Remove.
637 * macrotab.h (macro_callback_fn): Declare.
638 (macro_for_each): Likewise.
639 (macro_allow_redefinitions): Likewise.
640 * macrotab.c (foreach_macro): New function
641 (macro_for_each): Likewise.
642 (struct macro_table) <redef_ok>: New field.
643 (macro_allow_redefinitions): New function.
644 (new_macro_table): Update.
645 (macro_define_function): Likewise.
646 (macro_define_object): Likewise.
647 * macroscope.c (user_macro_scope): New function.
648 (default_macro_scope): Use it.
649 (macro_user_macros): New global.
650 (standard_macro_lookup): Look in macro_user_macros.
651 (_initialize_macroscope): New function.
652 * macroexp.h (macro_is_whitespace, macro_is_digit,
653 macro_is_identifier_nondigit): Declare.
654 * macroexp.c (macro_is_whitespace): Rename. No longer static.
655 (macro_is_digit): Likewise.
656 (macro_is_identifier_nondigit): Likewise.
657 (get_identifier): Update.
658 (get_pp_number): Likewise.
659 (get_token): Likewise.
660 * macrocmd.c (skip_ws): New function.
661 (extract_identifier): Likewise.
662 (free_macro_definition_ptr): Likewise.
663 (user_macros): Remove.
664 (macro_define_command): Implement.
665 (_initialize_macrocmd): Update.
666 (macro_undef_command): Implement.
667 (print_one_macro): New function.
668 (macro_list_command): Implement.
669
0f72fb1c
JM
6702008-07-18 Joseph Myers <joseph@codesourcery.com>
671
672 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
673 in BFD ELF check.
674 * configure: Regenerate.
675
7c6467a4
PP
6762008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
677
678 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
679
680b56ce
AS
6802008-07-15 Andreas Schwab <schwab@suse.de>
681
682 * valops.c (value_cast_pointers): Follow typedefs when checking
683 result of coercion.
684
7f0df278
DJ
6852008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
686
687 * block.c (block_function): Renamed to ...
688 (block_linkage_function): ... this. All callers changed.
689 * block.h (block_function): Renamed to ...
690 (block_linkage_function): ... this.
691
ba2c6aec
DJ
6922008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
693
694 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
695
d56907c1
DJ
6962008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
697
698 * frame.c (frame_sp_unwind): Delete.
699 (get_frame_sp): Do not use it.
700 * frame.h (frame_sp_unwind): Delete prototype.
701
f92aeb88
DJ
7022008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
703
704 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
705
ad1193e7
DJ
7062008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
707
708 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
709 * frame.c (frame_unwind_address_in_block): Delete.
710 (get_frame_address_in_block): Do not use it. Check the type
711 of the next frame first.
712 (frame_cleanup_after_sniffer): Update comment.
713 * frame.h (frame_unwind_address_in_block): Delete prototype.
714 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
715
ef02daa9
DJ
7162008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
717
718 * frame.c (frame_func_unwind): Delete.
719 (get_frame_func): Do not use it.
720 * frame.h (frame_func_unwind): Delete prototype.
721 * hppa-tdep.c (hppa_frame_cache): Update comment.
722 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
723
96e32df8
SS
7242008-07-14 Stan Shebs <stan@codesourcery.com>
725
726 * remote-sim.c (init_gdbsim_ops): Remove
727 TARGET_REDEFINE_DEFAULT_OPS.
728
ab8650a3
DJ
7292008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
730
731 * findvar.c (read_var_value): Remove unused variable.
732
8c90c137
LM
7332008-07-15 Luis Machado <luisgpm@br.ibm.com>
734
735 * infrun.c (handle_inferior_event): Tag threads as stopped
736 before inserting breakpoints.
737
4098af0f
HZ
7382008-07-15 Hui Zhu <teawater@gmail.com>
739
740 * MAINTAINERS: Added myself to section Write After Approval.
741
7093c834
PP
7422008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
743
744 PR gdb/2477
745 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
680b56ce 746
56514771
PA
7472008-07-14 Pedro Alves <pedro@codesourcery.com>
748
749 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
750 (i386_dicos_push_dummy_code): New.
751 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
752 Register i386_dicos_push_dummy_code.
753
74ed0bb4
MD
7542008-07-14 Markus Deuling <deuling@de.ibm.com>
755
756 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
757 (mips_n32n64_push_dummy_call, mips_o64_return_value)
758 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
759
760 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
761 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
762 (mips_n32n64_fp_arg_chunk_p): Update caller.
763
764 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
765 (mips_n32n64_push_dummy_call): Update caller.
766
767 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
768 current_gdbarch.
769 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
770 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
771
772
773 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
774 current_gdbarch.
775 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
776 (mips_o64_push_dummy_call): Update caller.
777
778 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
779 (fp_register_arg_p, mips_dump_tdep): Update caller.
780
781 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
782 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
783
784 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
785 current_gdbarch.
786 (mips32_scan_prologue): Update caller.
787
788 (heuristic_proc_start): Add gdbarch as parameter. Replace
789 current_gdbarch.
790 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
791
792 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
793 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
794 the current architecture. Update call to getregs_supplies.
795 (getregs_supplies): Add gdbarch as parameter and replace
796 current_gdbarch.
797
798 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
799 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
800 NBSD_MIPS_JB_ELEMENT_SIZE.
801 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
802 replace current_gdbarch.
803
804 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
805 current_gdbarch.
806 (mips_fetch_registers, mips_store_registers): Update call
807 to mips_map_regno.
808 (mips_load): Use get_regcache_arch to get at the current_architecture
809 and replace current_gdbarch.
810
0c501536
PA
8112008-07-13 Pedro Alves <pedro@codesourcery.com>
812
813 * thread.c (restore_selected_frame): On fail to restore, select
814 the innermost frame, and don't crash when warning the user.
815
db009c8a
JB
8162008-07-13 Hui Zhu <teawater@gmail.com>
817
818 * symtab.c (expand_line_sal): Fix a memory leak.
819
0ffe5012
PA
8202008-07-13 Pedro Alves <pedro@codesourcery.com>
821
822 * utils.c (struct continuation): Define as inheriting struct
823 cleanup.
824 (add_continuation, do_all_continuations)
825 (discard_all_continuations, add_intermediate_continuation)
826 (do_all_intermediate_continuations)
827 (discard_all_intermediate_continuations): Adjust.
828
dbba8251
VP
8292008-07-13 Vladimir Prus <vladimir@codesourcery.com>
830
831 Skip varobj in running threads.
680b56ce
AS
832 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
833 thread is not stopped, skip the varobj.
834 * Makefile.in: Update dependencies.
dbba8251 835
e3d6cd5f
VP
8362008-07-13 Vladimir Prus <vladimir@codesourcery.com>
837
838 Enable all commands while inferiour is running
680b56ce
AS
839 * mi/mi-main.c (mi_cmd_execute): Don't check if
840 inferiour is executing.
e3d6cd5f 841
b10a37b1
VP
8422008-07-13 Vladimir Prus <vladimir@codesourcery.com>
843
844 Allow all CLI command even if target is executing.
680b56ce
AS
845 * gdb/top.c (execute_command_1): Don't check if the inferiour
846 is running.
b10a37b1 847
ea069267
VP
8482008-07-13 Vladimir Prus <vladimir@codesourcery.com>
849
850 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
851 Fix printing of frame, when frame is wrong.
852
cdc9523a
UW
8532008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
854
855 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
856 backchain is unreadable.
857
d5b25491
UW
8582008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
859
860 * spu-linux-nat.c: Include "gdbthread.h".
861 (spu_child_post_startup_inferior): Register main thread.
862 (spu_child_post_attach): Likewise.
863 * Makefile.in (spu-linux-nat.o): Update dependencies.
864
604ead4a
PA
8652008-07-12 Pedro Alves <pedro@codesourcery.com>
866
867 Rewrite continuations internals on top of cleanups and plug
868 continuation arguments leaks.
869
870 * defs.h (struct continuation): Make it opaque.
871 (add_continuation, add_intermediate_continuation): Drop the int
872 argument of the continuation hook argument. Add
873 continuation_free_args argument.
874 (do_all_continuations, do_all_intermediate_continuations): Drop
875 the error_p argument.
876
877 * utils.c (add_continuation): Drop the int argument of the
878 continuation hook argument. Add continuation_free_args argument.
879 Reimplement on top of cleanups.
880 (do_all_continuations): Drop error argument. Reimplement on top
881 of cleanups.
882 (discard_all_continuations): Reimplement on top of cleanups.
883 (add_intermediate_continuation): Drop the int argument of the
884 continuation hook argument. Add continuation_free_args argument.
885 Reimplement on top of cleanups.
886 (do_all_intermediate_continuations): Drop error argument.
887 Reimplement on top of cleanups.
888 (discard_all_intermediate_continuations): Reimplement on top of
889 cleanups.
890
891 * breakpoint.c (until_break_command_continuation): Drop error
892 argument. Add xfree as continuation argument deleter.
893
894 * inf-loop.c (inferior_event_handler): On error, discard all
895 continuations. Adjust to new do_all_intermediate_continuations
896 and do_all_continuations interfaces.
897
898 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
899 Pass xfree as continuation argument deleter.
900 (finish_command_continuation): Drop error_p argument. Adjust.
901 (finish_command_continuation_free_arg): New.
902 (finish_command): Pass finish_command_continuation_free_arg as
903 continuation argument deleter. Adjust to new do_all_continuations
904 interfaces.
905 (attach_command_continuation): Drop error_p argument.
906 (attach_command_continuation_free_args): New.
907 (attach_command): Pass attach_command_continuation_free_args as
908 continuation argument deleter.
909
910 * interps.c (interp_set): Adjust to new do_all_continuations
911 interfaces.
912
913 * event-top.c (stdin_event_handler): In error, also discard the
914 intermediate continuations.
915
bfec99b2
PA
9162008-07-12 Pedro Alves <pedro@codesourcery.com>
917
918 Replace struct continuation_args by void* and per command structs.
919
920 * top.c (execute_command): Remove unused arg1 and arg2 locals.
921
922 * breakpoint.c (struct until_break_command_continuation_args):
923 New.
924 (until_break_command_continuation): Take a void* instead of a
925 continuations_arg. Adjust.
926 (until_break_command): Adjust to use struct
927 until_break_command_continuation_args instead of struct
928 continuation_arg.
929
930 * infcmd.c (struct step_1_continuation_args): New.
931 (step_1_continuation): Take a void* instead of a
932 continuations_arg. Adjust to use struct step_1_continuation_args.
933 (step_once): Adjust to use struct step_1_continuation_args.
934
935 (struct finish_command_continuation_args): New.
936 (finish_command_continuation): Take a void* instead of a
937 continuations_arg. Adjust to use struct
938 finish_command_continuation_args.
939 (finish_command): Adjust to use struct
940 finish_command_continuation_args.
941 (struct attach_command_continuation_args): New.
942 (attach_command_continuation): Take a void* instead of a
943 continuations_arg. Adjust to use struct
944 attach_command_continuation_args.
945 (attach_command): Adjust to use struct
946 attach_command_continuation_args.
947
948 * defs.h (struct continuation_arg): Delete.
949 (struct continuation): Replace the struct continuation_arg*
950 parameter of continuation_hook by a void*. Replace "arg_list"
951 member by a new "args" member with void* type.
952 (add_continuation, add_intermediate_continuation): Replace struct
953 continuation_arg type usages by void* usages.
954
955 * utils.c (add_continuation, do_all_continuations)
956 (add_intermediate_continuation)
957 (do_all_intermediate_continuations): Replace struct
958 continuation_arg type usages by void* usages. Pass "args" instead
959 of "arg_list".
960
2afb61aa
PA
9612008-07-12 Pedro Alves <pedro@codesourcery.com>
962
963 * infrun.c (struct thread_stepping_state): Delete sal member.
964 (init_thread_stepping_state): Add local sal. Use it instead of
965 tss->sal.
966 (handle_inferior_event): New local stop_pc_sal. Use it instead of
967 tss->sal.
968 (step_into_function): Add local stop_func_sal. Use it instead of
969 tss->sal.
970
77ebaa5a
VP
9712008-07-12 Vladimir Prus <vladimir@codesourcery.com>
972
973 Implement -exec-continue/-exec-interrupt --all.
680b56ce
AS
974 * infcmd.c (continue_1): New, extracted from
975 (continue_command): ...here.
976 (interrupt_target_1): New, extracted from
977 (interrupt_target_command): ...here.
978 * inferior.h (continue_1, interrupt_target_1): New.
979 * mi/mi-main.c (mi_cmd_exec_continue)
980 (mi_cmd_exec_interrupt): Handle --all.
77ebaa5a 981
1e92afda
VP
9822008-07-12 Vladimir Prus <vladimir@codesourcery.com>
983
984 Implement --thread and --frame.
985 * gdbthread.h (find_thread_id): Declare.
680b56ce
AS
986 * thread.c (find_thread_id): Make non-static.
987 * mi/mi-main.c (mi_cmd_execute): Switch to the right
988 thread and frame, if necessary.
989 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
990 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
1e92afda 991
d56b7306
VP
9922008-07-12 Vladimir Prus <vladimir@codesourcery.com>
993
994 * infrun.c (resume): Discard cleanups on early exit path.
995
b1a268e5
VP
9962008-07-12 Vladimir Prus <vladimir@codesourcery.com>
997
680b56ce 998 * infrun.c (normal_stop): For MI, report which threads
b1a268e5
VP
999 were stopped.
1000
90139f7d
VP
10012008-07-12 Vladimir Prus <vladimir@codesourcery.com>
1002
1003 Report thread state in -thread-info output.
680b56ce 1004 * thread.c (print_thread_info): Add new field "state".
90139f7d 1005
a0d21d28
PA
10062008-07-11 Pedro Alves <pedro@codesourcery.com>
1007
1008 * infrun.c (handle_inferior_event): Also ignore a
1009 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
1010
14032a66
TT
10112008-07-11 Tom Tromey <tromey@redhat.com>
1012
1013 * completer.c (complete_line_internal): New function, from
1014 complete_line. Add 'for_help' parameter.
1015 (complete_line): Use it.
1016 (command_completer): Move later. Rewrite.
1017
65fc9b77
PA
10182008-07-11 Pedro Alves <pedro@codesourcery.com>
1019
1020 * thread.c (thread_apply_command): Move making the cleanup out of
1021 the loop.
1022
4f8d22e3
PA
10232008-07-11 Pedro Alves <pedro@codesourcery.com>
1024
1025 Exited threads.
1026
1027 * thread.c (enum thread_state): New.
1028 (thread_state main_thread_running): Delete, in favor of...
1029 (thread_state main_thread_state): ... this. Update throughout.
1030 (clear_thread_inferior_resources): New, split from free_thread.
1031 (free_thread): Call clear_thread_inferior_resources.
1032 (init_thread_list): Set main thread to stopped state.
1033 (add_thread_silent): Take care of PTID reuses.
1034 (delete_thread): If deleting inferior_ptid or a thread with
1035 refcount > 0, mark it as exited, but still keep it in the list.
1036 Only notify of thread exits, if we haven't done so yet.
1037 (iterate_over_threads): Make it safe to delete threads while
1038 iterating over them.
1039 (do_captured_list_thread_ids): Don't account for exited threads.
1040 (thread_alive): Check for the THREAD_EXITED state, and don't set
1041 ptid to -1 on exited threads.
1042 (set_running): Update to account for extra possible states.
1043 (is_thread_state): New.
1044 (is_stopped, is_exited): New.
1045 (is_running): Implement in terms of is_thread_state.
1046 (any_running): Update.
1047 (print_thread_info): Update. Account for exited threads. Don't
1048 warn about missed frame restoring here, its done in the cleanup.
1049 (switch_to_thread): Don't read from a thread that has gone.
1050 (restore_current_thread): In non-stop mode, do a full context
1051 switch.
1052 (restore_selected_frame): Add a frame_level argument. Rewrite.
1053 (struct current_thread_cleanup): Add selected_frame_level and
1054 was_stopped members.
1055 (do_restore_current_thread_cleanup): Check if thread was stopped
1056 and still is, and if the target has registers, stack and memory
1057 before restoring the selected frame. Don't delete the cleanup
1058 argument here.
1059 (restore_current_thread_cleanup_dtor): New.
1060 (make_cleanup_restore_current_thread): Remove all arguments.
1061 Rewrite.
1062 (thread_apply_all_command): Update. Prune threads.
1063 (thread_apply_command): Update.
1064 (thread_command): Account for currently selected exited thread.
1065 (do_captured_thread_select): Check for a running thread. Prune
1066 threads.
1067 (_initialize_thread): Make "info threads", "thread", "thread
1068 apply", and "thread apply all" appliable without a selected thread.
1069 * gdbthread.h (struct thread_info): Replace running_ by state_.
1070 Add refcount.
1071 (is_exited, is_stopped): Declare.
1072 (make_cleanup_restore_current_thread): Remove all arguments.
1073 * infrun.c: Include "event-top.h".
1074 (fetch_inferior_event): In non-stop mode, restore selected thread
1075 and frame after handling the event and running breakpoint
1076 commands. Display GDB prompt if needed.
1077 (normal_stop): In non-stop mode, don't print thread switching
1078 notice.
1079 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
1080 (get_cmd_no_selected_thread_ok): New.
1081 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
1082 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
1083 Declare.
1084 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
1085 no-selected-thread ok.
1086 * top.c (execute_command): Check for non no-selected-thread-ok
1087 commands.
1088 * linux-nat.c (struct saved_ptids, threads_to_delete)
1089 (record_dead_thread, prune_lwps): Delete.
1090 (exit_lwp): Unconditionally delete thread.
1091 (linux_nat_resume): Remove prune_lwps call.
1092 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
1093 of is_running. Adjust to make_cleanup_restore_current_thread
1094 interface change.
1095 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
1096 selected thread has exited.
1097 * inf-loop.c (inferior_event_handler): Don't display the prompt
1098 here.
1099 * varobj.c (c_value_of_root): Update.
1100 * defs.h (make_cleanup_dtor): Declare.
1101 * utils.c (make_cleanup_dtor): New.
1102
1103 * Makefile.in (infrun.o): Depend on $(event_top_h).
1104
8cae4b3f
PA
11052008-07-11 Pedro Alves <pedro@codesourcery.com>
1106
1107 Add "continue -a" and "interrupt -a" options for non-stop mode.
1108
1109 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
1110 (continue_command): Add "-a" option.
1111 (interrupt_target_command): Add "-a" option.
1112 (_initialize_infcmd): Add extend help of continue and interrupt
1113 command to mention the new "-a" option. Mark "continue" async ok.
1114
bf250677
DE
11152008-07-10 Doug Evans <dje@google.com>
1116
1117 Add "set print symbol-loading on|off".
1118 * NEWS: Document new option.
1119 * symfile.h (print_symbol_loading): Declare.
1120 * symfile.c (print_symbol_loading): New global.
1121 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
1122 from ..." if print_symbol_loading.
1123 (_initialize_symfile): Add set/show print symbol-loading.
1124 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
1125 if print_symbol_loading.
1126
4c28f408
PA
11272008-07-10 Pedro Alves <pedro@codesourcery.com>
1128
1129 Non-stop linux native.
1130
1131 * linux-nat.c (linux_test_for_tracefork): Block events while we're
1132 here.
1133 (get_pending_status): Implement non-stop mode.
1134 (linux_nat_detach): Stop threads before detaching.
1135 (linux_nat_resume): In non-stop mode, always resume only a single
1136 PTID.
1137 (linux_handle_extended_wait): On a clone event, in non-stop mode,
1138 add new lwp to GDB's thread table, and mark as running, executing
1139 and stopped appropriately.
1140 (linux_nat_filter_event): Don't assume there are other running
1141 threads when a thread exits.
1142 (linux_nat_wait): Mark the main thread as running and executing.
1143 In non-stop mode, don't stop all lwps.
1144 (linux_nat_kill): Stop lwps before killing them.
1145 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
1146 alive.
1147 (send_sigint_callback): New.
1148 (linux_nat_stop): New.
1149 (linux_nat_add_target): Set to_stop to linux_nat_stop.
1150
1151 * linux-nat.h (thread_db_attach_lwp): Declare.
1152
1153 * linux-thread-db.c (thread_get_info_callback): Check for new
1154 threads if we have none.
1155 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
1156 stopped lwp. Check for new threads if we have none.
1157 (thread_db_attach_lwp): New.
1158 (thread_db_init): Set proc_handle.pid to inferior_ptid.
1159 (check_event): Set proc_handle.pid to the stopped lwp.
1160 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
1161 lwp available, bail out if there is none.
1162
1163 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
1164 PTRACE_KILL.
1165
0aef6ba2
KB
11662008-07-10 Kevin Buettner <kevinb@redhat.com>
1167
a4fafde3
KB
1168 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
1169 `current_pc' from CORE_ADDR to ULONGEST.
1170
0aef6ba2
KB
1171 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
1172 gdbsim_stop().
1173
10568435
JK
11742008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1175
1176 * NEWS (New commands): Mention "set disable-randomization".
1177 * configure.ac: Add check for HAVE_PERSONALITY and
1178 HAVE_DECL_ADDR_NO_RANDOMIZE.
1179 * configure, config.in: Regenerate.
1180 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
1181 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
1182 ADDR_NO_RANDOMIZE.
1183 (disable_randomization, show_disable_randomization)
1184 (set_disable_randomization): New.
1185 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
1186 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
1187 variable DISABLE_RANDOMIZATION.
1188 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
1189 DISABLE_RANDOMIZATION.
1190
f9c72d52
PA
11912008-07-09 Pedro Alves <pedro@codesourcery.com>
1192
1193 Adjust all targets to new target_stop interface.
1194
1195 * gnu-nat.c (gnu_stop): Add ptid argument.
1196 * go32-nat.c (go32_stop): Add ptid argument.
1197 (go32_create_inferior): Pass inferior_ptid to go32_stop.
1198 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
1199 * monitor.c (monitor_stop): Add ptid argument.
1200 (monitor_open): Pass inferior_ptid to monitor_stop.
1201 (monitor_interrupt): Pass inferior_ptid to target_stop.
1202 (monitor_stop): Add ptid argument.
1203 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
1204 (procfs_create_inferior): Add ptid argument.
1205 * procfs.c (procfs_stop): Add ptid argument.
1206 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
1207 * remote-sim.c (gdbsim_stop): Add ptid argument.
1208 * sol-thread.c (sol_thread_stop): Add ptid argument.
1209 * win32-nat.c (win32_stop): Add ptid argument.
1210
94cc34af
PA
12112008-07-09 Pedro Alves <pedro@codesourcery.com>
1212
1213 Non-stop inferior control.
1214
1215 * infrun.c (resume): In non-stop mode, always resume just one
1216 thread.
1217 (proceed): Don't call prepare_to_proceed in non-stop mode.
1218 (fetch_inferior_event): In non-stop mode, switch context before
1219 handling the event.
1220 (error_is_running, ensure_not_running): New.
1221 (handle_inferior_event): In non-stop mode: Mark only the event
1222 thread as stopped. Require that the target module manages adding
1223 threads to the thread list. Assert that there isn't a
1224 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
1225 (normal_stop): Only mark not-running if inferior hasn't exited.
1226 In non-stop mode, only mark the event thread.
1227
1228 * thread.c:Include "cli/cli-decode.h".
1229 (print_thread_info): Don't read from a running thread.
1230 Output "(running)" if thread is running.
1231 (switch_to_thread): Don't read stop_pc if thread is executing.
1232 (do_restore_current_thread_cleanup): Don't write to a running
1233 thread.
1234 (thread_apply_all_command): Don't read from a running thread. In
1235 non-stop mode, do a full context-switch instead of just switching
1236 threads.
1237 (thread_apply_command): In non-stop mode, do a full context-switch
1238 instead of just switching threads.
1239 (do_captured_thread_select): Likewise. Inform user if selected
1240 thread is running.
1241 (_initialize_thread): Mark "info threads" and "thread" and
1242 async_ok.
1243
1244 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
1245 unregister the target from the event loop.
1246
1247 * infcmd.c (continue_command, step_1, jump_command)
1248 (signal_command): Ensure the selected thread isn't running.
1249 (interrupt_target_command): In non-stop mode, interrupt only the
1250 selected thread.
1251
1252 * inferior.h (error_is_running, ensure_not_running): Declare.
1253
1254 * target.h (struct target_ops): Add ptid argument to the to_stop
1255 member.
1256 (target_stop): Add ptid_t argument.
1257
1258 * target.c (update_current_target): Add ptid argument to to_stop's
1259 type.
1260 (debug_to_stop): Add ptid_t argument.
1261 (debug_to_rcmd): Set to_stop_ptid.
1262
1263 * remote.c (remote_stop): Add ptid_t argument.
1264 (async_remote_interrupt): Add inferior_ptid to target_stop.
1265 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
1266
1267 * Makefile.in (thread.o): Depend on $(cli_decode_h).
1268
59f0d5d9
PA
12692008-07-09 Pedro Alves <pedro@codesourcery.com>
1270
1271 Don't rely on ecs->wait_for_more.
1272
1273 * infrun.c (proceed): Clear the stepping state, set
1274 previous_inferior_ptid and clear infwait state.
1275 (wait_for_inferior): Don't clear the stepping state, set
1276 previous_inferior_ptid, or clear the infwait state here.
1277 (fetch_inferior_event): Don't clear the stepping state, set
1278 previous_inferior_ptid, or clear the infwait state here. Don't
1279 condition on wait_for_more.
1280
0d1e5fa7
PA
12812008-07-09 Pedro Alves <pedro@codesourcery.com>
1282
1283 Refactor infrun a bit.
1284
1285 * infrun.c (currently_stepping): Take a struct
1286 thread_stepping_state instead of an execution_control_state.
1287 (struct thread_stepping_state): New, split from
1288 execution_control_state.
1289 (gtss, tss): New globals.
1290 (proceed): Clear the stepping state, set previous_inferior_ptid
1291 and clear infwait state.
1292 (init_wait_for_inferior): Clear the stepping state,
1293 previous_inferior_ptid and infwait state.
1294 (waiton_ptid, infwait_state): New, split from
1295 execution_control_state.
1296 (struct execution_control_state): Members that persist through
1297 events moved out to either struct thred_stepping_state or made
1298 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
1299 (wait_for_inferior, fetch_inferior_event): Use local
1300 execution_control_state. Update to execution_control_state split.
1301 (init_execution_control_state): Adjust.
1302 (init_thread_stepping_state): New, extracted from
1303 init_execution_control_state.
1304 (context_switch): Take a ptid instead of an
1305 execution_control_state.
1306 (context_switch_to): Adjust.
1307 (adjust_pc_after_break): Adjust.
1308 (init_infwait_state): New.
1309 (handle_inferior_event): Adjust.
1310
a474d7c2
PA
13112008-07-09 Pedro Alves <pedro@codesourcery.com>
1312 Vladimir Prus <vladimir@codesourcery.com>
1313
1314 Per-thread commands.
1315
1316 * gdbthread.h: Remove unneeded forward declarations.
1317 Include "inferior.h".
1318 (struct thread_info): Add continuations,
1319 intermediate_continuations, proceed_to_finish, step_over_calls,
1320 stop_step, step_multi and stop_signal members.
1321 (save_infrun_state): Add continuations,
1322 intermediate_continuations, proceed_to_finish, step_over_calls,
1323 stop_step, step_multi, stop_signal and stop_bpstat parameters.
1324 (load_infrun_state): Add continuations,
1325 intermediate_continuations, proceed_to_finish, step_over_calls,
1326 stop_step, step_multi, stop_signal and stop_bpstat parameters.
1327
1328 * thread.c (load_infrun_state): In non-stop mode, load
1329 continuations, intermediate_continuations, proceed_to_finish,
1330 step_over_calls, stop_step, step_multi and stop_signal.
1331 (save_infrun_state): Store continuations,
1332 intermediate_continuations, proceed_to_finish, step_over_calls,
1333 stop_step, step_multi, stop_signal and stop_bpstat.
1334 (save_infrun_state): Store continuations,
1335 intermediate_continuations, proceed_to_finish, step_over_calls,
1336 stop_step, step_multi, stop_signal and stop_bpstat.
1337 (free_thread): Clear The thread's stop_bpstat.
1338
1339 * inferior.h (context_switch_to): Declare.
1340
1341 * infrun.c (ecss): New global.
1342 (context_switch): Context switch continuations,
1343 intermediate_continuations, proceed_to_finish, step_over_calls,
1344 stop_step, step_multi, stop_signal and stop_bpstat.
1345 (wait_for_inferior): Use global ecss.
1346 (async_ecss, async_ecs): Delete.
1347 (fetch_inferior_event): Use global ecss.
1348 (context_switch_to): New.
1349
1350 * top.c (execute_command): In non-stop, only check if the current
1351 thread is running, in all-stop, check if there's any thread
1352 running.
1353
1354 * breakpoint.c (bpstat_remove_breakpoint): New.
1355 (bpstat_remove_breakpoint_callback): New.
1356 (delete_breakpoint): Clear the stop_bpstats of all threads.
1357
1358 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
1359 current thread is running, in all-stop, check if there's any
1360 thread running.
1361
1362 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
1363
ad52ddc6
PA
13642008-07-09 Pedro Alves <pedro@codesourcery.com>
1365
1366 Add non_stop global.
1367
1368 * inferior.h (non_stop): Declare.
1369 * infrun.c (non_stop, non_stop_1): New.
1370 (set_non_stop, show_non_stop): New.
1371 (_initialize_infrun): Add "set/show non-stop" command.
1372
3a3e9ee3
PA
13732008-07-09 Pedro Alves <pedro@codesourcery.com>
1374
1375 Adjust fork/vfork/exec to pass ptids around.
1376
1377 * target.h (struct target_waitstatus): Store related_pid as a ptid.
1378 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
1379 Take a ptid_t.
1380 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
1381 type to ptid.
1382 * breakpoint.c (print_it_typical, bpstat_check_location)
1383 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
1384 (create_fork_vfork_event_catchpoint): Adjust.
1385 * infrun.c (fork_event): Change parent_pid and child_pid types to
1386 ptid.
1387 (follow_exec, inferior_has_forked, inferior_has_vforked)
1388 (inferior_has_execd): Take a ptid_t and don't trim it.
1389 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
1390 * linux-nat.c (linux_child_follow_fork): Adjust.
1391 * inf-ptrace.c (inf_ptrace_wait): Adjust.
1392 * inf-ttrace.c (inf_ttrace_wait): Adjust.
1393 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
1394
8ea051c5
PA
13952008-07-09 Pedro Alves <pedro@codesourcery.com>
1396
1397 Add "executing" property to threads.
1398
1399 * inferior.h (target_executing): Delete.
1400 * gdbthread.h (struct thread_info): Add executing_ field.
1401 (set_executing, is_executing): New.
1402 * thread.c (main_thread_executing): New.
1403 (init_thread_list): Clear it and also main_thread_running.
1404 (is_running): Return false if target has no execution.
1405 (any_running, is_executing, set_executing): New.
1406
1407 * top.c: Include "gdbthread.h".
1408 (target_executing): Delete.
1409 (execute_command): Replace target_executing check by any_running.
1410 * event-top.c: Include "gdbthread.h".
1411 (display_gdb_prompt, command_handler): Replace target_executing by
1412 is_running.
1413 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
1414 here. Replace target_executing by is_running.
1415 * infrun.c (handle_inferior_event): Mark all threads as
1416 not-executing.
1417 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
1418 here.
1419 * stack.c (get_selected_block): Return null if inferior is
1420 executing.
1421 * target.c (target_resume): Mark resumed ptid as executing.
1422 * breakpoint.c (until_break_command): Replace target_executing
1423 check by is_executing.
1424 * remote.c (remote_async_resume): Don't mark inferior as executing
1425 here.
1426 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
1427 by any_running.
680b56ce 1428
8ea051c5
PA
1429 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
1430 (mi_execute_async_cli_command): Replace target_executing by
1431 is_running.
1432
1433 * frame.c (get_current_frame): Error out if the current thread is
1434 executing.
1435 (has_stack_frames): New.
1436 (get_selected_frame, deprecated_safe_get_selected_frame): Check
1437 has_stack_frames.
680b56ce 1438
8ea051c5
PA
1439 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
1440 $(gdbthread_h).
1441
4487aabf
PA
14422008-07-09 Pedro Alves <pedro@codesourcery.com>
1443
1444 * symfile.c (load_command): Reopen the exec file and reread
1445 symbols before anything else.
1446
9de2bdd7
PA
14472008-07-09 Pedro Alves <pedro@codesourcery.com>
1448
1449 * remote-sim.c: Include gdbthread.h.
1450 (remote_sim_ptid): New global.
1451 (gdbsim_create_inferior): Silently add the main task to GDB's
1452 thread list.
1453 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
1454 task from GDB's thread list.
1455 (gdbsim_resume): Adjust to use remote_sim_ptid.
1456 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
1457 (init_gdbsim_ops): Register gdbsim_thread_alive and
1458 gdbsim_pid_to_str.
1459 (_initialize_remote_sim): Initialize remote_sim_ptid.
1460 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
1461
5e0b29c1
PA
14622008-07-09 Pedro Alves <pedro@codesourcery.com>
1463
1464 * monitor (monitor_ptid): New global.
1465 (monitor_open): Silently add the main task to GDB's thread list.
1466 (monitor_close, monitor_mourn_inferior): Silently delete the main
1467 task from GDB's thread list.
1468 (monitor_thread_alive, monitor_pid_to_str): New.
1469 (init_base_monitor_ops): Register monitor_thread_alive and
1470 monitor_pid_to_str.
1471 (_initialize_remote_monitors): Initialize monitor_ptid.
1472
1473 * gdbthread.h (delete_thread_silent): Declare.
1474 * thread.c (delete_thread): Rename to ...
1475 (delete_thread_1): ... this. Add "silent" parameter. If silent,
1476 don't do exit notifications.
1477 (delete_thread, delete_thread_silent): New, as wrappers to
1478 delete_thread_1.
1479
b60e7edf
PA
14802008-07-08 Pedro Alves <pedro@codesourcery.com>
1481
1482 * breakpoint.c (update_global_location_list): Add boolean
1483 "should_insert" argument. Only insert locations if caller told it
1484 too.
1485 (update_global_location_list_nothrow): Add boolean "should_insert"
1486 argument. Pass it to update_global_location_list.
1487 (insert_breakpoints, create_longjmp_breakpoint)
1488 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
1489 (create_thread_event_breakpoint, create_solib_event_breakpoint)
1490 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
1491 (enable_watchpoints_after_interactive_call_stop)
1492 (set_momentary_breakpoint, create_breakpoints)
1493 (break_command_really, watch_command_1)
1494 (create_ada_exception_breakpoint, update_breakpoint_locations)
1495 (do_enable_breakpoint, enable_command): Pass true to
1496 update_global_location_list.
1497 (bpstat_stop_status, disable_overlay_breakpoints)
1498 (disable_watchpoints_before_interactive_call_start)
1499 (delete_breakpoint, disable_breakpoint, disable_command): Pass
1500 false to update_global_location_list.
1501 (update_breakpoints_after_exec): Don't temporarily disable
1502 always-inserted mode.
1503
25b22b0a
PA
15042008-07-08 Pedro Alves <pedro@codesourcery.com>
1505
1506 * breakpoint.c (mark_breakpoints_out): Make public.
1507 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
1508 here. Update comment.
1509 * breakpoint.h (mark_breakpoints_out): Declare.
1510
1511 * linux-nat.c (linux_handle_extended_wait): On
1512 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
1513 * inf-ttrace.c (inf_ttrace_wait): Likewise.
1514
cce9b6bf
PA
15152008-07-08 Pedro Alves <pedro@codesourcery.com>
1516
1517 * infrun.c (follow_exec): Reset shared libraries before adding the
1518 main exec file.
1519
3c3185ac
JK
15202008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1521
1522 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
1523
42f0bc8e
PA
15242008-07-07 Pedro Alves <pedro@codesourcery.com>
1525
1526 * i386-dicos-tdep.c: Include "inferior.h".
1527 (i386_dicos_frame_align): New.
1528 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
1529 dummy location ON_STACK.
1530 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
1531
b7292df3
JB
15322008-07-07 Joel Brobecker <brobecker@adacore.com>
1533
1534 * gstdint.h: New file.
1535
bb599c81
VP
15362008-07-05 Vladimir Prus <vladimir@codesourcery.com>
1537
1538 * mi/mi-interp.c (mi_on_resume): Don't try to report
1539 resumed thread it the thread list is empty.
1540
7f6a6314
PM
15412008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
1542
1543 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
1544 completer for set to filename_completer.
680b56ce 1545
7f6a6314
PM
1546 NEWS: Mention it.
1547
711eabed
VP
15482008-07-04 Vladimir Prus <vladimir@codesourcery.com>
1549
1550 Implement -target-attach.
680b56ce 1551 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
711eabed 1552
db3b9a10
MS
15532008-06-21 Hui Zhu <teawater@gmail.com>
1554
1555 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
1556
dc177b7a
PA
15572008-07-03 Pedro Alves <pedro@codesourcery.com>
1558
1559 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
1560 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
1561
1562 * target.h (struct target_ops): Add to_attach_no_wait member.
1563 (target_attach_no_wait): New.
1564 * target.c (update_current_target): Inherit to_attach_no_wait.
1565
1566 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
1567 target_attach_no_wait runtime check.
1568
1569 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
1570 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
1571 win32_ops.
1572
caac8896
PA
15732008-07-03 Pedro Alves <pedro@codesourcery.com>
1574
1575 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
1576 on debug_displaced being set.
1577
0d254d6f
DJ
15782008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
1579
1580 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
1581 directly instead of get_frame_id.
1582
f74c6cad
LM
15832008-06-30 Luis Machado <luisgpm@br.ibm.com>
1584
1585 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
1586 (deal_with_atomic_sequence): Update BC masks.
1587 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
1588 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
1589
395f2fc2
DJ
15902008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
1591
1592 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
1593 register, not the previous frame's.
1594
8340a3fb
LM
15952008-06-30 Luis Machado <luisgpm@br.ibm.com>
1596
1597 * source.c (select_source_symtab): Make sure we skip namespace
1598 symtabs when showing cpp source code.
1599
cfefc99a
HPN
16002008-06-30 Hans-Peter Nilsson <hp@axis.com>
1601
1602 * MAINTAINERS (Authorized committers): Fix my email address.
1603
1b98914a
VP
16042008-06-28 Vladimir Prus <vladimir@codesourcery.com>
1605
1606 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
1607 -target-download and -target-select via CLI, so that
1608 the quoting rules are the same as they were (unfortunately)
1609 in all prior gdb releases.
1610 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
1611 (mi_cmd_target_download, mi_cmd_target_select): Remove.
1612 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
1613 (mi_cmd_target_download, mi_cmd_target_select): Remove.
1614 (mi_cmd_execute): Set current_token even for commands
1615 routed via CLI.
1616
94afd7a6
UW
16172008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
1618
1619 * alphafbsd-tdep.c: Update for unwinder changes.
1620 * alpha-linux-tdep.c: Likewise.
1621 * alphanbsd-tdep.c: Likewise.
1622 * alphaobsd-tdep.c: Likewise.
1623 * avr-tdep.c: Likewise.
1624 * cris-tdep.c: Likewise.
1625 * frv-linux-tdep.c: Likewise.
1626 * frv-tdep.c: Likewise.
1627 * h8300-tdep.c: Likewise.
1628 * hppa-linux-tdep.c: Likewise.
1629 * iq2000-tdep.c: Likewise.
1630 * m32c-tdep.c: Likewise.
1631 * m32r-linux-tdep.c: Likewise.
1632 * m32r-tdep.c: Likewise.
1633 * m68hc11-tdep.c: Likewise.
1634 * mep-tdep.c: Likewise.
1635 * mn10300-tdep.c: Likewise.
1636 * mt-tdep.c: Likewise.
1637 * score-tdep.c: Likewise.
1638 * sh64-tdep.c: Likewise.
1639 * sh-tdep.c: Likewise.
1640 * sparc64fbsd-tdep.c: Likewise.
1641 * sparc64nbsd-tdep.c: Likewise.
1642 * sparc64obsd-tdep.c: Likewise.
1643 * v850-tdep.c: Likewise.
1644 * vaxobsd-tdep.c: Likewise.
1645 * vax-tdep.c: Likewise.
1646 * xstormy16-tdep.c: Likewise.
1647
e111d6c9
VP
16482008-06-28 Vladimir Prus <vladimir@codesourcery.com>
1649
1650 * mi/mi-main.c (enum captured_mi_execute_command_actions)
1651 (captured_mi_execute_command_args): Remove.
1652 (captured_mi_execute_command): Cast the closure to mi_parse
1653 pointer, not to captured_mi_execute_command_args, and don't
1654 set the action field thereof.
1655 (mi_execute_command): Pass struct mi_parse, not
1656 captured_mi_execute_command_args to captured_mi_execute_command.
1657 (mi_execute_command): Remove (dead) code for suppressing
1658 printing prompt.
1659
84e46146
PA
16602008-06-28 Pedro Alves <pedro@codesourcery.com>
1661
1662 * linux-nat.c (enum sigchld_state): New.
1663 (linux_nat_async_events_state): Renamed from
1664 linux_nat_async_events_enabled.
1665 (linux_nat_event_pipe_push, my_waitpid): Adjust.
1666 (sigchld_default_action): New.
1667 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
1668 unconditionally.
1669 (linux_nat_create_inferior): Set events state to sigchld_default
1670 state.
1671 (linux_nat_resume): Adjust.
1672 (linux_nat_wait): Call linux_nat_async_events unconditionally.
1673 (sigchld_handler): Adjust.
1674 (linux_nat_async_mask): Don't set SIGCHLD actions here.
1675 (get_pending_events): Adjust.
1676 (linux_nat_async_events): Rewrite to handle enum sigchld_state
1677 instead of a boolean.
1678 (linux_nat_async): Adjust.
1679 (_initialize_linux_nat): Capture default SIGCHLD action into
1680 sigchld_default_action.
1681
20874c92
VP
16822008-06-28 Vladimir Prus <vladimir@codesourcery.com>
1683
680b56ce
AS
1684 * breakpoint.c (moribund_locations): New.
1685 (bpstat_stop_status): Process moribund locations.
1686 (update_global_location_list): Add removed
1687 locations to moribund_locations.
1688 (breakpoint_retire_moribund): New.
1689 * breakpoint.h (struct bp_location): New field
1690 events_till_retirement.
1691 (breakpoint_retire_moribund): Declare.
1692 * thread.c (thread_count): New.
1693 * infrun.c (handle_inferior_event): Call
1694 breakpoint_retire_moribund.
1695 * gdbthread.h (thread_count): Declare.
20874c92 1696
cd0b43b1
JM
16972008-06-27 Joseph Myers <joseph@codesourcery.com>
1698
1699 * dfp.c (decimal_convert): Call match_endianness before and after
1700 conversion.
1701
7c0f6dcc
JL
17022008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
1703
1704 * remote.c (remote_insert_breakpoint): Ensure that if Z0
1705 unsupported and we fall back to memory_insert_breakpoint, we
1706 use the unmodified requested address.
1707
01c66ae6
JB
17082008-06-27 Joel Brobecker <brobecker@adacore.com>
1709
1710 * dwarf2read.c (read_attribute_value): Issue a complaint when
1711 adjusting size attribute values of 0xffffffff as zero.
1712
7ccc1c74
JM
17132008-06-27 Joseph Myers <joseph@codesourcery.com>
1714
1715 * i386-tdep.c (i386_16_byte_align_p): New.
1716 (i386_push_dummy_call): Determine stack space required for
1717 arguments going forwards allowing for 16-byte alignment, then push
1718 arguments going forwards.
1719
c0a2216e
PA
17202008-06-27 Pedro Alves <pedro@codesourcery.com>
1721
1722 * infrun.c (start_remote): Don't clear thread list here.
1723 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
1724 list here.
1725 * remote.c (record_currthread): Upgrade the main thread and its
1726 entry in the thread list if this is the first time we hear about
1727 threads.
1728 (remote_thread_alive): Consider magic_null_ptid or a ptid without
1729 a tid member always alive.
1730 (remote_find_new_threads): Don't update the main thread here.
1731 (remote_start_remote): Clear thread list here. Always add the
1732 main thread.
1733 (extended_remote_attach_1): Add the main thread here.
1734 (extended_remote_mourn_1): Re-add the main thread here.
1735 (extended_remote_create_inferior_1): Add a main thread.
1736
1737 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
1738
87b0e16e 17392008-06-27 Pedro Alves <pedro@codesourcery.com>
79d7f229
PA
1740
1741 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
1742
1743 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
1744 globals.
1745 (general_thread, continue_thread): Change type to ptid_t.
1746 (record_currthread): Take a ptid_t parameter instead of an
1747 integer.
1748 (MAGIC_NULL_PID): Delete.
1749 (set_thread): Take a ptid_t parameter and adjust.
1750 (set_general_thread, set_continue_thread): New.
1751 (remote_thread_alive, remote_newthread_step)
1752 (remote_current_thread, remote_find_new_threads)
1753 (remote_threads_info, remote_start_remote, remote_vcont_resume)
1754 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
1755 (threadalive_test, remote_pid_to_str)
1756 (remote_get_thread_local_address): Adjust.
1757 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
1758 and any_thread_ptid.
1759
3ca64bd3
JK
17602008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1761
1762 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
1763 * configure: Regenerated.
1764
28e94949
JB
17652008-06-26 Joel Brobecker <brobecker@adacore.com>
1766
1767 * dwarf2read.c (read_attribute_value): Treat size attribute
1768 values of 0xffffffff as if the attribute value was zero.
1769
8a77dff3
VP
17702008-06-26 Vladimir Prus <vladimir@codesourcery.com>
1771
1772 * linux-nat.c: Add description of overall logic.
1773
d5af19ba
DJ
17742008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
1775
1776 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
1777 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
1778 all dependencies on $(gdb_stdint_h).
1779 (distclean): Do not delete gdb_stdint.h.
1780 * acinclude.m4: Do not use stdint.m4.
1781 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
1782 uintptr_t, and gdb_stdint.h.
1783 * defs.h: Include <stdint.h>.
1784 * gdb_thread_db.h: Assume stdint.h is already included.
1785 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
1786 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
1787 include gdb_stdint.h.
1788 * configure, config.in: Regenerate.
1789
00fbcec4
JM
17902008-06-26 Joseph Myers <joseph@codesourcery.com>
1791
1792 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
1793 decimal floating-point values in GPRs for soft-float.
1794 (do_ppc_sysv_return_value): Handle returning decimal
1795 floating-point values in GPRs for soft-float.
1796
d5086790
VP
17972008-06-26 Vladimir Prus <vladimir@codesourcery.com>
1798
1799 * target.c (target_read_until_error): New.
680b56ce
AS
1800 * target.h (target_read_until_error): Declare.
1801 * mi/mi-main.c (mi_cmd_data_read_memory): Use
1802 target_read_until_error.
d5086790 1803
fe9441f6
JK
18042008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1805
1806 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
1807 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
1808 after the DECFLOAT detection to fix a memory leak. Remove the
1809 redundant NUM initialization. Protect the DECFLOAT detection memory
1810 access before the P block. Restore the P memory content for the
1811 DECFLOAT detection.
1812
ce8f13f8
VP
18132008-06-25 Vladimir Prus <vladimir@codesourcery.com>
1814
1815 Kill the return value for all MI command functions.
1816 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
1817 (mi_cmd_argv_ftype): Change return type to void.
1818
1819 * mi/mi-main.c: Adjust all function that implement
1820 MI commands to return nothing.
1821 (struct captured_mi_execute_command_actions):
1822 Remove the rc field.
1823 (mi_cmd_execute): Return nothing.
1824 (mi_execute_async_cli_command): Return nothing.
1825 (mi_cmd_exec_interrupt): Don't print ^done here.
1826 (mi_cmd_target_select): Don't print ^connected here.
1827 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
1828 Special-case -target-select and output ^connected, not ^done.
1829
1830 * mi/mi-cmd-break.c: Adjust.
1831 * mi/mi-cmd-disas.c: Adjust.
1832 * mi/mi-cmd-env.c: Adjust.
1833 * mi/mi-cmd-file.c: Adjust.
1834 * mi/mi-cmd-stack.c: Adjust.
1835 * mi/mi-cmd-target.c: Adjust.
1836 * mi/mi-cmd-var.c: Adjust.
1837 * mi/mi-interp.c: Adjust.
1838 * mi/mi-symbol-cmds.c: Adjust.
1839
a2840c35
VP
18402008-06-25 Vladimir Prus <vladimir@codesourcery.com>
1841
1842 Emit ^running via observer.
1843 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
680b56ce
AS
1844 ^running here.
1845 (mi_on_resume): Print ^running if not previously output.
1846 * mi/mi-main.c (running_result_record_printed): New.
1847 (captured_mi_execute_command): Reset
1848 running_result_record_printed. Use running_result_record_printed
1849 to decide if we should skip ^done.
1850 (mi_execute_async_cli_command): Don't print ^running here.
1851 * mi/mi-main.h (current_token, running_result_record_printed):
1852 Declare.
a2840c35 1853
1f41b062
MS
18542008-06-24 Michael Snyder <msnyder@specifix.com>
1855
1856 * infrun.c (_initialize_infrun): White space and typo fix.
1857
eff8332b
CF
18582008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
1859
1860 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
1861 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
1862 when first loading DLL with "dll" command.
1863
e50ce6de 18642008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
114374a0
PM
1865
1866 * gnu-nat.c (proc_string): Use capital T for "Thread".
680b56ce 1867
e50ce6de 18682008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
17526a8c
PM
1869
1870 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
680b56ce 1871
59ddf1e7
JB
18722008-06-18 Joel Brobecker <brobecker@adacore.com>
1873
680b56ce
AS
1874 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
1875 the target cannot run.
59ddf1e7
JB
1876
18772008-06-18 Joel Brobecker <brobecker@adacore.com>
ea8eedbe
JB
1878
1879 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
1880 we're attaching to a running process.
1881
e50ce6de 18822008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
7488902c
PM
1883
1884 * win32-nat.c (handle_load_dll): Give dll name and load address
1885 if debug_events is on.
1886 (handle_unload_dll): Likewise.
1887
8f6a8e84
VP
18882008-06-14 Vladimir Prus <vladimir@codesourcery.com>
1889
1890 Don't suppress *running when doing finish.
680b56ce
AS
1891 * infcall.c (call_function_by_hand): Set both
1892 suppress_resume_observer and suppress_stop_observer.
1893 * infcmd.c (suppress_run_stop_observers): Split into...
1894 (suppress_resume_observer, suppress_stop_observer): ...those.
1895 (finish_command_continuation): Clear suppress_stop_observer.
1896 (finish_command): Set suppress_stop_observer.
1897 * inferior.h (suppress_run_stop_observers): Split into...
1898 (suppress_resume_observer, suppress_stop_observer): ...those.
1899 * infrun.c (normal_stop): Check for suppress_stop_observer.
1900 * thread.c (set_running): Check for suppress_resume_observer.
8f6a8e84 1901
4309257c
PM
19022008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
1903 Pierre Muller <muller@ics.u-strasbg.fr>
1904
1905 * gdbarch.sh (gdbarch_skip_main_prologue): New.
1906 * gdbarch.h, gdbarch.c: Regenerate.
1907 * i386-tdep.h (i386_skip_main_prologue): Declare.
1908 * i386-tdep.c (i386_skip_main_prologue): New.
680b56ce 1909 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
4309257c
PM
1910 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
1911 * symtab.c (find_function_start_sal): When pc points at the "main"
1912 function, call gdbarch_skip_main_prologue.
1913
a4e2ee12
DJ
19142008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
1915
1916 * value.c (value_primitive_field): Fetch lazy register values.
1917
060871df
PA
19182008-06-11 Pedro Alves <pedro@codesourcery.com>
1919
1920 * NEWS: Mention support removal of undocumented S AA p PID stop
1921 reply packet.
1922
1923 * remote.c (remote_wait): Remove undocumented S AA p PID support.
1924
336de56d
SS
19252008-06-10 Stan Shebs <stan@codesourcery.com>
1926
1927 * MAINTAINERS: Update my affiliation and address.
1928
7949220d
AS
19292008-06-10 Andreas Schwab <schwab@suse.de>
1930
1931 * top.c (print_gdb_version): Don't print final newline.
1932
e1ac3328
VP
19332008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1934
1935 Implement *running.
680b56ce
AS
1936 * Makefile.in: Update dependencies.
1937 * gdbthread.h (struct thread_info): New field
1938 running_.
1939 (set_running, is_running): New.
1940 * thread.c (set_running, is_running): New.
1941 * inferior.h (suppress_normal_stop_observer): Rename to...
1942 (suppress_run_stop_observers): ..this.
1943 * infcmd.c (suppress_normal_stop_observer): Rename to...
1944 (suppress_run_stop_observers): ..this.
1945 (finish_command_continuation, finish_command): Adjust.
1946 * infcall.c (call_function_by_hand): Adjust.
1947 * infrun.c (normal_stop): Call set_running.
1948 * target.c (target_resume): New. Call set_running.
1949 * target.h (target_resume): Convert from macro to
1950 a function.
1951
1952 * mi/mi-interp.c (mi_on_resume): New.
1953 (mi_interpreter_init): Register mi_on_resume.
e1ac3328 1954
f7f9a841
VP
19552008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1956
1957 Use observers to report stop events in MI.
680b56ce
AS
1958 * mi/mi-interp.c (mi_on_normal_stop): New.
1959 (mi_interpreter_init): Register mi_on_normal_stop.
1960 (mi_interpreter_exec_continuation): Remove.
1961 (mi_cmd_interpreter_exec): Don't register the above.
1962 * mi/mi-main.c (captured_mi_execute_command): Don't care
1963 about sync_execution.
1964 (mi_execute_async_cli_command): Don't install continuation. Don't
1965 print *stopped.
1966 (mi_exec_async_cli_cmd_continuation): Remove.
f7f9a841 1967
f5871ec0
VP
19682008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1969
1970 Suppress normal stop observer when it's problematic.
680b56ce
AS
1971 * inferior.h (suppress_normal_stop_observer): New.
1972 * infcall.c (call_function_by_hand): Disable stop events when
1973 doing function calls.
1974 * infmcd.c (suppress_normal_stop_observer): New.
1975 (finish_command_continuation): Call normal_stop observer
1976 explicitly.
1977 (finish_command): Disable stop events inside proceed.
1978 * infrun.c (normal_stop): Don't call normal stop observer if
1979 suppressed of if multi-step is in progress.
f5871ec0 1980
3d3191a6
VP
19812008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1982
1983 Remove stale code.
680b56ce
AS
1984 * infrun.c (finish_command): Don't pass cleanup
1985 to continuation.
1986 (finish_command_continuation): Don't grab cleanup from
1987 the passed data, as we don't use, and cannot, use it anyway.
3d3191a6 1988
0b080f59
VP
19892008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1990
1991 Introduce common cleanup for restoring integers.
680b56ce
AS
1992 * defs.h (make_cleanup_restore_integer): New declaration.
1993 (struct cleanup): New field free_arg.
1994 (make_my_cleanup_2): New.
1995 * utils.c (restore_integer_closure, restore_integer)
1996 (make_cleanup_restore_integer): New.
1997 (make_my_cleanup): Initialize the free_arg field and
1998 renamed to make_my_cleanup_2.
1999 (do_my_cleanups): Call free_arg.
2000 (discard_cleanups): Call free_arg.
2001 * breakpoint.c (restore_always_inserted_mode): Remove.
2002 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
0b080f59 2003
b4f62b57
DE
20042008-06-09 Doug Evans <dje@google.com>
2005
2006 * remote.c (remote_wait): Include beginning of malformed packet
2007 in error output.
2008
37cd5d19
TT
20092008-06-09 Tom Tromey <tromey@redhat.com>
2010
2011 * completer.c (complete_line): Don't special-case
2012 expression_completer.
2013 (expression_completer): Only pass last word to
2014 location_completer.
2015 * c-exp.y (yylex): Check 'token', not 'operator'.
2016
3526781e
DJ
20172008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
2018
2019 * configure.ac (build_warnings): Add -Wno-format for mingw.
2020 * configure: Regenerated.
2021
d001be7a
DJ
20222008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
2023
2024 * NEWS: Make indentation consistent. Move exec tracing entry out
2025 of remote packet list.
2026
65d12d83
TT
20272008-06-06 Tom Tromey <tromey@redhat.com>
2028
2029 * value.h (evaluate_subexpression_type, extract_field_op):
2030 Declare.
2031 * printcmd.c (_initialize_printcmd): Use expression_completer for
2032 'p', 'inspect', 'call'.
2033 * parser-defs.h (parse_field_expression): Declare.
2034 * parse.c: Include exceptions.h.
2035 (in_parse_field, expout_last_struct): New globals.
2036 (mark_struct_expression): New function.
2037 (prefixify_expression): Return int.
2038 (prefixify_subexp): Return int. Use expout_last_struct.
2039 (parse_exp_1): Update.
2040 (parse_exp_in_context): Add 'out_subexp' argument. Handle
2041 in_parse_field.
2042 (parse_field_expression): New function.
2043 * expression.h (parse_field_expression): Declare.
2044 (in_parse_field): Likewise.
2045 * eval.c (evaluate_subexpression_type): New function.
2046 (extract_field_op): Likewise.
2047 * completer.h (expression_completer): Declare.
2048 * completer.c (expression_completer): New function.
2049 (count_struct_fields, add_struct_fields): New functions.
2050 * c-exp.y (yyparse): Redefine.
2051 (COMPLETE): New token.
2052 (exp): New productions.
2053 (saw_name_at_eof, last_was_structop): New globals.
2054 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
2055 (c_parse): New function.
2056 * breakpoint.c (_initialize_breakpoint): Use expression_completer
2057 for watch, awatch, and rwatch.
2058 * Makefile.in (parse.o): Depend on exceptions_h.
2059
fed27633
PP
20602008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2061
2062 PR gdb/1147
2063 * gdb/valopts.c (find_overload_match): Handle references
2064 to pointers.
2065
aced2898
PH
20662008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
2067
2068 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
2069 account the bitsize of the 'from' operand.
2070
a2b87ed1
PA
20712008-06-06 Pedro Alves <pedro@codesourcery.com>
2072
2073 * annotate.h (annotate_thread_changed): Declare.
2074
3d6d0b9d
NR
20752008-06-06 Nick Roberts <nickrob@snap.net.nz>
2076
2077 * annotate.c (annotate_thread_changed): New function.
2078 * thread.c (thread_command) : Use it.
2079 * infrun.c (normal_stop): Use it.
2080
c16158bc 20812008-06-05 Vladimir Prus <vladimir@codesourcery.com>
680b56ce
AS
2082 Nathan Sidwell <nathan@codesourcery.com>
2083 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
2084
2085 * acinclude.m4: Include ../config/acx.m4.
2086 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
2087 * configure, config.in: Regenerate.
2088 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
2089 address.
2090 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
2091
75c99385
PA
20922008-06-05 Pedro Alves <pedro@codesourcery.com>
2093
2094 Replace 'target async' by 'maintenance set remote-async' and
2095 'target remote' combination.
2096
2097 * remote.c (remote_async_wait): Merge into remote_wait, and
2098 remove.
2099 (remote_async_permitted, remote_async_permitted_set): New
2100 variables.
2101 (set_maintenance_remote_async_permitted)
2102 (show_maintenance_remote_async_permitted): New functions.
2103 (remote_async_ops, extended_async_remote_ops): Delete.
2104 (remote_async_open, extended_remote_async_open): Delete.
2105 (remote_open_1): Drop async_p parameter. Update callers. Replace
2106 async_p with remote_async_permitted checks.
2107 (extended_async_remote_attach): Delete.
2108 (remote_resume, remote_async_resume): Merge and leave remote_resume.
2109 (remote_async_terminal_inferior): Rename to...
2110 (remote_terminal_inferior): ... this, and add
2111 remote_async_termitted check.
2112 (remote_async_terminal_ours): Rename to...
2113 (remote_terminal_ours): ... this, and add remote_async_termitted
2114 check.
2115 (remote_wait, remote_async_wait): Merge and leave remote_wait
2116 only.
2117 (remote_kill, remote_async_kill): Merge and leave remote_kill
2118 only.
2119 (remote_async_mourn, extended_async_remote_mourn): Delete.
2120 (extended_remote_create_inferior_1): Drop async_p parameter.
2121 Update callers. Always use extended_remote_ops.
2122 (extended_remote_async_create_inferior): Delete.
2123 (remote_return_zero): Delete.
2124 (init_remote_ops): Register remote_can_async_p, remote_async,
2125 remote_async_mask, remote_terminal_inferior and
2126 remote_terminal_ours.
2127 (remote_can_async_p, remote_is_async_p): Check for
2128 remote_async_permitted.
2129 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
2130 (set_remote_cmd): Don't add async and extended-async targets.
2131 (_initialize_remote): Add set/show remote-async maintenance
2132 commands.
2133
cf30943b
PA
21342008-06-05 Pedro Alves <pedro@codesourcery.com>
2135
2136 * remote.c (kill_kludge): Delete.
2137 (remote_wait, remote_async_wait): Don't set it.
2138 (remote_kill, remote_async_kill): Don't do anything with it.
2139
49fd4a42
PA
21402008-06-05 Pedro Alves <pedro@codesourcery.com>
2141
2142 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
2143
2e618c13
AR
21442008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
2145
2146 * bcache.c (bcache_data): Call deprecated_bcache_added function.
680b56ce
AS
2147 (deprecated_bcache_added): New function name. Body of function
2148 bcache_data is used here with the addition of 'added' argument.
2e618c13
AR
2149 * bcache.h (deprecated_bcache_added): New function.
2150 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
2151 work from add_psymbol_to_list - initialises partial symbol and stashes
2152 it in objfile's cache.
680b56ce 2153 (append_psymbol_to_list): New helper function, takes other part of
2e618c13 2154 work from add_psymbol_to_list - adds partial symbol to the given list.
680b56ce 2155 (add_psymbol_to_list): Call helper functions instead of doing work
2e618c13
AR
2156 here. If adding to global list, do not duplicate partial symbols in the
2157 partial symtab.
2158
c0b37c48
AR
21592008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
2160
2161 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
2162 'exception caught|thrown' message.
2163
1e3a102a
JK
21642008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2165
2166 * Makefile.in: Update dependencies.
2167 * dwarf2expr.c: New include "gdb_assert.h".
2168 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
2169 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
2170 (execute_stack_op): Error out on too large RECURSION_DEPTH.
2171 Increase/decrease RECURSION_DEPTH around the function.
2172
8d385431
DJ
21732008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
2174
2175 * remote.c (get_offsets): Handle a single segment.
2176 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
2177 than segments.
2178
93a57060
DJ
21792008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
2180
2181 * solib-svr4.c (struct lm_info): Add lm_addr.
2182 (main_lm_addr): New.
2183 (svr4_default_sos): Set lm_addr.
2184 (svr4_current_sos): Set lm_addr and main_lm_addr.
2185 (svr4_fetch_objfile_link_map): Rewrite.
2186 (svr4_clear_solib): Clear main_lm_addr.
2187
609ba780 21882008-06-03 Michael Snyder <msnyder@redhat.com>
680b56ce 2189 Joseph Myers <joseph@codesourcery.com>
609ba780
JM
2190
2191 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
2192 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
2193
c95f5026
JB
21942008-06-02 Roman Zippel <zippel@linux-m68k.org>
2195
2196 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
2197
e4d8bc08
JB
21982008-06-02 Roman Zippel <zippel@linux-m68k.org>
2199
2200 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
2201
40adab56
JB
22022008-06-01 Joel Brobecker <brobecker@adacore.com>
2203
2204 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
2205 treat pointers in data space as function descriptors if the
2206 target address is also in the data space.
2207
bfd66dd9
JB
22082008-05-30 Joel Brobecker <brobecker@adacore.com>
2209
2210 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
2211 the trad-frame register value for the SP register.
2212
7ea566be
MK
22132008-05-29 Mark Kettenis <kettenis@gnu.org>
2214
2215 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
2216
fcac911a
JB
22172008-05-28 Joel Brobecker <brobecker@adacore.com>
2218
2219 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
2220 that identifies function descriptors outside of the .opd section.
2221
ade92717
AR
22222008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
2223
2224 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
680b56ce 2225 temporary catchpoints. In MI add missing fields 'reason', 'disp',
ade92717
AR
2226 'bkptno'.
2227 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
2228 catchpoints.
2229 (handle_gnu_v3_exceptions): Use tempflag.
2230
f7f9ae2c
VP
22312008-05-28 Vladimir Prus <vladimir@codesourcery.com>
2232
2233 Refactor varobj_update interface.
680b56ce
AS
2234 * varobj.c (varobj_update): Report changes as vector. Also
2235 return not just a list of varobj, but a list of special structures
2236 that tell what exactly has changed.
2237 * varobj.h (enum varobj_update_error): Rename to
2238 varobj_scope_status.
2239 (struct varobj_update_result_t): New.
2240 (varobj_update): Adjust prototype.
2241 * mi/mi-cmd-var.c: Adjust for changes.
f7f9ae2c 2242
ea56f9c2
VP
22432008-05-28 Vladimir Prus <vladimir@codesourcery.com>
2244
2245 * varobj.c (varobj_update): Fix comment typo.
2246 Fix indentation.
2247
c7efd0b9
JB
22482008-05-26 Joel Brobecker <brobecker@adacore.com>
2249
2250 Set the symtab field of symbols read from ECOFF debugging entries.
2251 * mdebugread.c (add_symbol): Add new parameter symtab.
2252 (parse_symbol): Update calls to add_symbol throughout.
2253
2a2d4dc3
AS
22542008-05-27 Andreas Schwab <schwab@suse.de>
2255
2256 * symtab.h (enum address_class): Remove LOC_REGPARM and
2257 LOC_COMPUTED_ARG.
2258 (struct symbol): Add is_argument.
2259 (SYMBOL_IS_ARGUMENT): Define.
2260
2261 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
2262 * buildsym.c (finish_block): Likewise.
2263 * stack.c (print_frame_args, print_block_frame_locals)
2264 (print_frame_arg_vars): Likewise.
2265 * symtab.c (lookup_block_symbol): Likewise.
2266 * tracepoint.c (add_local_symbols): Likewise.
2267 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2268
2269 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
2270 * dwarf2read.c (new_symbol): Likewise.
2271 * mdebugread.c (parse_symbol): Likewise.
2272 * stabsread.c (define_symbol): Likewise.
2273
2274 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
2275 and LOC_COMPUTED_ARG.
2276 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
2277 * ax-gdb.c (gen_var_ref): Likewise.
2278 * eval.c (evaluate_subexp_for_address): Likewise.
2279 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2280 * m2-exp.y (yylex): Likewise.
2281 * printcmd.c (address_info): Likewise.
2282 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2283 * tracepoint.c (collect_symbol, scope_info): Likewise.
2284
17ea7499
CES
22852008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2286
2287 * gdbarch.sh: Added new gdbarch struct
2288 core_regset_sections.
2289 * gdbarch.c: Refreshed.
2290 * gdbarch.h: Refreshed.
2291 * regset.h (core_regset_section): Declared.
2292 * linux-nat.c (linux_nat_do_thread_registers): Added
2293 support for the new gdbarch struct core_regset_sections.
2294 * utils.c (host_address_to_string): New function.
2295 * defs.h (host_address_to_string): New prototype.
2296 * i386-linux-tdep.c (i386_regset_rections): New register
2297 sections list for i386.
2298 (i386_linux_init_abi): Initialized new gdbarch struct
2299 core_regset_sections.
2300 * Makefile.in: Updated to reflect dependency changes.
2301 * ppc-linux-tdep.c (ppc_regset_sections): Register
2302 sections list for ppc.
2303 (ppc_linux_init_abi): Initialized new gdbarch struct
2304 core_regset_sections
2305
c4fc331b
AS
23062008-05-24 Andreas Schwab <schwab@suse.de>
2307
2308 * linespec.c (decode_objc): Save current language around call to
2309 get_selected_block.
2310
e936309c
JB
23112008-05-23 Joel Brobecker <brobecker@adacore.com>
2312
2313 * valprint.h (get_array_bounds): Renames get_array_low_bound.
2314 * valprint.c (get_array_bounds): Renames get_array_low_bound.
2315 Return the proper bound value if the array index type is an
2316 enumerated type. Compute the high bound if requested.
2317 (val_print_array_elements): Handle the case when the array
2318 element has a null size.
2319 * ada-valprint.c (print_optional_low_bound): Add handling
2320 for empty arrays or arrays of zero-size elements.
2321 (ada_val_print_array): New function, extracted out from
2322 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
2323 handle empty arrays and arrays of zero-size elements.
2324 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
2325 code by call to ada_val_print_array.
2326 (ada_value_print): Remove handling of null array. The handling
2327 was incomplete and is now better handled by ada_val_print_array.
2328
50ee7535
MD
23292008-05-23 Markus Deuling <deuling@de.ibm.com>
2330
2331 * annotate.c (annotate_source, annotate_frame_begin): Replace
2332 deprecated_print_address_numeric with paddress.
2333 * cli/cli-cmds.c (list_command, edit_command): Likewise.
2334 * tui/tui-stack.c (tui_make_status_line): Likewise.
2335
2336 * defs.h (deprecated_print_address_numeric): Remove.
2337 * printcmd.c (deprecated_print_address_numeric): Remove.
2338 * maint.c (maint_print_section_info): Fix comment.
2339
d44e8473
MD
23402008-05-23 Markus Deuling <deuling@de.ibm.com>
2341
2342 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
2343 print_binary_chars, print_char_chars): Add byte_order parameter and
2344 replace gdbarch_byte_order.
2345 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
2346 expressions and remove them. Remove unused TWO_TO_FOURTH.
2347 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
2348 endianness. Update call to print_hex_chars.
2349 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
2350 print_binary_chars, print_char_chars): Add byte_order parameter.
2351 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
2352 get at the endianness. Update print_*_char calls to use byte_order.
2353
10f4ecb8
UW
23542008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2355
2356 * symtab.h (struct symbol): Make "aux_value" member a void pointer
2357 instead of a union.
2358 (SYMBOL_LOCATION_BATON): Update.
2359
c3b22bd0
UW
23602008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2361
2362 * symtab.h (enum address_class): Remove LOC_BASEREG and
2363 LOC_BASEREG_ARG.
2364 (struct symbol): Remove "basereg" member of "aux_value" union.
2365 (SYMBOL_BASEREG): Remove.
2366
2367 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
2368 or LOC_BASEREG_ARG.
2369 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
2370 (ada_add_block_symbols): Likewise.
2371 * ax-gdb.c (gen_var_ref): Likewise.
2372 * buildsym.c (finish_block): Likewise.
2373 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2374 * m2-exp.y (yylex): Likewise.
2375 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2376 * printcmd.c (address_info): Likewise.
2377 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
2378 (print_frame_arg_vars): Likewise.
2379 * symmisc.c (print_symbol): Likewise.
2380 * symtab.c (lookup_block_symbol): Likewise.
2381 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
2382 (scope_info): Likewise.
2383
aa59ba6b
UW
23842008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2385
2386 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
2387
2388 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
2389 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
2390 (ada_add_block_symbols): Likewise.
2391 * ax-gdb.c (gen_var_ref): Likewise.
2392 * buildsyms.c (finish_block): Likewise.
2393 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2394 * m2-exp.y (yylex): Likewise.
2395 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2396 * printcmd.c (address_info): Likewise.
2397 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
2398 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2399 * symtab.c (lookup_block_symbol): Likewise.
2400 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
2401 (scope_info): Likewise.
2402
0bb4e8c4
UW
24032008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2404
2405 * symtab.h (enum address_class): Remove LOC_INDIRECT and
2406 LOC_HP_THREAD_LOCAL_STATIC.
2407
2408 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
2409 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
2410 (read_var_value): Likewise.
2411 * buildsym.c (finish_block): Likewise.
2412 * objfiles.c (objfile_relocate): Likewise.
2413 * printcmd.c (address_info): Likewise.
2414 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2415 * tracepoint.c (scope_info): Likewise.
2416
9f61f19b
MG
24172008-05-21 Markus Deuling <deuling@de.ibm.com>
2418 Maxim Grigoriev <maxim2405@gmail.com>
2419
2420 * xtensa-tdep.c (xtensa_read_register): Remove.
2421 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
2422 argument litbase to call0_frame_cache().
2423 (call0_track_op, call0_analyze_prologue)
2424 (call0_frame_cache): Use extra argument litbase.
2425
0e479716
JB
24262008-05-21 Joel Brobecker <brobecker@adacore.com>
2427
2428 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
2429
214be669
UW
24302008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
2431
2432 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
2433
0cd9ab92
UW
24342008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
2435
2436 * alpha-mdebug-tdep.c: Include "trad-frame.h".
2437 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
2438 struct trad_frame_saved_reg *.
2439 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
2440 trad_frame_alloc_saved_regs. Update accesses. Record previous
2441 value of SP as being vfp.
2442 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
2443 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2444
f52cb1b8
MD
24452008-05-21 Markus Deuling <deuling@de.ibm.com>
2446
2447 * score-tdep.c (score_print_insn): Get the current endianess from
2448 disassemble_info instead of gdbarch_byte_order.
2449
8fa75a5d
PA
24502008-05-21 Pedro Alves <pedro@codesourcery.com>
2451
2452 * frame.c (get_prev_frame_1): Build frame id before setting
2453 this_frame->prev_p, not after.
2454
e8e48118
NR
24552008-05-21 Nick Roberts <nickrob@snap.net.nz>
2456
2457 * annotate.c (annotate_new_thread): New function for new-thread
2458 annotation.
2459 * annotate.h: (annotate_new_thread): New extern.
2460 * thread.c (add_thread_with_info): Use it.
2461 * Makefile.in (thread.o): Add dependency on annotate.h.
2462
c57918b2
JB
24632008-05-20 Joel Brobecker <brobecker@adacore.com>
2464
2465 * win32-nat.c (win32_wait): Block the control-c event while
2466 waiting for a debug event.
2467
6c9353d3
PA
24682008-05-19 Pedro Alves <pedro@codesourcery.com>
2469
2470 * symtab.h (lookup_symbol_in_language): Update comment.
2471 * symtab.c (lookup_symbol_aux_block): Update comment.
2472 * ada-lang.c (ada_lookup_symbol_list): Update comment.
2473
2570f2b7
UW
24742008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
2475
2476 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
2477 (lookup_symbol): Likewise.
2478 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
2479 (lookup_symbol): Likewise.
2480 (search_symbols): Update.
2481
2482 * linespec.c (find_methods, collect_methods): Update.
2483 (add_matching_methods, add_constructors): Update.
2484 (decode_compound, decode_dollar, decode_variable): Update.
2485 (lookup_prefix_sym): Update.
2486
2487 (symbol_found): Remove SYM_SYMTAB parameter.
2488 Use SYMBOL_SYMTAB (sym) instead.
2489
2490 * gdbtypes.c (lookup_typename): Update.
2491 (lookup_struct, lookup_union, lookup_enum): Update.
2492 (lookup_template_type): Update.
2493 (check_typedef): Update.
2494 * language.c (lang_bool_type): Update.
2495 * mdebugread.c (parse_procedure): Update.
2496 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2497 * parse.c (write_dollar_variable): Update.
2498 * printcmd.c (address_info): Update.
2499 * source.c (select_source_symtab): Update.
2500 * stack.c (print_frame_args, print_frame_arg_vars): Update.
2501 * valops.c (find_function_in_inferior): Update.
2502 (value_struct_elt_for_reference): Update.
2503 * value.c (value_static_field, value_fn_field): Update.
2504
2505 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2506 * arm-tdep.c (arm_skip_prologue): Update.
2507 * mt-tdep.c (mt_skip_prologue): Update.
2508 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
2509
2510 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
2511 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
2512 (add_defn_to_vec): Likewise.
2513 (ada_add_block_symbols): Likewise.
2514 (lookup_cached_symbol, cache_symbol): Likewise.
2515 (standard_lookup): Update.
2516 (ada_lookup_symbol_list): Update.
2517
2518 * c-valprint.c (c_val_print): Update.
2519 * cp-support.c (cp_lookup_rtti_type): Update.
2520 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
2521 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
2522 * p-valprint.c (pascal_val_print): Update.
2523 * scm-lang.c (scm_lookup_name): Update.
2524
2525 * c-exp.y: Update.
2526 * f-exp.y: Update.
2527 * jv-exp.y: Update.
2528 * m2-exp.y: Update.
2529 * objc-exp.y: Update.
2530 * p-exp.y: Update.
2531
21b556f4
UW
25322008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
2533
2534 * language.h (struct language_defn): Remove SYMTAB parameter from
2535 la_lookup_symbol_nonlocal callback function pointer.
2536
2537 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
2538 (ada_lookup_encoded_symbol): Likewise.
2539 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
2540 Always call fixup_symbol_section.
2541 (ada_lookup_symbol): Remove SYMTAB parameter.
2542 (ada_lookup_symbol_nonlocal): Likewise.
2543 * ada-exp.y (write_object_renaming): Update.
2544 (find_primitive_type): Likewise.
2545
2546 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
2547 (cp_lookup_symbol_namespace): Likewise.
2548 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
2549 (lookup_symbol_file): Likewise.
2550 (lookup_possible_namespace_symbol): Likewise.
2551 (cp_lookup_symbol_nonlocal): Likewise.
2552 (cp_lookup_symbol_namespace): Likewise.
2553 (cp_lookup_nested_type): Update.
2554
2555 * scm-valprint.c (scm_inferior_print): Update.
2556 * valops.c (value_maybe_namespace_elt): Update.
2557
2558 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
2559 lookup_lib_global_symbol callback function pointer.
2560 (solib_global_lookup): Remove SYMTAB parameter.
2561 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
2562 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
2563
2564 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
2565 (lookup_symbol_static): Likewise.
2566 (lookup_symbol_global): Likewise.
2567 (lookup_symbol_aux_block): Likewise.
2568 (lookup_global_symbol_from_objfile): Likewise.
2569 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
2570 (lookup_symbol_aux_local): Likewise.
2571 (lookup_symbol_aux_block): Likewise.
2572 (lookup_symbol_aux_symtabs): Likewise.
2573 (lookup_symbol_aux_psymtabs): Likewise.
2574 (lookup_global_symbol_from_objfile): Likewise.
2575 (basic_lookup_symbol_nonlocal): Likewise.
2576 (lookup_symbol_static): Likewise.
2577 (lookup_symbol_global): Likewise.
2578
2579 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
2580
39237dd1
PA
25812008-05-17 Pedro Alves <pedro@codesourcery.com>
2582
2583 * remote.c (init_extended_remote_ops): Fix typo.
2584
7c0d47a5
PA
25852008-05-16 Pedro Alves <pedro@codesourcery.com>
2586
2587 * NEWS: Mention new DICOS x86 target configuration.
2588
907fc202
UW
25892008-05-16 Pedro Alves <pedro@codesourcery.com>
2590 Ulrich Weigand <uweigand@de.ibm.com>
2591
2592 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
2593 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
2594
2595 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
2596 use it instead of ginfo->value.address. Look up minimal symbol by
2597 address and name. Assume OBJFILE is non-NULL.
2598 (fixup_symbol_section): Ensure we always have an objfile to look
2599 into. Extract and pass to fixup_section the symbol's address that
2600 will match the minimal symbol's address.
2601 (fixup_psymbol_section): Likewise.
2602
2603 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
2604 overlays and the addrmap returned the wrong section.
2605
2606 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
2607 calling fixup_symbol_section.
2608
42848c96
UW
26092008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2610
2611 * minsyms.c: Include "target.h".
2612 (find_solib_trampoline_target): Handle minimal symbols pointing
2613 to function descriptors as well.
2614 * Makefile.in (minsyms.o): Update dependencies.
2615
2616 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
2617 (ppc64_standard_linkage1): ... this. Fix optional instructions.
2618 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
2619 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
2620 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
2621 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
2622 (ppc64_standard_linkage_target): Rename to ...
2623 (ppc64_standard_linkage1_target): ... this.
2624 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
2625 (ppc64_skip_trampoline_code): Support three variants of standard
2626 linkage stubs. Call find_solib_trampoline_target to handle
2627 glink stubs.
2628
74d1f063
UW
26292008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2630
2631 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
2632 ppc64_sysv_abi_adjust_breakpoint_address.
2633 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
2634 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
2635
8526f328
UW
26362008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2637
2638 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
2639 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
2640 of ppc_linux_skip_trampoline_code.
2641
ba2b1c56
DJ
26422008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
2643
2644 * gdbarch.sh: Delete dwarf_reg_to_regnum.
2645 * gdbarch.c, gdbarch.h: Regenerated.
2646 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
2647 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
2648 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
2649
4fdebdd0
PA
26502008-05-15 Pedro Alves <pedro@codesourcery.com>
2651
2652 * linux-nat.c (trap_ptid): Delete.
2653 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
2654 Adjust.
2655 * linux-thread-db.c (thread_db_wait): Adjust.
2656
bc882aa9
JB
26572008-05-15 Joel Brobecker <brobecker@adacore.com>
2658
2659 * linespec.c (decode_line_1): Fix a couple of comments.
2660
83b94be5
AM
26612008-05-15 Alan Modra <amodra@bigpond.net.au>
2662
2663 * dbxread.c: Formatting.
2664 (INTERNALIZE_SYMBOL): Init n_other.
2665 (set_namestring): Take pointer to nlist arg rather than struct
2666 copy. Update all callers.
2667
87669130
AS
26682008-05-15 Andreas Schwab <schwab@suse.de>
2669
2670 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
2671 (dwarf2read.o): Add $(addrmap_h).
2672
00d5f93a
UW
26732008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
2674
2675 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
2676 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
2677 to handle ppc32 PLT entries.
2678 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
2679 only on ppc64.
2680
2eaf8d2a
DJ
26812008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2682
2683 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
2684 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
2685 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
2686 (lookup_minimal_symbol_by_pc_section): Use
2687 lookup_minimal_symbol_by_pc_section_1.
2688 (lookup_solib_trampoline_symbol_by_pc): Likewise.
2689
20c62566
JB
26902008-05-13 Joel Brobecker <brobecker@adacore.com>
2691
2692 * findcmd.c: Add #include "gdb_stdint.h".
2693 * Makefile.in (findcmd.o): Update dependencies.
2694
87a7da84
DM
26952008-05-11 David S. Miller <davem@davemloft.net>
2696
de0c3d9d
DM
2697 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
2698 long double size override, Linux does use 128-bit now.
2699
e8467b5a
DM
2700 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
2701 (sparc_linux_write_pc): New function.
2702 (sparc32_linux_init_abi): Register it.
2703 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
2704 (sparc64_linux_write_pc): New function.
2705 (sparc64_linux_init_abi): Register it.
2706
87a7da84
DM
2707 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
2708 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
2709
8a4c2d24
UW
27102008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2711
2712 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
2713 and info.tdep_info before calling gdbarch_init_osabi.
2714
003f3813
JB
27152008-05-09 Joel Brobecker <brobecker@adacore.com>
2716
2717 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
2718 the type of the right hand side of the assignment to the type
2719 of the left hand side if the left hand side is a convenience
2720 variable.
2721
7ae0e2a2
UW
27222008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
2723
2724 * NEWS: Mention gdbserver bi-arch capability.
2725
08388c79
DE
27262008-05-09 Doug Evans <dje@google.com>
2727
2728 New "find" command.
2729 * NEWS: Document find command and qSearch:memory packet.
2730 * Makefile.in (SFILES): Add findcmd.c.
2731 (COMMON_OBJS): Add findcmd.o.
2732 (findcmd.o): New rule.
2733 * findcmd.c: New file.
2734 * target.h (target_ops): New member to_search_memory.
2735 (simple_search_memory): Declare.
2736 (target_search_memory): Declare.
2737 * target.c (simple_search_memory): New fn.
2738 (target_search_memory): New fn.
2739 * remote.c (PACKET_qSearch_memory): New packet kind.
2740 (remote_search_memory): New fn.
2741 (init_remote_ops): Init to_search_memory.
2742 (init_extended_remote_ops): Ditto.
2743 (_initialize_remote): Add qSearch:memory packet config command.
2744
11c68c47
EZ
27452008-05-09 Eli Zaretskii <eliz@gnu.org>
2746
2747 * thread.c (_initialize_thread): Don't use commas and periods in
2748 first line of doc string of "set/show print thread-events".
2749
6834c9bb
JB
27502008-05-08 Joel Brobecker <brobecker@adacore.com>
2751
2752 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
2753 Update for unwinder changes.
2754
86c31399
JB
27552008-05-08 Joel Brobecker <brobecker@adacore.com>
2756
2757 * frame.c (get_frame_base_address, get_frame_locals_address)
2758 (get_frame_args_address): Pass the correct frame when calling
2759 frame_base_find_by_frame.
2760
96ef3384
UW
27612008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2762
2763 * remote.c (extended_remote_attach_1): Call target_find_description.
2764
45280a52
DJ
27652008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
2766
2767 * remote.c (extended_remote_create_inferior_1): Clean up
2768 before marking the target running.
2769
227e86ad
JB
27702008-05-08 Joel Brobecker <brobecker@adacore.com>
2771
2772 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
2773 changes.
2774
236369e7
JB
27752008-05-07 Joel Brobecker <brobecker@adacore.com>
2776
2777 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
2778 sparc64-sol2-tdep.c: Update for unwinder changes.
2779
de237128
DJ
27802008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
2781
2782 * cp-support.c (mangled_name_to_comp): Initialize storage.
2783 (unqualified_name_from_comp): Likewise.
2784
4fff2411
JZ
27852008-05-07 Jie Zhang <jie.zhang@analog.com>
2786
2787 * remote.c (remote_insert_breakpoint): Call get_remote_state
2788 after gdbarch_breakpoint_from_pc is called.
2789 (remote_insert_hw_breakpoint): Likewise.
2790
d8ca156b
JB
27912008-05-06 Joel Brobecker <brobecker@adacore.com>
2792
2793 * valprint.c (val_print): Add new language parameter and use it
2794 instead of using the current_language. Update calls to val_print
2795 throughout.
2796 (common_val_print): Add new langauge parameter and pass it to
2797 val_print.
2798 * value.h (struct language_defn): Add opaque declaration.
2799 (val_print, common_val_print): Update declarations.
2800 * stack.c (print_frame_args): Update call to common_val_print
2801 using the appropriate language.
2802 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2803 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
2804 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
2805 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
2806 #include "language.h" if necessary.
2807 Update calls to val_print and common_val_print.
2808 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
2809 Update dependencies.
2810
b1e6fd19
JB
28112008-05-06 Joel Brobecker <brobecker@adacore.com>
2812
2813 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
2814 pointing inside a non-executable section as function descriptors.
2815
02b19d84
PA
28162008-05-06 Pedro Alves <pedro@codesourcery.com>
2817
2818 * inf-loop.c (inferior_event_handler): Run all continuations and
2819 print any language change before running the breakpoint commands.
2820
15c1e57f
JB
28212008-05-06 Joel Brobecker <brobecker@adacore.com>
2822
2823 * frame-unwind.c (frame_unwind_got_bytes): New function.
2824 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
2825 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
2826 for unwinder changes.
2827
d14508fe
DE
28282008-05-05 Doug Evans <dje@google.com>
2829
2830 * NEWS: Mention new /m modifier for disassemble command.
2831 * cli/cli-cmds.c (print_disassembly): New function.
2832 (disassemble_current_function): New function
2833 (disassemble_command): Recognize /m modifier, print mixed
2834 source+assembly.
2835 (init_cli_cmds): Update disassemble help text.
2836
5142f611
MG
28372008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
2838
2839 * xtensa-tdep.c: Update for unwinder changes.
2840
f36bf22c
AS
28412008-05-05 Andreas Schwab <schwab@suse.de>
2842
2843 Update m68k port for unwinder changes.
2844 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
2845 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
2846 (m68k_frame_unwind): Use default_frame_sniffer.
2847 (m68k_frame_sniffer): Remove.
2848 (m68k_frame_base_address): Expect this_frame.
2849 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
2850 this_frame.
2851 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
2852 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
2853 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
2854 parameter instead of pc value.
2855 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
2856 Expect this_frame.
2857 (m68k_linux_sigtramp_frame_this_id)
2858 (m68k_linux_sigtramp_frame_prev_register)
2859 (m68k_linux_sigtramp_frame_sniffer): Update signature.
2860 (m68k_linux_sigtramp_frame_unwind): Use
2861 m68k_linux_sigtramp_frame_sniffer.
2862 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
2863
2864 * m68klinux-nat.c (store_register): Fix typo.
2865
b3dc826b
PA
28662008-05-05 Pedro Alves <pedro@codesourcery.com>
2867
2868 * infcmd.c (step_1): Put thread id on the stack to avoid possible
2869 NULL dereferencing.
2870
6528a9ea
LM
28712008-05-05 Luis Machado <luisgpm@br.ibm.com>
2872
2873 * symfile.c (reread_symbols): Update objfile's entry point.
2874
5eeb2539
AR
28752008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
2876 Joel Brobecker <brobecker@adacore.com>
1f906a60 2877
5eeb2539
AR
2878 * ada-lang.c: Update throughout to use symbol_matches_domain
2879 instead of matching the symbol domain explictly.
2880 * dwarf2read.c (add_partial_symbol): Do not add new psym for
f36bf22c 2881 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
5eeb2539 2882 class as typedefs. See lookup_partial_symbol function.
f36bf22c 2883 (new_symbol): Similar to add_partial_symbol, do not create
5eeb2539
AR
2884 symbol for the typedef. See lookup_block_symbol.
2885 * symtab.c (symbol_matches_domain): New function, takes care
2886 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
2887 (lookup_partial_symbol): Use symbol_matches_domain to see if the
2888 found psym domain matches the given domain.
2889 (lookup_block_symbol): Likewise.
2890
e2b7ddea
VP
28912008-05-05 Vladimir Prus <vladimir@codesourcery.com>
2892
680b56ce
AS
2893 * top.c (command_line_handler_continuation): Remove.
2894 (execute_command): Do not install the above.
e2b7ddea 2895
fcfb8b02
VP
28962008-05-05 Vladimir Prus <vladimir@codesourcery.com>
2897
2898 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
2899 and catch all exceptions from it.
2900 * top.c (command_line_handler_continuation): Don't
2901 call bpstat_do_action here.
2902
f792889a
DJ
29032008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
2904
2905 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
2906 (struct die_info): Remove type.
2907 (read_type_die, read_typedef, read_base_type, read_subrange_type)
2908 (read_structure_type, read_enumeration_type, read_array_type)
2909 (read_tag_pointer_type, read_tag_ptr_to_member_type)
2910 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
2911 (read_tag_string_type, read_subroutine_type, read_set_type)
2912 (read_unspecified_type): Delete prototypes. Remove check for
2913 already-loaded type. Return the new type.
2914 (set_die_type): Return the new type.
2915 (reset_die_and_siblings_types): Delete.
2916 (load_comp_unit, load_full_comp_unit): Set type_hash.
2917 (process_queue): Remove call to reset_die_and_siblings_types.
2918 (process_die): Do not read most types here. Use read_type_die
2919 for others.
2920 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
2921 (quirk_gcc_member_function_pointer): Return the new type.
2922 (process_structure_scope, process_enumeration_scope): Use
2923 get_die_type and read the DIE's type.
2924 (read_full_die): Do not initialize die->type.
2925 (tag_type_to_type): Use read_type_die.
2926 (read_type_die): Check for already defined types. Return the
2927 type.
2928 (determine_prefix): Use get_die_type.
2929 (set_die_type): Return the type.
2930 (get_die_type): Take a CU argument. Check for no type_hash.
2931
e7030f15
DJ
29322008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
2933
2934 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
2935 locals.
2936
611c83ae
PA
29372008-05-04 Pedro Alves <pedro@codesourcery.com>
2938
2939 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
2940 and bp_longjmp_resume breakpoints.
2941 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
2942 meaningful.
2943 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
2944 breakpoints. Create bp_longjmp breakpoints as momentary
2945 breakpoints.
2946 (enable_longjmp_breakpoint): Delete.
2947 (set_longjmp_breakpoint): New.
2948 (disable_longjmp_breakpoint): Delete.
2949 (delete_longjmp_breakpoint): New.
2950 (set_longjmp_resume_breakpoint): Delete.
2951 (set_momentary_breakpoint_at_pc): New.
2952 (breakpoint_re_set_one): Don't delete bp_longjmp and
2953 bp_longjmp_resume breakpoints.
2954 (breakpoint_re_set): Don't create longjmp and longjmp-resume
2955 breakpoints.
2956
2957 * infrun.c (step_resume_breakpoint): Add comment.
2958 (struct execution_control_state): Delete handling_longjmp member.
2959 (init_execution_control_state). Don't clear handling_longjmp.
2960 (context_switch): Don't context switch handling_longjmp.
2961 (handle_inferior_event): If handling a bp_longjmp breakpoint,
2962 create a bp_longjmp_resume breakpoint, and set it as current
2963 step_resume_breakpoint, then step over the longjmp breakpoint. If
2964 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
2965 breakpoint, delete the longjmp-resume breakpoint, and stop
2966 stepping.
2967 (currently_stepping): Remove handling_longjmp from expression.
2968 (insert_step_resume_breakpoint_at_sal): Update comment.
2969 (insert_longjmp_resume_breakpoint): New.
2970
2971 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
2972 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
2973 declarations.
2974 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
2975 (set_longjmp_resume_breakpoint): Delete declaration.
2976
2977 * gdbthread.h (save_infrun_state): Remove handling_longjmp
2978 parameter.
2979 (load_infrun_state): Delete *handling_longjmp parameter.
2980 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
2981 Update body.
2982 (load_infrun_state): Delete *handling_longjmp parameter. Update
2983 body.
2984
2985 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
2986 (delete_longjmp_breakpoint_cleanup): New.
2987 (step_1): Call set_longjmp_breakpoint instead of
2988 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
2989 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
2990 (step_1_continuation): Pass thread id in the continuation args to
2991 step_once.
2992 (step_once): Add thread parameter. Pass thread id the the
2993 continuation.
2994
85cbf3d3
JK
29952008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2996
2997 Set CU BASE_ADDRESS already from partial DIEs.
2998 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
2999 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
3000 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
3001 from these variables if it was still unset.
3002
ff013f42
JK
3003 * Makefile.in: Update dependencies.
3004 * dwarf2read.c: Include "addrmap.h"
3005 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
3006 (dwarf2_ranges_read): New prototype.
3007 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
3008 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
3009 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
3010 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
3011 comment for it. Add the found ranges to RANGES_PST. New variable
3012 BASEADDR, initialize it the common way.
3013 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
3014 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
3015 HAS_RANGES_OFFSET for the later processing.
3016 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
3017 * symtab.c: Include "addrmap.h"
3018 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
3019 Move the psymtab locator into ...
3020 (find_pc_sect_psymtab_closer): ... a new function.
3021
a7f1256d
UW
30222008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
3023
3024 * arch-utils.c (gdbarch_update_p): Use default values for
3025 info.abfd and info.target_desc if they are NULL.
3026 (gdbarch_from_bfd): Remove assertion.
3027 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
3028 using the current target description.
3029 (gdbarch_info_fill): Do not use default values for info->abfd
3030 and info->target_desc.
3031
b2de52bb
JK
30322008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3033
3034 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
3035
515630c5
UW
30362008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
3037
3038 * inferior.h (read_pc_pid, write_pc_pid): Remove.
3039 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
3040
3041 * regcache.c (read_pc_pid): Remove, replace by ...
3042 (regcache_read_pc): ... this function.
3043 (write_pc_pid): Remove, replace by ...
3044 (regcache_write_pc): ... this function.
3045 (read_pc, write_pc): Update.
3046
3047 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
3048 write_pc_pid by regcache_read_pc and regcache_write_pc.
3049 (displaced_step_fixup): Likewise.
3050 (resume): Likewise. Use regcache arch instead of current_gdbarch.
3051 (prepare_to_proceed): Likewise.
3052 (proceed): Likewise.
3053 (adjust_pc_after_break): Likewise.
3054 (handle_inferior_event): Likewise.
3055
3056 * linux-nat.c (cancel_breakpoint): Likewise.
3057 * linux-thread-db.c (check_event): Likewise.
3058 * aix-thread.c (aix_thread_wait): Likewise.
3059 * tracepoint.c (trace_dump_command): Likewise.
3060
ebd3bcc1
JK
30612008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3062
3063 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
3064 SYMBOL_LOCATION_BATON.
3065
c47ffbe3
VP
30662008-05-04 Vladimir Prus <vladimir@codesourcery.com>
3067
f78bff48
VP
3068 * target.h (struct target_ops): New field to_auxv_parse.
3069 * auxv.c (default_auxv_parse): New, renamed from previous
3070 target_auxv_parse.
3071 (target_auxv_parse): Try to call target method. Fallback to
3072 default_auxv_parse if not found.
3073 * procfs.c (procfs_auxv_parse): New.
3074 (init_procfs_ops): On Solaris, in 64-bit mode, install
3075 procfs_auxv_parse.
c47ffbe3 3076
35076fa0
AN
30772008-05-03 Adam Nemet <anemet@caviumnetworks.com>
3078
3079 * symfile.c (add_symbol_file_command): Use paddress rather than
3080 hex_string to print the address.
3081
5b197912
UW
30822008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3083
3084 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
3085 return the null frame ID to terminate the backtrace.
3086
4a7622d1
UW
30872008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3088
3089 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
3090 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
3091 (SIG_FRAME_PC_OFFSET): Likewise.
3092 (SIG_FRAME_LR_OFFSET): Likewise.
3093 (SIG_FRAME_FP_OFFSET): Likewise.
3094 (rs6000_push_dummy_call): Likewise.
3095 (rs6000_return_value): Likewise.
3096 (rs6000_convert_from_func_ptr_addr): Likewise.
3097 (branch_dest, rs6000_software_single_step): Likewise.
3098 (deal_with_atomic_sequence): Rename to ...
3099 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
3100 Do not call branch_dest; inline required parts of that function.
3101 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
3102 with SYMBOL_LINKAGE_NAME.
3103 (struct reg, regsize): Delete.
3104 (read_memory_addr): Delete; inline into callers.
3105 (rs6000_skip_prologue): Move after skip_prologue.
3106 (skip_prologue): Remove prototype.
3107 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
3108 initialization as if this variable were true. Do not install
3109 ppc64_sysv_abi_adjust_breakpoint_address.
3110
3111 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
3112 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
3113 and "breakpoint.h".
3114 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
3115 (SIG_FRAME_PC_OFFSET): Likewise.
3116 (SIG_FRAME_LR_OFFSET): Likewise.
3117 (SIG_FRAME_FP_OFFSET): Likewise.
3118 (rs6000_push_dummy_call): Likewise.
3119 (rs6000_return_value): Likewise.
3120 (rs6000_convert_from_func_ptr_addr): Likewise.
3121 (branch_dest, rs6000_software_single_step): Likewise. Replace
3122 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
3123 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
3124 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
3125 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
3126 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
3127
3128 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
3129 (AIX_TEXT_SEGMENT_BASE): New macro.
3130 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
3131 by AIX_TEXT_SEGMENT_BASE.
3132
3133 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
3134 (struct gdbarch_tdep): Remove text_segment_base member.
3135 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
3136 ppc64_sysv_abi_adjust_breakpoint_address.
3137
3138 * Makefile.in (rs6000-tdep.o): Update dependencies.
3139 (rs6000-aix-tdep.o): Likewise.
3140
938f5214
TJB
31412008-05-03 Luis Machado <luisgpm@br.ibm.com>
3142 Thiago Jung Bauermann <bauerman@br.ibm.com>
3143
3144 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
3145 * doublest.c (convert_typed_floating): Fix typo in comment.
3146 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3147 * frame-unwind.h (frame_sniffer_ftype): Likewise.
3148 * frame.c (frame_unwind_address_in_block): Likewise.
3149 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
3150 * symtab.h (struct symbol): Likewise.
3151 * tramp-frame.h (struct trad_frame_cache): Likewise.
3152 * value.c (allocate_repeat_value): Likewise.
3153
0b02b92d
UW
31542008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3155
3156 * infrun.c (handle_inferior_event): Do not insert breakpoints at
3157 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
3158
d705c43c
PA
31592008-05-03 Pedro Alves <pedro@codesourcery.com>
3160
3161 * parse.c (parse_exp_in_context): Don't override
3162 expression_context_pc if get_selected_block returned a valid
3163 block.
3164
d6350901
DJ
31652008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
3166
3167 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
3168 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
3169 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
3170 Delete.
3171 * c-typeprint.c (c_type_print_base): Delete handling of template
3172 instantiations.
3173 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
3174 (METHOD_PTR_TO_VOFFSET): Delete.
3175 * defs.h (QUIT_FIXME): Delete.
3176 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
3177 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
3178 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
3179 ninstantiations, and instantiations.
3180 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
3181 (TYPE_FN_FIELD_INLINED): Delete.
3182 * srec.h (SREC_BINARY): Delete.
3183 * symtab.c (symbol_init_demangled_name): Delete.
3184 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
3185 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
3186 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
3187 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
3188 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
3189 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
3190 * target.h (enum thread_control_capabilities): Delete tc_switch.
3191 (target_can_switch_threads): Delete.
3192
30510692
DJ
31932008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
3194
3195 * Makefile.in (objfiles.o): Update.
3196 * exec.c (exec_set_section_address): Support p->addr != 0.
3197 * objfiles.c (objfile_relocate): Update exec_ops section
3198 addresses.
3199 * symfile.c (place_section): Move exec_set_section_address call...
3200 (default_symfile_offsets): ...to here.
3201
7284e1be
UW
32022008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3203
3204 * Makefile.in (ppc_linux_tdep_h): New macro.
3205 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
3206 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
3207 (powerpc_e500l_c): Likewise.
3208 (ppc-linux-nat.o): Update dependencies.
3209 (ppc-linux-tdep.o): Update dependencies.
3210 (rs6000-tdep.o): Update dependencies.
3211
3212 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
3213 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
3214 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
3215 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
3216 (tdesc_powerpc_e500): Remove.
3217
3218 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
3219 and "features/rs6000/powerpc-altivec64.c".
3220 (ppc_supply_reg, ppc_collect_reg): Make global.
3221 (variants): Use tdesc_powerpc_32 for "powerpc" and
3222 tdesc_powerpc_altivec64 for "powerpc64".
3223 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
3224
3225 * ppc-linux-tdep.h: New file.
3226
3227 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
3228 Include "features/rs6000/powerpc-32l.c".
3229 Include "features/rs6000/powerpc-altivec32l.c".
3230 Include "features/rs6000/powerpc-64l.c".
3231 Include "features/rs6000/powerpc-altivec64l.c".
3232 Include "features/rs6000/powerpc-e500l.c".
3233 (ppc_linux_supply_gregset): New function.
3234 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
3235 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
3236 (ppc64_linux_gregset): Likewise.
3237 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
3238 (ppc_linux_trap_reg_p): New function.
3239 (ppc_linux_write_pc): New function.
3240 (ppc_linux_core_read_description): New function.
3241 (ppc_linux_init_abi): Install ppc_linux_write_pc and
3242 ppc_linux_core_read_description. Install orig_r3 and trap
3243 registers if present in the target description.
3244 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
3245
3246 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
3247 (PT_ORIG_R3, PT_TRAP): Define if necessary.
3248 (ppc_register_u_addr): Handle orig_r3 and trap registers.
3249 (fetch_ppc_registers): Likewise.
3250 (store_ppc_registers): Likewise.
3251 (store_register): Likewise.
3252 (ppc_linux_read_description): Check whether AltiVec is supported.
3253 Check whether inferior is 32-bit or 64-bit. Return the appropriate
3254 Linux target description.
3255
3256 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
3257 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
3258 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
3259 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
3260 rs6000/powerpc-e500. Update -expedite variables accordingly.
3261
3262 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
3263 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
3264 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
3265 * features/rs6000/powerpc-e500.c: Regenerate.
3266 * features/rs6000/powerpc-32.c: Regenerate.
3267 * features/rs6000/powerpc-64.c: Regenerate.
3268
3269 * features/rs6000/power-linux.xml: New file.
3270 * features/rs6000/power64-linux.xml: New file.
3271 * features/rs6000/powerpc-32l.xml: New file.
3272 * features/rs6000/powerpc-altivec32l.xml: New file.
3273 * features/rs6000/powerpc-64l.xml: New file.
3274 * features/rs6000/powerpc-altivec64l.xml: New file.
3275 * features/rs6000/powerpc-e500l.xml: New file.
3276 * features/rs6000/powerpc-32l.c: New (generated) file.
3277 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
3278 * features/rs6000/powerpc-64l.c: New (generated) file.
3279 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
3280 * features/rs6000/powerpc-e500l.xml: New (generated) file.
3281
3282 * regformats/reg-ppc.dat: Remove.
3283 * regformats/reg-ppc64.dat: Remove.
3284 * regformats/rs6000/powerpc-32.dat: Remove.
3285 * regformats/rs6000/powerpc-64.dat: Remove.
3286 * regformats/rs6000/powerpc-e500.dat: Remove.
3287 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
3288 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
3289 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
3290 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
3291 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
3292
063bfe2e
VP
32932008-05-03 Pedro Alves <pedro@codesourcery.com>
3294
3295 * thread.c (delete_thread): Call observer_notify_thread_exit.
680b56ce
AS
3296 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
3297 thread_exit observer.
3298 (mi_thread_exit): New.
063bfe2e 3299
f132ba9d
TJB
33002008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3301
3302 * breakpoint.c (create_exception_catchpoint): Remove prototype
3303 for already deleted function.
3304 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
3305 * frame.h (show_stack_frame): Remove prototype.
3306 * stack.c (show_stack_frame): Remove empty, unused function.
3307 * source.c (symtab_to_fullname, print_source_lines): Small fix
3308 in comment.
3309 * value.c (show_values): Update comments to mention "show values"
3310 command instead of "info history".
3311
bccdca4a
UW
33122008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
3313
3314 * linespec.c: Include "target.h".
3315 (minsym_found): Handle minimal symbols pointing to function
3316 descriptors. Use find_function_start_pc.
3317 * minsyms.c (msymbol_objfile): New function.
3318 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
3319 to function descriptors.
3320 * symtab.c (fixup_section): Only use minimal symbol at the same
3321 address to determine section of a symbol.
3322 (find_function_start_pc): New function.
3323 (find_function_start_sal): Use it.
3324 * symtab.h (msymbol_objfile): Add prototype.
3325 (find_function_start_pc): Likewise.
3326 * value.c: Include "objfiles.h".
3327 (value_fn_field): Handle minimal symbols pointing to function
680b56ce 3328 descriptors.
bccdca4a
UW
3329 * Makefile.in (linespec.o): Update dependencies.
3330 (value.o): Likewise.
3331
de4d072f
JB
33322008-05-02 Joel Brobecker <brobecker@adacore.com>
3333
3334 * ada-lang.c (unwrap_value): Handle the case where the "F" field
3335 inside a PAD type is a bitfield.
3336
93d4208d
UW
33372008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
3338
3339 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
3340 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
3341 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
3342 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
3343 Allow typedefs when checking for function pointer arguments.
3344 Right-align small structs passed on the stack.
3345 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
3346 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
3347 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
3348
60c5725c
DJ
33492008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3350
3351 * Makefile.in (arm-tdep.o): Update.
3352 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
3353 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
3354 (arm_pc_is_thumb): Use mapping symbols.
3355 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
3356 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
3357 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
3358 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
3359 * gdbarch.sh: Add record_special_symbol.
3360 * gdbarch.c, gdbarch.h: Regenerated.
3361 * objfiles.c (struct objfile_data): Add cleanup member.
3362 (register_objfile_data_with_cleanup): New function, from
3363 register_objfile_data.
3364 (register_objfile_data): Use it.
3365 (objfile_free_data): Call clear_objfile_data.
3366 (clear_objfile_data): Call cleanup functions.
3367 * objfiles.h (register_objfile_data_with_cleanup): Declare.
3368
574dffa2
DJ
33692008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3370
3371 * objfiles.c (init_entry_point_info): Handle shared libraries.
3372
2c404490
DJ
33732008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3374
3375 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
3376 lowest_pc.
3377
237fc4c9
PA
33782008-05-02 Jim Blandy <jimb@codesourcery.com>
3379 Pedro Alves <pedro@codesourcery.com>
3380
3381 Implement displaced stepping.
3382
3383 * gdbarch.sh (max_insn_length): New 'variable'.
3384 (displaced_step_copy, displaced_step_fixup)
3385 (displaced_step_free_closure, displaced_step_location): New
3386 functions.
3387 (struct displaced_step_closure): Add forward declaration.
3388 * gdbarch.c, gdbarch.h: Regenerated.
3389
3390 * arch-utils.c: #include "objfiles.h".
3391 (simple_displaced_step_copy_insn)
3392 (simple_displaced_step_free_closure)
3393 (displaced_step_at_entry_point): New functions.
3394 * arch-utils.h (simple_displaced_step_copy_insn)
3395 (simple_displaced_step_free_closure)
3396 (displaced_step_at_entry_point): New prototypes.
3397
3398 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
3399 (I386_MAX_MATCHED_INSN_LEN): ... this.
3400 (i386_absolute_jmp_p, i386_absolute_call_p)
3401 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
3402 (i386_displaced_step_fixup): New functions.
3403 (struct i386_insn, i386_match_insn): Update.
3404 (i386_gdbarch_init): Set gdbarch_max_insn_length.
3405 * i386-tdep.h (I386_MAX_INSN_LEN): New.
3406 (i386_displaced_step_fixup): New prototype.
3407 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
3408 Register gdbarch_displaced_step_copy,
3409 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
3410 and gdbarch_displaced_step_location functions.
3411
3412 * infrun.c (debug_displaced): New variable.
3413 (show_debug_displaced): New function.
3414 (struct displaced_step_request): New struct.
3415 (displaced_step_request_queue, displaced_step_ptid)
3416 (displaced_step_gdbarch, displaced_step_closure)
3417 (displaced_step_original, displaced_step_copy)
3418 (displaced_step_saved_copy, can_use_displaced_stepping): New
3419 variables.
3420 (show_can_use_displaced_stepping, use_displaced_stepping)
3421 (displaced_step_clear, cleanup_displaced_step_closure)
3422 (displaced_step_dump_bytes, displaced_step_prepare)
3423 (displaced_step_clear_cleanup, write_memory_ptid)
3424 (displaced_step_fixup): New functions.
3425 (resume): Call displaced_step_prepare.
3426 (proceed): Call read_pc once, and remember the value. If using
3427 displaced stepping, don't remove breakpoints.
3428 (handle_inferior_event): Call displaced_step_fixup. Add some
3429 debugging output. When we try to step over a breakpoint, but get
3430 a signal to deliver to the thread instead, ensure the step-resume
3431 breakpoint is actually inserted. If a thread hop is needed, and
3432 displaced stepping is enabled, don't remove breakpoints.
3433 (init_wait_for_inferior): Call displaced_step_clear.
3434 (_initialize_infrun): Add "set debug displaced" command. Add
3435 "maint set can-use-displaced-stepping" command. Clear
3436 displaced_step_ptid.
3437 * inferior.h (debug_displaced): Declare variable.
3438 (displaced_step_dump_bytes): Declare function.
3439
3440 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
3441 dependencies.
3442
0428b8f5
DJ
34432008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3444
3445 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
3446 (arm_force_mode_string, arm_show_fallback_mode)
3447 (arm_show_force_mode): New.
3448 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
3449 arm_frame_is_thumb.
3450 (_initialize_arm_tdep): Add "set arm fallback-mode"
3451 and "set arm force-mode".
3452 * NEWS: Document new commands.
3453
d01a8610
AS
34542008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
3455
3456 * main.h (batch_silent): Declare.
3457 * event-top.c: Include main.h.
3458 (gdb_setup_readline): Remove extern batch_silent declaration.
3459 * infrun.c (normal_stop): Don't print source location when running in
3460 --batch-silent mode.
3461 * Makefile.in (event-top.o): Add main.h dependency.
3462
5009afc5
AS
34632008-05-02 Andreas Schwab <schwab@suse.de>
3464
3465 * target.h (struct target_ops): Add
3466 to_watchpoint_addr_within_range.
3467 (target_watchpoint_addr_within_range): New function.
3468 * target.c (update_current_target): Inherit
3469 to_watchpoint_addr_within_range, defaulting to
3470 default_watchpoint_addr_within_range.
3471 (default_watchpoint_addr_within_range): New function.
3472 (debug_to_watchpoint_addr_within_range): New function.
3473 (setup_target_debug): Set to_watchpoint_addr_within_range.
3474 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
3475 New function.
3476 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
3477 * breakpoint.c (watchpoints_triggered): Use
3478 target_watchpoint_addr_within_range.
3479
a15c5c83
PA
34802008-05-01 Pedro Alves <pedro@codesourcery.com>
3481
3482 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
3483 (i[34567]86-*-dicos*, x86_64-*-dicos*):
3484 Set gdb_osabi to GDB_OSABI_DICOS.
3485
3486 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
3487 * osabi.c (gdb_osabi_name): Add "DICOS".
3488
3489 * i386-dicos-tdep.c: New file.
3490
3491 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
3492 (ALLDEPFILES): Add i386-dicos-tdep.c.
3493 (i386-dicos-tdep.o): New rule.
3494
728c8f58
PA
34952008-05-01 Pedro Alves <pedro@codesourcery.com>
3496
3497 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
3498 and register the fork's PTID as a thread.
3499
604133b5
AR
35002008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
3501
3502 PR gdb/1665
3503 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
3504 assign its value to the breakpoint created.
3505 (create_breakpoints): Add breakpoint_ops argument and pass it
3506 to create_breakpoint call.
3507 (break_command_really): Add breakpoint_ops argument and pass/assign
3508 appropriately.
3509 (break_command_1): Pass NULL as ops argument.
3510 (set_breakpoint): Pass NULL as ops argument.
3511 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
3512 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
3513 catch and throw catchpoints.
5009afc5 3514
1f906a60 35152008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
1cded358
AR
3516
3517 PR gdb/2343
3518 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
3519 translate signal numeric value from the target to GDB's enum
3520 target_signal.
3521 * gdbarch.c, gdbarch.h: Regenerated.
3522 * gdbarch.sh: Added two new functions target_signal_from_host and
3523 target_signal_to_host.
680b56ce 3524 * target.h (default_target_signal_from_host,
1cded358
AR
3525 default_target_signal_to_host): New functions - declarations.
3526 * signals/signals.c (struct gdbarch): New declaration.
3527 (default_target_signal_to_host, default_target_signal_from_host): New
3528 functions.
3529
ed5e9466
DJ
35302008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
3531 Pedro Alves <pedro@codesourcery.com>
3532
3533 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
3534 Johnston <jjohnstn@redhat.com>.
3535
3536 * NEWS: Mention attach to stopped process fix.
3537 * infcmd.c (detach_command, disconnect_command): Discard the thread
3538 list.
3539 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
3540 attaching. Use signal_stop_state.
3541 (signal_stop_state): Check stop_soon.
3542 * linux-nat.c (kill_lwp): Declare earlier.
3543 (pid_is_stopped, linux_nat_post_attach_wait): New.
3544 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
3545 comments.
3546 (linux_nat_attach): Use linux_nat_post_attach_wait.
3547 (detach_callback, linux_nat_detach): Improve handling for signalled
3548 processes.
3549 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
3550 from the process ID.
3551 * Makefile.in (infcmd.o): Update.
3552
b39cc962
DJ
35532008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
3554
3555 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
3556 * arm-tdep.c (arm_frame_is_thumb): New.
3557 (arm_pc_is_thumb): Clarify comment.
3558 (thumb_analyze_prologue): Remove PC special case.
3559 (thumb_scan_prologue): Take a block_addr argument. Use it for
3560 find_pc_partial_function. Remove unused variables.
3561 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
3562 for find_pc_partial_function. Remove PC special case.
3563 (arm_prologue_prev_register): Add special handling for PC and CPSR.
3564 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
3565 (arm_get_next_pc): Use arm_frame_is_thumb.
3566 (arm_write_pc): Use CPSR_T instead of 0x20.
3567 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
3568 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
3569 (CPSR_T): Define.
3570 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
3571 DWARF2_FRAME_REG_FN.
3572 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
3573 DWARF2_FRAME_REG_FN.
3574 (struct dwarf2_frame_state_reg): Add FN to loc union.
3575
944f08ab
JB
35762008-05-01 Nick Roberts <nickrob@snap.net.nz>
3577
3578 * exec.c (print_section_info): Add missing '\n'.
3579
cfc01461
VP
35802008-05-01 Vladimir Prus <vladimir@codesourcery.com>
3581
3582 * thread.c (add_thread): Move observer call to ...
680b56ce 3583 (add_thread_silent): ... here.
cfc01461 3584
1af5d7ce
UW
35852008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
3586
3587 * rs6000-tdep.c: Update for unwinder changes.
3588 * ppcobsd-tdep.c: Likewise.
3589
f089c433
UW
35902008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
3591
3592 * s390-tdep.c: Update for unwinder changes.
3593
8d998b8f
UW
35942008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
3595
3596 * spu-tdep.c: Update for unwinder changes.
3597
5366653e
DJ
35982008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3599
3600 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
3601 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
3602 sparc64-linux-tdep.c: Update for unwinder changes.
3603
b8a22b94
DJ
36042008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3605
3606 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
3607 for unwinder changes.
3608 * mips-tdep.c: Likewise.
3609 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
3610 raw one.
3611
a262aec2
DJ
36122008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3613
3614 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
3615 unwinder changes.
3616
10458914
DJ
36172008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3618
3619 Update i386 and amd64 ports for unwinder changes.
3620
3621 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
3622 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
3623 (amd64_frame_unwind): Use default_frame_sniffer.
3624 (amd64_frame_sniffer): Delete.
3625 (amd64_sigtramp_frame_cache): Expect this_frame.
3626 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
3627 (amd64_sigtramp_frame_sniffer): Update signature.
3628 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
3629 (amd64_frame_base_address): Expect this_frame.
3630 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
3631 this_frame.
3632 (amd64_init_abi): Use set_gdbarch_dummy_id and
3633 frame_unwind_append_unwinder.
3634 * i386-tdep.c (i386_frame_cache): Expect this_frame.
3635 (i386_frame_this_id, i386_frame_prev_register): Update signature.
3636 (i386_frame_unwind): Use default_frame_sniffer.
3637 (i386_frame_sniffer): Delete.
3638 (i386_sigtramp_frame_cache): Expect this_frame.
3639 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
3640 (i386_sigtramp_frame_sniffer): Update signature.
3641 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
3642 (i386_frame_base_address): Update signature.
3643 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
3644 (i386_push_dummy_call): Update comment.
3645 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
3646 Expect this_frame.
3647 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
3648 and frame_unwind_append_unwinder.
3649 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
3650 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
3651 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
3652 i386nbsd-tdep.c: Update for unwinder changes.
3653
25492ce3
DJ
36542008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3655
3656 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
3657 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
3658 this_frame.
3659 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
3660 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
3661 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
3662 signature.
3663 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
3664 this_frame.
3665 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
3666 Update signature.
3667 * tramp-frame.h (struct tramp_frame): Update signature of init.
3668 * Makefile.in (trad-frame.o): Update.
3669
4a4e5149
DJ
36702008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3671
3672 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
3673 (execute_stack_op): Put this_frame in the baton.
3674 (execute_cfa_program): Take this_frame.
3675 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
3676 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
3677 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
3678 (dwarf2_frame_this_id): Adjust to work on this_frame.
3679 (dwarf2_signal_frame_this_id): Delete.
3680 (dwarf2_frame_prev_register): Update signature. Use new frame
3681 unwind methods.
3682 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
3683 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
3684 dwarf2_frame_sniffer.
3685 (dwarf2_append_unwinders): New.
3686 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
3687 this_frame.
3688 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
3689 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
3690 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
3691 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
3692 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
3693 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
3694 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
3695 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
3696 (dwarf2_append_unwinders): Declare.
3697 (dwarf2_frame_base_sniffer): Update declaration.
3698 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
3699 this_frame.
3700
669fac23
DJ
37012008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3702
3703 Convert frame unwinders to use the current frame and
3704 "struct value".
3705
3706 * frame.c (frame_debug): Make global.
3707 (get_frame_id): Pass this frame to unwinder routines.
3708 (frame_pc_unwind): Remove unused unwind->prev_pc support.
3709 (do_frame_register_read): Do not discard the return value of
3710 frame_register_read.
3711 (frame_register_unwind): Remove debug messages. Use
3712 frame_unwind_register_value.
3713 (frame_unwind_register_value, get_frame_register_value): New
3714 functions.
3715 (create_new_frame, get_frame_base_address, get_frame_locals_address)
3716 (get_frame_args_address, get_frame_type): Pass this frame to
3717 unwinder routines.
3718 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
3719 functions.
3720 * frame.h: Update comments.
3721 (frame_debug, frame_unwind_register_value, get_frame_register_value)
3722 (frame_prepare_for_sniffer): Declare.
3723 * frame-unwind.h: Update comments and parameter names.
3724 (default_frame_sniffer): Declare.
3725 (frame_prev_register_ftype): Return a struct value *.
3726 (struct frame_unwind): Remove prev_pc member.
3727 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
3728 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
3729 (frame_unwind_got_register, frame_unwind_got_memory)
3730 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
3731 * frame-base.h: Update comments and parameter names.
3732 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
3733 if necessary. Add debugging output.
3734 * sentinel-frame.c (sentinel_frame_prev_register)
3735 (sentinel_frame_this_id): Update for new signature.
3736 (sentinel_frame_prev_pc): Delete.
3737 (sentinel_frame_unwinder): Remove prev_pc.
3738 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
3739 prev_pc.
3740 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
3741 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
3742 (frame_unwind_append_sniffer): Delete.
3743 (frame_unwind_append_unwinder): New function.
3744 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
3745 from unwinders. Use frame_prepare_for_sniffer.
3746 (default_frame_sniffer, frame_unwind_got_optimized)
3747 (frame_unwind_got_register, frame_unwind_got_memory)
3748 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
3749 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
3750 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
3751 signature.
3752 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
3753 * gdbarch.c, gdbarch.c: Regenerated.
3754 * frame-base.c (default_frame_base_address)
3755 (default_frame_locals_address, default_frame_args_address): Update
3756 for new signature.
3757 (frame_base_find_by_frame): Pass this frame to unwinder routines.
3758 * infcall.c (call_function_by_hand): Update comments.
3759 * Makefile.in (frame-unwind.o): Update dependencies.
3760
9214ee5f
DJ
37612008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3762
3763 * ada-lang.c (ada_value_primitive_packed_val): Only check
3764 value_lazy for memory lvals.
3765 * findvar.c (value_of_register_lazy): New function.
3766 (locate_var_value): Only check value_lazy for memory lvals.
3767 * valarith.c (value_subscripted_rvalue): Likewise.
3768 * valops.c (value_fetch_lazy): Handle both memory and register
3769 lvals.
3770 (search_struct_field, value_slice): Only check value_lazy for memory
3771 lvals.
3772 * value.c (struct value): Update comment for lazy.
3773 (value_primitive_field): Only check value_lazy for memory lvals.
3774 * value.h (value_lazy): Update comment.
3775 (value_of_register_lazy): Declare.
3776
939643d7
DJ
37772008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3778
3779 * corefile.c (reopen_exec_file): Close any open files.
3780
1de34ab7
JB
37812008-04-29 Joel Brobecker <brobecker@adacore.com>
3782
3783 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
3784 show_memory_breakpoints to 1 while reading the instruction bundle.
3785
ea42b34a
JB
37862008-04-29 Joel Brobecker <brobecker@adacore.com>
3787
3788 * gdbarch.sh: Document the return_value method. Explain that
3789 the FUNCTYPE parameter might be NULL.
3790 * gdbarch.h: Regenerated.
3791 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
3792 type when calling using_struct_return, as this is unnecessary
3793 on this target.
3794
a0fe373c
JB
37952008-04-28 Joel Brobecker <brobecker@adacore.com>
3796
3797 * terminal.h (create_tty_session): Fix return type.
3798
c6446539
VP
37992008-04-26 Vladimir Prus <vladimir@codesourcery.com>
3800
3801 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
3802
2f069f6f
JB
38032008-04-26 Joel Brobecker <brobecker@adacore.com>
3804
3805 * breakpoint.c (condition_command, commands_from_control_command)
3806 (break_command_really): Minor reformatting.
3807
93b5768b
PA
38082008-04-25 Pedro Alves <pedro@codesourcery.com>
3809
3810 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
3811
436675d3
PA
38122008-04-25 Pedro Alves <pedro@codesourcery.com>
3813
3814 * amd64-tdep.c (amd64_get_longjmp_target): New.
3815 (amd64_init_abi): Register amd64_get_longjmp_target as
3816 gdbarch_get_longjmp_target callback.
3817 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
3818
78b6a731
PA
38192008-04-25 Pedro Alves <pedro@codesourcery.com>
3820
3821 * breakpoint.h (enum bpstat_what_main_action): Delete
3822 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
3823
3824 * breakpoint.c (clrs): Delete.
3825 (bpstat_what): Update table.
3826
3827 * infrun.c (handle_inferior_event): Remove
3828 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
3829
9e22b03a
VP
38302008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3831
3832 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
3833 Adjust all prototypes using mi_cmd_args_ftype to use
3834 mi_cmd_argv_ftype.
3835 (struct mi_cmd): Remove the args_func field.
3836 * mi/mi-cmds.c: Don't provide value for the args_func field.
3837 * mi/mi-main.c (mi_execute_async_cli_command)
3838 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
3839 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
3840 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
3841 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
3842 (mi_cmd_target_download): Adjust.
3843 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
3844 (mi_cmd_execute): Do not check for args_func.
3845 (mi_execute_async_cli_command): Adjust.
3846 * mi/mi-parse.c: Don't check for args_func.
3847
721c02de 38482008-04-24 Vladimir Prus <vladimir@codesourcery.com>
18a18393 3849
680b56ce
AS
3850 * breakpoint.c (bpstat_check_location)
3851 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
3852 New, extracted from bpstat_stop_status.
3853 (bpstat_stop_status): Use the above.
18a18393
VP
3854
38552008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3856
680b56ce
AS
3857 * mi/mi-main.c (last_async_command): Rename to current_token.
3858 (previous_async_command): Remove.
3859 (mi_cmd_gdb_exit): Adjust.
3860 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
3861 (mi_cmd_target_select): Adjust.
3862 (mi_cmd_execute): Don't set previous_async_command. Free token
3863 here even in async mode.
3864 (mi_execute_async_cli_command): Adjust.
3865 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
3866 token.
3867 (mi_load_progress): Adjust.
721c02de 3868
f13468d9
VP
38692008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3870
680b56ce
AS
3871 * infcmd.c (step_1_continuation): Always disable longjmp
3872 breakpoint if we're not going to do another step.
f13468d9 3873
f107f563
VP
38742008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3875
3876 exec_cleanup murder.
3877 * breakpoint.c (until_break_command_continuation): Add
3878 the 'error' parameter. Directly delete the breakoint as
3879 opposed to running cleanups.
3880 (until_break_command): Install continuation only
3881 after starting the target. Don't use exec cleanups,
3882 use ordinary cleanups. Discard cleanups is successfully
3883 started the target in async mode.
3884 (make_cleanup_delete_breakpoint): Remove.
3885 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
3886 declaration.
3887 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
3888 declarations.
3889 (struct continations): Add the 'error' parameter to the
3890 continuation_hook field.
3891 (add_continuation, do_all_continuations)
3892 (add_intermediate_continuation)
3893 (do_all_intermediate_continuations): Add the 'error' parameter.
3894 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
3895 * inf-loop.c (inferior_event_handler): Instead of calling
3896 discard_all_continuations, use do_all_continuations with 1 as
3897 'error' parameter. Pass 0 as 'error' parameter in existing uses
3898 of discard_all_continuations.
3899 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
3900 cleanups.
3901 (step_once): Install continuation only after resuming the target.
3902 (step_1_continuation): Disable longjmp breakpoint on error.
3903 (finish_command_continuation): Add the error parameter. Delete
3904 the finish breakpoint directly, do not use cleanups.
3905 (finish_command): Do not use exec_cleanups. Always setup
3906 continuation. For sync case, immediately run them.
3907 (attach_command_continuation): Add the error parameter.
3908 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
3909 remove step_resume_breakpoint -- adjust delete it directly.
3910 * interps.c (interp_set): Adjust call to do_all_continations.
3911 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
3912 do exec cleanups.
3913 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
3914 cleanups.
3915 (mi_cmd_execute): Do not use exec_cleanup.
3916 (mi_execute_async_cli_command): Simplify the string concatenation
3917 logic. Do no use exec cleanup.
3918 (mi_exec_async_cli_cmd_continuation): New parameter error.
3919 Free last_async_command.
3920 * top.c (command_line_handler_continuation): New parameter error.
3921 * utils.c (exec_cleanup_chain, make_exec_cleanup)
3922 (do_exec_cleanups): Remove.
3923 (add_continuation, do_all_continations)
3924 (add_intermediate_continuation)
3925 (do_all_intermediate_continuations): New parameter error.
3926
74960c60
VP
39272008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3928
3929 * breakpoint.h (bp_location_p): New typedef.
3930 Register a vector of bp_location_p.
3931 * breakpoint.c (always_inserted_mode)
3932 (show_always_inserted_mode): New.
3933 (unlink_locations_from_global_list): Remove.
3934 (update_global_location_list)
3935 (update_global_location_list_nothrow): New.
3936 (update_watchpoint): Don't free locations.
3937 (should_insert_location): New.
3938 (insert_bp_location): Use should_insert_location.
3939 (insert_breakpoint_locations): Copied from
3940 insert_breakpoints.
3941 (insert_breakpoint): Use insert_breakpoint_locations.
3942 (bpstat_stop_status): Call update_global_location_list
3943 when disabling breakpoint.
3944 (allocate_bp_location): Don't add to bp_location_chain.
3945 (set_raw_breakpoint)
3946 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
3947 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
3948 (enable_overlay_breakpoints, disable_overlay_breakpoints)
3949 (set_longjmp_resume_breakpoint)
3950 (enable_watchpoints_after_interactive_call_stop)
3951 (disable_watchpoints_before_interactive_call_start)
3952 (create_internal_breakpoint)
3953 (create_fork_vfork_event_catchpoint)
3954 (create_exec_event_catchpoint, set_momentary_breakpoint)
3955 (create_breakpoints, break_command_1, watch_command_1)
3956 (create_exception_catchpoint)
3957 (handle_gnu_v3_exceptions)
3958 (disable_breakpoint, breakpoint_re_set_one)
3959 (create_thread_event_breakpoint, create_solib_event_breakpoint)
3960 (create_ada_exception_breakpoint): : Don't call check_duplicates.
3961 Call update_global_location_list.
3962 (delete_breakpoint): Don't remove locations and don't
3963 try to reinsert them. Call update_global_location_list.
3964 (update_breakpoint_locations): Likewise.
3965 (restore_always_inserted_mode): New.
3966 (update_breakpoints_after_exec): Temporary disable
3967 always inserted mode.
3968 * Makefile.in: Update dependencies.
3969
3970 * infrun.c (proceed): Remove breakpoints while stepping
3971 over breakpoint.
3972 (handle_inferior_event): Don't remove or insert
3973 breakpoints.
3974 * linux-fork.c (checkpoint_command): Remove breakpoints
3975 before fork and insert after.
3976 (linux_fork_context): Remove breakpoints before switch
3977 and insert after.
3978 * target.c (target_disconnect, target_detach): Remove
3979 breakpoints from target.
3980
680b56ce 3981
d24317b4
VP
39822008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3983
3984 * breakpoint.c (print_one_breakpoint_location): In MI
3985 mode, report the location string the breakpoint was
3986 originally created with.
3987
ee967b5f
MG
39882008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
3989
3990 * Makefile.in (xtensa-tdep.o): Update dependencies.
3991 * configure.tgt (xtensa*): Update dependencies.
3992 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
3993 Local variable areg renamed to arreg.
3994 (areg_number): New function.
3995 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
3996 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
3997 replaced by arreg_number.
3998 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
3999 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
4000 (xtensa_scan_prologue): New function.
4001 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
4002 when ENTRY instraction hasn't been executed yet. Get the frame pointer
4003 value based on prologue analysis. Fix the bugs preventing WS and
4004 AR4-AR7/A11 registers from getting right values for intermediate frames,
4005 whose registers have been already spilled.
4006 (xtensa_frame_prev_register): Fix WS register value. Use are_number
4007 and arreg_number appropriately.
4008 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
4009 svr4_ilp32_fetch_link_map_offsets.
4010
09d71d23
AS
40112008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
4012
4013 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
4014 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
4015
fdc59709
PB
40162008-04-23 Paolo Bonzini <bonzini@gnu.org>
4017
680b56ce
AS
4018 * acinclude.m4: Add override.m4.
4019 * configure: Regenerate.
fdc59709 4020
0bcd0149
JK
40212008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4022
4023 * ada-lang.c (get_selections): Variable PROMPT made non-const and
4024 initialized with a trailing space now. Use PROMPT_ARG of
4025 COMMAND_LINE_INPUT instead of printing it ourselves.
4026
88d8a8e0
JB
40272008-04-22 Joel Brobecker <brobecker@adacore.com>
4028
4029 * NEWS: Document support for 64-bit core file.
4030
c055b101
CV
40312008-04-22 Corinna Vinschen <vinschen@redhat.com>
4032
4033 * NEWS: Add information on calling convention and new SH CLI options.
4034
4035 * sh-tdep.c (sh_cc_gcc): New static string.
4036 (sh_cc_renesas): Ditto.
4037 (sh_cc_enum): New static string array.
4038 (sh_active_calling_convention): New static string pointer denoting
4039 active user chosen ABI.
4040 (sh_is_renesas_calling_convention): New function to return function
4041 specific ABI, or user choice if necessary.
4042 (sh_use_struct_convention): Rename first argument and turn around its
4043 meaning. Check for renesas ABI and return accordingly.
4044 (sh_use_struct_convention_nofpu): New function.
4045 (sh_next_flt_argreg): Get function type as third parameter. Check
4046 for renesas ABI and choose floating registers accordingly.
4047 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
4048 struct return slot accordingly.
4049 (sh_push_dummy_call_nofpu): Ditto.
4050 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
4051 Evaluate ABI and give to sh_use_struct_convention_nofpu.
4052 (sh_return_value_fpu): Evaluate ABI and give to
4053 sh_use_struct_convention.
4054 (show_sh_command): New function.
4055 (set_sh_command): Ditto.
4056 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
4057 CLI command.
4058
4059 * gdbarch.sh (return_value): Add func_type argument.
4060 * gdbarch.c: Regenerate.
4061 * gdbarch.h: Ditto.
4062 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
4063 val_type so as not to collide with value_type function. Call
4064 using_struct_return with additional function type argument.
4065 * infcall.c (call_function_by_hand): Call using_struct_return and
4066 gdbarch_return_value with additional function type argument.
4067 * infcmd.c (print_return_value): Take addition func_type argument.
4068 Call gdbarch_return_value with additional function type argument.
4069 (finish_command_continuation): Call print_return_value with additional
4070 function type argument.
4071 (finish_command): Ditto.
4072 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
4073 additional function type argument.
4074 * stack.c (return_command): Call using_struct_return and
4075 gdbarch_return_value with additional function type argument.
4076 * value.c (using_struct_return): Take additional function type argument.
4077 * value.h (using_struct_return): Accommodate declaration.
4078 * alpha-tdep.c (alpha_return_value): Add func_type argument.
4079 * amd64-tdep.c (amd64_return_value): Ditto.
4080 * arm-tdep.c (arm_return_value): Ditto.
4081 * avr-tdep.c (avr_return_value): Ditto.
4082 * cris-tdep.c (cris_return_value): Ditto.
4083 * frv-tdep.c (frv_return_value): Ditto.
4084 * h8300-tdep.c (h8300_return_value): Ditto.
4085 (h8300h_return_value): Ditto.
4086 * hppa-tdep.c (hppa32_return_value): Ditto.
4087 (hppa64_return_value): Ditto.
4088 * i386-tdep.c (i386_return_value): Ditto.
4089 * ia64-tdep.c (ia64_return_value): Ditto.
4090 * iq2000-tdep.c (iq2000_return_value): Ditto.
4091 * m32c-tdep.c (m32c_return_value): Ditto.
4092 * m32r-tdep.c (m32r_return_value): Ditto.
4093 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
4094 * m68k-tdep.c (m68k_return_value): Ditto.
4095 (m68k_svr4_return_value): Ditto.
4096 * m88k-tdep.c (m88k_return_value): Ditto.
4097 * mep-tdep.c (mep_return_value): Ditto.
4098 * mips-tdep.c (mips_eabi_return_value): Ditto.
4099 (mips_n32n64_return_value): Ditto.
4100 (mips_o32_return_value): Ditto.
4101 (mips_o64_return_value): Ditto.
4102 * mn10300-tdep.c (mn10300_return_value): Ditto.
4103 * mt-tdep.c (mt_return_value): Ditto.
4104 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
4105 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
4106 (ppc_sysv_abi_broken_return_value): Ditto.
4107 (ppc64_sysv_abi_return_value): Ditto.
4108 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
4109 (ppc_sysv_abi_broken_return_value): Ditto.
4110 (ppc64_sysv_abi_return_value): Ditto.
4111 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
4112 * rs6000-tdep.c (rs6000_return_value): Ditto.
4113 * s390-tdep.c (s390_return_value): Ditto.
4114 * score-tdep.c (score_return_value): Ditto.
4115 * sh-tdep.c (sh_return_value_nofpu): Ditto.
4116 (sh_return_value_fpu): Ditto.
4117 * sh64-tdep.c (sh64_return_value): Ditto.
4118 * sparc-tdep.c (sparc32_return_value): Ditto.
4119 * sparc64-tdep.c (sparc64_return_value): Ditto.
4120 * spu-tdep.c (spu_return_value): Ditto.
4121 * v850-tdep.c (v850_return_value): Ditto.
4122 * vax-tdep.c (vax_return_value): Ditto.
4123 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
4124 * xtensa-tdep.c (xtensa_return_value): Ditto.
4125
4126 * gdbtypes.h (struct type): Add calling_convention member.
4127 * dwarf2read.c (read_subroutine_type): Add calling convention read
4128 from DW_AT_calling_convention attribute to function type.
4129
9eec4d1e
MD
41302008-04-22 Markus Deuling <deuling@de.ibm.com>
4131
4132 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
4133 multi_f77_subscript to support values from registers.
4134 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
4135 * value.h (value_subscripted_rvalue): Add prototype.
4136
4137 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
4138 Fix output.
4139 * f-valprint.c (f_val_print): Likewise.
4140
ef72380d
CS
41412008-04-21 Craig Silverstein <csilvers@google.com>
4142
4143 * dwarf2read.c (zlib_decompress_section): Define abfd in the
4144 !HAVE_ZLIB_H case.
4145
ff8e85c3
PA
41462008-04-21 Pedro Alves <pedro@codesourcery.com>
4147
4148 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
4149 section is not a code section.
4150
31fffb02
CS
41512008-04-19 Craig Silverstein <csilvers@google.com>
4152
4153 * NEWS: Add information on compressed debug sections.
4154
8e91f023
VP
41552008-04-19 Vladimir Prus <vladimir@codesourcery.com>
4156
4157 * mi/mi-cmd-var.c (varobj_update_one): Print new
4158 value for variable objects that changed type.
4159
603ba1de
VP
41602008-04-19 Vladimir Prus <vladimir@codesourcery.com>
4161
4162 * varobj.c (varobj_invalidate): Don't touch floating
4163 varobjs.
4164
7fc830e2
MK
41652008-04-19 Mark Kettenis <kettenis@gnu.org>
4166
4167 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
4168 (multiple_symbols_cancel): Remove extra const.
4169 * symtab.h: Likewise.
4170
bcbf8b68
NR
41712008-04-19 Nick Roberts <nickrob@snap.net.nz>
4172
4173 * interps.c (top_level_interpreter): Rename static variable...
4174 (top_level_interpreter_ptr): ...to this.
4175 (top_level_interpreter): New function.
4176
4177 * interps.h: New extern for top_level_interpreter.
4178
4179 * linespec.c: Include interps.h and mi/mi-cmds.h.
4180 (decode_line_2): When using MI, always set all breakpoints in menu.
4181
4182 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
4183
31fffb02 41842008-04-18 Craig Silverstein <csilvers@google.com>
233a11ab
CS
4185
4186 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
4187 * config.in, configure: Regenerate.
4188 * dwarf2read.c: Include zlib.h if present.
4189 Modified *_SECTION macros.
4190 (section_is_p): New.
4191 (dwarf2_locate_sections): Use section_is_p instead of strcmp
4192 (dwarf2_resize_section): New.
4193 to determine whether a given section has a given name.
4194 (zlib_decompress_section): New.
4195 (dwarf2_read_section): Read the compressed section if present
4196 in the binary.
4197 * MAINTAINERS: Added myself to section Write After Approval.
bcbf8b68 4198
a03b3a97
TJB
41992008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
4200
4201 * defs.h (exec_set_section_offsets): Remove prototype.
4202 * exec.c (exec_set_section_offsets): Remove function.
4203
9e386756
JB
42042008-04-18 Joel Brobecker <brobecker@adacore.com>
4205
4206 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
4207 in the search for the matching symbol.
4208
2ec93238
MK
42092008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
4210
4211 * breakpoint.c (update_watchpoint): Always reparse
4212 condition.
4213
e9bbd7c5
JB
42142008-04-17 Joel Brobecker <brobecker@adacore.com>
4215
4216 * breakpoint.c (print_one_breakpoint_location): Make sure to print
4217 the breakpoint address only once.
4218
475bbd17
JB
42192008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
4220
4221 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
4222 rather than a hard-coded architecture, for xcoff executables.
4223
86991504
DE
42242008-04-17 Doug Evans <dje@google.com>
4225
4584e32e
DE
4226 * buildsym.c (watch_main_source_file_lossage): New fn.
4227 (end_symtab): Call it.
4228
86991504
DE
4229 * source.c (find_and_open_source): Add some comments clarifying
4230 handling of FULLNAME argument. Make static. Remove pointless
4231 xstrdup/xfree.
4232
0a320680
PA
42332008-04-17 Pedro Alves <pedro@codesourcery.com>
4234
4235 * inf-loop.c (inferior_event_handler): Also run the intermediate
4236 continuations in the INF_EXEC_COMPLETE case.
4237
700b53b1
TT
42382008-04-16 Tom Tromey <tromey@redhat.com>
4239
4240 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
4241 (set_cmd_async_ok, get_cmd_async_ok): Declare.
4242 * cli/cli-decode.c (set_cmd_async_ok): New function.
4243 (get_cmd_async_ok): New function.
4244 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
4245 "show" as async-ok.
4246 * top.c (execute_command): Use get_cmd_async_ok.
4247 * infcmd.c: Include cli/cli-decode.h.
4248 (_initialize_infcmd): Mark "interrupt" as async-ok.
4249 * Makefile.in (infcmd.o): Depend on cli_decode_h.
4250
dacec2a8
DJ
42512008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
4252
4253 PR gdb/2445
4254 * exec.c: Correct "arch-utils.h" include.
4255
1f906a60 42562008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
2cec12e5
AR
4257
4258 PR gdb/2424
4259 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
4260 to allow printing to 'see' real reason of stop. This fixes PR 2424.
4261 * breakpoint.c (bpdisp_texst): New function. The function takes over
4262 the role of bpstats static array in print_one_breakpoint_location.
4263 (print_it_typical): Print "Temporary breakpoint" instead
4264 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
4265 protocols, print disp field.
4266 (print_one_breakpoint_location): Removed bpdisps static definition.
4267 Call new bpstat_text function to get value for 'disp' field.
4268 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
4269
4d7b71aa
DJ
42702008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
4271
4272 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
4273 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
4274 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
4275 * gnulib/Makefile.in: Regenerate.
4276
aa11fd3f
DJ
42772008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4278
4279 * Makefile.in (GNULIB_H): New. Trigger all-lib.
4280 (defs_h): Use $(GNULIB_H).
4281 (all-lib): Depend on gnulib/Makefile.
4282 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
4283 * config.in, gnulib/Makefile.in: Regenerated.
4284
e28b3332
DJ
42852008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4286
4287 * Makefile.in (LIBGNU, INCGNU): Define.
4288 (INTERNAL_CFLAGS_BASE): Add INCGNU.
4289 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
4290 (CLEANDIRS): New.
4291 ($(LIBGNU), all-lib): New rules.
4292 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
4293 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
4294 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
4295 * gnulib: New directory, from gnulib-tool.
4296 * configure, aclocal.m4: Regenerated.
4297
e3bc4218
DJ
42982008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4299
4300 * linux-thread-db.c (have_threads_callback): Check thread->private.
4301
fcacd99f
VP
43022008-04-13 Nick Roberts <nickrob@snap.net.nz>
4303 Vladimir Prus <vladimir@codesourcery.com>
4304
4305 Fix @-varobjs.
680b56ce
AS
4306 * varobj.c (value_of_root): Update the expression for
4307 floating varobjs.
4308 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
4309 report that.
fcacd99f 4310
de051565
MK
43112008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
4312
4313 * mi/mi-cmd-var.c: Include "mi-getopt.h".
4314 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
4315 (mi_cmd_var_set_format): Use new mi_parse_format.
4316 (mi_cmd_var_evaluate_expression): Support for -f option to specify
4317 format.
4318 * Makefile.in (mi-cmd-var.o): Update dependencies.
4319
4320 * varobj.h (varobj_get_formatted_value): Declare.
4321 * varobj.c (my_value_of_variable): Added format parameter.
4322 (cplus_value_of_variable): Likewise.
4323 (java_value_of_variable): Likewise.
4324 (c_value_of_variable): Likewise. Evaluate expression based
4325 on format parameter.
4326 (struct language_specific): Add format parameter to function member
4327 *value_of_variable.
4328 (varobj_get_formatted_value): New.
4329 (varobj_get_value): Added format parameter to method call.
680b56ce 4330
56953f80
JB
43312008-04-08 Joel Brobecker <brobecker@adacore.com>
4332
4333 * stabsread.c (cleanup_undefined_types_noname): Manually set the
4334 instance flags of the undefined type before calling replace_type.
4335
e4e33b9e
VP
43362008-04-08 Vladimir Prus <vladimir@codesourcery.com>
4337
4338 * target.h (enum strata): Remove the download_stratum.
680b56ce 4339
92b5c263
DE
43402008-04-07 Doug Evans <dje@google.com>
4341
4342 * buildsym.h (last_source_file): Add dwarf info to comment.
4343 (last_source_start_addr): Ditto.
4344
effa26a9
PA
43452008-04-07 Pedro Alves <pedro@codesourcery.com>
4346
4347 * alphanbsd-tdep.c: Include "target.h".
4348 * mn10300-tdep.c: Include "target.h".
4349 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
4350
2b2d9e11
VP
43512008-04-06 Vladimir Prus <vladimir@codesourcery.com>
4352
4353 Fix breakpoint condition that use member variables.
680b56ce
AS
4354 * valops.c (check_field): Remove.
4355 (check_field_in): Rename to check_field.
4356 (value_of_this): Use la_name_of_this.
4357 * value.h (check_field): Adjust prototype.
4358
4359 * language.h (la_value_of_this): Rename to la_name_of_this.
4360 * language.c (unknown_language_defn): Specify "this" for
4361 name_of_this.
4362 (auto_language_defn): Likewise.
4363 (local_language_defn): Likewise.
4364 * ada-lang.c (ada_language_defn): Adjust comment.
4365 * c-lang.c (c_language_defn): Adjust comment.
4366 (cplus_language_defn): Specify "this" for name_of_this.
4367 (asm_language_defn): Adjust comment.
4368 (minimal_language_defn): Adjust comment.
4369 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
4370 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
4371 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
4372 * objc-lang.c (objc_language_defn): Specify "self" for
4373 name_of_this.
4374 * p-lang.c (pascal_language_defn): Specify "this" for
4375 name_of_this.
4376 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
4377
4378 * symtab.c (lookup_symbol_aux): Lookup "this" in the
4379 proper scope, and check for field in type of "this", without
4380 trying to create a value.
2b2d9e11 4381
a13e061a
PA
43822008-04-04 Pedro Alves <pedro@codesourcery.com>
4383
4384 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
4385 (mi_error_message): Delete declaration.
4386 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
4387 returning MI_CMD_ERROR.
4388 * mi/mi-main.c (mi_error_message): Delete.
4389 (mi_cmd_exec_interrupt):
4390 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4391 (mi_cmd_thread_info): Call error instead of returning
4392 MI_CMD_ERROR.
4393 (mi_cmd_data_list_register_values): Call error instead of
4394 returning MI_CMD_ERROR. Adapt to new get_register interface.
4395 (get_register): Change return typo to void. Call error instead of
4396 returning MI_CMD_ERROR.
4397 (mi_cmd_data_write_register_values): Call error instead of
4398 returning MI_CMD_ERROR.
4399 (mi_cmd_list_features): Return MI_CMD_DONE.
4400 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
4401 (mi_execute_command): Always print exceptions with -error.
4402
aad4b048
JB
44032008-04-04 Joel Brobecker <brobecker@adacore.com>
4404
4405 * NEWS: Mention new commands set/show multiple-symbols.
4406
717d2f5a
JB
44072008-04-03 Joel Brobecker <brobecker@adacore.com>
4408
4409 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
4410 (multiple_symbols_cancel): New constants.
4411 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
4412 (multiple_symbols_select_mode): New function.
4413 (_initialize_symtab): Add new set/show multiple-symbols commands.
4414 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
4415 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
4416 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
4417 setting.
4418 * linespec.c (decode_line_2): Likewise.
4419
f73634e5
DE
44202008-04-03 Doug Evans <dje@sebabeach.org>
4421
4422 * symtab.h (enum free_code): Delete free_contents, unused.
4423 * symmisc.c (free_symtab_block): Delete.
4424 (free_symtab, case free_code): Delete.
4425
1f906a60 44262008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6af87b03
AR
4427
4428 * valops.c (value_cast_structs): New function. Cast related
680b56ce 4429 STRUCT types up/down and return cast value. The body of this
6af87b03
AR
4430 function comes mostly from value_cast_pointers.
4431 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
4432 to value_cast_structs. Now value_cast_pointers needs only create
4433 appropriate reference after using value_cast_structs for actual
4434 casting.
4435 (value_cast): Handle references.
4436
61ad90e1
MK
44372008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
4438
4439 * MAINTAINERS: Added myself to section Write After Approval.
4440
b7d038ae
DJ
44412008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4442
4443 * ia64-tdep.c (examine_prologue): Correct array access.
4444
1f906a60 44452008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
c836824f
AR
4446
4447 * cp-support.c (first_component_command): Return if no arguments.
4448
df3ac606
CD
44492008-03-28 Carlos O'Donell <carlos@codesourcery.com>
4450
4451 * ser-mingw.c (ser_windows_open): Open requested name.
4452
ca933485
AR
44532008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
4454
4455 * MAINTAINERS: Added myself.
4456
5f667f2d
PA
44572008-03-28 Pedro Alves <pedro@codesourcery.com>
4458
4459 * target.c (find_default_run_target): Allow a NULL `do_mesg'
4460 parameter. If it is NULL, don't call error.
4461 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
4462 `do_mesg' parameter to find_default_run_target. If no target was
4463 found, return 0.
4464
e741f4d4
DJ
44652008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
4466
4467 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
4468 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
4469 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
4470 Delete.
4471 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
4472
f66d8205 44732008-03-27 Joel Brobecker <brobecker@adacore.com>
4474
4475 GDB 6.8 released.
4476
221c031f
UW
44772008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
4478
4479 * features/Makefile (%.dat): Set xmltarget to the base filename
4480 of the XML source, without subdirectory.
4481 * regformats/rs6000/powerpc-32.dat: Regenerate.
4482 * regformats/rs6000/powerpc-64.dat: Regenerate.
4483 * regformats/rs6000/powerpc-e500.dat: Regenerate.
4484
40c58d95
MD
44852008-03-27 Markus Deuling <deuling@de.ibm.com>
4486
4487 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
4488 objfile arch.
4489
bb1ec7d2
NR
44902008-03-27 Nick Roberts <nickrob@snap.net.nz>
4491
4492 * mi/mi-main.c (enum captured_mi_execute_command_actions):
4493 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
4494
5e2b427d
UW
44952008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4496
4497 * objfiles.h (struct objfile): New GDBARCH member.
4498 (get_objfile_arch): Add prototype.
4499 * objfiles.c: Include "arch-utils.h".
4500 (allocate_objfile): Look up gdbarch associated with bfd.
4501 (get_objfile_arch): New function.
4502 * Makefile (objfiles.o): Update dependencies.
4503
4504 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
4505 by objfile arch.
4506 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
4507 by frame arch.
4508 (locexpr_describe_location): Replace current_gdbarch by
4509 objfile arch.
4510 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
4511 (dwarf2_add_field): Likewise.
4512 (read_tag_pointer_type): Likewise.
4513 (read_base_type): Likewise.
4514 (new_symbol): Likewise.
4515
4516 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
4517 (decode_base_type, decode_function_type): Likewise.
4518 (coff_read_struct_type, coff_read_enum_type): Likewise.
4519 (coff_symtab_read): Replace current_gdbarch by objfile arch.
4520 (decode_base_type): Likewise.
4521 (coff_read_enum_type): Likewise.
4522 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
4523 (coff_read_enum_type): Likewise.
4524
4525 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
4526 (end_psymtab): Likewise.
4527 (process_one_symbol): Likewise.
4528
4529 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
4530 (parse_procedure): Likewise.
4531 (parse_partial_symbols): Likewise.
4532
4533 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
4534
4535 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
4536 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
4537 built-in types.
4538 (read_range_type): Replace current_gdbarch by objfile arch. Replace
4539 static range_index_type by built-in type.
4540 (read_one_struct_field): Replace current_gdbarch by objfile arch.
4541 (read_enum_type): Likewise.
4542
4543 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
4544 objfile arch.
4545
5a413362
VP
45462008-03-26 Vladimir Prus <vladimir@codesourcery.com>
4547
4548 * varobj.h (varobj_floating_p): Declare.
4549 * varobj.c (varobj_floating_p): New.
4550 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
4551 '@' as the name, update all floating varobjs.
4552
a5defcdc
VP
45532008-03-26 Vladimir Prus <vladimir@codesourcery.com>
4554
4555 * varobj.c (struct varobj_root): Rename use_selected_frame to
4556 floating, and clarify the meaning.
4557 (varobj_create, varobj_update, new_root_variable): Adjust.
4558 (value_of_root): Don't use type_changed as in variable,
4559 adjust comment.
4560 (c_value_of_root): Adjust.
5a413362 4561
403fe197
PA
45622008-03-25 Pedro Alves <pedro@codesourcery.com>
4563
4564 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
4565 gdb's thread list.
4566 (linux_nat_wait): Add main lwp to gdb's thread list.
4567 * linux-thread-db.c (find_new_threads_callback): Also attach to
4568 already listed threads which thread_db didn't know about yet.
4569
710151dd
PA
45702008-03-25 Pedro Alves <pedro@codesourcery.com>
4571
4572 * linux-nat.c (drain_queued_events): Fix comment typo.
4573 (linux_nat_attach): In async mode, don't rely on storing a pending
4574 status. Instead place the wait status on the pipe.
4575 (linux_nat_resume): Remove unreacheable shortcut code in async
4576 mode.
4577 (stop_wait_callback): In async mode, don't store pending status.
4578 Instead, cancel breakpoints or resend the signal appropriatelly.
4579 (cancel_breakpoint): New, refactored from
4580 cancel_breakpoints_callback.
4581 (cancel_breakpoints_callback): Call cancel_breakpoint.
4582 (pipe_to_local_event_queue): Remove special token processing.
4583 (linux_nat_wait): Issue an internal error if a pending status is
4584 found in async mode.
4585
807bddf3
DJ
45862008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4587
4588 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
4589
c5b48eac
VP
45902008-03-24 Nick Roberts <nickrob@snap.net.nz>
4591 Vladimir Prus <vladimir@codesourcery.com>
4592
680b56ce
AS
4593 * varobj.c (struct varobj_root): New component thread_id.
4594 (varobj_get_thread_id, check_scope): New functions.
4595 (c_value_of_root): Use check_scope. Switch to the
c5b48eac
VP
4596 proper thread if necessary.
4597
680b56ce 4598 * varobj.h (varobj_get_thread_id): New extern.
c5b48eac 4599
680b56ce 4600 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
c5b48eac 4601
12f4afab
DJ
46022008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
4603
4604 PR gdb/544
4605 * top.c: Revert 2008-03-21 changes.
4606
6208b47d
VP
46072008-03-23 Vladimir Prus <vladimir@codesourcery.com>
4608
4609 * thread.c (make_cleanup_restore_current_thread): Make it
4610 globally visible.
4611 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
4612 * varobj.c (varobj_update): Don't save/restore frame.
4613 (c_value_of_root): Save/restore thread and frame here,
4614 using make_cleanup_restore_current_thread.
4615 * Makefile.in: Update dependecies.
4616
44a67aa7
VP
46172008-03-23 Vladimir Prus <vladimir@codesourcery.com>
4618
680b56ce
AS
4619 * varobj.c (struct varobj_root): Clarify
4620 comment on the frame field.
4621 (varobj_create): Don't set frame if we have no
4622 block.
44a67aa7 4623
b562a0cb
DJ
46242008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4625
4626 PR gdb/544
4627 Suggested by Jan Kratochvil:
4628 * top.c (gdb_rl_operate_and_get_next_completion): Call
4629 rl_redisplay_function.
4630 (gdb_rl_redisplay): New.
4631 (init_main): Set rl_redisplay_function.
4632
ed1bd5f5
JB
46332008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
4634
4635 * aix-thread.c (pdc_read_regs): Fix compiler warning.
4636 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
4637 (store_regs_kernel_thread): Likewise.
4638
b84876c2
PA
46392008-03-21 Pedro Alves <pedro@codesourcery.com>
4640
4641 Linux native async support.
4642
4643 * target.h (struct target_ops): Delete to_async_mask_value and add
4644 to_async_mask.
4645 (target_is_async_p, target_async): Formatting.
4646 (target_async_mask_value): Delete.
4647 (target_async_mask): Delete function declaration, and add new
4648 target macro with the same name.
4649
4650 * target.c (update_current_target): Replace to_async_mask_value by
4651 to_async_mask. Default to_async_mask to return_one.
4652 (target_async_mask): Delete.
4653 (find_default_can_async_p, find_default_is_async_p): New.
4654 (init_dummy_target): register find_default_can_async_p and
4655 find_default_is_async_p on the dummy target.
4656
4657 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
4658 (debug_linux_nat_async): New global.
4659 (show_debug_linux_nat_async): New function.
4660 (linux_nat_async_enabled, linux_nat_async_mask_value)
4661 (linux_nat_event_pipe, linux_nat_num_queued_events)
4662 (linux_nat_async_events_enabled): New globals.
4663 (struct waitpid_result): New struct.
4664 (waitpid_queue): New global.
4665 (queued_waitpid, push_waitpid, drain_queued_events): New.
4666 (my_waitpid): Call queued_waitpid.
4667 (linux_child_follow_fork): Disable async events during the call.
4668 (blocked_mask): Delete.
4669 (sync_sigchld_action, async_sigchld_action): New globals.
4670 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
4671 async mode, block events during the call.
4672 (linux_nat_create_inferior): New.
4673 (linux_nat_attach): In sync mode, restore the mask states. In
4674 async mode, wake the event loop immediatelly.
4675 (detach_callback): Drain all queued events of the lwp we're
4676 detaching from.
4677 (linux_nat_detach): Block async mode, and drain events of the main
4678 process.
4679 (linux_nat_resume): If in async mode, mask async events during the
4680 call. If short circuiting, force event loop to wake up. If
4681 resuming, set target_executing, and register target events in the
4682 event loop.
4683 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
4684 (linux_nat_wait): In async mode, block events during the call.
4685 Only enable/disable passing SIGINT to the inferior in sync mode.
4686 Get events from local waitpid queue. If no interesting events was
4687 found, return to events loop. Reregister target events in the
4688 event loop on exit. In sync mode, no need to reblock SIGCHLD.
4689 (linux_nat_kill): Disable events on entry.
4690 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
4691 here. Detach async mode from the event loop if there are no more
4692 forks available, otherwise leave it on.
4693 (sigchld_handler): Assure this is called only in sync mode.
4694 (linux_async_permitted, linux_async_permitted_1): New globals.
4695 (set_maintenance_linux_async_permitted)
4696 (show_maintenance_linux_async_permitted): New functions.
4697 (linux_nat_is_async_p, linux_nat_can_async_p)
4698 (linux_nat_async_mask): New.
4699 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
4700 (get_pending_events, async_sigchld_handler): New.
4701 (linux_nat_async_events): New.
4702 (async_terminal_is_ours): New global.
4703 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
4704 (async_client_callback, async_client_context): New.
4705 (linux_nat_async_file_handler, linux_nat_async)
4706 (linux_nat_disable_async, linux_nat_enable_async): New.
4707 (linux_nat_add_target): Register linux_nat_create_inferior,
4708 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
4709 linux_nat_async_mask, linux_nat_terminal_inferior and
4710 linux_nat_terminal_ours.
4711 (_initialize_linux_nat): Remove local action variable, and update
4712 code that used it to use sync_sigchld_action. Add new
4713 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
4714 set/show command in the maintenance class. Add new "linux-async"
4715 maintenance set/show command. Block SIGCHLD by default. Setup
4716 async_sichld_action, and sync_sigchld_action. Install the default
4717 async mode.
4718 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
4719 the cancel signals.
4720
4721 * linux-thread-db.c (re_check_for_thread_db): New.
4722 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
4723 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
4724 (thread_db_async_mask): New.
4725 (init_thread_db_ops): Register thread_db_can_async_p,
4726 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
4727
4728 * remote.c (remote_async_mask_value): New.
4729 (remote_return_zero): New.
4730 (init_remote_ops): Register remote_return_zero as callbacks of
4731 to_can_async_p and to_is_async_p.
4732 (remote_can_async_p, remote_is_async_p, remote_async): Update to
4733 use remote_async_mask_value.
4734 (remote_async_mask): New.
4735 (init_remote_async_ops): Remove to_async_mask_value setting and
4736 register remote_async_mask as to_async_mask callback in
4737 remote_async_ops.
4738
4739 * Makefile.in (linux-nat.o): Update.
4740
17faa917
DJ
47412008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4742
4743 * gdbthread.h (add_thread_with_info): New.
4744 * linux-thread-db.c: Add some documentation.
4745 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
4746 (struct private_thread_info): Remove th_valid and ti_valid.
4747 Replace ti with tid.
4748 (thread_get_info_callback): Do not add TID to the new ptid. Do
4749 not cache th or ti.
4750 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
4751 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
4752 new PTID.
4753 (attach_thread): Handle an already-existing thread. Use
4754 add_thread_with_info. Cache the th and tid.
4755 (detach_thread): Verify that private was set. Remove verbose
4756 argument and printing. Update caller.
4757 (thread_db_detach): Do not adjust inferior_ptid.
4758 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
4759 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
4760 (thread_db_wait): Do not use lwp_from_thread.
4761 (thread_db_pid_to_str): Use the cached TID.
4762 (thread_db_extra_thread_info): Check that private is set.
4763 (same_ptid_callback): Delete.
4764 (thread_db_get_thread_local_address): Do not use it or check
4765 is_thread. Check that private is set. Assume that the thread
4766 handle is already cached.
4767 (init_thread_db_ops): Remove to_resume and to_kill.
4768 * thread.c (add_thread_with_info): New.
4769 (add_thread): Use it.
4770 * linux-nat.c (find_thread_from_lwp): Delete.
4771 (exit_lwp): Do not use it. Check print_thread_events. Print before
4772 deleting the thread.
4773 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
4774 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
4775 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
4776 printf_unfiltered for thread exits.
4777 * procfs.c (procfs_wait): Likewise.
4778
6214f497
DJ
47792008-03-21 Chris Demetriou <cgd@google.com>
4780
4781 * symtab.c (rbreak_command): Quote symbol name before passing
4782 it to break_command.
4783
63092375
DJ
47842008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4785
4786 * eval.c (evaluate_subexp_for_address): Clarify error message.
4787 Use value_must_coerce_to_target.
4788 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
4789 * valops.c (value_assign): Call value_coerce_to_target when
4790 assigning to anything but internalvars. Leave GDB-side arrays
4791 as arrays when assigning to internalvars.
4792 (value_must_coerce_to_target, value_coerce_to_target): New.
4793 (value_coerce_array, value_addr): Call value_coerce_to_target.
4794 (value_array): Create the array in GDB's memory instead of
4795 the inferior's.
4796 * value.h (value_must_coerce_to_target, value_coerce_to_target):
4797 Declare.
4798
b21991b0
DJ
47992008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4800
4801 * top.c (quit_confirm): Warn that we will kill the program.
4802
49a834f9
PA
48032008-03-19 Pedro Alves <pedro@codesourcery.com>
4804
4805 * inflow.c (terminal_ours_1): Guard access to
4806 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
4807
ae0d2f24
UW
48082008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
4809 Jim Blandy <jimb@codesourcery.com>
4810 Daniel Jacobowitz <drow@false.org>
4811
4812 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
4813 (dwarf2_read_address): Update prototype.
4814
4815 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
4816 (signed_address_type): Likewise.
4817 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
4818 (execute_stack_op): Update calls to unsigned_address_type,
4819 signed_address_type and dwarf2_read_address. Fix implementation
4820 of DW_OP_deref_size.
4821
4822 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
4823 (dwarf2_per_cu_addr_size): Likewise.
4824 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
4825 (struct dwarf2_loclist_baton): Likewise.
4826
4827 * dwarf2loc.c (find_location_expression): Update calls to
4828 dwarf2_read_address. Use dwarf2_per_cu_objfile and
4829 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
4830 (locexpr_describe_location): Likewise.
4831 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
4832 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
4833 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
4834 to dwarf2_per_cu_addr_size (per_cu).
4835 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
4836 (loclist_read_variable): Likewise.
4837 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
4838
4839 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
4840 instead of baton->objfile.
4841 (dwarf2_per_cu_obfile): New function.
4842 (dwarf2_per_cu_addr_size): Likewise.
4843
4844 * dwarf2-frame.c (struct comp_unit): Move higher.
4845 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
4846 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
4847 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
4848 parameter by using fde->eh_frame_p. Use read_encoded_value
4849 to implement DW_CFA_set_loc.
4850 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
4851 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
4852 execute_stack_op and execute_cfa_program.
4853 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
4854 (size_of_encoded_value): Remove.
4855 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
4856 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
4857 (add_cie): Set cie->unit backlink.
4858 (decode_frame_entry_1): Set cie->addr_size. Update calls to
4859 read_encoded_value.
4860 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
4861
1c8201d1
MD
48622008-03-17 Markus Deuling <deuling@de.ibm.com>
4863
4864 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
4865 gdbarch_bfd_arch_info.
4866
46bba1ef
JB
48672008-03-17 Joel Brobecker <brobecker@adacore.com>
4868
4869 * aix-thread.c (pdc_read_regs): Minor reformatting.
4870
0bcd3e20
VP
48712008-03-17 Vladimir Prus <vladimir@codesourcery.com>
4872
4873 * thread.c (print_thread_info): Don't insist
4874 on having current thread if there are no
4875 threads at all.
4876
9356cf8d
PA
48772008-03-17 Pedro Alves <pedro@codesourcery.com>
4878
4879 * infcmd.c (attach_command_post_wait)
4880 (attach_command_continuation): New.
4881 (attach_command): Support background async execution, and async
4882 execution in synchronous mode.
4883
5c3ce3f7
DJ
48842008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
4885
4886 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
4887 * symmisc.c (dump_symtab_1): Likewise.
4888 * wrapper.c (gdb_value_struct_elt): Likewise.
4889
fa2c6a57
PA
48902008-03-17 Pedro Alves <pedro@codesourcery.com>
4891
4892 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
4893
02f3fc28
PA
48942008-03-17 Pedro Alves <pedro@codesourcery.com>
4895
4896 * linux-nat.c (linux_nat_filter_event): New, refactored from
4897 linux_nat_wait.
4898 (linux_nat_wait): Call linux_nat_filter_event.
4899
2f77b315
UW
49002008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
4901
4902 * top.c (execute_command): Fix uninitialized variable error.
4903
f01be29b
NH
49042008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
4905
680b56ce
AS
4906 * Makefile.in (amd64nbsd-nat.o): New dependency.
4907 * amd64nbsd-nat.c: Include "nbsd-nat.h".
4908 (_initialize_amd64nbsd_nat): Update target vector to use
4909 nbsd_pid_to_exec_file.
4910 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
f01be29b 4911
6cf32704
VP
49122008-03-15 Vladimir Prus <vladimir@codesourcery.com>
4913
4914 Remove ignoring leading exec events code.
680b56ce
AS
4915 * fork-child.c (startup_inferior): Do not set
4916 inferior_ignoring_leading_exec_events.
4917 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
4918 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
4919 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
4920 (handle_inferior_event): Remove code for ignoring leading exec
4921 events.
4922 * target.c (update_current_target): Do not inherit, or default,
4923 to_reported_exec_events_per_exec_call.
4924 (debug_to_reported_exec_events_per_exec_call): Remove.
4925 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
4926 * target.h (target_reported_exec_events_per_exec_call): Remove.
4927 (struct target): Remove the to_reported_exec_events_per_exec_call
4928 field.
6cf32704 4929
8e8901c5
VP
49302008-03-15 Vladimir Prus <vladimir@codesourcery.com>
4931
4932 Implement -thread-info.
680b56ce 4933 * gdbthread.h (print_thread_info): Declare.
8e8901c5 4934
680b56ce
AS
4935 * thread.c (print_thread_info): New, extracted
4936 from info_threads_command and adjusted to
4937 work for CLI and MI.
4938 (info_threads_command): Use print_thread_info.
8e8901c5
VP
4939 * Makefile.in: Update dependencies.
4940
680b56ce
AS
4941 * mi/mi-cmds.c (mi_cmds): Specify a handler
4942 for -thread-info.
4943 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
4944 * mi/mi-main.c (mi_cmd_thread_info): New.
4945 (mi_cmd_list_features): Include 'thread-info'.
8e8901c5 4946
7d1e6fb8
KB
49472008-03-14 Kevin Buettner <kevinb@redhat.com>
4948
4949 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
4950 to decide whether to match instruction patterns using "sw" and "sd".
4951
89113898
PA
49522008-03-14 Pedro Alves <pedro@codesourcery.com>
4953
4954 * infcmd.c (jump_command): Postpone disabling stdin until after
4955 the possible query.
4956
64a0ac84
PA
49572008-03-14 Pedro Alves <pedro@codesourcery.com>
4958
4959 * inflow.c (gdb_getpgrp): New.
4960 (gdb_has_a_terminal): Use get_getpgrp.
4961 (terminal_ours_1): If attach_flag is set, don't refetch
4962 inferior_process_group.
4963
1fddbabb
PA
49642008-03-14 Pedro Alves <pedro@codesourcery.com>
4965
4966 * features/library-list.dtd: Allow "section" elements as children
4967 of "library". Add "section" element and describe its attributes.
4968
4969 * solib-target.c (struct lm_info): Add section_bases member.
4970 (library_list_start_segment): Error out if seen a section element.
4971 (library_list_start_section): New.
4972 (library_list_end_library): New.
4973 (solib_target_free_library_list): Free section_bases.
4974 (section_attributes): New.
4975 (library_children): Make "segment" optional. Add "section" child.
4976 (library_list_children): Register library_list_end_library.
4977 (solib_target_relocate_section_addresses): Handle section bases.
4978
4979 * NEWS: Mention new qXfer:libraries:read section offsets support.
4980
712af3be
VP
49812008-03-14 Vladimir Prus <vladimir@codesourcery.com>
4982
4983 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
4984 (make_exec_error_cleanup): Remove declarations.
4985 * utils.c (exec_error_cleanup_chain): Remove.
4986 (do_exec_error_cleanups, discard_exec_error_cleanups)
4987 (make_exec_error_cleanup): Remove.
4988 * event-loop.c (start_event_loop): Adjust call to
4989 async_enable_stdin.
4990 * event-top.c (async_enable_stdin): Remove the paramater dummy.
4991 (async_disable_stdin): Don't register async_enable_stdin via
4992 cleanup.
4993 * inf-loop.c (inferior_event_handler): Don't
4994 call do_exec_error_cleanups. Call async_enable_stdin instead.
4995 * event-loop.c (start_event_loop): Adjust call to
4996 async_enable_stdin.
4997 * tui/tui-interp.c (tui_command_loop): Adjust call to
4998 async_enable_stdin.
4999
32c1e744
VP
50002008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5001
5002 Async mode fixes.
680b56ce
AS
5003 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
5004 * breakpoint.c (bpstat_do_actions): In async mode,
5005 don't jump to top expecting stop_bpstat to be already
5006 updated.
5007 * event-loop.c (start_event_loop): Call async_enable_stdin
5008 on exception.
5009 * event-top.c (async_enable_stdin): Do nothing if sync_execution
5010 is not set.
5011 (command_handler): Do not setup continuation here.
5012 (command_line_handler_continuation): Move to...
5013 * top.c (command_line_handler_continuation): ... here.
5014 (execute_command): In async mode, register continuation.
5015 Don't check frame's language in running in async mode.
5016 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
5017 * inf-loop.c (complete_execution): Inline into...
5018 (inferior_event_handler): ... here. Clear target_executing before
5019 doing any cleanups. Don't try to show prompt if the target was
5020 resumed.
5021 * infcmd.c (signal_command): Add support for async mode.
5022 (finish_command): Only add continuation if the target was
5023 successfully resumed.
5024 * remote.c (init_async_opts): Register to_get_thread_local_address
5025 handler.
5026 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
5027 with sync_execution.
5028 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
5029 on exception.
32c1e744 5030
c04ea773
DJ
50312008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
5032
5033 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
5034 * exec.c (exec_bfd_mtime): Define.
5035 (exec_close): Clear it.
5036 (exec_file_attach): Set it.
5037 * gdbcore.h (exec_bfd_mtime): Declare.
5038 * source.c (find_source_lines): Do not use bfd_get_mtime.
5039
952dc227
VP
50402008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5041
5042 * top.c (simplified_command_loop): Remove.
5043
4cf46804
VP
50442008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5045
5046 Remove unused remote.c hooks.
680b56ce
AS
5047 * remote.c (deprecated_target_resume_hook)
5048 (deprecated_target_wait_loop_hook): Remove.
5049 (remote_resume): Do not call deprecated_target_resume_hook.
5050 (remote_wait): Do not call deprecated_target_wait_loop_hook.
5051 (remote_async_wait): Likewise.
4cf46804 5052
683f2885
VP
50532008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5054
5055 Implement MI notification for new threads.
680b56ce
AS
5056 * doc/observer.texi (new_thread): Document.
5057 * observer.sh: Forward declare struct thread_info.
5058 * thread.c (add_thread): Notify observer.
5059
5060 * interps.h (interp_init_ftype): New parameter
5061 top_level.
5062 (interp_set): Likewise.
5063 (top_level_interpreter_data): Declare.
5064 * interps.c (interp_set): New parameter top_level.
5065 Pass it to interpreter's init function. Remember
5066 top level interpreter.
5067 (interpreter_exec_cmd): Adjust.
5068 (top_level_interpreter_data): New.
5069 * main.c (captured_main): Pass 1 for top_level
5070 parameter of interp_set.
683f2885 5071 * cli/cli-interp.c (cli_interpreter_init): New
680b56ce
AS
5072 parameter top_level.
5073 * tui/tui-interp.c (tui_init): New parameter top_level.
683f2885 5074
680b56ce
AS
5075 * mi/mi-interp.c (mi_new_thread): New.
5076 (mi_interpreter_init): If top level, register
5077 observer for new threads.
683f2885 5078
680b56ce 5079 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
683f2885 5080
ff9b3928
PA
50812008-03-14 Pedro Alves <pedro@codesourcery.com>
5082
5083 * top.c (execute_command): Disable break and stop
5084 commands in async mode.
5085
b18392ef
PA
50862008-03-14 Pedro Alves <pedro@codesourcery.com>
5087
5088 revert:
5089 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5090 * inf-loop.c (inferior_event_handler): Don't include remote.h.
5091 Call target_stop in the INF_QUIT_REQ case.
5092 * Makefile.in (inf-loop.o): Update.
5093
0aca9f07
PA
50942008-03-14 Pedro Alves <pedro@codesourcery.com>
5095
5096 * inf-loop.c (inferior_event_handler): Don't include remote.h.
5097 Call target_stop in the INF_QUIT_REQ case.
5098 * Makefile.in (inf-loop.o): Update.
5099
0b4e556c
PA
51002008-03-14 Pedro Alves <pedro@codesourcery.com>
5101
5102 * top.c (execute_command): Enable break, info and interrupt
5103 commands in async mode.
5104
8defab1a
DJ
51052008-03-13 Vladimir Prus <vladimir@codesourcery.com>
5106 Daniel Jacobowitz <dan@codesourcery.com>
5107
5108 * breakpoint.h (breakpoint_restore_shadows): New
5109 declaration.
5110 * breakpoint.c (breakpoint_restore_shadows): New.
5111 (read_memory_nobpt): Delete.
5112 * gdbcore.h (read_memory_nobpt): Delete declaration.
5113 * target.c (memory_xfer_partial): Call
5114 breakpoint_restore_shadows.
5115 (restore_show_memory_breakpoints)
5116 (make_show_memory_beakpoints_cleanup): New.
5117 (show_memory_breakpoints): New.
5118 * target.h (make_show_memory_beakpoints_cleanup): Declare.
5119 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
5120 Make sure we see memory breakpoints when checking if
5121 breakpoint is still there.
5122 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
5123 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
5124 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
5125 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
5126
fd532e2e
PA
51272008-03-12 Pedro Alves <pedro@codesourcery.com>
5128
5129 * thread.c (add_thread): Use printf_unfiltered to print.
5130
f749779f 51312008-03-12 Joel Brobecker <brobecker@gnat.com>
965b60ee
JB
5132
5133 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
5134 that is true only on x86-solaris and x86_64-solaris.
5135 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
5136 with proc_get_LDT_entry.
5137
51382008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
83116857
TJB
5139
5140 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
5141 * config.in, configure: Regenerate.
5142 * fork-child.c (fork_inferior): Call create_tty_session.
5143 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
5144 (create_tty_session): New function.
5145 * terminal.h: Declare create_tty_session.
5146
4fbb74a6
AM
51472008-03-12 Alan Modra <amodra@bigpond.net.au>
5148
5149 PR 5900
5150 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
5151 * mipsread.c: Include elf/internal.h.
5152 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
5153 to internal range.
5154
20a6ec49
MD
51552008-03-11 Markus Deuling <deuling@de.ibm.com>
5156
5157 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
5158 to get at the current architecture and at the target specific vector.
5159 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
5160 remove define of I387_ST0_REGNUM.
5161
5162 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
5163
5164 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
5165 get at the current architecture
5166 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
5167 parameter.
5168
5169 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
5170 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
5171
5172 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
5173 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
5174 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
5175
5176 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
5177 at the target specific vector.
5178
5179 (i386_get_longjmp_target): Use get_frame_arch to get at the current
5180 architecture. Use gdbarch_tdep to get at the target specific vector.
5181
5182 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
5183 update caller. Use gdbarch_tdep to get at the target specific vector.
5184
5185 (i386_register_to_value: Use get_frame_arch to get at the current
5186 architecture.
5187
5188 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
5189 parameter.
5190
5191 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
5192 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
5193 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
5194 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
5195
5196 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
5197 undef's.
5198
5199 (i387_convert_register_p, i387_register_to_value,
5200 i387_value_to_register): Update call for i386_fp_regnum_p.
5201
5202 * i387-tdep.h: Remove comment.
5203 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
5204 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
5205 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
5206 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
5207 I387_MXCSR_REGNUM): Add target specific vector as parameter.
5208
ccd213ac
DJ
52092008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
5210
5211 * Makefile.in (fork-child.o): Update.
5212 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
5213 argument. Gather all gdbserver features together.
5214 * fork-child.c (exec_wrapper): New variable.
5215 (fork_inferior): Use it.
5216 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
5217 (unset_exec_wrapper_command, _initialize_fork_child): New.
5218
52192008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
80618b99
MS
5220
5221 * source.c (directory_command): Modify the determination of
5222 condition of terminal "from_tty".
5223
22566fbd
DJ
52242008-03-10 Matt Rice <ratmice@gmail.com>
5225
5226 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
5227
9971ac47
UW
52282008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
5229
5230 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
5231 of the data passing to strtoulst function.
5232 (info_spu_signal_command): Likewise.
5233
835670cf
VP
52342008-03-08 Vladimir Prus <vladimir@codesourcery.com>
5235
5236 * mi/mi-interp.c (mi_command_loop): Remove
5237 commented-out code.
680b56ce 5238
be86555c
JB
52392008-03-07 Joel Brobecker <brobecker@adacore.com>
5240
5241 * remote.c (extended_remote_attach_1): Make local variable pid an int
5242 instead of a pid_t.
5243
4d7b2d5b
JB
52442008-03-07 Joel Brobecker <brobecker@adacore.com>
5245
5246 * solib-svr4.c (svr4_same_1): New function, originally extracted
5247 from svr4_same and expanded to handle the sparc64 case.
5248 (svr4_same): Move up and reimplement using svr4_same_1.
5249 (enable_break): Use svr4_same_1 to do shared library name comparisons.
5250
61fed90e
RR
52512008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
5252
5253 * MAINTAINERS: Move self to Paper trail.
5254
b803fb0f
DJ
52552008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
5256
5257 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
5258 * event-loop.c (call_async_signal_handler): New.
5259 * event-loop.h (call_async_signal_handler)
5260 (gdb_call_async_signal_handler): Declare.
5261 (mark_async_signal_handler): Add comments.
5262 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
5263 * mingw-hdep.c (sigint_event, sigint_handler): New.
5264 (gdb_select): Use them. Wait for the readline signal handler
5265 to finish.
5266 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
5267 * posix-hdep.c (gdb_call_async_signal_handler): New function.
5268 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
5269 New.
5270 (remote_fileio_ctrl_c_signal_handler): Use
5271 gdb_call_async_signal_handler.
5272 (initialize_remote_fileio): Initialize sigint_fileio_token.
5273 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
5274 not initialize tokens here.
5275 (handle_remote_sigint_twice): Likewise. Reinstall
5276 handle_remote_sigint.
5277 (async_remote_interrupt_twice): Just call interrupt_query.
5278 (cleanup_sigint_signal_handler): Do not delete tokens.
5279 (remote_interrupt, remote_interrupt_twice): Use
5280 gdb_call_async_signal_handler.
5281 (interrupt_query): Reinstall the default signal handler.
5282 (_initialize_remote): Initialize tokens here.
5283
8f4d54ed
JB
52842008-03-04 Joel Brobecker <brobecker@adacore.com>
5285
5286 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
5287 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
5288 Change the type of the lr register to code_ptr.
5289 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
5290 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
5291 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
5292 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
5293 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
5294 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
5295 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
5296
95ece428
JW
52972008-03-03 James E. Wilson <wilson@tuliptree.org>
5298
5299 * MAINTAINERS: Update my email address.
5300
686a5eed
KS
53012008-03-03 Keith Seitz <keiths@redhat.com>
5302
5303 From Dave Murphy <davem@devkitpro.org>:
5304 * configure.ac: Set tcl configdir to win under mingw.
5305 * configure: Regenerate.
5306
fa4727a6
DJ
53072008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
5308
5309 * breakpoint.c (fetch_watchpoint_value): New function.
5310 (update_watchpoint): Set and clear val_valid. Use
5311 fetch_watchpoint_value. Handle unreadable values on the
5312 value chain. Correct check for user-requested array watchpoints.
5313 (breakpoint_init_inferior): Clear val_valid.
5314 (watchpoint_value_print): New function.
5315 (print_it_typical): Use it. Do not free or clear old_val. Print
5316 watchpoints even if old_val == NULL.
5317 (watchpoint_check): Use fetch_watchpoint_value. Check for values
5318 becoming readable or unreadable.
5319 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
5320 (do_enable_watchpoint): Likewise.
5321 * breakpoint.h (struct breakpoint): Update comment for val. Add
5322 val_valid.
5323 * NEWS: Mention watchpoints on inaccessible memory.
5324
c03374d5
DJ
53252007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
5326
5327 * Makefile.in (i386-nat.o): Update.
5328 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
5329 i386_use_watchpoints.
5330 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
5331 i386_use_watchpoints.
5332 * i386-nat.c (i386_stopped_data_address): Take two arguments.
5333 (i386_stopped_by_watchpoint): Update call.
5334 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
5335 * config/i386/nm-i386.h: Conditionalize definitions on
5336 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
5337 (i386_use_watchpoints): Declare.
5338 (i386_stopped_data_address): Update.
5339 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
5340 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
5341
c24d7425 53422008-02-29 Joel Brobecker <brobecker@adacore.com>
5343
5344 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
5345 * version.in: Bump version to 6.8.50.20080229-cvs.
5346
a7dfd010
MD
53472008-02-28 Markus Deuling <deuling@de.ibm.com>
5348
5349 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
5350 properly.
5351
258c00cc
TT
53522008-02-28 Tom Tromey <tromey@redhat.com>
5353
5354 * infcmd.c (notice_args_read): Print result of get_inferior_args.
5355
8edfe269
DJ
53562008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5357
5358 * infcmd.c (kill_if_already_running): Make static. Use
5359 target_require_runnable.
5360 * target.c (target_require_runnable): New.
5361 * target.h (target_require_runnable): Declare.
5362
0d6ba1b1
DJ
53632008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5364
5365 * frame.c (reinit_frame_cache): Only annotate if frames were
5366 previously valid.
5367
6fe305f7
UW
53682008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5369
5370 * regformats/reg-ppc.dat: Rename "ps" to "msr".
5371 * regformats/reg-ppc64.dat: Likewise.
5372
9b4b61c8
UW
53732008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5374
5375 * features/Makefile (%.dat): Emit xmltarget statement.
5376
5377 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
5378 Generate code to set gdbserver_xmltarget in init_registers_${name}.
5379
5380 * regformats/arm-with-iwmmxt.dat: Regenerate.
5381 * regformats/mips64-linux.dat: Regenerate.
5382 * regformats/mips-linux.dat: Regenerate.
5383 * regformats/rs6000/powerpc-32.dat: Regenerate.
5384 * regformats/rs6000/powerpc-64.dat: Regenerate.
5385 * regformats/rs6000/powerpc-e500.dat: Regenerate.
5386
5387 * regformats/reg-arm.dat: Add xmlarch statement.
5388 * regformats/reg-i386.dat: Likewise.
5389 * regformats/reg-i386-linux.dat: Likewise.
5390 * regformats/reg-x86-64-linux.dat: Likewise.
5391 * regformats/reg-spu.dat: Likewise.
5392
20b4711e
DJ
53932008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5394
5395 * remote.c (remote_wait, remote_async_wait): Stop if we receive
5396 an error.
5397
1843f87b
DJ
53982008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5399
5400 * utils.c (debug_timestamp): New.
5401 (vfprintf_unfiltered): Print timestamps if requested.
5402 (show_debug_timestamp): New.
5403 (initialize_utils): Register "set debug timestamp".
5404 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
5405
6a048695
JB
54062008-02-27 Joel Brobecker <brobecker@adacore.com>
5407
5408 * breakpoint.c (skip_prologue_sal): New function.
5409 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
5410 computed from a line number.
5411
0b998f49
JB
54122008-02-27 Joel Brobecker <brobecker@adacore.com>
5413
5414 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
5415 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
5416 Set PC register type to "code_ptr".
5417 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
5418 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
5419 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
5420 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
5421 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
5422 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
5423 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
5424 Regenerate.
5425
d05b4ac3
UW
54262008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
5427
5428 * regformats/regdat.sh: Rename init_registers function in
5429 generated file to init_registers_${name}.
5430
5431 * regformats/reg-crisv32.dat: Set "name" to crisv32.
5432 * regformats/reg-ppc64.dat: Set "name" to ppc64.
5433 * regformats/reg-s390x.dat: Set "name" to s390x.
5434
a5d9d57d
DJ
54352008-02-26 Greg Law <glaw@undo-software.com>
5436
5437 * regcache.c (registers_changed): Call reinit_frame_cache.
5438
e25c958c
DJ
54392008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5440
5441 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
5442 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
5443 and svr4_fetch_objfile_link_map.
5444 * Makefile.in (sh-linux-tdep.o): Update.
5445
5daa78cc
TJB
54462008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
5447
5448 * amd64-tdep.c (amd64_classify): Add support for decimal float
5449 types.
5450 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
5451 use the struct return convention.
5452
54e52265
VP
54532008-02-26 Nick Roberts <nickrob@snap.net.nz>
5454
5455 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
5456 to old format. Discard breakpoint address if shared library is
5457 unloaded.
5458 (breakpoint_1): Adjust formatting of table header accordingly.
5459
d8f2712d
VP
54602008-02-25 Vladimir Prus <vladimir@codesourcery.com>
5461
5462 * remote.c (remote_get_threadlist): If the response
5463 is empty, don't try to parse it.
5464
05ce04a4
VP
54652008-02-23 Vladimir Prus <vladimir@codesourcery.com>
5466
5467 Unbreak 'target async'.
680b56ce
AS
5468 * serial.c (serial_async): Set the
5469 handler function before enabling async
5470 mode.
05ce04a4 5471
b36ec657
DJ
54722008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
5473
5474 * solib-svr4.c (enable_break): Convert r_brk to a code address.
5475
df7df359
PA
54762008-02-21 Pedro Alves <pedro@codesourcery.com>
5477
5478 * remote.c (extended_remote_attach_1): Set attach_flag.
5479 (extended_remote_create_inferior_1): Clear attach_flag.
5480
7cd25cfc
DJ
54812008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
5482
5483 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
5484 r_brk_offset.
5485 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
5486 * solib-svr4.c (solib_svr4_r_brk): New.
5487 (open_symbol_file_object, svr4_current_sos): Always check the
5488 debug base.
5489 (svr4_fetch_objfile_link_map): Do not set debug_base.
5490 (enable_break): Use r_brk if it is set.
5491 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
5492 (svr4_lp64_fetch_link_map_offsets): Likewise.
5493 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
5494
07ea644b
MD
54952008-02-20 Markus Deuling <deuling@de.ibm.com>
5496 Mark Kettenis <kettenis@gnu.org>
5497
5498 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
5499 trad_frame_saved_reg.
680b56ce 5500 (trad-frame.h): New include.
07ea644b
MD
5501
5502 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
680b56ce 5503 instead of frame_obstack_zalloc.
07ea644b
MD
5504 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
5505
680b56ce 5506 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
07ea644b 5507
40887e1a
MD
55082008-02-20 Markus Deuling <deuling@de.ibm.com>
5509
5510 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
5511 from disassemble_info instead of gdbarch_byte_order.
5512
5513 * mips-tdep.c (gdb_print_insn_mips): Likewise.
5514 * arm-tdep.c (gdb_print_insn_arm): Likewise.
5515
ae4b2284
MD
55162008-02-20 Markus Deuling <deuling@de.ibm.com>
5517
5518 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
5519 gdbarch as parameter.
5520
5521 * gdbarch.{c,h}: Regenerate.
5522
5523 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
5524 parameter.
5525 * mem-break.c (default_memory_insert_breakpoint)
5526 (default_memory_remove_breakpoint): Likewise.
5527 * target.h (default_memory_remove_breakpoint)
5528 (default_memory_insert_breakpoint): Likewise.
5529
5530 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
5531 parameter. Replace current_gdbarch by gdbarch.
5532 * m32r-tdep.c (m32r_memory_insert_breakpoint)
5533 (m32r_memory_remove_breakpoint): Likewise.
5534
d9bf65d5
DJ
55352008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
5536
5537 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
5538
b93b6ca7
JB
55392008-02-19 Joel Brobecker <brobecker@adacore.com>
5540
5541 * NEWS: Add entry describing Add support improvements.
5542
4ed226fe
MD
55432008-02-18 Markus Deuling <deuling@de.ibm.com>
5544
5545 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
5546 M68K_FP0_REGNUM.
5547
caaa79ad
MD
55482008-02-18 Markus Deuling <deuling@de.ibm.com>
5549
5550 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
5551 register_offset_hack anymore.
5552
5553 * regcache.{c,h} (register_offset_hack): Remove.
5554
e38c262f
MD
55552008-02-18 Markus Deuling <deuling@de.ibm.com>
5556
5557 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
5558
5559 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
5560 current_gdbarch by gdbarch.
5561 (hppa64_hpux_find_global_pointer): Likewise.
5562 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
5563 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
5564 find_global_pointer.
5565
5566 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
5567 parameter.
5568 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5569
5570 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
5571 of gdbarch_num_regs.
5572
5573 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
680b56ce 5574 replace current_gdbarch by gdbarch.
e38c262f
MD
5575 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
5576
206988c4
MD
55772008-02-18 Markus Deuling <deuling@de.ibm.com>
5578
5579 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
5580 and replace current_gdbarch by gdbarch.
5581
5582 (store_register): Update call for exec_one_dummy_insn.
5583 (fetch_register, store_register): Update call of regmap.
5584
5585 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
5586 parameter and replace current_gdbarch by gdbarch.
680b56ce 5587
206988c4
MD
5588 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
5589 the current architecture. Update call for getregs_supplies and
5590 getfpregs_supplies.
5591 (ppcnbsd_fetch_inferior_registers): Likewise.
5592
680b56ce 5593 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
206988c4
MD
5594 replace current_gdbarch by gdbarch.
5595 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
5596 get_regcache_arch to get at the current architecture. Update call for
5597 getfpregs_supplies.
5598
f642be6b
MD
55992008-02-18 Markus Deuling <deuling@de.ibm.com>
5600
5601 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
680b56ce 5602 variables.
f642be6b 5603
b1f2bf01
MD
56042008-02-15 Markus Deuling <deuling@de.ibm.com>
5605
5606 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
5607
ee163bf5
VP
56082008-02-14 Vladimir Prus <vladimir@codesourcery.com>
5609
5610 * NEWS: Mention pending breakpints in MI.
680b56ce 5611
f6fbcbf9
MD
56122008-02-14 Markus Deuling <deuling@de.ibm.com>
5613
5614 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
5615
36af4ef6
MD
56162008-02-13 Markus Deuling <deuling@de.ibm.com>
5617
5618 Add script to build and test GDB using enable-targets=all.
5619
5620 * gdb_buildall.sh: New file.
5621
94a0e877
MG
56222008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
5623
5624 * NEWS (New native configurations): Xtensa GNU/Linux.
5625 (New targets): Xtensa GNU/Linux.
5626 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
5627 xtensa-linux-tdep.o
5628 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
5629 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
5630 * configure.tgt (xtensa*-*-linux*): New entry.
5631 * xtensa-config.c (xtensa_tdep): New variable.
5632 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
5633 (rmap): Change format based on new macro XTREG.
5634 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
5635 * xtensa-linux-nat.c: New.
5636 * xtensa-linux-tdep.c: New.
5637 * xtensa-xtregs.c: New.
5638 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
5639 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
5640 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
5641 (xtensa_register_t): New field coprocessor.
5642 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
5643 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
5644 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
5645 Update to handle privileged registers.
5646 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
5647 (xtensa_push_dummy_call): Set windowstart register correctly.
5648 (call0_analyze_prologue): Initialize xtensa_default_isa.
5649 (xtensa_derive_tdep): New.
5650 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
5651 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
5652 Call xtensa_derive_tdep().
5653 * config/xtensa/linux.mh: New.
5654 * regformats/reg-xtensa.dat: New.
5655
b7ee1b0a 56562008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
f90c07ac
EZ
5657
5658 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
5659 (filenames.h): New include.
5660 * Makefile.in (corelow.o): Add dependency for filenames.h.
5661
8da2a1df
DJ
56622008-02-08 Doug Evans <dje@google.com>
5663
5664 * source.c (find_and_open_source): Always rewrite absolute filenames.
5665
776592bf
DE
56662008-02-07 Doug Evans <dje@google.com>
5667
5668 * breakpoint.c: #include "hashtab.h".
5669 (ambiguous_names_p): New fn.
5670 (update_breakpoint_locations): When restoring bp enable status, don't
5671 compare function names if any functions have same name.
5672 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
5673
d6565258
JB
56742008-02-07 Joel Brobecker <brobecker@adacore.com>
5675
5676 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
5677 instead of just a VEC*. Update use of SV.
5678 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
5679
6d53d0af
JB
56802007-02-07 Joel Brobecker <brobecker@adacore.com>
5681
5682 * NEWS: Put all new commands since gdb-6.7 together.
5683
2ba95b9b
JB
56842007-02-07 Joel Brobecker <brobecker@adacore.com>
5685
5686 * ada-lang.c: #include "vec.h".
5687 (struct string_vector, new_string_vector, string_vector_append):
5688 Delete.
5689 (char_ptr): New typedef.
5690 (DEF_VEC_P (char_ptr)): New VEC type.
5691 (symbol_completion_add): Update profile to take the new VEC type
5692 instead of the old string_vector structure. Update code accordingly.
5693 (ada_make_symbol_completion_list): Use the new VEC type instead of
5694 the old string_vector structure, and update the code accordingly.
5695 * Makefile.in (ada-lang.o): Add dependency on vec.h.
5696
4ae0885a
PM
56972008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
5698
5699 * p-exp.y: Set current_type in missing places.
5700 (leftdiv_is_integer): New static variable.
5701 Typecast right operand of BINOP_DIV to long_double if both operands
5702 are integers.
5703
06b1d59c
MR
57042008-02-06 Maciej W. Rozycki <macro@mips.com>
5705
5706 * remote-mips.c (set_breakpoint): Rename to...
5707 (mips_set_breakpoint): ... this.
5708 (clear_breakpoint): Rename to...
5709 (mips_clear_breakpoint): ... this.
5710 (common_breakpoint): Rename to...
5711 (mips_common_breakpoint): ... this.
5712 (check_lsi_error): Rename to...
5713 (mips_check_lsi_error): ... this.
5714
41d27058
JB
57152007-02-05 Joel Brobecker <brobecker@adacore.com>
5716
5717 * language.h (struct language_defn): Add new field
5718 la_make_symbol_completion_list.
5719 * symtab.c (default_make_symbol_completion_list): Renames
5720 make_symbol_completion_list.
5721 (make_symbol_completion_list): New function.
5722 * symtab.h (default_make_symbol_completion_list): Add declaration.
5723 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
5724 (auto_language, local_language): Likewise.
5725 * objc-lang.c (objc_language_defn): Likewise.
5726 * scm-lang.c (scm_language_defn): Likewise.
5727 * m2-lang.c (m2_language_defn): Likewise.
5728 * f-lang.c (f_language_defn): Likewise.
5729 * jv-lang.c (java_language_defn): Likewise.
5730 * p-lang.c (pascal_language_defn): Likewise.
5731 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
5732 (minimal_language_defn): Likewise.
5733 * ada-lang.c (struct string_vector): New structure.
5734 (new_string_vector, string_vector_append, ada_unqualified_name)
5735 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
5736 (ada_make_symbol_completion_list): New functions.
5737 (ada_language_defn): Set la_make_symbol_completion_list.
5738 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
5739 this function is static.
5740
ee3a2f01
KB
57412008-02-05 Kevin Buettner <kevinb@redhat.com>
5742
5743 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
5744 to account for call site optimizations.
5745
d844e34b
JB
57462008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
5747
5748 * tracepoint.c (read_actions): Handle end-of-text indicator
5749 in action list properly. (Committed by Jim Blandy)
5750
02e4669d
JB
57512008-02-05 Jim Blandy <jimb@red-bean.com>
5752
5753 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
5754 pseudoregister, not an internal error.
85ecb32b 5755 Reported by: Andrzej Zaborowski
02e4669d 5756
c39c8256
VP
57572008-02-04 Vladimir Prus <vladimir@codesourcery.com>
5758
5759 * varobj.c (c_value_of_variable): Use xstrdup.
5760
ae7d22a6
VP
57612008-02-04 Vladimir Prus <vladimir@codesourcery.com>
5762
5763 Update stored rendition of varobj value when format changes.
5764 * varobj.c (varobj_set_display_format): Recomputed
680b56ce
AS
5765 print_value.
5766 (c_value_of_variable): Return print_value.
ae7d22a6 5767
81fe8080
DE
57682008-02-03 Doug Evans <dje@google.com>
5769
301f0ecf
DE
5770 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
5771 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
5772 * valops.c (value_one): New function.
5773 * value.h (value_one): Declare.
5774
5775 Fix argument promotion for binary arithmetic ops for C.
5776 * valarith.c (unop_result_type): New fn.
5777 (binop_result_type): New fn.
5778 (value_binop): Move result type computation to binop_result_type.
5779 (value_pos, value_neg, value_complement): Move result type
5780 computation to unop_result_type.
5781
81fe8080
DE
5782 PR 2384
5783 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
5784 Return basetype, fieldno if found. All callers updated.
5785 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
5786 objfile.
5787 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
5788 * symfile.h (fill_in_vptr_fieldno): Delete.
5789
41808ebe
DE
57902008-02-02 Doug Evans <dje@google.com>
5791
f8597ac3
DE
5792 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
5793
41808ebe
DE
5794 * typeprint.c (*): Whitespace cleanup.
5795
f964a756
MK
57962008-02-02 Mark Kettenis <kettenis@gnu.org>
5797 Luis Machado <luisgpm@br.ibm.com>
680b56ce 5798 Thiago Jung Bauermann <bauerman@br.ibm.com>
f964a756
MK
5799
5800 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
5801 don't fit into registerson the stack the way GCC does.
5802
b06ead72
JB
58032008-02-01 Joel Brobecker <brobecker@adacore.com>
5804
5805 * symtab.c (symbol_set_names): Do not add an entry in the demangling
5806 hash table for Ada symbols. Just store the linkage name as is,
5807 and leave the demangled_name as NULL.
5808
2cfa0c8d
JB
58092007-02-01 Joel Brobecker <brobecker@adacore.com>
5810
5811 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
5812 in the global scope.
5813 (new_symbol): Likewise.
5814
98deb0da 58152008-02-01 Vladimir Prus <vladimir@codesourcery.com>
680b56ce
AS
5816
5817 * breakpoint.c (break_command_1): Return void.
5818 (break_command_really): Return void. Rethrow
5819 exceptions instead of returning.
5820 (gdb_breakpoint): Remove the error_message parameter.
5821 Return void. Rename to set_breakpoint.
5822 * gdb.h (gdb_breakpoint): Rename and move to...
98deb0da 5823 * breakpoint.h (set_breakpoint): ...here.
680b56ce
AS
5824 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
5825 event hooks even if exception is thrown. Adjust to
5826 gdb_breakpoint interface changes.
5827
98deb0da 5828
ce0451ad
TJB
58292008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
5830
5831 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
5832 float in both first and second word in the doubleword, to support
5833 old and new ABIs.
5834
723a2275
VP
58352008-02-01 Vladimir Prus <vladimir@codesourcery.com>
5836
5837 Properly rethrow exception. This fixes errors
5838 about non-existent functions for -break-insert.
680b56ce
AS
5839 * breakpoint.c (break_command_really): Use throw_exception
5840 for rethrowing. If rethrowing, don't print the exception.
723a2275 5841
d64a946d
TJB
58422008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5843
5844 * NEWS: Mention Decimal Floating Point support.
5845
02b156f5
JB
58462008-01-31 Joel Brobecker <brobecker@adacore.com>
5847
5848 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
5849 value type to builtin_type_void_func_ptr.
5850
a16b8bcd
UW
58512008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
5852
5853 * s390-tdep.c (is_float_singleton, is_float_like,
5854 alignment_of, s390_return_value): Make checks for
5855 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
5856
f949c649
TJB
58572008-01-31 Luis Machado <luisgpm@br.ibm.com>
5858 Thiago Jung Bauermann <bauerman@br.ibm.com>
5859
5860 * infcmd.c (default_print_registers_info): Also print hex
5861 raw contents for TYPE_CODE_DECFLOAT registers.
5862 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
5863 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
5864 (rs6000_register_name): Add support for DFP pseudo-registers.
5865 (rs6000_pseudo_register_type): Likewise.
5866 rs6000_pseudo_register_reggroup_p): Likewise.
5867 (ppc_pseudo_register_read): New function.
5868 (ppc_pseudo_register_write): Likewise.
5869 (rs6000_pseudo_register_read): Likewise.
5870 (rs6000_pseudo_register_write): Likewise.
5871 (e500_pseudo_register_read): Move checks to
5872 rs6000_pseudo_register_read.
5873 (e500_pseudo_register_write): Move checks to
5874 rs6000_pseudo_register_write.
5875 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
5876 rs6000_pseudo_register_read and rs6000_pseudo_register_write
5877 in gdbarch if SPE or DFP is available. Adjust gdbarch's
5878 num_pseudo_regs to account for DFP pseudo regs.
5879
5a9e69ba
TJB
58802008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5881
5882 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
5883 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
5884 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
5885 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
5886 e500_pseudo_register_read, e500_pseudo_register_write): Use
5887 IS_SPE_PSEUDOREG macro.
5888 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
5889 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
5890 Remove initialization of tdep->ppc_ev31_regnum.
5891
4e885b20
JB
58922008-01-08 Paul Hilfinger <hilfinger@adacore.com>
5893
5894 * printcmd.c (print_formatted): Handle references as for unformatted
5895 prints.
5896
80f064a2
JB
58972008-01-30 Joel Brobecker <brobecker@adacore.com>
5898
5899 * eval.c (evaluate_subexp_standard): Add handling of user
5900 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
5901
9b3442ee
PM
59022008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
5903
5904 * eval.c (evaluate_subexp_standard): Support
5905 BINOP_INTDIV opcode.
5906
d118ef87
PH
59072008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
5908
5909 * valarith.c (value_binop): Add floating-point BINOP_MIN and
5910 BINOP_MAX cases.
5911 For BINOP_EXP, use length and signedness of left operand only for
5912 result, as for shifts.
5913 For integral operands to BINOP_EXP, use new integer_pow and
5914 uinteger_pow functions so as to get full range of results.
5915 (integer_pow): New function.
5916 (uinteger_pow): New function.
5917
d56d46f5
VP
59182008-01-30 Vladimir Prus <vladimir@codesourcery.com>
5919
5920 Use vector for varobj_list_children interface.
680b56ce
AS
5921 * gdb/varobj.c (varobj_list_children): Return vector
5922 of varobjs.
5923 * gdb/varobj.h (varobj_list_children): Adjust
5924 prototype.
5925 (varobj_p): Declare. Declare vector thereof.
5926 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
5927 for varobj_list_children change.
d56d46f5
VP
5928 * Makefile.in (varobj_h): Update dependencies.
5929
1300a2f4
TJB
59302008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
5931
5932 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
5933 TYPE_CODE_DECFLOAT arguments.
5934 (ppc64_sysv_abi_push_dummy_call) Likewise.
5935 (get_decimal_float_return_value): New function.
5936 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
5937 values by calling get_decimal_float_return_value.
5938 (ppc64_sysv_abi_return_value): Likewise.
5939
95ef687d
NR
59402008-01-30 Nick Roberts <nickrob@snap.net.nz>
5941
5942 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
5943 for preprocessor macro information. Formatting changes.
5944
2d717e4f
DJ
59452008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5946
5947 * remote.c (struct remote_state): Add cached_wait_status.
5948 (remote_exec_file): New variable.
5949 (PACKET_vAttach, PACKET_vRun): New constants.
5950 (extended_remote_restart): Do not query for status.
5951 (struct start_remote_args): New.
5952 (remote_start_remote): Take it as a second argument. Check
5953 whether the target is running. Issue an error for non-running
5954 non-extended targets. Cache the wait status. Set inferior_ptid
5955 here.
5956 (remote_open_1): Prompt to disconnect non-running targets. Make
5957 sure the target is marked running. Do not set inferior_ptid here.
5958 Update call to remote_start_remote. Do not call remote_check_symbols
5959 if the target is not running.
5960 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
5961 argument. Handle a non-running target.
5962 (remote_detach): Use it.
5963 (extended_remote_detach): New.
5964 (remote_disconnect): Fix typo. Use remoute_mourn_1.
5965 (extended_remote_attach_1, extended_remote_attach)
5966 (extended_async_remote_attach): New.
5967 (remote_vcont_resume): Remove unused variable.
5968 (remote_wait, remote_async_wait): Use any cached wait status.
5969 (putpkt_binary, getpkt): Clear any cached wait status.
5970 (extended_remoute_mourn_1): New.
5971 (extended_remote_mourn): Use it.
5972 (extended_async_remote_mourn, extended_remote_run): New.
5973 (extended_remote_create_inferior_1): New.
5974 (extended_remote_create_inferior): Use it.
5975 (extended_remote_async_create_inferior): Likewise.
5976 (remote_xfer_partial): Skip for non-executing targets.
5977 (init_extended_remote_ops): Set to_detach and to_attach.
5978 (init_extended_async_remote_ops): Likewise. Use
5979 extended_async_remote_mourn.
5980 (_initialize_remote): Register vAttach, vRun, and
5981 set remote exec-file.
5982 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
5983
e85a822c
DJ
59842008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5985
5986 * Makefile.in (symfile.o): Update.
5987 * NEWS: Mention exec tracing support.
5988 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
5989 exec events.
5990 * infcmd.c (kill_if_already_running, detach_command)
5991 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
5992 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
5993 (follow_exec): Do not check may_follow_exec. Do not mourn and push
5994 targets. Apply the sysroot path to the loaded executable. Use
5995 no_shared_libraries.
5996 * linux-nat.c (linux_child_follow_fork): Print fork following
5997 messages if verbose.
5998 (kill_wait_callback): Kill again before waiting a second time.
5999 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
6000 no_shared_libraries.
6001
9db13498
JB
60022008-01-29 Joel Brobecker <brobecker@adacore.com>
6003
6004 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
6005
b4d5ed91
JB
60062008-01-29 Joel Brobecker <brobecker@adacore.com>
6007
6008 * nto-tdep.h: Remove #include "defs.h".
6009 * nto-tdep.c: Add #include "defs.h".
6010 * Makefile.in (nto_tdep_h): Update dependencies.
6011 (nto-tdep.o): Likewise.
6012
107313f7 60132008-01-29 Joel Brobecker <brobecker@adacore.com>
ae123ec6
JB
6014
6015 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
6016 and use it.
6017 (proceed, start_remote): Update call to wait_for_inferior.
6018 * inferior.h (wait_for_inferior): Update declaration.
6019 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
6020 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
6021 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
6022 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
6023
3f4178d6
DJ
60242008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
6025
680b56ce 6026 * varobj (adjust_value_for_child_access): Added checking for
3f4178d6
DJ
6027 returned value from gdb_value_ind.
6028 (c_describe_child): Likewise.
6029 (cplus_describe_child): Fixed a typo.
6030
5eeba8d4
JB
60312008-01-29 Jim Blandy <jimb@red-bean.com>
6032
6033 * MAINTAINERS: Update my info.
6034
a5606eee
VP
60352008-01-29 Vladimir Prus <vladimir@codesourcery.com>
6036
6037 Use multiple locations for hardware watchpoints.
6038 This eliminates the need to traverse value chain, doing
6039 various checks, in three different places.
6040
680b56ce
AS
6041 * breakpoint.h (struct bp_location): New fields
6042 lengths and watchpoint_type.
6043 (struct breakpoint): Remove the val_chain field.
6044 * breakpoint.c (is_hardware_watchpoint): New.
6045 (free_valchain): Remove.
6046 (update_watchpoint): New.
6047 (insert_bp_location): For hardware watchpoint, just
6048 directly insert it.
6049 (insert_breakpoints): Call update_watchpoint_locations
6050 on all watchpoints. If we have failed to insert
6051 any location of a hardware watchpoint, remove all inserted
6052 locations.
6053 (remove_breakpoint): For hardware watchpoints, directly
6054 remove location.
6055 (watchpoints_triggered): Iterate over locations.
6056 (bpstat_stop_status): Use only first location of
6057 a resource watchpoint.
6058 (delete_breakpoint): Don't call free_valchain.
6059 (print_one_breakpoint): Don't print all
6060 locations for watchpoints.
6061 (breakpoint_re_set_one): Use update_watchpoint for
6062 watchpoints.
a5606eee 6063
0b3de036
VP
60642008-01-29 Vladimir Prus <vladimir@codesourcery.com>
6065
6066 Don't reset watchpoint block on solib load.
6067
680b56ce
AS
6068 * breakpoint.c (insert_bp_location): For watchpoints,
6069 recompute condition.
6070 (breakpoint_re_set_one): Instead of recomputing value
6071 and condition for watchpoints, just reset value and
6072 let insert_breakpoints/insert_bp_location recompute it.
6073 Don't do anything about disabled watchpoint.
0b3de036 6074
c3940723
PM
60752008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
6076
6077 * valarith.c (value_binop): Handle unsigned integer
6078 division by zero.
6079
83845630
KB
60802008-01-28 Kevin Buettner <kevinb@redhat.com>
6081
6082 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
6083 instruction pattern that appears frequently in position
6084 independent code. Fix bug in code which looks for "fmov" and
6085 backtracks if no "fmov" is found.
6086
9ce5d3bb
DE
60872008-01-28 Doug Evans <dje@google.com>
6088
6089 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
6090 Reformat comments to 80 columns.
6091 Move local var def closer to only use.
9ce5d3bb 6092
c78d192c
DJ
60932008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
6094
6095 * fork-child.c (SHELL_FILE): Remove #ifndef.
6096 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
6097
e11481da
PM
60982008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
6099
6100 * i386-tdep.c (i386_skip_noop): New function.
6101 (i386_analyze_prologue): Call i386_skip_noop function.
6102
244e85c8
MS
61032008-01-24 Michael Snyder <msnyder@specifix.com>
6104
6105 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
6106 * win32-nat.c (win32_xfer_partial): Ditto.
6107 * target.c (default_xfer_partial): Minor whitespace adjustment.
6108
dd6be234
PA
61092008-01-24 Pedro Alves <pedro@codesourcery.com>
6110
6111 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
6112 strip bit 1 even if pc doesn't point to thumb code.
6113
9fa2223d
DJ
61142008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
6115
6116 * remote.c (remote_wait): Handle SIGINT between packets.
6117 (remote_async_wait): Likewise.
6118
93815fbf
VP
61192008-01-23 Vladimir Prus <vladimir@codesourcery.com>
6120 Chris Demetriou <cgd@google.com>
6121
680b56ce
AS
6122 * thread.c (add_thread_silent): Renamed
6123 from add_thread.
6124 (print_thread_events): New variable definition.
6125 (show_print_thread_events): New function.
6126 (_initialize_thread): Add "set print thread-events" and
6127 "show print thread-events" commands.
6128 (add_thread): Announce new thread.
6129 * gdbthread.h (add_thread_silent): Declare.
6130 (print_thread_events): New variable declaration.
6131 * inf-ttrace.c (inf_ttrace_wait): Don't
6132 inform about new thread, as add_thread is always
6133 called too, and will take care of that.
6134 * infrun.c (handle_inferior_event): Likewise.
6135 * procfs.c (procfs_wait): Likewise.
6136 * remote.c (remote_currthread): Likewise.
6137 * sol-thread.c (sol_thread_wait): Likewise.
6138 * win32-nat.c (get_win32_debug_event): Likewise.
6139 * linux-thread-db.c (attach_thread): Likewise.
6140 Remove the verbose parameter.
6141 (check_event): Make detach_thread be verbose
6142 only if print_thread_events is set.
6143 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
6144 about new thread. This is called only from
6145 linux-thread-db.c:attach_thread, which will take care.
6146 Remove the verbose parameter.
6147 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
93815fbf 6148
b4d7c9a6
NR
61492008-01-23 Nick Roberts <nickrob@snap.net.nz>
6150
6151 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
6152
60c46647
VP
61532008-01-22 Vladimir Prus <vladimir@codesourcery.com>
6154
6155 * breakpoint.c (break_command_really): New parameter
6156 ignore_count.
6157 (break_command_1): Pass 0 as
6158 ignore_count to break_command_really.
6159 (gdb_breakpoint): Pass ignore_count to
6160 break_command_really.
6161
e84605cd
KB
61622008-01-21 Kevin Buettner <kevinb@redhat.com>
6163
6164 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
6165 sigcontext struct via pointer.
6166 (struct sigframe comment): Update to show new field `psc'.
6167
9d9cd7ac
VP
61682008-01-21 Vladimir Prus <vladimir@codesourcery.com>
6169
6170 * infrun.c (handle_inferior_event): If
6171 we failed to remove breakpoints, error,
6172 don't try to increment PC by hand.
6173
af5ca30d
NH
61742008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
6175
6176 Add NetBSD/hppa target and host support.
6177
6178 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
6179 (hppabsd_gregset): Move to ...
6180 (hppabsd_regset_from_core_section): Rename
6181 hppaobsd_regset_from_core_section and move to ...
6182 (hppabsd_find_global_pointer): Update comment.
6183 (hppabsd_init_abi): Make global. Do not register
6184 hppabsd_regset_from_core_section.
6185 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
6186 move to ...
6187 (_initialize_hppabsd_tdep): Move to ...
6188 * hppaobsd-tdep.c: ... here. New file.
6189 * hppnbsd-tdep.c: New file.
6190 * hppnbsd-nat.c: New file.
680b56ce 6191 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
af5ca30d 6192 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
680b56ce
AS
6193 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
6194 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
af5ca30d
NH
6195 * configure.host (hppa*-*-netbsd*): New entry.
6196 * configure.tgt (hppa*-*-netbsd*): New entry.
6197 (hppa*-*-openbsd*): Update.
6198 * NEWS (New native configuration): Mention NetBSD/hppa.
6199 (New targets): Mention NetBSD/hppa.
6200
32c9a795
MD
62012008-01-18 Markus Deuling <deuling@de.ibm.com>
6202
6203 * gdbarch.sh (function_list): Add new property bits_big_endian to
6204 gdbarch structure.
6205 * gdbarch.{c,h}: Regenerate.
6206
6207 * value.c (struct value): Replace BITS_BIG_ENDIAN by
6208 gdbarch_bits_big_endian (comment).
6209 (unpack_field_as_long, modify_field): Likewise.
6210 * value.h: Likewise (comment).
6211 * valops.c (value_slice): Likewise.
6212 * valarith.c (value_subscript, value_bit_index): Likewise.
6213 * gdbtypes.h (field): Likewise (comment).
6214 * eval.c (evaluate_subexp_standard): Likewise.
6215 * dwarf2read.c (dwarf2_add_field): Likewise.
6216 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
6217 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
680b56ce 6218
32c9a795
MD
6219 * defs.h (BITS_BIG_ENDIAN): Remove.
6220
1e5e79d0
MD
62212008-01-18 Markus Deuling <deuling@de.ibm.com>
6222
6223 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
6224 function calls.
6225 * m2-exp.y (yylex): Likewise.
6226 * objc-exp.y (yylex): Likewise.
6227
6228 * defs.h (DEPRECATED_STREQN): Remove.
6229
fabda5a7
L
62302008-01-17 H.J. Lu <hjl.tools@gmail.com>
6231
6232 * MAINTAINERS: Update my email address.
6233
92726479
JB
62342008-01-17 Jim Blandy <jimb@codesourcery.com>
6235
6236 * README: Mention gdbserver/README.
6237
ef80d18e
PM
62382008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6239
6240 * valarith.c (value_binop): Handle BINOP_INTDIV
6241 for unsigned and signed integers.
6242
1de90795
UW
62432008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
6244
6245 * s390-tdep.c (s390_gdbarch_init): Set default long double
6246 type to 128-bit IEEE quad.
6247
c70bd6f3
JB
62482008-01-17 Joel Brobecker <brobecker@adacore.com>
6249
6250 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
6251
ba759613
MK
62522008-01-16 Mark Kettenis <kettenis@gnu.org>
6253
77d49ac6
MK
6254 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
6255
ba759613
MK
6256 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
6257 * value.c: All callers changed.
6258
7ecb6532
MD
62592008-01-16 Markus Deuling <deuling@de.ibm.com>
6260
6261 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
6262 DEPRECATED_STREQ by its expression.
6263 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
6264 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
6265 (scan_xcoff_symtab): Likewise.
6266 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
6267 * f-lang.c (find_common_for_function): Likewise.
6268 * objc-exp.y (parse_number): Likewise.
6269
6270 * defs.h (DEPRECATED_STREQ): Remove.
6271
d15cf01c
MD
62722008-01-16 Markus Deuling <deuling@de.ibm.com>
6273
6274 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
6275 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
6276 get_frame_arch to get at the current_architecture. Update AM33_MODE
6277 call.
6278 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
6279 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
6280 architecture.
6281 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
6282
f8028488
MD
62832008-01-16 Markus Deuling <deuling@de.ibm.com>
6284
680b56ce 6285 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
f8028488
MD
6286 parameter.
6287 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
6288
6289 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
6290 current_gdbarch by gdbarch. Update caller.
6291
6292 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
6293 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
6294 the current architecture. Update calls of
6295 amd64_native_gregset_supplies_p.
6296 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
6297 (amd64bsd_store_inferior_registers): Likewise.
6298
e101270f
MD
62992008-01-16 Markus Deuling <deuling@de.ibm.com>
6300
6301 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
6302 Replace current_gdbarch by gdbarch. Update caller.
6303
063e58ba
MD
63042008-01-16 Markus Deuling <deuling@de.ibm.com>
6305
6306 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
6307 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
6308 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
6309 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
6310 (stabsect_build_psymtabs): Fix indentation.
6311
662fb31b
MS
63122008-01-15 Michael Snyder <msnyder@specifix.com>
6313
6314 * corelow.c (core_xfer_partial): Comment, cut/paste error.
6315
c1766e7d
PM
63162008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6317
6318 * win32-nat.c (win32_create_inferior): Restore code calling
6319 CloseHandle on ProcessInformation structure.
6320
5ed10e6e
NH
63212008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
6322
6323 * configure.ac: Check for void * as 3 argument of ptrace.
6324 * configure: regenerate.
6325
be8626e0
MD
63262008-01-11 Markus Deuling <deuling@de.ibm.com>
6327
6328 * alpha-tdep.c (alpha_heuristic_proc_start)
6329 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
6330 current_gdbarch by gdbarch.
6331
6332 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
680b56ce 6333 current architecture by frame_info. Update alpha_heuristic_proc_start
be8626e0
MD
6334 call.
6335
6336 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
6337 get_frame_arch to get at the current architecture by frame_info. Update
6338 alpha_sigtramp_register_address call.
6339
6340 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
6341 current_gdbarch by gdbarch. Update caller.
6342 (convert_to_extended, convert_from_extended): Add endianess parameter
6343 for comparison. Update caller.
6344 (arm_extract_return_value, arm_store_return_value): Use
6345 get_regcache_arch to get at the current architecture.
6346
6347 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
6348 current_gdbarch by gdbarch. Update caller.
6349 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
6350 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
6351
6352 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
680b56ce 6353 gdbarch as parameter. Update caller.
be8626e0
MD
6354 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
6355 current_gdbarch by gdbarch. Update caller.
6356
680b56ce 6357 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
be8626e0
MD
6358 update caller. Replace current_gdbarch by gdbarch.
6359
6360 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
6361 the current architecture. Replace current_gdbarch by gdbarch.
6362 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6363 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
6364 expression. Add gdbarch as parameter and replace current_gdbarch with
6365 it. Update caller.
6366 (M6811_TDEP): Remove.
6367 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
6368 architecture.
680b56ce 6369 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
be8626e0
MD
6370 current_gdbarch by gdbarch. Update caller.
6371
6372 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
6373 update caller.
6374 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
6375 by gdbarch.
6376
6377 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
6378 caller. Relace current_gdbarch by gdbarch.
6379 (altivec_register_p, spe_register_p): Likewise.
6380 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
6381 parameter.
6382 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
6383 altivec_register_p and spe_register_p.
6384
680b56ce 6385 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
be8626e0
MD
6386 caller. Replace current_gdbarch by gdbarch.
6387 (score_analyze_prologue): use get_frame_arch to get at the current
680b56ce 6388 architecture.
be8626e0
MD
6389
6390 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
6391 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
6392 current_gdbarch by gdbarch. Update caller.
6393 (sparc_frame_cache): Use get_frame_arch to get at the current
6394 architecture.
6395 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
6396 sparc_analyze_prologue.
6397
6398 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
6399 parameter.
6400
ed49a04f
MD
64012008-01-11 Markus Deuling <deuling@de.ibm.com>
6402
6403 * exec.c: #include "arch-utils.h"
6404 (print_section_info): Use gdbarch_from_bfd to get at the
6405 current architecture. Replace current_gdbarch. Fix indention. Replace
6406 deprecated_print_address_numeric by paddress.
6407 * Makefile.in (exec.o) Add dependency to arch-utils.h.
6408
680b56ce 6409 * valprint.c (val_print_string): Replace
ed49a04f
MD
6410 deprecated_print_address_numeric.
6411 * tracepoint.c (trace_mention, scope_info): Likewise.
6412 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
6413 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
6414 (maintenance_check_symtabs): Likewise.
6415 * symfile.c (list_overlays_command): Likewise.
6416 * stack.c (frame_info, print_block_frame_labels): Likewise.
6417 * printcmd.c (print_address, print_address_demangle)
6418 (address_info): Likewise.
6419 * corefile.c (memory_error): Likewise.
6420 * infcmd.c (jump_command): Likewise.
6421 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
6422 (mention, delete_breakpoint): Likewise.
6423 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
6424 * dwarf2read.c (dump_die): Likewise.
6425 * ada-valprint.c (ada_val_print_1): Likewise.
6426 * f-valprint.c (f_val_print): Likewise.
680b56ce 6427 * linux-fork.c (info_forks_command): Likewise.
ed49a04f
MD
6428 * m32r-com.c (m32r_load_section, m32r_load)
6429 (m32r_upload_command): Likewise.
6430
6431 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
6432
6093d2eb
MD
64332008-01-11 Markus Deuling <deuling@de.ibm.com>
6434
6435 * gdbarch.sh (skip_prologue): Add gdbarch
6436 as parameter.
6437 * gdbarch.{c,h}: Regenerate.
6438
6439 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
6440 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6441 * avr-tdep.c (avr_skip_prologue): Likewise.
6442 * cris-tdep.c (cris_skip_prologue): Likewise.
6443 * frv-tdep.c (frv_skip_prologue): Likewise.
6444 * h8300-tdep.c (h8300_skip_prologue): Likewise.
6445 * hppa-tdep.c (hppa_skip_prologue): Likewise.
6446 * i386-tdep.c (i386_skip_prologue): Likewise.
6447 * ia64-tdep.c (ia64_skip_prologue): Likewise.
6448 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
6449 * m32r-tdep.c (m32r_skip_prologue): Likewise.
6450 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
6451 * m68k-tdep.c (m68k_skip_prologue): Likewise.
6452 * m88k-tdep.c (m88k_skip_prologue): Likewise.
6453 * mep-tdep.c (mep_skip_prologue): Likewise.
6454 * mips-tdep.c (mips_skip_prologue): Likewise.
6455 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
6456 * mt-tdep.c (mt_skip_prologue): Likewise.
6457 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
6458 * score-tdep.c (score_skip_prologue): Likewise.
6459 * sh64-tdep.c (sh64_skip_prologue): Likewise.
6460 * sh-tdep.c (sh_skip_prologue): Likewise.
6461 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
6462 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
6463 * spu-tdep.c (spu_skip_prologue): Likewise.
6464 * v850-tdep.c (v850_skip_prologue): Likewise.
6465 * vax-tdep.c (vax_skip_prologue): Likewise.
6466 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
6467 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
6468
6469 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
6470 current_gdbarch by gdbarch.
6471 * m32c-tdep.c (m32c_skip_prologue): Likewise.
6472 * s390-tdep.c (s390_skip_prologue): Likewise.
6473
72f5cf0e
DE
64742008-01-10 Doug Evans <dje@google.com>
6475
6476 * defs.h (struct continuation_arg): Fix typo in comment.
6477 * target.c (target_translate_tls_address): Fix comment spelling error.
6478
689e4e2d
TJB
64792008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
6480
6481 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
6482 (DOUBLEST_SCAN_FORMAT): Likewise.
6483 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
6484 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
6485 * c-exp.y (parse_number): Likewise.
6486 * jv-exp.y (parse_number): Likewise.
6487 * objc-exp.y (parse_number): Likewise.
6488 * p-exp.y (parse_number): Likewise.
6489
ab0d6e0d
JB
64902008-01-09 Joel Brobecker <brobecker@adacore.com>
6491
6492 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
6493 (check_typedef): Likewise.
6494
0aea4bf3
LM
64952008-01-09 Luis Machado <luisgpm@br.ibm.com>
6496
6497 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
6498 seen_double_big_d, treat the new H, D, and DD modifiers as length
6499 modifiers.
6500
137033e9
JB
65012008-01-08 Joel Brobecker <brobecker@adacore.com>
6502
6503 * dwarf2read.c (read_enumeration_type): Add comment.
6504
dda297ec
TJB
65052008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
6506
6507 * config.in: Regenerate.
6508
a93c0eb6
JB
65092008-01-08 Joel Brobecker <brobecker@adacore.com>
6510
6511 * ada-lang.c (ada_convert_actual): Renames convert_actual.
6512 Make non-static.
6513 (ada_convert_actuals): Delete.
6514 * ada-lang.h (ada_convert_actual): Add declaration.
6515 (ada_convert_actuals): Remove declaration.
6516 * infcall.c: #include "ada-lang.h".
6517 (value_arg_coerce): Add new parameter sp. Update function
6518 documetnation. Add handling of Ada function call parameters.
6519 * Makefile.in (infcall.o): Update dependencies.
6520
a84a8a0d
JB
65212008-01-08 Paul Hilfinger <hilfinger@adacore.com>
6522
6523 * ada-lang.c (ensure_lval): Fix value lval kind.
6524 (convert_actual): Add handling for arguments passed by reference.
6525
d7f98cce
DE
65262008-01-08 Doug Evans <dje@google.com>
6527
6528 * dbxread.c (read_dbx_symtab): Fix indentation.
6529
4ef30785
TJB
65302008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
6531
6532 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
6533 (valarith.o): Depend on dfp.h.
6534 (valops.o): Likewise.
6535 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
6536 (set_decnumber_context): New function.
6537 (decimal_check_errors): Likewise.
6538 (decimal_from_number): Likewise.
6539 (decimal_to_number): Likewise.
6540 (decimal_from_string): Use set_decnumber_context and
6541 decimal_check_errors.
6542 (decimal_from_integral): New function.
6543 (decimal_from_floating): Likewise.
6544 (decimal_to_double): Likewise.
6545 (promote_decimal): Likewise.
6546 (decimal_binop): Likewise.
6547 (decimal_is_zero): Likewise.
6548 (decimal_compare): Likewise.
6549 (decimal_convert): Likewise.
6550 * dfp.h (decimal_from_integral): New prototype.
6551 (decimal_from_floating): Likewise.
6552 (decimal_to_double): Likewise.
6553 (decimal_binop): Likewise.
6554 (decimal_is_zero): Likewise.
6555 (decimal_compare): Likewise.
6556 (decimal_convert): Likewise.
6557 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
6558 call to value_from_decfloat.
6559 * valarith.c: Include dfp.h.
6560 (value_args_as_decimal): New function.
6561 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
6562 (value_logical_not): Likewise.
6563 (value_equal): Likewise.
6564 (value_less): Likewise.
6565 (value_pos): Likewise.
6566 (value_neg): Formatting fix.
6567 * valops.c: Include dfp.h.
6568 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
6569 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
6570 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
6571 (value_from_decfloat): Remove expect_type argument.
6572 * value.h (value_from_decfloat): Update prototype.
6573
a7c02bc8
VP
65742008-01-07 Vladimir Prus <vladimir@codesourcery.com>
6575
6576 Ignore change in name of dynamic linker during
6577 execution on Solaris. This also unbreaks pending breakpoints.
6578
6579 * solist.h (struct target_so_ops): New field same.
680b56ce
AS
6580 * solib-svr4.c (svr4_same): New.
6581 (_initialize_svr4_solib): Register svr4_same.
6582 * solib.c (update_solib_list): Use ops->same, if available.
a7c02bc8 6583
610dd7f9
CF
65842008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
6585
6586 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
6587 when using MS-DOS paths.
6588
7a404eba
PA
65892008-01-05 Pedro Alves <pedro@codesourcery.com>
6590
6591 * NEWS: Mention --pid and --core command line behaviour changes.
6592
a4d9b460
PA
65932008-01-05 Pedro Alves <pedro@codesourcery.com>
6594
6595 * main.c (captured_main): Remove 'count' varible and the
6596 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
6597 --pid options were issued simultaneously. If an explicit pid
6598 option was passed, don't fallback to core file. Detect extra
6599 arguments better in the presence of explicit pid or core
6600 arguments.
6601
0c281816
JB
66022008-01-05 Joel Brobecker <brobecker@adacore.com>
6603
6604 * ada-lang.c (ada_which_variant_applies): Correctly compute
6605 the value of the discriminant when the variant record is packed.
6606
babe1480
JB
66072008-01-04 Joel Brobecker <brobecker@adacore.com>
6608
6609 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
6610 that are used to differentiate homonyms.
6611
727e3d2e
JB
66122008-01-04 Jerome Guitton <guitton@adacore.com>
6613
6614 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
6615 when the type is an anonymous pointer type.
6616 (ada_check_typedef): Avoid a seg fault when the type is null.
6617 * ada-typeprint.c (print_array_type): Add support for pointer
6618 to packed arrays.
6619
bb28a9dc
JB
66202008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
6621
680b56ce 6622 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
bb28a9dc 6623
6799def4
JB
66242008-01-04 Joel Brobecker <brobecker@adacore.com>
6625
6626 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
6627 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
6628
d3353bbd
JB
66292008-01-04 Joel Brobecker <brobecker@adacore.com>
6630
6631 * ada-exp.y (chop_separator): New function.
6632 (write_selectors): Rewrite to re-use chop_separator.
6633 (ada_nget_field_index, get_symbol_field_type): New functions.
6634 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
6635 expressions.
6636
82cf6c60
TJB
66372008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6638
6639 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
6640 of SYMBOL_VALUE when working with function symbols.
6641
b3dbf008
JB
66422008-01-03 Joel Brobecker <brobecker@adacore.com>
6643
6644 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
6645 expressions. These expressions do not need to be rewriten.
6646
02eb380e
JB
66472008-01-03 Joel Brobecker <brobecker@adacore.com>
6648
6649 * dwarf2read.c (read_enumeration_type): Flag type as stub if
6650 the given die is a declaration.
6651
abb68b3e
JB
66522008-01-03 Joel Brobecker <brobecker@adacore.com>
6653
6654 * ada-lang.c (ada_array_bound_from_type): Make non-static.
6655 Handle properly the case when the index type is an enumerated type.
6656 Do not return the subtype of the bounds type, just return the
6657 bounds type directly - this is not needed and is more consistent
6658 with what we do for arrays when no XA parallel type exists.
6659
f192137b
JB
66602008-01-03 Joel Brobecker <brobecker@adacore.com>
6661
6662 * ada-lang.c (static_unwrap_type): Add forward declaration.
6663 (template_to_static_fixed_type): Fields of dynamic types sometimes
6664 also need to be unwrapped. Take this into account.
6665 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
6666 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
6667 * ada-typeprint.c (ada_print_type): Get the typename from
680b56ce 6668 the original type, not the base type.
f192137b 6669
1ed6ede0
JB
66702008-01-03 Jerome Guitton <guitton@adacore.com>
6671
6672 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
680b56ce 6673 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1ed6ede0
JB
6674 Update calls to ada_to_fixed_type.
6675 (ada_template_to_fixed_record_type_1): Ditto, but without looking
6676 for the tag.
6677 (ada_to_fixed_type): Add check_tag parameter; do not look for
6678 tag if null. When looking for a tag, use a fixed record type.
6679 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
6680 * ada-valprint.c (printable_val_type, ada_value_print): Update
6681 calls to ada_to_fixed_type.
6682
542a88d0
LM
66832008-01-03 Luis Machado <luisgpm@br.ibm.com>
6684
680b56ce 6685 * doublest.c (convert_floatformat_to_doublest): Call
542a88d0
LM
6686 floatformat_to_doublest instead of floatformat_to_double and use
6687 DOUBLEST variables.
6688 (convert_doublest_to_floatformat): Call floatformat_from_doublest
6689 instead of floatformat_from_double and use DOUBLEST variables.
6690
dc2bbab2
NH
66912008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
6692
6693 * MAINTAINERS (Write After Approval): Add self.
6694
8b60591b
JB
66952008-01-03 Joel Brobecker <brobecker@adacore.com>
6696
6697 * symfile.c (set_initial_language): Make non-static.
6698 * symfile.h (set_initial_language): Add declaration.
6699 * language.c: #include "symfile.h".
6700 (set_language): Call set_initial_language if the frame language
6701 could not be determined.
6702
ceef53c1
JB
67032008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
6704
6705 * eval.c (evaluate_subexp_for_address): Provide frame address to
6706 locate_var_value only if it will be needed.
6707
ef29ce1a
JK
67082008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6709
6710 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
6711
0a07e705
JB
67122008-01-02 Joel Brobecker <brobecker@adacore.com>
6713
6714 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
6715 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
6716 This is needed to make sure that any other treatment applied
6717 to the resulting value does not fail for spurious reason,
6718 such as trying to take the address of this value.
6719
f58b38bf
JB
67202008-01-02 Joel Brobecker <brobecker@adacore.com>
6721
6722 * ada-lang.c (ada_value_equal): Dereference reference types when
6723 comparing arrays.
680b56ce 6724
9b254dd1
DJ
67252008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
6726
6727 Updated copyright notices for most files.
6728
33605d39
CF
67292008-01-01 Christopher Faylor <me+gdb@cgf.cx>
6730
6731 * win32-nat.c (psapi_module_handle): Remove static.
6732 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
6733 return first module found if base_address is zero. Don't initialize
6734 psapi function pointers here. Convert to cygwin paths when
6735 appropriate.
6736 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
6737 executable name. Use get_module_name when that fails or when
6738 !__CYGWIN__.
6739 (_initialize_psapi): New function. Initialize psapi stuff before it is
6740 needed or issue a warning if it is not found. Move psapi_module_handle
6741 here.
6742
29480c32
JB
67432008-01-01 Joel Brobecker <brobecker@adacore.com>
6744
6745 * ada-lang.c (ada_remove_trailing_digits): New function.
6746 (ada_remove_po_subprogram_suffix): New function.
6747 (ada_decode): Improve. Move the description of the algorithm
6748 directly inside the code, instead of in the function global
6749 description.
6750
969a1360
JB
67512008-01-01 Joel Brobecker <brobecker@adacore.com>
6752
6753 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
6754 and always print the dereferenced value.
6755
b7789565
JB
67562008-01-01 Joel Brobecker <brobecker@adacore.com>
6757
6758 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
6759 of the case where the first argument is a reference.
6760 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
6761
73fb9985
JB
67622008-01-01 Joel Brobecker <brobecker@adacore.com>
6763
6764 Implement support for Ada interface types.
6765
6766 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
6767 (ada_is_ignored_field): Ignore fields that are a dispatch table
6768 of a tagged type.
6769
636265b6
JB
67702008-01-01 Joel Brobecker <brobecker@adacore.com>
6771
6772 * top.c (print_gdb_version): Update copyright year.
6773
9d200a2e 67742008-01-01 Joel Brobecker <brobecker@adacore.com>
b7589f7d 6775
9d200a2e
JB
6776 * ChangeLog-2007: New ChangeLog rotation.
6777 * ChangeLog: Reset for 2008.
6778 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
6779 ChangeLog-2007.
b7589f7d 6780
9d200a2e 6781For older changes see ChangeLog-2007.
c906108c
SS
6782\f
6783Local Variables:
6784mode: change-log
6785left-margin: 8
6786fill-column: 74
6787version-control: never
57da7796 6788coding: utf-8
c906108c 6789End:
This page took 1.255814 seconds and 4 git commands to generate.