* mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
2
3 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
4 -target-download and -target-select via CLI, so that
5 the quoting rules are the same as they were (unfortunately)
6 in all prior gdb releases.
7 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
8 (mi_cmd_target_download, mi_cmd_target_select): Remove.
9 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
10 (mi_cmd_target_download, mi_cmd_target_select): Remove.
11 (mi_cmd_execute): Set current_token even for commands
12 routed via CLI.
13
14 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
15
16 * alphafbsd-tdep.c: Update for unwinder changes.
17 * alpha-linux-tdep.c: Likewise.
18 * alphanbsd-tdep.c: Likewise.
19 * alphaobsd-tdep.c: Likewise.
20 * avr-tdep.c: Likewise.
21 * cris-tdep.c: Likewise.
22 * frv-linux-tdep.c: Likewise.
23 * frv-tdep.c: Likewise.
24 * h8300-tdep.c: Likewise.
25 * hppa-linux-tdep.c: Likewise.
26 * iq2000-tdep.c: Likewise.
27 * m32c-tdep.c: Likewise.
28 * m32r-linux-tdep.c: Likewise.
29 * m32r-tdep.c: Likewise.
30 * m68hc11-tdep.c: Likewise.
31 * mep-tdep.c: Likewise.
32 * mn10300-tdep.c: Likewise.
33 * mt-tdep.c: Likewise.
34 * score-tdep.c: Likewise.
35 * sh64-tdep.c: Likewise.
36 * sh-tdep.c: Likewise.
37 * sparc64fbsd-tdep.c: Likewise.
38 * sparc64nbsd-tdep.c: Likewise.
39 * sparc64obsd-tdep.c: Likewise.
40 * v850-tdep.c: Likewise.
41 * vaxobsd-tdep.c: Likewise.
42 * vax-tdep.c: Likewise.
43 * xstormy16-tdep.c: Likewise.
44
45 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
46
47 * mi/mi-main.c (enum captured_mi_execute_command_actions)
48 (captured_mi_execute_command_args): Remove.
49 (captured_mi_execute_command): Cast the closure to mi_parse
50 pointer, not to captured_mi_execute_command_args, and don't
51 set the action field thereof.
52 (mi_execute_command): Pass struct mi_parse, not
53 captured_mi_execute_command_args to captured_mi_execute_command.
54 (mi_execute_command): Remove (dead) code for suppressing
55 printing prompt.
56
57 2008-06-28 Pedro Alves <pedro@codesourcery.com>
58
59 * linux-nat.c (enum sigchld_state): New.
60 (linux_nat_async_events_state): Renamed from
61 linux_nat_async_events_enabled.
62 (linux_nat_event_pipe_push, my_waitpid): Adjust.
63 (sigchld_default_action): New.
64 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
65 unconditionally.
66 (linux_nat_create_inferior): Set events state to sigchld_default
67 state.
68 (linux_nat_resume): Adjust.
69 (linux_nat_wait): Call linux_nat_async_events unconditionally.
70 (sigchld_handler): Adjust.
71 (linux_nat_async_mask): Don't set SIGCHLD actions here.
72 (get_pending_events): Adjust.
73 (linux_nat_async_events): Rewrite to handle enum sigchld_state
74 instead of a boolean.
75 (linux_nat_async): Adjust.
76 (_initialize_linux_nat): Capture default SIGCHLD action into
77 sigchld_default_action.
78
79 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
80
81 * breakpoint.c (moribund_locations): New.
82 (bpstat_stop_status): Process moribund locations.
83 (update_global_location_list): Add removed
84 locations to moribund_locations.
85 (breakpoint_retire_moribund): New.
86 * breakpoint.h (struct bp_location): New field
87 events_till_retirement.
88 (breakpoint_retire_moribund): Declare.
89 * thread.c (thread_count): New.
90 * infrun.c (handle_inferior_event): Call
91 breakpoint_retire_moribund.
92 * gdbthread.h (thread_count): Declare.
93
94 2008-06-27 Joseph Myers <joseph@codesourcery.com>
95
96 * dfp.c (decimal_convert): Call match_endianness before and after
97 conversion.
98
99 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
100
101 * remote.c (remote_insert_breakpoint): Ensure that if Z0
102 unsupported and we fall back to memory_insert_breakpoint, we
103 use the unmodified requested address.
104
105 2008-06-27 Joel Brobecker <brobecker@adacore.com>
106
107 * dwarf2read.c (read_attribute_value): Issue a complaint when
108 adjusting size attribute values of 0xffffffff as zero.
109
110 2008-06-27 Joseph Myers <joseph@codesourcery.com>
111
112 * i386-tdep.c (i386_16_byte_align_p): New.
113 (i386_push_dummy_call): Determine stack space required for
114 arguments going forwards allowing for 16-byte alignment, then push
115 arguments going forwards.
116
117 2008-06-27 Pedro Alves <pedro@codesourcery.com>
118
119 * infrun.c (start_remote): Don't clear thread list here.
120 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
121 list here.
122 * remote.c (record_currthread): Upgrade the main thread and its
123 entry in the thread list if this is the first time we hear about
124 threads.
125 (remote_thread_alive): Consider magic_null_ptid or a ptid without
126 a tid member always alive.
127 (remote_find_new_threads): Don't update the main thread here.
128 (remote_start_remote): Clear thread list here. Always add the
129 main thread.
130 (extended_remote_attach_1): Add the main thread here.
131 (extended_remote_mourn_1): Re-add the main thread here.
132 (extended_remote_create_inferior_1): Add a main thread.
133
134 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
135
136 2008-06-27 Pedro Alves <pedro@codesourcery.com>
137
138 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
139
140 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
141 globals.
142 (general_thread, continue_thread): Change type to ptid_t.
143 (record_currthread): Take a ptid_t parameter instead of an
144 integer.
145 (MAGIC_NULL_PID): Delete.
146 (set_thread): Take a ptid_t parameter and adjust.
147 (set_general_thread, set_continue_thread): New.
148 (remote_thread_alive, remote_newthread_step)
149 (remote_current_thread, remote_find_new_threads)
150 (remote_threads_info, remote_start_remote, remote_vcont_resume)
151 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
152 (threadalive_test, remote_pid_to_str)
153 (remote_get_thread_local_address): Adjust.
154 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
155 and any_thread_ptid.
156
157 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
158
159 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
160 * configure: Regenerated.
161
162 2008-06-26 Joel Brobecker <brobecker@adacore.com>
163
164 * dwarf2read.c (read_attribute_value): Treat size attribute
165 values of 0xffffffff as if the attribute value was zero.
166
167 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
168
169 * linux-nat.c: Add description of overall logic.
170
171 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
172
173 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
174 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
175 all dependencies on $(gdb_stdint_h).
176 (distclean): Do not delete gdb_stdint.h.
177 * acinclude.m4: Do not use stdint.m4.
178 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
179 uintptr_t, and gdb_stdint.h.
180 * defs.h: Include <stdint.h>.
181 * gdb_thread_db.h: Assume stdint.h is already included.
182 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
183 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
184 include gdb_stdint.h.
185 * configure, config.in: Regenerate.
186
187 2008-06-26 Joseph Myers <joseph@codesourcery.com>
188
189 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
190 decimal floating-point values in GPRs for soft-float.
191 (do_ppc_sysv_return_value): Handle returning decimal
192 floating-point values in GPRs for soft-float.
193
194 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
195
196 * target.c (target_read_until_error): New.
197 * target.h (target_read_until_error): Declare.
198 * mi/mi-main.c (mi_cmd_data_read_memory): Use
199 target_read_until_error.
200
201 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
202
203 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
204 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
205 after the DECFLOAT detection to fix a memory leak. Remove the
206 redundant NUM initialization. Protect the DECFLOAT detection memory
207 access before the P block. Restore the P memory content for the
208 DECFLOAT detection.
209
210 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
211
212 Kill the return value for all MI command functions.
213 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
214 (mi_cmd_argv_ftype): Change return type to void.
215
216 * mi/mi-main.c: Adjust all function that implement
217 MI commands to return nothing.
218 (struct captured_mi_execute_command_actions):
219 Remove the rc field.
220 (mi_cmd_execute): Return nothing.
221 (mi_execute_async_cli_command): Return nothing.
222 (mi_cmd_exec_interrupt): Don't print ^done here.
223 (mi_cmd_target_select): Don't print ^connected here.
224 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
225 Special-case -target-select and output ^connected, not ^done.
226
227 * mi/mi-cmd-break.c: Adjust.
228 * mi/mi-cmd-disas.c: Adjust.
229 * mi/mi-cmd-env.c: Adjust.
230 * mi/mi-cmd-file.c: Adjust.
231 * mi/mi-cmd-stack.c: Adjust.
232 * mi/mi-cmd-target.c: Adjust.
233 * mi/mi-cmd-var.c: Adjust.
234 * mi/mi-interp.c: Adjust.
235 * mi/mi-symbol-cmds.c: Adjust.
236
237 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
238
239 Emit ^running via observer.
240 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
241 ^running here.
242 (mi_on_resume): Print ^running if not previously output.
243 * mi/mi-main.c (running_result_record_printed): New.
244 (captured_mi_execute_command): Reset
245 running_result_record_printed. Use running_result_record_printed
246 to decide if we should skip ^done.
247 (mi_execute_async_cli_command): Don't print ^running here.
248 * mi/mi-main.h (current_token, running_result_record_printed):
249 Declare.
250
251 2008-06-24 Michael Snyder <msnyder@specifix.com>
252
253 * infrun.c (_initialize_infrun): White space and typo fix.
254
255 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
256
257 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
258 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
259 when first loading DLL with "dll" command.
260
261 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
262
263 * gnu-nat.c (proc_string): Use capital T for "Thread".
264
265 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
266
267 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
268
269 2008-06-18 Joel Brobecker <brobecker@adacore.com>
270
271 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
272 the target cannot run.
273
274 2008-06-18 Joel Brobecker <brobecker@adacore.com>
275
276 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
277 we're attaching to a running process.
278
279 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
280
281 * win32-nat.c (handle_load_dll): Give dll name and load address
282 if debug_events is on.
283 (handle_unload_dll): Likewise.
284
285 2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
286
287 Don't suppress *running when doing finish.
288 * infcall.c (call_function_by_hand): Set both
289 suppress_resume_observer and suppress_stop_observer.
290 * infcmd.c (suppress_run_stop_observers): Split into...
291 (suppress_resume_observer, suppress_stop_observer): ...those.
292 (finish_command_continuation): Clear suppress_stop_observer.
293 (finish_command): Set suppress_stop_observer.
294 * inferior.h (suppress_run_stop_observers): Split into...
295 (suppress_resume_observer, suppress_stop_observer): ...those.
296 * infrun.c (normal_stop): Check for suppress_stop_observer.
297 * thread.c (set_running): Check for suppress_resume_observer.
298
299 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
300 Pierre Muller <muller@ics.u-strasbg.fr>
301
302 * gdbarch.sh (gdbarch_skip_main_prologue): New.
303 * gdbarch.h, gdbarch.c: Regenerate.
304 * i386-tdep.h (i386_skip_main_prologue): Declare.
305 * i386-tdep.c (i386_skip_main_prologue): New.
306 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
307 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
308 * symtab.c (find_function_start_sal): When pc points at the "main"
309 function, call gdbarch_skip_main_prologue.
310
311 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
312
313 * value.c (value_primitive_field): Fetch lazy register values.
314
315 2008-06-11 Pedro Alves <pedro@codesourcery.com>
316
317 * NEWS: Mention support removal of undocumented S AA p PID stop
318 reply packet.
319
320 * remote.c (remote_wait): Remove undocumented S AA p PID support.
321
322 2008-06-10 Stan Shebs <stan@codesourcery.com>
323
324 * MAINTAINERS: Update my affiliation and address.
325
326 2008-06-10 Andreas Schwab <schwab@suse.de>
327
328 * top.c (print_gdb_version): Don't print final newline.
329
330 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
331
332 Implement *running.
333 * Makefile.in: Update dependencies.
334 * gdbthread.h (struct thread_info): New field
335 running_.
336 (set_running, is_running): New.
337 * thread.c (set_running, is_running): New.
338 * inferior.h (suppress_normal_stop_observer): Rename to...
339 (suppress_run_stop_observers): ..this.
340 * infcmd.c (suppress_normal_stop_observer): Rename to...
341 (suppress_run_stop_observers): ..this.
342 (finish_command_continuation, finish_command): Adjust.
343 * infcall.c (call_function_by_hand): Adjust.
344 * infrun.c (normal_stop): Call set_running.
345 * target.c (target_resume): New. Call set_running.
346 * target.h (target_resume): Convert from macro to
347 a function.
348
349 * mi/mi-interp.c (mi_on_resume): New.
350 (mi_interpreter_init): Register mi_on_resume.
351
352 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
353
354 Use observers to report stop events in MI.
355 * mi/mi-interp.c (mi_on_normal_stop): New.
356 (mi_interpreter_init): Register mi_on_normal_stop.
357 (mi_interpreter_exec_continuation): Remove.
358 (mi_cmd_interpreter_exec): Don't register the above.
359 * mi/mi-main.c (captured_mi_execute_command): Don't care
360 about sync_execution.
361 (mi_execute_async_cli_command): Don't install continuation. Don't
362 print *stopped.
363 (mi_exec_async_cli_cmd_continuation): Remove.
364
365 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
366
367 Suppress normal stop observer when it's problematic.
368 * inferior.h (suppress_normal_stop_observer): New.
369 * infcall.c (call_function_by_hand): Disable stop events when
370 doing function calls.
371 * infmcd.c (suppress_normal_stop_observer): New.
372 (finish_command_continuation): Call normal_stop observer
373 explicitly.
374 (finish_command): Disable stop events inside proceed.
375 * infrun.c (normal_stop): Don't call normal stop observer if
376 suppressed of if multi-step is in progress.
377
378 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
379
380 Remove stale code.
381 * infrun.c (finish_command): Don't pass cleanup
382 to continuation.
383 (finish_command_continuation): Don't grab cleanup from
384 the passed data, as we don't use, and cannot, use it anyway.
385
386 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
387
388 Introduce common cleanup for restoring integers.
389 * defs.h (make_cleanup_restore_integer): New declaration.
390 (struct cleanup): New field free_arg.
391 (make_my_cleanup_2): New.
392 * utils.c (restore_integer_closure, restore_integer)
393 (make_cleanup_restore_integer): New.
394 (make_my_cleanup): Initialize the free_arg field and
395 renamed to make_my_cleanup_2.
396 (do_my_cleanups): Call free_arg.
397 (discard_cleanups): Call free_arg.
398 * breakpoint.c (restore_always_inserted_mode): Remove.
399 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
400
401 2008-06-09 Doug Evans <dje@google.com>
402
403 * remote.c (remote_wait): Include beginning of malformed packet
404 in error output.
405
406 2008-06-09 Tom Tromey <tromey@redhat.com>
407
408 * completer.c (complete_line): Don't special-case
409 expression_completer.
410 (expression_completer): Only pass last word to
411 location_completer.
412 * c-exp.y (yylex): Check 'token', not 'operator'.
413
414 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
415
416 * configure.ac (build_warnings): Add -Wno-format for mingw.
417 * configure: Regenerated.
418
419 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
420
421 * NEWS: Make indentation consistent. Move exec tracing entry out
422 of remote packet list.
423
424 2008-06-06 Tom Tromey <tromey@redhat.com>
425
426 * value.h (evaluate_subexpression_type, extract_field_op):
427 Declare.
428 * printcmd.c (_initialize_printcmd): Use expression_completer for
429 'p', 'inspect', 'call'.
430 * parser-defs.h (parse_field_expression): Declare.
431 * parse.c: Include exceptions.h.
432 (in_parse_field, expout_last_struct): New globals.
433 (mark_struct_expression): New function.
434 (prefixify_expression): Return int.
435 (prefixify_subexp): Return int. Use expout_last_struct.
436 (parse_exp_1): Update.
437 (parse_exp_in_context): Add 'out_subexp' argument. Handle
438 in_parse_field.
439 (parse_field_expression): New function.
440 * expression.h (parse_field_expression): Declare.
441 (in_parse_field): Likewise.
442 * eval.c (evaluate_subexpression_type): New function.
443 (extract_field_op): Likewise.
444 * completer.h (expression_completer): Declare.
445 * completer.c (expression_completer): New function.
446 (count_struct_fields, add_struct_fields): New functions.
447 * c-exp.y (yyparse): Redefine.
448 (COMPLETE): New token.
449 (exp): New productions.
450 (saw_name_at_eof, last_was_structop): New globals.
451 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
452 (c_parse): New function.
453 * breakpoint.c (_initialize_breakpoint): Use expression_completer
454 for watch, awatch, and rwatch.
455 * Makefile.in (parse.o): Depend on exceptions_h.
456
457 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
458
459 PR gdb/1147
460 * gdb/valopts.c (find_overload_match): Handle references
461 to pointers.
462
463 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
464
465 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
466 account the bitsize of the 'from' operand.
467
468 2008-06-06 Pedro Alves <pedro@codesourcery.com>
469
470 * annotate.h (annotate_thread_changed): Declare.
471
472 2008-06-06 Nick Roberts <nickrob@snap.net.nz>
473
474 * annotate.c (annotate_thread_changed): New function.
475 * thread.c (thread_command) : Use it.
476 * infrun.c (normal_stop): Use it.
477
478 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
479 Nathan Sidwell <nathan@codesourcery.com>
480 Joseph Myers <joseph@codesourcery.com>
481
482 * acinclude.m4: Include ../config/acx.m4.
483 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
484 * configure, config.in: Regenerate.
485 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
486 address.
487 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
488
489 2008-06-05 Pedro Alves <pedro@codesourcery.com>
490
491 Replace 'target async' by 'maintenance set remote-async' and
492 'target remote' combination.
493
494 * remote.c (remote_async_wait): Merge into remote_wait, and
495 remove.
496 (remote_async_permitted, remote_async_permitted_set): New
497 variables.
498 (set_maintenance_remote_async_permitted)
499 (show_maintenance_remote_async_permitted): New functions.
500 (remote_async_ops, extended_async_remote_ops): Delete.
501 (remote_async_open, extended_remote_async_open): Delete.
502 (remote_open_1): Drop async_p parameter. Update callers. Replace
503 async_p with remote_async_permitted checks.
504 (extended_async_remote_attach): Delete.
505 (remote_resume, remote_async_resume): Merge and leave remote_resume.
506 (remote_async_terminal_inferior): Rename to...
507 (remote_terminal_inferior): ... this, and add
508 remote_async_termitted check.
509 (remote_async_terminal_ours): Rename to...
510 (remote_terminal_ours): ... this, and add remote_async_termitted
511 check.
512 (remote_wait, remote_async_wait): Merge and leave remote_wait
513 only.
514 (remote_kill, remote_async_kill): Merge and leave remote_kill
515 only.
516 (remote_async_mourn, extended_async_remote_mourn): Delete.
517 (extended_remote_create_inferior_1): Drop async_p parameter.
518 Update callers. Always use extended_remote_ops.
519 (extended_remote_async_create_inferior): Delete.
520 (remote_return_zero): Delete.
521 (init_remote_ops): Register remote_can_async_p, remote_async,
522 remote_async_mask, remote_terminal_inferior and
523 remote_terminal_ours.
524 (remote_can_async_p, remote_is_async_p): Check for
525 remote_async_permitted.
526 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
527 (set_remote_cmd): Don't add async and extended-async targets.
528 (_initialize_remote): Add set/show remote-async maintenance
529 commands.
530
531 2008-06-05 Pedro Alves <pedro@codesourcery.com>
532
533 * remote.c (kill_kludge): Delete.
534 (remote_wait, remote_async_wait): Don't set it.
535 (remote_kill, remote_async_kill): Don't do anything with it.
536
537 2008-06-05 Pedro Alves <pedro@codesourcery.com>
538
539 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
540
541 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
542
543 * bcache.c (bcache_data): Call deprecated_bcache_added function.
544 (deprecated_bcache_added): New function name. Body of function
545 bcache_data is used here with the addition of 'added' argument.
546 * bcache.h (deprecated_bcache_added): New function.
547 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
548 work from add_psymbol_to_list - initialises partial symbol and stashes
549 it in objfile's cache.
550 (append_psymbol_to_list): New helper function, takes other part of
551 work from add_psymbol_to_list - adds partial symbol to the given list.
552 (add_psymbol_to_list): Call helper functions instead of doing work
553 here. If adding to global list, do not duplicate partial symbols in the
554 partial symtab.
555
556 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
557
558 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
559 'exception caught|thrown' message.
560
561 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
562
563 * Makefile.in: Update dependencies.
564 * dwarf2expr.c: New include "gdb_assert.h".
565 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
566 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
567 (execute_stack_op): Error out on too large RECURSION_DEPTH.
568 Increase/decrease RECURSION_DEPTH around the function.
569
570 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
571
572 * remote.c (get_offsets): Handle a single segment.
573 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
574 than segments.
575
576 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
577
578 * solib-svr4.c (struct lm_info): Add lm_addr.
579 (main_lm_addr): New.
580 (svr4_default_sos): Set lm_addr.
581 (svr4_current_sos): Set lm_addr and main_lm_addr.
582 (svr4_fetch_objfile_link_map): Rewrite.
583 (svr4_clear_solib): Clear main_lm_addr.
584
585 2008-06-03 Michael Snyder <msnyder@redhat.com>
586 Joseph Myers <joseph@codesourcery.com>
587
588 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
589 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
590
591 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
592
593 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
594
595 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
596
597 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
598
599 2008-06-01 Joel Brobecker <brobecker@adacore.com>
600
601 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
602 treat pointers in data space as function descriptors if the
603 target address is also in the data space.
604
605 2008-05-30 Joel Brobecker <brobecker@adacore.com>
606
607 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
608 the trad-frame register value for the SP register.
609
610 2008-05-29 Mark Kettenis <kettenis@gnu.org>
611
612 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
613
614 2008-05-28 Joel Brobecker <brobecker@adacore.com>
615
616 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
617 that identifies function descriptors outside of the .opd section.
618
619 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
620
621 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
622 temporary catchpoints. In MI add missing fields 'reason', 'disp',
623 'bkptno'.
624 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
625 catchpoints.
626 (handle_gnu_v3_exceptions): Use tempflag.
627
628 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
629
630 Refactor varobj_update interface.
631 * varobj.c (varobj_update): Report changes as vector. Also
632 return not just a list of varobj, but a list of special structures
633 that tell what exactly has changed.
634 * varobj.h (enum varobj_update_error): Rename to
635 varobj_scope_status.
636 (struct varobj_update_result_t): New.
637 (varobj_update): Adjust prototype.
638 * mi/mi-cmd-var.c: Adjust for changes.
639
640 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
641
642 * varobj.c (varobj_update): Fix comment typo.
643 Fix indentation.
644
645 2008-05-26 Joel Brobecker <brobecker@adacore.com>
646
647 Set the symtab field of symbols read from ECOFF debugging entries.
648 * mdebugread.c (add_symbol): Add new parameter symtab.
649 (parse_symbol): Update calls to add_symbol throughout.
650
651 2008-05-27 Andreas Schwab <schwab@suse.de>
652
653 * symtab.h (enum address_class): Remove LOC_REGPARM and
654 LOC_COMPUTED_ARG.
655 (struct symbol): Add is_argument.
656 (SYMBOL_IS_ARGUMENT): Define.
657
658 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
659 * buildsym.c (finish_block): Likewise.
660 * stack.c (print_frame_args, print_block_frame_locals)
661 (print_frame_arg_vars): Likewise.
662 * symtab.c (lookup_block_symbol): Likewise.
663 * tracepoint.c (add_local_symbols): Likewise.
664 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
665
666 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
667 * dwarf2read.c (new_symbol): Likewise.
668 * mdebugread.c (parse_symbol): Likewise.
669 * stabsread.c (define_symbol): Likewise.
670
671 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
672 and LOC_COMPUTED_ARG.
673 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
674 * ax-gdb.c (gen_var_ref): Likewise.
675 * eval.c (evaluate_subexp_for_address): Likewise.
676 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
677 * m2-exp.y (yylex): Likewise.
678 * printcmd.c (address_info): Likewise.
679 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
680 * tracepoint.c (collect_symbol, scope_info): Likewise.
681
682 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
683
684 * gdbarch.sh: Added new gdbarch struct
685 core_regset_sections.
686 * gdbarch.c: Refreshed.
687 * gdbarch.h: Refreshed.
688 * regset.h (core_regset_section): Declared.
689 * linux-nat.c (linux_nat_do_thread_registers): Added
690 support for the new gdbarch struct core_regset_sections.
691 * utils.c (host_address_to_string): New function.
692 * defs.h (host_address_to_string): New prototype.
693 * i386-linux-tdep.c (i386_regset_rections): New register
694 sections list for i386.
695 (i386_linux_init_abi): Initialized new gdbarch struct
696 core_regset_sections.
697 * Makefile.in: Updated to reflect dependency changes.
698 * ppc-linux-tdep.c (ppc_regset_sections): Register
699 sections list for ppc.
700 (ppc_linux_init_abi): Initialized new gdbarch struct
701 core_regset_sections
702
703 2008-05-24 Andreas Schwab <schwab@suse.de>
704
705 * linespec.c (decode_objc): Save current language around call to
706 get_selected_block.
707
708 2008-05-23 Joel Brobecker <brobecker@adacore.com>
709
710 * valprint.h (get_array_bounds): Renames get_array_low_bound.
711 * valprint.c (get_array_bounds): Renames get_array_low_bound.
712 Return the proper bound value if the array index type is an
713 enumerated type. Compute the high bound if requested.
714 (val_print_array_elements): Handle the case when the array
715 element has a null size.
716 * ada-valprint.c (print_optional_low_bound): Add handling
717 for empty arrays or arrays of zero-size elements.
718 (ada_val_print_array): New function, extracted out from
719 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
720 handle empty arrays and arrays of zero-size elements.
721 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
722 code by call to ada_val_print_array.
723 (ada_value_print): Remove handling of null array. The handling
724 was incomplete and is now better handled by ada_val_print_array.
725
726 2008-05-23 Markus Deuling <deuling@de.ibm.com>
727
728 * annotate.c (annotate_source, annotate_frame_begin): Replace
729 deprecated_print_address_numeric with paddress.
730 * cli/cli-cmds.c (list_command, edit_command): Likewise.
731 * tui/tui-stack.c (tui_make_status_line): Likewise.
732
733 * defs.h (deprecated_print_address_numeric): Remove.
734 * printcmd.c (deprecated_print_address_numeric): Remove.
735 * maint.c (maint_print_section_info): Fix comment.
736
737 2008-05-23 Markus Deuling <deuling@de.ibm.com>
738
739 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
740 print_binary_chars, print_char_chars): Add byte_order parameter and
741 replace gdbarch_byte_order.
742 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
743 expressions and remove them. Remove unused TWO_TO_FOURTH.
744 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
745 endianness. Update call to print_hex_chars.
746 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
747 print_binary_chars, print_char_chars): Add byte_order parameter.
748 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
749 get at the endianness. Update print_*_char calls to use byte_order.
750
751 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
752
753 * symtab.h (struct symbol): Make "aux_value" member a void pointer
754 instead of a union.
755 (SYMBOL_LOCATION_BATON): Update.
756
757 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
758
759 * symtab.h (enum address_class): Remove LOC_BASEREG and
760 LOC_BASEREG_ARG.
761 (struct symbol): Remove "basereg" member of "aux_value" union.
762 (SYMBOL_BASEREG): Remove.
763
764 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
765 or LOC_BASEREG_ARG.
766 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
767 (ada_add_block_symbols): Likewise.
768 * ax-gdb.c (gen_var_ref): Likewise.
769 * buildsym.c (finish_block): Likewise.
770 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
771 * m2-exp.y (yylex): Likewise.
772 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
773 * printcmd.c (address_info): Likewise.
774 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
775 (print_frame_arg_vars): Likewise.
776 * symmisc.c (print_symbol): Likewise.
777 * symtab.c (lookup_block_symbol): Likewise.
778 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
779 (scope_info): Likewise.
780
781 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
782
783 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
784
785 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
786 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
787 (ada_add_block_symbols): Likewise.
788 * ax-gdb.c (gen_var_ref): Likewise.
789 * buildsyms.c (finish_block): Likewise.
790 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
791 * m2-exp.y (yylex): Likewise.
792 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
793 * printcmd.c (address_info): Likewise.
794 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
795 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
796 * symtab.c (lookup_block_symbol): Likewise.
797 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
798 (scope_info): Likewise.
799
800 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
801
802 * symtab.h (enum address_class): Remove LOC_INDIRECT and
803 LOC_HP_THREAD_LOCAL_STATIC.
804
805 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
806 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
807 (read_var_value): Likewise.
808 * buildsym.c (finish_block): Likewise.
809 * objfiles.c (objfile_relocate): Likewise.
810 * printcmd.c (address_info): Likewise.
811 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
812 * tracepoint.c (scope_info): Likewise.
813
814 2008-05-21 Markus Deuling <deuling@de.ibm.com>
815 Maxim Grigoriev <maxim2405@gmail.com>
816
817 * xtensa-tdep.c (xtensa_read_register): Remove.
818 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
819 argument litbase to call0_frame_cache().
820 (call0_track_op, call0_analyze_prologue)
821 (call0_frame_cache): Use extra argument litbase.
822
823 2008-05-21 Joel Brobecker <brobecker@adacore.com>
824
825 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
826
827 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
828
829 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
830
831 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
832
833 * alpha-mdebug-tdep.c: Include "trad-frame.h".
834 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
835 struct trad_frame_saved_reg *.
836 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
837 trad_frame_alloc_saved_regs. Update accesses. Record previous
838 value of SP as being vfp.
839 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
840 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
841
842 2008-05-21 Markus Deuling <deuling@de.ibm.com>
843
844 * score-tdep.c (score_print_insn): Get the current endianess from
845 disassemble_info instead of gdbarch_byte_order.
846
847 2008-05-21 Pedro Alves <pedro@codesourcery.com>
848
849 * frame.c (get_prev_frame_1): Build frame id before setting
850 this_frame->prev_p, not after.
851
852 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
853
854 * annotate.c (annotate_new_thread): New function for new-thread
855 annotation.
856 * annotate.h: (annotate_new_thread): New extern.
857 * thread.c (add_thread_with_info): Use it.
858 * Makefile.in (thread.o): Add dependency on annotate.h.
859
860 2008-05-20 Joel Brobecker <brobecker@adacore.com>
861
862 * win32-nat.c (win32_wait): Block the control-c event while
863 waiting for a debug event.
864
865 2008-05-19 Pedro Alves <pedro@codesourcery.com>
866
867 * symtab.h (lookup_symbol_in_language): Update comment.
868 * symtab.c (lookup_symbol_aux_block): Update comment.
869 * ada-lang.c (ada_lookup_symbol_list): Update comment.
870
871 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
872
873 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
874 (lookup_symbol): Likewise.
875 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
876 (lookup_symbol): Likewise.
877 (search_symbols): Update.
878
879 * linespec.c (find_methods, collect_methods): Update.
880 (add_matching_methods, add_constructors): Update.
881 (decode_compound, decode_dollar, decode_variable): Update.
882 (lookup_prefix_sym): Update.
883
884 (symbol_found): Remove SYM_SYMTAB parameter.
885 Use SYMBOL_SYMTAB (sym) instead.
886
887 * gdbtypes.c (lookup_typename): Update.
888 (lookup_struct, lookup_union, lookup_enum): Update.
889 (lookup_template_type): Update.
890 (check_typedef): Update.
891 * language.c (lang_bool_type): Update.
892 * mdebugread.c (parse_procedure): Update.
893 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
894 * parse.c (write_dollar_variable): Update.
895 * printcmd.c (address_info): Update.
896 * source.c (select_source_symtab): Update.
897 * stack.c (print_frame_args, print_frame_arg_vars): Update.
898 * valops.c (find_function_in_inferior): Update.
899 (value_struct_elt_for_reference): Update.
900 * value.c (value_static_field, value_fn_field): Update.
901
902 * alpha-mdebug-tdep.c (find_proc_desc): Update.
903 * arm-tdep.c (arm_skip_prologue): Update.
904 * mt-tdep.c (mt_skip_prologue): Update.
905 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
906
907 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
908 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
909 (add_defn_to_vec): Likewise.
910 (ada_add_block_symbols): Likewise.
911 (lookup_cached_symbol, cache_symbol): Likewise.
912 (standard_lookup): Update.
913 (ada_lookup_symbol_list): Update.
914
915 * c-valprint.c (c_val_print): Update.
916 * cp-support.c (cp_lookup_rtti_type): Update.
917 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
918 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
919 * p-valprint.c (pascal_val_print): Update.
920 * scm-lang.c (scm_lookup_name): Update.
921
922 * c-exp.y: Update.
923 * f-exp.y: Update.
924 * jv-exp.y: Update.
925 * m2-exp.y: Update.
926 * objc-exp.y: Update.
927 * p-exp.y: Update.
928
929 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
930
931 * language.h (struct language_defn): Remove SYMTAB parameter from
932 la_lookup_symbol_nonlocal callback function pointer.
933
934 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
935 (ada_lookup_encoded_symbol): Likewise.
936 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
937 Always call fixup_symbol_section.
938 (ada_lookup_symbol): Remove SYMTAB parameter.
939 (ada_lookup_symbol_nonlocal): Likewise.
940 * ada-exp.y (write_object_renaming): Update.
941 (find_primitive_type): Likewise.
942
943 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
944 (cp_lookup_symbol_namespace): Likewise.
945 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
946 (lookup_symbol_file): Likewise.
947 (lookup_possible_namespace_symbol): Likewise.
948 (cp_lookup_symbol_nonlocal): Likewise.
949 (cp_lookup_symbol_namespace): Likewise.
950 (cp_lookup_nested_type): Update.
951
952 * scm-valprint.c (scm_inferior_print): Update.
953 * valops.c (value_maybe_namespace_elt): Update.
954
955 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
956 lookup_lib_global_symbol callback function pointer.
957 (solib_global_lookup): Remove SYMTAB parameter.
958 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
959 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
960
961 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
962 (lookup_symbol_static): Likewise.
963 (lookup_symbol_global): Likewise.
964 (lookup_symbol_aux_block): Likewise.
965 (lookup_global_symbol_from_objfile): Likewise.
966 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
967 (lookup_symbol_aux_local): Likewise.
968 (lookup_symbol_aux_block): Likewise.
969 (lookup_symbol_aux_symtabs): Likewise.
970 (lookup_symbol_aux_psymtabs): Likewise.
971 (lookup_global_symbol_from_objfile): Likewise.
972 (basic_lookup_symbol_nonlocal): Likewise.
973 (lookup_symbol_static): Likewise.
974 (lookup_symbol_global): Likewise.
975
976 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
977
978 2008-05-17 Pedro Alves <pedro@codesourcery.com>
979
980 * remote.c (init_extended_remote_ops): Fix typo.
981
982 2008-05-16 Pedro Alves <pedro@codesourcery.com>
983
984 * NEWS: Mention new DICOS x86 target configuration.
985
986 2008-05-16 Pedro Alves <pedro@codesourcery.com>
987 Ulrich Weigand <uweigand@de.ibm.com>
988
989 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
990 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
991
992 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
993 use it instead of ginfo->value.address. Look up minimal symbol by
994 address and name. Assume OBJFILE is non-NULL.
995 (fixup_symbol_section): Ensure we always have an objfile to look
996 into. Extract and pass to fixup_section the symbol's address that
997 will match the minimal symbol's address.
998 (fixup_psymbol_section): Likewise.
999
1000 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
1001 overlays and the addrmap returned the wrong section.
1002
1003 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
1004 calling fixup_symbol_section.
1005
1006 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1007
1008 * minsyms.c: Include "target.h".
1009 (find_solib_trampoline_target): Handle minimal symbols pointing
1010 to function descriptors as well.
1011 * Makefile.in (minsyms.o): Update dependencies.
1012
1013 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
1014 (ppc64_standard_linkage1): ... this. Fix optional instructions.
1015 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
1016 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
1017 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
1018 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
1019 (ppc64_standard_linkage_target): Rename to ...
1020 (ppc64_standard_linkage1_target): ... this.
1021 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
1022 (ppc64_skip_trampoline_code): Support three variants of standard
1023 linkage stubs. Call find_solib_trampoline_target to handle
1024 glink stubs.
1025
1026 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1027
1028 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
1029 ppc64_sysv_abi_adjust_breakpoint_address.
1030 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
1031 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
1032
1033 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1034
1035 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
1036 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
1037 of ppc_linux_skip_trampoline_code.
1038
1039 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1040
1041 * gdbarch.sh: Delete dwarf_reg_to_regnum.
1042 * gdbarch.c, gdbarch.h: Regenerated.
1043 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
1044 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
1045 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
1046
1047 2008-05-15 Pedro Alves <pedro@codesourcery.com>
1048
1049 * linux-nat.c (trap_ptid): Delete.
1050 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
1051 Adjust.
1052 * linux-thread-db.c (thread_db_wait): Adjust.
1053
1054 2008-05-15 Joel Brobecker <brobecker@adacore.com>
1055
1056 * linespec.c (decode_line_1): Fix a couple of comments.
1057
1058 2008-05-15 Alan Modra <amodra@bigpond.net.au>
1059
1060 * dbxread.c: Formatting.
1061 (INTERNALIZE_SYMBOL): Init n_other.
1062 (set_namestring): Take pointer to nlist arg rather than struct
1063 copy. Update all callers.
1064
1065 2008-05-15 Andreas Schwab <schwab@suse.de>
1066
1067 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
1068 (dwarf2read.o): Add $(addrmap_h).
1069
1070 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1071
1072 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
1073 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
1074 to handle ppc32 PLT entries.
1075 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
1076 only on ppc64.
1077
1078 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
1079
1080 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
1081 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
1082 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
1083 (lookup_minimal_symbol_by_pc_section): Use
1084 lookup_minimal_symbol_by_pc_section_1.
1085 (lookup_solib_trampoline_symbol_by_pc): Likewise.
1086
1087 2008-05-13 Joel Brobecker <brobecker@adacore.com>
1088
1089 * findcmd.c: Add #include "gdb_stdint.h".
1090 * Makefile.in (findcmd.o): Update dependencies.
1091
1092 2008-05-11 David S. Miller <davem@davemloft.net>
1093
1094 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
1095 long double size override, Linux does use 128-bit now.
1096
1097 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
1098 (sparc_linux_write_pc): New function.
1099 (sparc32_linux_init_abi): Register it.
1100 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
1101 (sparc64_linux_write_pc): New function.
1102 (sparc64_linux_init_abi): Register it.
1103
1104 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
1105 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
1106
1107 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1108
1109 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
1110 and info.tdep_info before calling gdbarch_init_osabi.
1111
1112 2008-05-09 Joel Brobecker <brobecker@adacore.com>
1113
1114 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
1115 the type of the right hand side of the assignment to the type
1116 of the left hand side if the left hand side is a convenience
1117 variable.
1118
1119 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
1120
1121 * NEWS: Mention gdbserver bi-arch capability.
1122
1123 2008-05-09 Doug Evans <dje@google.com>
1124
1125 New "find" command.
1126 * NEWS: Document find command and qSearch:memory packet.
1127 * Makefile.in (SFILES): Add findcmd.c.
1128 (COMMON_OBJS): Add findcmd.o.
1129 (findcmd.o): New rule.
1130 * findcmd.c: New file.
1131 * target.h (target_ops): New member to_search_memory.
1132 (simple_search_memory): Declare.
1133 (target_search_memory): Declare.
1134 * target.c (simple_search_memory): New fn.
1135 (target_search_memory): New fn.
1136 * remote.c (PACKET_qSearch_memory): New packet kind.
1137 (remote_search_memory): New fn.
1138 (init_remote_ops): Init to_search_memory.
1139 (init_extended_remote_ops): Ditto.
1140 (_initialize_remote): Add qSearch:memory packet config command.
1141
1142 2008-05-09 Eli Zaretskii <eliz@gnu.org>
1143
1144 * thread.c (_initialize_thread): Don't use commas and periods in
1145 first line of doc string of "set/show print thread-events".
1146
1147 2008-05-08 Joel Brobecker <brobecker@adacore.com>
1148
1149 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
1150 Update for unwinder changes.
1151
1152 2008-05-08 Joel Brobecker <brobecker@adacore.com>
1153
1154 * frame.c (get_frame_base_address, get_frame_locals_address)
1155 (get_frame_args_address): Pass the correct frame when calling
1156 frame_base_find_by_frame.
1157
1158 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
1159
1160 * remote.c (extended_remote_attach_1): Call target_find_description.
1161
1162 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
1163
1164 * remote.c (extended_remote_create_inferior_1): Clean up
1165 before marking the target running.
1166
1167 2008-05-08 Joel Brobecker <brobecker@adacore.com>
1168
1169 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
1170 changes.
1171
1172 2008-05-07 Joel Brobecker <brobecker@adacore.com>
1173
1174 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
1175 sparc64-sol2-tdep.c: Update for unwinder changes.
1176
1177 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
1178
1179 * cp-support.c (mangled_name_to_comp): Initialize storage.
1180 (unqualified_name_from_comp): Likewise.
1181
1182 2008-05-07 Jie Zhang <jie.zhang@analog.com>
1183
1184 * remote.c (remote_insert_breakpoint): Call get_remote_state
1185 after gdbarch_breakpoint_from_pc is called.
1186 (remote_insert_hw_breakpoint): Likewise.
1187
1188 2008-05-06 Joel Brobecker <brobecker@adacore.com>
1189
1190 * valprint.c (val_print): Add new language parameter and use it
1191 instead of using the current_language. Update calls to val_print
1192 throughout.
1193 (common_val_print): Add new langauge parameter and pass it to
1194 val_print.
1195 * value.h (struct language_defn): Add opaque declaration.
1196 (val_print, common_val_print): Update declarations.
1197 * stack.c (print_frame_args): Update call to common_val_print
1198 using the appropriate language.
1199 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1200 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
1201 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
1202 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
1203 #include "language.h" if necessary.
1204 Update calls to val_print and common_val_print.
1205 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
1206 Update dependencies.
1207
1208 2008-05-06 Joel Brobecker <brobecker@adacore.com>
1209
1210 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
1211 pointing inside a non-executable section as function descriptors.
1212
1213 2008-05-06 Pedro Alves <pedro@codesourcery.com>
1214
1215 * inf-loop.c (inferior_event_handler): Run all continuations and
1216 print any language change before running the breakpoint commands.
1217
1218 2008-05-06 Joel Brobecker <brobecker@adacore.com>
1219
1220 * frame-unwind.c (frame_unwind_got_bytes): New function.
1221 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
1222 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
1223 for unwinder changes.
1224
1225 2008-05-05 Doug Evans <dje@google.com>
1226
1227 * NEWS: Mention new /m modifier for disassemble command.
1228 * cli/cli-cmds.c (print_disassembly): New function.
1229 (disassemble_current_function): New function
1230 (disassemble_command): Recognize /m modifier, print mixed
1231 source+assembly.
1232 (init_cli_cmds): Update disassemble help text.
1233
1234 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
1235
1236 * xtensa-tdep.c: Update for unwinder changes.
1237
1238 2008-05-05 Andreas Schwab <schwab@suse.de>
1239
1240 Update m68k port for unwinder changes.
1241 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
1242 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
1243 (m68k_frame_unwind): Use default_frame_sniffer.
1244 (m68k_frame_sniffer): Remove.
1245 (m68k_frame_base_address): Expect this_frame.
1246 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
1247 this_frame.
1248 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
1249 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
1250 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
1251 parameter instead of pc value.
1252 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
1253 Expect this_frame.
1254 (m68k_linux_sigtramp_frame_this_id)
1255 (m68k_linux_sigtramp_frame_prev_register)
1256 (m68k_linux_sigtramp_frame_sniffer): Update signature.
1257 (m68k_linux_sigtramp_frame_unwind): Use
1258 m68k_linux_sigtramp_frame_sniffer.
1259 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
1260
1261 * m68klinux-nat.c (store_register): Fix typo.
1262
1263 2008-05-05 Pedro Alves <pedro@codesourcery.com>
1264
1265 * infcmd.c (step_1): Put thread id on the stack to avoid possible
1266 NULL dereferencing.
1267
1268 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
1269
1270 * symfile.c (reread_symbols): Update objfile's entry point.
1271
1272 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
1273 Joel Brobecker <brobecker@adacore.com>
1274
1275 * ada-lang.c: Update throughout to use symbol_matches_domain
1276 instead of matching the symbol domain explictly.
1277 * dwarf2read.c (add_partial_symbol): Do not add new psym for
1278 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
1279 class as typedefs. See lookup_partial_symbol function.
1280 (new_symbol): Similar to add_partial_symbol, do not create
1281 symbol for the typedef. See lookup_block_symbol.
1282 * symtab.c (symbol_matches_domain): New function, takes care
1283 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
1284 (lookup_partial_symbol): Use symbol_matches_domain to see if the
1285 found psym domain matches the given domain.
1286 (lookup_block_symbol): Likewise.
1287
1288 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
1289
1290 * top.c (command_line_handler_continuation): Remove.
1291 (execute_command): Do not install the above.
1292
1293 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
1294
1295 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
1296 and catch all exceptions from it.
1297 * top.c (command_line_handler_continuation): Don't
1298 call bpstat_do_action here.
1299
1300 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
1301
1302 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
1303 (struct die_info): Remove type.
1304 (read_type_die, read_typedef, read_base_type, read_subrange_type)
1305 (read_structure_type, read_enumeration_type, read_array_type)
1306 (read_tag_pointer_type, read_tag_ptr_to_member_type)
1307 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
1308 (read_tag_string_type, read_subroutine_type, read_set_type)
1309 (read_unspecified_type): Delete prototypes. Remove check for
1310 already-loaded type. Return the new type.
1311 (set_die_type): Return the new type.
1312 (reset_die_and_siblings_types): Delete.
1313 (load_comp_unit, load_full_comp_unit): Set type_hash.
1314 (process_queue): Remove call to reset_die_and_siblings_types.
1315 (process_die): Do not read most types here. Use read_type_die
1316 for others.
1317 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
1318 (quirk_gcc_member_function_pointer): Return the new type.
1319 (process_structure_scope, process_enumeration_scope): Use
1320 get_die_type and read the DIE's type.
1321 (read_full_die): Do not initialize die->type.
1322 (tag_type_to_type): Use read_type_die.
1323 (read_type_die): Check for already defined types. Return the
1324 type.
1325 (determine_prefix): Use get_die_type.
1326 (set_die_type): Return the type.
1327 (get_die_type): Take a CU argument. Check for no type_hash.
1328
1329 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
1330
1331 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
1332 locals.
1333
1334 2008-05-04 Pedro Alves <pedro@codesourcery.com>
1335
1336 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
1337 and bp_longjmp_resume breakpoints.
1338 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
1339 meaningful.
1340 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
1341 breakpoints. Create bp_longjmp breakpoints as momentary
1342 breakpoints.
1343 (enable_longjmp_breakpoint): Delete.
1344 (set_longjmp_breakpoint): New.
1345 (disable_longjmp_breakpoint): Delete.
1346 (delete_longjmp_breakpoint): New.
1347 (set_longjmp_resume_breakpoint): Delete.
1348 (set_momentary_breakpoint_at_pc): New.
1349 (breakpoint_re_set_one): Don't delete bp_longjmp and
1350 bp_longjmp_resume breakpoints.
1351 (breakpoint_re_set): Don't create longjmp and longjmp-resume
1352 breakpoints.
1353
1354 * infrun.c (step_resume_breakpoint): Add comment.
1355 (struct execution_control_state): Delete handling_longjmp member.
1356 (init_execution_control_state). Don't clear handling_longjmp.
1357 (context_switch): Don't context switch handling_longjmp.
1358 (handle_inferior_event): If handling a bp_longjmp breakpoint,
1359 create a bp_longjmp_resume breakpoint, and set it as current
1360 step_resume_breakpoint, then step over the longjmp breakpoint. If
1361 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
1362 breakpoint, delete the longjmp-resume breakpoint, and stop
1363 stepping.
1364 (currently_stepping): Remove handling_longjmp from expression.
1365 (insert_step_resume_breakpoint_at_sal): Update comment.
1366 (insert_longjmp_resume_breakpoint): New.
1367
1368 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
1369 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
1370 declarations.
1371 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
1372 (set_longjmp_resume_breakpoint): Delete declaration.
1373
1374 * gdbthread.h (save_infrun_state): Remove handling_longjmp
1375 parameter.
1376 (load_infrun_state): Delete *handling_longjmp parameter.
1377 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
1378 Update body.
1379 (load_infrun_state): Delete *handling_longjmp parameter. Update
1380 body.
1381
1382 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
1383 (delete_longjmp_breakpoint_cleanup): New.
1384 (step_1): Call set_longjmp_breakpoint instead of
1385 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
1386 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
1387 (step_1_continuation): Pass thread id in the continuation args to
1388 step_once.
1389 (step_once): Add thread parameter. Pass thread id the the
1390 continuation.
1391
1392 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1393
1394 Set CU BASE_ADDRESS already from partial DIEs.
1395 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
1396 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
1397 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
1398 from these variables if it was still unset.
1399
1400 * Makefile.in: Update dependencies.
1401 * dwarf2read.c: Include "addrmap.h"
1402 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
1403 (dwarf2_ranges_read): New prototype.
1404 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
1405 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
1406 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
1407 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
1408 comment for it. Add the found ranges to RANGES_PST. New variable
1409 BASEADDR, initialize it the common way.
1410 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
1411 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
1412 HAS_RANGES_OFFSET for the later processing.
1413 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
1414 * symtab.c: Include "addrmap.h"
1415 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
1416 Move the psymtab locator into ...
1417 (find_pc_sect_psymtab_closer): ... a new function.
1418
1419 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
1420
1421 * arch-utils.c (gdbarch_update_p): Use default values for
1422 info.abfd and info.target_desc if they are NULL.
1423 (gdbarch_from_bfd): Remove assertion.
1424 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
1425 using the current target description.
1426 (gdbarch_info_fill): Do not use default values for info->abfd
1427 and info->target_desc.
1428
1429 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1430
1431 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
1432
1433 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
1434
1435 * inferior.h (read_pc_pid, write_pc_pid): Remove.
1436 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
1437
1438 * regcache.c (read_pc_pid): Remove, replace by ...
1439 (regcache_read_pc): ... this function.
1440 (write_pc_pid): Remove, replace by ...
1441 (regcache_write_pc): ... this function.
1442 (read_pc, write_pc): Update.
1443
1444 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
1445 write_pc_pid by regcache_read_pc and regcache_write_pc.
1446 (displaced_step_fixup): Likewise.
1447 (resume): Likewise. Use regcache arch instead of current_gdbarch.
1448 (prepare_to_proceed): Likewise.
1449 (proceed): Likewise.
1450 (adjust_pc_after_break): Likewise.
1451 (handle_inferior_event): Likewise.
1452
1453 * linux-nat.c (cancel_breakpoint): Likewise.
1454 * linux-thread-db.c (check_event): Likewise.
1455 * aix-thread.c (aix_thread_wait): Likewise.
1456 * tracepoint.c (trace_dump_command): Likewise.
1457
1458 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1459
1460 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
1461 SYMBOL_LOCATION_BATON.
1462
1463 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
1464
1465 * target.h (struct target_ops): New field to_auxv_parse.
1466 * auxv.c (default_auxv_parse): New, renamed from previous
1467 target_auxv_parse.
1468 (target_auxv_parse): Try to call target method. Fallback to
1469 default_auxv_parse if not found.
1470 * procfs.c (procfs_auxv_parse): New.
1471 (init_procfs_ops): On Solaris, in 64-bit mode, install
1472 procfs_auxv_parse.
1473
1474 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
1475
1476 * symfile.c (add_symbol_file_command): Use paddress rather than
1477 hex_string to print the address.
1478
1479 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
1480
1481 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
1482 return the null frame ID to terminate the backtrace.
1483
1484 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
1485
1486 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
1487 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
1488 (SIG_FRAME_PC_OFFSET): Likewise.
1489 (SIG_FRAME_LR_OFFSET): Likewise.
1490 (SIG_FRAME_FP_OFFSET): Likewise.
1491 (rs6000_push_dummy_call): Likewise.
1492 (rs6000_return_value): Likewise.
1493 (rs6000_convert_from_func_ptr_addr): Likewise.
1494 (branch_dest, rs6000_software_single_step): Likewise.
1495 (deal_with_atomic_sequence): Rename to ...
1496 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
1497 Do not call branch_dest; inline required parts of that function.
1498 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
1499 with SYMBOL_LINKAGE_NAME.
1500 (struct reg, regsize): Delete.
1501 (read_memory_addr): Delete; inline into callers.
1502 (rs6000_skip_prologue): Move after skip_prologue.
1503 (skip_prologue): Remove prototype.
1504 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
1505 initialization as if this variable were true. Do not install
1506 ppc64_sysv_abi_adjust_breakpoint_address.
1507
1508 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
1509 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
1510 and "breakpoint.h".
1511 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
1512 (SIG_FRAME_PC_OFFSET): Likewise.
1513 (SIG_FRAME_LR_OFFSET): Likewise.
1514 (SIG_FRAME_FP_OFFSET): Likewise.
1515 (rs6000_push_dummy_call): Likewise.
1516 (rs6000_return_value): Likewise.
1517 (rs6000_convert_from_func_ptr_addr): Likewise.
1518 (branch_dest, rs6000_software_single_step): Likewise. Replace
1519 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
1520 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
1521 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
1522 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
1523 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
1524
1525 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
1526 (AIX_TEXT_SEGMENT_BASE): New macro.
1527 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
1528 by AIX_TEXT_SEGMENT_BASE.
1529
1530 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
1531 (struct gdbarch_tdep): Remove text_segment_base member.
1532 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
1533 ppc64_sysv_abi_adjust_breakpoint_address.
1534
1535 * Makefile.in (rs6000-tdep.o): Update dependencies.
1536 (rs6000-aix-tdep.o): Likewise.
1537
1538 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
1539 Thiago Jung Bauermann <bauerman@br.ibm.com>
1540
1541 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
1542 * doublest.c (convert_typed_floating): Fix typo in comment.
1543 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1544 * frame-unwind.h (frame_sniffer_ftype): Likewise.
1545 * frame.c (frame_unwind_address_in_block): Likewise.
1546 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
1547 * symtab.h (struct symbol): Likewise.
1548 * tramp-frame.h (struct trad_frame_cache): Likewise.
1549 * value.c (allocate_repeat_value): Likewise.
1550
1551 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
1552
1553 * infrun.c (handle_inferior_event): Do not insert breakpoints at
1554 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
1555
1556 2008-05-03 Pedro Alves <pedro@codesourcery.com>
1557
1558 * parse.c (parse_exp_in_context): Don't override
1559 expression_context_pc if get_selected_block returned a valid
1560 block.
1561
1562 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
1563
1564 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
1565 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
1566 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
1567 Delete.
1568 * c-typeprint.c (c_type_print_base): Delete handling of template
1569 instantiations.
1570 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
1571 (METHOD_PTR_TO_VOFFSET): Delete.
1572 * defs.h (QUIT_FIXME): Delete.
1573 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
1574 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
1575 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
1576 ninstantiations, and instantiations.
1577 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
1578 (TYPE_FN_FIELD_INLINED): Delete.
1579 * srec.h (SREC_BINARY): Delete.
1580 * symtab.c (symbol_init_demangled_name): Delete.
1581 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
1582 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
1583 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
1584 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
1585 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
1586 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
1587 * target.h (enum thread_control_capabilities): Delete tc_switch.
1588 (target_can_switch_threads): Delete.
1589
1590 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
1591
1592 * Makefile.in (objfiles.o): Update.
1593 * exec.c (exec_set_section_address): Support p->addr != 0.
1594 * objfiles.c (objfile_relocate): Update exec_ops section
1595 addresses.
1596 * symfile.c (place_section): Move exec_set_section_address call...
1597 (default_symfile_offsets): ...to here.
1598
1599 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
1600
1601 * Makefile.in (ppc_linux_tdep_h): New macro.
1602 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
1603 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
1604 (powerpc_e500l_c): Likewise.
1605 (ppc-linux-nat.o): Update dependencies.
1606 (ppc-linux-tdep.o): Update dependencies.
1607 (rs6000-tdep.o): Update dependencies.
1608
1609 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
1610 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
1611 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
1612 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
1613 (tdesc_powerpc_e500): Remove.
1614
1615 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
1616 and "features/rs6000/powerpc-altivec64.c".
1617 (ppc_supply_reg, ppc_collect_reg): Make global.
1618 (variants): Use tdesc_powerpc_32 for "powerpc" and
1619 tdesc_powerpc_altivec64 for "powerpc64".
1620 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
1621
1622 * ppc-linux-tdep.h: New file.
1623
1624 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
1625 Include "features/rs6000/powerpc-32l.c".
1626 Include "features/rs6000/powerpc-altivec32l.c".
1627 Include "features/rs6000/powerpc-64l.c".
1628 Include "features/rs6000/powerpc-altivec64l.c".
1629 Include "features/rs6000/powerpc-e500l.c".
1630 (ppc_linux_supply_gregset): New function.
1631 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
1632 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
1633 (ppc64_linux_gregset): Likewise.
1634 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
1635 (ppc_linux_trap_reg_p): New function.
1636 (ppc_linux_write_pc): New function.
1637 (ppc_linux_core_read_description): New function.
1638 (ppc_linux_init_abi): Install ppc_linux_write_pc and
1639 ppc_linux_core_read_description. Install orig_r3 and trap
1640 registers if present in the target description.
1641 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
1642
1643 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
1644 (PT_ORIG_R3, PT_TRAP): Define if necessary.
1645 (ppc_register_u_addr): Handle orig_r3 and trap registers.
1646 (fetch_ppc_registers): Likewise.
1647 (store_ppc_registers): Likewise.
1648 (store_register): Likewise.
1649 (ppc_linux_read_description): Check whether AltiVec is supported.
1650 Check whether inferior is 32-bit or 64-bit. Return the appropriate
1651 Linux target description.
1652
1653 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
1654 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
1655 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
1656 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
1657 rs6000/powerpc-e500. Update -expedite variables accordingly.
1658
1659 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
1660 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
1661 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
1662 * features/rs6000/powerpc-e500.c: Regenerate.
1663 * features/rs6000/powerpc-32.c: Regenerate.
1664 * features/rs6000/powerpc-64.c: Regenerate.
1665
1666 * features/rs6000/power-linux.xml: New file.
1667 * features/rs6000/power64-linux.xml: New file.
1668 * features/rs6000/powerpc-32l.xml: New file.
1669 * features/rs6000/powerpc-altivec32l.xml: New file.
1670 * features/rs6000/powerpc-64l.xml: New file.
1671 * features/rs6000/powerpc-altivec64l.xml: New file.
1672 * features/rs6000/powerpc-e500l.xml: New file.
1673 * features/rs6000/powerpc-32l.c: New (generated) file.
1674 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
1675 * features/rs6000/powerpc-64l.c: New (generated) file.
1676 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
1677 * features/rs6000/powerpc-e500l.xml: New (generated) file.
1678
1679 * regformats/reg-ppc.dat: Remove.
1680 * regformats/reg-ppc64.dat: Remove.
1681 * regformats/rs6000/powerpc-32.dat: Remove.
1682 * regformats/rs6000/powerpc-64.dat: Remove.
1683 * regformats/rs6000/powerpc-e500.dat: Remove.
1684 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
1685 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
1686 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
1687 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
1688 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
1689
1690 2008-05-03 Pedro Alves <pedro@codesourcery.com>
1691
1692 * thread.c (delete_thread): Call observer_notify_thread_exit.
1693 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
1694 thread_exit observer.
1695 (mi_thread_exit): New.
1696
1697 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1698
1699 * breakpoint.c (create_exception_catchpoint): Remove prototype
1700 for already deleted function.
1701 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
1702 * frame.h (show_stack_frame): Remove prototype.
1703 * stack.c (show_stack_frame): Remove empty, unused function.
1704 * source.c (symtab_to_fullname, print_source_lines): Small fix
1705 in comment.
1706 * value.c (show_values): Update comments to mention "show values"
1707 command instead of "info history".
1708
1709 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
1710
1711 * linespec.c: Include "target.h".
1712 (minsym_found): Handle minimal symbols pointing to function
1713 descriptors. Use find_function_start_pc.
1714 * minsyms.c (msymbol_objfile): New function.
1715 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
1716 to function descriptors.
1717 * symtab.c (fixup_section): Only use minimal symbol at the same
1718 address to determine section of a symbol.
1719 (find_function_start_pc): New function.
1720 (find_function_start_sal): Use it.
1721 * symtab.h (msymbol_objfile): Add prototype.
1722 (find_function_start_pc): Likewise.
1723 * value.c: Include "objfiles.h".
1724 (value_fn_field): Handle minimal symbols pointing to function
1725 descriptors.
1726 * Makefile.in (linespec.o): Update dependencies.
1727 (value.o): Likewise.
1728
1729 2008-05-02 Joel Brobecker <brobecker@adacore.com>
1730
1731 * ada-lang.c (unwrap_value): Handle the case where the "F" field
1732 inside a PAD type is a bitfield.
1733
1734 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
1735
1736 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
1737 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
1738 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
1739 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
1740 Allow typedefs when checking for function pointer arguments.
1741 Right-align small structs passed on the stack.
1742 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
1743 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
1744 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
1745
1746 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
1747
1748 * Makefile.in (arm-tdep.o): Update.
1749 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
1750 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
1751 (arm_pc_is_thumb): Use mapping symbols.
1752 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
1753 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
1754 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
1755 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
1756 * gdbarch.sh: Add record_special_symbol.
1757 * gdbarch.c, gdbarch.h: Regenerated.
1758 * objfiles.c (struct objfile_data): Add cleanup member.
1759 (register_objfile_data_with_cleanup): New function, from
1760 register_objfile_data.
1761 (register_objfile_data): Use it.
1762 (objfile_free_data): Call clear_objfile_data.
1763 (clear_objfile_data): Call cleanup functions.
1764 * objfiles.h (register_objfile_data_with_cleanup): Declare.
1765
1766 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
1767
1768 * objfiles.c (init_entry_point_info): Handle shared libraries.
1769
1770 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
1771
1772 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
1773 lowest_pc.
1774
1775 2008-05-02 Jim Blandy <jimb@codesourcery.com>
1776 Pedro Alves <pedro@codesourcery.com>
1777
1778 Implement displaced stepping.
1779
1780 * gdbarch.sh (max_insn_length): New 'variable'.
1781 (displaced_step_copy, displaced_step_fixup)
1782 (displaced_step_free_closure, displaced_step_location): New
1783 functions.
1784 (struct displaced_step_closure): Add forward declaration.
1785 * gdbarch.c, gdbarch.h: Regenerated.
1786
1787 * arch-utils.c: #include "objfiles.h".
1788 (simple_displaced_step_copy_insn)
1789 (simple_displaced_step_free_closure)
1790 (displaced_step_at_entry_point): New functions.
1791 * arch-utils.h (simple_displaced_step_copy_insn)
1792 (simple_displaced_step_free_closure)
1793 (displaced_step_at_entry_point): New prototypes.
1794
1795 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
1796 (I386_MAX_MATCHED_INSN_LEN): ... this.
1797 (i386_absolute_jmp_p, i386_absolute_call_p)
1798 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
1799 (i386_displaced_step_fixup): New functions.
1800 (struct i386_insn, i386_match_insn): Update.
1801 (i386_gdbarch_init): Set gdbarch_max_insn_length.
1802 * i386-tdep.h (I386_MAX_INSN_LEN): New.
1803 (i386_displaced_step_fixup): New prototype.
1804 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
1805 Register gdbarch_displaced_step_copy,
1806 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
1807 and gdbarch_displaced_step_location functions.
1808
1809 * infrun.c (debug_displaced): New variable.
1810 (show_debug_displaced): New function.
1811 (struct displaced_step_request): New struct.
1812 (displaced_step_request_queue, displaced_step_ptid)
1813 (displaced_step_gdbarch, displaced_step_closure)
1814 (displaced_step_original, displaced_step_copy)
1815 (displaced_step_saved_copy, can_use_displaced_stepping): New
1816 variables.
1817 (show_can_use_displaced_stepping, use_displaced_stepping)
1818 (displaced_step_clear, cleanup_displaced_step_closure)
1819 (displaced_step_dump_bytes, displaced_step_prepare)
1820 (displaced_step_clear_cleanup, write_memory_ptid)
1821 (displaced_step_fixup): New functions.
1822 (resume): Call displaced_step_prepare.
1823 (proceed): Call read_pc once, and remember the value. If using
1824 displaced stepping, don't remove breakpoints.
1825 (handle_inferior_event): Call displaced_step_fixup. Add some
1826 debugging output. When we try to step over a breakpoint, but get
1827 a signal to deliver to the thread instead, ensure the step-resume
1828 breakpoint is actually inserted. If a thread hop is needed, and
1829 displaced stepping is enabled, don't remove breakpoints.
1830 (init_wait_for_inferior): Call displaced_step_clear.
1831 (_initialize_infrun): Add "set debug displaced" command. Add
1832 "maint set can-use-displaced-stepping" command. Clear
1833 displaced_step_ptid.
1834 * inferior.h (debug_displaced): Declare variable.
1835 (displaced_step_dump_bytes): Declare function.
1836
1837 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
1838 dependencies.
1839
1840 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
1841
1842 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
1843 (arm_force_mode_string, arm_show_fallback_mode)
1844 (arm_show_force_mode): New.
1845 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
1846 arm_frame_is_thumb.
1847 (_initialize_arm_tdep): Add "set arm fallback-mode"
1848 and "set arm force-mode".
1849 * NEWS: Document new commands.
1850
1851 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
1852
1853 * main.h (batch_silent): Declare.
1854 * event-top.c: Include main.h.
1855 (gdb_setup_readline): Remove extern batch_silent declaration.
1856 * infrun.c (normal_stop): Don't print source location when running in
1857 --batch-silent mode.
1858 * Makefile.in (event-top.o): Add main.h dependency.
1859
1860 2008-05-02 Andreas Schwab <schwab@suse.de>
1861
1862 * target.h (struct target_ops): Add
1863 to_watchpoint_addr_within_range.
1864 (target_watchpoint_addr_within_range): New function.
1865 * target.c (update_current_target): Inherit
1866 to_watchpoint_addr_within_range, defaulting to
1867 default_watchpoint_addr_within_range.
1868 (default_watchpoint_addr_within_range): New function.
1869 (debug_to_watchpoint_addr_within_range): New function.
1870 (setup_target_debug): Set to_watchpoint_addr_within_range.
1871 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
1872 New function.
1873 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
1874 * breakpoint.c (watchpoints_triggered): Use
1875 target_watchpoint_addr_within_range.
1876
1877 2008-05-01 Pedro Alves <pedro@codesourcery.com>
1878
1879 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
1880 (i[34567]86-*-dicos*, x86_64-*-dicos*):
1881 Set gdb_osabi to GDB_OSABI_DICOS.
1882
1883 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
1884 * osabi.c (gdb_osabi_name): Add "DICOS".
1885
1886 * i386-dicos-tdep.c: New file.
1887
1888 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
1889 (ALLDEPFILES): Add i386-dicos-tdep.c.
1890 (i386-dicos-tdep.o): New rule.
1891
1892 2008-05-01 Pedro Alves <pedro@codesourcery.com>
1893
1894 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
1895 and register the fork's PTID as a thread.
1896
1897 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
1898
1899 PR gdb/1665
1900 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
1901 assign its value to the breakpoint created.
1902 (create_breakpoints): Add breakpoint_ops argument and pass it
1903 to create_breakpoint call.
1904 (break_command_really): Add breakpoint_ops argument and pass/assign
1905 appropriately.
1906 (break_command_1): Pass NULL as ops argument.
1907 (set_breakpoint): Pass NULL as ops argument.
1908 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
1909 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
1910 catch and throw catchpoints.
1911
1912 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
1913
1914 PR gdb/2343
1915 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
1916 translate signal numeric value from the target to GDB's enum
1917 target_signal.
1918 * gdbarch.c, gdbarch.h: Regenerated.
1919 * gdbarch.sh: Added two new functions target_signal_from_host and
1920 target_signal_to_host.
1921 * target.h (default_target_signal_from_host,
1922 default_target_signal_to_host): New functions - declarations.
1923 * signals/signals.c (struct gdbarch): New declaration.
1924 (default_target_signal_to_host, default_target_signal_from_host): New
1925 functions.
1926
1927 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
1928
1929 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
1930 * arm-tdep.c (arm_frame_is_thumb): New.
1931 (arm_pc_is_thumb): Clarify comment.
1932 (thumb_analyze_prologue): Remove PC special case.
1933 (thumb_scan_prologue): Take a block_addr argument. Use it for
1934 find_pc_partial_function. Remove unused variables.
1935 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
1936 for find_pc_partial_function. Remove PC special case.
1937 (arm_prologue_prev_register): Add special handling for PC and CPSR.
1938 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
1939 (arm_get_next_pc): Use arm_frame_is_thumb.
1940 (arm_write_pc): Use CPSR_T instead of 0x20.
1941 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
1942 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
1943 (CPSR_T): Define.
1944 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
1945 DWARF2_FRAME_REG_FN.
1946 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
1947 DWARF2_FRAME_REG_FN.
1948 (struct dwarf2_frame_state_reg): Add FN to loc union.
1949
1950 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
1951
1952 * exec.c (print_section_info): Add missing '\n'.
1953
1954 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
1955
1956 * thread.c (add_thread): Move observer call to ...
1957 (add_thread_silent): ... here.
1958
1959 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
1960
1961 * rs6000-tdep.c: Update for unwinder changes.
1962 * ppcobsd-tdep.c: Likewise.
1963
1964 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
1965
1966 * s390-tdep.c: Update for unwinder changes.
1967
1968 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
1969
1970 * spu-tdep.c: Update for unwinder changes.
1971
1972 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
1973
1974 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
1975 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
1976 sparc64-linux-tdep.c: Update for unwinder changes.
1977
1978 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
1979
1980 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
1981 for unwinder changes.
1982 * mips-tdep.c: Likewise.
1983 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
1984 raw one.
1985
1986 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
1987
1988 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
1989 unwinder changes.
1990
1991 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
1992
1993 Update i386 and amd64 ports for unwinder changes.
1994
1995 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
1996 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
1997 (amd64_frame_unwind): Use default_frame_sniffer.
1998 (amd64_frame_sniffer): Delete.
1999 (amd64_sigtramp_frame_cache): Expect this_frame.
2000 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
2001 (amd64_sigtramp_frame_sniffer): Update signature.
2002 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
2003 (amd64_frame_base_address): Expect this_frame.
2004 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
2005 this_frame.
2006 (amd64_init_abi): Use set_gdbarch_dummy_id and
2007 frame_unwind_append_unwinder.
2008 * i386-tdep.c (i386_frame_cache): Expect this_frame.
2009 (i386_frame_this_id, i386_frame_prev_register): Update signature.
2010 (i386_frame_unwind): Use default_frame_sniffer.
2011 (i386_frame_sniffer): Delete.
2012 (i386_sigtramp_frame_cache): Expect this_frame.
2013 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
2014 (i386_sigtramp_frame_sniffer): Update signature.
2015 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
2016 (i386_frame_base_address): Update signature.
2017 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
2018 (i386_push_dummy_call): Update comment.
2019 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
2020 Expect this_frame.
2021 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
2022 and frame_unwind_append_unwinder.
2023 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
2024 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
2025 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
2026 i386nbsd-tdep.c: Update for unwinder changes.
2027
2028 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2029
2030 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
2031 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
2032 this_frame.
2033 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
2034 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
2035 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
2036 signature.
2037 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
2038 this_frame.
2039 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
2040 Update signature.
2041 * tramp-frame.h (struct tramp_frame): Update signature of init.
2042 * Makefile.in (trad-frame.o): Update.
2043
2044 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2045
2046 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
2047 (execute_stack_op): Put this_frame in the baton.
2048 (execute_cfa_program): Take this_frame.
2049 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
2050 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
2051 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
2052 (dwarf2_frame_this_id): Adjust to work on this_frame.
2053 (dwarf2_signal_frame_this_id): Delete.
2054 (dwarf2_frame_prev_register): Update signature. Use new frame
2055 unwind methods.
2056 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
2057 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
2058 dwarf2_frame_sniffer.
2059 (dwarf2_append_unwinders): New.
2060 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
2061 this_frame.
2062 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
2063 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
2064 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
2065 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
2066 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
2067 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
2068 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
2069 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
2070 (dwarf2_append_unwinders): Declare.
2071 (dwarf2_frame_base_sniffer): Update declaration.
2072 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
2073 this_frame.
2074
2075 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2076
2077 Convert frame unwinders to use the current frame and
2078 "struct value".
2079
2080 * frame.c (frame_debug): Make global.
2081 (get_frame_id): Pass this frame to unwinder routines.
2082 (frame_pc_unwind): Remove unused unwind->prev_pc support.
2083 (do_frame_register_read): Do not discard the return value of
2084 frame_register_read.
2085 (frame_register_unwind): Remove debug messages. Use
2086 frame_unwind_register_value.
2087 (frame_unwind_register_value, get_frame_register_value): New
2088 functions.
2089 (create_new_frame, get_frame_base_address, get_frame_locals_address)
2090 (get_frame_args_address, get_frame_type): Pass this frame to
2091 unwinder routines.
2092 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
2093 functions.
2094 * frame.h: Update comments.
2095 (frame_debug, frame_unwind_register_value, get_frame_register_value)
2096 (frame_prepare_for_sniffer): Declare.
2097 * frame-unwind.h: Update comments and parameter names.
2098 (default_frame_sniffer): Declare.
2099 (frame_prev_register_ftype): Return a struct value *.
2100 (struct frame_unwind): Remove prev_pc member.
2101 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
2102 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
2103 (frame_unwind_got_register, frame_unwind_got_memory)
2104 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
2105 * frame-base.h: Update comments and parameter names.
2106 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
2107 if necessary. Add debugging output.
2108 * sentinel-frame.c (sentinel_frame_prev_register)
2109 (sentinel_frame_this_id): Update for new signature.
2110 (sentinel_frame_prev_pc): Delete.
2111 (sentinel_frame_unwinder): Remove prev_pc.
2112 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
2113 prev_pc.
2114 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
2115 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
2116 (frame_unwind_append_sniffer): Delete.
2117 (frame_unwind_append_unwinder): New function.
2118 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
2119 from unwinders. Use frame_prepare_for_sniffer.
2120 (default_frame_sniffer, frame_unwind_got_optimized)
2121 (frame_unwind_got_register, frame_unwind_got_memory)
2122 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
2123 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
2124 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
2125 signature.
2126 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
2127 * gdbarch.c, gdbarch.c: Regenerated.
2128 * frame-base.c (default_frame_base_address)
2129 (default_frame_locals_address, default_frame_args_address): Update
2130 for new signature.
2131 (frame_base_find_by_frame): Pass this frame to unwinder routines.
2132 * infcall.c (call_function_by_hand): Update comments.
2133 * Makefile.in (frame-unwind.o): Update dependencies.
2134
2135 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2136
2137 * ada-lang.c (ada_value_primitive_packed_val): Only check
2138 value_lazy for memory lvals.
2139 * findvar.c (value_of_register_lazy): New function.
2140 (locate_var_value): Only check value_lazy for memory lvals.
2141 * valarith.c (value_subscripted_rvalue): Likewise.
2142 * valops.c (value_fetch_lazy): Handle both memory and register
2143 lvals.
2144 (search_struct_field, value_slice): Only check value_lazy for memory
2145 lvals.
2146 * value.c (struct value): Update comment for lazy.
2147 (value_primitive_field): Only check value_lazy for memory lvals.
2148 * value.h (value_lazy): Update comment.
2149 (value_of_register_lazy): Declare.
2150
2151 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2152
2153 * corefile.c (reopen_exec_file): Close any open files.
2154
2155 2008-04-29 Joel Brobecker <brobecker@adacore.com>
2156
2157 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
2158 show_memory_breakpoints to 1 while reading the instruction bundle.
2159
2160 2008-04-29 Joel Brobecker <brobecker@adacore.com>
2161
2162 * gdbarch.sh: Document the return_value method. Explain that
2163 the FUNCTYPE parameter might be NULL.
2164 * gdbarch.h: Regenerated.
2165 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
2166 type when calling using_struct_return, as this is unnecessary
2167 on this target.
2168
2169 2008-04-28 Joel Brobecker <brobecker@adacore.com>
2170
2171 * terminal.h (create_tty_session): Fix return type.
2172
2173 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
2174
2175 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
2176
2177 2008-04-26 Joel Brobecker <brobecker@adacore.com>
2178
2179 * breakpoint.c (condition_command, commands_from_control_command)
2180 (break_command_really): Minor reformatting.
2181
2182 2008-04-25 Pedro Alves <pedro@codesourcery.com>
2183
2184 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
2185
2186 2008-04-25 Pedro Alves <pedro@codesourcery.com>
2187
2188 * amd64-tdep.c (amd64_get_longjmp_target): New.
2189 (amd64_init_abi): Register amd64_get_longjmp_target as
2190 gdbarch_get_longjmp_target callback.
2191 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
2192
2193 2008-04-25 Pedro Alves <pedro@codesourcery.com>
2194
2195 * breakpoint.h (enum bpstat_what_main_action): Delete
2196 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
2197
2198 * breakpoint.c (clrs): Delete.
2199 (bpstat_what): Update table.
2200
2201 * infrun.c (handle_inferior_event): Remove
2202 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
2203
2204 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2205
2206 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
2207 Adjust all prototypes using mi_cmd_args_ftype to use
2208 mi_cmd_argv_ftype.
2209 (struct mi_cmd): Remove the args_func field.
2210 * mi/mi-cmds.c: Don't provide value for the args_func field.
2211 * mi/mi-main.c (mi_execute_async_cli_command)
2212 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
2213 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
2214 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
2215 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
2216 (mi_cmd_target_download): Adjust.
2217 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
2218 (mi_cmd_execute): Do not check for args_func.
2219 (mi_execute_async_cli_command): Adjust.
2220 * mi/mi-parse.c: Don't check for args_func.
2221
2222 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2223
2224 * breakpoint.c (bpstat_check_location)
2225 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
2226 New, extracted from bpstat_stop_status.
2227 (bpstat_stop_status): Use the above.
2228
2229 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2230
2231 * mi/mi-main.c (last_async_command): Rename to current_token.
2232 (previous_async_command): Remove.
2233 (mi_cmd_gdb_exit): Adjust.
2234 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
2235 (mi_cmd_target_select): Adjust.
2236 (mi_cmd_execute): Don't set previous_async_command. Free token
2237 here even in async mode.
2238 (mi_execute_async_cli_command): Adjust.
2239 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
2240 token.
2241 (mi_load_progress): Adjust.
2242
2243 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2244
2245 * infcmd.c (step_1_continuation): Always disable longjmp
2246 breakpoint if we're not going to do another step.
2247
2248 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2249
2250 exec_cleanup murder.
2251 * breakpoint.c (until_break_command_continuation): Add
2252 the 'error' parameter. Directly delete the breakoint as
2253 opposed to running cleanups.
2254 (until_break_command): Install continuation only
2255 after starting the target. Don't use exec cleanups,
2256 use ordinary cleanups. Discard cleanups is successfully
2257 started the target in async mode.
2258 (make_cleanup_delete_breakpoint): Remove.
2259 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
2260 declaration.
2261 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
2262 declarations.
2263 (struct continations): Add the 'error' parameter to the
2264 continuation_hook field.
2265 (add_continuation, do_all_continuations)
2266 (add_intermediate_continuation)
2267 (do_all_intermediate_continuations): Add the 'error' parameter.
2268 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
2269 * inf-loop.c (inferior_event_handler): Instead of calling
2270 discard_all_continuations, use do_all_continuations with 1 as
2271 'error' parameter. Pass 0 as 'error' parameter in existing uses
2272 of discard_all_continuations.
2273 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
2274 cleanups.
2275 (step_once): Install continuation only after resuming the target.
2276 (step_1_continuation): Disable longjmp breakpoint on error.
2277 (finish_command_continuation): Add the error parameter. Delete
2278 the finish breakpoint directly, do not use cleanups.
2279 (finish_command): Do not use exec_cleanups. Always setup
2280 continuation. For sync case, immediately run them.
2281 (attach_command_continuation): Add the error parameter.
2282 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
2283 remove step_resume_breakpoint -- adjust delete it directly.
2284 * interps.c (interp_set): Adjust call to do_all_continations.
2285 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
2286 do exec cleanups.
2287 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
2288 cleanups.
2289 (mi_cmd_execute): Do not use exec_cleanup.
2290 (mi_execute_async_cli_command): Simplify the string concatenation
2291 logic. Do no use exec cleanup.
2292 (mi_exec_async_cli_cmd_continuation): New parameter error.
2293 Free last_async_command.
2294 * top.c (command_line_handler_continuation): New parameter error.
2295 * utils.c (exec_cleanup_chain, make_exec_cleanup)
2296 (do_exec_cleanups): Remove.
2297 (add_continuation, do_all_continations)
2298 (add_intermediate_continuation)
2299 (do_all_intermediate_continuations): New parameter error.
2300
2301 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2302
2303 * breakpoint.h (bp_location_p): New typedef.
2304 Register a vector of bp_location_p.
2305 * breakpoint.c (always_inserted_mode)
2306 (show_always_inserted_mode): New.
2307 (unlink_locations_from_global_list): Remove.
2308 (update_global_location_list)
2309 (update_global_location_list_nothrow): New.
2310 (update_watchpoint): Don't free locations.
2311 (should_insert_location): New.
2312 (insert_bp_location): Use should_insert_location.
2313 (insert_breakpoint_locations): Copied from
2314 insert_breakpoints.
2315 (insert_breakpoint): Use insert_breakpoint_locations.
2316 (bpstat_stop_status): Call update_global_location_list
2317 when disabling breakpoint.
2318 (allocate_bp_location): Don't add to bp_location_chain.
2319 (set_raw_breakpoint)
2320 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
2321 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
2322 (enable_overlay_breakpoints, disable_overlay_breakpoints)
2323 (set_longjmp_resume_breakpoint)
2324 (enable_watchpoints_after_interactive_call_stop)
2325 (disable_watchpoints_before_interactive_call_start)
2326 (create_internal_breakpoint)
2327 (create_fork_vfork_event_catchpoint)
2328 (create_exec_event_catchpoint, set_momentary_breakpoint)
2329 (create_breakpoints, break_command_1, watch_command_1)
2330 (create_exception_catchpoint)
2331 (handle_gnu_v3_exceptions)
2332 (disable_breakpoint, breakpoint_re_set_one)
2333 (create_thread_event_breakpoint, create_solib_event_breakpoint)
2334 (create_ada_exception_breakpoint): : Don't call check_duplicates.
2335 Call update_global_location_list.
2336 (delete_breakpoint): Don't remove locations and don't
2337 try to reinsert them. Call update_global_location_list.
2338 (update_breakpoint_locations): Likewise.
2339 (restore_always_inserted_mode): New.
2340 (update_breakpoints_after_exec): Temporary disable
2341 always inserted mode.
2342 * Makefile.in: Update dependencies.
2343
2344 * infrun.c (proceed): Remove breakpoints while stepping
2345 over breakpoint.
2346 (handle_inferior_event): Don't remove or insert
2347 breakpoints.
2348 * linux-fork.c (checkpoint_command): Remove breakpoints
2349 before fork and insert after.
2350 (linux_fork_context): Remove breakpoints before switch
2351 and insert after.
2352 * target.c (target_disconnect, target_detach): Remove
2353 breakpoints from target.
2354
2355
2356 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2357
2358 * breakpoint.c (print_one_breakpoint_location): In MI
2359 mode, report the location string the breakpoint was
2360 originally created with.
2361
2362 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
2363
2364 * Makefile.in (xtensa-tdep.o): Update dependencies.
2365 * configure.tgt (xtensa*): Update dependencies.
2366 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
2367 Local variable areg renamed to arreg.
2368 (areg_number): New function.
2369 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2370 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
2371 replaced by arreg_number.
2372 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
2373 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
2374 (xtensa_scan_prologue): New function.
2375 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
2376 when ENTRY instraction hasn't been executed yet. Get the frame pointer
2377 value based on prologue analysis. Fix the bugs preventing WS and
2378 AR4-AR7/A11 registers from getting right values for intermediate frames,
2379 whose registers have been already spilled.
2380 (xtensa_frame_prev_register): Fix WS register value. Use are_number
2381 and arreg_number appropriately.
2382 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
2383 svr4_ilp32_fetch_link_map_offsets.
2384
2385 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
2386
2387 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
2388 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
2389
2390 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
2391
2392 * acinclude.m4: Add override.m4.
2393 * configure: Regenerate.
2394
2395 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2396
2397 * ada-lang.c (get_selections): Variable PROMPT made non-const and
2398 initialized with a trailing space now. Use PROMPT_ARG of
2399 COMMAND_LINE_INPUT instead of printing it ourselves.
2400
2401 2008-04-22 Joel Brobecker <brobecker@adacore.com>
2402
2403 * NEWS: Document support for 64-bit core file.
2404
2405 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
2406
2407 * NEWS: Add information on calling convention and new SH CLI options.
2408
2409 * sh-tdep.c (sh_cc_gcc): New static string.
2410 (sh_cc_renesas): Ditto.
2411 (sh_cc_enum): New static string array.
2412 (sh_active_calling_convention): New static string pointer denoting
2413 active user chosen ABI.
2414 (sh_is_renesas_calling_convention): New function to return function
2415 specific ABI, or user choice if necessary.
2416 (sh_use_struct_convention): Rename first argument and turn around its
2417 meaning. Check for renesas ABI and return accordingly.
2418 (sh_use_struct_convention_nofpu): New function.
2419 (sh_next_flt_argreg): Get function type as third parameter. Check
2420 for renesas ABI and choose floating registers accordingly.
2421 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
2422 struct return slot accordingly.
2423 (sh_push_dummy_call_nofpu): Ditto.
2424 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
2425 Evaluate ABI and give to sh_use_struct_convention_nofpu.
2426 (sh_return_value_fpu): Evaluate ABI and give to
2427 sh_use_struct_convention.
2428 (show_sh_command): New function.
2429 (set_sh_command): Ditto.
2430 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
2431 CLI command.
2432
2433 * gdbarch.sh (return_value): Add func_type argument.
2434 * gdbarch.c: Regenerate.
2435 * gdbarch.h: Ditto.
2436 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
2437 val_type so as not to collide with value_type function. Call
2438 using_struct_return with additional function type argument.
2439 * infcall.c (call_function_by_hand): Call using_struct_return and
2440 gdbarch_return_value with additional function type argument.
2441 * infcmd.c (print_return_value): Take addition func_type argument.
2442 Call gdbarch_return_value with additional function type argument.
2443 (finish_command_continuation): Call print_return_value with additional
2444 function type argument.
2445 (finish_command): Ditto.
2446 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
2447 additional function type argument.
2448 * stack.c (return_command): Call using_struct_return and
2449 gdbarch_return_value with additional function type argument.
2450 * value.c (using_struct_return): Take additional function type argument.
2451 * value.h (using_struct_return): Accommodate declaration.
2452 * alpha-tdep.c (alpha_return_value): Add func_type argument.
2453 * amd64-tdep.c (amd64_return_value): Ditto.
2454 * arm-tdep.c (arm_return_value): Ditto.
2455 * avr-tdep.c (avr_return_value): Ditto.
2456 * cris-tdep.c (cris_return_value): Ditto.
2457 * frv-tdep.c (frv_return_value): Ditto.
2458 * h8300-tdep.c (h8300_return_value): Ditto.
2459 (h8300h_return_value): Ditto.
2460 * hppa-tdep.c (hppa32_return_value): Ditto.
2461 (hppa64_return_value): Ditto.
2462 * i386-tdep.c (i386_return_value): Ditto.
2463 * ia64-tdep.c (ia64_return_value): Ditto.
2464 * iq2000-tdep.c (iq2000_return_value): Ditto.
2465 * m32c-tdep.c (m32c_return_value): Ditto.
2466 * m32r-tdep.c (m32r_return_value): Ditto.
2467 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
2468 * m68k-tdep.c (m68k_return_value): Ditto.
2469 (m68k_svr4_return_value): Ditto.
2470 * m88k-tdep.c (m88k_return_value): Ditto.
2471 * mep-tdep.c (mep_return_value): Ditto.
2472 * mips-tdep.c (mips_eabi_return_value): Ditto.
2473 (mips_n32n64_return_value): Ditto.
2474 (mips_o32_return_value): Ditto.
2475 (mips_o64_return_value): Ditto.
2476 * mn10300-tdep.c (mn10300_return_value): Ditto.
2477 * mt-tdep.c (mt_return_value): Ditto.
2478 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
2479 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
2480 (ppc_sysv_abi_broken_return_value): Ditto.
2481 (ppc64_sysv_abi_return_value): Ditto.
2482 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
2483 (ppc_sysv_abi_broken_return_value): Ditto.
2484 (ppc64_sysv_abi_return_value): Ditto.
2485 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
2486 * rs6000-tdep.c (rs6000_return_value): Ditto.
2487 * s390-tdep.c (s390_return_value): Ditto.
2488 * score-tdep.c (score_return_value): Ditto.
2489 * sh-tdep.c (sh_return_value_nofpu): Ditto.
2490 (sh_return_value_fpu): Ditto.
2491 * sh64-tdep.c (sh64_return_value): Ditto.
2492 * sparc-tdep.c (sparc32_return_value): Ditto.
2493 * sparc64-tdep.c (sparc64_return_value): Ditto.
2494 * spu-tdep.c (spu_return_value): Ditto.
2495 * v850-tdep.c (v850_return_value): Ditto.
2496 * vax-tdep.c (vax_return_value): Ditto.
2497 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
2498 * xtensa-tdep.c (xtensa_return_value): Ditto.
2499
2500 * gdbtypes.h (struct type): Add calling_convention member.
2501 * dwarf2read.c (read_subroutine_type): Add calling convention read
2502 from DW_AT_calling_convention attribute to function type.
2503
2504 2008-04-22 Markus Deuling <deuling@de.ibm.com>
2505
2506 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
2507 multi_f77_subscript to support values from registers.
2508 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
2509 * value.h (value_subscripted_rvalue): Add prototype.
2510
2511 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
2512 Fix output.
2513 * f-valprint.c (f_val_print): Likewise.
2514
2515 2008-04-21 Craig Silverstein <csilvers@google.com>
2516
2517 * dwarf2read.c (zlib_decompress_section): Define abfd in the
2518 !HAVE_ZLIB_H case.
2519
2520 2008-04-21 Pedro Alves <pedro@codesourcery.com>
2521
2522 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
2523 section is not a code section.
2524
2525 2008-04-19 Craig Silverstein <csilvers@google.com>
2526
2527 * NEWS: Add information on compressed debug sections.
2528
2529 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
2530
2531 * mi/mi-cmd-var.c (varobj_update_one): Print new
2532 value for variable objects that changed type.
2533
2534 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
2535
2536 * varobj.c (varobj_invalidate): Don't touch floating
2537 varobjs.
2538
2539 2008-04-19 Mark Kettenis <kettenis@gnu.org>
2540
2541 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
2542 (multiple_symbols_cancel): Remove extra const.
2543 * symtab.h: Likewise.
2544
2545 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
2546
2547 * interps.c (top_level_interpreter): Rename static variable...
2548 (top_level_interpreter_ptr): ...to this.
2549 (top_level_interpreter): New function.
2550
2551 * interps.h: New extern for top_level_interpreter.
2552
2553 * linespec.c: Include interps.h and mi/mi-cmds.h.
2554 (decode_line_2): When using MI, always set all breakpoints in menu.
2555
2556 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
2557
2558 2008-04-18 Craig Silverstein <csilvers@google.com>
2559
2560 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
2561 * config.in, configure: Regenerate.
2562 * dwarf2read.c: Include zlib.h if present.
2563 Modified *_SECTION macros.
2564 (section_is_p): New.
2565 (dwarf2_locate_sections): Use section_is_p instead of strcmp
2566 (dwarf2_resize_section): New.
2567 to determine whether a given section has a given name.
2568 (zlib_decompress_section): New.
2569 (dwarf2_read_section): Read the compressed section if present
2570 in the binary.
2571 * MAINTAINERS: Added myself to section Write After Approval.
2572
2573 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
2574
2575 * defs.h (exec_set_section_offsets): Remove prototype.
2576 * exec.c (exec_set_section_offsets): Remove function.
2577
2578 2008-04-18 Joel Brobecker <brobecker@adacore.com>
2579
2580 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
2581 in the search for the matching symbol.
2582
2583 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
2584
2585 * breakpoint.c (update_watchpoint): Always reparse
2586 condition.
2587
2588 2008-04-17 Joel Brobecker <brobecker@adacore.com>
2589
2590 * breakpoint.c (print_one_breakpoint_location): Make sure to print
2591 the breakpoint address only once.
2592
2593 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
2594
2595 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
2596 rather than a hard-coded architecture, for xcoff executables.
2597
2598 2008-04-17 Doug Evans <dje@google.com>
2599
2600 * buildsym.c (watch_main_source_file_lossage): New fn.
2601 (end_symtab): Call it.
2602
2603 * source.c (find_and_open_source): Add some comments clarifying
2604 handling of FULLNAME argument. Make static. Remove pointless
2605 xstrdup/xfree.
2606
2607 2008-04-17 Pedro Alves <pedro@codesourcery.com>
2608
2609 * inf-loop.c (inferior_event_handler): Also run the intermediate
2610 continuations in the INF_EXEC_COMPLETE case.
2611
2612 2008-04-16 Tom Tromey <tromey@redhat.com>
2613
2614 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
2615 (set_cmd_async_ok, get_cmd_async_ok): Declare.
2616 * cli/cli-decode.c (set_cmd_async_ok): New function.
2617 (get_cmd_async_ok): New function.
2618 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
2619 "show" as async-ok.
2620 * top.c (execute_command): Use get_cmd_async_ok.
2621 * infcmd.c: Include cli/cli-decode.h.
2622 (_initialize_infcmd): Mark "interrupt" as async-ok.
2623 * Makefile.in (infcmd.o): Depend on cli_decode_h.
2624
2625 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
2626
2627 PR gdb/2445
2628 * exec.c: Correct "arch-utils.h" include.
2629
2630 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
2631
2632 PR gdb/2424
2633 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
2634 to allow printing to 'see' real reason of stop. This fixes PR 2424.
2635 * breakpoint.c (bpdisp_texst): New function. The function takes over
2636 the role of bpstats static array in print_one_breakpoint_location.
2637 (print_it_typical): Print "Temporary breakpoint" instead
2638 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
2639 protocols, print disp field.
2640 (print_one_breakpoint_location): Removed bpdisps static definition.
2641 Call new bpstat_text function to get value for 'disp' field.
2642 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
2643
2644 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
2645
2646 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
2647 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
2648 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
2649 * gnulib/Makefile.in: Regenerate.
2650
2651 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
2652
2653 * Makefile.in (GNULIB_H): New. Trigger all-lib.
2654 (defs_h): Use $(GNULIB_H).
2655 (all-lib): Depend on gnulib/Makefile.
2656 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
2657 * config.in, gnulib/Makefile.in: Regenerated.
2658
2659 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
2660
2661 * Makefile.in (LIBGNU, INCGNU): Define.
2662 (INTERNAL_CFLAGS_BASE): Add INCGNU.
2663 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
2664 (CLEANDIRS): New.
2665 ($(LIBGNU), all-lib): New rules.
2666 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
2667 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
2668 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
2669 * gnulib: New directory, from gnulib-tool.
2670 * configure, aclocal.m4: Regenerated.
2671
2672 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
2673
2674 * linux-thread-db.c (have_threads_callback): Check thread->private.
2675
2676 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
2677 Vladimir Prus <vladimir@codesourcery.com>
2678
2679 Fix @-varobjs.
2680 * varobj.c (value_of_root): Update the expression for
2681 floating varobjs.
2682 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
2683 report that.
2684
2685 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
2686
2687 * mi/mi-cmd-var.c: Include "mi-getopt.h".
2688 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
2689 (mi_cmd_var_set_format): Use new mi_parse_format.
2690 (mi_cmd_var_evaluate_expression): Support for -f option to specify
2691 format.
2692 * Makefile.in (mi-cmd-var.o): Update dependencies.
2693
2694 * varobj.h (varobj_get_formatted_value): Declare.
2695 * varobj.c (my_value_of_variable): Added format parameter.
2696 (cplus_value_of_variable): Likewise.
2697 (java_value_of_variable): Likewise.
2698 (c_value_of_variable): Likewise. Evaluate expression based
2699 on format parameter.
2700 (struct language_specific): Add format parameter to function member
2701 *value_of_variable.
2702 (varobj_get_formatted_value): New.
2703 (varobj_get_value): Added format parameter to method call.
2704
2705 2008-04-08 Joel Brobecker <brobecker@adacore.com>
2706
2707 * stabsread.c (cleanup_undefined_types_noname): Manually set the
2708 instance flags of the undefined type before calling replace_type.
2709
2710 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
2711
2712 * target.h (enum strata): Remove the download_stratum.
2713
2714 2008-04-07 Doug Evans <dje@google.com>
2715
2716 * buildsym.h (last_source_file): Add dwarf info to comment.
2717 (last_source_start_addr): Ditto.
2718
2719 2008-04-07 Pedro Alves <pedro@codesourcery.com>
2720
2721 * alphanbsd-tdep.c: Include "target.h".
2722 * mn10300-tdep.c: Include "target.h".
2723 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
2724
2725 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
2726
2727 Fix breakpoint condition that use member variables.
2728 * valops.c (check_field): Remove.
2729 (check_field_in): Rename to check_field.
2730 (value_of_this): Use la_name_of_this.
2731 * value.h (check_field): Adjust prototype.
2732
2733 * language.h (la_value_of_this): Rename to la_name_of_this.
2734 * language.c (unknown_language_defn): Specify "this" for
2735 name_of_this.
2736 (auto_language_defn): Likewise.
2737 (local_language_defn): Likewise.
2738 * ada-lang.c (ada_language_defn): Adjust comment.
2739 * c-lang.c (c_language_defn): Adjust comment.
2740 (cplus_language_defn): Specify "this" for name_of_this.
2741 (asm_language_defn): Adjust comment.
2742 (minimal_language_defn): Adjust comment.
2743 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
2744 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
2745 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
2746 * objc-lang.c (objc_language_defn): Specify "self" for
2747 name_of_this.
2748 * p-lang.c (pascal_language_defn): Specify "this" for
2749 name_of_this.
2750 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
2751
2752 * symtab.c (lookup_symbol_aux): Lookup "this" in the
2753 proper scope, and check for field in type of "this", without
2754 trying to create a value.
2755
2756 2008-04-04 Pedro Alves <pedro@codesourcery.com>
2757
2758 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
2759 (mi_error_message): Delete declaration.
2760 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
2761 returning MI_CMD_ERROR.
2762 * mi/mi-main.c (mi_error_message): Delete.
2763 (mi_cmd_exec_interrupt):
2764 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
2765 (mi_cmd_thread_info): Call error instead of returning
2766 MI_CMD_ERROR.
2767 (mi_cmd_data_list_register_values): Call error instead of
2768 returning MI_CMD_ERROR. Adapt to new get_register interface.
2769 (get_register): Change return typo to void. Call error instead of
2770 returning MI_CMD_ERROR.
2771 (mi_cmd_data_write_register_values): Call error instead of
2772 returning MI_CMD_ERROR.
2773 (mi_cmd_list_features): Return MI_CMD_DONE.
2774 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
2775 (mi_execute_command): Always print exceptions with -error.
2776
2777 2008-04-04 Joel Brobecker <brobecker@adacore.com>
2778
2779 * NEWS: Mention new commands set/show multiple-symbols.
2780
2781 2008-04-03 Joel Brobecker <brobecker@adacore.com>
2782
2783 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
2784 (multiple_symbols_cancel): New constants.
2785 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
2786 (multiple_symbols_select_mode): New function.
2787 (_initialize_symtab): Add new set/show multiple-symbols commands.
2788 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
2789 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
2790 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
2791 setting.
2792 * linespec.c (decode_line_2): Likewise.
2793
2794 2008-04-03 Doug Evans <dje@sebabeach.org>
2795
2796 * symtab.h (enum free_code): Delete free_contents, unused.
2797 * symmisc.c (free_symtab_block): Delete.
2798 (free_symtab, case free_code): Delete.
2799
2800 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
2801
2802 * valops.c (value_cast_structs): New function. Cast related
2803 STRUCT types up/down and return cast value. The body of this
2804 function comes mostly from value_cast_pointers.
2805 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
2806 to value_cast_structs. Now value_cast_pointers needs only create
2807 appropriate reference after using value_cast_structs for actual
2808 casting.
2809 (value_cast): Handle references.
2810
2811 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
2812
2813 * MAINTAINERS: Added myself to section Write After Approval.
2814
2815 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2816
2817 * ia64-tdep.c (examine_prologue): Correct array access.
2818
2819 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
2820
2821 * cp-support.c (first_component_command): Return if no arguments.
2822
2823 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
2824
2825 * ser-mingw.c (ser_windows_open): Open requested name.
2826
2827 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
2828
2829 * MAINTAINERS: Added myself.
2830
2831 2008-03-28 Pedro Alves <pedro@codesourcery.com>
2832
2833 * target.c (find_default_run_target): Allow a NULL `do_mesg'
2834 parameter. If it is NULL, don't call error.
2835 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
2836 `do_mesg' parameter to find_default_run_target. If no target was
2837 found, return 0.
2838
2839 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
2840
2841 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
2842 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
2843 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
2844 Delete.
2845 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
2846
2847 2008-03-27 Joel Brobecker <brobecker@adacore.com>
2848
2849 GDB 6.8 released.
2850
2851 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
2852
2853 * features/Makefile (%.dat): Set xmltarget to the base filename
2854 of the XML source, without subdirectory.
2855 * regformats/rs6000/powerpc-32.dat: Regenerate.
2856 * regformats/rs6000/powerpc-64.dat: Regenerate.
2857 * regformats/rs6000/powerpc-e500.dat: Regenerate.
2858
2859 2008-03-27 Markus Deuling <deuling@de.ibm.com>
2860
2861 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
2862 objfile arch.
2863
2864 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
2865
2866 * mi/mi-main.c (enum captured_mi_execute_command_actions):
2867 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
2868
2869 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
2870
2871 * objfiles.h (struct objfile): New GDBARCH member.
2872 (get_objfile_arch): Add prototype.
2873 * objfiles.c: Include "arch-utils.h".
2874 (allocate_objfile): Look up gdbarch associated with bfd.
2875 (get_objfile_arch): New function.
2876 * Makefile (objfiles.o): Update dependencies.
2877
2878 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
2879 by objfile arch.
2880 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
2881 by frame arch.
2882 (locexpr_describe_location): Replace current_gdbarch by
2883 objfile arch.
2884 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
2885 (dwarf2_add_field): Likewise.
2886 (read_tag_pointer_type): Likewise.
2887 (read_base_type): Likewise.
2888 (new_symbol): Likewise.
2889
2890 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
2891 (decode_base_type, decode_function_type): Likewise.
2892 (coff_read_struct_type, coff_read_enum_type): Likewise.
2893 (coff_symtab_read): Replace current_gdbarch by objfile arch.
2894 (decode_base_type): Likewise.
2895 (coff_read_enum_type): Likewise.
2896 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
2897 (coff_read_enum_type): Likewise.
2898
2899 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
2900 (end_psymtab): Likewise.
2901 (process_one_symbol): Likewise.
2902
2903 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
2904 (parse_procedure): Likewise.
2905 (parse_partial_symbols): Likewise.
2906
2907 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
2908
2909 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
2910 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
2911 built-in types.
2912 (read_range_type): Replace current_gdbarch by objfile arch. Replace
2913 static range_index_type by built-in type.
2914 (read_one_struct_field): Replace current_gdbarch by objfile arch.
2915 (read_enum_type): Likewise.
2916
2917 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
2918 objfile arch.
2919
2920 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
2921
2922 * varobj.h (varobj_floating_p): Declare.
2923 * varobj.c (varobj_floating_p): New.
2924 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
2925 '@' as the name, update all floating varobjs.
2926
2927 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
2928
2929 * varobj.c (struct varobj_root): Rename use_selected_frame to
2930 floating, and clarify the meaning.
2931 (varobj_create, varobj_update, new_root_variable): Adjust.
2932 (value_of_root): Don't use type_changed as in variable,
2933 adjust comment.
2934 (c_value_of_root): Adjust.
2935
2936 2008-03-25 Pedro Alves <pedro@codesourcery.com>
2937
2938 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
2939 gdb's thread list.
2940 (linux_nat_wait): Add main lwp to gdb's thread list.
2941 * linux-thread-db.c (find_new_threads_callback): Also attach to
2942 already listed threads which thread_db didn't know about yet.
2943
2944 2008-03-25 Pedro Alves <pedro@codesourcery.com>
2945
2946 * linux-nat.c (drain_queued_events): Fix comment typo.
2947 (linux_nat_attach): In async mode, don't rely on storing a pending
2948 status. Instead place the wait status on the pipe.
2949 (linux_nat_resume): Remove unreacheable shortcut code in async
2950 mode.
2951 (stop_wait_callback): In async mode, don't store pending status.
2952 Instead, cancel breakpoints or resend the signal appropriatelly.
2953 (cancel_breakpoint): New, refactored from
2954 cancel_breakpoints_callback.
2955 (cancel_breakpoints_callback): Call cancel_breakpoint.
2956 (pipe_to_local_event_queue): Remove special token processing.
2957 (linux_nat_wait): Issue an internal error if a pending status is
2958 found in async mode.
2959
2960 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
2961
2962 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
2963
2964 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
2965 Vladimir Prus <vladimir@codesourcery.com>
2966
2967 * varobj.c (struct varobj_root): New component thread_id.
2968 (varobj_get_thread_id, check_scope): New functions.
2969 (c_value_of_root): Use check_scope. Switch to the
2970 proper thread if necessary.
2971
2972 * varobj.h (varobj_get_thread_id): New extern.
2973
2974 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
2975
2976 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
2977
2978 PR gdb/544
2979 * top.c: Revert 2008-03-21 changes.
2980
2981 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
2982
2983 * thread.c (make_cleanup_restore_current_thread): Make it
2984 globally visible.
2985 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
2986 * varobj.c (varobj_update): Don't save/restore frame.
2987 (c_value_of_root): Save/restore thread and frame here,
2988 using make_cleanup_restore_current_thread.
2989 * Makefile.in: Update dependecies.
2990
2991 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
2992
2993 * varobj.c (struct varobj_root): Clarify
2994 comment on the frame field.
2995 (varobj_create): Don't set frame if we have no
2996 block.
2997
2998 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
2999
3000 PR gdb/544
3001 Suggested by Jan Kratochvil:
3002 * top.c (gdb_rl_operate_and_get_next_completion): Call
3003 rl_redisplay_function.
3004 (gdb_rl_redisplay): New.
3005 (init_main): Set rl_redisplay_function.
3006
3007 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
3008
3009 * aix-thread.c (pdc_read_regs): Fix compiler warning.
3010 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
3011 (store_regs_kernel_thread): Likewise.
3012
3013 2008-03-21 Pedro Alves <pedro@codesourcery.com>
3014
3015 Linux native async support.
3016
3017 * target.h (struct target_ops): Delete to_async_mask_value and add
3018 to_async_mask.
3019 (target_is_async_p, target_async): Formatting.
3020 (target_async_mask_value): Delete.
3021 (target_async_mask): Delete function declaration, and add new
3022 target macro with the same name.
3023
3024 * target.c (update_current_target): Replace to_async_mask_value by
3025 to_async_mask. Default to_async_mask to return_one.
3026 (target_async_mask): Delete.
3027 (find_default_can_async_p, find_default_is_async_p): New.
3028 (init_dummy_target): register find_default_can_async_p and
3029 find_default_is_async_p on the dummy target.
3030
3031 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
3032 (debug_linux_nat_async): New global.
3033 (show_debug_linux_nat_async): New function.
3034 (linux_nat_async_enabled, linux_nat_async_mask_value)
3035 (linux_nat_event_pipe, linux_nat_num_queued_events)
3036 (linux_nat_async_events_enabled): New globals.
3037 (struct waitpid_result): New struct.
3038 (waitpid_queue): New global.
3039 (queued_waitpid, push_waitpid, drain_queued_events): New.
3040 (my_waitpid): Call queued_waitpid.
3041 (linux_child_follow_fork): Disable async events during the call.
3042 (blocked_mask): Delete.
3043 (sync_sigchld_action, async_sigchld_action): New globals.
3044 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
3045 async mode, block events during the call.
3046 (linux_nat_create_inferior): New.
3047 (linux_nat_attach): In sync mode, restore the mask states. In
3048 async mode, wake the event loop immediatelly.
3049 (detach_callback): Drain all queued events of the lwp we're
3050 detaching from.
3051 (linux_nat_detach): Block async mode, and drain events of the main
3052 process.
3053 (linux_nat_resume): If in async mode, mask async events during the
3054 call. If short circuiting, force event loop to wake up. If
3055 resuming, set target_executing, and register target events in the
3056 event loop.
3057 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
3058 (linux_nat_wait): In async mode, block events during the call.
3059 Only enable/disable passing SIGINT to the inferior in sync mode.
3060 Get events from local waitpid queue. If no interesting events was
3061 found, return to events loop. Reregister target events in the
3062 event loop on exit. In sync mode, no need to reblock SIGCHLD.
3063 (linux_nat_kill): Disable events on entry.
3064 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
3065 here. Detach async mode from the event loop if there are no more
3066 forks available, otherwise leave it on.
3067 (sigchld_handler): Assure this is called only in sync mode.
3068 (linux_async_permitted, linux_async_permitted_1): New globals.
3069 (set_maintenance_linux_async_permitted)
3070 (show_maintenance_linux_async_permitted): New functions.
3071 (linux_nat_is_async_p, linux_nat_can_async_p)
3072 (linux_nat_async_mask): New.
3073 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
3074 (get_pending_events, async_sigchld_handler): New.
3075 (linux_nat_async_events): New.
3076 (async_terminal_is_ours): New global.
3077 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
3078 (async_client_callback, async_client_context): New.
3079 (linux_nat_async_file_handler, linux_nat_async)
3080 (linux_nat_disable_async, linux_nat_enable_async): New.
3081 (linux_nat_add_target): Register linux_nat_create_inferior,
3082 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
3083 linux_nat_async_mask, linux_nat_terminal_inferior and
3084 linux_nat_terminal_ours.
3085 (_initialize_linux_nat): Remove local action variable, and update
3086 code that used it to use sync_sigchld_action. Add new
3087 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
3088 set/show command in the maintenance class. Add new "linux-async"
3089 maintenance set/show command. Block SIGCHLD by default. Setup
3090 async_sichld_action, and sync_sigchld_action. Install the default
3091 async mode.
3092 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
3093 the cancel signals.
3094
3095 * linux-thread-db.c (re_check_for_thread_db): New.
3096 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
3097 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
3098 (thread_db_async_mask): New.
3099 (init_thread_db_ops): Register thread_db_can_async_p,
3100 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
3101
3102 * remote.c (remote_async_mask_value): New.
3103 (remote_return_zero): New.
3104 (init_remote_ops): Register remote_return_zero as callbacks of
3105 to_can_async_p and to_is_async_p.
3106 (remote_can_async_p, remote_is_async_p, remote_async): Update to
3107 use remote_async_mask_value.
3108 (remote_async_mask): New.
3109 (init_remote_async_ops): Remove to_async_mask_value setting and
3110 register remote_async_mask as to_async_mask callback in
3111 remote_async_ops.
3112
3113 * Makefile.in (linux-nat.o): Update.
3114
3115 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3116
3117 * gdbthread.h (add_thread_with_info): New.
3118 * linux-thread-db.c: Add some documentation.
3119 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
3120 (struct private_thread_info): Remove th_valid and ti_valid.
3121 Replace ti with tid.
3122 (thread_get_info_callback): Do not add TID to the new ptid. Do
3123 not cache th or ti.
3124 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
3125 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
3126 new PTID.
3127 (attach_thread): Handle an already-existing thread. Use
3128 add_thread_with_info. Cache the th and tid.
3129 (detach_thread): Verify that private was set. Remove verbose
3130 argument and printing. Update caller.
3131 (thread_db_detach): Do not adjust inferior_ptid.
3132 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
3133 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
3134 (thread_db_wait): Do not use lwp_from_thread.
3135 (thread_db_pid_to_str): Use the cached TID.
3136 (thread_db_extra_thread_info): Check that private is set.
3137 (same_ptid_callback): Delete.
3138 (thread_db_get_thread_local_address): Do not use it or check
3139 is_thread. Check that private is set. Assume that the thread
3140 handle is already cached.
3141 (init_thread_db_ops): Remove to_resume and to_kill.
3142 * thread.c (add_thread_with_info): New.
3143 (add_thread): Use it.
3144 * linux-nat.c (find_thread_from_lwp): Delete.
3145 (exit_lwp): Do not use it. Check print_thread_events. Print before
3146 deleting the thread.
3147 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
3148 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
3149 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
3150 printf_unfiltered for thread exits.
3151 * procfs.c (procfs_wait): Likewise.
3152
3153 2008-03-21 Chris Demetriou <cgd@google.com>
3154
3155 * symtab.c (rbreak_command): Quote symbol name before passing
3156 it to break_command.
3157
3158 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3159
3160 * eval.c (evaluate_subexp_for_address): Clarify error message.
3161 Use value_must_coerce_to_target.
3162 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
3163 * valops.c (value_assign): Call value_coerce_to_target when
3164 assigning to anything but internalvars. Leave GDB-side arrays
3165 as arrays when assigning to internalvars.
3166 (value_must_coerce_to_target, value_coerce_to_target): New.
3167 (value_coerce_array, value_addr): Call value_coerce_to_target.
3168 (value_array): Create the array in GDB's memory instead of
3169 the inferior's.
3170 * value.h (value_must_coerce_to_target, value_coerce_to_target):
3171 Declare.
3172
3173 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3174
3175 * top.c (quit_confirm): Warn that we will kill the program.
3176
3177 2008-03-19 Pedro Alves <pedro@codesourcery.com>
3178
3179 * inflow.c (terminal_ours_1): Guard access to
3180 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
3181
3182 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
3183 Jim Blandy <jimb@codesourcery.com>
3184 Daniel Jacobowitz <drow@false.org>
3185
3186 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
3187 (dwarf2_read_address): Update prototype.
3188
3189 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
3190 (signed_address_type): Likewise.
3191 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
3192 (execute_stack_op): Update calls to unsigned_address_type,
3193 signed_address_type and dwarf2_read_address. Fix implementation
3194 of DW_OP_deref_size.
3195
3196 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
3197 (dwarf2_per_cu_addr_size): Likewise.
3198 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
3199 (struct dwarf2_loclist_baton): Likewise.
3200
3201 * dwarf2loc.c (find_location_expression): Update calls to
3202 dwarf2_read_address. Use dwarf2_per_cu_objfile and
3203 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
3204 (locexpr_describe_location): Likewise.
3205 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
3206 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
3207 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
3208 to dwarf2_per_cu_addr_size (per_cu).
3209 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
3210 (loclist_read_variable): Likewise.
3211 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
3212
3213 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
3214 instead of baton->objfile.
3215 (dwarf2_per_cu_obfile): New function.
3216 (dwarf2_per_cu_addr_size): Likewise.
3217
3218 * dwarf2-frame.c (struct comp_unit): Move higher.
3219 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
3220 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
3221 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
3222 parameter by using fde->eh_frame_p. Use read_encoded_value
3223 to implement DW_CFA_set_loc.
3224 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
3225 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
3226 execute_stack_op and execute_cfa_program.
3227 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
3228 (size_of_encoded_value): Remove.
3229 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
3230 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
3231 (add_cie): Set cie->unit backlink.
3232 (decode_frame_entry_1): Set cie->addr_size. Update calls to
3233 read_encoded_value.
3234 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
3235
3236 2008-03-17 Markus Deuling <deuling@de.ibm.com>
3237
3238 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
3239 gdbarch_bfd_arch_info.
3240
3241 2008-03-17 Joel Brobecker <brobecker@adacore.com>
3242
3243 * aix-thread.c (pdc_read_regs): Minor reformatting.
3244
3245 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
3246
3247 * thread.c (print_thread_info): Don't insist
3248 on having current thread if there are no
3249 threads at all.
3250
3251 2008-03-17 Pedro Alves <pedro@codesourcery.com>
3252
3253 * infcmd.c (attach_command_post_wait)
3254 (attach_command_continuation): New.
3255 (attach_command): Support background async execution, and async
3256 execution in synchronous mode.
3257
3258 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
3259
3260 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
3261 * symmisc.c (dump_symtab_1): Likewise.
3262 * wrapper.c (gdb_value_struct_elt): Likewise.
3263
3264 2008-03-17 Pedro Alves <pedro@codesourcery.com>
3265
3266 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
3267
3268 2008-03-17 Pedro Alves <pedro@codesourcery.com>
3269
3270 * linux-nat.c (linux_nat_filter_event): New, refactored from
3271 linux_nat_wait.
3272 (linux_nat_wait): Call linux_nat_filter_event.
3273
3274 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
3275
3276 * top.c (execute_command): Fix uninitialized variable error.
3277
3278 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
3279
3280 * Makefile.in (amd64nbsd-nat.o): New dependency.
3281 * amd64nbsd-nat.c: Include "nbsd-nat.h".
3282 (_initialize_amd64nbsd_nat): Update target vector to use
3283 nbsd_pid_to_exec_file.
3284 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
3285
3286 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
3287
3288 Remove ignoring leading exec events code.
3289 * fork-child.c (startup_inferior): Do not set
3290 inferior_ignoring_leading_exec_events.
3291 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
3292 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
3293 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
3294 (handle_inferior_event): Remove code for ignoring leading exec
3295 events.
3296 * target.c (update_current_target): Do not inherit, or default,
3297 to_reported_exec_events_per_exec_call.
3298 (debug_to_reported_exec_events_per_exec_call): Remove.
3299 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
3300 * target.h (target_reported_exec_events_per_exec_call): Remove.
3301 (struct target): Remove the to_reported_exec_events_per_exec_call
3302 field.
3303
3304 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
3305
3306 Implement -thread-info.
3307 * gdbthread.h (print_thread_info): Declare.
3308
3309 * thread.c (print_thread_info): New, extracted
3310 from info_threads_command and adjusted to
3311 work for CLI and MI.
3312 (info_threads_command): Use print_thread_info.
3313 * Makefile.in: Update dependencies.
3314
3315 * mi/mi-cmds.c (mi_cmds): Specify a handler
3316 for -thread-info.
3317 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
3318 * mi/mi-main.c (mi_cmd_thread_info): New.
3319 (mi_cmd_list_features): Include 'thread-info'.
3320
3321 2008-03-14 Kevin Buettner <kevinb@redhat.com>
3322
3323 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
3324 to decide whether to match instruction patterns using "sw" and "sd".
3325
3326 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3327
3328 * infcmd.c (jump_command): Postpone disabling stdin until after
3329 the possible query.
3330
3331 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3332
3333 * inflow.c (gdb_getpgrp): New.
3334 (gdb_has_a_terminal): Use get_getpgrp.
3335 (terminal_ours_1): If attach_flag is set, don't refetch
3336 inferior_process_group.
3337
3338 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3339
3340 * features/library-list.dtd: Allow "section" elements as children
3341 of "library". Add "section" element and describe its attributes.
3342
3343 * solib-target.c (struct lm_info): Add section_bases member.
3344 (library_list_start_segment): Error out if seen a section element.
3345 (library_list_start_section): New.
3346 (library_list_end_library): New.
3347 (solib_target_free_library_list): Free section_bases.
3348 (section_attributes): New.
3349 (library_children): Make "segment" optional. Add "section" child.
3350 (library_list_children): Register library_list_end_library.
3351 (solib_target_relocate_section_addresses): Handle section bases.
3352
3353 * NEWS: Mention new qXfer:libraries:read section offsets support.
3354
3355 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
3356
3357 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
3358 (make_exec_error_cleanup): Remove declarations.
3359 * utils.c (exec_error_cleanup_chain): Remove.
3360 (do_exec_error_cleanups, discard_exec_error_cleanups)
3361 (make_exec_error_cleanup): Remove.
3362 * event-loop.c (start_event_loop): Adjust call to
3363 async_enable_stdin.
3364 * event-top.c (async_enable_stdin): Remove the paramater dummy.
3365 (async_disable_stdin): Don't register async_enable_stdin via
3366 cleanup.
3367 * inf-loop.c (inferior_event_handler): Don't
3368 call do_exec_error_cleanups. Call async_enable_stdin instead.
3369 * event-loop.c (start_event_loop): Adjust call to
3370 async_enable_stdin.
3371 * tui/tui-interp.c (tui_command_loop): Adjust call to
3372 async_enable_stdin.
3373
3374 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
3375
3376 Async mode fixes.
3377 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
3378 * breakpoint.c (bpstat_do_actions): In async mode,
3379 don't jump to top expecting stop_bpstat to be already
3380 updated.
3381 * event-loop.c (start_event_loop): Call async_enable_stdin
3382 on exception.
3383 * event-top.c (async_enable_stdin): Do nothing if sync_execution
3384 is not set.
3385 (command_handler): Do not setup continuation here.
3386 (command_line_handler_continuation): Move to...
3387 * top.c (command_line_handler_continuation): ... here.
3388 (execute_command): In async mode, register continuation.
3389 Don't check frame's language in running in async mode.
3390 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
3391 * inf-loop.c (complete_execution): Inline into...
3392 (inferior_event_handler): ... here. Clear target_executing before
3393 doing any cleanups. Don't try to show prompt if the target was
3394 resumed.
3395 * infcmd.c (signal_command): Add support for async mode.
3396 (finish_command): Only add continuation if the target was
3397 successfully resumed.
3398 * remote.c (init_async_opts): Register to_get_thread_local_address
3399 handler.
3400 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
3401 with sync_execution.
3402 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
3403 on exception.
3404
3405 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
3406
3407 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
3408 * exec.c (exec_bfd_mtime): Define.
3409 (exec_close): Clear it.
3410 (exec_file_attach): Set it.
3411 * gdbcore.h (exec_bfd_mtime): Declare.
3412 * source.c (find_source_lines): Do not use bfd_get_mtime.
3413
3414 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
3415
3416 * top.c (simplified_command_loop): Remove.
3417
3418 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
3419
3420 Remove unused remote.c hooks.
3421 * remote.c (deprecated_target_resume_hook)
3422 (deprecated_target_wait_loop_hook): Remove.
3423 (remote_resume): Do not call deprecated_target_resume_hook.
3424 (remote_wait): Do not call deprecated_target_wait_loop_hook.
3425 (remote_async_wait): Likewise.
3426
3427 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
3428
3429 Implement MI notification for new threads.
3430 * doc/observer.texi (new_thread): Document.
3431 * observer.sh: Forward declare struct thread_info.
3432 * thread.c (add_thread): Notify observer.
3433
3434 * interps.h (interp_init_ftype): New parameter
3435 top_level.
3436 (interp_set): Likewise.
3437 (top_level_interpreter_data): Declare.
3438 * interps.c (interp_set): New parameter top_level.
3439 Pass it to interpreter's init function. Remember
3440 top level interpreter.
3441 (interpreter_exec_cmd): Adjust.
3442 (top_level_interpreter_data): New.
3443 * main.c (captured_main): Pass 1 for top_level
3444 parameter of interp_set.
3445 * cli/cli-interp.c (cli_interpreter_init): New
3446 parameter top_level.
3447 * tui/tui-interp.c (tui_init): New parameter top_level.
3448
3449 * mi/mi-interp.c (mi_new_thread): New.
3450 (mi_interpreter_init): If top level, register
3451 observer for new threads.
3452
3453 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
3454
3455 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3456
3457 * top.c (execute_command): Disable break and stop
3458 commands in async mode.
3459
3460 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3461
3462 revert:
3463 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3464 * inf-loop.c (inferior_event_handler): Don't include remote.h.
3465 Call target_stop in the INF_QUIT_REQ case.
3466 * Makefile.in (inf-loop.o): Update.
3467
3468 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3469
3470 * inf-loop.c (inferior_event_handler): Don't include remote.h.
3471 Call target_stop in the INF_QUIT_REQ case.
3472 * Makefile.in (inf-loop.o): Update.
3473
3474 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3475
3476 * top.c (execute_command): Enable break, info and interrupt
3477 commands in async mode.
3478
3479 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
3480 Daniel Jacobowitz <dan@codesourcery.com>
3481
3482 * breakpoint.h (breakpoint_restore_shadows): New
3483 declaration.
3484 * breakpoint.c (breakpoint_restore_shadows): New.
3485 (read_memory_nobpt): Delete.
3486 * gdbcore.h (read_memory_nobpt): Delete declaration.
3487 * target.c (memory_xfer_partial): Call
3488 breakpoint_restore_shadows.
3489 (restore_show_memory_breakpoints)
3490 (make_show_memory_beakpoints_cleanup): New.
3491 (show_memory_breakpoints): New.
3492 * target.h (make_show_memory_beakpoints_cleanup): Declare.
3493 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
3494 Make sure we see memory breakpoints when checking if
3495 breakpoint is still there.
3496 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
3497 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
3498 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
3499 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
3500
3501 2008-03-12 Pedro Alves <pedro@codesourcery.com>
3502
3503 * thread.c (add_thread): Use printf_unfiltered to print.
3504
3505 2008-03-12 Joel Brobecker <brobecker@gnat.com>
3506
3507 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
3508 that is true only on x86-solaris and x86_64-solaris.
3509 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
3510 with proc_get_LDT_entry.
3511
3512 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
3513
3514 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
3515 * config.in, configure: Regenerate.
3516 * fork-child.c (fork_inferior): Call create_tty_session.
3517 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
3518 (create_tty_session): New function.
3519 * terminal.h: Declare create_tty_session.
3520
3521 2008-03-12 Alan Modra <amodra@bigpond.net.au>
3522
3523 PR 5900
3524 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
3525 * mipsread.c: Include elf/internal.h.
3526 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
3527 to internal range.
3528
3529 2008-03-11 Markus Deuling <deuling@de.ibm.com>
3530
3531 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
3532 to get at the current architecture and at the target specific vector.
3533 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
3534 remove define of I387_ST0_REGNUM.
3535
3536 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
3537
3538 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
3539 get at the current architecture
3540 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
3541 parameter.
3542
3543 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
3544 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
3545
3546 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
3547 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
3548 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
3549
3550 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
3551 at the target specific vector.
3552
3553 (i386_get_longjmp_target): Use get_frame_arch to get at the current
3554 architecture. Use gdbarch_tdep to get at the target specific vector.
3555
3556 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
3557 update caller. Use gdbarch_tdep to get at the target specific vector.
3558
3559 (i386_register_to_value: Use get_frame_arch to get at the current
3560 architecture.
3561
3562 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
3563 parameter.
3564
3565 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
3566 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
3567 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
3568 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
3569
3570 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
3571 undef's.
3572
3573 (i387_convert_register_p, i387_register_to_value,
3574 i387_value_to_register): Update call for i386_fp_regnum_p.
3575
3576 * i387-tdep.h: Remove comment.
3577 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
3578 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
3579 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
3580 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
3581 I387_MXCSR_REGNUM): Add target specific vector as parameter.
3582
3583 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
3584
3585 * Makefile.in (fork-child.o): Update.
3586 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
3587 argument. Gather all gdbserver features together.
3588 * fork-child.c (exec_wrapper): New variable.
3589 (fork_inferior): Use it.
3590 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
3591 (unset_exec_wrapper_command, _initialize_fork_child): New.
3592
3593 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
3594
3595 * source.c (directory_command): Modify the determination of
3596 condition of terminal "from_tty".
3597
3598 2008-03-10 Matt Rice <ratmice@gmail.com>
3599
3600 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
3601
3602 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
3603
3604 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
3605 of the data passing to strtoulst function.
3606 (info_spu_signal_command): Likewise.
3607
3608 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
3609
3610 * mi/mi-interp.c (mi_command_loop): Remove
3611 commented-out code.
3612
3613 2008-03-07 Joel Brobecker <brobecker@adacore.com>
3614
3615 * remote.c (extended_remote_attach_1): Make local variable pid an int
3616 instead of a pid_t.
3617
3618 2008-03-07 Joel Brobecker <brobecker@adacore.com>
3619
3620 * solib-svr4.c (svr4_same_1): New function, originally extracted
3621 from svr4_same and expanded to handle the sparc64 case.
3622 (svr4_same): Move up and reimplement using svr4_same_1.
3623 (enable_break): Use svr4_same_1 to do shared library name comparisons.
3624
3625 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
3626
3627 * MAINTAINERS: Move self to Paper trail.
3628
3629 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
3630
3631 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
3632 * event-loop.c (call_async_signal_handler): New.
3633 * event-loop.h (call_async_signal_handler)
3634 (gdb_call_async_signal_handler): Declare.
3635 (mark_async_signal_handler): Add comments.
3636 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
3637 * mingw-hdep.c (sigint_event, sigint_handler): New.
3638 (gdb_select): Use them. Wait for the readline signal handler
3639 to finish.
3640 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
3641 * posix-hdep.c (gdb_call_async_signal_handler): New function.
3642 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
3643 New.
3644 (remote_fileio_ctrl_c_signal_handler): Use
3645 gdb_call_async_signal_handler.
3646 (initialize_remote_fileio): Initialize sigint_fileio_token.
3647 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
3648 not initialize tokens here.
3649 (handle_remote_sigint_twice): Likewise. Reinstall
3650 handle_remote_sigint.
3651 (async_remote_interrupt_twice): Just call interrupt_query.
3652 (cleanup_sigint_signal_handler): Do not delete tokens.
3653 (remote_interrupt, remote_interrupt_twice): Use
3654 gdb_call_async_signal_handler.
3655 (interrupt_query): Reinstall the default signal handler.
3656 (_initialize_remote): Initialize tokens here.
3657
3658 2008-03-04 Joel Brobecker <brobecker@adacore.com>
3659
3660 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
3661 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
3662 Change the type of the lr register to code_ptr.
3663 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
3664 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
3665 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
3666 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
3667 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
3668 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
3669 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
3670
3671 2008-03-03 James E. Wilson <wilson@tuliptree.org>
3672
3673 * MAINTAINERS: Update my email address.
3674
3675 2008-03-03 Keith Seitz <keiths@redhat.com>
3676
3677 From Dave Murphy <davem@devkitpro.org>:
3678 * configure.ac: Set tcl configdir to win under mingw.
3679 * configure: Regenerate.
3680
3681 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
3682
3683 * breakpoint.c (fetch_watchpoint_value): New function.
3684 (update_watchpoint): Set and clear val_valid. Use
3685 fetch_watchpoint_value. Handle unreadable values on the
3686 value chain. Correct check for user-requested array watchpoints.
3687 (breakpoint_init_inferior): Clear val_valid.
3688 (watchpoint_value_print): New function.
3689 (print_it_typical): Use it. Do not free or clear old_val. Print
3690 watchpoints even if old_val == NULL.
3691 (watchpoint_check): Use fetch_watchpoint_value. Check for values
3692 becoming readable or unreadable.
3693 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
3694 (do_enable_watchpoint): Likewise.
3695 * breakpoint.h (struct breakpoint): Update comment for val. Add
3696 val_valid.
3697 * NEWS: Mention watchpoints on inaccessible memory.
3698
3699 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
3700
3701 * Makefile.in (i386-nat.o): Update.
3702 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
3703 i386_use_watchpoints.
3704 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
3705 i386_use_watchpoints.
3706 * i386-nat.c (i386_stopped_data_address): Take two arguments.
3707 (i386_stopped_by_watchpoint): Update call.
3708 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
3709 * config/i386/nm-i386.h: Conditionalize definitions on
3710 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
3711 (i386_use_watchpoints): Declare.
3712 (i386_stopped_data_address): Update.
3713 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
3714 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
3715
3716 2008-02-29 Joel Brobecker <brobecker@adacore.com>
3717
3718 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
3719 * version.in: Bump version to 6.8.50.20080229-cvs.
3720
3721 2008-02-28 Markus Deuling <deuling@de.ibm.com>
3722
3723 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
3724 properly.
3725
3726 2008-02-28 Tom Tromey <tromey@redhat.com>
3727
3728 * infcmd.c (notice_args_read): Print result of get_inferior_args.
3729
3730 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
3731
3732 * infcmd.c (kill_if_already_running): Make static. Use
3733 target_require_runnable.
3734 * target.c (target_require_runnable): New.
3735 * target.h (target_require_runnable): Declare.
3736
3737 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
3738
3739 * frame.c (reinit_frame_cache): Only annotate if frames were
3740 previously valid.
3741
3742 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3743
3744 * regformats/reg-ppc.dat: Rename "ps" to "msr".
3745 * regformats/reg-ppc64.dat: Likewise.
3746
3747 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3748
3749 * features/Makefile (%.dat): Emit xmltarget statement.
3750
3751 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
3752 Generate code to set gdbserver_xmltarget in init_registers_${name}.
3753
3754 * regformats/arm-with-iwmmxt.dat: Regenerate.
3755 * regformats/mips64-linux.dat: Regenerate.
3756 * regformats/mips-linux.dat: Regenerate.
3757 * regformats/rs6000/powerpc-32.dat: Regenerate.
3758 * regformats/rs6000/powerpc-64.dat: Regenerate.
3759 * regformats/rs6000/powerpc-e500.dat: Regenerate.
3760
3761 * regformats/reg-arm.dat: Add xmlarch statement.
3762 * regformats/reg-i386.dat: Likewise.
3763 * regformats/reg-i386-linux.dat: Likewise.
3764 * regformats/reg-x86-64-linux.dat: Likewise.
3765 * regformats/reg-spu.dat: Likewise.
3766
3767 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
3768
3769 * remote.c (remote_wait, remote_async_wait): Stop if we receive
3770 an error.
3771
3772 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
3773
3774 * utils.c (debug_timestamp): New.
3775 (vfprintf_unfiltered): Print timestamps if requested.
3776 (show_debug_timestamp): New.
3777 (initialize_utils): Register "set debug timestamp".
3778 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
3779
3780 2008-02-27 Joel Brobecker <brobecker@adacore.com>
3781
3782 * breakpoint.c (skip_prologue_sal): New function.
3783 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
3784 computed from a line number.
3785
3786 2008-02-27 Joel Brobecker <brobecker@adacore.com>
3787
3788 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
3789 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
3790 Set PC register type to "code_ptr".
3791 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
3792 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
3793 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
3794 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
3795 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
3796 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
3797 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
3798 Regenerate.
3799
3800 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
3801
3802 * regformats/regdat.sh: Rename init_registers function in
3803 generated file to init_registers_${name}.
3804
3805 * regformats/reg-crisv32.dat: Set "name" to crisv32.
3806 * regformats/reg-ppc64.dat: Set "name" to ppc64.
3807 * regformats/reg-s390x.dat: Set "name" to s390x.
3808
3809 2008-02-26 Greg Law <glaw@undo-software.com>
3810
3811 * regcache.c (registers_changed): Call reinit_frame_cache.
3812
3813 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
3814
3815 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
3816 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
3817 and svr4_fetch_objfile_link_map.
3818 * Makefile.in (sh-linux-tdep.o): Update.
3819
3820 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3821
3822 * amd64-tdep.c (amd64_classify): Add support for decimal float
3823 types.
3824 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
3825 use the struct return convention.
3826
3827 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
3828
3829 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
3830 to old format. Discard breakpoint address if shared library is
3831 unloaded.
3832 (breakpoint_1): Adjust formatting of table header accordingly.
3833
3834 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
3835
3836 * remote.c (remote_get_threadlist): If the response
3837 is empty, don't try to parse it.
3838
3839 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
3840
3841 Unbreak 'target async'.
3842 * serial.c (serial_async): Set the
3843 handler function before enabling async
3844 mode.
3845
3846 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
3847
3848 * solib-svr4.c (enable_break): Convert r_brk to a code address.
3849
3850 2008-02-21 Pedro Alves <pedro@codesourcery.com>
3851
3852 * remote.c (extended_remote_attach_1): Set attach_flag.
3853 (extended_remote_create_inferior_1): Clear attach_flag.
3854
3855 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
3856
3857 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
3858 r_brk_offset.
3859 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
3860 * solib-svr4.c (solib_svr4_r_brk): New.
3861 (open_symbol_file_object, svr4_current_sos): Always check the
3862 debug base.
3863 (svr4_fetch_objfile_link_map): Do not set debug_base.
3864 (enable_break): Use r_brk if it is set.
3865 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
3866 (svr4_lp64_fetch_link_map_offsets): Likewise.
3867 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
3868
3869 2008-02-20 Markus Deuling <deuling@de.ibm.com>
3870 Mark Kettenis <kettenis@gnu.org>
3871
3872 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
3873 trad_frame_saved_reg.
3874 (trad-frame.h): New include.
3875
3876 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
3877 instead of frame_obstack_zalloc.
3878 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
3879
3880 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
3881
3882 2008-02-20 Markus Deuling <deuling@de.ibm.com>
3883
3884 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
3885 from disassemble_info instead of gdbarch_byte_order.
3886
3887 * mips-tdep.c (gdb_print_insn_mips): Likewise.
3888 * arm-tdep.c (gdb_print_insn_arm): Likewise.
3889
3890 2008-02-20 Markus Deuling <deuling@de.ibm.com>
3891
3892 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
3893 gdbarch as parameter.
3894
3895 * gdbarch.{c,h}: Regenerate.
3896
3897 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
3898 parameter.
3899 * mem-break.c (default_memory_insert_breakpoint)
3900 (default_memory_remove_breakpoint): Likewise.
3901 * target.h (default_memory_remove_breakpoint)
3902 (default_memory_insert_breakpoint): Likewise.
3903
3904 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
3905 parameter. Replace current_gdbarch by gdbarch.
3906 * m32r-tdep.c (m32r_memory_insert_breakpoint)
3907 (m32r_memory_remove_breakpoint): Likewise.
3908
3909 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
3910
3911 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
3912
3913 2008-02-19 Joel Brobecker <brobecker@adacore.com>
3914
3915 * NEWS: Add entry describing Add support improvements.
3916
3917 2008-02-18 Markus Deuling <deuling@de.ibm.com>
3918
3919 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
3920 M68K_FP0_REGNUM.
3921
3922 2008-02-18 Markus Deuling <deuling@de.ibm.com>
3923
3924 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
3925 register_offset_hack anymore.
3926
3927 * regcache.{c,h} (register_offset_hack): Remove.
3928
3929 2008-02-18 Markus Deuling <deuling@de.ibm.com>
3930
3931 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
3932
3933 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
3934 current_gdbarch by gdbarch.
3935 (hppa64_hpux_find_global_pointer): Likewise.
3936 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
3937 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
3938 find_global_pointer.
3939
3940 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
3941 parameter.
3942 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3943
3944 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
3945 of gdbarch_num_regs.
3946
3947 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
3948 replace current_gdbarch by gdbarch.
3949 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
3950
3951 2008-02-18 Markus Deuling <deuling@de.ibm.com>
3952
3953 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
3954 and replace current_gdbarch by gdbarch.
3955
3956 (store_register): Update call for exec_one_dummy_insn.
3957 (fetch_register, store_register): Update call of regmap.
3958
3959 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
3960 parameter and replace current_gdbarch by gdbarch.
3961
3962 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
3963 the current architecture. Update call for getregs_supplies and
3964 getfpregs_supplies.
3965 (ppcnbsd_fetch_inferior_registers): Likewise.
3966
3967 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
3968 replace current_gdbarch by gdbarch.
3969 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
3970 get_regcache_arch to get at the current architecture. Update call for
3971 getfpregs_supplies.
3972
3973 2008-02-18 Markus Deuling <deuling@de.ibm.com>
3974
3975 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
3976 variables.
3977
3978 2008-02-15 Markus Deuling <deuling@de.ibm.com>
3979
3980 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
3981
3982 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
3983
3984 * NEWS: Mention pending breakpints in MI.
3985
3986 2008-02-14 Markus Deuling <deuling@de.ibm.com>
3987
3988 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
3989
3990 2008-02-13 Markus Deuling <deuling@de.ibm.com>
3991
3992 Add script to build and test GDB using enable-targets=all.
3993
3994 * gdb_buildall.sh: New file.
3995
3996 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
3997
3998 * NEWS (New native configurations): Xtensa GNU/Linux.
3999 (New targets): Xtensa GNU/Linux.
4000 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
4001 xtensa-linux-tdep.o
4002 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
4003 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
4004 * configure.tgt (xtensa*-*-linux*): New entry.
4005 * xtensa-config.c (xtensa_tdep): New variable.
4006 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
4007 (rmap): Change format based on new macro XTREG.
4008 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
4009 * xtensa-linux-nat.c: New.
4010 * xtensa-linux-tdep.c: New.
4011 * xtensa-xtregs.c: New.
4012 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
4013 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
4014 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
4015 (xtensa_register_t): New field coprocessor.
4016 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
4017 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
4018 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
4019 Update to handle privileged registers.
4020 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
4021 (xtensa_push_dummy_call): Set windowstart register correctly.
4022 (call0_analyze_prologue): Initialize xtensa_default_isa.
4023 (xtensa_derive_tdep): New.
4024 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
4025 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
4026 Call xtensa_derive_tdep().
4027 * config/xtensa/linux.mh: New.
4028 * regformats/reg-xtensa.dat: New.
4029
4030 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
4031
4032 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
4033 (filenames.h): New include.
4034 * Makefile.in (corelow.o): Add dependency for filenames.h.
4035
4036 2008-02-08 Doug Evans <dje@google.com>
4037
4038 * source.c (find_and_open_source): Always rewrite absolute filenames.
4039
4040 2008-02-07 Doug Evans <dje@google.com>
4041
4042 * breakpoint.c: #include "hashtab.h".
4043 (ambiguous_names_p): New fn.
4044 (update_breakpoint_locations): When restoring bp enable status, don't
4045 compare function names if any functions have same name.
4046 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
4047
4048 2008-02-07 Joel Brobecker <brobecker@adacore.com>
4049
4050 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
4051 instead of just a VEC*. Update use of SV.
4052 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
4053
4054 2007-02-07 Joel Brobecker <brobecker@adacore.com>
4055
4056 * NEWS: Put all new commands since gdb-6.7 together.
4057
4058 2007-02-07 Joel Brobecker <brobecker@adacore.com>
4059
4060 * ada-lang.c: #include "vec.h".
4061 (struct string_vector, new_string_vector, string_vector_append):
4062 Delete.
4063 (char_ptr): New typedef.
4064 (DEF_VEC_P (char_ptr)): New VEC type.
4065 (symbol_completion_add): Update profile to take the new VEC type
4066 instead of the old string_vector structure. Update code accordingly.
4067 (ada_make_symbol_completion_list): Use the new VEC type instead of
4068 the old string_vector structure, and update the code accordingly.
4069 * Makefile.in (ada-lang.o): Add dependency on vec.h.
4070
4071 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
4072
4073 * p-exp.y: Set current_type in missing places.
4074 (leftdiv_is_integer): New static variable.
4075 Typecast right operand of BINOP_DIV to long_double if both operands
4076 are integers.
4077
4078 2008-02-06 Maciej W. Rozycki <macro@mips.com>
4079
4080 * remote-mips.c (set_breakpoint): Rename to...
4081 (mips_set_breakpoint): ... this.
4082 (clear_breakpoint): Rename to...
4083 (mips_clear_breakpoint): ... this.
4084 (common_breakpoint): Rename to...
4085 (mips_common_breakpoint): ... this.
4086 (check_lsi_error): Rename to...
4087 (mips_check_lsi_error): ... this.
4088
4089 2007-02-05 Joel Brobecker <brobecker@adacore.com>
4090
4091 * language.h (struct language_defn): Add new field
4092 la_make_symbol_completion_list.
4093 * symtab.c (default_make_symbol_completion_list): Renames
4094 make_symbol_completion_list.
4095 (make_symbol_completion_list): New function.
4096 * symtab.h (default_make_symbol_completion_list): Add declaration.
4097 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
4098 (auto_language, local_language): Likewise.
4099 * objc-lang.c (objc_language_defn): Likewise.
4100 * scm-lang.c (scm_language_defn): Likewise.
4101 * m2-lang.c (m2_language_defn): Likewise.
4102 * f-lang.c (f_language_defn): Likewise.
4103 * jv-lang.c (java_language_defn): Likewise.
4104 * p-lang.c (pascal_language_defn): Likewise.
4105 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
4106 (minimal_language_defn): Likewise.
4107 * ada-lang.c (struct string_vector): New structure.
4108 (new_string_vector, string_vector_append, ada_unqualified_name)
4109 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
4110 (ada_make_symbol_completion_list): New functions.
4111 (ada_language_defn): Set la_make_symbol_completion_list.
4112 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
4113 this function is static.
4114
4115 2008-02-05 Kevin Buettner <kevinb@redhat.com>
4116
4117 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
4118 to account for call site optimizations.
4119
4120 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
4121
4122 * tracepoint.c (read_actions): Handle end-of-text indicator
4123 in action list properly. (Committed by Jim Blandy)
4124
4125 2008-02-05 Jim Blandy <jimb@red-bean.com>
4126
4127 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
4128 pseudoregister, not an internal error.
4129 Reported by: Andrzej Zaborowski
4130
4131 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
4132
4133 * varobj.c (c_value_of_variable): Use xstrdup.
4134
4135 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
4136
4137 Update stored rendition of varobj value when format changes.
4138 * varobj.c (varobj_set_display_format): Recomputed
4139 print_value.
4140 (c_value_of_variable): Return print_value.
4141
4142 2008-02-03 Doug Evans <dje@google.com>
4143
4144 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
4145 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
4146 * valops.c (value_one): New function.
4147 * value.h (value_one): Declare.
4148
4149 Fix argument promotion for binary arithmetic ops for C.
4150 * valarith.c (unop_result_type): New fn.
4151 (binop_result_type): New fn.
4152 (value_binop): Move result type computation to binop_result_type.
4153 (value_pos, value_neg, value_complement): Move result type
4154 computation to unop_result_type.
4155
4156 PR 2384
4157 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
4158 Return basetype, fieldno if found. All callers updated.
4159 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
4160 objfile.
4161 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
4162 * symfile.h (fill_in_vptr_fieldno): Delete.
4163
4164 2008-02-02 Doug Evans <dje@google.com>
4165
4166 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
4167
4168 * typeprint.c (*): Whitespace cleanup.
4169
4170 2008-02-02 Mark Kettenis <kettenis@gnu.org>
4171 Luis Machado <luisgpm@br.ibm.com>
4172 Thiago Jung Bauermann <bauerman@br.ibm.com>
4173
4174 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
4175 don't fit into registerson the stack the way GCC does.
4176
4177 2008-02-01 Joel Brobecker <brobecker@adacore.com>
4178
4179 * symtab.c (symbol_set_names): Do not add an entry in the demangling
4180 hash table for Ada symbols. Just store the linkage name as is,
4181 and leave the demangled_name as NULL.
4182
4183 2007-02-01 Joel Brobecker <brobecker@adacore.com>
4184
4185 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
4186 in the global scope.
4187 (new_symbol): Likewise.
4188
4189 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
4190
4191 * breakpoint.c (break_command_1): Return void.
4192 (break_command_really): Return void. Rethrow
4193 exceptions instead of returning.
4194 (gdb_breakpoint): Remove the error_message parameter.
4195 Return void. Rename to set_breakpoint.
4196 * gdb.h (gdb_breakpoint): Rename and move to...
4197 * breakpoint.h (set_breakpoint): ...here.
4198 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
4199 event hooks even if exception is thrown. Adjust to
4200 gdb_breakpoint interface changes.
4201
4202
4203 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
4204
4205 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
4206 float in both first and second word in the doubleword, to support
4207 old and new ABIs.
4208
4209 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
4210
4211 Properly rethrow exception. This fixes errors
4212 about non-existent functions for -break-insert.
4213 * breakpoint.c (break_command_really): Use throw_exception
4214 for rethrowing. If rethrowing, don't print the exception.
4215
4216 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4217
4218 * NEWS: Mention Decimal Floating Point support.
4219
4220 2008-01-31 Joel Brobecker <brobecker@adacore.com>
4221
4222 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
4223 value type to builtin_type_void_func_ptr.
4224
4225 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
4226
4227 * s390-tdep.c (is_float_singleton, is_float_like,
4228 alignment_of, s390_return_value): Make checks for
4229 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
4230
4231 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
4232 Thiago Jung Bauermann <bauerman@br.ibm.com>
4233
4234 * infcmd.c (default_print_registers_info): Also print hex
4235 raw contents for TYPE_CODE_DECFLOAT registers.
4236 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
4237 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
4238 (rs6000_register_name): Add support for DFP pseudo-registers.
4239 (rs6000_pseudo_register_type): Likewise.
4240 rs6000_pseudo_register_reggroup_p): Likewise.
4241 (ppc_pseudo_register_read): New function.
4242 (ppc_pseudo_register_write): Likewise.
4243 (rs6000_pseudo_register_read): Likewise.
4244 (rs6000_pseudo_register_write): Likewise.
4245 (e500_pseudo_register_read): Move checks to
4246 rs6000_pseudo_register_read.
4247 (e500_pseudo_register_write): Move checks to
4248 rs6000_pseudo_register_write.
4249 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
4250 rs6000_pseudo_register_read and rs6000_pseudo_register_write
4251 in gdbarch if SPE or DFP is available. Adjust gdbarch's
4252 num_pseudo_regs to account for DFP pseudo regs.
4253
4254 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4255
4256 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
4257 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
4258 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
4259 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
4260 e500_pseudo_register_read, e500_pseudo_register_write): Use
4261 IS_SPE_PSEUDOREG macro.
4262 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
4263 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
4264 Remove initialization of tdep->ppc_ev31_regnum.
4265
4266 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
4267
4268 * printcmd.c (print_formatted): Handle references as for unformatted
4269 prints.
4270
4271 2008-01-30 Joel Brobecker <brobecker@adacore.com>
4272
4273 * eval.c (evaluate_subexp_standard): Add handling of user
4274 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
4275
4276 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
4277
4278 * eval.c (evaluate_subexp_standard): Support
4279 BINOP_INTDIV opcode.
4280
4281 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
4282
4283 * valarith.c (value_binop): Add floating-point BINOP_MIN and
4284 BINOP_MAX cases.
4285 For BINOP_EXP, use length and signedness of left operand only for
4286 result, as for shifts.
4287 For integral operands to BINOP_EXP, use new integer_pow and
4288 uinteger_pow functions so as to get full range of results.
4289 (integer_pow): New function.
4290 (uinteger_pow): New function.
4291
4292 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
4293
4294 Use vector for varobj_list_children interface.
4295 * gdb/varobj.c (varobj_list_children): Return vector
4296 of varobjs.
4297 * gdb/varobj.h (varobj_list_children): Adjust
4298 prototype.
4299 (varobj_p): Declare. Declare vector thereof.
4300 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
4301 for varobj_list_children change.
4302 * Makefile.in (varobj_h): Update dependencies.
4303
4304 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4305
4306 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
4307 TYPE_CODE_DECFLOAT arguments.
4308 (ppc64_sysv_abi_push_dummy_call) Likewise.
4309 (get_decimal_float_return_value): New function.
4310 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
4311 values by calling get_decimal_float_return_value.
4312 (ppc64_sysv_abi_return_value): Likewise.
4313
4314 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
4315
4316 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
4317 for preprocessor macro information. Formatting changes.
4318
4319 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
4320
4321 * remote.c (struct remote_state): Add cached_wait_status.
4322 (remote_exec_file): New variable.
4323 (PACKET_vAttach, PACKET_vRun): New constants.
4324 (extended_remote_restart): Do not query for status.
4325 (struct start_remote_args): New.
4326 (remote_start_remote): Take it as a second argument. Check
4327 whether the target is running. Issue an error for non-running
4328 non-extended targets. Cache the wait status. Set inferior_ptid
4329 here.
4330 (remote_open_1): Prompt to disconnect non-running targets. Make
4331 sure the target is marked running. Do not set inferior_ptid here.
4332 Update call to remote_start_remote. Do not call remote_check_symbols
4333 if the target is not running.
4334 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
4335 argument. Handle a non-running target.
4336 (remote_detach): Use it.
4337 (extended_remote_detach): New.
4338 (remote_disconnect): Fix typo. Use remoute_mourn_1.
4339 (extended_remote_attach_1, extended_remote_attach)
4340 (extended_async_remote_attach): New.
4341 (remote_vcont_resume): Remove unused variable.
4342 (remote_wait, remote_async_wait): Use any cached wait status.
4343 (putpkt_binary, getpkt): Clear any cached wait status.
4344 (extended_remoute_mourn_1): New.
4345 (extended_remote_mourn): Use it.
4346 (extended_async_remote_mourn, extended_remote_run): New.
4347 (extended_remote_create_inferior_1): New.
4348 (extended_remote_create_inferior): Use it.
4349 (extended_remote_async_create_inferior): Likewise.
4350 (remote_xfer_partial): Skip for non-executing targets.
4351 (init_extended_remote_ops): Set to_detach and to_attach.
4352 (init_extended_async_remote_ops): Likewise. Use
4353 extended_async_remote_mourn.
4354 (_initialize_remote): Register vAttach, vRun, and
4355 set remote exec-file.
4356 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
4357
4358 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
4359
4360 * Makefile.in (symfile.o): Update.
4361 * NEWS: Mention exec tracing support.
4362 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
4363 exec events.
4364 * infcmd.c (kill_if_already_running, detach_command)
4365 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
4366 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
4367 (follow_exec): Do not check may_follow_exec. Do not mourn and push
4368 targets. Apply the sysroot path to the loaded executable. Use
4369 no_shared_libraries.
4370 * linux-nat.c (linux_child_follow_fork): Print fork following
4371 messages if verbose.
4372 (kill_wait_callback): Kill again before waiting a second time.
4373 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
4374 no_shared_libraries.
4375
4376 2008-01-29 Joel Brobecker <brobecker@adacore.com>
4377
4378 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
4379
4380 2008-01-29 Joel Brobecker <brobecker@adacore.com>
4381
4382 * nto-tdep.h: Remove #include "defs.h".
4383 * nto-tdep.c: Add #include "defs.h".
4384 * Makefile.in (nto_tdep_h): Update dependencies.
4385 (nto-tdep.o): Likewise.
4386
4387 2008-01-29 Joel Brobecker <brobecker@adacore.com>
4388
4389 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
4390 and use it.
4391 (proceed, start_remote): Update call to wait_for_inferior.
4392 * inferior.h (wait_for_inferior): Update declaration.
4393 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
4394 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
4395 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
4396 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
4397
4398 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
4399
4400 * varobj (adjust_value_for_child_access): Added checking for
4401 returned value from gdb_value_ind.
4402 (c_describe_child): Likewise.
4403 (cplus_describe_child): Fixed a typo.
4404
4405 2008-01-29 Jim Blandy <jimb@red-bean.com>
4406
4407 * MAINTAINERS: Update my info.
4408
4409 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
4410
4411 Use multiple locations for hardware watchpoints.
4412 This eliminates the need to traverse value chain, doing
4413 various checks, in three different places.
4414
4415 * breakpoint.h (struct bp_location): New fields
4416 lengths and watchpoint_type.
4417 (struct breakpoint): Remove the val_chain field.
4418 * breakpoint.c (is_hardware_watchpoint): New.
4419 (free_valchain): Remove.
4420 (update_watchpoint): New.
4421 (insert_bp_location): For hardware watchpoint, just
4422 directly insert it.
4423 (insert_breakpoints): Call update_watchpoint_locations
4424 on all watchpoints. If we have failed to insert
4425 any location of a hardware watchpoint, remove all inserted
4426 locations.
4427 (remove_breakpoint): For hardware watchpoints, directly
4428 remove location.
4429 (watchpoints_triggered): Iterate over locations.
4430 (bpstat_stop_status): Use only first location of
4431 a resource watchpoint.
4432 (delete_breakpoint): Don't call free_valchain.
4433 (print_one_breakpoint): Don't print all
4434 locations for watchpoints.
4435 (breakpoint_re_set_one): Use update_watchpoint for
4436 watchpoints.
4437
4438 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
4439
4440 Don't reset watchpoint block on solib load.
4441
4442 * breakpoint.c (insert_bp_location): For watchpoints,
4443 recompute condition.
4444 (breakpoint_re_set_one): Instead of recomputing value
4445 and condition for watchpoints, just reset value and
4446 let insert_breakpoints/insert_bp_location recompute it.
4447 Don't do anything about disabled watchpoint.
4448
4449 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
4450
4451 * valarith.c (value_binop): Handle unsigned integer
4452 division by zero.
4453
4454 2008-01-28 Kevin Buettner <kevinb@redhat.com>
4455
4456 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
4457 instruction pattern that appears frequently in position
4458 independent code. Fix bug in code which looks for "fmov" and
4459 backtracks if no "fmov" is found.
4460
4461 2008-01-28 Doug Evans <dje@google.com>
4462
4463 * dbxread.c (read_dbx_symtab): Fix indentation.
4464 Reformat comments to 80 columns.
4465 Move local var def closer to only use.
4466
4467 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
4468
4469 * fork-child.c (SHELL_FILE): Remove #ifndef.
4470 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
4471
4472 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
4473
4474 * i386-tdep.c (i386_skip_noop): New function.
4475 (i386_analyze_prologue): Call i386_skip_noop function.
4476
4477 2008-01-24 Michael Snyder <msnyder@specifix.com>
4478
4479 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
4480 * win32-nat.c (win32_xfer_partial): Ditto.
4481 * target.c (default_xfer_partial): Minor whitespace adjustment.
4482
4483 2008-01-24 Pedro Alves <pedro@codesourcery.com>
4484
4485 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
4486 strip bit 1 even if pc doesn't point to thumb code.
4487
4488 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
4489
4490 * remote.c (remote_wait): Handle SIGINT between packets.
4491 (remote_async_wait): Likewise.
4492
4493 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
4494 Chris Demetriou <cgd@google.com>
4495
4496 * thread.c (add_thread_silent): Renamed
4497 from add_thread.
4498 (print_thread_events): New variable definition.
4499 (show_print_thread_events): New function.
4500 (_initialize_thread): Add "set print thread-events" and
4501 "show print thread-events" commands.
4502 (add_thread): Announce new thread.
4503 * gdbthread.h (add_thread_silent): Declare.
4504 (print_thread_events): New variable declaration.
4505 * inf-ttrace.c (inf_ttrace_wait): Don't
4506 inform about new thread, as add_thread is always
4507 called too, and will take care of that.
4508 * infrun.c (handle_inferior_event): Likewise.
4509 * procfs.c (procfs_wait): Likewise.
4510 * remote.c (remote_currthread): Likewise.
4511 * sol-thread.c (sol_thread_wait): Likewise.
4512 * win32-nat.c (get_win32_debug_event): Likewise.
4513 * linux-thread-db.c (attach_thread): Likewise.
4514 Remove the verbose parameter.
4515 (check_event): Make detach_thread be verbose
4516 only if print_thread_events is set.
4517 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
4518 about new thread. This is called only from
4519 linux-thread-db.c:attach_thread, which will take care.
4520 Remove the verbose parameter.
4521 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
4522
4523 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
4524
4525 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
4526
4527 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
4528
4529 * breakpoint.c (break_command_really): New parameter
4530 ignore_count.
4531 (break_command_1): Pass 0 as
4532 ignore_count to break_command_really.
4533 (gdb_breakpoint): Pass ignore_count to
4534 break_command_really.
4535
4536 2008-01-21 Kevin Buettner <kevinb@redhat.com>
4537
4538 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
4539 sigcontext struct via pointer.
4540 (struct sigframe comment): Update to show new field `psc'.
4541
4542 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
4543
4544 * infrun.c (handle_inferior_event): If
4545 we failed to remove breakpoints, error,
4546 don't try to increment PC by hand.
4547
4548 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
4549
4550 Add NetBSD/hppa target and host support.
4551
4552 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
4553 (hppabsd_gregset): Move to ...
4554 (hppabsd_regset_from_core_section): Rename
4555 hppaobsd_regset_from_core_section and move to ...
4556 (hppabsd_find_global_pointer): Update comment.
4557 (hppabsd_init_abi): Make global. Do not register
4558 hppabsd_regset_from_core_section.
4559 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
4560 move to ...
4561 (_initialize_hppabsd_tdep): Move to ...
4562 * hppaobsd-tdep.c: ... here. New file.
4563 * hppnbsd-tdep.c: New file.
4564 * hppnbsd-nat.c: New file.
4565 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
4566 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4567 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
4568 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
4569 * configure.host (hppa*-*-netbsd*): New entry.
4570 * configure.tgt (hppa*-*-netbsd*): New entry.
4571 (hppa*-*-openbsd*): Update.
4572 * NEWS (New native configuration): Mention NetBSD/hppa.
4573 (New targets): Mention NetBSD/hppa.
4574
4575 2008-01-18 Markus Deuling <deuling@de.ibm.com>
4576
4577 * gdbarch.sh (function_list): Add new property bits_big_endian to
4578 gdbarch structure.
4579 * gdbarch.{c,h}: Regenerate.
4580
4581 * value.c (struct value): Replace BITS_BIG_ENDIAN by
4582 gdbarch_bits_big_endian (comment).
4583 (unpack_field_as_long, modify_field): Likewise.
4584 * value.h: Likewise (comment).
4585 * valops.c (value_slice): Likewise.
4586 * valarith.c (value_subscript, value_bit_index): Likewise.
4587 * gdbtypes.h (field): Likewise (comment).
4588 * eval.c (evaluate_subexp_standard): Likewise.
4589 * dwarf2read.c (dwarf2_add_field): Likewise.
4590 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
4591 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
4592
4593 * defs.h (BITS_BIG_ENDIAN): Remove.
4594
4595 2008-01-18 Markus Deuling <deuling@de.ibm.com>
4596
4597 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
4598 function calls.
4599 * m2-exp.y (yylex): Likewise.
4600 * objc-exp.y (yylex): Likewise.
4601
4602 * defs.h (DEPRECATED_STREQN): Remove.
4603
4604 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
4605
4606 * MAINTAINERS: Update my email address.
4607
4608 2008-01-17 Jim Blandy <jimb@codesourcery.com>
4609
4610 * README: Mention gdbserver/README.
4611
4612 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
4613
4614 * valarith.c (value_binop): Handle BINOP_INTDIV
4615 for unsigned and signed integers.
4616
4617 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
4618
4619 * s390-tdep.c (s390_gdbarch_init): Set default long double
4620 type to 128-bit IEEE quad.
4621
4622 2008-01-17 Joel Brobecker <brobecker@adacore.com>
4623
4624 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
4625
4626 2008-01-16 Mark Kettenis <kettenis@gnu.org>
4627
4628 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
4629
4630 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
4631 * value.c: All callers changed.
4632
4633 2008-01-16 Markus Deuling <deuling@de.ibm.com>
4634
4635 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
4636 DEPRECATED_STREQ by its expression.
4637 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
4638 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
4639 (scan_xcoff_symtab): Likewise.
4640 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
4641 * f-lang.c (find_common_for_function): Likewise.
4642 * objc-exp.y (parse_number): Likewise.
4643
4644 * defs.h (DEPRECATED_STREQ): Remove.
4645
4646 2008-01-16 Markus Deuling <deuling@de.ibm.com>
4647
4648 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
4649 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
4650 get_frame_arch to get at the current_architecture. Update AM33_MODE
4651 call.
4652 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
4653 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
4654 architecture.
4655 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
4656
4657 2008-01-16 Markus Deuling <deuling@de.ibm.com>
4658
4659 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
4660 parameter.
4661 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
4662
4663 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
4664 current_gdbarch by gdbarch. Update caller.
4665
4666 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
4667 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
4668 the current architecture. Update calls of
4669 amd64_native_gregset_supplies_p.
4670 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
4671 (amd64bsd_store_inferior_registers): Likewise.
4672
4673 2008-01-16 Markus Deuling <deuling@de.ibm.com>
4674
4675 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
4676 Replace current_gdbarch by gdbarch. Update caller.
4677
4678 2008-01-16 Markus Deuling <deuling@de.ibm.com>
4679
4680 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
4681 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
4682 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
4683 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
4684 (stabsect_build_psymtabs): Fix indentation.
4685
4686 2008-01-15 Michael Snyder <msnyder@specifix.com>
4687
4688 * corelow.c (core_xfer_partial): Comment, cut/paste error.
4689
4690 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
4691
4692 * win32-nat.c (win32_create_inferior): Restore code calling
4693 CloseHandle on ProcessInformation structure.
4694
4695 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
4696
4697 * configure.ac: Check for void * as 3 argument of ptrace.
4698 * configure: regenerate.
4699
4700 2008-01-11 Markus Deuling <deuling@de.ibm.com>
4701
4702 * alpha-tdep.c (alpha_heuristic_proc_start)
4703 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
4704 current_gdbarch by gdbarch.
4705
4706 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
4707 current architecture by frame_info. Update alpha_heuristic_proc_start
4708 call.
4709
4710 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
4711 get_frame_arch to get at the current architecture by frame_info. Update
4712 alpha_sigtramp_register_address call.
4713
4714 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
4715 current_gdbarch by gdbarch. Update caller.
4716 (convert_to_extended, convert_from_extended): Add endianess parameter
4717 for comparison. Update caller.
4718 (arm_extract_return_value, arm_store_return_value): Use
4719 get_regcache_arch to get at the current architecture.
4720
4721 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
4722 current_gdbarch by gdbarch. Update caller.
4723 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
4724 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
4725
4726 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
4727 gdbarch as parameter. Update caller.
4728 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
4729 current_gdbarch by gdbarch. Update caller.
4730
4731 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
4732 update caller. Replace current_gdbarch by gdbarch.
4733
4734 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
4735 the current architecture. Replace current_gdbarch by gdbarch.
4736 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
4737 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
4738 expression. Add gdbarch as parameter and replace current_gdbarch with
4739 it. Update caller.
4740 (M6811_TDEP): Remove.
4741 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
4742 architecture.
4743 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
4744 current_gdbarch by gdbarch. Update caller.
4745
4746 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
4747 update caller.
4748 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
4749 by gdbarch.
4750
4751 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
4752 caller. Relace current_gdbarch by gdbarch.
4753 (altivec_register_p, spe_register_p): Likewise.
4754 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
4755 parameter.
4756 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
4757 altivec_register_p and spe_register_p.
4758
4759 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
4760 caller. Replace current_gdbarch by gdbarch.
4761 (score_analyze_prologue): use get_frame_arch to get at the current
4762 architecture.
4763
4764 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
4765 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
4766 current_gdbarch by gdbarch. Update caller.
4767 (sparc_frame_cache): Use get_frame_arch to get at the current
4768 architecture.
4769 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
4770 sparc_analyze_prologue.
4771
4772 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
4773 parameter.
4774
4775 2008-01-11 Markus Deuling <deuling@de.ibm.com>
4776
4777 * exec.c: #include "arch-utils.h"
4778 (print_section_info): Use gdbarch_from_bfd to get at the
4779 current architecture. Replace current_gdbarch. Fix indention. Replace
4780 deprecated_print_address_numeric by paddress.
4781 * Makefile.in (exec.o) Add dependency to arch-utils.h.
4782
4783 * valprint.c (val_print_string): Replace
4784 deprecated_print_address_numeric.
4785 * tracepoint.c (trace_mention, scope_info): Likewise.
4786 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
4787 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
4788 (maintenance_check_symtabs): Likewise.
4789 * symfile.c (list_overlays_command): Likewise.
4790 * stack.c (frame_info, print_block_frame_labels): Likewise.
4791 * printcmd.c (print_address, print_address_demangle)
4792 (address_info): Likewise.
4793 * corefile.c (memory_error): Likewise.
4794 * infcmd.c (jump_command): Likewise.
4795 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
4796 (mention, delete_breakpoint): Likewise.
4797 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
4798 * dwarf2read.c (dump_die): Likewise.
4799 * ada-valprint.c (ada_val_print_1): Likewise.
4800 * f-valprint.c (f_val_print): Likewise.
4801 * linux-fork.c (info_forks_command): Likewise.
4802 * m32r-com.c (m32r_load_section, m32r_load)
4803 (m32r_upload_command): Likewise.
4804
4805 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
4806
4807 2008-01-11 Markus Deuling <deuling@de.ibm.com>
4808
4809 * gdbarch.sh (skip_prologue): Add gdbarch
4810 as parameter.
4811 * gdbarch.{c,h}: Regenerate.
4812
4813 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
4814 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4815 * avr-tdep.c (avr_skip_prologue): Likewise.
4816 * cris-tdep.c (cris_skip_prologue): Likewise.
4817 * frv-tdep.c (frv_skip_prologue): Likewise.
4818 * h8300-tdep.c (h8300_skip_prologue): Likewise.
4819 * hppa-tdep.c (hppa_skip_prologue): Likewise.
4820 * i386-tdep.c (i386_skip_prologue): Likewise.
4821 * ia64-tdep.c (ia64_skip_prologue): Likewise.
4822 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
4823 * m32r-tdep.c (m32r_skip_prologue): Likewise.
4824 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
4825 * m68k-tdep.c (m68k_skip_prologue): Likewise.
4826 * m88k-tdep.c (m88k_skip_prologue): Likewise.
4827 * mep-tdep.c (mep_skip_prologue): Likewise.
4828 * mips-tdep.c (mips_skip_prologue): Likewise.
4829 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
4830 * mt-tdep.c (mt_skip_prologue): Likewise.
4831 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
4832 * score-tdep.c (score_skip_prologue): Likewise.
4833 * sh64-tdep.c (sh64_skip_prologue): Likewise.
4834 * sh-tdep.c (sh_skip_prologue): Likewise.
4835 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
4836 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
4837 * spu-tdep.c (spu_skip_prologue): Likewise.
4838 * v850-tdep.c (v850_skip_prologue): Likewise.
4839 * vax-tdep.c (vax_skip_prologue): Likewise.
4840 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
4841 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
4842
4843 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
4844 current_gdbarch by gdbarch.
4845 * m32c-tdep.c (m32c_skip_prologue): Likewise.
4846 * s390-tdep.c (s390_skip_prologue): Likewise.
4847
4848 2008-01-10 Doug Evans <dje@google.com>
4849
4850 * defs.h (struct continuation_arg): Fix typo in comment.
4851 * target.c (target_translate_tls_address): Fix comment spelling error.
4852
4853 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
4854
4855 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
4856 (DOUBLEST_SCAN_FORMAT): Likewise.
4857 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
4858 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
4859 * c-exp.y (parse_number): Likewise.
4860 * jv-exp.y (parse_number): Likewise.
4861 * objc-exp.y (parse_number): Likewise.
4862 * p-exp.y (parse_number): Likewise.
4863
4864 2008-01-09 Joel Brobecker <brobecker@adacore.com>
4865
4866 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
4867 (check_typedef): Likewise.
4868
4869 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
4870
4871 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
4872 seen_double_big_d, treat the new H, D, and DD modifiers as length
4873 modifiers.
4874
4875 2008-01-08 Joel Brobecker <brobecker@adacore.com>
4876
4877 * dwarf2read.c (read_enumeration_type): Add comment.
4878
4879 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
4880
4881 * config.in: Regenerate.
4882
4883 2008-01-08 Joel Brobecker <brobecker@adacore.com>
4884
4885 * ada-lang.c (ada_convert_actual): Renames convert_actual.
4886 Make non-static.
4887 (ada_convert_actuals): Delete.
4888 * ada-lang.h (ada_convert_actual): Add declaration.
4889 (ada_convert_actuals): Remove declaration.
4890 * infcall.c: #include "ada-lang.h".
4891 (value_arg_coerce): Add new parameter sp. Update function
4892 documetnation. Add handling of Ada function call parameters.
4893 * Makefile.in (infcall.o): Update dependencies.
4894
4895 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
4896
4897 * ada-lang.c (ensure_lval): Fix value lval kind.
4898 (convert_actual): Add handling for arguments passed by reference.
4899
4900 2008-01-08 Doug Evans <dje@google.com>
4901
4902 * dbxread.c (read_dbx_symtab): Fix indentation.
4903
4904 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4905
4906 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
4907 (valarith.o): Depend on dfp.h.
4908 (valops.o): Likewise.
4909 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
4910 (set_decnumber_context): New function.
4911 (decimal_check_errors): Likewise.
4912 (decimal_from_number): Likewise.
4913 (decimal_to_number): Likewise.
4914 (decimal_from_string): Use set_decnumber_context and
4915 decimal_check_errors.
4916 (decimal_from_integral): New function.
4917 (decimal_from_floating): Likewise.
4918 (decimal_to_double): Likewise.
4919 (promote_decimal): Likewise.
4920 (decimal_binop): Likewise.
4921 (decimal_is_zero): Likewise.
4922 (decimal_compare): Likewise.
4923 (decimal_convert): Likewise.
4924 * dfp.h (decimal_from_integral): New prototype.
4925 (decimal_from_floating): Likewise.
4926 (decimal_to_double): Likewise.
4927 (decimal_binop): Likewise.
4928 (decimal_is_zero): Likewise.
4929 (decimal_compare): Likewise.
4930 (decimal_convert): Likewise.
4931 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
4932 call to value_from_decfloat.
4933 * valarith.c: Include dfp.h.
4934 (value_args_as_decimal): New function.
4935 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
4936 (value_logical_not): Likewise.
4937 (value_equal): Likewise.
4938 (value_less): Likewise.
4939 (value_pos): Likewise.
4940 (value_neg): Formatting fix.
4941 * valops.c: Include dfp.h.
4942 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
4943 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
4944 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
4945 (value_from_decfloat): Remove expect_type argument.
4946 * value.h (value_from_decfloat): Update prototype.
4947
4948 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
4949
4950 Ignore change in name of dynamic linker during
4951 execution on Solaris. This also unbreaks pending breakpoints.
4952
4953 * solist.h (struct target_so_ops): New field same.
4954 * solib-svr4.c (svr4_same): New.
4955 (_initialize_svr4_solib): Register svr4_same.
4956 * solib.c (update_solib_list): Use ops->same, if available.
4957
4958 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
4959
4960 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
4961 when using MS-DOS paths.
4962
4963 2008-01-05 Pedro Alves <pedro@codesourcery.com>
4964
4965 * NEWS: Mention --pid and --core command line behaviour changes.
4966
4967 2008-01-05 Pedro Alves <pedro@codesourcery.com>
4968
4969 * main.c (captured_main): Remove 'count' varible and the
4970 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
4971 --pid options were issued simultaneously. If an explicit pid
4972 option was passed, don't fallback to core file. Detect extra
4973 arguments better in the presence of explicit pid or core
4974 arguments.
4975
4976 2008-01-05 Joel Brobecker <brobecker@adacore.com>
4977
4978 * ada-lang.c (ada_which_variant_applies): Correctly compute
4979 the value of the discriminant when the variant record is packed.
4980
4981 2008-01-04 Joel Brobecker <brobecker@adacore.com>
4982
4983 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
4984 that are used to differentiate homonyms.
4985
4986 2008-01-04 Jerome Guitton <guitton@adacore.com>
4987
4988 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
4989 when the type is an anonymous pointer type.
4990 (ada_check_typedef): Avoid a seg fault when the type is null.
4991 * ada-typeprint.c (print_array_type): Add support for pointer
4992 to packed arrays.
4993
4994 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
4995
4996 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
4997
4998 2008-01-04 Joel Brobecker <brobecker@adacore.com>
4999
5000 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
5001 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
5002
5003 2008-01-04 Joel Brobecker <brobecker@adacore.com>
5004
5005 * ada-exp.y (chop_separator): New function.
5006 (write_selectors): Rewrite to re-use chop_separator.
5007 (ada_nget_field_index, get_symbol_field_type): New functions.
5008 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
5009 expressions.
5010
5011 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5012
5013 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
5014 of SYMBOL_VALUE when working with function symbols.
5015
5016 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5017
5018 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
5019 expressions. These expressions do not need to be rewriten.
5020
5021 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5022
5023 * dwarf2read.c (read_enumeration_type): Flag type as stub if
5024 the given die is a declaration.
5025
5026 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5027
5028 * ada-lang.c (ada_array_bound_from_type): Make non-static.
5029 Handle properly the case when the index type is an enumerated type.
5030 Do not return the subtype of the bounds type, just return the
5031 bounds type directly - this is not needed and is more consistent
5032 with what we do for arrays when no XA parallel type exists.
5033
5034 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5035
5036 * ada-lang.c (static_unwrap_type): Add forward declaration.
5037 (template_to_static_fixed_type): Fields of dynamic types sometimes
5038 also need to be unwrapped. Take this into account.
5039 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
5040 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
5041 * ada-typeprint.c (ada_print_type): Get the typename from
5042 the original type, not the base type.
5043
5044 2008-01-03 Jerome Guitton <guitton@adacore.com>
5045
5046 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
5047 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
5048 Update calls to ada_to_fixed_type.
5049 (ada_template_to_fixed_record_type_1): Ditto, but without looking
5050 for the tag.
5051 (ada_to_fixed_type): Add check_tag parameter; do not look for
5052 tag if null. When looking for a tag, use a fixed record type.
5053 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
5054 * ada-valprint.c (printable_val_type, ada_value_print): Update
5055 calls to ada_to_fixed_type.
5056
5057 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
5058
5059 * doublest.c (convert_floatformat_to_doublest): Call
5060 floatformat_to_doublest instead of floatformat_to_double and use
5061 DOUBLEST variables.
5062 (convert_doublest_to_floatformat): Call floatformat_from_doublest
5063 instead of floatformat_from_double and use DOUBLEST variables.
5064
5065 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
5066
5067 * MAINTAINERS (Write After Approval): Add self.
5068
5069 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5070
5071 * symfile.c (set_initial_language): Make non-static.
5072 * symfile.h (set_initial_language): Add declaration.
5073 * language.c: #include "symfile.h".
5074 (set_language): Call set_initial_language if the frame language
5075 could not be determined.
5076
5077 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
5078
5079 * eval.c (evaluate_subexp_for_address): Provide frame address to
5080 locate_var_value only if it will be needed.
5081
5082 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5083
5084 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
5085
5086 2008-01-02 Joel Brobecker <brobecker@adacore.com>
5087
5088 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
5089 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
5090 This is needed to make sure that any other treatment applied
5091 to the resulting value does not fail for spurious reason,
5092 such as trying to take the address of this value.
5093
5094 2008-01-02 Joel Brobecker <brobecker@adacore.com>
5095
5096 * ada-lang.c (ada_value_equal): Dereference reference types when
5097 comparing arrays.
5098
5099 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
5100
5101 Updated copyright notices for most files.
5102
5103 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
5104
5105 * win32-nat.c (psapi_module_handle): Remove static.
5106 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
5107 return first module found if base_address is zero. Don't initialize
5108 psapi function pointers here. Convert to cygwin paths when
5109 appropriate.
5110 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
5111 executable name. Use get_module_name when that fails or when
5112 !__CYGWIN__.
5113 (_initialize_psapi): New function. Initialize psapi stuff before it is
5114 needed or issue a warning if it is not found. Move psapi_module_handle
5115 here.
5116
5117 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5118
5119 * ada-lang.c (ada_remove_trailing_digits): New function.
5120 (ada_remove_po_subprogram_suffix): New function.
5121 (ada_decode): Improve. Move the description of the algorithm
5122 directly inside the code, instead of in the function global
5123 description.
5124
5125 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5126
5127 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
5128 and always print the dereferenced value.
5129
5130 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5131
5132 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
5133 of the case where the first argument is a reference.
5134 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
5135
5136 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5137
5138 Implement support for Ada interface types.
5139
5140 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
5141 (ada_is_ignored_field): Ignore fields that are a dispatch table
5142 of a tagged type.
5143
5144 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5145
5146 * top.c (print_gdb_version): Update copyright year.
5147
5148 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5149
5150 * ChangeLog-2007: New ChangeLog rotation.
5151 * ChangeLog: Reset for 2008.
5152 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
5153 ChangeLog-2007.
5154
5155 For older changes see ChangeLog-2007.
5156 \f
5157 Local Variables:
5158 mode: change-log
5159 left-margin: 8
5160 fill-column: 74
5161 version-control: never
5162 coding: utf-8
5163 End:
This page took 0.134047 seconds and 5 git commands to generate.