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