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