Implement -thread-info.
[binutils-gdb.git] / gdb / ChangeLog
1 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
2
3 Implement -thread-info.
4 * gdbthread.h (print_thread_info): Declare.
5
6 * thread.c (print_thread_info): New, extracted
7 from info_threads_command and adjusted to
8 work for CLI and MI.
9 (info_threads_command): Use print_thread_info.
10 * Makefile.in: Update dependencies.
11
12 * mi/mi-cmds.c (mi_cmds): Specify a handler
13 for -thread-info.
14 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
15 * mi/mi-main.c (mi_cmd_thread_info): New.
16 (mi_cmd_list_features): Include 'thread-info'.
17
18 2008-03-14 Kevin Buettner <kevinb@redhat.com>
19
20 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
21 to decide whether to match instruction patterns using "sw" and "sd".
22
23 2008-03-14 Pedro Alves <pedro@codesourcery.com>
24
25 * infcmd.c (jump_command): Postpone disabling stdin until after
26 the possible query.
27
28 2008-03-14 Pedro Alves <pedro@codesourcery.com>
29
30 * inflow.c (gdb_getpgrp): New.
31 (gdb_has_a_terminal): Use get_getpgrp.
32 (terminal_ours_1): If attach_flag is set, don't refetch
33 inferior_process_group.
34
35 2008-03-14 Pedro Alves <pedro@codesourcery.com>
36
37 * features/library-list.dtd: Allow "section" elements as children
38 of "library". Add "section" element and describe its attributes.
39
40 * solib-target.c (struct lm_info): Add section_bases member.
41 (library_list_start_segment): Error out if seen a section element.
42 (library_list_start_section): New.
43 (library_list_end_library): New.
44 (solib_target_free_library_list): Free section_bases.
45 (section_attributes): New.
46 (library_children): Make "segment" optional. Add "section" child.
47 (library_list_children): Register library_list_end_library.
48 (solib_target_relocate_section_addresses): Handle section bases.
49
50 * NEWS: Mention new qXfer:libraries:read section offsets support.
51
52 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
53
54 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
55 (make_exec_error_cleanup): Remove declarations.
56 * utils.c (exec_error_cleanup_chain): Remove.
57 (do_exec_error_cleanups, discard_exec_error_cleanups)
58 (make_exec_error_cleanup): Remove.
59 * event-loop.c (start_event_loop): Adjust call to
60 async_enable_stdin.
61 * event-top.c (async_enable_stdin): Remove the paramater dummy.
62 (async_disable_stdin): Don't register async_enable_stdin via
63 cleanup.
64 * inf-loop.c (inferior_event_handler): Don't
65 call do_exec_error_cleanups. Call async_enable_stdin instead.
66 * event-loop.c (start_event_loop): Adjust call to
67 async_enable_stdin.
68 * tui/tui-interp.c (tui_command_loop): Adjust call to
69 async_enable_stdin.
70
71 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
72
73 Async mode fixes.
74 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
75 * breakpoint.c (bpstat_do_actions): In async mode,
76 don't jump to top expecting stop_bpstat to be already
77 updated.
78 * event-loop.c (start_event_loop): Call async_enable_stdin
79 on exception.
80 * event-top.c (async_enable_stdin): Do nothing if sync_execution
81 is not set.
82 (command_handler): Do not setup continuation here.
83 (command_line_handler_continuation): Move to...
84 * top.c (command_line_handler_continuation): ... here.
85 (execute_command): In async mode, register continuation.
86 Don't check frame's language in running in async mode.
87 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
88 * inf-loop.c (complete_execution): Inline into...
89 (inferior_event_handler): ... here. Clear target_executing before
90 doing any cleanups. Don't try to show prompt if the target was
91 resumed.
92 * infcmd.c (signal_command): Add support for async mode.
93 (finish_command): Only add continuation if the target was
94 successfully resumed.
95 * remote.c (init_async_opts): Register to_get_thread_local_address
96 handler.
97 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
98 with sync_execution.
99 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
100 on exception.
101
102 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
103
104 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
105 * exec.c (exec_bfd_mtime): Define.
106 (exec_close): Clear it.
107 (exec_file_attach): Set it.
108 * gdbcore.h (exec_bfd_mtime): Declare.
109 * source.c (find_source_lines): Do not use bfd_get_mtime.
110
111 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
112
113 * top.c (simplified_command_loop): Remove.
114
115 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
116
117 Remove unused remote.c hooks.
118 * remote.c (deprecated_target_resume_hook)
119 (deprecated_target_wait_loop_hook): Remove.
120 (remote_resume): Do not call deprecated_target_resume_hook.
121 (remote_wait): Do not call deprecated_target_wait_loop_hook.
122 (remote_async_wait): Likewise.
123
124 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
125
126 Implement MI notification for new threads.
127 * doc/observer.texi (new_thread): Document.
128 * observer.sh: Forward declare struct thread_info.
129 * thread.c (add_thread): Notify observer.
130
131 * interps.h (interp_init_ftype): New parameter
132 top_level.
133 (interp_set): Likewise.
134 (top_level_interpreter_data): Declare.
135 * interps.c (interp_set): New parameter top_level.
136 Pass it to interpreter's init function. Remember
137 top level interpreter.
138 (interpreter_exec_cmd): Adjust.
139 (top_level_interpreter_data): New.
140 * main.c (captured_main): Pass 1 for top_level
141 parameter of interp_set.
142 * cli/cli-interp.c (cli_interpreter_init): New
143 parameter top_level.
144 * tui/tui-interp.c (tui_init): New parameter top_level.
145
146 * mi/mi-interp.c (mi_new_thread): New.
147 (mi_interpreter_init): If top level, register
148 observer for new threads.
149
150 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
151
152 2008-03-14 Pedro Alves <pedro@codesourcery.com>
153
154 * top.c (execute_command): Disable break and stop
155 commands in async mode.
156
157 2008-03-14 Pedro Alves <pedro@codesourcery.com>
158
159 revert:
160 2008-03-14 Pedro Alves <pedro@codesourcery.com>
161 * inf-loop.c (inferior_event_handler): Don't include remote.h.
162 Call target_stop in the INF_QUIT_REQ case.
163 * Makefile.in (inf-loop.o): Update.
164
165 2008-03-14 Pedro Alves <pedro@codesourcery.com>
166
167 * inf-loop.c (inferior_event_handler): Don't include remote.h.
168 Call target_stop in the INF_QUIT_REQ case.
169 * Makefile.in (inf-loop.o): Update.
170
171 2008-03-14 Pedro Alves <pedro@codesourcery.com>
172
173 * top.c (execute_command): Enable break, info and interrupt
174 commands in async mode.
175
176 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
177 Daniel Jacobowitz <dan@codesourcery.com>
178
179 * breakpoint.h (breakpoint_restore_shadows): New
180 declaration.
181 * breakpoint.c (breakpoint_restore_shadows): New.
182 (read_memory_nobpt): Delete.
183 * gdbcore.h (read_memory_nobpt): Delete declaration.
184 * target.c (memory_xfer_partial): Call
185 breakpoint_restore_shadows.
186 (restore_show_memory_breakpoints)
187 (make_show_memory_beakpoints_cleanup): New.
188 (show_memory_breakpoints): New.
189 * target.h (make_show_memory_beakpoints_cleanup): Declare.
190 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
191 Make sure we see memory breakpoints when checking if
192 breakpoint is still there.
193 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
194 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
195 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
196 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
197
198 2008-03-12 Pedro Alves <pedro@codesourcery.com>
199
200 * thread.c (add_thread): Use printf_unfiltered to print.
201
202 2008-03-12 Joel Brobecker <brobecker@gnat.com>
203
204 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
205 that is true only on x86-solaris and x86_64-solaris.
206 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
207 with proc_get_LDT_entry.
208
209 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
210
211 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
212 * config.in, configure: Regenerate.
213 * fork-child.c (fork_inferior): Call create_tty_session.
214 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
215 (create_tty_session): New function.
216 * terminal.h: Declare create_tty_session.
217
218 2008-03-12 Alan Modra <amodra@bigpond.net.au>
219
220 PR 5900
221 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
222 * mipsread.c: Include elf/internal.h.
223 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
224 to internal range.
225
226 2008-03-11 Markus Deuling <deuling@de.ibm.com>
227
228 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
229 to get at the current architecture and at the target specific vector.
230 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
231 remove define of I387_ST0_REGNUM.
232
233 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
234
235 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
236 get at the current architecture
237 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
238 parameter.
239
240 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
241 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
242
243 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
244 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
245 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
246
247 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
248 at the target specific vector.
249
250 (i386_get_longjmp_target): Use get_frame_arch to get at the current
251 architecture. Use gdbarch_tdep to get at the target specific vector.
252
253 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
254 update caller. Use gdbarch_tdep to get at the target specific vector.
255
256 (i386_register_to_value: Use get_frame_arch to get at the current
257 architecture.
258
259 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
260 parameter.
261
262 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
263 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
264 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
265 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
266
267 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
268 undef's.
269
270 (i387_convert_register_p, i387_register_to_value,
271 i387_value_to_register): Update call for i386_fp_regnum_p.
272
273 * i387-tdep.h: Remove comment.
274 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
275 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
276 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
277 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
278 I387_MXCSR_REGNUM): Add target specific vector as parameter.
279
280 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
281
282 * Makefile.in (fork-child.o): Update.
283 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
284 argument. Gather all gdbserver features together.
285 * fork-child.c (exec_wrapper): New variable.
286 (fork_inferior): Use it.
287 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
288 (unset_exec_wrapper_command, _initialize_fork_child): New.
289
290 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
291
292 * source.c (directory_command): Modify the determination of
293 condition of terminal "from_tty".
294
295 2008-03-10 Matt Rice <ratmice@gmail.com>
296
297 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
298
299 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
300
301 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
302 of the data passing to strtoulst function.
303 (info_spu_signal_command): Likewise.
304
305 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
306
307 * mi/mi-interp.c (mi_command_loop): Remove
308 commented-out code.
309
310 2008-03-07 Joel Brobecker <brobecker@adacore.com>
311
312 * remote.c (extended_remote_attach_1): Make local variable pid an int
313 instead of a pid_t.
314
315 2008-03-07 Joel Brobecker <brobecker@adacore.com>
316
317 * solib-svr4.c (svr4_same_1): New function, originally extracted
318 from svr4_same and expanded to handle the sparc64 case.
319 (svr4_same): Move up and reimplement using svr4_same_1.
320 (enable_break): Use svr4_same_1 to do shared library name comparisons.
321
322 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
323
324 * MAINTAINERS: Move self to Paper trail.
325
326 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
327
328 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
329 * event-loop.c (call_async_signal_handler): New.
330 * event-loop.h (call_async_signal_handler)
331 (gdb_call_async_signal_handler): Declare.
332 (mark_async_signal_handler): Add comments.
333 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
334 * mingw-hdep.c (sigint_event, sigint_handler): New.
335 (gdb_select): Use them. Wait for the readline signal handler
336 to finish.
337 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
338 * posix-hdep.c (gdb_call_async_signal_handler): New function.
339 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
340 New.
341 (remote_fileio_ctrl_c_signal_handler): Use
342 gdb_call_async_signal_handler.
343 (initialize_remote_fileio): Initialize sigint_fileio_token.
344 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
345 not initialize tokens here.
346 (handle_remote_sigint_twice): Likewise. Reinstall
347 handle_remote_sigint.
348 (async_remote_interrupt_twice): Just call interrupt_query.
349 (cleanup_sigint_signal_handler): Do not delete tokens.
350 (remote_interrupt, remote_interrupt_twice): Use
351 gdb_call_async_signal_handler.
352 (interrupt_query): Reinstall the default signal handler.
353 (_initialize_remote): Initialize tokens here.
354
355 2008-03-04 Joel Brobecker <brobecker@adacore.com>
356
357 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
358 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
359 Change the type of the lr register to code_ptr.
360 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
361 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
362 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
363 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
364 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
365 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
366 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
367
368 2008-03-03 James E. Wilson <wilson@tuliptree.org>
369
370 * MAINTAINERS: Update my email address.
371
372 2008-03-03 Keith Seitz <keiths@redhat.com>
373
374 From Dave Murphy <davem@devkitpro.org>:
375 * configure.ac: Set tcl configdir to win under mingw.
376 * configure: Regenerate.
377
378 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
379
380 * breakpoint.c (fetch_watchpoint_value): New function.
381 (update_watchpoint): Set and clear val_valid. Use
382 fetch_watchpoint_value. Handle unreadable values on the
383 value chain. Correct check for user-requested array watchpoints.
384 (breakpoint_init_inferior): Clear val_valid.
385 (watchpoint_value_print): New function.
386 (print_it_typical): Use it. Do not free or clear old_val. Print
387 watchpoints even if old_val == NULL.
388 (watchpoint_check): Use fetch_watchpoint_value. Check for values
389 becoming readable or unreadable.
390 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
391 (do_enable_watchpoint): Likewise.
392 * breakpoint.h (struct breakpoint): Update comment for val. Add
393 val_valid.
394 * NEWS: Mention watchpoints on inaccessible memory.
395
396 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
397
398 * Makefile.in (i386-nat.o): Update.
399 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
400 i386_use_watchpoints.
401 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
402 i386_use_watchpoints.
403 * i386-nat.c (i386_stopped_data_address): Take two arguments.
404 (i386_stopped_by_watchpoint): Update call.
405 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
406 * config/i386/nm-i386.h: Conditionalize definitions on
407 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
408 (i386_use_watchpoints): Declare.
409 (i386_stopped_data_address): Update.
410 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
411 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
412
413 2008-02-29 Joel Brobecker <brobecker@adacore.com>
414
415 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
416 * version.in: Bump version to 6.8.50.20080229-cvs.
417
418 2008-02-28 Markus Deuling <deuling@de.ibm.com>
419
420 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
421 properly.
422
423 2008-02-28 Tom Tromey <tromey@redhat.com>
424
425 * infcmd.c (notice_args_read): Print result of get_inferior_args.
426
427 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
428
429 * infcmd.c (kill_if_already_running): Make static. Use
430 target_require_runnable.
431 * target.c (target_require_runnable): New.
432 * target.h (target_require_runnable): Declare.
433
434 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
435
436 * frame.c (reinit_frame_cache): Only annotate if frames were
437 previously valid.
438
439 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
440
441 * regformats/reg-ppc.dat: Rename "ps" to "msr".
442 * regformats/reg-ppc64.dat: Likewise.
443
444 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
445
446 * features/Makefile (%.dat): Emit xmltarget statement.
447
448 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
449 Generate code to set gdbserver_xmltarget in init_registers_${name}.
450
451 * regformats/arm-with-iwmmxt.dat: Regenerate.
452 * regformats/mips64-linux.dat: Regenerate.
453 * regformats/mips-linux.dat: Regenerate.
454 * regformats/rs6000/powerpc-32.dat: Regenerate.
455 * regformats/rs6000/powerpc-64.dat: Regenerate.
456 * regformats/rs6000/powerpc-e500.dat: Regenerate.
457
458 * regformats/reg-arm.dat: Add xmlarch statement.
459 * regformats/reg-i386.dat: Likewise.
460 * regformats/reg-i386-linux.dat: Likewise.
461 * regformats/reg-x86-64-linux.dat: Likewise.
462 * regformats/reg-spu.dat: Likewise.
463
464 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
465
466 * remote.c (remote_wait, remote_async_wait): Stop if we receive
467 an error.
468
469 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
470
471 * utils.c (debug_timestamp): New.
472 (vfprintf_unfiltered): Print timestamps if requested.
473 (show_debug_timestamp): New.
474 (initialize_utils): Register "set debug timestamp".
475 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
476
477 2008-02-27 Joel Brobecker <brobecker@adacore.com>
478
479 * breakpoint.c (skip_prologue_sal): New function.
480 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
481 computed from a line number.
482
483 2008-02-27 Joel Brobecker <brobecker@adacore.com>
484
485 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
486 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
487 Set PC register type to "code_ptr".
488 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
489 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
490 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
491 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
492 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
493 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
494 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
495 Regenerate.
496
497 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
498
499 * regformats/regdat.sh: Rename init_registers function in
500 generated file to init_registers_${name}.
501
502 * regformats/reg-crisv32.dat: Set "name" to crisv32.
503 * regformats/reg-ppc64.dat: Set "name" to ppc64.
504 * regformats/reg-s390x.dat: Set "name" to s390x.
505
506 2008-02-26 Greg Law <glaw@undo-software.com>
507
508 * regcache.c (registers_changed): Call reinit_frame_cache.
509
510 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
511
512 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
513 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
514 and svr4_fetch_objfile_link_map.
515 * Makefile.in (sh-linux-tdep.o): Update.
516
517 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
518
519 * amd64-tdep.c (amd64_classify): Add support for decimal float
520 types.
521 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
522 use the struct return convention.
523
524 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
525
526 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
527 to old format. Discard breakpoint address if shared library is
528 unloaded.
529 (breakpoint_1): Adjust formatting of table header accordingly.
530
531 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
532
533 * remote.c (remote_get_threadlist): If the response
534 is empty, don't try to parse it.
535
536 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
537
538 Unbreak 'target async'.
539 * serial.c (serial_async): Set the
540 handler function before enabling async
541 mode.
542
543 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
544
545 * solib-svr4.c (enable_break): Convert r_brk to a code address.
546
547 2008-02-21 Pedro Alves <pedro@codesourcery.com>
548
549 * remote.c (extended_remote_attach_1): Set attach_flag.
550 (extended_remote_create_inferior_1): Clear attach_flag.
551
552 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
553
554 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
555 r_brk_offset.
556 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
557 * solib-svr4.c (solib_svr4_r_brk): New.
558 (open_symbol_file_object, svr4_current_sos): Always check the
559 debug base.
560 (svr4_fetch_objfile_link_map): Do not set debug_base.
561 (enable_break): Use r_brk if it is set.
562 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
563 (svr4_lp64_fetch_link_map_offsets): Likewise.
564 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
565
566 2008-02-20 Markus Deuling <deuling@de.ibm.com>
567 Mark Kettenis <kettenis@gnu.org>
568
569 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
570 trad_frame_saved_reg.
571 (trad-frame.h): New include.
572
573 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
574 instead of frame_obstack_zalloc.
575 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
576
577 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
578
579 2008-02-20 Markus Deuling <deuling@de.ibm.com>
580
581 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
582 from disassemble_info instead of gdbarch_byte_order.
583
584 * mips-tdep.c (gdb_print_insn_mips): Likewise.
585 * arm-tdep.c (gdb_print_insn_arm): Likewise.
586
587 2008-02-20 Markus Deuling <deuling@de.ibm.com>
588
589 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
590 gdbarch as parameter.
591
592 * gdbarch.{c,h}: Regenerate.
593
594 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
595 parameter.
596 * mem-break.c (default_memory_insert_breakpoint)
597 (default_memory_remove_breakpoint): Likewise.
598 * target.h (default_memory_remove_breakpoint)
599 (default_memory_insert_breakpoint): Likewise.
600
601 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
602 parameter. Replace current_gdbarch by gdbarch.
603 * m32r-tdep.c (m32r_memory_insert_breakpoint)
604 (m32r_memory_remove_breakpoint): Likewise.
605
606 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
607
608 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
609
610 2008-02-19 Joel Brobecker <brobecker@adacore.com>
611
612 * NEWS: Add entry describing Add support improvements.
613
614 2008-02-18 Markus Deuling <deuling@de.ibm.com>
615
616 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
617 M68K_FP0_REGNUM.
618
619 2008-02-18 Markus Deuling <deuling@de.ibm.com>
620
621 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
622 register_offset_hack anymore.
623
624 * regcache.{c,h} (register_offset_hack): Remove.
625
626 2008-02-18 Markus Deuling <deuling@de.ibm.com>
627
628 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
629
630 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
631 current_gdbarch by gdbarch.
632 (hppa64_hpux_find_global_pointer): Likewise.
633 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
634 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
635 find_global_pointer.
636
637 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
638 parameter.
639 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
640
641 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
642 of gdbarch_num_regs.
643
644 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
645 replace current_gdbarch by gdbarch.
646 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
647
648 2008-02-18 Markus Deuling <deuling@de.ibm.com>
649
650 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
651 and replace current_gdbarch by gdbarch.
652
653 (store_register): Update call for exec_one_dummy_insn.
654 (fetch_register, store_register): Update call of regmap.
655
656 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
657 parameter and replace current_gdbarch by gdbarch.
658
659 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
660 the current architecture. Update call for getregs_supplies and
661 getfpregs_supplies.
662 (ppcnbsd_fetch_inferior_registers): Likewise.
663
664 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
665 replace current_gdbarch by gdbarch.
666 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
667 get_regcache_arch to get at the current architecture. Update call for
668 getfpregs_supplies.
669
670 2008-02-18 Markus Deuling <deuling@de.ibm.com>
671
672 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
673 variables.
674
675 2008-02-15 Markus Deuling <deuling@de.ibm.com>
676
677 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
678
679 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
680
681 * NEWS: Mention pending breakpints in MI.
682
683 2008-02-14 Markus Deuling <deuling@de.ibm.com>
684
685 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
686
687 2008-02-13 Markus Deuling <deuling@de.ibm.com>
688
689 Add script to build and test GDB using enable-targets=all.
690
691 * gdb_buildall.sh: New file.
692
693 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
694
695 * NEWS (New native configurations): Xtensa GNU/Linux.
696 (New targets): Xtensa GNU/Linux.
697 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
698 xtensa-linux-tdep.o
699 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
700 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
701 * configure.tgt (xtensa*-*-linux*): New entry.
702 * xtensa-config.c (xtensa_tdep): New variable.
703 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
704 (rmap): Change format based on new macro XTREG.
705 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
706 * xtensa-linux-nat.c: New.
707 * xtensa-linux-tdep.c: New.
708 * xtensa-xtregs.c: New.
709 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
710 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
711 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
712 (xtensa_register_t): New field coprocessor.
713 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
714 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
715 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
716 Update to handle privileged registers.
717 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
718 (xtensa_push_dummy_call): Set windowstart register correctly.
719 (call0_analyze_prologue): Initialize xtensa_default_isa.
720 (xtensa_derive_tdep): New.
721 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
722 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
723 Call xtensa_derive_tdep().
724 * config/xtensa/linux.mh: New.
725 * regformats/reg-xtensa.dat: New.
726
727 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
728
729 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
730 (filenames.h): New include.
731 * Makefile.in (corelow.o): Add dependency for filenames.h.
732
733 2008-02-08 Doug Evans <dje@google.com>
734
735 * source.c (find_and_open_source): Always rewrite absolute filenames.
736
737 2008-02-07 Doug Evans <dje@google.com>
738
739 * breakpoint.c: #include "hashtab.h".
740 (ambiguous_names_p): New fn.
741 (update_breakpoint_locations): When restoring bp enable status, don't
742 compare function names if any functions have same name.
743 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
744
745 2008-02-07 Joel Brobecker <brobecker@adacore.com>
746
747 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
748 instead of just a VEC*. Update use of SV.
749 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
750
751 2007-02-07 Joel Brobecker <brobecker@adacore.com>
752
753 * NEWS: Put all new commands since gdb-6.7 together.
754
755 2007-02-07 Joel Brobecker <brobecker@adacore.com>
756
757 * ada-lang.c: #include "vec.h".
758 (struct string_vector, new_string_vector, string_vector_append):
759 Delete.
760 (char_ptr): New typedef.
761 (DEF_VEC_P (char_ptr)): New VEC type.
762 (symbol_completion_add): Update profile to take the new VEC type
763 instead of the old string_vector structure. Update code accordingly.
764 (ada_make_symbol_completion_list): Use the new VEC type instead of
765 the old string_vector structure, and update the code accordingly.
766 * Makefile.in (ada-lang.o): Add dependency on vec.h.
767
768 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
769
770 * p-exp.y: Set current_type in missing places.
771 (leftdiv_is_integer): New static variable.
772 Typecast right operand of BINOP_DIV to long_double if both operands
773 are integers.
774
775 2008-02-06 Maciej W. Rozycki <macro@mips.com>
776
777 * remote-mips.c (set_breakpoint): Rename to...
778 (mips_set_breakpoint): ... this.
779 (clear_breakpoint): Rename to...
780 (mips_clear_breakpoint): ... this.
781 (common_breakpoint): Rename to...
782 (mips_common_breakpoint): ... this.
783 (check_lsi_error): Rename to...
784 (mips_check_lsi_error): ... this.
785
786 2007-02-05 Joel Brobecker <brobecker@adacore.com>
787
788 * language.h (struct language_defn): Add new field
789 la_make_symbol_completion_list.
790 * symtab.c (default_make_symbol_completion_list): Renames
791 make_symbol_completion_list.
792 (make_symbol_completion_list): New function.
793 * symtab.h (default_make_symbol_completion_list): Add declaration.
794 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
795 (auto_language, local_language): Likewise.
796 * objc-lang.c (objc_language_defn): Likewise.
797 * scm-lang.c (scm_language_defn): Likewise.
798 * m2-lang.c (m2_language_defn): Likewise.
799 * f-lang.c (f_language_defn): Likewise.
800 * jv-lang.c (java_language_defn): Likewise.
801 * p-lang.c (pascal_language_defn): Likewise.
802 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
803 (minimal_language_defn): Likewise.
804 * ada-lang.c (struct string_vector): New structure.
805 (new_string_vector, string_vector_append, ada_unqualified_name)
806 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
807 (ada_make_symbol_completion_list): New functions.
808 (ada_language_defn): Set la_make_symbol_completion_list.
809 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
810 this function is static.
811
812 2008-02-05 Kevin Buettner <kevinb@redhat.com>
813
814 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
815 to account for call site optimizations.
816
817 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
818
819 * tracepoint.c (read_actions): Handle end-of-text indicator
820 in action list properly. (Committed by Jim Blandy)
821
822 2008-02-05 Jim Blandy <jimb@red-bean.com>
823
824 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
825 pseudoregister, not an internal error.
826 Reported by: Andrzej Zaborowski
827
828 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
829
830 * varobj.c (c_value_of_variable): Use xstrdup.
831
832 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
833
834 Update stored rendition of varobj value when format changes.
835 * varobj.c (varobj_set_display_format): Recomputed
836 print_value.
837 (c_value_of_variable): Return print_value.
838
839 2008-02-03 Doug Evans <dje@google.com>
840
841 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
842 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
843 * valops.c (value_one): New function.
844 * value.h (value_one): Declare.
845
846 Fix argument promotion for binary arithmetic ops for C.
847 * valarith.c (unop_result_type): New fn.
848 (binop_result_type): New fn.
849 (value_binop): Move result type computation to binop_result_type.
850 (value_pos, value_neg, value_complement): Move result type
851 computation to unop_result_type.
852
853 PR 2384
854 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
855 Return basetype, fieldno if found. All callers updated.
856 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
857 objfile.
858 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
859 * symfile.h (fill_in_vptr_fieldno): Delete.
860
861 2008-02-02 Doug Evans <dje@google.com>
862
863 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
864
865 * typeprint.c (*): Whitespace cleanup.
866
867 2008-02-02 Mark Kettenis <kettenis@gnu.org>
868 Luis Machado <luisgpm@br.ibm.com>
869 Thiago Jung Bauermann <bauerman@br.ibm.com>
870
871 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
872 don't fit into registerson the stack the way GCC does.
873
874 2008-02-01 Joel Brobecker <brobecker@adacore.com>
875
876 * symtab.c (symbol_set_names): Do not add an entry in the demangling
877 hash table for Ada symbols. Just store the linkage name as is,
878 and leave the demangled_name as NULL.
879
880 2007-02-01 Joel Brobecker <brobecker@adacore.com>
881
882 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
883 in the global scope.
884 (new_symbol): Likewise.
885
886 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
887
888 * breakpoint.c (break_command_1): Return void.
889 (break_command_really): Return void. Rethrow
890 exceptions instead of returning.
891 (gdb_breakpoint): Remove the error_message parameter.
892 Return void. Rename to set_breakpoint.
893 * gdb.h (gdb_breakpoint): Rename and move to...
894 * breakpoint.h (set_breakpoint): ...here.
895 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
896 event hooks even if exception is thrown. Adjust to
897 gdb_breakpoint interface changes.
898
899
900 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
901
902 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
903 float in both first and second word in the doubleword, to support
904 old and new ABIs.
905
906 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
907
908 Properly rethrow exception. This fixes errors
909 about non-existent functions for -break-insert.
910 * breakpoint.c (break_command_really): Use throw_exception
911 for rethrowing. If rethrowing, don't print the exception.
912
913 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
914
915 * NEWS: Mention Decimal Floating Point support.
916
917 2008-01-31 Joel Brobecker <brobecker@adacore.com>
918
919 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
920 value type to builtin_type_void_func_ptr.
921
922 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
923
924 * s390-tdep.c (is_float_singleton, is_float_like,
925 alignment_of, s390_return_value): Make checks for
926 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
927
928 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
929 Thiago Jung Bauermann <bauerman@br.ibm.com>
930
931 * infcmd.c (default_print_registers_info): Also print hex
932 raw contents for TYPE_CODE_DECFLOAT registers.
933 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
934 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
935 (rs6000_register_name): Add support for DFP pseudo-registers.
936 (rs6000_pseudo_register_type): Likewise.
937 rs6000_pseudo_register_reggroup_p): Likewise.
938 (ppc_pseudo_register_read): New function.
939 (ppc_pseudo_register_write): Likewise.
940 (rs6000_pseudo_register_read): Likewise.
941 (rs6000_pseudo_register_write): Likewise.
942 (e500_pseudo_register_read): Move checks to
943 rs6000_pseudo_register_read.
944 (e500_pseudo_register_write): Move checks to
945 rs6000_pseudo_register_write.
946 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
947 rs6000_pseudo_register_read and rs6000_pseudo_register_write
948 in gdbarch if SPE or DFP is available. Adjust gdbarch's
949 num_pseudo_regs to account for DFP pseudo regs.
950
951 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
952
953 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
954 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
955 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
956 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
957 e500_pseudo_register_read, e500_pseudo_register_write): Use
958 IS_SPE_PSEUDOREG macro.
959 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
960 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
961 Remove initialization of tdep->ppc_ev31_regnum.
962
963 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
964
965 * printcmd.c (print_formatted): Handle references as for unformatted
966 prints.
967
968 2008-01-30 Joel Brobecker <brobecker@adacore.com>
969
970 * eval.c (evaluate_subexp_standard): Add handling of user
971 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
972
973 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
974
975 * eval.c (evaluate_subexp_standard): Support
976 BINOP_INTDIV opcode.
977
978 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
979
980 * valarith.c (value_binop): Add floating-point BINOP_MIN and
981 BINOP_MAX cases.
982 For BINOP_EXP, use length and signedness of left operand only for
983 result, as for shifts.
984 For integral operands to BINOP_EXP, use new integer_pow and
985 uinteger_pow functions so as to get full range of results.
986 (integer_pow): New function.
987 (uinteger_pow): New function.
988
989 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
990
991 Use vector for varobj_list_children interface.
992 * gdb/varobj.c (varobj_list_children): Return vector
993 of varobjs.
994 * gdb/varobj.h (varobj_list_children): Adjust
995 prototype.
996 (varobj_p): Declare. Declare vector thereof.
997 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
998 for varobj_list_children change.
999 * Makefile.in (varobj_h): Update dependencies.
1000
1001 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1002
1003 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
1004 TYPE_CODE_DECFLOAT arguments.
1005 (ppc64_sysv_abi_push_dummy_call) Likewise.
1006 (get_decimal_float_return_value): New function.
1007 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
1008 values by calling get_decimal_float_return_value.
1009 (ppc64_sysv_abi_return_value): Likewise.
1010
1011 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
1012
1013 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
1014 for preprocessor macro information. Formatting changes.
1015
1016 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1017
1018 * remote.c (struct remote_state): Add cached_wait_status.
1019 (remote_exec_file): New variable.
1020 (PACKET_vAttach, PACKET_vRun): New constants.
1021 (extended_remote_restart): Do not query for status.
1022 (struct start_remote_args): New.
1023 (remote_start_remote): Take it as a second argument. Check
1024 whether the target is running. Issue an error for non-running
1025 non-extended targets. Cache the wait status. Set inferior_ptid
1026 here.
1027 (remote_open_1): Prompt to disconnect non-running targets. Make
1028 sure the target is marked running. Do not set inferior_ptid here.
1029 Update call to remote_start_remote. Do not call remote_check_symbols
1030 if the target is not running.
1031 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
1032 argument. Handle a non-running target.
1033 (remote_detach): Use it.
1034 (extended_remote_detach): New.
1035 (remote_disconnect): Fix typo. Use remoute_mourn_1.
1036 (extended_remote_attach_1, extended_remote_attach)
1037 (extended_async_remote_attach): New.
1038 (remote_vcont_resume): Remove unused variable.
1039 (remote_wait, remote_async_wait): Use any cached wait status.
1040 (putpkt_binary, getpkt): Clear any cached wait status.
1041 (extended_remoute_mourn_1): New.
1042 (extended_remote_mourn): Use it.
1043 (extended_async_remote_mourn, extended_remote_run): New.
1044 (extended_remote_create_inferior_1): New.
1045 (extended_remote_create_inferior): Use it.
1046 (extended_remote_async_create_inferior): Likewise.
1047 (remote_xfer_partial): Skip for non-executing targets.
1048 (init_extended_remote_ops): Set to_detach and to_attach.
1049 (init_extended_async_remote_ops): Likewise. Use
1050 extended_async_remote_mourn.
1051 (_initialize_remote): Register vAttach, vRun, and
1052 set remote exec-file.
1053 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
1054
1055 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1056
1057 * Makefile.in (symfile.o): Update.
1058 * NEWS: Mention exec tracing support.
1059 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
1060 exec events.
1061 * infcmd.c (kill_if_already_running, detach_command)
1062 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
1063 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
1064 (follow_exec): Do not check may_follow_exec. Do not mourn and push
1065 targets. Apply the sysroot path to the loaded executable. Use
1066 no_shared_libraries.
1067 * linux-nat.c (linux_child_follow_fork): Print fork following
1068 messages if verbose.
1069 (kill_wait_callback): Kill again before waiting a second time.
1070 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
1071 no_shared_libraries.
1072
1073 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1074
1075 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
1076
1077 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1078
1079 * nto-tdep.h: Remove #include "defs.h".
1080 * nto-tdep.c: Add #include "defs.h".
1081 * Makefile.in (nto_tdep_h): Update dependencies.
1082 (nto-tdep.o): Likewise.
1083
1084 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1085
1086 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
1087 and use it.
1088 (proceed, start_remote): Update call to wait_for_inferior.
1089 * inferior.h (wait_for_inferior): Update declaration.
1090 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
1091 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
1092 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
1093 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
1094
1095 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
1096
1097 * varobj (adjust_value_for_child_access): Added checking for
1098 returned value from gdb_value_ind.
1099 (c_describe_child): Likewise.
1100 (cplus_describe_child): Fixed a typo.
1101
1102 2008-01-29 Jim Blandy <jimb@red-bean.com>
1103
1104 * MAINTAINERS: Update my info.
1105
1106 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1107
1108 Use multiple locations for hardware watchpoints.
1109 This eliminates the need to traverse value chain, doing
1110 various checks, in three different places.
1111
1112 * breakpoint.h (struct bp_location): New fields
1113 lengths and watchpoint_type.
1114 (struct breakpoint): Remove the val_chain field.
1115 * breakpoint.c (is_hardware_watchpoint): New.
1116 (free_valchain): Remove.
1117 (update_watchpoint): New.
1118 (insert_bp_location): For hardware watchpoint, just
1119 directly insert it.
1120 (insert_breakpoints): Call update_watchpoint_locations
1121 on all watchpoints. If we have failed to insert
1122 any location of a hardware watchpoint, remove all inserted
1123 locations.
1124 (remove_breakpoint): For hardware watchpoints, directly
1125 remove location.
1126 (watchpoints_triggered): Iterate over locations.
1127 (bpstat_stop_status): Use only first location of
1128 a resource watchpoint.
1129 (delete_breakpoint): Don't call free_valchain.
1130 (print_one_breakpoint): Don't print all
1131 locations for watchpoints.
1132 (breakpoint_re_set_one): Use update_watchpoint for
1133 watchpoints.
1134
1135 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1136
1137 Don't reset watchpoint block on solib load.
1138
1139 * breakpoint.c (insert_bp_location): For watchpoints,
1140 recompute condition.
1141 (breakpoint_re_set_one): Instead of recomputing value
1142 and condition for watchpoints, just reset value and
1143 let insert_breakpoints/insert_bp_location recompute it.
1144 Don't do anything about disabled watchpoint.
1145
1146 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
1147
1148 * valarith.c (value_binop): Handle unsigned integer
1149 division by zero.
1150
1151 2008-01-28 Kevin Buettner <kevinb@redhat.com>
1152
1153 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
1154 instruction pattern that appears frequently in position
1155 independent code. Fix bug in code which looks for "fmov" and
1156 backtracks if no "fmov" is found.
1157
1158 2008-01-28 Doug Evans <dje@google.com>
1159
1160 * dbxread.c (read_dbx_symtab): Fix indentation.
1161 Reformat comments to 80 columns.
1162 Move local var def closer to only use.
1163
1164 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
1165
1166 * fork-child.c (SHELL_FILE): Remove #ifndef.
1167 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
1168
1169 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
1170
1171 * i386-tdep.c (i386_skip_noop): New function.
1172 (i386_analyze_prologue): Call i386_skip_noop function.
1173
1174 2008-01-24 Michael Snyder <msnyder@specifix.com>
1175
1176 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
1177 * win32-nat.c (win32_xfer_partial): Ditto.
1178 * target.c (default_xfer_partial): Minor whitespace adjustment.
1179
1180 2008-01-24 Pedro Alves <pedro@codesourcery.com>
1181
1182 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
1183 strip bit 1 even if pc doesn't point to thumb code.
1184
1185 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
1186
1187 * remote.c (remote_wait): Handle SIGINT between packets.
1188 (remote_async_wait): Likewise.
1189
1190 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
1191 Chris Demetriou <cgd@google.com>
1192
1193 * thread.c (add_thread_silent): Renamed
1194 from add_thread.
1195 (print_thread_events): New variable definition.
1196 (show_print_thread_events): New function.
1197 (_initialize_thread): Add "set print thread-events" and
1198 "show print thread-events" commands.
1199 (add_thread): Announce new thread.
1200 * gdbthread.h (add_thread_silent): Declare.
1201 (print_thread_events): New variable declaration.
1202 * inf-ttrace.c (inf_ttrace_wait): Don't
1203 inform about new thread, as add_thread is always
1204 called too, and will take care of that.
1205 * infrun.c (handle_inferior_event): Likewise.
1206 * procfs.c (procfs_wait): Likewise.
1207 * remote.c (remote_currthread): Likewise.
1208 * sol-thread.c (sol_thread_wait): Likewise.
1209 * win32-nat.c (get_win32_debug_event): Likewise.
1210 * linux-thread-db.c (attach_thread): Likewise.
1211 Remove the verbose parameter.
1212 (check_event): Make detach_thread be verbose
1213 only if print_thread_events is set.
1214 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
1215 about new thread. This is called only from
1216 linux-thread-db.c:attach_thread, which will take care.
1217 Remove the verbose parameter.
1218 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
1219
1220 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
1221
1222 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
1223
1224 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
1225
1226 * breakpoint.c (break_command_really): New parameter
1227 ignore_count.
1228 (break_command_1): Pass 0 as
1229 ignore_count to break_command_really.
1230 (gdb_breakpoint): Pass ignore_count to
1231 break_command_really.
1232
1233 2008-01-21 Kevin Buettner <kevinb@redhat.com>
1234
1235 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
1236 sigcontext struct via pointer.
1237 (struct sigframe comment): Update to show new field `psc'.
1238
1239 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
1240
1241 * infrun.c (handle_inferior_event): If
1242 we failed to remove breakpoints, error,
1243 don't try to increment PC by hand.
1244
1245 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
1246
1247 Add NetBSD/hppa target and host support.
1248
1249 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
1250 (hppabsd_gregset): Move to ...
1251 (hppabsd_regset_from_core_section): Rename
1252 hppaobsd_regset_from_core_section and move to ...
1253 (hppabsd_find_global_pointer): Update comment.
1254 (hppabsd_init_abi): Make global. Do not register
1255 hppabsd_regset_from_core_section.
1256 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
1257 move to ...
1258 (_initialize_hppabsd_tdep): Move to ...
1259 * hppaobsd-tdep.c: ... here. New file.
1260 * hppnbsd-tdep.c: New file.
1261 * hppnbsd-nat.c: New file.
1262 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
1263 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1264 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
1265 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
1266 * configure.host (hppa*-*-netbsd*): New entry.
1267 * configure.tgt (hppa*-*-netbsd*): New entry.
1268 (hppa*-*-openbsd*): Update.
1269 * NEWS (New native configuration): Mention NetBSD/hppa.
1270 (New targets): Mention NetBSD/hppa.
1271
1272 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1273
1274 * gdbarch.sh (function_list): Add new property bits_big_endian to
1275 gdbarch structure.
1276 * gdbarch.{c,h}: Regenerate.
1277
1278 * value.c (struct value): Replace BITS_BIG_ENDIAN by
1279 gdbarch_bits_big_endian (comment).
1280 (unpack_field_as_long, modify_field): Likewise.
1281 * value.h: Likewise (comment).
1282 * valops.c (value_slice): Likewise.
1283 * valarith.c (value_subscript, value_bit_index): Likewise.
1284 * gdbtypes.h (field): Likewise (comment).
1285 * eval.c (evaluate_subexp_standard): Likewise.
1286 * dwarf2read.c (dwarf2_add_field): Likewise.
1287 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
1288 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
1289
1290 * defs.h (BITS_BIG_ENDIAN): Remove.
1291
1292 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1293
1294 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
1295 function calls.
1296 * m2-exp.y (yylex): Likewise.
1297 * objc-exp.y (yylex): Likewise.
1298
1299 * defs.h (DEPRECATED_STREQN): Remove.
1300
1301 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
1302
1303 * MAINTAINERS: Update my email address.
1304
1305 2008-01-17 Jim Blandy <jimb@codesourcery.com>
1306
1307 * README: Mention gdbserver/README.
1308
1309 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1310
1311 * valarith.c (value_binop): Handle BINOP_INTDIV
1312 for unsigned and signed integers.
1313
1314 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
1315
1316 * s390-tdep.c (s390_gdbarch_init): Set default long double
1317 type to 128-bit IEEE quad.
1318
1319 2008-01-17 Joel Brobecker <brobecker@adacore.com>
1320
1321 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
1322
1323 2008-01-16 Mark Kettenis <kettenis@gnu.org>
1324
1325 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
1326
1327 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
1328 * value.c: All callers changed.
1329
1330 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1331
1332 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
1333 DEPRECATED_STREQ by its expression.
1334 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
1335 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
1336 (scan_xcoff_symtab): Likewise.
1337 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
1338 * f-lang.c (find_common_for_function): Likewise.
1339 * objc-exp.y (parse_number): Likewise.
1340
1341 * defs.h (DEPRECATED_STREQ): Remove.
1342
1343 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1344
1345 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
1346 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
1347 get_frame_arch to get at the current_architecture. Update AM33_MODE
1348 call.
1349 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
1350 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1351 architecture.
1352 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
1353
1354 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1355
1356 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
1357 parameter.
1358 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
1359
1360 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
1361 current_gdbarch by gdbarch. Update caller.
1362
1363 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
1364 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
1365 the current architecture. Update calls of
1366 amd64_native_gregset_supplies_p.
1367 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
1368 (amd64bsd_store_inferior_registers): Likewise.
1369
1370 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1371
1372 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
1373 Replace current_gdbarch by gdbarch. Update caller.
1374
1375 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1376
1377 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
1378 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
1379 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
1380 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
1381 (stabsect_build_psymtabs): Fix indentation.
1382
1383 2008-01-15 Michael Snyder <msnyder@specifix.com>
1384
1385 * corelow.c (core_xfer_partial): Comment, cut/paste error.
1386
1387 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1388
1389 * win32-nat.c (win32_create_inferior): Restore code calling
1390 CloseHandle on ProcessInformation structure.
1391
1392 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
1393
1394 * configure.ac: Check for void * as 3 argument of ptrace.
1395 * configure: regenerate.
1396
1397 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1398
1399 * alpha-tdep.c (alpha_heuristic_proc_start)
1400 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
1401 current_gdbarch by gdbarch.
1402
1403 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
1404 current architecture by frame_info. Update alpha_heuristic_proc_start
1405 call.
1406
1407 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
1408 get_frame_arch to get at the current architecture by frame_info. Update
1409 alpha_sigtramp_register_address call.
1410
1411 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
1412 current_gdbarch by gdbarch. Update caller.
1413 (convert_to_extended, convert_from_extended): Add endianess parameter
1414 for comparison. Update caller.
1415 (arm_extract_return_value, arm_store_return_value): Use
1416 get_regcache_arch to get at the current architecture.
1417
1418 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
1419 current_gdbarch by gdbarch. Update caller.
1420 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
1421 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
1422
1423 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
1424 gdbarch as parameter. Update caller.
1425 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
1426 current_gdbarch by gdbarch. Update caller.
1427
1428 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
1429 update caller. Replace current_gdbarch by gdbarch.
1430
1431 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
1432 the current architecture. Replace current_gdbarch by gdbarch.
1433 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1434 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
1435 expression. Add gdbarch as parameter and replace current_gdbarch with
1436 it. Update caller.
1437 (M6811_TDEP): Remove.
1438 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
1439 architecture.
1440 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
1441 current_gdbarch by gdbarch. Update caller.
1442
1443 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
1444 update caller.
1445 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
1446 by gdbarch.
1447
1448 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
1449 caller. Relace current_gdbarch by gdbarch.
1450 (altivec_register_p, spe_register_p): Likewise.
1451 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
1452 parameter.
1453 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
1454 altivec_register_p and spe_register_p.
1455
1456 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
1457 caller. Replace current_gdbarch by gdbarch.
1458 (score_analyze_prologue): use get_frame_arch to get at the current
1459 architecture.
1460
1461 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
1462 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
1463 current_gdbarch by gdbarch. Update caller.
1464 (sparc_frame_cache): Use get_frame_arch to get at the current
1465 architecture.
1466 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
1467 sparc_analyze_prologue.
1468
1469 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
1470 parameter.
1471
1472 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1473
1474 * exec.c: #include "arch-utils.h"
1475 (print_section_info): Use gdbarch_from_bfd to get at the
1476 current architecture. Replace current_gdbarch. Fix indention. Replace
1477 deprecated_print_address_numeric by paddress.
1478 * Makefile.in (exec.o) Add dependency to arch-utils.h.
1479
1480 * valprint.c (val_print_string): Replace
1481 deprecated_print_address_numeric.
1482 * tracepoint.c (trace_mention, scope_info): Likewise.
1483 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1484 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1485 (maintenance_check_symtabs): Likewise.
1486 * symfile.c (list_overlays_command): Likewise.
1487 * stack.c (frame_info, print_block_frame_labels): Likewise.
1488 * printcmd.c (print_address, print_address_demangle)
1489 (address_info): Likewise.
1490 * corefile.c (memory_error): Likewise.
1491 * infcmd.c (jump_command): Likewise.
1492 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1493 (mention, delete_breakpoint): Likewise.
1494 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1495 * dwarf2read.c (dump_die): Likewise.
1496 * ada-valprint.c (ada_val_print_1): Likewise.
1497 * f-valprint.c (f_val_print): Likewise.
1498 * linux-fork.c (info_forks_command): Likewise.
1499 * m32r-com.c (m32r_load_section, m32r_load)
1500 (m32r_upload_command): Likewise.
1501
1502 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1503
1504 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1505
1506 * gdbarch.sh (skip_prologue): Add gdbarch
1507 as parameter.
1508 * gdbarch.{c,h}: Regenerate.
1509
1510 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1511 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1512 * avr-tdep.c (avr_skip_prologue): Likewise.
1513 * cris-tdep.c (cris_skip_prologue): Likewise.
1514 * frv-tdep.c (frv_skip_prologue): Likewise.
1515 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1516 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1517 * i386-tdep.c (i386_skip_prologue): Likewise.
1518 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1519 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1520 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1521 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1522 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1523 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1524 * mep-tdep.c (mep_skip_prologue): Likewise.
1525 * mips-tdep.c (mips_skip_prologue): Likewise.
1526 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1527 * mt-tdep.c (mt_skip_prologue): Likewise.
1528 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1529 * score-tdep.c (score_skip_prologue): Likewise.
1530 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1531 * sh-tdep.c (sh_skip_prologue): Likewise.
1532 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1533 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1534 * spu-tdep.c (spu_skip_prologue): Likewise.
1535 * v850-tdep.c (v850_skip_prologue): Likewise.
1536 * vax-tdep.c (vax_skip_prologue): Likewise.
1537 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1538 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1539
1540 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1541 current_gdbarch by gdbarch.
1542 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1543 * s390-tdep.c (s390_skip_prologue): Likewise.
1544
1545 2008-01-10 Doug Evans <dje@google.com>
1546
1547 * defs.h (struct continuation_arg): Fix typo in comment.
1548 * target.c (target_translate_tls_address): Fix comment spelling error.
1549
1550 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
1551
1552 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1553 (DOUBLEST_SCAN_FORMAT): Likewise.
1554 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1555 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1556 * c-exp.y (parse_number): Likewise.
1557 * jv-exp.y (parse_number): Likewise.
1558 * objc-exp.y (parse_number): Likewise.
1559 * p-exp.y (parse_number): Likewise.
1560
1561 2008-01-09 Joel Brobecker <brobecker@adacore.com>
1562
1563 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1564 (check_typedef): Likewise.
1565
1566 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
1567
1568 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1569 seen_double_big_d, treat the new H, D, and DD modifiers as length
1570 modifiers.
1571
1572 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1573
1574 * dwarf2read.c (read_enumeration_type): Add comment.
1575
1576 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1577
1578 * config.in: Regenerate.
1579
1580 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1581
1582 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1583 Make non-static.
1584 (ada_convert_actuals): Delete.
1585 * ada-lang.h (ada_convert_actual): Add declaration.
1586 (ada_convert_actuals): Remove declaration.
1587 * infcall.c: #include "ada-lang.h".
1588 (value_arg_coerce): Add new parameter sp. Update function
1589 documetnation. Add handling of Ada function call parameters.
1590 * Makefile.in (infcall.o): Update dependencies.
1591
1592 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1593
1594 * ada-lang.c (ensure_lval): Fix value lval kind.
1595 (convert_actual): Add handling for arguments passed by reference.
1596
1597 2008-01-08 Doug Evans <dje@google.com>
1598
1599 * dbxread.c (read_dbx_symtab): Fix indentation.
1600
1601 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1602
1603 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1604 (valarith.o): Depend on dfp.h.
1605 (valops.o): Likewise.
1606 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1607 (set_decnumber_context): New function.
1608 (decimal_check_errors): Likewise.
1609 (decimal_from_number): Likewise.
1610 (decimal_to_number): Likewise.
1611 (decimal_from_string): Use set_decnumber_context and
1612 decimal_check_errors.
1613 (decimal_from_integral): New function.
1614 (decimal_from_floating): Likewise.
1615 (decimal_to_double): Likewise.
1616 (promote_decimal): Likewise.
1617 (decimal_binop): Likewise.
1618 (decimal_is_zero): Likewise.
1619 (decimal_compare): Likewise.
1620 (decimal_convert): Likewise.
1621 * dfp.h (decimal_from_integral): New prototype.
1622 (decimal_from_floating): Likewise.
1623 (decimal_to_double): Likewise.
1624 (decimal_binop): Likewise.
1625 (decimal_is_zero): Likewise.
1626 (decimal_compare): Likewise.
1627 (decimal_convert): Likewise.
1628 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1629 call to value_from_decfloat.
1630 * valarith.c: Include dfp.h.
1631 (value_args_as_decimal): New function.
1632 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1633 (value_logical_not): Likewise.
1634 (value_equal): Likewise.
1635 (value_less): Likewise.
1636 (value_pos): Likewise.
1637 (value_neg): Formatting fix.
1638 * valops.c: Include dfp.h.
1639 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1640 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1641 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1642 (value_from_decfloat): Remove expect_type argument.
1643 * value.h (value_from_decfloat): Update prototype.
1644
1645 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
1646
1647 Ignore change in name of dynamic linker during
1648 execution on Solaris. This also unbreaks pending breakpoints.
1649
1650 * solist.h (struct target_so_ops): New field same.
1651 * solib-svr4.c (svr4_same): New.
1652 (_initialize_svr4_solib): Register svr4_same.
1653 * solib.c (update_solib_list): Use ops->same, if available.
1654
1655 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
1656
1657 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1658 when using MS-DOS paths.
1659
1660 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1661
1662 * NEWS: Mention --pid and --core command line behaviour changes.
1663
1664 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1665
1666 * main.c (captured_main): Remove 'count' varible and the
1667 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1668 --pid options were issued simultaneously. If an explicit pid
1669 option was passed, don't fallback to core file. Detect extra
1670 arguments better in the presence of explicit pid or core
1671 arguments.
1672
1673 2008-01-05 Joel Brobecker <brobecker@adacore.com>
1674
1675 * ada-lang.c (ada_which_variant_applies): Correctly compute
1676 the value of the discriminant when the variant record is packed.
1677
1678 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1679
1680 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1681 that are used to differentiate homonyms.
1682
1683 2008-01-04 Jerome Guitton <guitton@adacore.com>
1684
1685 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1686 when the type is an anonymous pointer type.
1687 (ada_check_typedef): Avoid a seg fault when the type is null.
1688 * ada-typeprint.c (print_array_type): Add support for pointer
1689 to packed arrays.
1690
1691 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
1692
1693 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1694
1695 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1696
1697 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1698 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1699
1700 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1701
1702 * ada-exp.y (chop_separator): New function.
1703 (write_selectors): Rewrite to re-use chop_separator.
1704 (ada_nget_field_index, get_symbol_field_type): New functions.
1705 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1706 expressions.
1707
1708 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1709
1710 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1711 of SYMBOL_VALUE when working with function symbols.
1712
1713 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1714
1715 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1716 expressions. These expressions do not need to be rewriten.
1717
1718 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1719
1720 * dwarf2read.c (read_enumeration_type): Flag type as stub if
1721 the given die is a declaration.
1722
1723 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1724
1725 * ada-lang.c (ada_array_bound_from_type): Make non-static.
1726 Handle properly the case when the index type is an enumerated type.
1727 Do not return the subtype of the bounds type, just return the
1728 bounds type directly - this is not needed and is more consistent
1729 with what we do for arrays when no XA parallel type exists.
1730
1731 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1732
1733 * ada-lang.c (static_unwrap_type): Add forward declaration.
1734 (template_to_static_fixed_type): Fields of dynamic types sometimes
1735 also need to be unwrapped. Take this into account.
1736 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1737 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1738 * ada-typeprint.c (ada_print_type): Get the typename from
1739 the original type, not the base type.
1740
1741 2008-01-03 Jerome Guitton <guitton@adacore.com>
1742
1743 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1744 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1745 Update calls to ada_to_fixed_type.
1746 (ada_template_to_fixed_record_type_1): Ditto, but without looking
1747 for the tag.
1748 (ada_to_fixed_type): Add check_tag parameter; do not look for
1749 tag if null. When looking for a tag, use a fixed record type.
1750 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1751 * ada-valprint.c (printable_val_type, ada_value_print): Update
1752 calls to ada_to_fixed_type.
1753
1754 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
1755
1756 * doublest.c (convert_floatformat_to_doublest): Call
1757 floatformat_to_doublest instead of floatformat_to_double and use
1758 DOUBLEST variables.
1759 (convert_doublest_to_floatformat): Call floatformat_from_doublest
1760 instead of floatformat_from_double and use DOUBLEST variables.
1761
1762 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
1763
1764 * MAINTAINERS (Write After Approval): Add self.
1765
1766 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1767
1768 * symfile.c (set_initial_language): Make non-static.
1769 * symfile.h (set_initial_language): Add declaration.
1770 * language.c: #include "symfile.h".
1771 (set_language): Call set_initial_language if the frame language
1772 could not be determined.
1773
1774 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
1775
1776 * eval.c (evaluate_subexp_for_address): Provide frame address to
1777 locate_var_value only if it will be needed.
1778
1779 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1780
1781 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1782
1783 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1784
1785 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1786 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1787 This is needed to make sure that any other treatment applied
1788 to the resulting value does not fail for spurious reason,
1789 such as trying to take the address of this value.
1790
1791 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1792
1793 * ada-lang.c (ada_value_equal): Dereference reference types when
1794 comparing arrays.
1795
1796 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
1797
1798 Updated copyright notices for most files.
1799
1800 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
1801
1802 * win32-nat.c (psapi_module_handle): Remove static.
1803 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1804 return first module found if base_address is zero. Don't initialize
1805 psapi function pointers here. Convert to cygwin paths when
1806 appropriate.
1807 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1808 executable name. Use get_module_name when that fails or when
1809 !__CYGWIN__.
1810 (_initialize_psapi): New function. Initialize psapi stuff before it is
1811 needed or issue a warning if it is not found. Move psapi_module_handle
1812 here.
1813
1814 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1815
1816 * ada-lang.c (ada_remove_trailing_digits): New function.
1817 (ada_remove_po_subprogram_suffix): New function.
1818 (ada_decode): Improve. Move the description of the algorithm
1819 directly inside the code, instead of in the function global
1820 description.
1821
1822 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1823
1824 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1825 and always print the dereferenced value.
1826
1827 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1828
1829 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1830 of the case where the first argument is a reference.
1831 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1832
1833 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1834
1835 Implement support for Ada interface types.
1836
1837 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1838 (ada_is_ignored_field): Ignore fields that are a dispatch table
1839 of a tagged type.
1840
1841 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1842
1843 * top.c (print_gdb_version): Update copyright year.
1844
1845 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1846
1847 * ChangeLog-2007: New ChangeLog rotation.
1848 * ChangeLog: Reset for 2008.
1849 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1850 ChangeLog-2007.
1851
1852 For older changes see ChangeLog-2007.
1853 \f
1854 Local Variables:
1855 mode: change-log
1856 left-margin: 8
1857 fill-column: 74
1858 version-control: never
1859 coding: utf-8
1860 End: