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