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