* varobj.c (varobj_invalidate): Don't touch floating
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
603ba1de
VP
12008-04-19 Vladimir Prus <vladimir@codesourcery.com>
2
3 * varobj.c (varobj_invalidate): Don't touch floating
4 varobjs.
5
7fc830e2
MK
62008-04-19 Mark Kettenis <kettenis@gnu.org>
7
8 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
9 (multiple_symbols_cancel): Remove extra const.
10 * symtab.h: Likewise.
11
bcbf8b68
NR
122008-04-19 Nick Roberts <nickrob@snap.net.nz>
13
14 * interps.c (top_level_interpreter): Rename static variable...
15 (top_level_interpreter_ptr): ...to this.
16 (top_level_interpreter): New function.
17
18 * interps.h: New extern for top_level_interpreter.
19
20 * linespec.c: Include interps.h and mi/mi-cmds.h.
21 (decode_line_2): When using MI, always set all breakpoints in menu.
22
23 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
24
233a11ab
CS
252008-04-18 Craig Silverstein <csilvers@google.com>
26
27 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
28 * config.in, configure: Regenerate.
29 * dwarf2read.c: Include zlib.h if present.
30 Modified *_SECTION macros.
31 (section_is_p): New.
32 (dwarf2_locate_sections): Use section_is_p instead of strcmp
33 (dwarf2_resize_section): New.
34 to determine whether a given section has a given name.
35 (zlib_decompress_section): New.
36 (dwarf2_read_section): Read the compressed section if present
37 in the binary.
38 * MAINTAINERS: Added myself to section Write After Approval.
bcbf8b68 39
a03b3a97
TJB
402008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
41
42 * defs.h (exec_set_section_offsets): Remove prototype.
43 * exec.c (exec_set_section_offsets): Remove function.
44
9e386756
JB
452008-04-18 Joel Brobecker <brobecker@adacore.com>
46
47 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
48 in the search for the matching symbol.
49
2ec93238
MK
502008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
51
52 * breakpoint.c (update_watchpoint): Always reparse
53 condition.
54
e9bbd7c5
JB
552008-04-17 Joel Brobecker <brobecker@adacore.com>
56
57 * breakpoint.c (print_one_breakpoint_location): Make sure to print
58 the breakpoint address only once.
59
475bbd17
JB
602008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
61
62 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
63 rather than a hard-coded architecture, for xcoff executables.
64
86991504
DE
652008-04-17 Doug Evans <dje@google.com>
66
4584e32e
DE
67 * buildsym.c (watch_main_source_file_lossage): New fn.
68 (end_symtab): Call it.
69
86991504
DE
70 * source.c (find_and_open_source): Add some comments clarifying
71 handling of FULLNAME argument. Make static. Remove pointless
72 xstrdup/xfree.
73
0a320680
PA
742008-04-17 Pedro Alves <pedro@codesourcery.com>
75
76 * inf-loop.c (inferior_event_handler): Also run the intermediate
77 continuations in the INF_EXEC_COMPLETE case.
78
700b53b1
TT
792008-04-16 Tom Tromey <tromey@redhat.com>
80
81 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
82 (set_cmd_async_ok, get_cmd_async_ok): Declare.
83 * cli/cli-decode.c (set_cmd_async_ok): New function.
84 (get_cmd_async_ok): New function.
85 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
86 "show" as async-ok.
87 * top.c (execute_command): Use get_cmd_async_ok.
88 * infcmd.c: Include cli/cli-decode.h.
89 (_initialize_infcmd): Mark "interrupt" as async-ok.
90 * Makefile.in (infcmd.o): Depend on cli_decode_h.
91
dacec2a8
DJ
922008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
93
94 PR gdb/2445
95 * exec.c: Correct "arch-utils.h" include.
96
2cec12e5
AR
972008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
98
99 PR gdb/2424
100 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
101 to allow printing to 'see' real reason of stop. This fixes PR 2424.
102 * breakpoint.c (bpdisp_texst): New function. The function takes over
103 the role of bpstats static array in print_one_breakpoint_location.
104 (print_it_typical): Print "Temporary breakpoint" instead
105 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
106 protocols, print disp field.
107 (print_one_breakpoint_location): Removed bpdisps static definition.
108 Call new bpstat_text function to get value for 'disp' field.
109 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
110
4d7b71aa
DJ
1112008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
112
113 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
114 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
115 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
116 * gnulib/Makefile.in: Regenerate.
117
aa11fd3f
DJ
1182008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
119
120 * Makefile.in (GNULIB_H): New. Trigger all-lib.
121 (defs_h): Use $(GNULIB_H).
122 (all-lib): Depend on gnulib/Makefile.
123 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
124 * config.in, gnulib/Makefile.in: Regenerated.
125
e28b3332
DJ
1262008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
127
128 * Makefile.in (LIBGNU, INCGNU): Define.
129 (INTERNAL_CFLAGS_BASE): Add INCGNU.
130 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
131 (CLEANDIRS): New.
132 ($(LIBGNU), all-lib): New rules.
133 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
134 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
135 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
136 * gnulib: New directory, from gnulib-tool.
137 * configure, aclocal.m4: Regenerated.
138
e3bc4218
DJ
1392008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
140
141 * linux-thread-db.c (have_threads_callback): Check thread->private.
142
fcacd99f
VP
1432008-04-13 Nick Roberts <nickrob@snap.net.nz>
144 Vladimir Prus <vladimir@codesourcery.com>
145
146 Fix @-varobjs.
147 * varobj.c (value_of_root): Update the expression for
148 floating varobjs.
149 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
150 report that.
151
de051565
MK
1522008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
153
154 * mi/mi-cmd-var.c: Include "mi-getopt.h".
155 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
156 (mi_cmd_var_set_format): Use new mi_parse_format.
157 (mi_cmd_var_evaluate_expression): Support for -f option to specify
158 format.
159 * Makefile.in (mi-cmd-var.o): Update dependencies.
160
161 * varobj.h (varobj_get_formatted_value): Declare.
162 * varobj.c (my_value_of_variable): Added format parameter.
163 (cplus_value_of_variable): Likewise.
164 (java_value_of_variable): Likewise.
165 (c_value_of_variable): Likewise. Evaluate expression based
166 on format parameter.
167 (struct language_specific): Add format parameter to function member
168 *value_of_variable.
169 (varobj_get_formatted_value): New.
170 (varobj_get_value): Added format parameter to method call.
171
56953f80
JB
1722008-04-08 Joel Brobecker <brobecker@adacore.com>
173
174 * stabsread.c (cleanup_undefined_types_noname): Manually set the
175 instance flags of the undefined type before calling replace_type.
176
e4e33b9e
VP
1772008-04-08 Vladimir Prus <vladimir@codesourcery.com>
178
179 * target.h (enum strata): Remove the download_stratum.
180
92b5c263
DE
1812008-04-07 Doug Evans <dje@google.com>
182
183 * buildsym.h (last_source_file): Add dwarf info to comment.
184 (last_source_start_addr): Ditto.
185
effa26a9
PA
1862008-04-07 Pedro Alves <pedro@codesourcery.com>
187
188 * alphanbsd-tdep.c: Include "target.h".
189 * mn10300-tdep.c: Include "target.h".
190 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
191
2b2d9e11
VP
1922008-04-06 Vladimir Prus <vladimir@codesourcery.com>
193
194 Fix breakpoint condition that use member variables.
195 * valops.c (check_field): Remove.
196 (check_field_in): Rename to check_field.
197 (value_of_this): Use la_name_of_this.
198 * value.h (check_field): Adjust prototype.
199
200 * language.h (la_value_of_this): Rename to la_name_of_this.
201 * language.c (unknown_language_defn): Specify "this" for
202 name_of_this.
203 (auto_language_defn): Likewise.
204 (local_language_defn): Likewise.
205 * ada-lang.c (ada_language_defn): Adjust comment.
206 * c-lang.c (c_language_defn): Adjust comment.
207 (cplus_language_defn): Specify "this" for name_of_this.
208 (asm_language_defn): Adjust comment.
209 (minimal_language_defn): Adjust comment.
210 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
211 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
212 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
213 * objc-lang.c (objc_language_defn): Specify "self" for
214 name_of_this.
215 * p-lang.c (pascal_language_defn): Specify "this" for
216 name_of_this.
217 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
218
219 * symtab.c (lookup_symbol_aux): Lookup "this" in the
220 proper scope, and check for field in type of "this", without
221 trying to create a value.
222
a13e061a
PA
2232008-04-04 Pedro Alves <pedro@codesourcery.com>
224
225 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
226 (mi_error_message): Delete declaration.
227 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
228 returning MI_CMD_ERROR.
229 * mi/mi-main.c (mi_error_message): Delete.
230 (mi_cmd_exec_interrupt):
231 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
232 (mi_cmd_thread_info): Call error instead of returning
233 MI_CMD_ERROR.
234 (mi_cmd_data_list_register_values): Call error instead of
235 returning MI_CMD_ERROR. Adapt to new get_register interface.
236 (get_register): Change return typo to void. Call error instead of
237 returning MI_CMD_ERROR.
238 (mi_cmd_data_write_register_values): Call error instead of
239 returning MI_CMD_ERROR.
240 (mi_cmd_list_features): Return MI_CMD_DONE.
241 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
242 (mi_execute_command): Always print exceptions with -error.
243
aad4b048
JB
2442008-04-04 Joel Brobecker <brobecker@adacore.com>
245
246 * NEWS: Mention new commands set/show multiple-symbols.
247
717d2f5a
JB
2482008-04-03 Joel Brobecker <brobecker@adacore.com>
249
250 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
251 (multiple_symbols_cancel): New constants.
252 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
253 (multiple_symbols_select_mode): New function.
254 (_initialize_symtab): Add new set/show multiple-symbols commands.
255 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
256 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
257 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
258 setting.
259 * linespec.c (decode_line_2): Likewise.
260
f73634e5
DE
2612008-04-03 Doug Evans <dje@sebabeach.org>
262
263 * symtab.h (enum free_code): Delete free_contents, unused.
264 * symmisc.c (free_symtab_block): Delete.
265 (free_symtab, case free_code): Delete.
266
6af87b03
AR
2672008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
268
269 * valops.c (value_cast_structs): New function. Cast related
270 STRUCT types up/down and return cast value. The body of this
271 function comes mostly from value_cast_pointers.
272 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
273 to value_cast_structs. Now value_cast_pointers needs only create
274 appropriate reference after using value_cast_structs for actual
275 casting.
276 (value_cast): Handle references.
277
61ad90e1
MK
2782008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
279
280 * MAINTAINERS: Added myself to section Write After Approval.
281
b7d038ae
DJ
2822008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
283
284 * ia64-tdep.c (examine_prologue): Correct array access.
285
2862008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
c836824f
AR
287
288 * cp-support.c (first_component_command): Return if no arguments.
289
df3ac606
CD
2902008-03-28 Carlos O'Donell <carlos@codesourcery.com>
291
292 * ser-mingw.c (ser_windows_open): Open requested name.
293
ca933485
AR
2942008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
295
296 * MAINTAINERS: Added myself.
297
5f667f2d
PA
2982008-03-28 Pedro Alves <pedro@codesourcery.com>
299
300 * target.c (find_default_run_target): Allow a NULL `do_mesg'
301 parameter. If it is NULL, don't call error.
302 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
303 `do_mesg' parameter to find_default_run_target. If no target was
304 found, return 0.
305
e741f4d4
DJ
3062008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
307
308 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
309 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
310 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
311 Delete.
312 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
313
f66d8205 3142008-03-27 Joel Brobecker <brobecker@adacore.com>
315
316 GDB 6.8 released.
317
221c031f
UW
3182008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
319
320 * features/Makefile (%.dat): Set xmltarget to the base filename
321 of the XML source, without subdirectory.
322 * regformats/rs6000/powerpc-32.dat: Regenerate.
323 * regformats/rs6000/powerpc-64.dat: Regenerate.
324 * regformats/rs6000/powerpc-e500.dat: Regenerate.
325
40c58d95
MD
3262008-03-27 Markus Deuling <deuling@de.ibm.com>
327
328 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
329 objfile arch.
330
bb1ec7d2
NR
3312008-03-27 Nick Roberts <nickrob@snap.net.nz>
332
333 * mi/mi-main.c (enum captured_mi_execute_command_actions):
334 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
335
5e2b427d
UW
3362008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
337
338 * objfiles.h (struct objfile): New GDBARCH member.
339 (get_objfile_arch): Add prototype.
340 * objfiles.c: Include "arch-utils.h".
341 (allocate_objfile): Look up gdbarch associated with bfd.
342 (get_objfile_arch): New function.
343 * Makefile (objfiles.o): Update dependencies.
344
345 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
346 by objfile arch.
347 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
348 by frame arch.
349 (locexpr_describe_location): Replace current_gdbarch by
350 objfile arch.
351 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
352 (dwarf2_add_field): Likewise.
353 (read_tag_pointer_type): Likewise.
354 (read_base_type): Likewise.
355 (new_symbol): Likewise.
356
357 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
358 (decode_base_type, decode_function_type): Likewise.
359 (coff_read_struct_type, coff_read_enum_type): Likewise.
360 (coff_symtab_read): Replace current_gdbarch by objfile arch.
361 (decode_base_type): Likewise.
362 (coff_read_enum_type): Likewise.
363 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
364 (coff_read_enum_type): Likewise.
365
366 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
367 (end_psymtab): Likewise.
368 (process_one_symbol): Likewise.
369
370 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
371 (parse_procedure): Likewise.
372 (parse_partial_symbols): Likewise.
373
374 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
375
376 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
377 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
378 built-in types.
379 (read_range_type): Replace current_gdbarch by objfile arch. Replace
380 static range_index_type by built-in type.
381 (read_one_struct_field): Replace current_gdbarch by objfile arch.
382 (read_enum_type): Likewise.
383
384 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
385 objfile arch.
386
5a413362
VP
3872008-03-26 Vladimir Prus <vladimir@codesourcery.com>
388
389 * varobj.h (varobj_floating_p): Declare.
390 * varobj.c (varobj_floating_p): New.
391 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
392 '@' as the name, update all floating varobjs.
393
a5defcdc
VP
3942008-03-26 Vladimir Prus <vladimir@codesourcery.com>
395
396 * varobj.c (struct varobj_root): Rename use_selected_frame to
397 floating, and clarify the meaning.
398 (varobj_create, varobj_update, new_root_variable): Adjust.
399 (value_of_root): Don't use type_changed as in variable,
400 adjust comment.
401 (c_value_of_root): Adjust.
5a413362 402
403fe197
PA
4032008-03-25 Pedro Alves <pedro@codesourcery.com>
404
405 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
406 gdb's thread list.
407 (linux_nat_wait): Add main lwp to gdb's thread list.
408 * linux-thread-db.c (find_new_threads_callback): Also attach to
409 already listed threads which thread_db didn't know about yet.
410
710151dd
PA
4112008-03-25 Pedro Alves <pedro@codesourcery.com>
412
413 * linux-nat.c (drain_queued_events): Fix comment typo.
414 (linux_nat_attach): In async mode, don't rely on storing a pending
415 status. Instead place the wait status on the pipe.
416 (linux_nat_resume): Remove unreacheable shortcut code in async
417 mode.
418 (stop_wait_callback): In async mode, don't store pending status.
419 Instead, cancel breakpoints or resend the signal appropriatelly.
420 (cancel_breakpoint): New, refactored from
421 cancel_breakpoints_callback.
422 (cancel_breakpoints_callback): Call cancel_breakpoint.
423 (pipe_to_local_event_queue): Remove special token processing.
424 (linux_nat_wait): Issue an internal error if a pending status is
425 found in async mode.
426
807bddf3
DJ
4272008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
428
429 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
430
c5b48eac
VP
4312008-03-24 Nick Roberts <nickrob@snap.net.nz>
432 Vladimir Prus <vladimir@codesourcery.com>
433
434 * varobj.c (struct varobj_root): New component thread_id.
435 (varobj_get_thread_id, check_scope): New functions.
436 (c_value_of_root): Use check_scope. Switch to the
437 proper thread if necessary.
438
439 * varobj.h (varobj_get_thread_id): New extern.
440
441 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
442
12f4afab
DJ
4432008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
444
445 PR gdb/544
446 * top.c: Revert 2008-03-21 changes.
447
6208b47d
VP
4482008-03-23 Vladimir Prus <vladimir@codesourcery.com>
449
450 * thread.c (make_cleanup_restore_current_thread): Make it
451 globally visible.
452 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
453 * varobj.c (varobj_update): Don't save/restore frame.
454 (c_value_of_root): Save/restore thread and frame here,
455 using make_cleanup_restore_current_thread.
456 * Makefile.in: Update dependecies.
457
44a67aa7
VP
4582008-03-23 Vladimir Prus <vladimir@codesourcery.com>
459
460 * varobj.c (struct varobj_root): Clarify
461 comment on the frame field.
462 (varobj_create): Don't set frame if we have no
463 block.
464
b562a0cb
DJ
4652008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
466
467 PR gdb/544
468 Suggested by Jan Kratochvil:
469 * top.c (gdb_rl_operate_and_get_next_completion): Call
470 rl_redisplay_function.
471 (gdb_rl_redisplay): New.
472 (init_main): Set rl_redisplay_function.
473
ed1bd5f5
JB
4742008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
475
476 * aix-thread.c (pdc_read_regs): Fix compiler warning.
477 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
478 (store_regs_kernel_thread): Likewise.
479
b84876c2
PA
4802008-03-21 Pedro Alves <pedro@codesourcery.com>
481
482 Linux native async support.
483
484 * target.h (struct target_ops): Delete to_async_mask_value and add
485 to_async_mask.
486 (target_is_async_p, target_async): Formatting.
487 (target_async_mask_value): Delete.
488 (target_async_mask): Delete function declaration, and add new
489 target macro with the same name.
490
491 * target.c (update_current_target): Replace to_async_mask_value by
492 to_async_mask. Default to_async_mask to return_one.
493 (target_async_mask): Delete.
494 (find_default_can_async_p, find_default_is_async_p): New.
495 (init_dummy_target): register find_default_can_async_p and
496 find_default_is_async_p on the dummy target.
497
498 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
499 (debug_linux_nat_async): New global.
500 (show_debug_linux_nat_async): New function.
501 (linux_nat_async_enabled, linux_nat_async_mask_value)
502 (linux_nat_event_pipe, linux_nat_num_queued_events)
503 (linux_nat_async_events_enabled): New globals.
504 (struct waitpid_result): New struct.
505 (waitpid_queue): New global.
506 (queued_waitpid, push_waitpid, drain_queued_events): New.
507 (my_waitpid): Call queued_waitpid.
508 (linux_child_follow_fork): Disable async events during the call.
509 (blocked_mask): Delete.
510 (sync_sigchld_action, async_sigchld_action): New globals.
511 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
512 async mode, block events during the call.
513 (linux_nat_create_inferior): New.
514 (linux_nat_attach): In sync mode, restore the mask states. In
515 async mode, wake the event loop immediatelly.
516 (detach_callback): Drain all queued events of the lwp we're
517 detaching from.
518 (linux_nat_detach): Block async mode, and drain events of the main
519 process.
520 (linux_nat_resume): If in async mode, mask async events during the
521 call. If short circuiting, force event loop to wake up. If
522 resuming, set target_executing, and register target events in the
523 event loop.
524 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
525 (linux_nat_wait): In async mode, block events during the call.
526 Only enable/disable passing SIGINT to the inferior in sync mode.
527 Get events from local waitpid queue. If no interesting events was
528 found, return to events loop. Reregister target events in the
529 event loop on exit. In sync mode, no need to reblock SIGCHLD.
530 (linux_nat_kill): Disable events on entry.
531 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
532 here. Detach async mode from the event loop if there are no more
533 forks available, otherwise leave it on.
534 (sigchld_handler): Assure this is called only in sync mode.
535 (linux_async_permitted, linux_async_permitted_1): New globals.
536 (set_maintenance_linux_async_permitted)
537 (show_maintenance_linux_async_permitted): New functions.
538 (linux_nat_is_async_p, linux_nat_can_async_p)
539 (linux_nat_async_mask): New.
540 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
541 (get_pending_events, async_sigchld_handler): New.
542 (linux_nat_async_events): New.
543 (async_terminal_is_ours): New global.
544 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
545 (async_client_callback, async_client_context): New.
546 (linux_nat_async_file_handler, linux_nat_async)
547 (linux_nat_disable_async, linux_nat_enable_async): New.
548 (linux_nat_add_target): Register linux_nat_create_inferior,
549 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
550 linux_nat_async_mask, linux_nat_terminal_inferior and
551 linux_nat_terminal_ours.
552 (_initialize_linux_nat): Remove local action variable, and update
553 code that used it to use sync_sigchld_action. Add new
554 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
555 set/show command in the maintenance class. Add new "linux-async"
556 maintenance set/show command. Block SIGCHLD by default. Setup
557 async_sichld_action, and sync_sigchld_action. Install the default
558 async mode.
559 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
560 the cancel signals.
561
562 * linux-thread-db.c (re_check_for_thread_db): New.
563 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
564 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
565 (thread_db_async_mask): New.
566 (init_thread_db_ops): Register thread_db_can_async_p,
567 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
568
569 * remote.c (remote_async_mask_value): New.
570 (remote_return_zero): New.
571 (init_remote_ops): Register remote_return_zero as callbacks of
572 to_can_async_p and to_is_async_p.
573 (remote_can_async_p, remote_is_async_p, remote_async): Update to
574 use remote_async_mask_value.
575 (remote_async_mask): New.
576 (init_remote_async_ops): Remove to_async_mask_value setting and
577 register remote_async_mask as to_async_mask callback in
578 remote_async_ops.
579
580 * Makefile.in (linux-nat.o): Update.
581
17faa917
DJ
5822008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
583
584 * gdbthread.h (add_thread_with_info): New.
585 * linux-thread-db.c: Add some documentation.
586 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
587 (struct private_thread_info): Remove th_valid and ti_valid.
588 Replace ti with tid.
589 (thread_get_info_callback): Do not add TID to the new ptid. Do
590 not cache th or ti.
591 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
592 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
593 new PTID.
594 (attach_thread): Handle an already-existing thread. Use
595 add_thread_with_info. Cache the th and tid.
596 (detach_thread): Verify that private was set. Remove verbose
597 argument and printing. Update caller.
598 (thread_db_detach): Do not adjust inferior_ptid.
599 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
600 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
601 (thread_db_wait): Do not use lwp_from_thread.
602 (thread_db_pid_to_str): Use the cached TID.
603 (thread_db_extra_thread_info): Check that private is set.
604 (same_ptid_callback): Delete.
605 (thread_db_get_thread_local_address): Do not use it or check
606 is_thread. Check that private is set. Assume that the thread
607 handle is already cached.
608 (init_thread_db_ops): Remove to_resume and to_kill.
609 * thread.c (add_thread_with_info): New.
610 (add_thread): Use it.
611 * linux-nat.c (find_thread_from_lwp): Delete.
612 (exit_lwp): Do not use it. Check print_thread_events. Print before
613 deleting the thread.
614 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
615 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
616 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
617 printf_unfiltered for thread exits.
618 * procfs.c (procfs_wait): Likewise.
619
6214f497
DJ
6202008-03-21 Chris Demetriou <cgd@google.com>
621
622 * symtab.c (rbreak_command): Quote symbol name before passing
623 it to break_command.
624
63092375
DJ
6252008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
626
627 * eval.c (evaluate_subexp_for_address): Clarify error message.
628 Use value_must_coerce_to_target.
629 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
630 * valops.c (value_assign): Call value_coerce_to_target when
631 assigning to anything but internalvars. Leave GDB-side arrays
632 as arrays when assigning to internalvars.
633 (value_must_coerce_to_target, value_coerce_to_target): New.
634 (value_coerce_array, value_addr): Call value_coerce_to_target.
635 (value_array): Create the array in GDB's memory instead of
636 the inferior's.
637 * value.h (value_must_coerce_to_target, value_coerce_to_target):
638 Declare.
639
b21991b0
DJ
6402008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
641
642 * top.c (quit_confirm): Warn that we will kill the program.
643
49a834f9
PA
6442008-03-19 Pedro Alves <pedro@codesourcery.com>
645
646 * inflow.c (terminal_ours_1): Guard access to
647 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
648
ae0d2f24
UW
6492008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
650 Jim Blandy <jimb@codesourcery.com>
651 Daniel Jacobowitz <drow@false.org>
652
653 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
654 (dwarf2_read_address): Update prototype.
655
656 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
657 (signed_address_type): Likewise.
658 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
659 (execute_stack_op): Update calls to unsigned_address_type,
660 signed_address_type and dwarf2_read_address. Fix implementation
661 of DW_OP_deref_size.
662
663 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
664 (dwarf2_per_cu_addr_size): Likewise.
665 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
666 (struct dwarf2_loclist_baton): Likewise.
667
668 * dwarf2loc.c (find_location_expression): Update calls to
669 dwarf2_read_address. Use dwarf2_per_cu_objfile and
670 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
671 (locexpr_describe_location): Likewise.
672 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
673 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
674 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
675 to dwarf2_per_cu_addr_size (per_cu).
676 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
677 (loclist_read_variable): Likewise.
678 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
679
680 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
681 instead of baton->objfile.
682 (dwarf2_per_cu_obfile): New function.
683 (dwarf2_per_cu_addr_size): Likewise.
684
685 * dwarf2-frame.c (struct comp_unit): Move higher.
686 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
687 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
688 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
689 parameter by using fde->eh_frame_p. Use read_encoded_value
690 to implement DW_CFA_set_loc.
691 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
692 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
693 execute_stack_op and execute_cfa_program.
694 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
695 (size_of_encoded_value): Remove.
696 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
697 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
698 (add_cie): Set cie->unit backlink.
699 (decode_frame_entry_1): Set cie->addr_size. Update calls to
700 read_encoded_value.
701 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
702
1c8201d1
MD
7032008-03-17 Markus Deuling <deuling@de.ibm.com>
704
705 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
706 gdbarch_bfd_arch_info.
707
46bba1ef
JB
7082008-03-17 Joel Brobecker <brobecker@adacore.com>
709
710 * aix-thread.c (pdc_read_regs): Minor reformatting.
711
0bcd3e20
VP
7122008-03-17 Vladimir Prus <vladimir@codesourcery.com>
713
714 * thread.c (print_thread_info): Don't insist
715 on having current thread if there are no
716 threads at all.
717
9356cf8d
PA
7182008-03-17 Pedro Alves <pedro@codesourcery.com>
719
720 * infcmd.c (attach_command_post_wait)
721 (attach_command_continuation): New.
722 (attach_command): Support background async execution, and async
723 execution in synchronous mode.
724
5c3ce3f7
DJ
7252008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
726
727 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
728 * symmisc.c (dump_symtab_1): Likewise.
729 * wrapper.c (gdb_value_struct_elt): Likewise.
730
fa2c6a57
PA
7312008-03-17 Pedro Alves <pedro@codesourcery.com>
732
733 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
734
02f3fc28
PA
7352008-03-17 Pedro Alves <pedro@codesourcery.com>
736
737 * linux-nat.c (linux_nat_filter_event): New, refactored from
738 linux_nat_wait.
739 (linux_nat_wait): Call linux_nat_filter_event.
740
2f77b315
UW
7412008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
742
743 * top.c (execute_command): Fix uninitialized variable error.
744
f01be29b
NH
7452008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
746
747 * Makefile.in (amd64nbsd-nat.o): New dependency.
748 * amd64nbsd-nat.c: Include "nbsd-nat.h".
749 (_initialize_amd64nbsd_nat): Update target vector to use
750 nbsd_pid_to_exec_file.
751 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
752
6cf32704
VP
7532008-03-15 Vladimir Prus <vladimir@codesourcery.com>
754
755 Remove ignoring leading exec events code.
756 * fork-child.c (startup_inferior): Do not set
757 inferior_ignoring_leading_exec_events.
758 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
759 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
760 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
761 (handle_inferior_event): Remove code for ignoring leading exec
762 events.
763 * target.c (update_current_target): Do not inherit, or default,
764 to_reported_exec_events_per_exec_call.
765 (debug_to_reported_exec_events_per_exec_call): Remove.
766 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
767 * target.h (target_reported_exec_events_per_exec_call): Remove.
768 (struct target): Remove the to_reported_exec_events_per_exec_call
769 field.
770
8e8901c5
VP
7712008-03-15 Vladimir Prus <vladimir@codesourcery.com>
772
773 Implement -thread-info.
774 * gdbthread.h (print_thread_info): Declare.
775
776 * thread.c (print_thread_info): New, extracted
777 from info_threads_command and adjusted to
778 work for CLI and MI.
779 (info_threads_command): Use print_thread_info.
780 * Makefile.in: Update dependencies.
781
782 * mi/mi-cmds.c (mi_cmds): Specify a handler
783 for -thread-info.
784 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
785 * mi/mi-main.c (mi_cmd_thread_info): New.
786 (mi_cmd_list_features): Include 'thread-info'.
787
7d1e6fb8
KB
7882008-03-14 Kevin Buettner <kevinb@redhat.com>
789
790 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
791 to decide whether to match instruction patterns using "sw" and "sd".
792
89113898
PA
7932008-03-14 Pedro Alves <pedro@codesourcery.com>
794
795 * infcmd.c (jump_command): Postpone disabling stdin until after
796 the possible query.
797
64a0ac84
PA
7982008-03-14 Pedro Alves <pedro@codesourcery.com>
799
800 * inflow.c (gdb_getpgrp): New.
801 (gdb_has_a_terminal): Use get_getpgrp.
802 (terminal_ours_1): If attach_flag is set, don't refetch
803 inferior_process_group.
804
1fddbabb
PA
8052008-03-14 Pedro Alves <pedro@codesourcery.com>
806
807 * features/library-list.dtd: Allow "section" elements as children
808 of "library". Add "section" element and describe its attributes.
809
810 * solib-target.c (struct lm_info): Add section_bases member.
811 (library_list_start_segment): Error out if seen a section element.
812 (library_list_start_section): New.
813 (library_list_end_library): New.
814 (solib_target_free_library_list): Free section_bases.
815 (section_attributes): New.
816 (library_children): Make "segment" optional. Add "section" child.
817 (library_list_children): Register library_list_end_library.
818 (solib_target_relocate_section_addresses): Handle section bases.
819
820 * NEWS: Mention new qXfer:libraries:read section offsets support.
821
712af3be
VP
8222008-03-14 Vladimir Prus <vladimir@codesourcery.com>
823
824 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
825 (make_exec_error_cleanup): Remove declarations.
826 * utils.c (exec_error_cleanup_chain): Remove.
827 (do_exec_error_cleanups, discard_exec_error_cleanups)
828 (make_exec_error_cleanup): Remove.
829 * event-loop.c (start_event_loop): Adjust call to
830 async_enable_stdin.
831 * event-top.c (async_enable_stdin): Remove the paramater dummy.
832 (async_disable_stdin): Don't register async_enable_stdin via
833 cleanup.
834 * inf-loop.c (inferior_event_handler): Don't
835 call do_exec_error_cleanups. Call async_enable_stdin instead.
836 * event-loop.c (start_event_loop): Adjust call to
837 async_enable_stdin.
838 * tui/tui-interp.c (tui_command_loop): Adjust call to
839 async_enable_stdin.
840
32c1e744
VP
8412008-03-14 Vladimir Prus <vladimir@codesourcery.com>
842
843 Async mode fixes.
844 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
845 * breakpoint.c (bpstat_do_actions): In async mode,
846 don't jump to top expecting stop_bpstat to be already
847 updated.
848 * event-loop.c (start_event_loop): Call async_enable_stdin
849 on exception.
850 * event-top.c (async_enable_stdin): Do nothing if sync_execution
851 is not set.
852 (command_handler): Do not setup continuation here.
853 (command_line_handler_continuation): Move to...
854 * top.c (command_line_handler_continuation): ... here.
855 (execute_command): In async mode, register continuation.
856 Don't check frame's language in running in async mode.
857 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
858 * inf-loop.c (complete_execution): Inline into...
859 (inferior_event_handler): ... here. Clear target_executing before
860 doing any cleanups. Don't try to show prompt if the target was
861 resumed.
862 * infcmd.c (signal_command): Add support for async mode.
863 (finish_command): Only add continuation if the target was
864 successfully resumed.
865 * remote.c (init_async_opts): Register to_get_thread_local_address
866 handler.
867 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
868 with sync_execution.
869 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
870 on exception.
871
c04ea773
DJ
8722008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
873
874 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
875 * exec.c (exec_bfd_mtime): Define.
876 (exec_close): Clear it.
877 (exec_file_attach): Set it.
878 * gdbcore.h (exec_bfd_mtime): Declare.
879 * source.c (find_source_lines): Do not use bfd_get_mtime.
880
952dc227
VP
8812008-03-14 Vladimir Prus <vladimir@codesourcery.com>
882
883 * top.c (simplified_command_loop): Remove.
884
4cf46804
VP
8852008-03-14 Vladimir Prus <vladimir@codesourcery.com>
886
887 Remove unused remote.c hooks.
888 * remote.c (deprecated_target_resume_hook)
889 (deprecated_target_wait_loop_hook): Remove.
890 (remote_resume): Do not call deprecated_target_resume_hook.
891 (remote_wait): Do not call deprecated_target_wait_loop_hook.
892 (remote_async_wait): Likewise.
893
683f2885
VP
8942008-03-14 Vladimir Prus <vladimir@codesourcery.com>
895
896 Implement MI notification for new threads.
897 * doc/observer.texi (new_thread): Document.
898 * observer.sh: Forward declare struct thread_info.
899 * thread.c (add_thread): Notify observer.
900
901 * interps.h (interp_init_ftype): New parameter
902 top_level.
903 (interp_set): Likewise.
904 (top_level_interpreter_data): Declare.
905 * interps.c (interp_set): New parameter top_level.
906 Pass it to interpreter's init function. Remember
907 top level interpreter.
908 (interpreter_exec_cmd): Adjust.
909 (top_level_interpreter_data): New.
910 * main.c (captured_main): Pass 1 for top_level
911 parameter of interp_set.
912 * cli/cli-interp.c (cli_interpreter_init): New
913 parameter top_level.
914 * tui/tui-interp.c (tui_init): New parameter top_level.
915
916 * mi/mi-interp.c (mi_new_thread): New.
917 (mi_interpreter_init): If top level, register
918 observer for new threads.
919
920 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
921
ff9b3928
PA
9222008-03-14 Pedro Alves <pedro@codesourcery.com>
923
924 * top.c (execute_command): Disable break and stop
925 commands in async mode.
926
b18392ef
PA
9272008-03-14 Pedro Alves <pedro@codesourcery.com>
928
929 revert:
930 2008-03-14 Pedro Alves <pedro@codesourcery.com>
931 * inf-loop.c (inferior_event_handler): Don't include remote.h.
932 Call target_stop in the INF_QUIT_REQ case.
933 * Makefile.in (inf-loop.o): Update.
934
0aca9f07
PA
9352008-03-14 Pedro Alves <pedro@codesourcery.com>
936
937 * inf-loop.c (inferior_event_handler): Don't include remote.h.
938 Call target_stop in the INF_QUIT_REQ case.
939 * Makefile.in (inf-loop.o): Update.
940
0b4e556c
PA
9412008-03-14 Pedro Alves <pedro@codesourcery.com>
942
943 * top.c (execute_command): Enable break, info and interrupt
944 commands in async mode.
945
8defab1a
DJ
9462008-03-13 Vladimir Prus <vladimir@codesourcery.com>
947 Daniel Jacobowitz <dan@codesourcery.com>
948
949 * breakpoint.h (breakpoint_restore_shadows): New
950 declaration.
951 * breakpoint.c (breakpoint_restore_shadows): New.
952 (read_memory_nobpt): Delete.
953 * gdbcore.h (read_memory_nobpt): Delete declaration.
954 * target.c (memory_xfer_partial): Call
955 breakpoint_restore_shadows.
956 (restore_show_memory_breakpoints)
957 (make_show_memory_beakpoints_cleanup): New.
958 (show_memory_breakpoints): New.
959 * target.h (make_show_memory_beakpoints_cleanup): Declare.
960 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
961 Make sure we see memory breakpoints when checking if
962 breakpoint is still there.
963 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
964 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
965 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
966 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
967
fd532e2e
PA
9682008-03-12 Pedro Alves <pedro@codesourcery.com>
969
970 * thread.c (add_thread): Use printf_unfiltered to print.
971
f749779f 9722008-03-12 Joel Brobecker <brobecker@gnat.com>
965b60ee
JB
973
974 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
975 that is true only on x86-solaris and x86_64-solaris.
976 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
977 with proc_get_LDT_entry.
978
9792008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
83116857
TJB
980
981 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
982 * config.in, configure: Regenerate.
983 * fork-child.c (fork_inferior): Call create_tty_session.
984 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
985 (create_tty_session): New function.
986 * terminal.h: Declare create_tty_session.
987
4fbb74a6
AM
9882008-03-12 Alan Modra <amodra@bigpond.net.au>
989
990 PR 5900
991 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
992 * mipsread.c: Include elf/internal.h.
993 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
994 to internal range.
995
20a6ec49
MD
9962008-03-11 Markus Deuling <deuling@de.ibm.com>
997
998 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
999 to get at the current architecture and at the target specific vector.
1000 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
1001 remove define of I387_ST0_REGNUM.
1002
1003 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
1004
1005 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
1006 get at the current architecture
1007 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
1008 parameter.
1009
1010 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
1011 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
1012
1013 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
1014 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
1015 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
1016
1017 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
1018 at the target specific vector.
1019
1020 (i386_get_longjmp_target): Use get_frame_arch to get at the current
1021 architecture. Use gdbarch_tdep to get at the target specific vector.
1022
1023 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
1024 update caller. Use gdbarch_tdep to get at the target specific vector.
1025
1026 (i386_register_to_value: Use get_frame_arch to get at the current
1027 architecture.
1028
1029 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
1030 parameter.
1031
1032 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
1033 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
1034 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
1035 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
1036
1037 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
1038 undef's.
1039
1040 (i387_convert_register_p, i387_register_to_value,
1041 i387_value_to_register): Update call for i386_fp_regnum_p.
1042
1043 * i387-tdep.h: Remove comment.
1044 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
1045 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
1046 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
1047 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
1048 I387_MXCSR_REGNUM): Add target specific vector as parameter.
1049
ccd213ac
DJ
10502008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
1051
1052 * Makefile.in (fork-child.o): Update.
1053 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
1054 argument. Gather all gdbserver features together.
1055 * fork-child.c (exec_wrapper): New variable.
1056 (fork_inferior): Use it.
1057 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
1058 (unset_exec_wrapper_command, _initialize_fork_child): New.
1059
10602008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
80618b99
MS
1061
1062 * source.c (directory_command): Modify the determination of
1063 condition of terminal "from_tty".
1064
22566fbd
DJ
10652008-03-10 Matt Rice <ratmice@gmail.com>
1066
1067 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
1068
9971ac47
UW
10692008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
1070
1071 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
1072 of the data passing to strtoulst function.
1073 (info_spu_signal_command): Likewise.
1074
835670cf
VP
10752008-03-08 Vladimir Prus <vladimir@codesourcery.com>
1076
1077 * mi/mi-interp.c (mi_command_loop): Remove
1078 commented-out code.
1079
be86555c
JB
10802008-03-07 Joel Brobecker <brobecker@adacore.com>
1081
1082 * remote.c (extended_remote_attach_1): Make local variable pid an int
1083 instead of a pid_t.
1084
4d7b2d5b
JB
10852008-03-07 Joel Brobecker <brobecker@adacore.com>
1086
1087 * solib-svr4.c (svr4_same_1): New function, originally extracted
1088 from svr4_same and expanded to handle the sparc64 case.
1089 (svr4_same): Move up and reimplement using svr4_same_1.
1090 (enable_break): Use svr4_same_1 to do shared library name comparisons.
1091
61fed90e
RR
10922008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
1093
1094 * MAINTAINERS: Move self to Paper trail.
1095
b803fb0f
DJ
10962008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
1097
1098 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
1099 * event-loop.c (call_async_signal_handler): New.
1100 * event-loop.h (call_async_signal_handler)
1101 (gdb_call_async_signal_handler): Declare.
1102 (mark_async_signal_handler): Add comments.
1103 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
1104 * mingw-hdep.c (sigint_event, sigint_handler): New.
1105 (gdb_select): Use them. Wait for the readline signal handler
1106 to finish.
1107 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
1108 * posix-hdep.c (gdb_call_async_signal_handler): New function.
1109 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
1110 New.
1111 (remote_fileio_ctrl_c_signal_handler): Use
1112 gdb_call_async_signal_handler.
1113 (initialize_remote_fileio): Initialize sigint_fileio_token.
1114 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
1115 not initialize tokens here.
1116 (handle_remote_sigint_twice): Likewise. Reinstall
1117 handle_remote_sigint.
1118 (async_remote_interrupt_twice): Just call interrupt_query.
1119 (cleanup_sigint_signal_handler): Do not delete tokens.
1120 (remote_interrupt, remote_interrupt_twice): Use
1121 gdb_call_async_signal_handler.
1122 (interrupt_query): Reinstall the default signal handler.
1123 (_initialize_remote): Initialize tokens here.
1124
8f4d54ed
JB
11252008-03-04 Joel Brobecker <brobecker@adacore.com>
1126
1127 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
1128 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
1129 Change the type of the lr register to code_ptr.
1130 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
1131 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
1132 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
1133 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
1134 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
1135 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
1136 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
1137
95ece428
JW
11382008-03-03 James E. Wilson <wilson@tuliptree.org>
1139
1140 * MAINTAINERS: Update my email address.
1141
686a5eed
KS
11422008-03-03 Keith Seitz <keiths@redhat.com>
1143
1144 From Dave Murphy <davem@devkitpro.org>:
1145 * configure.ac: Set tcl configdir to win under mingw.
1146 * configure: Regenerate.
1147
fa4727a6
DJ
11482008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
1149
1150 * breakpoint.c (fetch_watchpoint_value): New function.
1151 (update_watchpoint): Set and clear val_valid. Use
1152 fetch_watchpoint_value. Handle unreadable values on the
1153 value chain. Correct check for user-requested array watchpoints.
1154 (breakpoint_init_inferior): Clear val_valid.
1155 (watchpoint_value_print): New function.
1156 (print_it_typical): Use it. Do not free or clear old_val. Print
1157 watchpoints even if old_val == NULL.
1158 (watchpoint_check): Use fetch_watchpoint_value. Check for values
1159 becoming readable or unreadable.
1160 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
1161 (do_enable_watchpoint): Likewise.
1162 * breakpoint.h (struct breakpoint): Update comment for val. Add
1163 val_valid.
1164 * NEWS: Mention watchpoints on inaccessible memory.
1165
c03374d5
DJ
11662007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
1167
1168 * Makefile.in (i386-nat.o): Update.
1169 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
1170 i386_use_watchpoints.
1171 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
1172 i386_use_watchpoints.
1173 * i386-nat.c (i386_stopped_data_address): Take two arguments.
1174 (i386_stopped_by_watchpoint): Update call.
1175 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
1176 * config/i386/nm-i386.h: Conditionalize definitions on
1177 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
1178 (i386_use_watchpoints): Declare.
1179 (i386_stopped_data_address): Update.
1180 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
1181 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
1182
c24d7425 11832008-02-29 Joel Brobecker <brobecker@adacore.com>
1184
1185 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
1186 * version.in: Bump version to 6.8.50.20080229-cvs.
1187
a7dfd010
MD
11882008-02-28 Markus Deuling <deuling@de.ibm.com>
1189
1190 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
1191 properly.
1192
258c00cc
TT
11932008-02-28 Tom Tromey <tromey@redhat.com>
1194
1195 * infcmd.c (notice_args_read): Print result of get_inferior_args.
1196
8edfe269
DJ
11972008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
1198
1199 * infcmd.c (kill_if_already_running): Make static. Use
1200 target_require_runnable.
1201 * target.c (target_require_runnable): New.
1202 * target.h (target_require_runnable): Declare.
1203
0d6ba1b1
DJ
12042008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
1205
1206 * frame.c (reinit_frame_cache): Only annotate if frames were
1207 previously valid.
1208
6fe305f7
UW
12092008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1210
1211 * regformats/reg-ppc.dat: Rename "ps" to "msr".
1212 * regformats/reg-ppc64.dat: Likewise.
1213
9b4b61c8
UW
12142008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1215
1216 * features/Makefile (%.dat): Emit xmltarget statement.
1217
1218 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
1219 Generate code to set gdbserver_xmltarget in init_registers_${name}.
1220
1221 * regformats/arm-with-iwmmxt.dat: Regenerate.
1222 * regformats/mips64-linux.dat: Regenerate.
1223 * regformats/mips-linux.dat: Regenerate.
1224 * regformats/rs6000/powerpc-32.dat: Regenerate.
1225 * regformats/rs6000/powerpc-64.dat: Regenerate.
1226 * regformats/rs6000/powerpc-e500.dat: Regenerate.
1227
1228 * regformats/reg-arm.dat: Add xmlarch statement.
1229 * regformats/reg-i386.dat: Likewise.
1230 * regformats/reg-i386-linux.dat: Likewise.
1231 * regformats/reg-x86-64-linux.dat: Likewise.
1232 * regformats/reg-spu.dat: Likewise.
1233
20b4711e
DJ
12342008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
1235
1236 * remote.c (remote_wait, remote_async_wait): Stop if we receive
1237 an error.
1238
1843f87b
DJ
12392008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
1240
1241 * utils.c (debug_timestamp): New.
1242 (vfprintf_unfiltered): Print timestamps if requested.
1243 (show_debug_timestamp): New.
1244 (initialize_utils): Register "set debug timestamp".
1245 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
1246
6a048695
JB
12472008-02-27 Joel Brobecker <brobecker@adacore.com>
1248
1249 * breakpoint.c (skip_prologue_sal): New function.
1250 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
1251 computed from a line number.
1252
0b998f49
JB
12532008-02-27 Joel Brobecker <brobecker@adacore.com>
1254
1255 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
1256 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
1257 Set PC register type to "code_ptr".
1258 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
1259 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
1260 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
1261 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
1262 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
1263 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
1264 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
1265 Regenerate.
1266
d05b4ac3
UW
12672008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
1268
1269 * regformats/regdat.sh: Rename init_registers function in
1270 generated file to init_registers_${name}.
1271
1272 * regformats/reg-crisv32.dat: Set "name" to crisv32.
1273 * regformats/reg-ppc64.dat: Set "name" to ppc64.
1274 * regformats/reg-s390x.dat: Set "name" to s390x.
1275
a5d9d57d
DJ
12762008-02-26 Greg Law <glaw@undo-software.com>
1277
1278 * regcache.c (registers_changed): Call reinit_frame_cache.
1279
e25c958c
DJ
12802008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1281
1282 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
1283 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
1284 and svr4_fetch_objfile_link_map.
1285 * Makefile.in (sh-linux-tdep.o): Update.
1286
5daa78cc
TJB
12872008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
1288
1289 * amd64-tdep.c (amd64_classify): Add support for decimal float
1290 types.
1291 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
1292 use the struct return convention.
1293
54e52265
VP
12942008-02-26 Nick Roberts <nickrob@snap.net.nz>
1295
1296 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
1297 to old format. Discard breakpoint address if shared library is
1298 unloaded.
1299 (breakpoint_1): Adjust formatting of table header accordingly.
1300
d8f2712d
VP
13012008-02-25 Vladimir Prus <vladimir@codesourcery.com>
1302
1303 * remote.c (remote_get_threadlist): If the response
1304 is empty, don't try to parse it.
1305
05ce04a4
VP
13062008-02-23 Vladimir Prus <vladimir@codesourcery.com>
1307
1308 Unbreak 'target async'.
1309 * serial.c (serial_async): Set the
1310 handler function before enabling async
1311 mode.
1312
b36ec657
DJ
13132008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1314
1315 * solib-svr4.c (enable_break): Convert r_brk to a code address.
1316
df7df359
PA
13172008-02-21 Pedro Alves <pedro@codesourcery.com>
1318
1319 * remote.c (extended_remote_attach_1): Set attach_flag.
1320 (extended_remote_create_inferior_1): Clear attach_flag.
1321
7cd25cfc
DJ
13222008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
1323
1324 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
1325 r_brk_offset.
1326 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
1327 * solib-svr4.c (solib_svr4_r_brk): New.
1328 (open_symbol_file_object, svr4_current_sos): Always check the
1329 debug base.
1330 (svr4_fetch_objfile_link_map): Do not set debug_base.
1331 (enable_break): Use r_brk if it is set.
1332 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
1333 (svr4_lp64_fetch_link_map_offsets): Likewise.
1334 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
1335
07ea644b
MD
13362008-02-20 Markus Deuling <deuling@de.ibm.com>
1337 Mark Kettenis <kettenis@gnu.org>
1338
1339 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
1340 trad_frame_saved_reg.
1341 (trad-frame.h): New include.
1342
1343 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
1344 instead of frame_obstack_zalloc.
1345 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
1346
1347 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
1348
40887e1a
MD
13492008-02-20 Markus Deuling <deuling@de.ibm.com>
1350
1351 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
1352 from disassemble_info instead of gdbarch_byte_order.
1353
1354 * mips-tdep.c (gdb_print_insn_mips): Likewise.
1355 * arm-tdep.c (gdb_print_insn_arm): Likewise.
1356
ae4b2284
MD
13572008-02-20 Markus Deuling <deuling@de.ibm.com>
1358
1359 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
1360 gdbarch as parameter.
1361
1362 * gdbarch.{c,h}: Regenerate.
1363
1364 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
1365 parameter.
1366 * mem-break.c (default_memory_insert_breakpoint)
1367 (default_memory_remove_breakpoint): Likewise.
1368 * target.h (default_memory_remove_breakpoint)
1369 (default_memory_insert_breakpoint): Likewise.
1370
1371 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
1372 parameter. Replace current_gdbarch by gdbarch.
1373 * m32r-tdep.c (m32r_memory_insert_breakpoint)
1374 (m32r_memory_remove_breakpoint): Likewise.
1375
d9bf65d5
DJ
13762008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
1377
1378 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
1379
b93b6ca7
JB
13802008-02-19 Joel Brobecker <brobecker@adacore.com>
1381
1382 * NEWS: Add entry describing Add support improvements.
1383
4ed226fe
MD
13842008-02-18 Markus Deuling <deuling@de.ibm.com>
1385
1386 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
1387 M68K_FP0_REGNUM.
1388
caaa79ad
MD
13892008-02-18 Markus Deuling <deuling@de.ibm.com>
1390
1391 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
1392 register_offset_hack anymore.
1393
1394 * regcache.{c,h} (register_offset_hack): Remove.
1395
e38c262f
MD
13962008-02-18 Markus Deuling <deuling@de.ibm.com>
1397
1398 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
1399
1400 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
1401 current_gdbarch by gdbarch.
1402 (hppa64_hpux_find_global_pointer): Likewise.
1403 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
1404 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
1405 find_global_pointer.
1406
1407 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
1408 parameter.
1409 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
1410
1411 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
1412 of gdbarch_num_regs.
1413
1414 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
1415 replace current_gdbarch by gdbarch.
1416 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
1417
206988c4
MD
14182008-02-18 Markus Deuling <deuling@de.ibm.com>
1419
1420 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
1421 and replace current_gdbarch by gdbarch.
1422
1423 (store_register): Update call for exec_one_dummy_insn.
1424 (fetch_register, store_register): Update call of regmap.
1425
1426 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
1427 parameter and replace current_gdbarch by gdbarch.
1428
1429 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
1430 the current architecture. Update call for getregs_supplies and
1431 getfpregs_supplies.
1432 (ppcnbsd_fetch_inferior_registers): Likewise.
1433
1434 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
1435 replace current_gdbarch by gdbarch.
1436 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
1437 get_regcache_arch to get at the current architecture. Update call for
1438 getfpregs_supplies.
1439
f642be6b
MD
14402008-02-18 Markus Deuling <deuling@de.ibm.com>
1441
1442 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
1443 variables.
1444
b1f2bf01
MD
14452008-02-15 Markus Deuling <deuling@de.ibm.com>
1446
1447 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
1448
ee163bf5
VP
14492008-02-14 Vladimir Prus <vladimir@codesourcery.com>
1450
1451 * NEWS: Mention pending breakpints in MI.
1452
f6fbcbf9
MD
14532008-02-14 Markus Deuling <deuling@de.ibm.com>
1454
1455 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
1456
36af4ef6
MD
14572008-02-13 Markus Deuling <deuling@de.ibm.com>
1458
1459 Add script to build and test GDB using enable-targets=all.
1460
1461 * gdb_buildall.sh: New file.
1462
94a0e877
MG
14632008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
1464
1465 * NEWS (New native configurations): Xtensa GNU/Linux.
1466 (New targets): Xtensa GNU/Linux.
1467 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
1468 xtensa-linux-tdep.o
1469 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
1470 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
1471 * configure.tgt (xtensa*-*-linux*): New entry.
1472 * xtensa-config.c (xtensa_tdep): New variable.
1473 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
1474 (rmap): Change format based on new macro XTREG.
1475 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
1476 * xtensa-linux-nat.c: New.
1477 * xtensa-linux-tdep.c: New.
1478 * xtensa-xtregs.c: New.
1479 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
1480 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
1481 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
1482 (xtensa_register_t): New field coprocessor.
1483 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
1484 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
1485 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
1486 Update to handle privileged registers.
1487 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
1488 (xtensa_push_dummy_call): Set windowstart register correctly.
1489 (call0_analyze_prologue): Initialize xtensa_default_isa.
1490 (xtensa_derive_tdep): New.
1491 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
1492 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
1493 Call xtensa_derive_tdep().
1494 * config/xtensa/linux.mh: New.
1495 * regformats/reg-xtensa.dat: New.
1496
b7ee1b0a 14972008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
f90c07ac
EZ
1498
1499 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
1500 (filenames.h): New include.
1501 * Makefile.in (corelow.o): Add dependency for filenames.h.
1502
8da2a1df
DJ
15032008-02-08 Doug Evans <dje@google.com>
1504
1505 * source.c (find_and_open_source): Always rewrite absolute filenames.
1506
776592bf
DE
15072008-02-07 Doug Evans <dje@google.com>
1508
1509 * breakpoint.c: #include "hashtab.h".
1510 (ambiguous_names_p): New fn.
1511 (update_breakpoint_locations): When restoring bp enable status, don't
1512 compare function names if any functions have same name.
1513 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
1514
d6565258
JB
15152008-02-07 Joel Brobecker <brobecker@adacore.com>
1516
1517 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
1518 instead of just a VEC*. Update use of SV.
1519 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
1520
6d53d0af
JB
15212007-02-07 Joel Brobecker <brobecker@adacore.com>
1522
1523 * NEWS: Put all new commands since gdb-6.7 together.
1524
2ba95b9b
JB
15252007-02-07 Joel Brobecker <brobecker@adacore.com>
1526
1527 * ada-lang.c: #include "vec.h".
1528 (struct string_vector, new_string_vector, string_vector_append):
1529 Delete.
1530 (char_ptr): New typedef.
1531 (DEF_VEC_P (char_ptr)): New VEC type.
1532 (symbol_completion_add): Update profile to take the new VEC type
1533 instead of the old string_vector structure. Update code accordingly.
1534 (ada_make_symbol_completion_list): Use the new VEC type instead of
1535 the old string_vector structure, and update the code accordingly.
1536 * Makefile.in (ada-lang.o): Add dependency on vec.h.
1537
4ae0885a
PM
15382008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
1539
1540 * p-exp.y: Set current_type in missing places.
1541 (leftdiv_is_integer): New static variable.
1542 Typecast right operand of BINOP_DIV to long_double if both operands
1543 are integers.
1544
06b1d59c
MR
15452008-02-06 Maciej W. Rozycki <macro@mips.com>
1546
1547 * remote-mips.c (set_breakpoint): Rename to...
1548 (mips_set_breakpoint): ... this.
1549 (clear_breakpoint): Rename to...
1550 (mips_clear_breakpoint): ... this.
1551 (common_breakpoint): Rename to...
1552 (mips_common_breakpoint): ... this.
1553 (check_lsi_error): Rename to...
1554 (mips_check_lsi_error): ... this.
1555
41d27058
JB
15562007-02-05 Joel Brobecker <brobecker@adacore.com>
1557
1558 * language.h (struct language_defn): Add new field
1559 la_make_symbol_completion_list.
1560 * symtab.c (default_make_symbol_completion_list): Renames
1561 make_symbol_completion_list.
1562 (make_symbol_completion_list): New function.
1563 * symtab.h (default_make_symbol_completion_list): Add declaration.
1564 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
1565 (auto_language, local_language): Likewise.
1566 * objc-lang.c (objc_language_defn): Likewise.
1567 * scm-lang.c (scm_language_defn): Likewise.
1568 * m2-lang.c (m2_language_defn): Likewise.
1569 * f-lang.c (f_language_defn): Likewise.
1570 * jv-lang.c (java_language_defn): Likewise.
1571 * p-lang.c (pascal_language_defn): Likewise.
1572 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
1573 (minimal_language_defn): Likewise.
1574 * ada-lang.c (struct string_vector): New structure.
1575 (new_string_vector, string_vector_append, ada_unqualified_name)
1576 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
1577 (ada_make_symbol_completion_list): New functions.
1578 (ada_language_defn): Set la_make_symbol_completion_list.
1579 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
1580 this function is static.
1581
ee3a2f01
KB
15822008-02-05 Kevin Buettner <kevinb@redhat.com>
1583
1584 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
1585 to account for call site optimizations.
1586
d844e34b
JB
15872008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
1588
1589 * tracepoint.c (read_actions): Handle end-of-text indicator
1590 in action list properly. (Committed by Jim Blandy)
1591
02e4669d
JB
15922008-02-05 Jim Blandy <jimb@red-bean.com>
1593
1594 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
1595 pseudoregister, not an internal error.
85ecb32b 1596 Reported by: Andrzej Zaborowski
02e4669d 1597
c39c8256
VP
15982008-02-04 Vladimir Prus <vladimir@codesourcery.com>
1599
1600 * varobj.c (c_value_of_variable): Use xstrdup.
1601
ae7d22a6
VP
16022008-02-04 Vladimir Prus <vladimir@codesourcery.com>
1603
1604 Update stored rendition of varobj value when format changes.
1605 * varobj.c (varobj_set_display_format): Recomputed
1606 print_value.
1607 (c_value_of_variable): Return print_value.
1608
81fe8080
DE
16092008-02-03 Doug Evans <dje@google.com>
1610
301f0ecf
DE
1611 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
1612 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
1613 * valops.c (value_one): New function.
1614 * value.h (value_one): Declare.
1615
1616 Fix argument promotion for binary arithmetic ops for C.
1617 * valarith.c (unop_result_type): New fn.
1618 (binop_result_type): New fn.
1619 (value_binop): Move result type computation to binop_result_type.
1620 (value_pos, value_neg, value_complement): Move result type
1621 computation to unop_result_type.
1622
81fe8080
DE
1623 PR 2384
1624 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
1625 Return basetype, fieldno if found. All callers updated.
1626 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
1627 objfile.
1628 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
1629 * symfile.h (fill_in_vptr_fieldno): Delete.
1630
41808ebe
DE
16312008-02-02 Doug Evans <dje@google.com>
1632
f8597ac3
DE
1633 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
1634
41808ebe
DE
1635 * typeprint.c (*): Whitespace cleanup.
1636
f964a756
MK
16372008-02-02 Mark Kettenis <kettenis@gnu.org>
1638 Luis Machado <luisgpm@br.ibm.com>
1639 Thiago Jung Bauermann <bauerman@br.ibm.com>
1640
1641 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
1642 don't fit into registerson the stack the way GCC does.
1643
b06ead72
JB
16442008-02-01 Joel Brobecker <brobecker@adacore.com>
1645
1646 * symtab.c (symbol_set_names): Do not add an entry in the demangling
1647 hash table for Ada symbols. Just store the linkage name as is,
1648 and leave the demangled_name as NULL.
1649
2cfa0c8d
JB
16502007-02-01 Joel Brobecker <brobecker@adacore.com>
1651
1652 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
1653 in the global scope.
1654 (new_symbol): Likewise.
1655
98deb0da
VP
16562008-02-01 Vladimir Prus <vladimir@codesourcery.com>
1657
1658 * breakpoint.c (break_command_1): Return void.
1659 (break_command_really): Return void. Rethrow
1660 exceptions instead of returning.
1661 (gdb_breakpoint): Remove the error_message parameter.
1662 Return void. Rename to set_breakpoint.
1663 * gdb.h (gdb_breakpoint): Rename and move to...
1664 * breakpoint.h (set_breakpoint): ...here.
1665 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
1666 event hooks even if exception is thrown. Adjust to
1667 gdb_breakpoint interface changes.
1668
1669
ce0451ad
TJB
16702008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
1671
1672 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
1673 float in both first and second word in the doubleword, to support
1674 old and new ABIs.
1675
723a2275
VP
16762008-02-01 Vladimir Prus <vladimir@codesourcery.com>
1677
1678 Properly rethrow exception. This fixes errors
1679 about non-existent functions for -break-insert.
1680 * breakpoint.c (break_command_really): Use throw_exception
1681 for rethrowing. If rethrowing, don't print the exception.
1682
d64a946d
TJB
16832008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1684
1685 * NEWS: Mention Decimal Floating Point support.
1686
02b156f5
JB
16872008-01-31 Joel Brobecker <brobecker@adacore.com>
1688
1689 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
1690 value type to builtin_type_void_func_ptr.
1691
a16b8bcd
UW
16922008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
1693
1694 * s390-tdep.c (is_float_singleton, is_float_like,
1695 alignment_of, s390_return_value): Make checks for
1696 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
1697
f949c649
TJB
16982008-01-31 Luis Machado <luisgpm@br.ibm.com>
1699 Thiago Jung Bauermann <bauerman@br.ibm.com>
1700
1701 * infcmd.c (default_print_registers_info): Also print hex
1702 raw contents for TYPE_CODE_DECFLOAT registers.
1703 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
1704 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
1705 (rs6000_register_name): Add support for DFP pseudo-registers.
1706 (rs6000_pseudo_register_type): Likewise.
1707 rs6000_pseudo_register_reggroup_p): Likewise.
1708 (ppc_pseudo_register_read): New function.
1709 (ppc_pseudo_register_write): Likewise.
1710 (rs6000_pseudo_register_read): Likewise.
1711 (rs6000_pseudo_register_write): Likewise.
1712 (e500_pseudo_register_read): Move checks to
1713 rs6000_pseudo_register_read.
1714 (e500_pseudo_register_write): Move checks to
1715 rs6000_pseudo_register_write.
1716 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
1717 rs6000_pseudo_register_read and rs6000_pseudo_register_write
1718 in gdbarch if SPE or DFP is available. Adjust gdbarch's
1719 num_pseudo_regs to account for DFP pseudo regs.
1720
5a9e69ba
TJB
17212008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1722
1723 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
1724 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
1725 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
1726 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
1727 e500_pseudo_register_read, e500_pseudo_register_write): Use
1728 IS_SPE_PSEUDOREG macro.
1729 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
1730 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
1731 Remove initialization of tdep->ppc_ev31_regnum.
1732
4e885b20
JB
17332008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1734
1735 * printcmd.c (print_formatted): Handle references as for unformatted
1736 prints.
1737
80f064a2
JB
17382008-01-30 Joel Brobecker <brobecker@adacore.com>
1739
1740 * eval.c (evaluate_subexp_standard): Add handling of user
1741 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
1742
9b3442ee
PM
17432008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
1744
1745 * eval.c (evaluate_subexp_standard): Support
1746 BINOP_INTDIV opcode.
1747
d118ef87
PH
17482008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
1749
1750 * valarith.c (value_binop): Add floating-point BINOP_MIN and
1751 BINOP_MAX cases.
1752 For BINOP_EXP, use length and signedness of left operand only for
1753 result, as for shifts.
1754 For integral operands to BINOP_EXP, use new integer_pow and
1755 uinteger_pow functions so as to get full range of results.
1756 (integer_pow): New function.
1757 (uinteger_pow): New function.
1758
d56d46f5
VP
17592008-01-30 Vladimir Prus <vladimir@codesourcery.com>
1760
1761 Use vector for varobj_list_children interface.
1762 * gdb/varobj.c (varobj_list_children): Return vector
1763 of varobjs.
1764 * gdb/varobj.h (varobj_list_children): Adjust
1765 prototype.
1766 (varobj_p): Declare. Declare vector thereof.
1767 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
1768 for varobj_list_children change.
1769 * Makefile.in (varobj_h): Update dependencies.
1770
1300a2f4
TJB
17712008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1772
1773 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
1774 TYPE_CODE_DECFLOAT arguments.
1775 (ppc64_sysv_abi_push_dummy_call) Likewise.
1776 (get_decimal_float_return_value): New function.
1777 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
1778 values by calling get_decimal_float_return_value.
1779 (ppc64_sysv_abi_return_value): Likewise.
1780
95ef687d
NR
17812008-01-30 Nick Roberts <nickrob@snap.net.nz>
1782
1783 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
1784 for preprocessor macro information. Formatting changes.
1785
2d717e4f
DJ
17862008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1787
1788 * remote.c (struct remote_state): Add cached_wait_status.
1789 (remote_exec_file): New variable.
1790 (PACKET_vAttach, PACKET_vRun): New constants.
1791 (extended_remote_restart): Do not query for status.
1792 (struct start_remote_args): New.
1793 (remote_start_remote): Take it as a second argument. Check
1794 whether the target is running. Issue an error for non-running
1795 non-extended targets. Cache the wait status. Set inferior_ptid
1796 here.
1797 (remote_open_1): Prompt to disconnect non-running targets. Make
1798 sure the target is marked running. Do not set inferior_ptid here.
1799 Update call to remote_start_remote. Do not call remote_check_symbols
1800 if the target is not running.
1801 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
1802 argument. Handle a non-running target.
1803 (remote_detach): Use it.
1804 (extended_remote_detach): New.
1805 (remote_disconnect): Fix typo. Use remoute_mourn_1.
1806 (extended_remote_attach_1, extended_remote_attach)
1807 (extended_async_remote_attach): New.
1808 (remote_vcont_resume): Remove unused variable.
1809 (remote_wait, remote_async_wait): Use any cached wait status.
1810 (putpkt_binary, getpkt): Clear any cached wait status.
1811 (extended_remoute_mourn_1): New.
1812 (extended_remote_mourn): Use it.
1813 (extended_async_remote_mourn, extended_remote_run): New.
1814 (extended_remote_create_inferior_1): New.
1815 (extended_remote_create_inferior): Use it.
1816 (extended_remote_async_create_inferior): Likewise.
1817 (remote_xfer_partial): Skip for non-executing targets.
1818 (init_extended_remote_ops): Set to_detach and to_attach.
1819 (init_extended_async_remote_ops): Likewise. Use
1820 extended_async_remote_mourn.
1821 (_initialize_remote): Register vAttach, vRun, and
1822 set remote exec-file.
1823 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
1824
e85a822c
DJ
18252008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1826
1827 * Makefile.in (symfile.o): Update.
1828 * NEWS: Mention exec tracing support.
1829 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
1830 exec events.
1831 * infcmd.c (kill_if_already_running, detach_command)
1832 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
1833 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
1834 (follow_exec): Do not check may_follow_exec. Do not mourn and push
1835 targets. Apply the sysroot path to the loaded executable. Use
1836 no_shared_libraries.
1837 * linux-nat.c (linux_child_follow_fork): Print fork following
1838 messages if verbose.
1839 (kill_wait_callback): Kill again before waiting a second time.
1840 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
1841 no_shared_libraries.
1842
9db13498
JB
18432008-01-29 Joel Brobecker <brobecker@adacore.com>
1844
1845 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
1846
b4d5ed91
JB
18472008-01-29 Joel Brobecker <brobecker@adacore.com>
1848
1849 * nto-tdep.h: Remove #include "defs.h".
1850 * nto-tdep.c: Add #include "defs.h".
1851 * Makefile.in (nto_tdep_h): Update dependencies.
1852 (nto-tdep.o): Likewise.
1853
107313f7 18542008-01-29 Joel Brobecker <brobecker@adacore.com>
ae123ec6
JB
1855
1856 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
1857 and use it.
1858 (proceed, start_remote): Update call to wait_for_inferior.
1859 * inferior.h (wait_for_inferior): Update declaration.
1860 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
1861 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
1862 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
1863 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
1864
3f4178d6
DJ
18652008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
1866
1867 * varobj (adjust_value_for_child_access): Added checking for
1868 returned value from gdb_value_ind.
1869 (c_describe_child): Likewise.
1870 (cplus_describe_child): Fixed a typo.
1871
5eeba8d4
JB
18722008-01-29 Jim Blandy <jimb@red-bean.com>
1873
1874 * MAINTAINERS: Update my info.
1875
a5606eee
VP
18762008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1877
1878 Use multiple locations for hardware watchpoints.
1879 This eliminates the need to traverse value chain, doing
1880 various checks, in three different places.
1881
1882 * breakpoint.h (struct bp_location): New fields
1883 lengths and watchpoint_type.
1884 (struct breakpoint): Remove the val_chain field.
1885 * breakpoint.c (is_hardware_watchpoint): New.
1886 (free_valchain): Remove.
1887 (update_watchpoint): New.
1888 (insert_bp_location): For hardware watchpoint, just
1889 directly insert it.
1890 (insert_breakpoints): Call update_watchpoint_locations
1891 on all watchpoints. If we have failed to insert
1892 any location of a hardware watchpoint, remove all inserted
1893 locations.
1894 (remove_breakpoint): For hardware watchpoints, directly
1895 remove location.
1896 (watchpoints_triggered): Iterate over locations.
1897 (bpstat_stop_status): Use only first location of
1898 a resource watchpoint.
1899 (delete_breakpoint): Don't call free_valchain.
1900 (print_one_breakpoint): Don't print all
1901 locations for watchpoints.
1902 (breakpoint_re_set_one): Use update_watchpoint for
1903 watchpoints.
1904
0b3de036
VP
19052008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1906
1907 Don't reset watchpoint block on solib load.
1908
1909 * breakpoint.c (insert_bp_location): For watchpoints,
1910 recompute condition.
1911 (breakpoint_re_set_one): Instead of recomputing value
1912 and condition for watchpoints, just reset value and
1913 let insert_breakpoints/insert_bp_location recompute it.
1914 Don't do anything about disabled watchpoint.
1915
c3940723
PM
19162008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
1917
1918 * valarith.c (value_binop): Handle unsigned integer
1919 division by zero.
1920
83845630
KB
19212008-01-28 Kevin Buettner <kevinb@redhat.com>
1922
1923 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
1924 instruction pattern that appears frequently in position
1925 independent code. Fix bug in code which looks for "fmov" and
1926 backtracks if no "fmov" is found.
1927
9ce5d3bb
DE
19282008-01-28 Doug Evans <dje@google.com>
1929
1930 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
1931 Reformat comments to 80 columns.
1932 Move local var def closer to only use.
9ce5d3bb 1933
c78d192c
DJ
19342008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
1935
1936 * fork-child.c (SHELL_FILE): Remove #ifndef.
1937 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
1938
e11481da
PM
19392008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
1940
1941 * i386-tdep.c (i386_skip_noop): New function.
1942 (i386_analyze_prologue): Call i386_skip_noop function.
1943
244e85c8
MS
19442008-01-24 Michael Snyder <msnyder@specifix.com>
1945
1946 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
1947 * win32-nat.c (win32_xfer_partial): Ditto.
1948 * target.c (default_xfer_partial): Minor whitespace adjustment.
1949
dd6be234
PA
19502008-01-24 Pedro Alves <pedro@codesourcery.com>
1951
1952 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
1953 strip bit 1 even if pc doesn't point to thumb code.
1954
9fa2223d
DJ
19552008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
1956
1957 * remote.c (remote_wait): Handle SIGINT between packets.
1958 (remote_async_wait): Likewise.
1959
93815fbf
VP
19602008-01-23 Vladimir Prus <vladimir@codesourcery.com>
1961 Chris Demetriou <cgd@google.com>
1962
1963 * thread.c (add_thread_silent): Renamed
1964 from add_thread.
1965 (print_thread_events): New variable definition.
1966 (show_print_thread_events): New function.
1967 (_initialize_thread): Add "set print thread-events" and
1968 "show print thread-events" commands.
1969 (add_thread): Announce new thread.
1970 * gdbthread.h (add_thread_silent): Declare.
1971 (print_thread_events): New variable declaration.
1972 * inf-ttrace.c (inf_ttrace_wait): Don't
1973 inform about new thread, as add_thread is always
1974 called too, and will take care of that.
1975 * infrun.c (handle_inferior_event): Likewise.
1976 * procfs.c (procfs_wait): Likewise.
1977 * remote.c (remote_currthread): Likewise.
1978 * sol-thread.c (sol_thread_wait): Likewise.
1979 * win32-nat.c (get_win32_debug_event): Likewise.
1980 * linux-thread-db.c (attach_thread): Likewise.
1981 Remove the verbose parameter.
1982 (check_event): Make detach_thread be verbose
1983 only if print_thread_events is set.
1984 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
1985 about new thread. This is called only from
1986 linux-thread-db.c:attach_thread, which will take care.
1987 Remove the verbose parameter.
1988 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
1989
b4d7c9a6
NR
19902008-01-23 Nick Roberts <nickrob@snap.net.nz>
1991
1992 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
1993
60c46647
VP
19942008-01-22 Vladimir Prus <vladimir@codesourcery.com>
1995
1996 * breakpoint.c (break_command_really): New parameter
1997 ignore_count.
1998 (break_command_1): Pass 0 as
1999 ignore_count to break_command_really.
2000 (gdb_breakpoint): Pass ignore_count to
2001 break_command_really.
2002
e84605cd
KB
20032008-01-21 Kevin Buettner <kevinb@redhat.com>
2004
2005 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
2006 sigcontext struct via pointer.
2007 (struct sigframe comment): Update to show new field `psc'.
2008
9d9cd7ac
VP
20092008-01-21 Vladimir Prus <vladimir@codesourcery.com>
2010
2011 * infrun.c (handle_inferior_event): If
2012 we failed to remove breakpoints, error,
2013 don't try to increment PC by hand.
2014
af5ca30d
NH
20152008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
2016
2017 Add NetBSD/hppa target and host support.
2018
2019 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
2020 (hppabsd_gregset): Move to ...
2021 (hppabsd_regset_from_core_section): Rename
2022 hppaobsd_regset_from_core_section and move to ...
2023 (hppabsd_find_global_pointer): Update comment.
2024 (hppabsd_init_abi): Make global. Do not register
2025 hppabsd_regset_from_core_section.
2026 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
2027 move to ...
2028 (_initialize_hppabsd_tdep): Move to ...
2029 * hppaobsd-tdep.c: ... here. New file.
2030 * hppnbsd-tdep.c: New file.
2031 * hppnbsd-nat.c: New file.
2032 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
2033 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2034 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
2035 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
2036 * configure.host (hppa*-*-netbsd*): New entry.
2037 * configure.tgt (hppa*-*-netbsd*): New entry.
2038 (hppa*-*-openbsd*): Update.
2039 * NEWS (New native configuration): Mention NetBSD/hppa.
2040 (New targets): Mention NetBSD/hppa.
2041
32c9a795
MD
20422008-01-18 Markus Deuling <deuling@de.ibm.com>
2043
2044 * gdbarch.sh (function_list): Add new property bits_big_endian to
2045 gdbarch structure.
2046 * gdbarch.{c,h}: Regenerate.
2047
2048 * value.c (struct value): Replace BITS_BIG_ENDIAN by
2049 gdbarch_bits_big_endian (comment).
2050 (unpack_field_as_long, modify_field): Likewise.
2051 * value.h: Likewise (comment).
2052 * valops.c (value_slice): Likewise.
2053 * valarith.c (value_subscript, value_bit_index): Likewise.
2054 * gdbtypes.h (field): Likewise (comment).
2055 * eval.c (evaluate_subexp_standard): Likewise.
2056 * dwarf2read.c (dwarf2_add_field): Likewise.
2057 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
2058 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
2059
2060 * defs.h (BITS_BIG_ENDIAN): Remove.
2061
1e5e79d0
MD
20622008-01-18 Markus Deuling <deuling@de.ibm.com>
2063
2064 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
2065 function calls.
2066 * m2-exp.y (yylex): Likewise.
2067 * objc-exp.y (yylex): Likewise.
2068
2069 * defs.h (DEPRECATED_STREQN): Remove.
2070
fabda5a7
L
20712008-01-17 H.J. Lu <hjl.tools@gmail.com>
2072
2073 * MAINTAINERS: Update my email address.
2074
92726479
JB
20752008-01-17 Jim Blandy <jimb@codesourcery.com>
2076
2077 * README: Mention gdbserver/README.
2078
ef80d18e
PM
20792008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
2080
2081 * valarith.c (value_binop): Handle BINOP_INTDIV
2082 for unsigned and signed integers.
2083
1de90795
UW
20842008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
2085
2086 * s390-tdep.c (s390_gdbarch_init): Set default long double
2087 type to 128-bit IEEE quad.
2088
c70bd6f3
JB
20892008-01-17 Joel Brobecker <brobecker@adacore.com>
2090
2091 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
2092
ba759613
MK
20932008-01-16 Mark Kettenis <kettenis@gnu.org>
2094
77d49ac6
MK
2095 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
2096
ba759613
MK
2097 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
2098 * value.c: All callers changed.
2099
7ecb6532
MD
21002008-01-16 Markus Deuling <deuling@de.ibm.com>
2101
2102 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
2103 DEPRECATED_STREQ by its expression.
2104 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
2105 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
2106 (scan_xcoff_symtab): Likewise.
2107 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
2108 * f-lang.c (find_common_for_function): Likewise.
2109 * objc-exp.y (parse_number): Likewise.
2110
2111 * defs.h (DEPRECATED_STREQ): Remove.
2112
d15cf01c
MD
21132008-01-16 Markus Deuling <deuling@de.ibm.com>
2114
2115 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
2116 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
2117 get_frame_arch to get at the current_architecture. Update AM33_MODE
2118 call.
2119 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
2120 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
2121 architecture.
2122 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
2123
f8028488
MD
21242008-01-16 Markus Deuling <deuling@de.ibm.com>
2125
2126 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
2127 parameter.
2128 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
2129
2130 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
2131 current_gdbarch by gdbarch. Update caller.
2132
2133 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
2134 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
2135 the current architecture. Update calls of
2136 amd64_native_gregset_supplies_p.
2137 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
2138 (amd64bsd_store_inferior_registers): Likewise.
2139
e101270f
MD
21402008-01-16 Markus Deuling <deuling@de.ibm.com>
2141
2142 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
2143 Replace current_gdbarch by gdbarch. Update caller.
2144
063e58ba
MD
21452008-01-16 Markus Deuling <deuling@de.ibm.com>
2146
2147 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
2148 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
2149 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
2150 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
2151 (stabsect_build_psymtabs): Fix indentation.
2152
662fb31b
MS
21532008-01-15 Michael Snyder <msnyder@specifix.com>
2154
2155 * corelow.c (core_xfer_partial): Comment, cut/paste error.
2156
c1766e7d
PM
21572008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
2158
2159 * win32-nat.c (win32_create_inferior): Restore code calling
2160 CloseHandle on ProcessInformation structure.
2161
5ed10e6e
NH
21622008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
2163
2164 * configure.ac: Check for void * as 3 argument of ptrace.
2165 * configure: regenerate.
2166
be8626e0
MD
21672008-01-11 Markus Deuling <deuling@de.ibm.com>
2168
2169 * alpha-tdep.c (alpha_heuristic_proc_start)
2170 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
2171 current_gdbarch by gdbarch.
2172
2173 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
2174 current architecture by frame_info. Update alpha_heuristic_proc_start
2175 call.
2176
2177 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
2178 get_frame_arch to get at the current architecture by frame_info. Update
2179 alpha_sigtramp_register_address call.
2180
2181 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
2182 current_gdbarch by gdbarch. Update caller.
2183 (convert_to_extended, convert_from_extended): Add endianess parameter
2184 for comparison. Update caller.
2185 (arm_extract_return_value, arm_store_return_value): Use
2186 get_regcache_arch to get at the current architecture.
2187
2188 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
2189 current_gdbarch by gdbarch. Update caller.
2190 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
2191 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
2192
2193 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
2194 gdbarch as parameter. Update caller.
2195 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
2196 current_gdbarch by gdbarch. Update caller.
2197
2198 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
2199 update caller. Replace current_gdbarch by gdbarch.
2200
2201 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
2202 the current architecture. Replace current_gdbarch by gdbarch.
2203 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2204 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
2205 expression. Add gdbarch as parameter and replace current_gdbarch with
2206 it. Update caller.
2207 (M6811_TDEP): Remove.
2208 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
2209 architecture.
2210 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
2211 current_gdbarch by gdbarch. Update caller.
2212
2213 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
2214 update caller.
2215 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
2216 by gdbarch.
2217
2218 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
2219 caller. Relace current_gdbarch by gdbarch.
2220 (altivec_register_p, spe_register_p): Likewise.
2221 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
2222 parameter.
2223 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
2224 altivec_register_p and spe_register_p.
2225
2226 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
2227 caller. Replace current_gdbarch by gdbarch.
2228 (score_analyze_prologue): use get_frame_arch to get at the current
2229 architecture.
2230
2231 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
2232 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
2233 current_gdbarch by gdbarch. Update caller.
2234 (sparc_frame_cache): Use get_frame_arch to get at the current
2235 architecture.
2236 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
2237 sparc_analyze_prologue.
2238
2239 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
2240 parameter.
2241
ed49a04f
MD
22422008-01-11 Markus Deuling <deuling@de.ibm.com>
2243
2244 * exec.c: #include "arch-utils.h"
2245 (print_section_info): Use gdbarch_from_bfd to get at the
2246 current architecture. Replace current_gdbarch. Fix indention. Replace
2247 deprecated_print_address_numeric by paddress.
2248 * Makefile.in (exec.o) Add dependency to arch-utils.h.
2249
2250 * valprint.c (val_print_string): Replace
2251 deprecated_print_address_numeric.
2252 * tracepoint.c (trace_mention, scope_info): Likewise.
2253 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
2254 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
2255 (maintenance_check_symtabs): Likewise.
2256 * symfile.c (list_overlays_command): Likewise.
2257 * stack.c (frame_info, print_block_frame_labels): Likewise.
2258 * printcmd.c (print_address, print_address_demangle)
2259 (address_info): Likewise.
2260 * corefile.c (memory_error): Likewise.
2261 * infcmd.c (jump_command): Likewise.
2262 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
2263 (mention, delete_breakpoint): Likewise.
2264 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
2265 * dwarf2read.c (dump_die): Likewise.
2266 * ada-valprint.c (ada_val_print_1): Likewise.
2267 * f-valprint.c (f_val_print): Likewise.
2268 * linux-fork.c (info_forks_command): Likewise.
2269 * m32r-com.c (m32r_load_section, m32r_load)
2270 (m32r_upload_command): Likewise.
2271
2272 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
2273
6093d2eb
MD
22742008-01-11 Markus Deuling <deuling@de.ibm.com>
2275
2276 * gdbarch.sh (skip_prologue): Add gdbarch
2277 as parameter.
2278 * gdbarch.{c,h}: Regenerate.
2279
2280 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
2281 * amd64-tdep.c (amd64_skip_prologue): Likewise.
2282 * avr-tdep.c (avr_skip_prologue): Likewise.
2283 * cris-tdep.c (cris_skip_prologue): Likewise.
2284 * frv-tdep.c (frv_skip_prologue): Likewise.
2285 * h8300-tdep.c (h8300_skip_prologue): Likewise.
2286 * hppa-tdep.c (hppa_skip_prologue): Likewise.
2287 * i386-tdep.c (i386_skip_prologue): Likewise.
2288 * ia64-tdep.c (ia64_skip_prologue): Likewise.
2289 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
2290 * m32r-tdep.c (m32r_skip_prologue): Likewise.
2291 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
2292 * m68k-tdep.c (m68k_skip_prologue): Likewise.
2293 * m88k-tdep.c (m88k_skip_prologue): Likewise.
2294 * mep-tdep.c (mep_skip_prologue): Likewise.
2295 * mips-tdep.c (mips_skip_prologue): Likewise.
2296 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
2297 * mt-tdep.c (mt_skip_prologue): Likewise.
2298 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
2299 * score-tdep.c (score_skip_prologue): Likewise.
2300 * sh64-tdep.c (sh64_skip_prologue): Likewise.
2301 * sh-tdep.c (sh_skip_prologue): Likewise.
2302 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
2303 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
2304 * spu-tdep.c (spu_skip_prologue): Likewise.
2305 * v850-tdep.c (v850_skip_prologue): Likewise.
2306 * vax-tdep.c (vax_skip_prologue): Likewise.
2307 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
2308 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
2309
2310 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
2311 current_gdbarch by gdbarch.
2312 * m32c-tdep.c (m32c_skip_prologue): Likewise.
2313 * s390-tdep.c (s390_skip_prologue): Likewise.
2314
72f5cf0e
DE
23152008-01-10 Doug Evans <dje@google.com>
2316
2317 * defs.h (struct continuation_arg): Fix typo in comment.
2318 * target.c (target_translate_tls_address): Fix comment spelling error.
2319
689e4e2d
TJB
23202008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
2321
2322 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
2323 (DOUBLEST_SCAN_FORMAT): Likewise.
2324 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
2325 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
2326 * c-exp.y (parse_number): Likewise.
2327 * jv-exp.y (parse_number): Likewise.
2328 * objc-exp.y (parse_number): Likewise.
2329 * p-exp.y (parse_number): Likewise.
2330
ab0d6e0d
JB
23312008-01-09 Joel Brobecker <brobecker@adacore.com>
2332
2333 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
2334 (check_typedef): Likewise.
2335
0aea4bf3
LM
23362008-01-09 Luis Machado <luisgpm@br.ibm.com>
2337
2338 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
2339 seen_double_big_d, treat the new H, D, and DD modifiers as length
2340 modifiers.
2341
137033e9
JB
23422008-01-08 Joel Brobecker <brobecker@adacore.com>
2343
2344 * dwarf2read.c (read_enumeration_type): Add comment.
2345
dda297ec
TJB
23462008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2347
2348 * config.in: Regenerate.
2349
a93c0eb6
JB
23502008-01-08 Joel Brobecker <brobecker@adacore.com>
2351
2352 * ada-lang.c (ada_convert_actual): Renames convert_actual.
2353 Make non-static.
2354 (ada_convert_actuals): Delete.
2355 * ada-lang.h (ada_convert_actual): Add declaration.
2356 (ada_convert_actuals): Remove declaration.
2357 * infcall.c: #include "ada-lang.h".
2358 (value_arg_coerce): Add new parameter sp. Update function
2359 documetnation. Add handling of Ada function call parameters.
2360 * Makefile.in (infcall.o): Update dependencies.
2361
a84a8a0d
JB
23622008-01-08 Paul Hilfinger <hilfinger@adacore.com>
2363
2364 * ada-lang.c (ensure_lval): Fix value lval kind.
2365 (convert_actual): Add handling for arguments passed by reference.
2366
d7f98cce
DE
23672008-01-08 Doug Evans <dje@google.com>
2368
2369 * dbxread.c (read_dbx_symtab): Fix indentation.
2370
4ef30785
TJB
23712008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
2372
2373 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
2374 (valarith.o): Depend on dfp.h.
2375 (valops.o): Likewise.
2376 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
2377 (set_decnumber_context): New function.
2378 (decimal_check_errors): Likewise.
2379 (decimal_from_number): Likewise.
2380 (decimal_to_number): Likewise.
2381 (decimal_from_string): Use set_decnumber_context and
2382 decimal_check_errors.
2383 (decimal_from_integral): New function.
2384 (decimal_from_floating): Likewise.
2385 (decimal_to_double): Likewise.
2386 (promote_decimal): Likewise.
2387 (decimal_binop): Likewise.
2388 (decimal_is_zero): Likewise.
2389 (decimal_compare): Likewise.
2390 (decimal_convert): Likewise.
2391 * dfp.h (decimal_from_integral): New prototype.
2392 (decimal_from_floating): Likewise.
2393 (decimal_to_double): Likewise.
2394 (decimal_binop): Likewise.
2395 (decimal_is_zero): Likewise.
2396 (decimal_compare): Likewise.
2397 (decimal_convert): Likewise.
2398 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
2399 call to value_from_decfloat.
2400 * valarith.c: Include dfp.h.
2401 (value_args_as_decimal): New function.
2402 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
2403 (value_logical_not): Likewise.
2404 (value_equal): Likewise.
2405 (value_less): Likewise.
2406 (value_pos): Likewise.
2407 (value_neg): Formatting fix.
2408 * valops.c: Include dfp.h.
2409 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
2410 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
2411 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
2412 (value_from_decfloat): Remove expect_type argument.
2413 * value.h (value_from_decfloat): Update prototype.
2414
a7c02bc8
VP
24152008-01-07 Vladimir Prus <vladimir@codesourcery.com>
2416
2417 Ignore change in name of dynamic linker during
2418 execution on Solaris. This also unbreaks pending breakpoints.
2419
2420 * solist.h (struct target_so_ops): New field same.
2421 * solib-svr4.c (svr4_same): New.
2422 (_initialize_svr4_solib): Register svr4_same.
2423 * solib.c (update_solib_list): Use ops->same, if available.
2424
610dd7f9
CF
24252008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
2426
2427 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
2428 when using MS-DOS paths.
2429
7a404eba
PA
24302008-01-05 Pedro Alves <pedro@codesourcery.com>
2431
2432 * NEWS: Mention --pid and --core command line behaviour changes.
2433
a4d9b460
PA
24342008-01-05 Pedro Alves <pedro@codesourcery.com>
2435
2436 * main.c (captured_main): Remove 'count' varible and the
2437 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
2438 --pid options were issued simultaneously. If an explicit pid
2439 option was passed, don't fallback to core file. Detect extra
2440 arguments better in the presence of explicit pid or core
2441 arguments.
2442
0c281816
JB
24432008-01-05 Joel Brobecker <brobecker@adacore.com>
2444
2445 * ada-lang.c (ada_which_variant_applies): Correctly compute
2446 the value of the discriminant when the variant record is packed.
2447
babe1480
JB
24482008-01-04 Joel Brobecker <brobecker@adacore.com>
2449
2450 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
2451 that are used to differentiate homonyms.
2452
727e3d2e
JB
24532008-01-04 Jerome Guitton <guitton@adacore.com>
2454
2455 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
2456 when the type is an anonymous pointer type.
2457 (ada_check_typedef): Avoid a seg fault when the type is null.
2458 * ada-typeprint.c (print_array_type): Add support for pointer
2459 to packed arrays.
2460
bb28a9dc
JB
24612008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
2462
2463 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
2464
6799def4
JB
24652008-01-04 Joel Brobecker <brobecker@adacore.com>
2466
2467 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
2468 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
2469
d3353bbd
JB
24702008-01-04 Joel Brobecker <brobecker@adacore.com>
2471
2472 * ada-exp.y (chop_separator): New function.
2473 (write_selectors): Rewrite to re-use chop_separator.
2474 (ada_nget_field_index, get_symbol_field_type): New functions.
2475 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
2476 expressions.
2477
82cf6c60
TJB
24782008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
2479
2480 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
2481 of SYMBOL_VALUE when working with function symbols.
2482
b3dbf008
JB
24832008-01-03 Joel Brobecker <brobecker@adacore.com>
2484
2485 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
2486 expressions. These expressions do not need to be rewriten.
2487
02eb380e
JB
24882008-01-03 Joel Brobecker <brobecker@adacore.com>
2489
2490 * dwarf2read.c (read_enumeration_type): Flag type as stub if
2491 the given die is a declaration.
2492
abb68b3e
JB
24932008-01-03 Joel Brobecker <brobecker@adacore.com>
2494
2495 * ada-lang.c (ada_array_bound_from_type): Make non-static.
2496 Handle properly the case when the index type is an enumerated type.
2497 Do not return the subtype of the bounds type, just return the
2498 bounds type directly - this is not needed and is more consistent
2499 with what we do for arrays when no XA parallel type exists.
2500
f192137b
JB
25012008-01-03 Joel Brobecker <brobecker@adacore.com>
2502
2503 * ada-lang.c (static_unwrap_type): Add forward declaration.
2504 (template_to_static_fixed_type): Fields of dynamic types sometimes
2505 also need to be unwrapped. Take this into account.
2506 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
2507 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
2508 * ada-typeprint.c (ada_print_type): Get the typename from
2509 the original type, not the base type.
2510
1ed6ede0
JB
25112008-01-03 Jerome Guitton <guitton@adacore.com>
2512
2513 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
2514 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
2515 Update calls to ada_to_fixed_type.
2516 (ada_template_to_fixed_record_type_1): Ditto, but without looking
2517 for the tag.
2518 (ada_to_fixed_type): Add check_tag parameter; do not look for
2519 tag if null. When looking for a tag, use a fixed record type.
2520 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
2521 * ada-valprint.c (printable_val_type, ada_value_print): Update
2522 calls to ada_to_fixed_type.
2523
542a88d0
LM
25242008-01-03 Luis Machado <luisgpm@br.ibm.com>
2525
2526 * doublest.c (convert_floatformat_to_doublest): Call
2527 floatformat_to_doublest instead of floatformat_to_double and use
2528 DOUBLEST variables.
2529 (convert_doublest_to_floatformat): Call floatformat_from_doublest
2530 instead of floatformat_from_double and use DOUBLEST variables.
2531
dc2bbab2
NH
25322008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
2533
2534 * MAINTAINERS (Write After Approval): Add self.
2535
8b60591b
JB
25362008-01-03 Joel Brobecker <brobecker@adacore.com>
2537
2538 * symfile.c (set_initial_language): Make non-static.
2539 * symfile.h (set_initial_language): Add declaration.
2540 * language.c: #include "symfile.h".
2541 (set_language): Call set_initial_language if the frame language
2542 could not be determined.
2543
ceef53c1
JB
25442008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
2545
2546 * eval.c (evaluate_subexp_for_address): Provide frame address to
2547 locate_var_value only if it will be needed.
2548
ef29ce1a
JK
25492008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2550
2551 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
2552
0a07e705
JB
25532008-01-02 Joel Brobecker <brobecker@adacore.com>
2554
2555 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
2556 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
2557 This is needed to make sure that any other treatment applied
2558 to the resulting value does not fail for spurious reason,
2559 such as trying to take the address of this value.
2560
f58b38bf
JB
25612008-01-02 Joel Brobecker <brobecker@adacore.com>
2562
2563 * ada-lang.c (ada_value_equal): Dereference reference types when
2564 comparing arrays.
2565
9b254dd1
DJ
25662008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
2567
2568 Updated copyright notices for most files.
2569
33605d39
CF
25702008-01-01 Christopher Faylor <me+gdb@cgf.cx>
2571
2572 * win32-nat.c (psapi_module_handle): Remove static.
2573 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
2574 return first module found if base_address is zero. Don't initialize
2575 psapi function pointers here. Convert to cygwin paths when
2576 appropriate.
2577 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
2578 executable name. Use get_module_name when that fails or when
2579 !__CYGWIN__.
2580 (_initialize_psapi): New function. Initialize psapi stuff before it is
2581 needed or issue a warning if it is not found. Move psapi_module_handle
2582 here.
2583
29480c32
JB
25842008-01-01 Joel Brobecker <brobecker@adacore.com>
2585
2586 * ada-lang.c (ada_remove_trailing_digits): New function.
2587 (ada_remove_po_subprogram_suffix): New function.
2588 (ada_decode): Improve. Move the description of the algorithm
2589 directly inside the code, instead of in the function global
2590 description.
2591
969a1360
JB
25922008-01-01 Joel Brobecker <brobecker@adacore.com>
2593
2594 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
2595 and always print the dereferenced value.
2596
b7789565
JB
25972008-01-01 Joel Brobecker <brobecker@adacore.com>
2598
2599 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
2600 of the case where the first argument is a reference.
2601 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
2602
73fb9985
JB
26032008-01-01 Joel Brobecker <brobecker@adacore.com>
2604
2605 Implement support for Ada interface types.
2606
2607 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
2608 (ada_is_ignored_field): Ignore fields that are a dispatch table
2609 of a tagged type.
2610
636265b6
JB
26112008-01-01 Joel Brobecker <brobecker@adacore.com>
2612
2613 * top.c (print_gdb_version): Update copyright year.
2614
9d200a2e 26152008-01-01 Joel Brobecker <brobecker@adacore.com>
b7589f7d 2616
9d200a2e
JB
2617 * ChangeLog-2007: New ChangeLog rotation.
2618 * ChangeLog: Reset for 2008.
2619 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
2620 ChangeLog-2007.
b7589f7d 2621
9d200a2e 2622For older changes see ChangeLog-2007.
c906108c
SS
2623\f
2624Local Variables:
2625mode: change-log
2626left-margin: 8
2627fill-column: 74
2628version-control: never
57da7796 2629coding: utf-8
c906108c 2630End:
This page took 1.00804 seconds and 4 git commands to generate.